/* ═══════════════════════════════════════════════
   EDN'HKK SARL — Single Page App
   Design: Noir Léger, Yellow & Blue, No shadows
═══════════════════════════════════════════════ */

:root {
    --primary: #1E5BFF;
    --accent:  #FFD700;
    --bg:      #0D0D0D;
    --bg-card: rgba(255,255,255,0.04);
    --border:  rgba(255,255,255,0.07);
    --text:    #FFFFFF;
    --muted:   rgba(255,255,255,0.45);
    --ease:    cubic-bezier(0.19, 1, 0.22, 1);
    --sidebar-w: 210px;
    --navbar-h:  62px;
    --drawer-w:  440px;
}

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

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* ─── NAVBAR ────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--navbar-h);
    z-index: 500;
    background: rgba(13,13,13,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.brand-logo {
    height: 38px;
    width: auto;
}

.logo-fallback {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: white;
    letter-spacing: -1px;
}

.logo-fallback span { color: var(--accent); }

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.lang-toggle span { opacity: 0.3; }

.lang-toggle button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.45;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    transition: opacity 0.2s;
}

.lang-toggle button.active {
    opacity: 1;
    color: var(--accent);
}

/* ─── APP LAYOUT ────────────────────────────── */
.app-layout {
    display: flex;
    height: 100vh;
    padding-top: var(--navbar-h);
    position: relative;
    overflow: hidden;
}

/* ─── SIDEBAR ───────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    height: 100%;
    background: rgba(0,0,0,0.3);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    z-index: 100;
    padding-bottom: 2rem;
    /* Center nav items vertically */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar::-webkit-scrollbar { display: none; }

/* ── Accordion wrapper ── */
.nav-accordion {
    border-bottom: 1px solid var(--border);
}

/* ── Top-level nav button ── */
.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.1rem 1.4rem;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.75);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: color 0.25s ease, background 0.25s ease;
    border-radius: 0;
}

.nav-top:hover {
    color: white;
    background: rgba(255,255,255,0.03);
}

.nav-top.open {
    color: var(--accent);
}

/* Direct link variant */
.nav-direct {
    border-bottom: 1px solid var(--border);
}

.nav-direct:hover { color: var(--accent); }

/* Chevron icon */
.acc-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.nav-top.open .acc-icon { transform: rotate(90deg); opacity: 1; }

/* ── Sub-menu (accordion body) ── */
.nav-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    background: rgba(0,0,0,0.15);
}

.nav-sub.open {
    max-height: 400px;
}

/* ── Sub-item buttons ── */
.svc-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.65rem 1.4rem 0.65rem 1.8rem;
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    color: rgba(255,255,255,0.4);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    line-height: 1.3;
}

.svc-btn:hover {
    color: rgba(255,255,255,0.85);
    border-left-color: rgba(255,215,0,0.4);
    background: rgba(255,255,255,0.02);
}

.svc-btn.active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: rgba(255,215,0,0.04);
}

/* ─── HERO MAIN ─────────────────────────────── */
.hero-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: transform 0.5s var(--ease), opacity 0.5s ease;
}

.hero-main.pushed {
    transform: translateX(-24px);
    opacity: 0.5;
    pointer-events: none;
}

/* Grid background */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Glow orb */
.hero-orb {
    position: absolute;
    top: 50%; left: 40%;
    transform: translate(-50%,-50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(30,91,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 5rem;
    max-width: 780px;
}

/* ─── TYPOGRAPHY ────────────────────────────── */
.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3.5rem, 6vw, 7rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -4px;
    margin-bottom: 2rem;
}

.accent-yellow { color: var(--accent); }
.accent-blue   { color: var(--primary); }

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

/* ─── CTA ───────────────────────────────────── */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    border: 1px solid rgba(255,215,0,0.5);
    background: transparent;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border-radius: 0;
    text-decoration: none;
}

.btn-hero:hover {
    border-color: var(--accent);
    color: var(--accent);
    letter-spacing: 2.5px;
}

/* ─── STATS ─────────────────────────────────── */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-stat { display: flex; flex-direction: column; gap: 0.15rem; }

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

/* ─── HINT ──────────────────────────────────── */
.hero-hint {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ─── DRAWER ────────────────────────────────── */
.hero-drawer {
    position: fixed;
    top: var(--navbar-h);
    right: 0;
    width: var(--drawer-w);
    height: calc(100vh - var(--navbar-h));
    background: #0e0e0e;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 400;
    overflow: hidden;
}

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

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.75rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.drawer-label {
    font-size: 0.58rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.drawer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.drawer-close {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: white;
    width: 34px; height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 0;
    flex-shrink: 0;
    margin-left: 1rem;
}

.drawer-close:hover { background: white; color: black; }

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,215,0,0.2) transparent;
}

.drawer-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* ─── DRAWER CONTENT COMPONENTS ─────────────── */
.d-intro {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.d-section {
    font-size: 0.58rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
    margin: 1.75rem 0 0.75rem;
}

.d-benefit {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    margin-bottom: 0.6rem;
    transition: border-color 0.2s;
}

.d-benefit:hover { border-color: rgba(255,215,0,0.2); }

.d-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.5;
    line-height: 1;
}

.d-benefit h4 {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-family: 'Outfit', sans-serif;
}

.d-benefit p {
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.6;
}

.d-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.d-tag {
    padding: 0.28rem 0.75rem;
    border: 1px solid var(--border);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted);
}

/* Contact specific */
.d-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 0.6rem;
}

.d-contact-item i {
    width: 18px; height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.d-contact-item span {
    font-size: 0.82rem;
    font-weight: 500;
}

/* Refs / client cards */
.d-client {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 0.6rem;
}

.d-client h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.d-client p {
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ─── FLOATING CARD ─────────────────────────── */
.floating-card {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 300;
    width: 185px;
    background: rgba(16,16,16,0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Hide when drawer is open */
body.drawer-open .floating-card {
    transform: translateY(-50%) translateX(calc(var(--drawer-w) + 2rem));
}

.floating-card:hover {
    transform: translateY(calc(-50% - 3px));
    border-color: rgba(255,215,0,0.3);
}

body.drawer-open .floating-card:hover {
    transform: translateY(-50%) translateX(calc(var(--drawer-w) + 2rem));
}

.floating-card-thumb {
    position: relative;
    height: 80px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card-thumb img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.floating-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(30,91,255,0.15), rgba(255,215,0,0.06));
}

.floating-card-body { padding: 0.8rem 0.9rem 0.9rem; }

.floating-card-label {
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.floating-card-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    margin-bottom: 0.7rem;
}

.floating-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.floating-card-btn:hover { background: var(--accent); border-color: var(--accent); color: black; }

/* ─── LANGUAGE ──────────────────────────────── */
/* ─── Language switching ─────────────────────── */
.lang-en { display: none !important; }

/* EN mode: restore correct display per element type */
body.lang-en span.lang-en     { display: inline      !important; }
body.lang-en p.lang-en        { display: block       !important; }
body.lang-en div.lang-en      { display: block       !important; }
body.lang-en a.lang-en        { display: inline-flex !important; }
body.lang-en button.lang-en   { display: inline-flex !important; }
body.lang-en li.lang-en       { display: list-item   !important; }

/* Hide FR in EN mode */
body.lang-en .lang-fr         { display: none        !important; }

/* ─── CUSTOM CURSOR ─────────────────────────── */
#custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%,-50%);
    transition: opacity 0.3s ease;
}

#custom-cursor svg { filter: drop-shadow(0 0 8px rgba(255,215,0,0.6)); }

body.hero-active #custom-cursor { opacity: 0.7; }

/* ─── RESPONSIVE ────────────────────────────── */
/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet & Mobile
═══════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    :root { --sidebar-w: 200px; --drawer-w: 380px; }
    .hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -3px; }
    .hero-content { padding: 2.5rem 3rem; }
    .floating-card { bottom: 1.5rem; right: 1.5rem; }
}

/* ── Mobile (≤ 768px) — Sidebar becomes horizontal scrollable ── */
@media (max-width: 768px) {
    :root { --drawer-w: 100vw; }

    /* App layout stacks vertically */
    .app-layout {
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    /* Sidebar → horizontal scrollable strip */
    .sidebar {
        width: 100% !important;
        height: auto !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
        flex-shrink: 0 !important;
        display: flex !important;
    }

    /* Accordion wrappers become horizontal cells */
    .nav-accordion {
        border-bottom: none !important;
        border-right: 1px solid var(--border);
        flex-shrink: 0;
    }

    /* Top-level nav buttons: compact pill style */
    .nav-top {
        padding: 0.85rem 1.2rem !important;
        font-size: 0.72rem !important;
        white-space: nowrap;
        height: 100%;
        border-bottom: 2px solid transparent;
    }

    .nav-top.open {
        border-bottom-color: var(--accent);
        color: var(--accent);
    }

    /* Hide acc-icon chevron on mobile */
    .nav-top .acc-icon { display: none !important; }

    /* Hide inline dropdowns on mobile (replaced by popup) */
    .nav-sub { display: none !important; }

    /* Direct nav buttons */
    .nav-direct {
        border-bottom: none !important;
        border-right: 1px solid var(--border);
        flex-shrink: 0;
        height: 100%;
        border-bottom: 2px solid transparent !important;
    }

    /* Hero takes remaining space */
    .hero-main { flex: 1; min-height: 0; }
    .hero-content { padding: 2rem 1.5rem; max-width: 100%; }
    .hero-title { font-size: clamp(2rem, 9vw, 3.5rem); letter-spacing: -2px; }
    .hero-sub { font-size: 0.95rem; max-width: 100%; }

    /* Drawer → bottom sheet */
    .hero-drawer {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 85vh;
        border-left: none;
        border-top: 1px solid var(--border);
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    }
    .hero-drawer.open { transform: translateY(0) !important; }

    .hero-main.pushed { transform: none !important; opacity: 1 !important; }
    .floating-card { display: none !important; }
}

/* ── Phone (≤ 480px) ── */
@media (max-width: 480px) {
    .hero-title { font-size: clamp(1.9rem, 10vw, 2.8rem); letter-spacing: -1.5px; }
    .hero-sub { font-size: 0.88rem; }
    .btn-hero { font-size: 0.75rem; padding: 0.7rem 1.3rem; }
    .nav-top { padding: 0.8rem 1rem !important; font-size: 0.68rem !important; }
}

/* ─── MOBILE SUBMENU POPUP ───────────────────── */

.mob-sub-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 700;
}

.mob-sub-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    z-index: 750;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 55vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 1rem);
}

.mob-sub-popup.open { transform: translateY(0); }

.mob-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem 0.8rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(10,10,10,0.98);
}

.mob-sub-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.mob-sub-close {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.mob-sub-close:hover { border-color: var(--accent); color: var(--accent); }

.mob-sub-items {
    padding: 0.5rem 0 1rem;
}

.mob-sub-items button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.65);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.mob-sub-items button:hover,
.mob-sub-items button:active {
    color: white;
    background: rgba(255,215,0,0.04);
    padding-left: 2rem;
}

/* Drag handle visual cue */
.mob-sub-popup::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}


/* ═══════════════════════════════════════════
   PAGE LOADER — Split Curtain Reveal
═══════════════════════════════════════════ */

body.loading { overflow: hidden; }

#pageLoader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

/* Two curtain panels */
.loader-panel {
    position: absolute;
    left: 0;
    right: 0;
    background: #080808;
    transition: transform 0.85s cubic-bezier(0.86, 0, 0.07, 1);
}

.loader-panel-top {
    top: 0;
    height: 51%; /* slight overlap to avoid gap */
    border-bottom: 1px solid rgba(255,215,0,0.15);
}

.loader-panel-bottom {
    bottom: 0;
    height: 51%;
    border-top: 1px solid rgba(255,215,0,0.15);
}

/* Content center */
.loader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    transition: opacity 0.3s ease;
}

/* Logo */
.loader-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    opacity: 0;
    transform: translateY(12px);
    animation: loaderLogoIn 0.7s ease forwards;
}

@keyframes loaderLogoIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Company name */
.loader-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: white;
    opacity: 0;
    animation: loaderLogoIn 0.7s ease 0.2s forwards;
}

.loader-brand span { color: #FFD700; }

/* Divider line */
.loader-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    opacity: 0;
    animation: loaderLogoIn 0.5s ease 0.4s forwards;
}

/* Slogan */
.loader-slogan-wrap {
    height: 1.6rem;
    display: flex;
    align-items: center;
    gap: 2px;
    opacity: 0;
    animation: loaderLogoIn 0.4s ease 0.5s forwards;
}

#loaderSlogan {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    min-width: 1px;
}

#loaderCursor {
    display: inline-block;
    width: 2px;
    height: 0.9rem;
    background: #FFD700;
    vertical-align: middle;
    flex-shrink: 0;
    transition: opacity 0.1s;
}

/* Accent dot bottom */
.loader-dot {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    opacity: 0;
    animation: loaderLogoIn 0.4s ease 0.6s forwards;
}

.loader-dot span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

.loader-dot span:nth-child(2) { background: #FFD700; }

/* ── EXIT ANIMATION (split curtain) ── */
#pageLoader.loader-exit .loader-panel-top {
    transform: translateY(-100%);
}

#pageLoader.loader-exit .loader-panel-bottom {
    transform: translateY(100%);
}

#pageLoader.loader-exit .loader-content {
    opacity: 0;
}

/* ─── LANGUAGE TOAST ────────────────────────── */
#langToast {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(18,18,18,0.95);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.65rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    z-index: 8000;
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

#langToast.show {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

#langToast .toast-flag { font-size: 1rem; }

#langToast .toast-switch {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    border-left: 1px solid var(--border);
    padding-left: 0.75rem;
    margin-left: 0.25rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
#langToast .toast-switch:hover { opacity: 0.7; }

#langToast .toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0 0.2rem;
    line-height: 1;
    transition: color 0.2s;
}
#langToast .toast-close:hover { color: white; }
