/* ============================================
   BEAN & BREW - SHARED STYLES
   Common styles used across all pages
   ============================================ */

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #C8915F 0%, #D4A574 50%, #C8915F 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: coffeeFloat 2s ease-in-out infinite;
}

@keyframes coffeeFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.loader-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2C1810;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(44, 24, 16, 0.2);
    border-top-color: #2C1810;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.loader-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: rgba(44, 24, 16, 0.8);
    margin-top: 1rem;
    letter-spacing: 1px;
}

/* Color Palette */
:root {
    --brew-primary: #C67C4E;
    --brew-primary-dark: #A56539;
    --brew-primary-light: #D89A6E;
    --brew-primary-10: #EDD6C8;
    --brew-line: #E3E3E3;
    --brew-surface: #F9F2ED;
    --brew-white: #FFFFFF;
    --brew-black: #2C2C2C;
    --brew-text: #333333;
    --brew-text-light: #666666;
    --brew-shadow-sm: 0 2px 8px rgba(198, 124, 78, 0.08);
    --brew-shadow-md: 0 4px 16px rgba(198, 124, 78, 0.12);
    --brew-shadow-lg: 0 8px 32px rgba(198, 124, 78, 0.16);
    --brew-shadow-xl: 0 16px 48px rgba(198, 124, 78, 0.2);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--brew-text);
    line-height: 1.6;
    background-color: var(--brew-surface);
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed navbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-fluid {
    width: 100%;
    padding: 0 24px;
}

/* Background Animations */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.coffee-bean {
    position: absolute;
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg,
        rgba(198, 124, 78, 0.15) 0%,
        rgba(165, 101, 57, 0.12) 50%,
        rgba(198, 124, 78, 0.08) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.08;
    animation: float-smooth 25s infinite ease-in-out;
    backdrop-filter: blur(1px);
    border: 1px solid rgba(198, 124, 78, 0.1);
    box-shadow:
        0 4px 12px rgba(198, 124, 78, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bean-1 { top: 10%; left: 10%; animation-delay: 0s; animation-duration: 28s; }
.bean-2 { top: 60%; left: 80%; animation-delay: 7s; animation-duration: 32s; }
.bean-3 { top: 30%; left: 70%; animation-delay: 14s; animation-duration: 26s; }
.bean-4 { top: 80%; left: 20%; animation-delay: 21s; animation-duration: 30s; }
.bean-5 { top: 40%; left: 40%; animation-delay: 28s; animation-duration: 29s; }

.steam {
    position: absolute;
    width: 4px;
    height: 100px;
    background: linear-gradient(to top,
        transparent 0%,
        rgba(198, 124, 78, 0.15) 20%,
        rgba(198, 124, 78, 0.08) 50%,
        transparent 100%);
    border-radius: 50%;
    opacity: 0.25;
    animation: steam-rise-smooth 10s infinite ease-in-out;
    backdrop-filter: blur(2px);
}

.steam-1 { top: 70%; left: 15%; animation-delay: 0s; }
.steam-2 { top: 70%; left: 50%; animation-delay: 3s; }
.steam-3 { top: 70%; left: 85%; animation-delay: 6s; }

@keyframes float-smooth {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.08;
    }
    25% {
        transform: translate(40px, -40px) rotate(120deg) scale(1.1);
        opacity: 0.12;
    }
    50% {
        transform: translate(20px, -80px) rotate(240deg) scale(0.9);
        opacity: 0.06;
    }
    75% {
        transform: translate(-20px, -40px) rotate(360deg) scale(1.05);
        opacity: 0.1;
    }
}

@keyframes steam-rise-smooth {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.25;
        transform: translateY(-20px) scale(1.1) rotate(10deg);
    }
    50% {
        opacity: 0.15;
        transform: translateY(-100px) scale(1.3) rotate(-5deg);
    }
    80% {
        opacity: 0.05;
        transform: translateY(-180px) scale(1.6) rotate(15deg);
    }
    100% {
        transform: translateY(-250px) scale(2) rotate(0deg);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Backdrop */
.mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-backdrop.active {
    display: block;
    opacity: 1;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--brew-shadow-md);
    border-bottom-color: var(--brew-line);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brew-primary);
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2rem;
    animation: rotate-slow 20s infinite linear;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--brew-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navbar User Actions (Hidden on Desktop) */
.navbar-user-actions {
    display: none;
}

.mobile-cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brew-surface, #F9F2ED);
    border-radius: 10px;
    color: var(--brew-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-cart-btn:hover {
    background: var(--brew-primary);
    color: white;
    transform: scale(1.05);
}

.mobile-cart-btn:active {
    transform: scale(0.95);
}

.mobile-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EF4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.mobile-user-dropdown {
    position: relative;
}

.mobile-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.3s ease;
}

.mobile-user-btn:hover {
    transform: scale(1.05);
}

.mobile-user-btn:active {
    transform: scale(0.95);
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C67C4E 0%, #A66438 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(198, 124, 78, 0.3);
    position: relative;
}

.mobile-notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #EF4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    border: 2px solid white;
    animation: badgePulse 2s infinite;
}

.mobile-dropdown-icon {
    font-size: 0.75rem;
    color: var(--brew-gray, #6B7280);
    transition: transform 0.3s ease;
}

.mobile-user-btn:hover .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.mobile-user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-dropdown-header {
    padding: 1rem;
    background: linear-gradient(135deg, #F9F2ED 0%, #FEFAF7 100%);
}

.mobile-dropdown-user-info {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-user-name {
    font-weight: 600;
    color: var(--brew-black);
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.mobile-dropdown-user-email {
    font-size: 0.8rem;
    color: var(--brew-gray);
    margin: 0;
    word-break: break-word;
}

.mobile-dropdown-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 0.5rem 0;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--brew-text);
    text-decoration: none;
    transition: all 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
}

.mobile-dropdown-item i {
    width: 20px;
    color: var(--brew-primary);
    font-size: 1rem;
}

.mobile-dropdown-item:hover {
    background: #F9F2ED;
    padding-left: 1.25rem;
}

.mobile-dropdown-item:active {
    background: #F5EBE0;
}

.mobile-logout-item {
    color: #EF4444;
}

.mobile-logout-item i {
    color: #EF4444;
}

.mobile-logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
}

.mobile-login-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C67C4E 0%, #A66438 100%);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(198, 124, 78, 0.3);
}

.mobile-login-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(198, 124, 78, 0.4);
}

.mobile-login-btn:active {
    transform: scale(0.95);
}

/* Desktop Cart & User Dropdown */
.desktop-cart-wrapper,
.desktop-user-wrapper,
.desktop-login-wrapper {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.desktop-user-wrapper {
    position: relative;
}

.desktop-cart-link {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brew-surface, #F9F2ED);
    border-radius: 10px;
    color: var(--brew-primary, #C67C4E);
    text-decoration: none;
    transition: all 0.3s ease;
}

.desktop-cart-link:hover {
    background: var(--brew-primary, #C67C4E);
    color: white;
}

.desktop-cart-link i {
    font-size: 1.1rem;
}

.desktop-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EF4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
}

.desktop-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.3s ease;
}

.desktop-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C67C4E 0%, #A66438 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}

.desktop-notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #EF4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    border: 2px solid white;
    animation: badgePulse 2s infinite;
}

.desktop-dropdown-icon {
    font-size: 0.75rem;
    color: var(--brew-gray, #6B7280);
    transition: transform 0.3s ease;
}

.desktop-user-btn:hover .desktop-dropdown-icon {
    transform: rotate(180deg);
}

.desktop-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.desktop-user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-dropdown-header {
    padding: 16px;
    background: linear-gradient(135deg, #C67C4E 0%, #A66438 100%);
    border-radius: 12px 12px 0 0;
}

.desktop-dropdown-user-info {
    color: white;
}

.desktop-dropdown-user-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.desktop-dropdown-user-email {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

.desktop-dropdown-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 8px 0;
}

.desktop-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #1F2937;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

.desktop-dropdown-item i {
    width: 20px;
    color: var(--brew-primary);
    font-size: 1rem;
}

.desktop-dropdown-item:hover {
    background: #F9F2ED;
    padding-left: 20px;
}

.desktop-logout-item {
    color: #EF4444;
}

.desktop-logout-item i {
    color: #EF4444;
}

.desktop-logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
}

.desktop-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #C67C4E 0%, #A66438 100%);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(198, 124, 78, 0.3);
}

.desktop-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 124, 78, 0.4);
}

.desktop-login-btn i {
    font-size: 1rem;
}

/* Hide mobile cart link on desktop */
.mobile-cart-nav-item {
    display: none;
}

/* Hide mobile header on desktop */
.mobile-sidebar-header {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--brew-text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brew-primary), var(--brew-primary-light));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--brew-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-btn {
    background: linear-gradient(135deg, #B8865D 0%, #A0603D 50%, #8B4E2F 100%);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(160, 96, 61, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-btn:hover::before {
    width: 300px;
    height: 300px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(160, 96, 61, 0.4);
    background: linear-gradient(135deg, #C8915F 0%, #B8865D 50%, #A0603D 100%);
}

/* Dashboard button with icon styling */
.nav-btn i {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Hide mobile-only text on desktop */
.mobile-only {
    display: none;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brew-primary), var(--brew-primary-dark));
    color: white;
    box-shadow: var(--brew-shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--brew-shadow-xl);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: var(--brew-primary);
    border: 2px solid var(--brew-primary);
}

.btn-secondary:hover {
    background: var(--brew-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--brew-shadow-md);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--brew-primary-10);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--brew-primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--brew-text);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-description {
    font-size: 1.1rem;
    color: var(--brew-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   HERO SECTION - Full Width with Background Images
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -80px;
    padding-top: 80px;
}

/* Hero Background Images for Each Page */
.hero-home {
    background-image: url('../../Assets/Hero Sections/Home.png');
    min-height: 85vh;
}

.hero-specialties {
    background-image: url('../../Assets/Hero Sections/Specialty.png');
}

.hero-menu {
    background-image: url('../../Assets/Hero Sections/Menu.png');
}

.hero-about {
    background-image: url('../../Assets/Hero Sections/About.png');
}

.hero-reviews {
    background-image: url('../../Assets/Hero Sections/Review.png');
}

.hero-contact {
    background-image: url('../../Assets/Hero Sections/Contact.png');
}

.hero-download {
    background-image: linear-gradient(135deg, rgba(198, 124, 78, 0.9), rgba(44, 44, 44, 0.85)), 
                      url('../../Assets/Hero Sections/Home.png');
}

/* Dark Overlay for Readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 44, 44, 0.65) 0%,
        rgba(198, 124, 78, 0.55) 50%,
        rgba(44, 44, 44, 0.65) 100%
    );
    z-index: 1;
    transition: background 0.4s ease;
}

.hero:hover .hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(44, 44, 44, 0.7) 0%,
        rgba(198, 124, 78, 0.6) 50%,
        rgba(44, 44, 44, 0.7) 100%
    );
}

/* Hero Content Container */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 2rem 2rem;
    animation: heroFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

/* Fade-in Animation */
@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Title */
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--brew-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: heroTitleSlide 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
    letter-spacing: 1px;
}

@keyframes heroTitleSlide {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Tagline/Paragraph */
.hero p {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: heroTextFade 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
}

@keyframes heroTextFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative Accent Line */
.hero-accent {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--brew-primary), transparent);
    margin: 2rem auto;
    border-radius: 2px;
    animation: heroAccentGrow 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
}

@keyframes heroAccentGrow {
    0% {
        opacity: 0;
        width: 0;
    }
    100% {
        opacity: 1;
        width: 80px;
    }
}

/* Hero CTA Button (Optional) */
.hero .btn {
    margin-top: 2rem;
    animation: heroBtnFade 2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
    opacity: 0;
    box-shadow: 0 8px 30px rgba(198, 124, 78, 0.4);
}

@keyframes heroBtnFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(198, 124, 78, 0.6);
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(198, 124, 78, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--brew-white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    backdrop-filter: blur(10px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: scrollBounce 2s infinite;
    cursor: pointer;
}

.hero-scroll-indicator i {
    font-size: 2rem;
    color: var(--brew-white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hero-scroll-indicator:hover i {
    opacity: 1;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Parallax Effect Enhancement */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(198, 124, 78, 0.2) 0%, transparent 60%);
    z-index: 1;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* ============================================
   HERO SECTION - RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 55vh;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        letter-spacing: 0;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-scroll-indicator {
        bottom: 1.5rem;
    }

    .hero-scroll-indicator i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        letter-spacing: 0;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-accent {
        width: 60px;
        height: 3px;
        margin: 1.5rem auto;
    }

    .hero .btn {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   WELCOME SECTION (Home Page)
   ============================================ */

.welcome-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--brew-surface) 0%, var(--brew-white) 50%, var(--brew-surface) 100%);
    position: relative;
}

.welcome-content {
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.welcome-card {
    background: var(--brew-white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--brew-shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brew-primary), var(--brew-primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.welcome-card:hover::before {
    transform: scaleX(1);
}

.welcome-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--brew-shadow-lg);
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.welcome-card:nth-child(1) .welcome-icon {
    animation-delay: 0s;
}

.welcome-card:nth-child(2) .welcome-icon {
    animation-delay: 0.3s;
}

.welcome-card:nth-child(3) .welcome-icon {
    animation-delay: 0.6s;
}

.welcome-card:nth-child(4) .welcome-icon {
    animation-delay: 0.9s;
}

.welcome-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--brew-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.welcome-card p {
    color: var(--brew-text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 4rem 0;
    }

    .welcome-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .welcome-card {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   OLD PAGE HERO (DEPRECATED - Keep for backwards compatibility)
   ============================================ */

.page-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--brew-surface) 0%, var(--brew-primary-10) 100%);
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--brew-primary);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--brew-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================
   NEW FOOTER DESIGN - Bean & Brew
   ========================================= */

.footer {
  background: linear-gradient(135deg, var(--brew-surface), var(--brew-primary-10));
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--brew-line);
  color: var(--brew-text);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(198, 124, 78, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === TOP SECTION === */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  flex: 1.2;
  min-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--brew-primary);
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--brew-text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* === NEWSLETTER === */
.footer-newsletter {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--brew-line);
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--brew-text);
  transition: border 0.3s ease;
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--brew-primary);
}

.btn-newsletter {
  background: var(--brew-primary);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-newsletter:hover {
  background: var(--brew-primary-dark);
  transform: translateY(-2px);
}

/* === LINKS === */
.footer-links {
  flex: 2;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-column {
  min-width: 160px;
}

.footer-column h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--brew-text);
  margin-bottom: 1rem;
  position: relative;
}

.footer-column h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--brew-primary);
  margin-top: 0.3rem;
  border-radius: 2px;
}

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

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--brew-text-light);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-column a:hover {
  color: var(--brew-primary);
  transform: translateX(4px);
}

/* === SOCIAL ICONS === */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--brew-primary);
  color: var(--brew-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer-social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brew-primary);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  z-index: -1;
}

.footer-social-link:hover {
  color: white;
  border-color: var(--brew-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(198, 124, 78, 0.3);
}

.footer-social-link:hover::before {
  transform: scale(1);
}

.footer-social-link:active {
  transform: translateY(-2px);
}

.footer-social-link i {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

/* Individual social icon colors on hover */
.footer-social-link:nth-child(1):hover {
  border-color: #1877F2;
}

.footer-social-link:nth-child(1):hover::before {
  background: #1877F2;
}

.footer-social-link:nth-child(2):hover {
  border-color: #E4405F;
}

.footer-social-link:nth-child(2):hover::before {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

.footer-social-link:nth-child(3):hover {
  border-color: #000000;
}

.footer-social-link:nth-child(3):hover::before {
  background: #000000;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brew-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.social-icon:hover {
  background: var(--brew-primary-dark);
  transform: scale(1.1);
}

/* === BOTTOM SECTION === */
.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--brew-line);
  padding-top: 1.5rem;
  color: var(--brew-text-light);
  font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-newsletter {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}


/* Back to Top Button - Hidden */
.back-to-top {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .container {
        padding: 0 20px;
    }
}

/* Hide bottom nav on desktop by default */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
        padding-bottom: 72px; /* space for bottom nav */
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .page-hero {
        padding: 4rem 0 3rem;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .page-hero-subtitle {
        font-size: 1rem;
    }

    .hamburger-menu {
        display: flex !important;
        position: relative;
        z-index: 1001;
    }

    /* Hide desktop cart and user dropdown on mobile */
    .desktop-cart-wrapper,
    .desktop-user-wrapper,
    .desktop-login-wrapper {
        display: none !important;
    }

    /* Mobile Navbar Layout */
    .navbar .container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 0.5rem;
    }

    .hamburger-menu {
        order: 1;
    }

    .logo {
        order: 2;
        justify-self: center;
        font-size: 1.5rem;
    }

    .navbar-user-actions {
        display: flex !important;
        order: 3;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: linear-gradient(165deg, #C8915F 0%, #D4A574 50%, #C8915F 100%);
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.3), 2px 0 12px rgba(198, 124, 78, 0.15);
        border-right: 2px solid rgba(218, 165, 105, 0.3);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        left: 0;
        animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideInLeft {
        from {
            left: -100%;
            opacity: 0.8;
        }
        to {
            left: 0;
            opacity: 1;
        }
    }

    /* Hide bottom nav when sidebar is open */
    .nav-links.active ~ .bottom-nav,
    body:has(.nav-links.active) .bottom-nav {
        display: none !important;
    }
    
    /* Show mobile cart link in sidebar */
    .mobile-cart-nav-item {
        display: block !important;
    }
    
    /* Menu Items Spacing Container */
    .nav-links > li {
        flex: 0 0 auto;
    }
    
    /* Remove sticky positioning from last child */
    .nav-links > li:last-child {
        position: relative;
        background: transparent;
        backdrop-filter: none;
        padding-bottom: 0;
        box-shadow: none;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    /* Mobile Sidebar Header */
    .mobile-sidebar-header {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        background: linear-gradient(135deg, #DAA569 0%, #C67C4E 50%, #A0603D 100%);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        flex-shrink: 0;
        border-bottom: 1px solid rgba(218, 165, 105, 0.4);
        position: relative;
        overflow: hidden;
    }

    .mobile-sidebar-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="coffee-beans" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="3" fill="rgba(255,255,255,0.05)"/><circle cx="35" cy="35" r="2.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23coffee-beans)"/></svg>');
        opacity: 0.3;
        pointer-events: none;
    }

    .mobile-logo {
        display: flex;
        position: relative;
        z-index: 1;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem;
    }

    .mobile-logo-icon {
        font-size: 2.25rem;
        line-height: 1;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    }

    .mobile-logo-text {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        flex: 1;
    }

    .mobile-brand-name {
        font-family: 'Playfair Display', serif;
        font-size: 1.3rem;
        font-weight: 700;
        color: #FFFFFF;
        line-height: 1.2;
        letter-spacing: 0.3px;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .mobile-brand-tagline {
        font-family: 'Poppins', sans-serif;
        font-size: 0.55rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        letter-spacing: 1.8px;
        text-transform: uppercase;
    }

    /* Guest Profile Section */
    .guest-profile-section {
        background: linear-gradient(135deg, rgba(250, 243, 237, 0.95) 0%, rgba(255, 248, 240, 0.98) 100%);
        padding: 1.25rem 1.25rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
        border-radius: 18px;
        box-shadow: 0 8px 24px rgba(198, 124, 78, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 2px solid rgba(218, 165, 105, 0.3);
        margin-top: 1rem;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(8px);
    }

    .guest-profile-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(218, 165, 105, 0.1) 0%, transparent 70%);
        animation: glowPulse 4s ease-in-out infinite;
    }

    @keyframes glowPulse {
        0%, 100% { opacity: 0.5; transform: scale(1); }
        50% { opacity: 0.8; transform: scale(1.1); }
    }

    .guest-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: linear-gradient(135deg, #DAA569 0%, #C67C4E 50%, #A0603D 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.6rem;
        font-weight: 700;
        font-family: 'Playfair Display', serif;
        box-shadow: 0 6px 20px rgba(198, 124, 78, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
        border: 3px solid rgba(255, 255, 255, 0.3);
        position: relative;
        z-index: 1;
        transition: transform 0.3s ease;
    }

    .guest-avatar:hover {
        transform: scale(1.05);
    }

    .guest-info { 
        text-align: center;
        position: relative;
        z-index: 1;
    }

    .guest-title {
        font-size: 1.05rem;
        font-weight: 600;
        color: #2C1810;
        margin-bottom: 0.35rem;
        font-family: 'Poppins', sans-serif;
    }

    .guest-badge {
        display: inline-block;
        background: linear-gradient(135deg, #FDB022 0%, #F5A623 100%);
        color: #2C1810;
        padding: 0.35rem 1.1rem;
        border-radius: 24px;
        font-size: 0.7rem;
        font-weight: 700;
        font-family: 'Poppins', sans-serif;
        box-shadow: 0 4px 12px rgba(253, 176, 34, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Modern Mobile Sidebar Header - Enhanced UI/UX */
    .modern-mobile-header {
        position: relative;
        z-index: 1;
        padding: 1.5rem 1.25rem;
        animation: slideInHeaderContent 0.5s ease-out;
    }

    @keyframes slideInHeaderContent {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modern-mobile-logo {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.25rem;
        padding: 0;
        transition: all 0.3s ease;
    }

    .modern-mobile-logo:hover {
        transform: translateX(3px);
    }

    .modern-logo-circle {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.25) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: white;
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.25),
            inset 0 2px 6px rgba(255, 255, 255, 0.3),
            0 0 0 3px rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }

    .modern-logo-circle::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transform: rotate(45deg);
        transition: all 0.5s;
    }

    .modern-logo-circle:hover::before {
        animation: shimmer 1.5s infinite;
    }

    @keyframes shimmer {
        0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
        100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    }

    .modern-logo-circle:hover {
        transform: scale(1.08) rotate(5deg);
        box-shadow: 
            0 12px 28px rgba(0, 0, 0, 0.3),
            inset 0 2px 8px rgba(255, 255, 255, 0.4),
            0 0 0 4px rgba(255, 255, 255, 0.2);
    }

    .modern-logo-text {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        flex: 1;
        min-width: 0;
    }

    .modern-brand-name {
        font-family: 'Playfair Display', serif;
        font-size: clamp(1.3rem, 4.5vw, 1.6rem);
        font-weight: 700;
        color: #FFFFFF;
        line-height: 1.2;
        letter-spacing: 0.8px;
        text-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.3),
            0 1px 3px rgba(0, 0, 0, 0.2);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        position: relative;
    }

    .modern-brand-tagline {
        font-family: 'Poppins', sans-serif;
        font-size: clamp(0.65rem, 2.2vw, 0.75rem);
        font-weight: 600;
        color: rgba(255, 255, 255, 0.92);
        letter-spacing: 2px;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: 0.9;
    }

    .modern-user-section,
    .modern-guest-section {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.22) 100%);
        padding: 1.15rem;
        border-radius: 20px;
        display: flex;
        align-items: center;
        gap: 1rem;
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.18),
            inset 0 1px 3px rgba(255, 255, 255, 0.25);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .modern-user-section::before,
    .modern-guest-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 150%;
        height: 150%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .modern-user-section:hover::before,
    .modern-guest-section:hover::before {
        opacity: 1;
    }

    .modern-user-section:hover,
    .modern-guest-section:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.28) 100%);
        transform: translateY(-3px) scale(1.01);
        box-shadow: 
            0 12px 28px rgba(0, 0, 0, 0.25),
            inset 0 1px 4px rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .modern-user-section:active,
    .modern-guest-section:active {
        transform: translateY(-1px) scale(0.99);
    }

    .modern-user-avatar,
    .modern-guest-avatar {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 100%);
        color: var(--brew-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 1.15rem;
        box-shadow: 
            0 6px 16px rgba(0, 0, 0, 0.25),
            inset 0 1px 3px rgba(198, 124, 78, 0.1);
        border: 3px solid rgba(255, 255, 255, 0.7);
        flex-shrink: 0;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .modern-user-avatar::after,
    .modern-guest-avatar::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent 40%, rgba(198, 124, 78, 0.15) 50%, transparent 60%);
        transform: rotate(45deg);
        animation: avatarShine 3s infinite;
    }

    @keyframes avatarShine {
        0%, 100% { transform: translateX(-100%) rotate(45deg); }
        50% { transform: translateX(100%) rotate(45deg); }
    }

    .modern-user-section:hover .modern-user-avatar,
    .modern-guest-section:hover .modern-guest-avatar {
        transform: scale(1.1);
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.3),
            inset 0 1px 4px rgba(198, 124, 78, 0.15);
        border-color: rgba(255, 255, 255, 0.85);
    }

    .modern-user-info,
    .modern-guest-info {
        flex: 1;
        min-width: 0;
    }

    .modern-user-name,
    .modern-guest-title {
        font-size: clamp(1rem, 3.8vw, 1.1rem);
        font-weight: 600;
        color: white;
        margin-bottom: 0.35rem;
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.2),
            0 1px 2px rgba(0, 0, 0, 0.15);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: 0.3px;
    }

    .modern-user-email {
        font-size: clamp(0.72rem, 2.6vw, 0.82rem);
        color: rgba(255, 255, 255, 0.88);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
        letter-spacing: 0.2px;
    }

    .modern-guest-login {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 100%);
        color: var(--brew-primary);
        padding: 0.7rem 1.4rem;
        border-radius: 12px;
        font-size: clamp(0.78rem, 2.6vw, 0.88rem);
        font-weight: 600;
        text-decoration: none;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.2),
            inset 0 1px 2px rgba(255, 255, 255, 0.5);
        white-space: nowrap;
        letter-spacing: 0.3px;
        position: relative;
        overflow: hidden;
    }

    .modern-guest-login::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(198, 124, 78, 0.1);
        transform: translate(-50%, -50%);
        transition: width 0.5s, height 0.5s;
    }

    .modern-guest-login:hover::before {
        width: 300px;
        height: 300px;
    }

    .modern-guest-login:hover {
        background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.98) 100%);
        transform: translateY(-3px) scale(1.03);
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.28),
            inset 0 1px 3px rgba(255, 255, 255, 0.6);
        color: var(--brew-primary);
    }

    .modern-guest-login:active {
        transform: translateY(-1px) scale(1.01);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* Responsive adjustments for smaller screens - 480px and below */
    @media (max-width: 480px) {
        .modern-mobile-header {
            padding: 0.875rem;
        }

        .modern-logo-circle {
            width: 54px;
            height: 54px;
            font-size: 1.75rem;
        }

        .modern-mobile-logo {
            gap: 0.875rem;
            margin-bottom: 1.125rem;
            padding: 0.375rem;
        }

        .modern-brand-name {
            font-size: clamp(1.15rem, 3.5vw, 1.35rem);
        }

        .modern-brand-tagline {
            font-size: clamp(0.58rem, 2vw, 0.68rem);
        }

        .modern-user-section,
        .modern-guest-section {
            padding: 0.9rem;
            gap: 0.8rem;
            border-radius: 16px;
        }

        .modern-user-avatar,
        .modern-guest-avatar {
            width: 46px;
            height: 46px;
            font-size: 1rem;
        }

        .modern-user-name,
        .modern-guest-title {
            font-size: clamp(0.9rem, 3vw, 1rem);
        }

        .modern-user-email {
            font-size: clamp(0.68rem, 2.3vw, 0.78rem);
        }

        .modern-guest-login {
            padding: 0.55rem 1.1rem;
            font-size: clamp(0.72rem, 2.3vw, 0.82rem);
            border-radius: 9px;
        }

        /* Adjust nav links for smaller screens */
        .nav-links {
            width: 90%;
            max-width: 320px;
        }
    }

    /* Extra small screens - 360px and below */
    @media (max-width: 360px) {
        .modern-mobile-header {
            padding: 0.75rem;
        }

        .modern-logo-circle {
            width: 50px;
            height: 50px;
            font-size: 1.6rem;
        }

        .modern-mobile-logo {
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .modern-user-section,
        .modern-guest-section {
            padding: 0.875rem;
            gap: 0.75rem;
        }

        .modern-user-avatar,
        .modern-guest-avatar {
            width: 44px;
            height: 44px;
            font-size: 0.95rem;
        }

        .modern-guest-login {
            padding: 0.5rem 1rem;
            font-size: 0.75rem;
        }

        /* Tighter layout for very small screens */
        .nav-links {
            width: 92%;
            max-width: 300px;
        }

        .modern-brand-name {
            font-size: 1.15rem;
        }

        .modern-brand-tagline {
            font-size: 0.58rem;
        }
    }

    /* Navigation Links Container */
    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0.15rem 0.75rem;
        list-style: none;
    }

    /* Dividers between items */
    .nav-links li + li { border-top: none; }

    .nav-link {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        font-weight: 500;
        width: 100%;
        text-align: left;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        color: rgba(44, 24, 16, 0.9);
        gap: 1rem;
        box-sizing: border-box;
        margin: 0;
        position: relative;
        background: transparent;
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
        border-radius: 14px;
        font-family: 'Poppins', sans-serif;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        background: linear-gradient(180deg, #DAA569 0%, #C67C4E 100%);
        border-radius: 0 4px 4px 0;
        transition: height 0.3s ease;
        box-shadow: 0 0 12px rgba(218, 165, 105, 0.6);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:active { 
        background: rgba(218, 165, 105, 0.15);
        transform: scale(0.98);
    }

    .nav-link:hover {
        background: rgba(160, 96, 61, 0.25);
        color: #2C1810;
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .nav-link:hover::before {
        height: 60%;
    }

    .nav-link.active {
        background: linear-gradient(90deg, rgba(160, 96, 61, 0.35) 0%, rgba(160, 96, 61, 0.15) 100%);
        color: #2C1810;
        font-weight: 600;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    }

    .nav-link.active::before {
        height: 70%;
    }

    /* Show mobile-only text on mobile */
    .mobile-only {
        display: inline;
    }

    /* Log In Button */
    .nav-btn {
        width: calc(100% - 1.5rem);
        text-align: center;
        margin: 0 0.75rem;
        padding: 1.1rem 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        box-sizing: border-box;
        background: linear-gradient(135deg, #B8865D 0%, #A0603D 50%, #8B4E2F 100%) !important;
        color: #FFFFFF !important;
        border-radius: 16px;
        font-weight: 700;
        font-size: 1rem;
        box-shadow: 0 8px 24px rgba(160, 96, 61, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
        border: none;
    }

    .nav-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-btn::after {
        content: '→';
        margin-left: 0.5rem;
        font-size: 1.2rem;
        transition: transform 0.3s ease;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .nav-btn:active { 
        transform: translateY(1px);
        box-shadow: 0 4px 12px rgba(218, 165, 105, 0.3);
    }

    .nav-btn:hover { 
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(160, 96, 61, 0.5), 0 6px 16px rgba(0, 0, 0, 0.25);
        background: linear-gradient(135deg, #C8915F 0%, #B8865D 50%, #A0603D 100%);
    }

    .nav-btn:hover::before {
        opacity: 1;
    }

    .nav-btn:hover::after {
        transform: translateX(5px);
    }

    /* Mobile dashboard button with icon styling */
    .nav-btn i {
        margin-right: 5px;
        font-size: 0.9rem;
    }

    .footer {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
    }

    .footer-column {
        width: 100%;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: calc(64px + 1rem); /* above bottom nav */
        right: 1.5rem;
    }

    .coffee-bean {
        width: 30px;
        height: 40px;
    }

    /* Bottom Navigation Bar */
    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 64px;
        background: #FFFFFF;
        border-top: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 -6px 18px rgba(0,0,0,0.06);
        display: flex;
        align-items: center;
        justify-content: space-around; /* even spacing for 6 tabs */
        padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
        z-index: 1002;
        pointer-events: auto;
    }

    .bn-link, .bn-link button {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #6B7280;
        gap: 3px;
        position: relative;
        font-size: 0.68rem;
        -webkit-tap-highlight-color: transparent;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        font-family: inherit;
    }

    .bn-link i, .bn-link button i {
        font-size: 1.15rem;
        line-height: 1;
        color: #6B7280;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .bn-link:active i, .bn-link button:active i { transform: scale(0.92); }

    .bn-link.active,
    .bn-link:hover,
    .bn-link.active button,
    .bn-link:hover button {
        color: var(--brew-primary);
    }

    .bn-link.active i,
    .bn-link:hover i,
    .bn-link.active button i,
    .bn-link:hover button i {
        color: var(--brew-primary);
    }

    /* Notification badge styles for bottom nav */
    .bn-link .sidebar-notification-badge {
        position: absolute;
        top: 6px;
        right: 50%;
        transform: translateX(12px);
        background: #EF4444;
        color: white;
        font-size: 0.65rem;
        font-weight: 700;
        padding: 2px 5px;
        border-radius: 10px;
        min-width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
        border: 2px solid white;
        z-index: 10;
    }

    /* .bn-login removed: login is now a standard tab (.bn-link) */
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .page-hero {
        padding: 3rem 0 2rem;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero-subtitle {
        font-size: 0.9rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .nav-links {
        width: 90%;
        padding: 4rem 1.5rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }
}
