/* =============================================================================
   MEGA MENU CSS - AstroRashi Premium Navigation
   Cosmic Dark Theme | Glassmorphism | Golden Accents
   ============================================================================= */

/* CSS Custom Properties (inherited from cosmic-theme.css) */
:root {
    --mm-gold:          #F6B73C;
    --mm-gold-dim:      rgba(246, 183, 60, 0.3);
    --mm-gold-glow:     rgba(246, 183, 60, 0.15);
    --mm-red:           #EE4E5E;
    --mm-glass-bg:      rgba(11, 13, 24, 0.97);
    --mm-glass-light:   rgba(22, 26, 46, 0.95);
    --mm-border:        rgba(246, 183, 60, 0.22);
    --mm-text:          #ffffff;
    --mm-text-muted:    rgba(255, 255, 255, 0.55);
    --mm-blur:          blur(80px) saturate(180%);
    --mm-radius-lg:     20px;
    --mm-radius-md:     12px;
    --mm-radius-sm:     8px;
    --mm-transition:    0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mega-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.4s ease;
}

.mega-header.header-scrolled {
    background: rgba(6, 7, 14, 0.95) !important;
    backdrop-filter: var(--mm-blur) !important;
    -webkit-backdrop-filter: var(--mm-blur) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(246, 183, 60, 0.1) !important;
}

/* Top bar (logo + user controls) */
.mega-topbar {
    background: transparent;
    border-bottom: 1px solid rgba(246, 183, 60, 0.08);
    padding: 10px 0;
}

/* Use full-width fluid container for the header so nothing clips */
.mega-topbar > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* =============================================================================
   LOGO
   ============================================================================= */

.mega-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    flex-shrink: 0;
}

.mega-logo:hover { text-decoration: none !important; }

.mega-logo img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: contain;
}

.mega-logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mega-logo-name {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F6B73C, #fff 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.mega-logo-tagline {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* =============================================================================
   TOP RIGHT ACTIONS (Translate + User / Sign In)
   ============================================================================= */

.mega-right-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0;
    height: 38px !important;
}

/* ── Theme Toggle Button ── */
.ar-theme-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(246, 183, 60, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0;
    outline: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
.ar-theme-toggle i {
    font-size: 0.95rem !important;
    color: #F6B73C !important;
    -webkit-text-fill-color: #F6B73C !important;
    pointer-events: none;
    display: block !important;
    line-height: 1 !important;
}
.ar-theme-toggle:hover {
    background: rgba(246, 183, 60, 0.18) !important;
    border-color: #F6B73C !important;
    box-shadow: 0 0 12px rgba(246, 183, 60, 0.35) !important;
    transform: rotate(20deg) !important;
}

/* Sign In button */
.mega-signin-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(246, 183, 60, 0.35) !important;
    border-radius: 25px !important;
    padding: 0 18px !important;
    height: 38px !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all var(--mm-transition) !important;
    white-space: nowrap !important;
    -webkit-text-fill-color: #fff !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
.mega-signin-btn:hover {
    background: rgba(246, 183, 60, 0.18) !important;
    border-color: var(--mm-gold) !important;
    box-shadow: 0 0 14px rgba(246, 183, 60, 0.25) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    transform: translateY(-1px) !important;
}
.mega-signin-btn svg path { fill: #fff !important; }

/* User avatar dropdown */
.mega-user-wrap {
    position: relative;
}
.mega-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(246, 183, 60, 0.4);
    object-fit: cover;
    cursor: pointer;
    transition: border-color 0.2s;
}
.mega-user-avatar:hover {
    border-color: var(--mm-gold);
}

/* Mobile hamburger */
.mega-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    gap: 5px;
    padding: 0;
    transition: all 0.3s ease;
}
.mega-hamburger:hover {
    background: rgba(246, 183, 60, 0.1);
    border-color: rgba(246, 183, 60, 0.3);
}
.mega-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.mega-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mega-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mega-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================================
   DESKTOP NAVIGATION BAR
   ============================================================================= */

.mega-navbar {
    background: rgba(16, 18, 32, 0.72);
    backdrop-filter: var(--mm-blur);
    -webkit-backdrop-filter: var(--mm-blur);
    border: 1px solid rgba(246, 183, 60, 0.12);
    border-radius: 50px;
    padding: 4px 8px;
    margin: 6px 0 10px;
}

.mega-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 12px;
    gap: 24px;
    width: 100%;
}

/* =============================================================================
   NAV ITEMS (desktop)
   ============================================================================= */

.mega-nav-item {
    position: static; /* changed to static for mega panels to be relative to full bar */
    flex-shrink: 0;
}

.mega-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 40px;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all var(--mm-transition);
    cursor: pointer;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.88);
    border: 1px solid transparent;
    background: transparent;
    position: relative;
}

.mega-nav-link .mm-icon {
    font-size: 0.85rem;
    color: rgba(246, 183, 60, 0.7);
    transition: color 0.2s;
    -webkit-text-fill-color: rgba(246, 183, 60, 0.7);
}

.mega-nav-link .mm-chevron {
    font-size: 0.65rem;
    margin-left: 2px;
    color: rgba(255,255,255,0.4);
    transition: transform 0.3s ease, color 0.2s;
    -webkit-text-fill-color: rgba(255,255,255,0.4);
}

.mega-nav-item:hover .mega-nav-link,
.mega-nav-item.is-open .mega-nav-link {
    background: rgba(246, 183, 60, 0.1);
    border-color: rgba(246, 183, 60, 0.25);
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.mega-nav-item:hover .mega-nav-link .mm-icon,
.mega-nav-item.is-open .mega-nav-link .mm-icon {
    color: var(--mm-gold);
    -webkit-text-fill-color: var(--mm-gold);
}

.mega-nav-item:hover .mega-nav-link .mm-chevron,
.mega-nav-item.is-open .mega-nav-link .mm-chevron {
    transform: rotate(180deg);
    color: rgba(255,255,255,0.7);
    -webkit-text-fill-color: rgba(255,255,255,0.7);
}

/* Active nav link */
.mega-nav-link.mm-active {
    background: linear-gradient(135deg, rgba(246, 183, 60, 0.2), rgba(238, 78, 94, 0.15)) !important;
    border-color: rgba(246, 183, 60, 0.45) !important;
    color: #F6B73C !important;
    -webkit-text-fill-color: #F6B73C !important;
    box-shadow: 0 0 16px rgba(246, 183, 60, 0.2);
}
.mega-nav-link.mm-active .mm-icon {
    color: var(--mm-gold) !important;
    -webkit-text-fill-color: var(--mm-gold) !important;
}

/* CTA Talk/Chat buttons in nav */
.mega-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #F6B73C, #FF9F1A);
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 40px;
    border: none;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(246,183,60,0.3);
    white-space: nowrap;
}
.mega-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(246,183,60,0.45);
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}
.mega-cta-btn-outline {
    background: transparent;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: none;
}
.mega-cta-btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.35);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* =============================================================================
   MEGA MENU PANELS (Desktop)
   ============================================================================= */

.mega-panel-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    display: none;
    z-index: 10000;
    padding: 0 16px;
    pointer-events: none;
    /* Extend hit area upward so mouse moving from link→panel stays 'inside' */
    padding-top: 16px;
    margin-top: -16px;
}

/* Show panel on hover (handled via JS for accessibility, CSS for speed) */
.mega-nav-item:hover .mega-panel-wrapper,
.mega-nav-item.is-open .mega-panel-wrapper {
    display: block;
    pointer-events: all;
    animation: megaPanelIn var(--mm-transition) both;
}

/* Hover bridge: invisible pseudo-element that fills the gap between
   the nav pill and the dropdown panel, keeping mouse-hover alive
   as the user moves cursor downward into the panel */
.mega-nav-item > .mega-nav-link::after {
    content: '';
    position: absolute;
    bottom: -20px;   /* extends 20px below the link */
    left: -10px;
    right: -10px;
    height: 20px;    /* covers the gap exactly */
    display: block;
    z-index: 10001;
}

/* Small delay before hiding so a brief mouse-out doesn't close the panel */
.mega-nav-item:not(:hover) .mega-panel-wrapper {
    /* Delay hide by 120ms — keeps panel open long enough to reach it */
    transition: display 0s 120ms;
}

@keyframes megaPanelIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* The glass panel itself */
.mega-panel {
    background: #0b0d18 !important;
    background: var(--mm-glass-bg) !important;
    backdrop-filter: var(--mm-blur) !important;
    -webkit-backdrop-filter: var(--mm-blur) !important;
    border: 1px solid var(--mm-border) !important;
    border-radius: var(--mm-radius-lg);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
}

/* Panel inner layout */
.mega-panel-inner {
    display: grid;
    padding: 0;
}

/* Panel header (category title + desc) */
.mega-panel-header {
    background: rgba(246, 183, 60, 0.05);
    border-bottom: 1px solid rgba(246, 183, 60, 0.1);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mega-panel-header .mph-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(246, 183, 60, 0.15);
    border: 1px solid rgba(246, 183, 60, 0.3);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mega-panel-header .mph-icon i {
    color: var(--mm-gold) !important;
    font-size: 0.95rem;
    -webkit-text-fill-color: var(--mm-gold) !important;
}
.mega-panel-header .mph-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    -webkit-text-fill-color: #fff;
}
.mega-panel-header .mph-desc {
    font-size: 0.78rem;
    color: var(--mm-text-muted);
    -webkit-text-fill-color: var(--mm-text-muted);
    margin-top: 2px;
}

/* Panel content area */
.mega-panel-body {
    padding: 20px 24px;
}

/* =============================================================================
   STANDARD MEGA PANEL (2-column grid of items)
   ============================================================================= */

.mega-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

/* Single mega panel item */
.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--mm-radius-md);
    text-decoration: none !important;
    transition: all var(--mm-transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.mega-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(246,183,60,0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
}

.mega-item:hover {
    background: rgba(246, 183, 60, 0.08);
    border-color: rgba(246, 183, 60, 0.2);
    transform: translateX(3px);
    text-decoration: none !important;
}
.mega-item:hover::before { opacity: 1; }

.mega-item-icon {
    width: 38px; height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(246, 183, 60, 0.1);
    border: 1px solid rgba(246, 183, 60, 0.2);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.mega-item-icon i {
    font-size: 0.9rem;
    color: var(--mm-gold) !important;
    -webkit-text-fill-color: var(--mm-gold) !important;
    transition: transform 0.3s;
}
.mega-item:hover .mega-item-icon {
    background: rgba(246, 183, 60, 0.2);
    border-color: rgba(246, 183, 60, 0.4);
    box-shadow: 0 0 12px rgba(246,183,60,0.2);
}
.mega-item:hover .mega-item-icon i { transform: scale(1.1); }

.mega-item-text { flex: 1; min-width: 0; }
.mega-item-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.9) !important;
    line-height: 1.3;
    margin-bottom: 2px;
    display: block;
    transition: color 0.2s;
}
.mega-item:hover .mega-item-label {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
.mega-item-desc {
    font-size: 0.73rem;
    color: var(--mm-text-muted) !important;
    -webkit-text-fill-color: var(--mm-text-muted) !important;
    line-height: 1.4;
}

/* Arrow indicator */
.mega-item-arrow {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.2) !important;
    align-self: center;
    flex-shrink: 0;
    transition: all 0.3s;
    opacity: 0;
}
.mega-item:hover .mega-item-arrow {
    opacity: 1;
    color: var(--mm-gold) !important;
    -webkit-text-fill-color: var(--mm-gold) !important;
    transform: translateX(3px);
}

/* =============================================================================
   WIDE MEGA PANEL (Reports - 4 columns)
   ============================================================================= */

.mega-panel-wide .mega-panel-inner {
    max-width: 960px;
    margin: 0 auto;
}

.mega-panel-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.mega-col {
    padding: 20px 16px;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.mega-col:last-child { border-right: none; }

.mega-col-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(246, 183, 60, 0.12);
}
.mega-col-heading i {
    font-size: 0.8rem;
    color: var(--mm-gold) !important;
    -webkit-text-fill-color: var(--mm-gold) !important;
}
.mega-col-heading span {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(246, 183, 60, 0.9) !important;
    -webkit-text-fill-color: rgba(246, 183, 60, 0.9) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mega-col-items { display: flex; flex-direction: column; gap: 2px; }

/* Compact items inside columns */
.mega-col-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.mega-col-item:hover {
    background: rgba(246, 183, 60, 0.08);
    border-color: rgba(246, 183, 60, 0.15);
    transform: translateX(2px);
}
.mega-col-item i {
    font-size: 0.8rem;
    color: rgba(246, 183, 60, 0.65) !important;
    -webkit-text-fill-color: rgba(246, 183, 60, 0.65) !important;
    width: 16px;
    flex-shrink: 0;
    transition: color 0.2s;
}
.mega-col-item:hover i {
    color: var(--mm-gold) !important;
    -webkit-text-fill-color: var(--mm-gold) !important;
}
.mega-col-item-text { flex: 1; }
.mega-col-item-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.8) !important;
    display: block;
    transition: color 0.2s;
}
.mega-col-item:hover .mega-col-item-label {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
.mega-col-item-desc {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.38) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.38) !important;
}

/* =============================================================================
   HOROSCOPE MEGA PANEL (3 column sections)
   ============================================================================= */

.mega-panel-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.mega-section {
    padding: 20px 18px;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.mega-section:last-child { border-right: none; }

.mega-section-heading {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(246,183,60,0.75) !important;
    -webkit-text-fill-color: rgba(246,183,60,0.75) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(246,183,60,0.1);
    display: flex;
    align-items: center;
    gap: 6px;
}
.mega-section-heading::before {
    content: '';
    width: 3px; height: 12px;
    background: var(--mm-gold);
    border-radius: 2px;
    display: inline-block;
}

.mega-section-items { display: flex; flex-direction: column; gap: 2px; }

/* =============================================================================
   MOBILE DRAWER
   ============================================================================= */

.mega-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mega-mobile-overlay.is-visible {
    display: block;
    opacity: 1;
}

.mega-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 90vw);
    background: rgba(8, 10, 20, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(246, 183, 60, 0.15);
    z-index: 99999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
.mega-mobile-drawer.is-open {
    transform: translateX(0);
}

/* Drawer header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(246, 183, 60, 0.1);
    background: rgba(246, 183, 60, 0.04);
    flex-shrink: 0;
}
.drawer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.drawer-logo img { width: 34px; height: 34px; border-radius: 8px; }
.drawer-logo span {
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F6B73C, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.drawer-close {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
}
.drawer-close:hover {
    background: rgba(238, 78, 94, 0.2);
    border-color: rgba(238, 78, 94, 0.3);
}

/* Drawer nav */
.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

/* Accordion items */
.drawer-item {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s;
}
.drawer-link:hover { background: rgba(246, 183, 60, 0.06); }
.drawer-link.drawer-link-active { background: rgba(246, 183, 60, 0.08); }

.drawer-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.drawer-link-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(246,183,60,0.1);
    border: 1px solid rgba(246,183,60,0.2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.drawer-link-icon i {
    font-size: 0.8rem;
    color: var(--mm-gold) !important;
    -webkit-text-fill-color: var(--mm-gold) !important;
}
.drawer-link-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.88) !important;
}
.drawer-link-label.dl-active {
    color: var(--mm-gold) !important;
    -webkit-text-fill-color: var(--mm-gold) !important;
}
.drawer-chevron {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.35) !important;
    transition: transform 0.3s ease;
}
.drawer-item.is-expanded .drawer-chevron { transform: rotate(90deg); }

/* Accordion sub-menu */
.drawer-submenu {
    display: none;
    background: rgba(0,0,0,0.2);
    padding: 6px 0;
}
.drawer-item.is-expanded .drawer-submenu { display: block; }

.drawer-sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 44px;
    text-decoration: none !important;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.drawer-sub-link:last-child { border-bottom: none; }
.drawer-sub-link:hover { background: rgba(246,183,60,0.06); }
.drawer-sub-link i {
    font-size: 0.75rem;
    color: rgba(246,183,60,0.6) !important;
    -webkit-text-fill-color: rgba(246,183,60,0.6) !important;
    width: 14px;
    flex-shrink: 0;
}
.drawer-sub-label {
    font-size: 0.83rem;
    font-weight: 500;
    color: rgba(255,255,255,0.72) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.72) !important;
}

/* Drawer section heading (inside accordion) */
.drawer-sub-heading {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(246,183,60,0.6) !important;
    -webkit-text-fill-color: rgba(246,183,60,0.6) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 20px 6px 44px;
}

/* Drawer CTA section */
.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(246,183,60,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.drawer-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.drawer-cta-primary {
    background: linear-gradient(90deg, #F6B73C, #FF9F1A);
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    box-shadow: 0 4px 15px rgba(246,183,60,0.3);
}
.drawer-cta-secondary {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.8) !important;
}

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

@media (max-width: 1199px) {
    .mega-nav-link { padding: 9px 10px; font-size: 0.82rem; }
    .mega-panel-cols { grid-template-columns: repeat(2, 1fr); }
    .mega-col:nth-child(2) { border-right: none; }
    .mega-col:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.05); }
    .mega-col:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.05); border-right: none; }
}

@media (max-width: 991px) {
    .mega-navbar { display: none !important; }
    .mega-hamburger { display: flex !important; }
    .mega-logo-tagline { display: none; }
}

@media (max-width: 576px) {
    .mega-topbar .container { gap: 8px; }
    .mega-right-actions { gap: 6px; }
    .mega-signin-btn { padding: 0 12px; font-size: 0.8rem; }
    .mega-signin-btn span { display: none; }
}

/* =============================================================================
   UTILITY: Fix Interaction Conflict with Bootstrap Dropdowns on mobile
   ============================================================================= */

@media (min-width: 992px) {
    /* Ensure mega menu container is position:relative so panels work */
    .mega-nav-wrapper {
        position: relative;
    }
}

/* =============================================================================
   GOOGLE TRANSLATE WRAPPER inside mega header
   ============================================================================= */

.mega-translate-wrap .goog-te-gadget-simple {
    background-color: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(246,183,60,0.35) !important;
    padding: 0 14px !important;
    border-radius: 25px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 36px !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}
.mega-translate-wrap .goog-te-gadget-simple:hover {
    background-color: rgba(246,183,60,0.12) !important;
    border-color: var(--mm-gold) !important;
}
.mega-translate-wrap .goog-te-gadget-simple * {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.mega-translate-wrap .goog-te-gadget-simple img { display: none !important; }

/* =============================================================================
   LIGHT THEME OVERRIDES FOR MEGA MENU
   html[data-theme="light"] scoped — safe overrides only
   ============================================================================= */

/* ── Header wrapper ── */
html[data-theme="light"] .mega-header {
    background: transparent;
}
html[data-theme="light"] .mega-topbar {
    background: rgba(250, 247, 240, 0.96);
    border-bottom: 1px solid rgba(201, 146, 15, 0.12);
}

/* ── Logo name gradient (dark text on light bg) ── */
html[data-theme="light"] .mega-logo-name {
    background: linear-gradient(135deg, #C9920F, #1C1C2E 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="light"] .mega-logo-tagline {
    color: rgba(28, 28, 46, 0.5);
}

/* ── Right actions — sign in, hamburger ── */
html[data-theme="light"] .mega-signin-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(201, 146, 15, 0.4);
    color: #1C1C2E !important;
    -webkit-text-fill-color: #1C1C2E !important;
}
html[data-theme="light"] .mega-signin-btn svg path {
    fill: #1C1C2E;
}
html[data-theme="light"] .mega-signin-btn:hover {
    background: rgba(201, 146, 15, 0.12);
    border-color: #C9920F;
    color: #1C1C2E !important;
    -webkit-text-fill-color: #1C1C2E !important;
}
html[data-theme="light"] .mega-hamburger {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .mega-hamburger span {
    background: #1C1C2E;
}
html[data-theme="light"] .mega-hamburger:hover {
    background: rgba(201, 146, 15, 0.12);
    border-color: rgba(201, 146, 15, 0.35);
}

/* ── Desktop nav bar ── */
html[data-theme="light"] .mega-navbar {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(201, 146, 15, 0.15);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}
html[data-theme="light"] .mega-nav-link {
    color: rgba(28, 28, 46, 0.85) !important;
    -webkit-text-fill-color: rgba(28, 28, 46, 0.85) !important;
}
html[data-theme="light"] .mega-nav-link .mm-icon {
    color: rgba(201, 146, 15, 0.75) !important;
    -webkit-text-fill-color: rgba(201, 146, 15, 0.75) !important;
}
html[data-theme="light"] .mega-nav-link .mm-chevron {
    color: rgba(28, 28, 46, 0.35) !important;
    -webkit-text-fill-color: rgba(28, 28, 46, 0.35) !important;
}
html[data-theme="light"] .mega-nav-item:hover .mega-nav-link,
html[data-theme="light"] .mega-nav-item.is-open .mega-nav-link {
    background: rgba(201, 146, 15, 0.1);
    border-color: rgba(201, 146, 15, 0.3);
    color: #1C1C2E !important;
    -webkit-text-fill-color: #1C1C2E !important;
}
html[data-theme="light"] .mega-nav-item:hover .mega-nav-link .mm-icon,
html[data-theme="light"] .mega-nav-item.is-open .mega-nav-link .mm-icon {
    color: #C9920F !important;
    -webkit-text-fill-color: #C9920F !important;
}
html[data-theme="light"] .mega-nav-link.mm-active {
    background: linear-gradient(135deg, rgba(201,146,15,0.18), rgba(201,146,15,0.08)) !important;
    border-color: rgba(201, 146, 15, 0.5) !important;
    color: #C9920F !important;
    -webkit-text-fill-color: #C9920F !important;
}

/* ── Mega panels (light) ── */
html[data-theme="light"] .mega-panel {
    background: #ffffff !important;
    border: 1px solid rgba(201, 146, 15, 0.2) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.04) inset !important;
}
html[data-theme="light"] .mega-panel-header {
    background: rgba(201, 146, 15, 0.05);
    border-bottom: 1px solid rgba(201, 146, 15, 0.12);
}
html[data-theme="light"] .mega-panel-header .mph-title {
    color: #1C1C2E;
    -webkit-text-fill-color: #1C1C2E;
}
html[data-theme="light"] .mega-panel-header .mph-desc {
    color: rgba(28, 28, 46, 0.55);
    -webkit-text-fill-color: rgba(28, 28, 46, 0.55);
}
html[data-theme="light"] .mega-item-label {
    color: rgba(28, 28, 46, 0.88) !important;
    -webkit-text-fill-color: rgba(28, 28, 46, 0.88) !important;
}
html[data-theme="light"] .mega-item:hover .mega-item-label {
    color: #1C1C2E !important;
    -webkit-text-fill-color: #1C1C2E !important;
}
html[data-theme="light"] .mega-item-desc {
    color: rgba(28, 28, 46, 0.5) !important;
    -webkit-text-fill-color: rgba(28, 28, 46, 0.5) !important;
}
html[data-theme="light"] .mega-col {
    border-right-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .mega-col-item-label {
    color: rgba(28, 28, 46, 0.82) !important;
    -webkit-text-fill-color: rgba(28, 28, 46, 0.82) !important;
}
html[data-theme="light"] .mega-col-item:hover .mega-col-item-label {
    color: #1C1C2E !important;
    -webkit-text-fill-color: #1C1C2E !important;
}
html[data-theme="light"] .mega-col-item-desc {
    color: rgba(28, 28, 46, 0.4) !important;
    -webkit-text-fill-color: rgba(28, 28, 46, 0.4) !important;
}
html[data-theme="light"] .mega-section {
    border-right-color: rgba(0, 0, 0, 0.06);
}

/* ── Mobile drawer (light) ── */
html[data-theme="light"] .mega-mobile-drawer {
    background: rgba(250, 247, 240, 0.99);
    border-left-color: rgba(201, 146, 15, 0.2);
}
html[data-theme="light"] .drawer-header {
    background: rgba(201, 146, 15, 0.04);
    border-bottom-color: rgba(201, 146, 15, 0.12);
}
html[data-theme="light"] .drawer-logo span {
    background: linear-gradient(135deg, #C9920F, #1C1C2E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="light"] .drawer-close {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1C1C2E;
}
html[data-theme="light"] .drawer-link-label {
    color: rgba(28, 28, 46, 0.88) !important;
    -webkit-text-fill-color: rgba(28, 28, 46, 0.88) !important;
}
html[data-theme="light"] .drawer-link:hover {
    background: rgba(201, 146, 15, 0.06);
}
html[data-theme="light"] .drawer-submenu {
    background: rgba(0, 0, 0, 0.03);
}
html[data-theme="light"] .drawer-sub-label {
    color: rgba(28, 28, 46, 0.75) !important;
    -webkit-text-fill-color: rgba(28, 28, 46, 0.75) !important;
}
html[data-theme="light"] .drawer-chevron {
    color: rgba(28, 28, 46, 0.3) !important;
    -webkit-text-fill-color: rgba(28, 28, 46, 0.3) !important;
}
html[data-theme="light"] .drawer-footer {
    border-top-color: rgba(201, 146, 15, 0.12);
}
html[data-theme="light"] .drawer-cta-secondary {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(28, 28, 46, 0.8) !important;
    -webkit-text-fill-color: rgba(28, 28, 46, 0.8) !important;
}
html[data-theme="light"] .drawer-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* ── Translate widget (light) ── */
html[data-theme="light"] .mega-translate-wrap .goog-te-gadget-simple {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(201, 146, 15, 0.35) !important;
    color: #1C1C2E !important;
}
html[data-theme="light"] .mega-translate-wrap .goog-te-gadget-simple * {
    color: #1C1C2E !important;
}
html[data-theme="light"] .mega-translate-wrap .goog-te-gadget-simple:hover {
    background-color: rgba(201, 146, 15, 0.1) !important;
}

/* ── User dropdown ── */
html[data-theme="light"] .user-options {
    background: #ffffff !important;
    border-color: rgba(201, 146, 15, 0.25) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}
html[data-theme="light"] .user-options .dropdown-item {
    color: #1C1C2E !important;
}
html[data-theme="light"] .user-options .dropdown-item:hover {
    background: rgba(201, 146, 15, 0.08) !important;
    color: #C9920F !important;
}
