* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:  #fed004 ;
    color: #333;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: rgb(205, 27, 27);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 0.5px solid #fed004;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    height: 64px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fed004;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a, .nav-links button {
    text-decoration: none;
    color: #fed004;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links button {
    background: #050505;
    color: #fed004;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-links button:hover {
    background: #fed004;
    color: #050505;
}

.cart-button {
    position: relative;
    padding: 8px 12px;
    background: #050505;
    border: 1px solid #fed004;
    border-radius: 8px;
    min-width: 45px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fed004;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hamburger span {
        width: 24px;
        height: 2.5px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgb(205, 27, 27);
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px;
        display: none;
        border-bottom: 1px solid #fed004;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .nav-links button, .nav-links a {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 6px;
    }

    .nav-links button:hover, .nav-links a:hover {
        background: #fed004 !important;
        color: #050505 !important;
    }

    .cart-button {
        width: 100%;
        text-align: left;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .hamburger {
        padding: 6px;
        gap: 5px;
    }

    .hamburger span {
        width: 20px;
        height: 2px;
    }

    .logo {
        font-size: 1.2rem;
    }
}

.cart-button.has-items {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
    background: #fed004;
    color: #050505;
}

.cart-badge {
    display: inline-block;
    min-width: 18px;
    font-size: 0.75rem;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    background: #ff4d4d;
    color: white;
    margin-left: 6px;
    padding: 2px 6px;
}

.cart-badge.hidden {
    display: none;
}

.cart-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.cart-view {
    display: block;
}

.cart-view.hidden {
    display: none;
}

/* Checkout Container */
.checkout-container {
    display: block;
}

.checkout-container h2 {
    color: #fed004;
    margin-bottom: 24px;
}

.checkout-container form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout-container input,
.checkout-container textarea {
    padding: 12px 16px;
    border: 2px solid #ddd;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.checkout-container textarea {
    min-height: 80px;
    resize: vertical;
    padding-right: 130px;
}

.checkout-container input:focus,
.checkout-container textarea:focus {
    outline: none;
    border-color: #fed004;
    background: #fff;
}

.checkout-container input::placeholder,
.checkout-container textarea::placeholder {
    color: #999;
}

/* Auth Modal */
.modal {
    display: flex !important;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid #fed004;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.auth-tab {
    flex: 1;
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: #fed004;
    color: #333;
    border-color: #fed004;
}

.auth-fields {
    display: none;
}

.auth-fields.active {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form-wrapper input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: #f9f9f9;
    color: #333;
    transition: border-color 0.3s ease;
}

.auth-form-wrapper input:focus {
    outline: none;
    border-color: #fed004;
    background: #fff;
}

.auth-form-wrapper input::placeholder {
    color: #999;
}

.auth-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form-wrapper button {
    margin-top: 16px;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    flex: 1;
    padding-right: 40px;
}

.popup {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.popup.hidden {
    display: none !important;
}

.popup-content {
    background: #fed004;
    padding: 32px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    background: #fed004;
    color: rgb(205, 27, 27);
    text-align: center;
    padding: 120px 20px;
    height: 50vh;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

/* ========================================
   BUTTON STYLING - EXPLICIT CLASSES ONLY
   ======================================== */

/* PRIMARY CTA BUTTON - For main actions (Proceed to Checkout) */
.btn-primary {
    background: rgb(205, 27, 27);
    color: #fed004;
    padding: 12px 28px;
    border: 2px solid #fed004;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

/* SECONDARY BUTTON - For secondary actions (Continue Shopping) */
.btn-secondary {
    background: transparent;
    color: #fed004;
    padding: 12px 28px;
    border: 2px solid #fed004;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #fed004;
    color: #050505;
}

/* FORM SUBMIT BUTTON */
.btn-form {
    background: #fed004;
    /* color: white; */
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-form:hover {
    background: #8b1a1a;
    box-shadow: 0 4px 12px rgba(205, 27, 27, 0.2);
}

.btn-form:active {
    transform: scale(0.98);
}

/* CART TAB BUTTON */
.btn-cart-tab {
    background: #050505;
    color: #fed004;
    border: 1px solid #fed004;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1rem;
}

.btn-cart-tab:hover {
    opacity: 0.9;
}

.btn-cart-tab.active {
    background: #050505;
    color: #fed004;
    border-bottom: 3px solid #fed004;
}

/* NAVIGATION BUTTON */
.btn-nav {
    text-decoration: none;
    color: #fed004;
    border: none;
    background: #050505;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-nav:hover {
    background: #fed004;
    color: #050505;
}

/* EATERY CARD BUTTON */
.btn-eatery {
    width: 100%;
    padding: 10px;
    background: rgb(205, 27, 27);
    color: #fed004;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-eatery:hover {
    background: #050505;
    color: #fed004;
}

/* QUANTITY ADJUSTMENT BUTTON */
.btn-quantity {
    background: rgb(205, 27, 27);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.25s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-quantity:hover {
    background: #a31515;
}

/* SMALL QUANTITY COUNTER BUTTONS */
.btn-qty-counter {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(205, 27, 27);
    font-weight: bold;
    transition: all 0.2s ease;
}

.btn-qty-counter:hover {
    background: rgb(205, 27, 27);
    color: white;
    border-radius: 4px;
}

/* BACK BUTTON */
.btn-back {
    background: #f5f5f5;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #e0e0e0;
}

/* CLOSE BUTTON (Modal) */
.btn-close {
    position: absolute;
    top: 1px;
    right: 3px;
    font-size: 28px;
    color: #666;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
}

.btn-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

.btn-close:active {
    transform: rotate(90deg) scale(0.9);
}

/* PASSWORD TOGGLE BUTTON */
.btn-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s ease;
}

.btn-password-toggle:hover {
    color: #333;
}

/* LINK BUTTON - Forgot Password */
.btn-link {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ADMIN MODAL BUTTON OVERRIDE */
#admin-modal .btn-form {
    background: linear-gradient(135deg, rgb(205, 27, 27) 0%, #8b1a1a 100%);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 9px;
    box-shadow: 0 4px 12px rgba(205, 27, 27, 0.2);
}

#admin-modal .btn-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(205, 27, 27, 0.35);
}

#admin-modal .btn-form:active {
    transform: translateY(0);
}

/* Pages */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgb(205, 27, 27);
    min-height: calc(100vh - 200px);
}

.page.hidden {
    display: none !important;
}

/* Browse Eateries */
.browse-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-bar {
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #fed004;
    background: #fed004;
    border-radius: 6px;
    font-size: 1rem;
}

/* Search results */
.search-section-label {
    grid-column: 1 / -1;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    padding: 8px 0 4px;
    border-bottom: 1px solid #eee;
    margin-bottom: -8px;
}

.search-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.search-no-results-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.search-no-results p {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #666;
}

.search-no-results small {
    font-size: 0.85rem;
    color: #aaa;
}

.search-menu-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

.search-menu-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.search-menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.search-menu-card.unavailable {
    opacity: 0.5;
}

.search-menu-card-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.search-menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-menu-card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-menu-card-body h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: #1a1a1a;
}

.search-menu-card-body p {
    margin: 0 0 8px;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.3;
}

.search-menu-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-menu-card-price {
    font-weight: 700;
    color: #cd1b1b;
    font-size: 0.95rem;
}

.search-menu-card-eatery {
    font-size: 0.75rem;
    color: #aaa;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eateries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.eatery-card {
    background: #fed004;
    border: 1px solid #fed004;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.eatery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Eatery status badge */
.eatery-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    pointer-events: none;
}
.eatery-status-closed {
    background: #cd1b1b;
    color: #fff;
}
.eatery-status-unavailable {
    background: #1a1a1a;
    color: #fed004;
}

/* Dim closed/unavailable eatery cards */
.eatery-not-open .eatery-image img {
    filter: grayscale(60%) brightness(0.7);
}
.eatery-not-open .btn-eatery {
    background: #999;
    cursor: default;
}

/* Closed eatery detail notice */
.eatery-closed-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    gap: 12px;
}
.eatery-closed-notice .eatery-closed-icon {
    font-size: 3rem;
}
.eatery-closed-notice h2 {
    color: #cd1b1b;
    font-size: 1.5rem;
    margin: 0;
}
.eatery-closed-notice p {
    color: #666;
    font-size: 1rem;
    max-width: 400px;
    margin: 0;
}
.eatery-closed-notice .btn-eatery {
    margin-top: 12px;
}

.eatery-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.eatery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eatery-info {
    padding: 16px;
}

.eatery-info h3 {
    margin-bottom: 8px;
    color: #333;
}

.eatery-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Eatery Detail */
.eatery-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    color: #fed004;
}

#eatery-info {
    flex: 1;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.menu-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

.menu-item-image {
    width: 100%;
    height: 180px;
    background-color: #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.menu-item h4 {
    margin-bottom: 6px;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.menu-item p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.quantity-counter {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 3px 7px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    color: #333;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 48px 20px 24px;
    margin-top: 60px;
    border-top: 3px solid #fed004;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #fed004;
}

.footer-column p {
    line-height: 1.6;
    color: #ccc;
    font-size: 0.95rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fed004;
}

.social-media {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    color: #ccc;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    width: fit-content;
}

.social-link:hover {
    background: rgb(205, 27, 27);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.9rem;
}

.menu-item-price {
    font-weight: 800;
    color: #cd1b1b;
    font-size: 1.05rem;
    white-space: nowrap;
}

/* Cart */
.cart-container {
    max-width: 600px;
}

.cart-container h2 {
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    gap: 16px;
    background: #fafafa;
    border-radius: 6px;
    margin-bottom: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.cart-item-info p {
    margin: 4px 0;
    color: #666;
}

.cart-item-total {
    font-weight: bold;
    color: rgb(205, 27, 27);
}

.cart-item-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cart-total {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 6px;
    margin: 20px 0;
}

/* Checkout */
.checkout-container {
    max-width: 600px;
}

#checkout-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

#checkout-form input,
#checkout-form textarea {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

/* Orders */
.orders-container {
    max-width: 800px;
    margin: 0 auto;
}

.orders-container h2 {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #fed004;
    font-size: 1.8rem;
    color: #333;
}

#orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Order card */
.order-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.order-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 22px 14px;
    border-bottom: 1px solid #f2f2f2;
}

.order-eatery-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
}

.order-meta-row {
    font-size: 0.8rem;
    color: #999;
    margin-top: 3px;
}

.order-total-badge {
    font-size: 1.15rem;
    font-weight: 800;
    color: #cd1b1b;
    white-space: nowrap;
    margin-left: 12px;
}

/* Status stepper */
.order-stepper {
    display: flex;
    align-items: flex-start;
    padding: 20px 22px 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.order-stepper::-webkit-scrollbar {
    display: none;
}

.order-step {
    flex: 1;
    min-width: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Connecting line from this circle to next circle */
.order-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 13px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e8e8e8;
    z-index: 0;
}

.order-step.done:not(:last-child)::after {
    background: #cd1b1b;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}

.order-step.done .step-circle {
    background: #cd1b1b;
    color: #fff;
}

.order-step.active .step-circle {
    background: #fed004;
    color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(254, 208, 4, 0.22);
    transform: scale(1.12);
}

.step-label {
    font-size: 0.62rem;
    color: #ccc;
    margin-top: 6px;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-step.done .step-label {
    color: #cd1b1b;
    font-weight: 600;
}

.order-step.active .step-label {
    color: #1a1a1a;
    font-weight: 700;
}

/* Cancelled state */
.order-card.cancelled {
    opacity: 0.85;
}

.order-cancelled-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 22px 4px;
    padding: 10px 14px;
    background: #fff3f3;
    border: 1px solid #ffd0d0;
    border-radius: 8px;
    color: #cd1b1b;
    font-size: 0.88rem;
    font-weight: 600;
}

/* Items section */
.order-items-section {
    padding: 2px 22px 0;
}

.order-items-toggle {
    background: none;
    border: none;
    font-size: 0.82rem;
    color: #aaa;
    cursor: pointer;
    padding: 6px 0;
    font-family: inherit;
    transition: color 0.15s;
}

.order-items-toggle:hover {
    color: #555;
}

.order-items-list {
    display: none;
    padding-bottom: 6px;
}

.order-items-list.open {
    display: block;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.88rem;
    color: #444;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-qty {
    font-weight: 700;
    color: #cd1b1b;
    margin-right: 4px;
}

/* Card footer */
.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 22px 18px;
    border-top: 1px solid #f5f5f5;
    margin-top: 6px;
    gap: 8px;
    flex-wrap: wrap;
}

.order-date-text {
    font-size: 0.76rem;
    color: #bbb;
}

.order-cancel-btn {
    background: none;
    border: 1.5px solid #cd1b1b;
    color: #cd1b1b;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.order-cancel-btn:hover {
    background: #cd1b1b;
    color: #fff;
}

.order-retry-btn {
    background: none;
    border: 1.5px solid #fed004;
    color: #1a1a1a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.order-retry-btn:hover {
    background: #fed004;
    color: #1a1a1a;
}

/* Empty & loading states */
.orders-empty {
    text-align: center;
    padding: 64px 20px;
    color: #bbb;
}

.orders-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.orders-empty p {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 6px;
}

.orders-empty small {
    font-size: 0.82rem;
    color: #ccc;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .order-card-header,
    .order-items-section,
    .order-card-footer,
    .order-cancelled-banner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .order-stepper {
        padding: 16px 16px 8px;
    }

    .step-circle {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    .order-step:not(:last-child)::after {
        top: 11px;
    }

    .step-label {
        font-size: 0.57rem;
        max-width: 52px;
    }
}

/* ==================== PROFILE PAGE ==================== */
.profile-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

.profile-container > h2 {
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid #fed004;
    font-size: 1.8rem;
    color: #1a1a1a;
}

/* Header card */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 24px;
    background: #1a1a1a;
    border-radius: 16px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fed004;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(254, 208, 4, 0.25);
}

.profile-identity {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-email {
    font-size: 0.88rem;
    color: #bbb;
}

.profile-joined {
    font-size: 0.75rem;
    color: #777;
    margin-top: 2px;
}

/* Sections container */
.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cards */
.profile-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.profile-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #f2f2f2;
}

.profile-card-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.profile-edit-btn {
    background: none;
    border: 1.5px solid #fed004;
    color: #1a1a1a;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.profile-edit-btn:hover {
    background: #fed004;
    color: #1a1a1a;
}

/* View fields */
.profile-fields {
    padding: 16px 22px;
}

.profile-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f7f7f7;
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field label {
    font-size: 0.82rem;
    color: #999;
    font-weight: 500;
    flex-shrink: 0;
    width: 100px;
}

.profile-field span {
    font-size: 0.92rem;
    color: #333;
    text-align: right;
    word-break: break-word;
}

.profile-empty {
    color: #ccc;
    font-style: italic;
    font-size: 0.84rem;
}

/* Inline edit form */
.profile-form {
    padding: 18px 22px;
}

.profile-form-group {
    margin-bottom: 16px;
}

.profile-form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #777;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.profile-form-group input,
.profile-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.profile-form-group input:focus,
.profile-form-group textarea:focus {
    outline: none;
    border-color: #fed004;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(254, 208, 4, 0.1);
}

.profile-form-group textarea {
    resize: vertical;
    min-height: 52px;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.profile-btn-cancel {
    background: none;
    border: 1.5px solid #ddd;
    color: #999;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, color 0.2s;
}

.profile-btn-cancel:hover {
    border-color: #aaa;
    color: #555;
}

.profile-btn-save {
    background: #fed004;
    border: none;
    color: #1a1a1a;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.1s;
}

.profile-btn-save:hover {
    background: #e6bc00;
}

.profile-btn-save:active {
    transform: scale(0.97);
}

.profile-btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Password message */
.profile-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.profile-msg.error {
    background: #fff3f3;
    color: #cd1b1b;
    border: 1px solid #ffd0d0;
}

.profile-msg.success {
    background: #f0fff0;
    color: #2a7a2a;
    border: 1px solid #c0e8c0;
}

/* Quick actions grid */
.profile-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 18px 22px;
}

.profile-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f9f9f9;
    border: 1.5px solid #f0f0f0;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, transform 0.1s;
}

.profile-action:hover {
    background: #fff;
    border-color: #fed004;
    transform: translateY(-1px);
}

.profile-action:active {
    transform: translateY(0);
}

.profile-action-icon {
    font-size: 1.2rem;
}

.profile-action-danger {
    color: #cd1b1b;
}

.profile-action-danger:hover {
    border-color: #cd1b1b;
    background: #fff5f5;
}

/* Responsive */
@media (max-width: 480px) {
    .profile-header {
        padding: 20px 18px;
        gap: 14px;
    }

    .profile-avatar {
        width: 54px;
        height: 54px;
        font-size: 1.1rem;
    }

    .profile-name {
        font-size: 1.1rem;
    }

    .profile-card-head,
    .profile-fields,
    .profile-form,
    .profile-actions-grid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .profile-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .profile-field label {
        width: auto;
    }

    .profile-field span {
        text-align: left;
    }

    .profile-actions-grid {
        grid-template-columns: 1fr;
    }

    .profile-form-actions {
        flex-direction: column;
    }

    .profile-btn-cancel,
    .profile-btn-save {
        width: 100%;
        text-align: center;
    }
}

/* Auth Form Container */
#login-form-container,
#register-form-container {
    display: block;
}

#login-form,
#register-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

#login-form input,
#register-form input {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
}

#login-form input:focus,
#register-form input:focus {
    outline: none;
    border-color: #fed004;
    box-shadow: 0 0 0 3px rgba(254, 208, 4, 0.1);
}

.modal-content p {
    text-align: center;
    margin-top: 16px;
}

.modal-content a {
    color: #fed004;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 10px;
    }
    #orders-link{
        display: none;
    }
    .hero {
        padding: 40px 20px;
    }

    .eateries-grid, .menu-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ADMIN LOGIN FORM STYLING ===== */
#admin-modal .modal-content {
    background:  #ffffff ;
    padding: 0;
    border-radius: 16px;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: none;
    overflow: hidden;
}

/* Admin Modal Header */
#admin-modal .modal-content h2 {
    background:  rgb(205, 27, 27) ;
    color: white;
    padding: 24px 32px;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Admin Form Container */
#admin-modal #admin-login-form {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Admin Login Form Inputs */
#admin-login-form input {
    padding: 14px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    background: #f9f9f9 !important;
    color: #333 !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: inherit !important;
    width: 100% !important;
}

#admin-login-form input::placeholder {
    color: #999 !important;
}

#admin-login-form input:hover {
    border-color: #d0d0d0 !important;
    background: #fafafa !important;
}

#admin-login-form input:focus {
    outline: none !important;
    border-color: rgb(205, 27, 27) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(205, 27, 27, 0.1) !important;
}

/* Admin Login Button */
#admin-modal .cta-btn {
    background: linear-gradient(135deg, rgb(205, 27, 27) 0%, #8b1a1a 100%) !important;
    color: white !important;
    padding: 14px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 9px !important;
    box-shadow: 0 4px 12px rgba(205, 27, 27, 0.2) !important;
}

#admin-modal .cta-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(205, 27, 27, 0.35) !important;
}

#admin-modal .cta-btn:active {
    transform: translateY(0) !important;
}

/* Close Button Styling */
#admin-modal .close-btn {
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: #666;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* hover: background: #f0f0f0; */
}

#admin-modal .close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

/* Back to Login Link */
#admin-modal .modal-content p {
    margin-top: 20px !important;
    padding-top: 20px !important;
    text-align: center !important;
    border-top: 1px solid #e0e0e0 !important;
    color: #666 !important;
    font-size: 13px !important;
}

#admin-modal .modal-content a {
    color: rgb(205, 27, 27) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

#admin-modal .modal-content a:hover {
    color: #8b1a1a !important;
    text-decoration: underline !important;
}

/* Admin Modal Backdrop */
#admin-modal {
    background-color: rgba(0, 0, 0, 0.55) !important;
}

/* Responsive Design for Admin Login */

/* ===== MENU ACCORDION ===== */
.menu-accordion {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #fff;
}

.menu-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #1a1a1a;
    color: #fed004;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background 0.2s;
}

.menu-accordion-header:hover {
    background: #252525;
}

.accordion-label {
    flex: 1;
    text-align: left;
}

.accordion-count {
    font-size: 0.8rem;
    font-weight: 400;
    color: #aaa;
}

.accordion-chevron {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.menu-accordion-header.open .accordion-chevron {
    transform: rotate(0deg);
}

.menu-accordion-header:not(.open) .accordion-chevron {
    transform: rotate(-90deg);
}

.menu-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 16px;
}

.menu-accordion-body.open {
    max-height: 5000px;
    padding: 16px;
}

.menu-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.empty-category {
    text-align: center;
    padding: 40px 20px;
    color: #fed004;
    font-size: 1.1rem;
}
@media (max-width: 600px) {
    #admin-modal .modal-content {
        max-width: 95vw;
        border-radius: 12px;
    }

    #admin-modal .modal-content h2 {
        font-size: 20px;
        padding: 20px 24px;
    }

    #admin-modal #admin-login-form {
        padding: 24px;
        gap: 16px;
    }

    #admin-login-form input {
        padding: 13px 14px !important;
        font-size: 14px !important;
    }

    #admin-modal .cta-btn {
        padding: 13px 20px !important;
        font-size: 14px !important;
    }
}

/* AVAILABILITY STYLES */
.menu-item.unavailable {
    opacity: 0.7;
    border: 2px solid #ffc107;
    background-color: #fffbf0;
}

.availability-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin: 8px 0;
}

.availability-badge.unavailable-badge {
    background-color: #ffcccc;
    color: #cc0000;
}

.btn-quantity.btn-disabled {
    background-color: #c3cfd8 !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.btn-quantity.btn-disabled:hover {
    background-color: #c3cfd8 !important;
}

/* ── Skeleton loading ────────────────────────────────────────────────── */

@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton {
    background: #e8e8e8;
    background-image: linear-gradient(90deg, #e8e8e8 0%, #f5f5f5 40%, #e8e8e8 80%);
    background-size: 800px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
}

/* Eatery card skeleton */
.skeleton-eatery-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.skeleton-eatery-image {
    width: 100%;
    height: 200px;
}

.skeleton-eatery-info {
    padding: 16px;
}

.skeleton-eatery-title {
    height: 20px;
    width: 65%;
    margin-bottom: 10px;
}

.skeleton-eatery-text {
    height: 14px;
    width: 90%;
    margin-bottom: 14px;
}

.skeleton-eatery-btn {
    height: 36px;
    width: 100px;
    border-radius: 20px;
}

/* Menu item skeleton */
.skeleton-menu-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
}

.skeleton-menu-image {
    width: 100%;
    height: 180px;
}

.skeleton-menu-content {
    padding: 16px;
}

.skeleton-menu-title {
    height: 18px;
    width: 60%;
    margin-bottom: 8px;
}

.skeleton-menu-desc {
    height: 12px;
    width: 85%;
    margin-bottom: 16px;
}

.skeleton-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-menu-price {
    height: 20px;
    width: 70px;
}

.skeleton-menu-btn {
    height: 32px;
    width: 60px;
    border-radius: 6px;
}

/* Order card skeleton */
.skeleton-order-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
}

.skeleton-order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.skeleton-order-id {
    height: 18px;
    width: 120px;
}

.skeleton-order-date {
    height: 14px;
    width: 150px;
}

.skeleton-order-stepper {
    height: 48px;
    width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
}

.skeleton-order-total {
    height: 20px;
    width: 100px;
    margin-left: auto;
}

/* Profile skeleton */
.skeleton-profile-header {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.skeleton-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #333;
    background-image: linear-gradient(90deg, #333 0%, #444 40%, #333 80%);
    background-size: 800px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-profile-name {
    height: 22px;
    width: 160px;
    margin-bottom: 8px;
    background: #333;
    background-image: linear-gradient(90deg, #333 0%, #444 40%, #333 80%);
    background-size: 800px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-profile-email {
    height: 14px;
    width: 200px;
    background: #333;
    background-image: linear-gradient(90deg, #333 0%, #444 40%, #333 80%);
    background-size: 800px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-profile-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
}

.skeleton-profile-card-title {
    height: 18px;
    width: 180px;
    margin-bottom: 20px;
}

.skeleton-profile-field {
    height: 14px;
    width: 100%;
    margin-bottom: 12px;
}

.skeleton-profile-field:nth-child(2) { width: 70%; }
.skeleton-profile-field:nth-child(3) { width: 55%; }

/* ============ TOAST NOTIFICATIONS ============ */

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    font-size: 0.95rem;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-error {
    background: #fff;
    border-left: 4px solid #cd1b1b;
    color: #1a1a1a;
}

.toast-success {
    background: #fff;
    border-left: 4px solid #27ae60;
    color: #1a1a1a;
}

.toast-warning {
    background: #fff;
    border-left: 4px solid #f39c12;
    color: #1a1a1a;
}

.toast-info {
    background: #fff;
    border-left: 4px solid #2980b9;
    color: #1a1a1a;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.toast-error .toast-icon { background: #cd1b1b; color: #fff; }
.toast-success .toast-icon { background: #27ae60; color: #fff; }
.toast-warning .toast-icon { background: #f39c12; color: #fff; }
.toast-info .toast-icon { background: #2980b9; color: #fff; }

.toast-msg {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #888;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #1a1a1a;
}

/* ============ INLINE ERROR STATES ============ */

.inline-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    gap: 12px;
}

.inline-error-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fef3cd;
    color: #856404;
}

.inline-error-msg {
    font-size: 1rem;
    color: #555;
    max-width: 360px;
    line-height: 1.5;
}

.btn-retry {
    margin-top: 8px;
    padding: 10px 28px;
    background: #cd1b1b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-retry:hover {
    background: #a81515;
}

@media (max-width: 600px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
    }
    .toast {
        min-width: unset;
        max-width: 100%;
    }
}

/* Location Button */
.btn-location-auto {
    position: absolute;
    right: 12px;
    top: 12px;
    background: #fed004;
    color: #1a1a1a;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.btn-location-auto:hover {
    background: #cd1b1b;
    color: #fff;
    transform: scale(1.05);
}

.btn-location-auto.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-location-auto.error {
    background: #cd1b1b;
    color: #fff;
}

.location-loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
