/**
 * DigitalMDHusain v2 - Header Styles
 * Responsive Header with Centered Desktop Menu, Left Brand, Right Actions,
 * and Sleek Off-Canvas Drawer Navigation for Tablet & Mobile.
 */

/* ============================================
   HEADER WRAPPER
   ============================================ */

.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 12px 35px rgba(15, 23, 42, 0.09);
    border-bottom-color: rgba(15, 23, 42, 0.12);
}

/* ============================================
   NAVIGATION (3-COLUMN FLEX LAYOUT)
   ============================================ */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 76px;
    padding: 12px 0;
    position: relative;
    gap: 16px;
}

/* ============================================
   BRAND LOGO (LEFT SIDE)
   ============================================ */

.nav__logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    font-family: var(--font-secondary, 'Inter', system-ui, sans-serif);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-gray-900, #0f172a);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: transform var(--transition-fast, 0.2s ease), opacity var(--transition-fast, 0.2s ease);
    z-index: 2;
}

.nav__logo:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.nav__logo-text {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   DESKTOP NAVIGATION (CENTERED)
   ============================================ */

.nav__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    margin: 0 auto;
    gap: 4px;
    list-style: none;
    padding: 0;
    z-index: 1;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-700, #334155);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    transform: translateX(-50%);
    transition: width 0.2s ease;
    border-radius: 2px;
}

.nav__link:hover,
.nav__link.active {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.06);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 60%;
}

.nav__dropdown-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    color: #94a3b8;
}

.nav__item--dropdown:hover .nav__dropdown-icon {
    transform: rotate(180deg);
    color: #4f46e5;
}

.nav__item--dropdown {
    position: static;
}

/* ============================================
   DESKTOP MEGA MENU DROPDOWN
   ============================================ */

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(880px, calc(100% - 32px));
    max-width: 900px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.03);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1050;
    pointer-events: none;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown.is-dropdown-open .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
    pointer-events: auto;
}

.nav__item--dropdown:hover .nav__dropdown-icon,
.nav__item--dropdown.is-dropdown-open .nav__dropdown-icon {
    transform: rotate(180deg);
    color: #4f46e5;
}

.nav__dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1280px) and (min-width: 1025px) {
    .nav__dropdown {
        width: calc(100% - 24px);
        padding: 18px 16px;
    }
    
    .nav__dropdown-grid {
        gap: 12px;
    }
    
    .nav__dropdown-list a {
        padding: 5px 6px;
        font-size: 13px;
        gap: 6px;
    }
    
    .nav__dropdown-title {
        font-size: 12px;
        margin-bottom: 8px;
    }
}

.nav__dropdown-column {
    display: flex;
    flex-direction: column;
}

.nav__dropdown-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.nav__dropdown-title svg {
    width: 16px;
    height: 16px;
    color: #4f46e5;
    flex-shrink: 0;
}

.nav__dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav__dropdown-list li {
    margin: 0;
}

.nav__dropdown-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 6px 10px;
    border-radius: 8px;
    line-height: 1.4;
}

.nav__dropdown-list a svg {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav__dropdown-list a:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.06);
    transform: translateX(3px);
}

.nav__dropdown-list a:hover svg {
    color: #4f46e5;
}

/* ============================================
   HEADER ACTIONS (RIGHT SIDE)
   ============================================ */

.nav__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
    z-index: 2;
}

/* Icon Buttons (Search, Wishlist, Cart, Tickets) */
.nav__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #475569;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    overflow: visible;
}

.nav__icon-btn:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.15);
}

.nav__icon-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Red Badges for Cart, Wishlist, Tickets */
.nav__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    z-index: 99;
    pointer-events: none;
    padding: 0;
    line-height: 1;
}

.nav__badge:empty,
.nav__badge[data-count="0"],
.nav__badge:not([data-count]):is(:empty) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Desktop Guest Auth Buttons */
.nav__btn-login {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav__btn-login:hover {
    color: #4f46e5;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.nav__btn-register {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    white-space: nowrap;
}

.nav__btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
    color: #ffffff;
}

/* Profile Dropdown */
.nav__profile-dropdown {
    position: relative;
}

.nav__profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav__profile-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.nav__profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.nav__profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.nav__profile-welcome {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav__profile-name {
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav__profile-chevron {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.nav__profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.03);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1050;
    pointer-events: none;
}

.nav__profile-dropdown:hover .nav__profile-menu,
.nav__profile-dropdown.is-profile-open .nav__profile-menu,
.nav__profile-menu.nav__profile-menu--active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav__profile-dropdown:hover .nav__profile-chevron,
.nav__profile-dropdown.is-profile-open .nav__profile-chevron {
    transform: rotate(180deg);
}

.nav__profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.nav__profile-menu-item svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    transition: color 0.15s ease;
}

.nav__profile-menu-item:hover {
    background: #f8fafc;
    color: #4f46e5;
}

.nav__profile-menu-item:hover svg {
    color: #4f46e5;
}

.nav__profile-menu-item--logout {
    color: #ef4444 !important;
}

.nav__profile-menu-item--logout:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.nav__profile-menu-item--logout svg {
    color: #ef4444 !important;
}

/* ============================================
   MOBILE MENU TOGGLE (HAMBURGER)
   ============================================ */

.nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.nav__toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #4f46e5;
}

.nav__toggle-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

/* ============================================
   MOBILE & TABLET OFF-CANVAS DRAWER
   ============================================ */

.nav__mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.3s ease;
}

.nav__mobile.is-open {
    visibility: visible;
    pointer-events: auto;
}

/* Backdrop */
.nav__mobile-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__mobile.is-open .nav__mobile-backdrop {
    opacity: 1;
}

/* Drawer Container */
.nav__mobile-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: #ffffff;
    box-shadow: -10px 0 45px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.nav__mobile.is-open .nav__mobile-drawer {
    transform: translateX(0);
}

/* Drawer Header */
.nav__mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
    flex-shrink: 0;
}

.nav__mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav__mobile-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: rotate(90deg);
}

.nav__mobile-close svg {
    width: 18px;
    height: 18px;
}

/* Drawer Content (Scrollable) */
.nav__mobile-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 20px 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Drawer Quick Search Trigger */
.nav__mobile-search-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.nav__mobile-search-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.nav__mobile-search-btn svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

/* Drawer Navigation List */
.nav__mobile-nav {
    width: 100%;
}

.nav__mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav__mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.nav__mobile-link:hover,
.nav__mobile-link.active {
    background: rgba(79, 70, 229, 0.07);
    color: #4f46e5;
}

.nav__mobile-arrow {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.nav__mobile-link:hover .nav__mobile-arrow {
    transform: translateX(3px);
    color: #4f46e5;
}

/* Accordion for Mega Menu in Mobile */
.nav__mobile-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.nav__mobile-accordion-toggle:hover,
.nav__mobile-accordion-toggle.is-active {
    background: rgba(79, 70, 229, 0.07);
    color: #4f46e5;
}

.nav__mobile-chevron {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.nav__mobile-accordion-toggle.is-active .nav__mobile-chevron {
    transform: rotate(180deg);
    color: #4f46e5;
}

.nav__mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__mobile-submenu.is-expanded {
    max-height: 1400px;
}

.nav__mobile-submenu-inner {
    padding: 6px 8px 12px 16px;
    border-left: 2px solid #e2e8f0;
    margin-left: 16px;
    margin-top: 4px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav__mobile-sublink--all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.06);
}

.nav__mobile-sublink--all svg {
    width: 14px;
    height: 14px;
}

.nav__mobile-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav__mobile-group-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 4px 10px 2px;
}

.nav__mobile-grouplist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav__mobile-sublink {
    display: block;
    padding: 6px 10px;
    font-size: 13.5px;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.nav__mobile-sublink:hover {
    color: #4f46e5;
    background: #f8fafc;
    padding-left: 14px;
}

/* Quick Links Bar (Wishlist & Cart in Drawer) */
.nav__mobile-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.nav__mobile-quick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav__mobile-quick-item:hover {
    color: #4f46e5;
    border-color: #cbd5e1;
    background: #ffffff;
}

.nav__mobile-quick-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #64748b;
}

.nav__mobile-quick-icon svg {
    width: 18px;
    height: 18px;
}

.nav__mobile-quick-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.nav__mobile-quick-badge:empty,
.nav__mobile-quick-badge[data-count="0"],
.nav__mobile-quick-badge:not([data-count]):is(:empty) {
    display: none !important;
}

/* User Profile Card in Drawer */
.nav__mobile-auth {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.nav__mobile-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 12px;
}

.nav__mobile-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.nav__mobile-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    overflow: hidden;
}

.nav__mobile-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav__mobile-user-email {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav__mobile-user-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.nav__mobile-user-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
}

.nav__mobile-user-link:hover {
    background: #f8fafc;
    color: #4f46e5;
}

.nav__mobile-user-link svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

.nav__mobile-user-link:hover svg {
    color: #4f46e5;
}

.nav__mobile-subbadge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.nav__mobile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav__mobile-logout-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.nav__mobile-logout-btn svg {
    width: 18px;
    height: 18px;
}

/* Guest Buttons in Drawer */
.nav__mobile-guest-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav__mobile-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.nav__mobile-auth-btn svg {
    width: 18px;
    height: 18px;
}

/* Body Scroll Lock */
body.menu-open {
    overflow: hidden !important;
    touch-action: none;
}

/* ============================================
   SEARCH MODAL
   ============================================ */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.search-modal--active {
    display: block;
    opacity: 1;
}

.search-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-modal__content {
    position: relative;
    max-width: 800px;
    width: 90%;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal--active .search-modal__content {
    transform: translateY(0) scale(1);
}

.search-modal__header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #fafbfc;
}

.search-modal__input-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-modal__icon {
    width: 24px;
    height: 24px;
    color: #64748b;
    flex-shrink: 0;
}

.search-modal__input {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 0;
    border: none;
    outline: none;
    background: transparent;
    color: #1e293b;
    line-height: 1.4;
}

.search-modal__input::placeholder {
    color: #94a3b8;
}

.search-modal__close {
    width: 38px;
    height: 38px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.search-modal__results {
    max-height: 440px;
    overflow-y: auto;
    padding: 16px 24px;
}

.search-modal__result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.search-modal__result-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.search-modal__result-image {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

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

.search-modal__result-info {
    flex: 1;
    min-width: 0;
}

.search-modal__result-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-modal__result-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
}

.search-modal__result-price {
    font-weight: 700;
    color: #4f46e5;
}

.search-modal__footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    background: #fafbfc;
}

.search-modal__section-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px;
}

.search-modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-modal__tag {
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-modal__tag:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

/* ============================================
   RESPONSIVE DESIGN BREAKPOINTS
   ============================================ */

/* Laptop & Large Screen Alignment */
@media (min-width: 1025px) {
    .nav__toggle {
        display: none !important;
    }
    
    .nav__mobile {
        display: none !important;
    }
}

/* Tablet & Mobile Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
    .nav {
        padding: 10px 0;
        min-height: 68px;
    }
    
    /* Hide desktop center navigation */
    .nav__menu {
        display: none !important;
    }
    
    /* Show mobile hamburger toggle */
    .nav__toggle {
        display: inline-flex !important;
    }
    
    /* Hide profile name text on tablet to keep header tidy */
    .nav__profile-info,
    .nav__profile-chevron {
        display: none !important;
    }
    
    .nav__profile-btn {
        padding: 4px;
        border: none;
    }
}

/* Phone & Small Tablet Breakpoint (<= 768px) */
@media (max-width: 768px) {
    .header {
        padding: 0;
    }
    
    .nav {
        min-height: 62px;
        gap: 8px;
    }
    
    .nav__logo {
        font-size: 18px;
    }
    
    .nav__actions {
        gap: 6px;
    }
    
    /* Hide desktop Login and Register buttons on mobile (they are in the drawer) */
    .nav__btn-login,
    .nav__btn-register {
        display: none !important;
    }
    
    /* On mobile, profile dropdown is accessible via full drawer */
    .nav__profile-dropdown {
        display: none !important;
    }
    
    .nav__icon-btn {
        width: 38px;
        height: 38px;
    }
    
    .nav__toggle {
        width: 38px;
        height: 38px;
    }
    
    /* Search Modal on mobile */
    .search-modal__content {
        width: 95%;
        margin: 30px auto;
        border-radius: 16px;
    }
    
    .search-modal__header {
        padding: 16px 20px;
    }
    
    .search-modal__input {
        font-size: 16px;
    }
    
    .search-modal__results {
        padding: 12px 16px;
        max-height: 360px;
    }
    
    .search-modal__footer {
        padding: 16px 20px;
    }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
    .nav__logo {
        font-size: 16px;
    }
    
    /* Hide tickets icon on small phones to prevent any header squeeze */
    .nav__icon-btn--tickets {
        display: none !important;
    }
    
    .nav__icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .nav__toggle {
        width: 36px;
        height: 36px;
    }
    
    .nav__mobile-drawer {
        max-width: 100%;
    }
}
