/* =====================================================================
   20 - LAYOUT
   Navbar, footer, inner-page header, admin shell.
   ===================================================================== */

/* ---------- Navbar --------------------------------------------------- */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1030;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 clamp(16px, 4vw, 48px);
    background: rgba(6, 6, 8, .94);
    box-shadow: 0 1px 0 rgba(184, 19, 27, .55), 0 8px 24px rgba(0, 0, 0, .5);
    transition: background .35s, box-shadow .35s, height .35s;
}

.site-nav.is-scrolled {
    height: 60px;
    background: rgba(6, 6, 8, .97);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 -1px 0 var(--line);
}

/* Brand: image logo, or a text wordmark when no logo file is set */
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; white-space: nowrap; }
.brand-logo { height: 54px; width: auto; max-width: min(240px, 46vw); object-fit: contain; object-position: left center; transition: height .35s, filter .35s; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6)); }
.is-scrolled .brand-logo { height: 44px; }
.brand:hover .brand-logo { filter: drop-shadow(0 0 14px rgba(184, 19, 27, .55)); }
.brand-word { font-family: var(--font-display); font-size: 28px; letter-spacing: 2px; line-height: 1; }
.brand-word em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-link-x {
    display: block;
    position: relative;
    padding: 10px 14px;
    white-space: nowrap;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .72);
    font-size: 17px;
    font-weight: 600;
    font-stretch: var(--stretch-tight);
    transition: color .2s;
}
.nav-link-x::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-hot), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease-out);
}
.nav-link-x:hover, .nav-link-x.active { color: #fff; }
.nav-link-x:hover::after, .nav-link-x.active::after { transform: scaleX(1); }

.nav-links .dropdown-menu {
    min-width: 210px;
    padding: 6px;
    background: rgba(17, 17, 20, .96);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.nav-links .dropdown-item { color: var(--text-dim); border-radius: 2px; padding: 9px 12px; font-size: 14px; border-left: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.nav-links .dropdown-item:hover, .nav-links .dropdown-item:focus { border-left-color: var(--accent); background: linear-gradient(90deg, rgba(184, 19, 27, .28), rgba(184, 19, 27, .04)); color: #fff; }
.nav-links .dropdown-item:active { background: rgba(184, 19, 27, .4); }
.nav-links .dropdown-divider { margin: 6px 4px; border-color: var(--line); }

/* Desktop dropdowns are placed by CSS, not Popper (data-display="static" on the toggles):
   Popper positions with an inline transform, which the opening animation would override,
   so the menu used to flash at the top first and then jump into place. */
@media (min-width: 992px) {
    .nav-links .dropdown-menu {
        top: calc(100% + 10px); left: 0; right: auto;
        margin: 0;
        background: linear-gradient(180deg, rgba(30, 16, 18, .98), rgba(13, 13, 16, .98) 60%);
        border-color: rgba(255, 255, 255, .08);
        border-top: 2px solid var(--accent);
        box-shadow: 0 18px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4), 0 -6px 24px -12px rgba(184, 19, 27, .6);
        transform-origin: 30px top;
    }
    .nav-links .dropdown-menu.dropdown-menu-right { left: auto; right: 0; transform-origin: calc(100% - 30px) top; }
    .nav-links .dropdown-menu.show { animation: nav-drop-in .22s var(--ease-out) both; }
    /* notch pointing at the button */
    .nav-links .dropdown-menu::before {
        content: '';
        position: absolute; top: -7px; left: 22px;
        width: 12px; height: 12px;
        background: #1e1012;
        border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
        transform: rotate(45deg);
    }
    .nav-links .dropdown-menu-right::before { left: auto; right: 22px; }
    /* invisible bridge so the gap under the button does not feel like a miss-click area */
    .nav-links .dropdown-menu::after { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
}
@keyframes nav-drop-in { from { opacity: 0; transform: translateY(-6px) scaleY(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav-links .dropdown-menu.show { animation: none; } }
/* Grouped menus: caret + dropdown with a heading and icon tiles */
.nav-caret { margin-left: 6px; font-size: 10px; opacity: .6; transition: transform .25s, opacity .2s; }
.dropdown.show > .nav-link-x .nav-caret, .dropdown.show > .nav-account .nav-caret { transform: rotate(180deg); opacity: 1; }
.nav-links .dropdown-toggle::before { display: none; }
.nav-drop { min-width: 230px; margin-top: 6px; border-top: 2px solid var(--accent); }
.nav-drop-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; color: var(--accent-2); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.nav-drop-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(214, 199, 165, .35), transparent); }
.nav-links .nav-drop-item { display: flex; align-items: center; gap: 10px; }
.nav-drop-icon { display: inline-flex; flex: 0 0 28px; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--accent-2); font-size: 13px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 2px; transition: background .2s, color .2s, border-color .2s; }
.nav-drop-item:hover .nav-drop-icon, .nav-drop-item.is-current .nav-drop-icon { color: #fff; background: var(--accent); border-color: var(--accent); }
.nav-links .nav-drop-item.is-current { color: #fff; border-left-color: var(--accent); }
.nav-drop-ext { margin-left: auto; font-size: 10px; opacity: .5; }
.nav-links .nav-drop-item.is-logout { width: 100%; color: var(--text-dim); text-align: left; background: none; }
.nav-links .nav-drop-item.is-logout:hover { color: #fff; background: rgba(184, 19, 27, .25); }

/* Account button: portrait (or a person icon) + short name, in a framed chip */
.nav-account-li { display: flex; align-items: center; margin-left: 8px; }
.nav-account {
    display: inline-flex; align-items: center; gap: 9px;
    max-width: 230px; padding: 4px 12px 4px 4px;
    color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-strong); border-radius: 2px;
    transition: border-color .2s, background .2s;
}
.nav-account:hover, .dropdown.show > .nav-account { background: rgba(184, 19, 27, .14); border-color: var(--accent); }
.nav-account:focus, .nav-link-x:focus:not(:focus-visible) { outline: none; }
.nav-link-x:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav-account:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.nav-account::after { display: none; }
.nav-account-name { overflow: hidden; text-overflow: ellipsis; }
.nav-account-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--accent-2); font-size: 14px; background: linear-gradient(150deg, #3a1418, #120c10); border: 1px solid rgba(184, 19, 27, .6); border-radius: 2px; }
.nav-account .avatar-sm, .nav-account-head .avatar-sm { width: 32px; height: 32px; flex: 0 0 auto; }
.avatar-sm img { transform: scale(1.35); transform-origin: 50% 12%; }
.avatar-sm:hover img { transform: scale(1.35); }
.nav-account-drop { min-width: 260px; }
.nav-account-head { display: flex; align-items: center; gap: 10px; margin: -6px -6px 6px; padding: 12px; background: linear-gradient(90deg, rgba(184, 19, 27, .2), transparent); border-bottom: 1px solid var(--line); }
.nav-account-head .nav-account-icon, .nav-account-head .avatar-sm { width: 40px; height: 40px; }
.nav-account-email { overflow: hidden; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.nav-account-sub { color: var(--text-faint); font-size: 12px; }
.text-gold { color: var(--accent-2); }

/* Register tab: full-height crimson block like WarZ's centre tab */
.nav-links { align-self: stretch; }
.nav-cta { display: flex; align-self: stretch; margin-left: 12px; }
.nav-cta .btn { height: 100%; padding: 0 28px; font-size: 21px; font-weight: 800; }
.nav-cta .btn.is-active { box-shadow: inset 0 -3px 0 var(--accent-2); }
.nav-toggle { display: none; margin-left: auto; padding: 8px; border: 0; background: none; color: #fff; font-size: 22px; }

/* The bell (signed in): last on a desktop, next to the menu button on a phone */
.nav-bell { order: 5; position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: 8px; color: rgba(255, 255, 255, .72); font-size: 17px; border: 1px solid var(--line-strong); border-radius: 2px; transition: color .2s, border-color .2s, background .2s; }
.nav-bell:hover, .nav-bell.active { color: #fff; border-color: var(--accent); background: rgba(184, 19, 27, .14); }
.nav-bell.has-unread { color: #fff; }
.nav-bell-count { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; background: var(--accent); border-radius: 10px; box-shadow: 0 0 0 2px #0a0a0c; }

/* Mid-size desktops: drop the menu icons and tighten spacing so labels stay on one line */
@media (min-width: 992px) and (max-width: 1279.98px) {
    .nav-link-x { padding: 10px 9px; font-size: 15px; }
    .nav-links > li > .nav-link-x > i:not(.nav-caret) { display: none; }
    .nav-cta .btn { padding: 0 18px; font-size: 18px; }
}

@media (max-width: 991.98px) {
    .nav-toggle { display: block; }
    .nav-bell { order: 0; margin-left: auto; }
    .nav-bell + .nav-toggle { margin-left: 8px; }
    .nav-links {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(86vw, 340px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 84px 18px 24px;
        overflow-y: auto;
        background: rgba(10, 10, 12, .97);
        box-shadow: -20px 0 50px rgba(0, 0, 0, .5);
        transform: translateX(105%);
        transition: transform .45s var(--ease-out);
    }
    .nav-open .nav-links { transform: none; }
    .nav-link-x { padding: 13px 10px; font-size: 16px; border-bottom: 1px solid var(--line); }
    .nav-link-x::after { display: none; }
    .nav-links .dropdown-menu { position: static !important; transform: none !important; border: 0; background: transparent; box-shadow: none; }
    .nav-drop { margin-top: 0; padding: 4px 0 8px 12px; }
    .nav-drop-head { display: none; }
    .nav-group > .nav-link-x { display: flex; align-items: center; width: 100%; text-align: left; }
    .nav-group > .nav-link-x .nav-caret { margin-left: auto; }
    .nav-account-li { display: block; margin: 16px 0 0; }
    .nav-account { width: 100%; max-width: none; padding: 6px 12px 6px 6px; }
    .nav-account .nav-caret { margin-left: auto; }
    .nav-account-head { margin: 4px 0 6px; }
    .nav-links { align-self: auto; }
    .nav-cta { margin: 16px 0 0; }
    .nav-cta .btn { height: auto; padding: 12px 22px; }
    .nav-scrim { position: fixed; inset: 0; z-index: 1029; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
    .nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
}

/* ---------- Inner page header -------------------------------------- */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--nav-h) + 56px) 0 54px;
    text-align: center;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6, 6, 8, .55), var(--ink-950)), var(--hero-image) center 30% / cover;
}
.page-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 7vw, 80px); letter-spacing: 3px; line-height: 1; animation: fade-up .8s var(--ease-out) both; }
.page-hero p { margin: 10px 0 0; color: var(--text-dim); animation: fade-up .8s .1s var(--ease-out) both; }
.page-body { padding: 10px 0 90px; }

/* ---------- Footer ---------------------------------------------------- */
.site-footer {
    position: relative;
    margin-top: 40px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, transparent, rgba(184, 19, 27, .05));
    text-align: center;
}
.site-footer::before { content: ''; position: absolute; top: -1px; left: 50%; width: 260px; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.copyright { color: var(--text-faint); font-size: 13px; letter-spacing: .6px; }


/* ---------- Admin shell: sidebar + header ---------------------------- */
.admin-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: calc(var(--nav-h) + 20px) clamp(14px, 2.5vw, 32px) 60px; }
.admin-side { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; display: flex; flex-direction: column; max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; background: #111114; border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.admin-side-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 20% 50%, rgba(184, 19, 27, .2), transparent 70%); }
.admin-side-head .stat-icon { width: 42px; height: 42px; font-size: 18px; }
.admin-side-title { color: #fff; font-family: var(--font-display); font-size: 22px; letter-spacing: 2px; line-height: 1; }
.admin-side-sub { color: var(--text-faint); font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.admin-side-nav { flex: 1; padding: 8px 0 12px; }
.admin-side-group { padding: 14px 18px 6px; color: var(--text-faint); font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.admin-side-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 18px; color: var(--text-dim) !important; font-weight: 600; border-left: 3px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.admin-side-link i { width: 18px; color: var(--text-faint); transition: color .2s; }
.admin-side-link:hover { color: #fff !important; background: rgba(255, 255, 255, .04); }
.admin-side-link:hover i { color: var(--accent-hot); }
.admin-side-link.active { color: #fff !important; background: linear-gradient(90deg, rgba(184, 19, 27, .25), rgba(184, 19, 27, .03)); border-left-color: var(--accent-hot); }
.admin-side-link.active i { color: var(--accent-hot); }
.admin-badge { margin-left: auto; min-width: 22px; padding: 1px 7px; color: #1a1206; font-size: 12px; font-weight: 800; text-align: center; background: #e9c35a; border-radius: 10px; animation: pulse-accent 2s infinite; }
.admin-side-foot { padding: 14px 18px; color: var(--text-faint); font-size: 13px; border-top: 1px solid var(--line); }
.admin-side-foot a { display: inline-block; margin-top: 6px; color: var(--text-dim); font-weight: 600; }
.admin-side-foot a:hover { color: #fff; }

.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; padding: 18px 22px; background: var(--tex-grunge) 0 0 / 300px repeat, linear-gradient(90deg, rgba(184, 19, 27, .18), rgba(20, 20, 23, .9) 55%), #141417; border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.admin-crumb { color: var(--text-faint); font-size: 12.5px; font-weight: 600; }
.admin-crumb i { color: var(--accent-hot); }
.admin-title { margin: 2px 0 0; color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 800; font-stretch: var(--stretch-tight); }
.admin-subtitle { color: var(--text-dim); font-size: 13.5px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.admin-section { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.admin-section::before { content: ''; width: 10px; height: 18px; background: linear-gradient(180deg, var(--accent-hot), var(--accent-dark)); -webkit-mask: var(--mask-edge) 0 0 / 100% 100%; mask: var(--mask-edge) 0 0 / 100% 100%; }
.admin-section::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.admin-main > .admin-section:first-of-type { margin-top: 0; }

/* Forms written as <form class="card card-body"><h6>Title</h6> get the same header strip as .card-header */
.admin-main .card-body > h6:first-of-type { margin: -1.25rem -1.25rem 16px; padding: 13px 20px; color: #fff !important; font-size: 17px; font-weight: 700; font-stretch: var(--stretch-tight); background: linear-gradient(90deg, rgba(184, 19, 27, .12), transparent 60%); border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--accent); }
.admin-search { display: flex; gap: 10px; max-width: 560px; }

@media (max-width: 991.98px) {
    .admin-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }   /* minmax: a wide table scrolls in its box instead of widening the page */
    .admin-side { position: static; max-height: none; }
    .admin-side-head, .admin-side-foot, .admin-side-group { display: none; }
    .admin-side-nav { display: flex; gap: 2px; padding: 0; overflow-x: auto; }
    .admin-side-link { flex: none; padding: 12px 14px; border-left: 0; border-bottom: 3px solid transparent; }
    .admin-side-link.active { border-bottom-color: var(--accent-hot); }
}

/* ---------- Floating social rail (right edge, desktop) --------------- */
.social-rail { position: fixed; right: 0; top: 34%; z-index: 1020; display: flex; flex-direction: column; gap: 8px; }
.social-rail a {
    display: grid;
    place-items: center;
    width: 46px; height: 42px;
    color: #fff !important;
    font-size: 18px;
    background: var(--tex-grunge) 0 0 / 200px repeat, linear-gradient(180deg, var(--accent-hot), var(--accent-dark));
    -webkit-mask: var(--mask-edge) 0 0 / 100% 100% no-repeat;
    mask: var(--mask-edge) 0 0 / 100% 100% no-repeat;
    transform: translateX(6px);
    transition: transform .25s var(--ease-out), filter .25s;
}
.social-rail a:hover { transform: translateX(0); filter: brightness(1.2); }
/* Narrower screens: smaller tabs tucked against the edge so they cover less of the page */
@media (max-width: 1299.98px) {
    .social-rail { top: auto; bottom: 120px; gap: 6px; }
    body:has(.support-float:not([hidden])) .social-rail { bottom: calc(76px + var(--support-w) * 394 / 420 + 12px); }
    .social-rail a { width: 36px; height: 34px; font-size: 15px; opacity: .9; }
}
.social-rail-links { display: flex; flex-direction: column; gap: inherit; }
.social-rail-toggle { display: none; }
/* Phone: one round button at the bottom right; the links open above it (they never sit on the page's content) */
@media (max-width: 767.98px) {
    .social-rail, body:has(.support-float:not([hidden])) .social-rail { top: auto; right: 12px; bottom: 16px; align-items: center; }
    .social-rail-toggle {
        display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
        color: #fff; font-size: 18px;
        background: var(--tex-grunge) 0 0 / 200px repeat, linear-gradient(180deg, var(--accent-hot), var(--accent-dark));
        border: 2px solid rgba(255, 255, 255, .18); border-radius: 50%;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .55), 0 0 14px rgba(220, 31, 41, .35);
        transition: transform .25s var(--ease-out);
    }
    .social-rail-toggle:focus:not(:focus-visible) { outline: none; }
    .social-rail.is-open .social-rail-toggle { transform: rotate(90deg); }
    .social-rail-links {
        position: absolute; right: 3px; bottom: 56px; gap: 10px;
        visibility: hidden; opacity: 0; transform: translateY(12px);
        transition: opacity .25s, transform .25s var(--ease-out), visibility 0s .25s;
    }
    .social-rail.is-open .social-rail-links { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease-out); }
    .social-rail a {
        width: 40px; height: 40px; font-size: 16px; opacity: 1; transform: none;
        -webkit-mask: none; mask: none; border-radius: 50%; box-shadow: 0 6px 16px rgba(0, 0, 0, .55);
    }
    .social-rail a:hover { transform: none; }
}

/* ---------- Floating support banner (config/theme.php "support") ----- */
:root { --support-w: 180px; }
.support-float { position: fixed; right: 10px; bottom: 76px; z-index: 1035; width: var(--support-w); animation: support-in .8s .6s var(--ease-out) both; }
.support-float[hidden] { display: none; }
.support-float-link { display: block; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .6)); transition: transform .3s var(--ease-out), filter .3s; animation: support-bob 3.2s 1.6s ease-in-out infinite; }
.support-float-link img { display: block; width: 100%; height: auto; aspect-ratio: 420 / 394; object-fit: contain; }   /* any picture fits the badge frame, never stretched */
.support-float-link:hover { transform: scale(1.05); filter: drop-shadow(0 12px 26px rgba(184, 19, 27, .55)); animation-play-state: paused; }
.support-float-close {
    position: absolute;
    top: 30%;
    right: -4px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: #fff;
    font-size: 11px;
    background: rgba(6, 6, 8, .85);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    opacity: .75;
    transition: opacity .2s, background .2s;
}
.support-float-close:hover { opacity: 1; background: var(--accent); }
@media (max-width: 1299.98px) { :root { --support-w: 150px; } }
@media (max-width: 767.98px) { :root { --support-w: 112px; } .support-float { right: 6px; bottom: 72px; } }
.is-admin .social-rail { display: none; }


/* ---------- Menu dropdowns, desktop look (WarZ panel) ---------------- */
@media (min-width: 992px) {
    .nav-links .nav-drop {
        min-width: 296px;
        padding: 8px;
        background:
            radial-gradient(140% 90% at 0% 0%, rgba(184, 19, 27, .22), transparent 55%),
            repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 7px),
            linear-gradient(180deg, rgba(24, 14, 16, .98), rgba(11, 11, 13, .98));
        border: 1px solid rgba(255, 255, 255, .07);
        border-top: 2px solid var(--accent);
        border-radius: 0;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    }
    .nav-links .nav-account-drop { min-width: 300px; }
    .nav-drop-head { gap: 10px; padding: 6px 8px 10px; margin-bottom: 4px; color: #fff; font-family: var(--font-display); font-size: 20px; font-weight: 400; letter-spacing: 2.5px; text-transform: none; border-bottom: 1px solid rgba(255, 255, 255, .06); }
    .nav-drop-head::after { content: none; }
    .nav-drop-head-icon { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; font-size: 12px; background: linear-gradient(160deg, var(--accent-hot), #6b0b10); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }

    .nav-links .nav-drop-item { position: relative; gap: 12px; padding: 9px 10px; border-left: 0; overflow: hidden; }
    .nav-links .nav-drop-item::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--accent-hot); transform: scaleY(0); transition: transform .25s var(--ease-out); }
    .nav-links .nav-drop-item:hover::before, .nav-links .nav-drop-item:focus::before, .nav-links .nav-drop-item.is-current::before { transform: none; }
    .nav-links .nav-drop-item:hover, .nav-links .nav-drop-item:focus { background: linear-gradient(90deg, rgba(184, 19, 27, .3), rgba(184, 19, 27, .04) 75%, transparent); }
    .nav-links .nav-drop-item.is-current { background: rgba(184, 19, 27, .12); }
    .nav-drop-icon { flex: 0 0 36px; width: 36px; height: 36px; font-size: 14px; border-radius: 0; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
    .nav-drop-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
    .nav-drop-label { color: #fff; font-size: 15px; font-weight: 600; }
    .nav-drop-hint { margin-top: 2px; overflow: hidden; color: var(--text-faint); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; transition: color .2s; }
    .nav-drop-item:hover .nav-drop-hint, .nav-drop-item:focus .nav-drop-hint { color: var(--text-dim); }
    .nav-drop-go { margin-left: auto; padding-left: 8px; color: var(--accent-hot); font-size: 11px; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--ease-out); }
    .nav-drop-item:hover .nav-drop-go, .nav-drop-item:focus .nav-drop-go { opacity: 1; transform: none; }
    .nav-links .nav-drop-item.is-logout .nav-drop-label { color: var(--text-dim); }
    .nav-links .nav-drop-item.is-logout:hover .nav-drop-label { color: #fff; }
    .nav-links .nav-drop .dropdown-divider { margin: 6px 2px; border-color: rgba(255, 255, 255, .06); }
    .nav-account-head { margin: -8px -8px 6px; padding: 14px; }
    /* items slide in one after another */
    .nav-links .dropdown-menu.show .nav-drop-item { animation: nav-item-in .3s var(--ease-out) both; }
    .nav-links .dropdown-menu.show .nav-drop-item:nth-of-type(2) { animation-delay: .03s; }
    .nav-links .dropdown-menu.show .nav-drop-item:nth-of-type(3) { animation-delay: .06s; }
    .nav-links .dropdown-menu.show .nav-drop-item:nth-of-type(4) { animation-delay: .09s; }
    .nav-links .dropdown-menu.show .nav-drop-item:nth-of-type(5) { animation-delay: .12s; }
}
@keyframes nav-item-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav-links .dropdown-menu.show .nav-drop-item { animation: none; } }
/* phones: the side menu keeps it compact */
@media (max-width: 991.98px) {
    .nav-drop-text { display: flex; flex-direction: column; }
    .nav-drop-hint { color: var(--text-faint); font-size: 11px; }
    .nav-drop-go { display: none; }
}
/* agreement links above the copyright line */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 8px; font-size: 13px; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
