/* ==========================================================================
   San Andreas Network — aurora interface
   Hand-built design system: midnight navy, aurora ribbons, hairline glass.
   ========================================================================== */

:root {
    --bg:            #050810;
    --bg-deep:       #03050b;
    --panel:         rgba(14, 22, 37, 0.82);
    --panel-2:       rgba(20, 30, 48, 0.68);
    --panel-solid:   #09101c;
    --line:          rgba(162, 194, 234, 0.16);
    --line-2:        rgba(154, 191, 235, 0.28);
    --line-hot:      rgba(90, 165, 255, 0.55);

    --text:          #eaf1fb;
    --text-2:        #c3d0e4;
    --muted:         #8698b6;

    --blue:          #2c74ff;
    --blue-2:        #58a0ff;
    --cyan:          #4fe3ff;
    --violet:        #7d6bff;
    --green:         #37d69b;
    --amber:         #f6b545;
    --red:           #ff6070;
    --discord:       #5865f2;

    --grad-hot:      linear-gradient(120deg, #2c74ff 0%, #22a7f0 52%, #4fe3ff 100%);
    --grad-line:     linear-gradient(90deg, transparent, rgba(90, 165, 255, 0.45), transparent);

    --r-lg: 16px;
    --r:    10px;
    --r-sm: 7px;

    --sh-1: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    --sh-2: 0 24px 64px -34px rgba(0, 0, 0, 0.95);
    --sh-glow: 0 18px 46px -22px rgba(44, 116, 255, 0.55);

    --shell: 1200px;
    --head: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.66;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1 0 auto; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
code { font-family: var(--mono); font-size: 0.86em; color: var(--cyan); background: rgba(79, 227, 255, 0.08); padding: 0.12em 0.4em; border-radius: 6px; }
::selection { background: rgba(44, 116, 255, 0.4); color: #fff; }

:focus-visible {
    outline: 2px solid var(--blue-2);
    outline-offset: 2px;
    border-radius: 6px;
}

h1, h2, h3, h4 {
    font-family: var(--head);
    line-height: 1.12;
    margin: 0 0 0.45em;
    letter-spacing: 0;
    font-weight: 700;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
.h2 { font-size: clamp(1.55rem, 2.9vw, 2.1rem); }
.h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.015em; }
.h4 {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin-bottom: 0.9em;
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.ta-r  { text-align: right; }
.link  {
    color: var(--blue-2);
    font-weight: 600;
    font-family: var(--head);
    font-size: 0.92rem;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.link:hover { color: var(--cyan); border-color: rgba(79, 227, 255, 0.5); }

.prose { color: var(--text-2); }
.prose.small { font-size: 0.93rem; line-height: 1.68; }

.lede {
    max-width: 62ch;
    font-size: 1.06rem;
    color: var(--text-2);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--head);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--blue-2);
    margin-bottom: 0.85em;
}
.eyebrow.small { font-size: 0.66rem; margin: 0 0 0.7em; color: var(--muted); }
.eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(79, 227, 255, 0.14);
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.section { padding: 62px 0; position: relative; }
.section-tight { padding: 30px 0 0; }
.narrow { max-width: 640px; }

/* ---------- aurora backdrop ---------- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(1100px 620px at 84% -14%, rgba(44, 116, 255, 0.24), transparent 68%),
        radial-gradient(820px 480px at 4% -4%, rgba(79, 227, 255, 0.13), transparent 70%),
        radial-gradient(900px 700px at 50% 108%, rgba(125, 107, 255, 0.12), transparent 72%),
        linear-gradient(180deg, #070c18 0%, #050810 44%, var(--bg-deep) 100%);
}

/* faint engineering grid keeps the dark space from looking empty */
.aurora::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(140, 178, 235, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 178, 235, 0.045) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: radial-gradient(1200px 700px at 50% 0%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(1200px 700px at 50% 0%, #000 0%, transparent 78%);
}

.aurora-band {
    position: absolute;
    left: -20%;
    width: 140%;
    height: 150px;
    filter: blur(30px);
    border-radius: 50%;
    opacity: 0.5;
    mix-blend-mode: screen;
    will-change: transform;
}
.band-1 {
    top: -60px;
    background: linear-gradient(100deg, transparent 6%, rgba(44, 116, 255, 0.6) 30%, rgba(79, 227, 255, 0.5) 56%, transparent 90%);
    animation: drift 26s ease-in-out infinite;
}
.band-2 {
    top: 90px;
    height: 118px;
    opacity: 0.32;
    background: linear-gradient(82deg, transparent 10%, rgba(125, 107, 255, 0.55) 38%, rgba(44, 116, 255, 0.42) 68%, transparent 94%);
    animation: drift 34s ease-in-out infinite reverse;
}
.band-3 {
    top: 250px;
    height: 84px;
    opacity: 0.18;
    background: linear-gradient(90deg, transparent 14%, rgba(79, 227, 255, 0.45) 48%, transparent 88%);
    animation: drift 42s ease-in-out infinite;
}

.aurora-stars {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image:
        radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 31% 7%, rgba(255,255,255,0.55), transparent),
        radial-gradient(1.2px 1.2px at 58% 24%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 79% 11%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 91% 31%, rgba(255,255,255,0.45), transparent),
        radial-gradient(1px 1px at 21% 43%, rgba(255,255,255,0.35), transparent),
        radial-gradient(1px 1px at 68% 49%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 44% 62%, rgba(255,255,255,0.22), transparent);
}

@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg) scaleY(1); }
    50%      { transform: translate3d(-6%, 34px, 0) rotate(2.5deg) scaleY(1.2); }
}

/* ---------- entrance polish ----------
   Content is never hidden by scripts: elements animate in from a visible
   baseline, so a slow connection or blocked JS can never leave a blank page. */
[data-reveal] { animation: rise 0.6s cubic-bezier(.22,.61,.36,1) both; }
@keyframes rise {
    from { opacity: 0.001; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .aurora-band { animation: none; }
    html { scroll-behavior: auto; }
    [data-reveal] { animation: none; }
    * { transition-duration: 0.01ms !important; }
}

/* ---------- buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font-family: var(--head);
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.22s ease, color 0.2s ease;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }

.btn-primary {
    border-color: transparent;
    background: var(--grad-hot);
    color: #04101f;
    box-shadow: var(--sh-glow);
}
.btn-primary:hover { box-shadow: 0 22px 52px -20px rgba(79, 227, 255, 0.7); }
.btn-signin {
    border-color: rgba(55, 214, 155, 0.5);
    background: linear-gradient(180deg, rgba(55, 214, 155, 0.96), rgba(29, 174, 124, 0.96));
    color: #03130d;
    box-shadow: 0 12px 30px -18px rgba(55, 214, 155, 0.9);
}
.btn-signin:hover { border-color: rgba(125, 241, 196, 0.8); box-shadow: 0 16px 34px -18px rgba(55, 214, 155, 1); }

.btn-ghost { background: rgba(255, 255, 255, 0.035); }
.btn-ghost:hover { background: rgba(88, 160, 255, 0.14); border-color: var(--line-hot); }

.btn-discord { background: var(--discord); border-color: transparent; color: #fff; box-shadow: 0 16px 40px -22px rgba(88, 101, 242, 0.9); }
.btn-discord:hover { background: #4a56e6; }

.btn-danger { border-color: rgba(255, 96, 112, 0.4); color: #ffb4bc; background: rgba(255, 96, 112, 0.08); }
.btn-danger:hover { background: rgba(255, 96, 112, 0.18); }

.is-disabled { opacity: 0.42; pointer-events: none; }

.row-gap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- surfaces ---------- */
.card, .panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--sh-1), var(--sh-2);
    backdrop-filter: blur(20px) saturate(125%);
    -webkit-backdrop-filter: blur(20px) saturate(125%);
}
.panel { padding: 26px 28px; border-radius: var(--r-lg); }
.card  { padding: 22px; transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease; }

/* hairline highlight along the top edge of every surface */
.card::before, .panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(160, 205, 255, 0.36), transparent);
    border-radius: inherit;
}

.card:hover {
    border-color: var(--line-2);
    transform: translateY(-3px);
    box-shadow: var(--sh-1), 0 34px 74px -34px rgba(0, 0, 0, 1);
}

.flash {
    margin: 18px 0 0;
    padding: 13px 18px;
    border-radius: var(--r);
    border: 1px solid rgba(55, 214, 155, 0.32);
    background: rgba(55, 214, 155, 0.1);
    color: #b7f2da;
    font-size: 0.94rem;
}
.flash-error { border-color: rgba(255, 96, 112, 0.35); background: rgba(255, 96, 112, 0.1); color: #ffc0c7; }

/* ---------- topbar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.topbar.is-stuck {
    background: rgba(6, 10, 20, 0.82);
    border-bottom-color: var(--line);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.topbar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 78px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-logo {
    width: 44px; height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(44, 116, 255, 0.5));
}
.brand-text { display: grid; line-height: 1.05; font-family: var(--head); }
.brand-text strong { font-size: 1.02rem; font-weight: 750; letter-spacing: -0.02em; }
.brand-text em {
    font-style: normal;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    color: var(--blue-2);
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
    position: relative;
    padding: 9px 14px;
    border-radius: 999px;
    font-family: var(--head);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-2);
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 1px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-hot);
}
.nav-link-out::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--discord);
    vertical-align: 1px;
}

.nav-side { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
    display: none;
    width: 44px; height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    padding: 11px 11px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* user chip + dropdown */
.user-menu { position: relative; }
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 13px 5px 5px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.user-chip:hover { border-color: var(--line-hot); background: rgba(88, 160, 255, 0.12); }
.user-chip img { width: 30px; height: 30px; border-radius: 50%; }
.user-chip-name { font-family: var(--head); font-size: 0.88rem; font-weight: 650; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip svg { opacity: 0.6; transition: transform 0.2s ease; }
.user-menu.is-open .user-chip svg { transform: rotate(180deg); }

.user-drop {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 234px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(9, 15, 27, 0.97);
    box-shadow: var(--sh-2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 70;
}
.user-menu.is-open .user-drop { opacity: 1; visibility: visible; transform: none; }
.user-drop-head {
    display: grid;
    gap: 2px;
    padding: 10px 12px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
}
.user-drop-head strong { font-family: var(--head); }
.user-drop a {
    display: block;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    font-size: 0.92rem;
    color: var(--text-2);
    transition: background 0.16s ease, color 0.16s ease;
}
.user-drop a:hover { background: rgba(88, 160, 255, 0.14); color: var(--text); }
.user-drop a.danger { color: #ff97a2; }
.user-drop a.danger:hover { background: rgba(255, 96, 112, 0.14); color: #ffc0c7; }

/* ---------- hero ---------- */
.hero { padding: 58px 0 56px; }
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 48px;
}
.hero-title { font-size: clamp(2.3rem, 5.1vw, 3.9rem); margin-bottom: 0.35em; }
.hero-title::after {
    content: "";
    display: block;
    width: 92px;
    height: 3px;
    margin-top: 26px;
    border-radius: 3px;
    background: var(--grad-hot);
}
.hero-sub { max-width: 52ch; font-size: 1.1rem; color: var(--text-2); margin-bottom: 1.8em; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 40px;
    margin: 42px 0 0;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.hero-stats div { display: grid; gap: 2px; }
.hero-stats dt {
    font-family: var(--head);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero-stats dd {
    margin: 0;
    font-family: var(--head);
    font-size: 1.6rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.hero-art { position: relative; justify-self: center; }
.hero-art::before {
    content: "";
    position: absolute;
    inset: 6% 6%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(44, 116, 255, 0.42), transparent 66%);
    filter: blur(38px);
}
.hero-art img {
    position: relative;
    width: 100%;
    max-width: 470px;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.7));
    animation: float 9s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(-8px); }
    50%      { transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }

/* ---------- page head (inner pages) ---------- */
.page-head {
    padding: 56px 0 12px;
    position: relative;
}
.page-head .h1 { margin-bottom: 0.4em; }
.page-head::after {
    content: "";
    display: block;
    max-width: var(--shell);
    margin: 40px auto 0;
    height: 1px;
    background: var(--grad-line);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}
.section-head .h2 { margin-bottom: 0; }
.section-head > p { max-width: 40ch; margin: 0; font-size: 0.94rem; }

/* ---------- pills / tags ---------- */
.pill, .tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--head);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-2);
    white-space: nowrap;
}
.pill-pending  { border-color: rgba(246, 181, 69, 0.4);  background: rgba(246, 181, 69, 0.1);  color: #ffd894; }
.pill-approved { border-color: rgba(55, 214, 155, 0.42); background: rgba(55, 214, 155, 0.1); color: #9df0cd; }
.pill-denied   { border-color: rgba(255, 96, 112, 0.42); background: rgba(255, 96, 112, 0.1); color: #ffb1b9; }

.tag-blue   { border-color: rgba(88, 160, 255, 0.45);  background: rgba(88, 160, 255, 0.12);  color: #b6d4ff; }
.tag-cyan   { border-color: rgba(79, 227, 255, 0.42);  background: rgba(79, 227, 255, 0.1);   color: #a7ecfb; }
.tag-green  { border-color: rgba(55, 214, 155, 0.42);  background: rgba(55, 214, 155, 0.1);   color: #9df0cd; }
.tag-amber  { border-color: rgba(246, 181, 69, 0.42);  background: rgba(246, 181, 69, 0.1);   color: #ffd894; }
.tag-violet { border-color: rgba(125, 107, 255, 0.45); background: rgba(125, 107, 255, 0.14); color: #cbc3ff; }
.tag-red    { border-color: rgba(255, 96, 112, 0.42);  background: rgba(255, 96, 112, 0.1);   color: #ffb1b9; }

.chip, .role-chip, .dept-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.85rem;
    color: var(--text-2);
}
.role-chip { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.chip-grid, .role-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- logo marks ---------- */
.mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border-radius: 13px;
    border: 1px solid var(--line-2);
    background: linear-gradient(160deg, rgba(44, 116, 255, 0.22), rgba(12, 19, 33, 0.9));
    overflow: hidden;
    box-shadow: var(--sh-1);
}
.mark img { width: 100%; height: 100%; object-fit: cover; }
.mark-text {
    font-family: var(--head);
    font-weight: 750;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    color: var(--blue-2);
}
.mark-sm { width: 38px; height: 38px; border-radius: 11px; }
.mark-sm .mark-text { font-size: 0.74rem; }
.mark-lg { width: 58px; height: 58px; border-radius: 16px; }
.mark-lg .mark-text { font-size: 1rem; }
.mark-xl { width: 92px; height: 92px; border-radius: 22px; }
.mark-xl .mark-text { font-size: 1.5rem; }
.avatar-xs { width: 28px; height: 28px; border-radius: 50%; }

/* ---------- pillars strip ---------- */
.pillars-wrap {
    padding: 8px 0 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(12, 20, 35, 0.55), rgba(6, 10, 20, 0.2));
}
.pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}
.pillar { padding: 30px 30px 30px 0; }
.pillar + .pillar { padding-left: 30px; border-left: 1px solid var(--line); }
.pillar .h3 { margin-bottom: 0.4em; }
.pillar-ico {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid rgba(88, 160, 255, 0.34);
    background: linear-gradient(160deg, rgba(44, 116, 255, 0.26), rgba(12, 19, 33, 0.7));
    color: var(--cyan);
}
@media (max-width: 880px) {
    .pillars { grid-template-columns: 1fr; }
    .pillar { padding: 24px 0; }
    .pillar + .pillar { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- updates ---------- */
.update-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.update-card { display: flex; flex-direction: column; gap: 12px; padding-left: 24px; }
.update-card::after {
    content: "";
    position: absolute;
    left: 0; top: 22px; bottom: 22px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--grad-hot);
    opacity: 0.75;
}
.update-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.update-card h3 { margin: 0; font-size: 1.1rem; }

/* ---------- discord panel ---------- */
.discord-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 34px;
    align-items: center;
    padding: 36px;
    overflow: hidden;
}
.discord-panel::after {
    content: "";
    position: absolute;
    right: -80px; top: -120px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.3), transparent 64%);
    filter: blur(14px);
    pointer-events: none;
}
.discord-copy .h2 { margin-bottom: 0.4em; }
.discord-copy p { max-width: 54ch; }
.discord-copy .btn { margin-top: 22px; }
.discord-counts { display: grid; gap: 14px; position: relative; }
.count-box {
    display: grid;
    gap: 4px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(255, 255, 255, 0.03);
}
.count-box strong {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--head);
    font-size: 1.85rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.count-box span {
    font-family: var(--head);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}
.live-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(55, 214, 155, 0.16);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(55, 214, 155, 0.18); }
    50%      { box-shadow: 0 0 0 8px rgba(55, 214, 155, 0.05); }
}

/* ---------- featured department ---------- */
.featured {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 30px;
    padding: 34px 36px;
    align-items: start;
}
.featured-body .h3 { font-size: 1.5rem; margin-bottom: 0.5em; }
.featured-body .row-gap { margin-top: 22px; }

/* ---------- departments ---------- */
.dept-grid, .app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}
.dept-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
}
.dept-card h2, .app-card h2 { margin: 6px 0 0; }
.dept-card .prose { flex: 1 0 auto; }
.dept-card.is-featured { border-color: rgba(88, 160, 255, 0.4); box-shadow: var(--sh-1), 0 30px 70px -34px rgba(44, 116, 255, 0.55); }
.ribbon {
    position: absolute;
    top: 18px; right: 18px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--grad-hot);
    color: #04101f;
    font-family: var(--head);
    font-size: 0.63rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ---------- applications ---------- */
.app-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; }
.app-card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.app-card .prose { flex: 1 0 auto; }
.app-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.status-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(255, 255, 255, 0.025);
}
.status-main { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.status-main strong { font-family: var(--head); }
.note { font-size: 0.9rem; color: var(--text-2); font-style: italic; }

.signin-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.signin-panel .h3 { margin-bottom: 0.3em; }

/* ---------- apply form ---------- */
.apply-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 52px 0 30px;
}
.apply-head .h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 0.25em; }

.form { display: grid; gap: 20px; }
.form-intro {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}
.form-grid, .field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: start; }
.field-row > .field { min-width: 0; }
.form-inset { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, 0.02); }

.field { display: grid; gap: 8px; }
.field > label, .field-row > label {
    font-family: var(--head);
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--text);
}
.field .req { color: var(--cyan); margin-left: 3px; }
.field-help { font-size: 0.85rem; color: var(--muted); margin: -4px 0 2px; }

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
textarea, select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: rgba(4, 8, 16, 0.72);
    color: var(--text);
    font-family: var(--body);
    font-size: 0.96rem;
    line-height: 1.5;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
input[type="file"] {
    width: 100%;
    font-size: 0.9rem;
    color: var(--text-2);
}
input:hover:not(:focus):not([type="checkbox"]):not([type="radio"]),
textarea:hover:not(:focus), select:hover:not(:focus) { border-color: var(--line-hot); }
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px #0a1120 inset;
    caret-color: var(--text);
}
textarea { min-height: 128px; resize: vertical; line-height: 1.62; }
textarea[rows="2"] { min-height: 76px; }
textarea[rows="3"] { min-height: 98px; }
input[readonly], input:disabled, textarea:disabled, select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
input[type="number"] { font-variant-numeric: tabular-nums; }
input::placeholder, textarea::placeholder { color: rgba(134, 152, 182, 0.7); }
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--line-hot);
    box-shadow: 0 0 0 3px rgba(44, 116, 255, 0.16);
    background: rgba(6, 12, 24, 0.9);
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    cursor: pointer;
}
select option { background: var(--panel-solid); color: var(--text); }
.select-wrap { position: relative; }
.select-wrap::after {
    content: "";
    position: absolute;
    right: 16px; top: 50%;
    width: 8px; height: 8px;
    margin-top: -6px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    pointer-events: none;
}

.choice-row { display: grid; gap: 8px; }
.choice {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    font-size: 0.94rem;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.choice:hover { border-color: var(--line-hot); background: rgba(88, 160, 255, 0.1); }
.choice input { accent-color: var(--blue); width: 17px; height: 17px; margin: 0; }

.form-foot, .form-foot-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.inline-form { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-row .field { min-width: 180px; }

/* ---------- leaderboard ---------- */
.rank {
    font-family: var(--head);
    font-weight: 750;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    color: var(--blue-2);
}
.rank-big { font-size: 1.5rem; }

.you-row { display: flex; align-items: center; gap: 18px; }
.you-row img { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); }
.you-main { display: grid; gap: 4px; flex: 1 1 auto; min-width: 0; }
.you-main strong { font-family: var(--head); font-size: 1.05rem; }

.xp-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    margin-top: 6px;
}
.xp-bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad-hot); }

.table-panel { padding: 8px 10px; overflow-x: auto; }
.board { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.board th {
    text-align: left;
    padding: 14px 16px;
    font-family: var(--head);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.board td { padding: 13px 16px; border-bottom: 1px solid rgba(140, 178, 235, 0.07); vertical-align: middle; }
.board tbody tr:last-child td { border-bottom: 0; }
.board tbody tr { transition: background 0.16s ease; }
.board tbody tr:hover { background: rgba(88, 160, 255, 0.07); }
.board tr.is-you { background: rgba(44, 116, 255, 0.12); }
.board tr.is-you td:first-child { box-shadow: inset 3px 0 0 var(--cyan); }
.rank-cell { font-family: var(--head); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); width: 62px; }
.board-user { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; }
.board-user img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); }
.board-user:hover span { color: var(--blue-2); }

.top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.top-card { display: flex; align-items: center; gap: 14px; }
.top-card img { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); }
.top-card > div { display: grid; gap: 1px; min-width: 0; }
.top-card strong { font-family: var(--head); font-size: 1rem; }
.top-card .rank { font-size: 1.15rem; min-width: 34px; }

/* ---------- profile ---------- */
.profile { padding: 34px 0 0; }
.profile-card { padding: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh-1), var(--sh-2); position: relative; }
.profile-banner {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.profile-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 16, 0.1), rgba(10, 17, 32, 0.95));
}
.banner-fallback {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 260px at 22% 0%, rgba(44, 116, 255, 0.55), transparent 70%),
        radial-gradient(520px 240px at 78% 20%, rgba(79, 227, 255, 0.35), transparent 72%),
        linear-gradient(120deg, #0a1224 0%, #101c33 100%);
}

.profile-top {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 32px;
    margin-top: -66px;
    position: relative;
}
.profile-avatar {
    width: 132px; height: 132px;
    border-radius: 50%;
    border: 4px solid var(--panel-solid);
    background: var(--panel-solid);
    box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.9);
}
.profile-id { flex: 1 1 auto; min-width: 0; padding-bottom: 8px; }
.profile-id .h2 { margin-bottom: 0.1em; }
.profile-edit { margin-bottom: 10px; }

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, auto) minmax(180px, 1fr);
    gap: 14px 34px;
    align-items: center;
    padding: 26px 32px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.profile-stats > div { display: grid; gap: 2px; }
.profile-stats strong {
    font-family: var(--head);
    font-size: 1.5rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.stat-bar { min-width: 0; }

.profile-body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 34px;
    padding: 30px 32px 36px;
}
.profile-block + .profile-block { margin-top: 30px; }

.profile-departments { display: grid; gap: 10px; }
.profile-department {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 74px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: linear-gradient(100deg, rgba(44, 116, 255, 0.1), rgba(255, 255, 255, 0.025));
}
.profile-department > div { display: grid; gap: 2px; min-width: 0; }
.profile-department strong { font-family: var(--head); font-size: 0.94rem; }
.profile-department div span { color: var(--muted); font-size: 0.7rem; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.membership-state { color: #9df0cd; border: 1px solid rgba(55, 214, 155, 0.32); background: rgba(55, 214, 155, 0.08); padding: 5px 9px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }

.leadership-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(125, 107, 255, 0.35);
    border-radius: var(--r);
    background: linear-gradient(120deg, rgba(125, 107, 255, 0.14), rgba(44, 116, 255, 0.08));
    font-size: 0.94rem;
    color: #ddd8ff;
}
.leadership-note svg { flex: 0 0 auto; color: #b9aeff; }
.leadership-note em { color: #fff; font-style: normal; font-weight: 700; }

.dept-chip { padding: 9px 14px 9px 9px; gap: 11px; font-family: var(--head); font-weight: 600; }
.dept-chip .mark { width: 30px; height: 30px; border-radius: 9px; }
.dept-chip .mark-text { font-size: 0.6rem; }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.badge {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 9px;
    padding: 14px 10px 12px;
    text-align: center;
    border-radius: var(--r);
    border: 1px solid var(--line-2);
    background: linear-gradient(165deg, rgba(125, 107, 255, 0.14), rgba(12, 19, 33, 0.86));
    cursor: pointer;
    color: var(--text);
    font-family: var(--head);
    font-weight: 650;
    font-size: 0.78rem;
    line-height: 1.35;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.badge > span:last-child {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.badge .mark, .badge .mark-sm {
    width: 46px; height: 46px;
    border-radius: 13px;
    flex: 0 0 auto;
    background: rgba(4, 9, 18, 0.6);
}
.badge .mark-text { font-size: 0.82rem; color: var(--blue-2); }
.badge:hover { transform: translateY(-3px); border-color: var(--line-hot); box-shadow: 0 16px 34px -20px rgba(44, 116, 255, 0.85); }
.badge img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 0; cursor: pointer; }
.modal-card {
    position: relative;
    width: min(420px, 100%);
    padding: 30px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    background: rgba(10, 17, 32, 0.98);
    box-shadow: var(--sh-2);
    text-align: center;
    animation: pop 0.2s cubic-bezier(.2,.7,.3,1);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
.modal-card .mark, .modal-card .badge { margin: 0 auto 16px; width: 68px; height: 68px; }
.modal-card .btn { margin-top: 20px; }

/* ---------- settings workspaces ---------- */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 20px; align-items: start; }
.settings-me { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.settings-me img { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); }
.settings-me div { display: grid; min-width: 0; }
.settings-me strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--head); }
.account-layout, .settings-workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-workspace { width: 100%; }
.account-rail, .settings-rail {
    position: sticky;
    top: 98px;
    display: grid;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, rgba(19, 30, 49, 0.94), rgba(7, 12, 22, 0.88));
    box-shadow: var(--sh-1), var(--sh-2);
    backdrop-filter: blur(22px) saturate(130%);
}
.account-rail .settings-me { padding: 6px 6px 16px; margin: 0 0 10px; border-bottom: 1px solid var(--line); }
.account-rail nav, .settings-rail { gap: 4px; }
.account-rail nav a, .settings-rail > a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: var(--r-sm);
    color: var(--text-2);
    font: 600 0.88rem var(--head);
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.account-rail nav a span, .settings-rail > a span { color: var(--muted); font: 700 0.64rem var(--mono); }
.account-rail nav a:hover, .settings-rail > a:hover { color: var(--text); background: rgba(255,255,255,.045); }
.account-rail nav a.is-active { color: var(--text); background: rgba(44,116,255,.16); box-shadow: inset 2px 0 var(--cyan); }
.account-profile-link { display: flex; justify-content: space-between; margin-top: 14px; padding: 13px 12px 4px; border-top: 1px solid var(--line); color: var(--blue-2); font-size: .82rem; font-weight: 700; }
.account-content, .settings-content { display: grid; gap: 18px; min-width: 0; }
.settings-section { scroll-margin-top: 108px; }
.settings-section-head { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 18px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.settings-section-head > span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--line-2); border-radius: 50%; color: var(--cyan); font: 700 .66rem var(--mono); background: rgba(44,116,255,.1); }
.settings-section-head h2 { margin: 0; }
.settings-section-head p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings-fields .field:has(textarea), .settings-fields .field:nth-child(odd):last-child { grid-column: 1 / -1; }
.settings-rail-kicker { padding: 7px 12px 12px; color: var(--muted); font: 700 .65rem var(--head); text-transform: uppercase; letter-spacing: .16em; }
.settings-rail-note { margin-top: 12px; padding: 13px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; line-height: 1.5; }
.settings-savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(8,14,25,.94); box-shadow: 0 18px 48px -24px #000; backdrop-filter: blur(18px); }
.settings-savebar span { display: grid; }
.settings-savebar small { color: var(--muted); }
.role-directory { margin: 24px 0 0 274px; }
.connection-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 17px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.025); }
.connection-card.is-connected { border-color: rgba(55,214,155,.3); background: linear-gradient(100deg, rgba(55,214,155,.09), rgba(255,255,255,.02)); }
.connection-mark { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: #111b2b; color: var(--text); font: 800 1rem var(--head); }
.connection-copy { display: grid; }
.connection-copy p { margin: 2px 0 0; color: var(--muted); font-size: .84rem; }
.connection-label { color: var(--muted); font: 700 .62rem var(--head); text-transform: uppercase; letter-spacing: .14em; }
.connection-state { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.is-connected .connection-state { color: #9df0cd; border-color: rgba(55,214,155,.36); background: rgba(55,214,155,.08); }
.identity-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 12px 0 0; }
.identity-grid div { padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(4,9,18,.35); }
.identity-grid dt { color: var(--muted); font: 700 .64rem var(--head); text-transform: uppercase; letter-spacing: .12em; }
.identity-grid dd { margin: 4px 0 0; font: 650 .92rem var(--head); overflow-wrap: anywhere; }
.connection-lock { margin: 13px 0 0; color: var(--muted); font-size: .8rem; }
.sync-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sync-row > div { display: grid; }
.sync-row span { color: var(--muted); font-size: .84rem; }
.kv { display: grid; gap: 0; margin: 0; list-style: none; padding: 0; }
.kv > div, .kv > li, .kv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(140, 178, 235, 0.09);
    font-size: 0.94rem;
}
.kv > div:last-child, .kv > li:last-child { border-bottom: 0; }
.kv strong { font-family: var(--head); }

/* ---------- admin ---------- */
.admin-shell {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 70px;
}
.admin-nav {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    background: linear-gradient(165deg, rgba(18, 29, 48, 0.96), rgba(7, 12, 22, 0.92));
    box-shadow: var(--sh-1), var(--sh-2);
    backdrop-filter: blur(22px) saturate(135%);
}
.admin-nav-brand { display: flex; align-items: center; gap: 10px; padding: 7px 8px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.admin-nav-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(79,227,255,.28); border-radius: 10px; color: var(--cyan); background: rgba(44,116,255,.12); font: 800 .65rem var(--head); letter-spacing: .08em; }
.admin-nav-brand div { display: grid; }
.admin-nav-brand strong { font: 700 .82rem var(--head); }
.admin-nav-brand small { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .11em; }
.admin-nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    font-family: var(--head);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-2);
    transition: background 0.16s ease, color 0.16s ease;
}
.admin-nav-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.admin-nav-link.is-active { background: linear-gradient(90deg, rgba(44,116,255,.24), rgba(79,227,255,.06)); color: #fff; box-shadow: inset 2px 0 0 var(--cyan), 0 8px 22px -18px rgba(79,227,255,.8); }
.admin-nav .mini {
    margin-top: 8px;
    padding: 10px 14px 4px;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
    color: var(--muted);
}
.admin-main { display: grid; gap: 20px; min-width: 0; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat {
    display: grid;
    gap: 4px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel-2);
    box-shadow: var(--sh-1);
}
.stat span {
    font-family: var(--head);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--muted);
}
.stat strong { font-family: var(--head); font-size: 2rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }

.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.admin-list > li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(255, 255, 255, 0.028);
    transition: border-color 0.16s ease, background 0.16s ease;
}
.admin-list > li:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.05); }
.admin-list > li form { display: inline-flex; margin: 0; }
.admin-list .row-gap { gap: 8px; }

.review-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.answers { display: grid; gap: 12px; margin: 4px 0 0; }
.answers > div {
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: rgba(4, 8, 16, 0.55);
}
.answers dt, .answers strong {
    display: block;
    font-family: var(--head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 5px;
}
.answers dd { margin: 0; color: var(--text-2); white-space: pre-wrap; }

.user-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.user-row img { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); }
.user-row .kv { flex: 1 1 220px; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.field-row > .field, .field-row > label { min-width: 0; }
.field-row.row-gap { display: flex; }

/* ---------- footer ---------- */
.footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(6, 11, 22, 0.4), rgba(3, 5, 11, 0.85));
}
.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 34px;
    padding: 46px 0 30px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 46ch; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand strong { display: block; font-family: var(--head); font-size: 1.02rem; margin-bottom: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; align-content: start; justify-content: flex-end; }
.footer-links a { font-size: 0.92rem; color: var(--muted); transition: color 0.18s ease; }
.footer-links a:hover { color: var(--blue-2); }
.footer-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 0 26px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}
.footer-legal .mono, .footer-legal code { font-family: var(--mono); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
    .hero-inner { grid-template-columns: 1fr; gap: 34px; }
    .hero-art { order: -1; max-width: 320px; }
    .discord-panel { grid-template-columns: 1fr; }
    .profile-body { grid-template-columns: 1fr; gap: 26px; }
    .settings-grid { grid-template-columns: 1fr; }
    .account-layout, .settings-workspace { grid-template-columns: 1fr; }
    .account-rail, .settings-rail { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; align-items: center; }
    .account-rail .settings-me, .account-profile-link, .settings-rail-kicker, .settings-rail-note { display: none; }
    .account-rail nav { display: flex; }
    .settings-content { min-width: 0; }
    .role-directory { margin-left: 0; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 6px; }
    .admin-nav .mini { display: none; }
    .profile-stats { grid-template-columns: repeat(3, auto); }
    .stat-bar { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px; right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: var(--r-lg);
        background: rgba(8, 13, 25, 0.98);
        box-shadow: var(--sh-2);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
    .nav.is-open { display: flex; }
    .topbar-inner { position: relative; flex-wrap: wrap; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-link { padding: 12px 14px; border-radius: var(--r-sm); }
    .nav-link.is-active { background: rgba(44, 116, 255, 0.16); }
    .nav-link.is-active::after { display: none; }
    .nav-side { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
    .nav-side .btn { width: 100%; }
    .user-menu { width: 100%; }
    .user-chip { width: 100%; justify-content: flex-start; }
    .user-chip-name { max-width: none; }
    .user-drop { position: static; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; display: none; margin-top: 8px; }
    .user-menu.is-open .user-drop { display: block; }
}

@media (max-width: 720px) {
    .section { padding: 56px 0; }
    .panel { padding: 22px 20px; }
    .featured, .apply-head { grid-template-columns: 1fr; gap: 18px; }
    .profile-top { flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 22px; }
    .profile-avatar { width: 104px; height: 104px; }
    .profile-stats, .profile-body { padding-left: 22px; padding-right: 22px; }
    .profile-stats { grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
    .profile-banner { height: 160px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-links { justify-content: flex-start; }
    .status-list li { flex-wrap: wrap; }
    .hero-stats { gap: 16px 26px; }
    .hero-stats dd { font-size: 1.35rem; }
    .discord-panel { padding: 24px 20px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .section-head > p { max-width: none; }
}

/* ==========================================================================
   Staff panel v2 — grouped navigation, section headers, review workspace
   ========================================================================== */

.admin-nav-group { display: grid; gap: 3px; }
.admin-nav-group + .admin-nav-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.admin-nav-label {
    padding: 4px 14px 6px;
    font-family: var(--head);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(134, 152, 182, 0.85);
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-nav-link svg { flex: 0 0 auto; width: 16px; height: 16px; opacity: 0.75; }
.admin-nav-link.is-active svg { opacity: 1; color: var(--cyan); }
.admin-nav-link .count {
    margin-left: auto;
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(44, 116, 255, 0.28);
    border: 1px solid rgba(90, 165, 255, 0.4);
    font-size: 0.7rem;
    font-weight: 750;
    text-align: center;
    color: #dce9ff;
    font-variant-numeric: tabular-nums;
}
.admin-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: rgba(4, 9, 18, 0.5);
    min-width: 0;
}
.admin-nav-user img { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; }
.admin-nav-user div { display: grid; gap: 1px; min-width: 0; }
.admin-nav-user strong { font-family: var(--head); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-nav-user span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }

/* section blocks inside the panel */
.admin-section { display: grid; gap: 16px; }
.admin-section + .admin-section { margin-top: 10px; }
.admin-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.admin-section-head .eyebrow { margin-bottom: 2px; }
.admin-section-head h2, .admin-section-head h3 { margin: 0; }
.admin-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; max-width: 62ch; }

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(4, 9, 18, 0.42);
}
.admin-toolbar .filter-row { margin: 0; }

.stat.stat-hot { background: linear-gradient(150deg, rgba(44, 116, 255, 0.2), rgba(22, 33, 54, 0.6)); border-color: var(--line-hot); }
.stat .trend { font-size: 0.78rem; color: var(--muted); font-family: var(--body); letter-spacing: 0; text-transform: none; font-weight: 500; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.quick-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(255, 255, 255, 0.028);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.quick-card:hover { transform: translateY(-3px); border-color: var(--line-hot); background: rgba(44, 116, 255, 0.1); }
.quick-card strong { font-family: var(--head); font-size: 1rem; display: flex; align-items: center; gap: 9px; }
.quick-card strong svg { width: 17px; height: 17px; color: var(--blue-2); }
.quick-card span { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

/* data table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
table.data th, table.data td { padding: 12px 15px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
table.data thead th {
    font-family: var(--head);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(4, 9, 18, 0.55);
    white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
table.data td.right, table.data th.right { text-align: right; }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-user img { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; }
.cell-user div { display: grid; gap: 0; min-width: 0; }
.cell-user strong { font-family: var(--head); font-size: 0.9rem; }
.cell-user span { font-size: 0.78rem; color: var(--muted); }

/* review workspace */
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.review-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 20px 22px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    background: linear-gradient(140deg, rgba(44, 116, 255, 0.16), rgba(17, 26, 44, 0.8));
    box-shadow: var(--sh-1), var(--sh-2);
}
.review-hero .mark-lg { flex: 0 0 auto; }
.review-hero-main { flex: 1 1 240px; min-width: 0; display: grid; gap: 4px; }
.review-hero-main h2 { margin: 0; }
.review-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.86rem; color: var(--muted); }
.review-meta a { color: var(--blue-2); }

.answers { grid-template-columns: 1fr; gap: 10px; }
.answers > div { position: relative; padding: 14px 16px 14px 18px; }
.answers > div::before {
    content: "";
    position: absolute;
    left: 0; top: 12px; bottom: 12px;
    width: 2px;
    border-radius: 2px;
    background: var(--grad-hot);
    opacity: 0.6;
}
.answers dd { font-size: 0.95rem; line-height: 1.62; }

.review-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.applicant-card { display: grid; gap: 14px; justify-items: center; text-align: center; }
.applicant-card img.applicant-avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    border: 2px solid var(--line-hot);
    box-shadow: var(--sh-glow);
}
.applicant-card .name { font-family: var(--head); font-weight: 700; font-size: 1.05rem; }
.applicant-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.applicant-mini div {
    padding: 10px 6px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: rgba(4, 9, 18, 0.45);
    display: grid;
    gap: 1px;
}
.applicant-mini span { font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); font-family: var(--head); font-weight: 700; }
.applicant-mini strong { font-family: var(--head); font-size: 1rem; font-variant-numeric: tabular-nums; }

.decision-stack { display: grid; gap: 10px; }
.decision-stack .btn { width: 100%; justify-content: center; }
.decision-note { display: grid; gap: 8px; }

@media (max-width: 1040px) {
    .review-layout { grid-template-columns: 1fr; }
    .review-side { position: static; }
}
@media (max-width: 900px) {
    .admin-nav-group + .admin-nav-group { margin-top: 0; padding-top: 0; border-top: 0; }
    .admin-nav-label, .admin-nav-user, .admin-nav-brand { display: none; }
    .admin-nav { grid-auto-flow: column; grid-auto-columns: max-content; }
    .admin-nav-group { grid-auto-flow: column; grid-auto-columns: max-content; }
}

@media (max-width: 620px) {
    .shell { padding-left: 16px; padding-right: 16px; }
    .page-head { padding-top: 38px; }
    .page-head::after { margin-top: 26px; }
    .settings-fields, .identity-grid { grid-template-columns: 1fr; }
    .settings-fields .field { grid-column: auto; }
    .settings-savebar { position: static; align-items: stretch; flex-direction: column; }
    .settings-savebar .btn { width: 100%; }
    .connection-card { grid-template-columns: auto minmax(0,1fr); }
    .connection-state { grid-column: 2; justify-self: start; }
    .sync-row { align-items: stretch; flex-direction: column; }
    .sync-row .btn { width: 100%; }
    .profile-department { grid-template-columns: auto minmax(0,1fr); }
    .membership-state { grid-column: 2; justify-self: start; }
}

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: minmax(0, 1fr); }
    .admin-nav {
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        padding: 8px;
    }
    .admin-nav-group { min-width: 0; }
    .review-layout, .admin-main, .admin-section { min-width: 0; }
    .review-hero { padding: 16px; }
    .applicant-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   Refinement layer — depth, motion, connect bar, steps, FAQ, marquee
   ========================================================================== */

body::after {
    /* fine film-grain so flat panels never read as plastic */
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: 0.045;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #05080f; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(88, 160, 255, 0.55), rgba(44, 116, 255, 0.3));
    border-radius: 20px;
    border: 3px solid #05080f;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #58a0ff, #2c74ff); }

/* ---- scroll reveal (JS opt-in; visible by default without JS) ---- */
.has-js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(.2,.7,.2,1), transform 0.6s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}
.has-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---- shine sweep on primary buttons ---- */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
}
.btn-primary:hover::after { left: 120%; }

/* ---- card hover depth ---- */
.card, .panel { transition: transform 0.35s cubic-bezier(.2,.7,.2,1), border-color 0.35s ease, box-shadow 0.35s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--line-hot); box-shadow: var(--sh-2), var(--sh-glow); }

/* ---- connect / status bar ---- */
.connect-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(44, 116, 255, 0.18), transparent 60%),
        var(--panel);
    box-shadow: var(--sh-1), var(--sh-2);
    backdrop-filter: blur(14px);
}
.connect-copy { display: grid; gap: 6px; min-width: 0; }
.connect-label {
    font-family: var(--head);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.connect-address {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.connect-address code {
    font-size: 0.98rem;
    padding: 0.45em 0.75em;
    border: 1px dashed rgba(79, 227, 255, 0.35);
    background: rgba(79, 227, 255, 0.07);
    border-radius: var(--r-sm);
    word-break: break-all;
}
.copy-btn {
    border: 1px solid var(--line-2);
    background: rgba(255,255,255,0.04);
    color: var(--text-2);
    padding: 0.45em 0.85em;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-size: 0.82rem;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.copy-btn:hover { color: #fff; border-color: var(--line-hot); background: rgba(44, 116, 255, 0.18); }
.copy-btn.is-copied { color: var(--green); border-color: rgba(55, 214, 155, 0.5); }
.connect-meta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.meta-chip {
    display: grid;
    gap: 2px;
    padding: 10px 14px;
    min-width: 104px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel-2);
}
.meta-chip strong { font-family: var(--head); font-size: 1.05rem; }
.meta-chip span { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---- marquee band ---- */
.band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(44,116,255,0.10), rgba(79,227,255,0.06), rgba(125,107,255,0.10));
    overflow: hidden;
    padding: 12px 0;
    margin: 8px 0 0;
}
.band-track {
    display: flex;
    gap: 44px;
    width: max-content;
    animation: band-scroll 38s linear infinite;
}
.band-track span {
    font-family: var(--head);
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(214, 230, 252, 0.62);
    white-space: nowrap;
}
.band-track span::after { content: "◆"; margin-left: 44px; color: rgba(79, 227, 255, 0.5); letter-spacing: 0; }
@keyframes band-scroll { to { transform: translateX(-50%); } }
.band:hover .band-track { animation-play-state: paused; }

/* ---- how to join steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step {
    position: relative;
    padding: 22px 20px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--panel);
    overflow: hidden;
}
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute;
    top: 10px; right: 16px;
    font-family: var(--head);
    font-size: 2.6rem;
    font-weight: 800;
    color: rgba(126, 176, 255, 0.10);
    letter-spacing: -0.04em;
}
.step::after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--grad-hot);
    opacity: 0.7;
}
.step h3 { margin: 0 0 6px; font-size: 1.06rem; }
.step p { margin: 0; color: var(--text-2); font-size: 0.92rem; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 12px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel-2);
    padding: 0 18px;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.faq-item[open] { border-color: var(--line-hot); background: var(--panel); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 15px 0;
    font-family: var(--head);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    color: var(--blue-2);
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.25s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 16px; color: var(--text-2); font-size: 0.93rem; }

/* ---- back to top ---- */
.to-top {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 40;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: rgba(10, 17, 32, 0.85);
    color: var(--text-2);
    cursor: pointer;
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, color 0.25s, border-color 0.25s;
}
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: #fff; border-color: var(--line-hot); }

@media (max-width: 900px) {
    .connect-bar { grid-template-columns: minmax(0, 1fr); }
    .connect-meta { justify-content: flex-start; }
    .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .has-js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .band-track { animation: none; }
    .btn-primary::after { display: none; }
    .card:hover { transform: none; }
}
