/* ============================================================
   TERA KITE — header-dev.css  v9.0
   Design: Editorial Luxury — Navy + Gold + Warm Cream
   Font: DM Sans (body) + Playfair Display (brand)
   Change: Google Sign-In removed everywhere.
           - Desktop nav → pill "Sign In" button
           - Mobile header → compact icon button
           - Drawer logged-out → full-width "Sign In" CTA
             (exact same slot where Google button was)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@600;700&display=swap');

:root {
    /* ── Typography ── */
    --font-body:      'DM Sans', sans-serif;
    --font-display:   'Playfair Display', serif;

    /* ── Brand ── */
    --fm-gold:        #B8860B;
    --fm-gold-bg:     #FBF5E6;
    --fm-gold-rim:    #E8C96A;
    --fm-green:       #2A6041;
    --fm-green-l:     #EBF5EE;
    --gold:           var(--fm-gold);
    --gold-light:     var(--fm-gold-bg);
    --gold-mid:       #3ecf9a;

    /* ── Dark tones ── */
    --fm-ink:         #111827;
    --ink:            #0d1b2a;
    --navy:           #102a43;
    --navy-mid:       #1c3d5a;
    --navy-light:     #e8eef4;
    --navy-edge:      #d0dce8;
    --cream:          #f9f6f0;
    --white:          #ffffff;
    --fm-white:       var(--white);

    /* ── Text ── */
    --text:           #3d5166;
    --fm-muted:       #6B7280;
    --muted:          #7a92a8;

    /* ── Borders ── */
    --fm-border:      #E5E7EB;
    --border:         #dde6ef;
    --border-light:   #edf2f7;

    /* ── States ── */
    --success:        #0b7a52;
    --danger:         #c0392b;
    --danger-bg:      #fdf0ef;

    /* ── Layout ── */
    --main-header-h:  68px;
    --total-header-h: var(--main-header-h);

    /* ── Radius ── */
    --fm-r:           12px;
    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-lg:      16px;

    /* ── Effects ── */
    --glass-bg:       rgba(255, 255, 255, 0.95);
    --glass-shadow:   0 4px 32px rgba(13, 27, 42, 0.10), 0 1px 3px rgba(13, 27, 42, 0.06);
    --ease:           cubic-bezier(0.4, 0, 0.2, 1);
    --spring:         cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    padding-top: var(--total-header-h);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    background: #fff;
}

/* ─────────────────────────────────────────────────────────────
   SCROLL PROGRESS
───────────────────────────────────────────────────────────── */
.scroll-progress-bar {
    position: fixed; top: 0; left: 0; height: 2px; width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-mid));
    z-index: 99999; pointer-events: none;
    transition: width .08s linear;
}

/* ─────────────────────────────────────────────────────────────
   HEADER WRAPPER
───────────────────────────────────────────────────────────── */
.header-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 2000;
    transform: translateY(0);
    transition: transform .38s ease, box-shadow .35s ease, background .3s ease;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
}
.header-wrapper.header-scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    border-bottom: 1px solid var(--border);
}
.header-wrapper.header-hidden { transform: translateY(-100%); }

.top-bar { display: none !important; }

/* ─────────────────────────────────────────────────────────────
   MAIN HEADER
───────────────────────────────────────────────────────────── */
.site-header {
    width: 100%; height: var(--main-header-h);
    position: relative;
}
.header-container {
    max-width: 1500px; margin: 0 auto; padding: 0 36px;
    height: 100%; display: flex; justify-content: space-between;
    align-items: center; gap: 20px;
}

/* ─────────────────────────────────────────────────────────────
   LOGO
───────────────────────────────────────────────────────────── */
.logo-group {
    display: flex; align-items: center; gap: 2px;
    text-decoration: none; flex-shrink: 0;
}
.logo-img { height: 44px; width: auto; display: block; }
.logo-meta { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
    font-family: var(--font-display);
    font-size: 1.25rem; font-weight: 700;
    color: var(--ink); letter-spacing: -.2px;
}
.logo-name span { color: var(--gold); }
.logo-tagline {
    font-family: var(--font-body);
    font-size: 9px; font-weight: 500; color: var(--muted);
    text-transform: uppercase; letter-spacing: 1.2px; margin-top: 1px;
}

/* ─────────────────────────────────────────────────────────────
   DESKTOP NAV
───────────────────────────────────────────────────────────── */
.desktop-nav { display: flex; align-items: center; }
.nav-list {
    display: flex; list-style: none; gap: 0; align-items: center;
}

.nav-btn, .nav-link {
    font-family: var(--font-body);
    font-size: 13.5px; font-weight: 500;
    padding: 8px 16px;
    color: var(--text); text-decoration: none;
    border: none; background: transparent; cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    border-radius: var(--radius-sm);
    transition: color .2s, background .2s;
    white-space: nowrap; position: relative;
    letter-spacing: .1px;
}
.nav-btn:hover, .nav-link:hover,
.nav-btn.active { color: var(--ink); background: var(--navy-light); }

.nav-link::after {
    content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px;
    height: 1.5px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-btn.active::after {
    content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px;
    height: 1.5px; background: var(--gold);
}

.nav-icon { font-size: 11px; color: var(--gold); }
.arrow-icon { font-size: 8px; color: var(--muted); transition: transform .3s var(--ease); }
.nav-btn.active .arrow-icon { transform: rotate(180deg); }

/* ─────────────────────────────────────────────────────────────
   DESKTOP — SIGN IN BUTTON  (replaces Google button)
───────────────────────────────────────────────────────────── */
.nav-signin-btn {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.btn-signin-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: var(--ink);
    color: #fff;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .2px;
    border: 1.5px solid transparent;
    white-space: nowrap;
    transition: background .22s, transform .2s var(--spring), box-shadow .22s;
}
.btn-signin-nav i { font-size: 12px; }
.btn-signin-nav:hover {
    background: var(--navy-mid);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13,27,42,.22);
}

/* ─────────────────────────────────────────────────────────────
   MEGA DROPDOWN
───────────────────────────────────────────────────────────── */
.mega-dropdown {
    position: fixed;
    top: var(--total-header-h);
    left: 0; width: 100%;
    background: var(--white);
    border-top: 2px solid var(--gold);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(13,27,42,.09);
    visibility: hidden; opacity: 0;
    transform: translateY(-16px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    pointer-events: none;
    z-index: 1999;
}
.mega-dropdown.is-open {
    visibility: visible; opacity: 1;
    transform: translateY(0); pointer-events: auto;
}

.mega-grid {
    max-width: 1380px; margin: 0 auto;
    padding: 40px 36px 44px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0;
}

.mega-featured {
    padding-right: 40px;
    border-right: 1px solid var(--border-light);
    display: flex; flex-direction: column; justify-content: space-between;
}
.mega-featured-label {
    font-size: 9px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.mega-featured-img {
    width: 100%; height: 160px; object-fit: cover;
    border-radius: var(--radius-md);
    display: block; margin-bottom: 16px;
    filter: saturate(.9);
}
.mega-featured-title {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 700; color: var(--ink);
    line-height: 1.35; margin-bottom: 8px;
}
.mega-featured-desc {
    font-size: 12.5px; color: var(--text); line-height: 1.65; margin-bottom: 16px;
}
.mega-featured-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ink); color: #fff;
    padding: 9px 18px; border-radius: var(--radius-sm);
    font-size: 12.5px; font-weight: 600;
    text-decoration: none; width: fit-content;
    transition: background .2s, transform .2s var(--spring);
}
.mega-featured-cta:hover { background: var(--navy-mid); transform: translateY(-1px); }
.mega-featured-cta i { font-size: 10px; }

.mega-column {
    padding: 0 28px;
    border-right: 1px solid var(--border-light);
}
.mega-column:last-child { border-right: none; }

.column-title {
    font-size: 9px; font-weight: 700; letter-spacing: 1.6px;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 18px; padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-light);
    display: flex; align-items: center; gap: 6px;
}
.column-title i { font-size: 9px; }

.mega-column a {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 10px 10px; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--text);
    transition: background .18s, color .18s, transform .18s;
    margin-bottom: 2px;
}
.mega-column a:hover { background: var(--navy-light); color: var(--ink); transform: translateX(3px); }

.mega-link-icon {
    width: 30px; height: 30px;
    background: var(--gold-light); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mega-link-icon i { color: var(--gold); font-size: 11px; }
.mega-link-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mega-link-sub { font-size: 11px; color: var(--muted); margin-top: 1px; line-height: 1.4; }

/* ─────────────────────────────────────────────────────────────
   DESKTOP PROFILE DROPDOWN
───────────────────────────────────────────────────────────── */
.user-profile-wrapper { position: relative; }
.profile-trigger-btn {
    display: flex; align-items: center; gap: 9px;
    background: var(--navy-light); border: 1.5px solid var(--navy-edge);
    padding: 5px 14px 5px 5px; border-radius: 50px;
    cursor: pointer; font-family: var(--font-body);
    transition: background .2s, box-shadow .2s;
}
.profile-trigger-btn:hover, .profile-trigger-btn.active {
    background: var(--gold-light);
    border-color: rgba(14,164,114,.4);
    box-shadow: 0 2px 12px rgba(14,164,114,.18);
}
.nav-profile-img {
    width: 30px; height: 30px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--gold);
    display: block; flex-shrink: 0;
}
.profile-uname { font-size: 13px; font-weight: 600; color: var(--ink); }
.profile-chevron { font-size: 9px; color: var(--muted); transition: transform .3s var(--ease); }
.profile-trigger-btn.active .profile-chevron { transform: rotate(180deg); }

.profile-dropdown {
    position: absolute; top: calc(100% + 12px); right: 0;
    background: #fff; border: 1px solid var(--border);
    box-shadow: 0 20px 48px rgba(13,27,42,.12);
    padding: 6px; min-width: 240px; z-index: 3000;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .22s, transform .22s, visibility .22s;
    pointer-events: none; border-radius: var(--radius-md);
}
.profile-dropdown.is-open {
    opacity: 1; visibility: visible;
    transform: translateY(0); pointer-events: auto;
}
.pd-header {
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--border-light); margin-bottom: 4px;
    background: var(--cream); border-radius: var(--radius-sm);
    margin: 4px 4px 4px;
}
.pd-fullname {
    font-size: 14px; font-weight: 700; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: flex; align-items: center; gap: 6px;
}
.pd-email { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pd-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 9.5px; font-weight: 700; padding: 2px 9px;
    border-radius: 20px; margin-top: 5px;
    text-transform: uppercase; letter-spacing: .5px;
}
.pd-badge--admin { background: #fef3c7; color: #92400e; }
.pd-badge--user  { background: var(--gold-light); color: #0b6b4a; }

.pd-completion { padding: 8px 12px 10px; border-bottom: 1px solid var(--border-light); margin-bottom: 4px; }
.pd-completion-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pd-completion-label { font-size: 11.5px; font-weight: 600; color: var(--text); }
.pd-completion-pct   { font-size: 12px; font-weight: 800; color: var(--navy); }
.pd-progress-track { width: 100%; height: 4px; background: var(--navy-light); border-radius: 10px; overflow: hidden; }
.pd-progress-fill  { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-mid)); border-radius: 10px; transition: width .8s var(--ease); }

.pd-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500; color: var(--text);
    text-decoration: none; font-family: var(--font-body);
    background: transparent; border: none; cursor: pointer; width: 100%;
    transition: background .16s, color .16s;
}
.pd-item:hover { background: var(--navy-light); color: var(--ink); }
.pd-item i { width: 16px; font-size: 12px; color: var(--gold); text-align: center; }
.pd-divider { height: 1px; background: var(--border-light); margin: 4px 0; }
.pd-item--danger { color: var(--danger); }
.pd-item--danger i { color: var(--danger); }
.pd-item--danger:hover { background: var(--danger-bg); color: #991b1b; }
.pd-item--highlight {
    background: linear-gradient(135deg, var(--gold-light), #f0fbf6);
    color: #0b6b4a; border: 1px solid rgba(14,164,114,.3);
    font-weight: 600;
}
.pd-item--highlight:hover { background: var(--gold-light); }

/* ─────────────────────────────────────────────────────────────
   SIGN-IN OVERLAY  (processing spinner)
───────────────────────────────────────────────────────────── */
.fm-signin-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(13,27,42,0.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 18px;
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.fm-signin-overlay.active { opacity: 1; pointer-events: auto; }
.fm-signin-spinner {
    width: 44px; height: 44px; border-radius: 50%;
    border: 3px solid rgba(14,164,114,.25);
    border-top-color: var(--gold);
    animation: fmSpin .8s linear infinite;
}
@keyframes fmSpin { to { transform: rotate(360deg); } }
.fm-signin-msg {
    color: #fff; font-family: var(--font-body);
    font-size: 14.5px; font-weight: 500; letter-spacing: .2px; text-align: center;
}

/* ─────────────────────────────────────────────────────────────
   DRAWER OVERLAY
───────────────────────────────────────────────────────────── */
.drawer-overlay {
    display: none; position: fixed;
    top: var(--total-header-h); left: 0; right: 0; bottom: 0;
    background: rgba(13,27,42,.38); z-index: 2998;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; transition: opacity .35s;
}
.drawer-overlay.active { display: block; opacity: 1; }

/* ─────────────────────────────────────────────────────────────
   MOBILE CONTROLS
───────────────────────────────────────────────────────────── */
.mobile-right-controls { display: none; align-items: center; gap: 8px; }

/* Hamburger (logged-out state) */
.mobile-menu-trigger {
    width: 40px; height: 40px; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    background: var(--navy-light); border: 1.5px solid var(--navy-edge);
    border-radius: var(--radius-md); cursor: pointer; padding: 0;
    transition: background .2s, transform .15s var(--spring);
}
.mobile-menu-trigger:hover { background: var(--navy-edge); transform: scale(1.05); }
.hb-icon { display: flex; flex-direction: column; gap: 5px; width: 18px; pointer-events: none; }
.hb-line {
    display: block; height: 1.5px; width: 18px;
    background: var(--navy); border-radius: 2px;
    transform-origin: center;
    transition: transform .38s var(--ease), opacity .25s, width .3s;
}
.hb-line:nth-child(2) { width: 12px; }
.mobile-menu-trigger.active .hb-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 18px; }
.mobile-menu-trigger.active .hb-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-trigger.active .hb-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 18px; }



/* ── Mob profile trigger (logged-in) ── */
.mob-profile-trigger {
    position: relative; width: 40px; height: 40px;
    border-radius: 50%; border: 2px solid var(--gold);
    background: transparent; cursor: pointer; padding: 0; overflow: visible;
    transition: box-shadow .2s, transform .15s var(--spring), border-color .2s;
}
.mob-profile-trigger:hover { box-shadow: 0 0 0 4px var(--gold-light); transform: scale(1.05); }
.mob-profile-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; transition: opacity .25s; }
.mob-online-dot {
    position: absolute; bottom: 1px; right: 1px; width: 10px; height: 10px;
    background: #22c55e; border: 2px solid #fff; border-radius: 50%; z-index: 1;
    transition: opacity .2s;
}
.mob-profile-trigger .mob-x-icon {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--navy); font-size: 18px; border-radius: 50%;
    opacity: 0; transform: scale(0.5);
    transition: opacity .25s, transform .3s var(--spring); pointer-events: none;
}
.mob-profile-trigger.active { border-color: var(--navy-edge); background: var(--navy-light); }
.mob-profile-trigger.active .mob-profile-img  { opacity: 0; }
.mob-profile-trigger.active .mob-online-dot   { opacity: 0; }
.mob-profile-trigger.active .mob-x-icon       { opacity: 1; transform: scale(1); }

/* ─────────────────────────────────────────────────────────────
   MOBILE DRAWER
───────────────────────────────────────────────────────────── */
.mobile-drawer {
    position: fixed;
    top: var(--total-header-h); right: 0; bottom: 0;
    width: 50vw; max-width: 300px;
    background: var(--white); z-index: 2999;
    transform: translateX(110%);
    transition: transform .42s var(--ease);
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: -8px 0 36px rgba(13,27,42,.12);
    border-left: 1px solid var(--border);
}
.mobile-drawer.active { transform: translateX(0); }
.drawer-accent-strip, .drawer-close-btn { display: none; }
.drawer-inner { display: flex; flex-direction: column; flex: 1; overflow: hidden; min-height: 0; }

/* ── Drawer header ── */
.drawer-header-section {
    padding: 16px 14px 14px;
    background: var(--cream);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

/* Logged-in: user card */
.drawer-user-card { display: flex; align-items: center; gap: 10px; }
.drawer-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0;
}
.drawer-user-info  { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.drawer-user-name  {
    font-size: 13px; font-weight: 700; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: flex; align-items: center; gap: 5px;
}
.drawer-user-email { font-size: 10.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 9px; font-weight: 700; padding: 2px 8px;
    border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
    margin-top: 3px; width: fit-content;
}
.drawer-badge--admin { background: #fef3c7; color: #92400e; }
.drawer-badge--user  { background: var(--gold-light); color: #0b6b4a; }

/* Profile completion bar */
.drawer-completion {
    margin-top: 10px; background: rgba(255,255,255,.7);
    border-radius: var(--radius-sm); padding: 8px 10px;
    border: 1px solid var(--border-light);
}
.drawer-completion-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.drawer-completion-label { font-size: 10.5px; font-weight: 600; color: var(--text); }
.drawer-completion-pct   { font-size: 11px; font-weight: 800; color: var(--navy); }
.drawer-progress-track   { width: 100%; height: 4px; background: var(--navy-light); border-radius: 10px; overflow: hidden; }
.drawer-progress-fill    { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-mid)); border-radius: 10px; transition: width .9s var(--ease); }
.drawer-completion-cta {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 8px; padding: 8px 12px;
    background: var(--ink); color: #fff;
    border: none; border-radius: var(--radius-sm);
    font-size: 11.5px; font-weight: 600; cursor: pointer;
    font-family: var(--font-body); width: 100%;
    transition: background .2s, transform .2s var(--spring);
}
.drawer-completion-cta:hover  { background: var(--navy-mid); transform: scale(1.02); }
.drawer-completion-cta.complete { background: var(--success); pointer-events: none; }

/* ─────────────────────────────────────────────────────────────
   DRAWER LOGGED-OUT BLOCK
   Replaces the old Google Sign-In button slot exactly.
───────────────────────────────────────────────────────────── */
.drawer-signin-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Greeting row */
.drawer-signin-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
}
.drawer-signin-wave  { font-size: 20px; flex-shrink: 0; }
.drawer-signin-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.drawer-signin-sub   { font-size: 11px; color: var(--text); margin-top: 1px; }

/* ── Full-width Sign In button — same height/slot as old Google btn ── */
.drawer-signin-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 11px 16px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .18s var(--spring), box-shadow .2s;
    box-shadow: 0 2px 10px rgba(13,27,42,.15);
}
.drawer-signin-cta-btn i { font-size: 13px; }
.drawer-signin-cta-btn:hover {
    background: var(--navy-mid);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13,27,42,.22);
}

/* Optional register link below button */
.drawer-register-link {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    padding: 2px 0;
    transition: color .18s;
}
.drawer-register-link:hover { color: var(--ink); }
.drawer-register-link strong { color: var(--gold); font-weight: 600; }

/* ─────────────────────────────────────────────────────────────
   DRAWER BODY + FOOTER
───────────────────────────────────────────────────────────── */
.drawer-body {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 10px 10px 4px; min-height: 0;
    scrollbar-width: thin; scrollbar-color: var(--navy-edge) transparent;
}
.drawer-body::-webkit-scrollbar { width: 3px; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--navy-edge); border-radius: 3px; }

.drawer-footer {
    flex-shrink: 0; padding: 10px 14px 14px;
    border-top: 1px solid var(--border-light);
    background: var(--cream);
}
.drawer-footer-label {
    font-size: 9px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.2px; color: var(--muted); margin-bottom: 6px;
}
.drawer-contact { display: flex; flex-direction: column; gap: 5px; margin-bottom: 9px; }
.drawer-contact-link {
    display: flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 500; color: var(--text);
    text-decoration: none; transition: color .15s;
}
.drawer-contact-link:hover { color: var(--ink); }
.drawer-contact-link i     { color: var(--gold); width: 12px; font-size: 11px; flex-shrink: 0; }
.drawer-contact-link span  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.drawer-socials { display: flex; gap: 6px; margin-bottom: 10px; }
.drawer-social-btn {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: var(--radius-sm);
    background: var(--navy-light); border: 1.5px solid var(--navy-edge);
    color: var(--navy); font-size: 11px; text-decoration: none;
    transition: background .2s, transform .2s var(--spring);
}
.drawer-social-btn:hover { background: var(--gold-light); color: var(--gold); border-color: rgba(14,164,114,.4); transform: scale(1.1); }

.drawer-footer-signout {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 9px 14px;
    background: var(--danger-bg); color: var(--danger);
    border: 1.5px solid rgba(192,57,43,.2); border-radius: var(--radius-md);
    font-size: 12px; font-weight: 600; cursor: pointer;
    font-family: var(--font-body); text-decoration: none;
    transition: background .2s, transform .18s var(--spring);
}
.drawer-footer-signout:hover { background: #fde8e6; color: #991b1b; transform: scale(1.02); }

/* ─────────────────────────────────────────────────────────────
   MOBILE MENU LIST
───────────────────────────────────────────────────────────── */
.mobile-menu { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mob-link {
    display: flex; align-items: center; width: 100%;
    font-size: 13px; font-weight: 500; color: var(--text);
    text-decoration: none; border-radius: var(--radius-sm);
    font-family: var(--font-body);
    transition: background .18s, color .18s, transform .18s var(--spring);
}
.mob-link:hover { background: var(--navy-light); color: var(--ink); transform: translateX(2px); }
.mob-link-icon {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 42px; font-size: 12px; color: var(--gold); flex-shrink: 0;
}
.mob-link--accent { color: var(--navy); }
.mob-link--danger { color: var(--danger); }
.mob-link--danger:hover { background: var(--danger-bg); color: #991b1b; }

.mob-tree-btn {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; border: none; background: transparent; cursor: pointer;
    border-radius: var(--radius-sm); font-family: var(--font-body);
    padding-right: 10px; transition: background .18s, color .18s;
}
.mob-btn-inner { display: flex; align-items: center; font-size: 13px; font-weight: 500; color: inherit; }
.mob-tree-btn:hover, .mob-tree-btn.active { background: var(--navy-light); color: var(--ink); }
.mob-arrow { font-size: 8px; color: var(--muted); transition: transform .38s var(--ease), color .18s; flex-shrink: 0; }
.mob-tree-btn.active .mob-arrow { transform: rotate(180deg); color: var(--gold); }
.mob-tree-wrapper { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.mob-tree-wrapper.active { max-height: 480px; }
.mob-tree-content {
    margin: 3px 6px 5px 10px; padding: 8px 10px 10px;
    background: var(--cream); border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}
.mob-tree-content .category-label {
    display: block; font-size: 8.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--gold); margin: 8px 4px 4px;
}
.mob-tree-content .category-label:first-child { margin-top: 0; }
.tree-link {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 4px; color: var(--text);
    text-decoration: none; font-size: 12.5px; font-weight: 500;
    border-bottom: 1px solid rgba(13,27,42,.05);
    transition: color .15s, transform .15s;
}
.tree-link:last-child { border-bottom: none; }
.tree-link:hover { color: var(--ink); transform: translateX(3px); }
.tree-link i { width: 13px; color: var(--gold); font-size: 11px; flex-shrink: 0; }

.mob-section-divider { height: 1px; background: var(--border-light); margin: 5px 2px; }
.mob-section-label {
    display: block; font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--muted); padding: 4px 10px 2px;
}

/* ─────────────────────────────────────────────────────────────
   BOTTOM SHEET  (profile completion)
───────────────────────────────────────────────────────────── */
.fm-bottom-sheet-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(13,27,42,.48); z-index: 9990;
    opacity: 0; transition: opacity .35s;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.fm-bottom-sheet-overlay.active { display: block; opacity: 1; }
.fm-bottom-sheet {
    position: fixed; bottom: 0; left: 0; right: 0;
    max-width: 560px; margin: 0 auto;
    background: var(--white); border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 48px rgba(13,27,42,.15);
    z-index: 9991; transform: translateY(100%);
    transition: transform .48s cubic-bezier(.32,.72,0,1);
    max-height: 92dvh; overflow: hidden;
    display: flex; flex-direction: column;
}
.fm-bottom-sheet.active  { transform: translateY(0); }
.fm-bottom-sheet.closing { transform: translateY(100%); transition: transform .4s cubic-bezier(.4,0,1,1); }
.fm-sheet-handle { width: 36px; height: 3px; background: var(--border); border-radius: 4px; margin: 14px auto 0; flex-shrink: 0; }
.fm-sheet-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px 12px; border-bottom: 1px solid var(--border-light); flex-shrink: 0;
}
.fm-sheet-title { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.fm-sheet-title i { color: var(--gold); }
.fm-sheet-close {
    width: 30px; height: 30px; background: var(--navy-light);
    border: 1.5px solid var(--navy-edge); border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--navy); font-size: 12px;
    transition: background .2s, transform .3s var(--spring);
}
.fm-sheet-close:hover { background: var(--navy-edge); transform: rotate(90deg) scale(1.1); }
.fm-sheet-body { padding: 16px 20px 24px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.fm-sheet-field { display: flex; flex-direction: column; gap: 4px; }
.fm-sheet-label { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.fm-sheet-input {
    padding: 10px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 13.5px;
    font-family: var(--font-body); color: var(--ink);
    background: var(--white); outline: none; width: 100%;
    transition: border-color .2s, box-shadow .2s;
}
.fm-sheet-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-light); }
.fm-sheet-save-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; background: var(--ink); color: #fff;
    border: none; border-radius: var(--radius-md);
    font-size: 13.5px; font-weight: 600; cursor: pointer;
    font-family: var(--font-body); width: 100%;
    transition: background .2s, transform .18s var(--spring);
}
.fm-sheet-save-btn:hover   { background: var(--navy-mid); transform: translateY(-1px); }
.fm-sheet-save-btn.loading { pointer-events: none; opacity: .75; }
.fm-sheet-skip {
    background: none; border: none; cursor: pointer;
    font-family: var(--font-body); font-size: 12.5px; font-weight: 500;
    color: var(--muted); padding: 4px 0; text-align: center; width: 100%;
    transition: color .2s;
}
.fm-sheet-skip:hover { color: var(--text); }

/* ─────────────────────────────────────────────────────────────
   TOAST
───────────────────────────────────────────────────────────── */
#fm-toast-container {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
    z-index: 99998; display: flex; flex-direction: column; align-items: center;
    gap: 10px; pointer-events: none;
}
.fm-toast {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--ink); color: #fff;
    padding: 11px 22px; border-radius: 50px;
    font-size: 13.5px; font-weight: 500; font-family: var(--font-body);
    box-shadow: 0 8px 32px rgba(13,27,42,.22);
    opacity: 0; transform: translateY(12px) scale(.95);
    transition: opacity .32s, transform .32s var(--spring);
    pointer-events: none; white-space: nowrap;
}
.fm-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.fm-toast.hide { opacity: 0; transform: translateY(8px) scale(.96); }
.fm-toast-icon { font-size: 16px; flex-shrink: 0; }
.fm-toast--welcome { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.fm-toast--success { background: linear-gradient(135deg, #0b3d28, var(--success)); }
.fm-toast--error   { background: linear-gradient(135deg, #7f1d1d, var(--danger)); }
.fm-toast--info    { background: linear-gradient(135deg, var(--ink), #1e293b); }

/* ─────────────────────────────────────────────────────────────
   PRELOADER
───────────────────────────────────────────────────────────── */
.fm-preloader-wrap {
    position: fixed; inset: 0; background: #fff;
    display: flex; justify-content: center; align-items: center;
    z-index: 99999; transition: opacity .4s, visibility .4s;
}
.fm-dot-container { display: flex; gap: 8px; }
.fm-loader-dot {
    width: 10px; height: 10px;
    background: var(--gold); border-radius: 50%;
    animation: fmDotBounce 1.4s infinite ease-in-out both;
}
.fm-loader-dot:nth-child(1) { animation-delay: -.32s; }
.fm-loader-dot:nth-child(2) { animation-delay: -.16s; }
@keyframes fmDotBounce {
    0%, 80%, 100% { transform: scale(0); opacity: .3; }
    40%           { transform: scale(1); opacity: 1;  }
}
.fm-loader-hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .mega-grid { grid-template-columns: 1fr 1fr 1fr; }
    .mega-featured { display: none; }
    .mega-column { border-right: none; padding: 0 20px; }
    .mega-column + .mega-column { border-left: 1px solid var(--border-light); }
}
@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .mobile-right-controls { display: flex; }
}
@media (max-width: 768px) {
    :root { --main-header-h: 58px; --total-header-h: 58px; }
    .logo-img { height: 38px; }
    .logo-name { font-size: 1.35rem; }
    .header-container { padding: 0 18px; }
    .mobile-drawer { width: 60vw; }
}
@media (max-width: 480px) {
    .mobile-drawer { width: 74vw; max-width: none; }
    .fm-bottom-sheet { max-height: 96dvh; }
}
@media (max-width: 360px) { .mobile-drawer { width: 84vw; } }