/* ============================================================
   NULLIX // ARCHIVE
   Corrupted-signal terminal aesthetic.
   Signal-mode palette:
     INFO 8B949E · ALERT D7FF3F · ARCHIVE 8C7B5E
     WARNING FF9E3D · CRITICAL D13438 · CORRUPT 7A00FF
   ============================================================ */

/* The hidden attribute must always win, even over classes that set display
   (otherwise e.g. the empty .wallet-mismatch banner shows on every page). */
[hidden] { display: none !important; }

:root {
    --bg:        #07080b;
    --bg-2:      #0b0d12;
    --surface:   #0e1117;
    --surface-2: #12161f;
    --ink:       #e8eef0;
    --text-soft: #aeb8bf;
    --muted:     #6b7681;
    --line:      #1c222c;
    --line-2:    #2a323d;

    /* signal modes */
    --info:     #8B949E;
    --alert:    #D7FF3F;   /* primary accent — acid lime */
    --archive:  #8C7B5E;
    --warning:  #FF9E3D;
    --critical: #D13438;
    --corrupt:  #7A00FF;

    --accent:   var(--alert);
    --radius:   4px;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --display: 'Space Grotesk', var(--mono);
}

/* --- wallet mismatch warning (shared: mint + dashboard) --- */
.wallet-mismatch { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin: 18px auto 0; border: 1px solid var(--warning); color: var(--warning); background: rgba(255,158,61,.06); border-radius: var(--radius); padding: 12px 16px; font-size: .78rem; line-height: 1.5; letter-spacing: .02em; max-width: 620px; }
.wallet-mismatch .wm-icon { flex: none; }

/* --- reset / base --- */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* faint scanlines + vignette over everything */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.018) 0px,
            rgba(255,255,255,0.018) 1px,
            transparent 1px,
            transparent 3px
        ),
        radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
    mix-blend-mode: screen;
    opacity: .6;
}

::selection { background: var(--alert); color: #07080b; }

/* --- scrollbars (themed) --- */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
    background: var(--line-2);
    border: 2px solid var(--bg-2);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-corner { background: var(--bg-2); }

/* brighter thumb inside terminal / feed panels */
.terminal-body, .feed-body { scrollbar-color: var(--archive) transparent; }
.terminal-body::-webkit-scrollbar-thumb,
.feed-body::-webkit-scrollbar-thumb {
    background: var(--archive);
    border-color: transparent;
}
.terminal-body::-webkit-scrollbar-thumb:hover,
.feed-body::-webkit-scrollbar-thumb:hover { background: var(--alert); }
.terminal-body::-webkit-scrollbar-track,
.feed-body::-webkit-scrollbar-track { background: transparent; }

a { color: var(--alert); text-decoration: none; }
a:hover { color: #eaffb0; }

.wrap {
    width: 100%;
    margin: 0;
    padding: 0 40px 40px;
}

/* --- top status bar --- */
.statusbar {
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}
.statusbar-inner {
    width: 100%;
    margin: 0;
    padding: 7px 40px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.statusbar .ok  { color: var(--alert); }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- nav --- */
.site-nav {
    width: 100%;
    margin: 0;
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo {
    height: 30px; width: 30px;
    object-fit: contain;
    mix-blend-mode: screen;   /* drops the near-black logo background */
    filter: drop-shadow(0 0 6px rgba(215,255,63,.25));
}
.brand-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .28em;
}
.brand-sub { color: var(--muted); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
    color: var(--text-soft);
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.nav-links a::before { content: "// "; color: var(--muted); }
.nav-links a:hover { color: var(--alert); }

/* --- hero --- */
.hero {
    padding: 90px 0 64px;
    border-bottom: 1px dashed var(--line-2);
    position: relative;
}
.hero-logo {
    width: 88px; height: 88px;
    object-fit: contain;
    display: block;
    margin: 0 0 20px -6px;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 14px rgba(215,255,63,.22));
}
.hero-tag { color: var(--alert); letter-spacing: .3em; font-size: .72rem; text-transform: uppercase; margin: 0 0 22px; }

.hero-title {
    font-family: var(--display);
    font-size: clamp(3.4rem, 13vw, 8.5rem);
    line-height: .92;
    letter-spacing: .06em;
    font-weight: 700;
    margin: 0 0 24px;
    position: relative;
    display: inline-block;
    color: var(--ink);
}
/* glitch layers */
.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    overflow: hidden;
    opacity: .85;
}
.hero-title::before { color: var(--corrupt); animation: glitch-x 3.4s infinite steps(2); clip-path: inset(0 0 62% 0); }
.hero-title::after  { color: var(--alert);   animation: glitch-y 2.7s infinite steps(2); clip-path: inset(58% 0 0 0); }
@keyframes glitch-x { 0%,92%,100%{ transform: translate(0,0);} 93%{ transform: translate(-3px,-1px);} 96%{ transform: translate(3px,1px);} }
@keyframes glitch-y { 0%,90%,100%{ transform: translate(0,0);} 91%{ transform: translate(3px,1px);} 94%{ transform: translate(-2px,-1px);} }

.hero-line { font-size: 1.25rem; color: var(--ink); margin: 0 0 12px; font-weight: 500; }
.hero-line .cursor { color: var(--alert); }
.hero-sub { color: var(--text-soft); max-width: 640px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--alert);
    color: #07080b;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-family: var(--mono);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1px solid var(--alert);
    transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.08); color: #07080b; }
.btn:active { transform: translateY(1px); }
.btn-ghost {
    background: transparent;
    color: var(--text-soft);
    border-color: var(--line-2);
}
.btn-ghost:hover { color: var(--alert); border-color: var(--alert); filter: none; }

/* --- sections --- */
.section { padding: 64px 0 0; }
.section-title {
    font-family: var(--display);
    font-size: 1.5rem;
    letter-spacing: .04em;
    margin: 0 0 6px;
}
.section-title::before { content: "> "; color: var(--alert); }
.section-note { color: var(--muted); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 26px; }

.about-text { color: var(--text-soft); max-width: 700px; }
.about-text em { color: var(--alert); font-style: normal; }

/* --- module grid --- */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.module-card {
    position: relative;
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 22px;
    overflow: hidden;
    transition: border-color .15s, transform .1s;
}
.module-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, rgba(255,255,255,.02) 0 1px, transparent 1px 4px);
    opacity: .5;
}
.module-card:hover { border-color: var(--alert); transform: translateY(-2px); }
.module-card.is-empty { opacity: .7; border-style: dashed; }
.module-card.is-empty:hover { transform: none; border-color: var(--warning); }

.module-status {
    display: inline-block;
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 3px 10px;
    border: 1px solid currentColor;
    border-radius: 999px;
    margin-bottom: 14px;
}
.status-stable     { color: var(--alert); }
.status-fragmented { color: var(--warning); }
.status-corrupt    { color: var(--corrupt); }
.status-archive    { color: var(--archive); }

.module-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.12rem; letter-spacing: .02em; }
.module-card p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }

/* --- footer / corrupted signal --- */
footer {
    margin-top: 96px;
    border-top: 1px dashed var(--line-2);
}
.site-footer {
    width: 100%;
    margin: 0;
    padding: 26px 40px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.site-footer .signal { color: var(--corrupt); }

/* --- responsive --- */
@media (max-width: 620px) {
    .nav-links { gap: 16px; }
    .brand-sub { display: none; }
    .hero { padding: 60px 0 48px; }
    .statusbar-inner .hide-sm { display: none; }
}

/* ============================================================
   LANDING — signal hero + terminal
   ============================================================ */
.signal-hero {
    position: relative;
    min-height: calc(100vh - 96px);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px dashed var(--line-2);
    background:
        radial-gradient(1100px 520px at 28% 18%, rgba(215,255,63,.06), transparent 60%),
        radial-gradient(900px 640px at 92% 96%, rgba(122,0,255,.06), transparent 62%);
}
#signal-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: .28;
}
.signal-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 48px 40px 64px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 52px;
    align-items: center;
}
.hero-copy .hero-line { display: block; }

/* terminal */
.terminal {
    background: rgba(7, 9, 13, .82);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    backdrop-filter: blur(3px);
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.terminal-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}
.terminal-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.terminal-bar .dot:nth-child(1) { background: var(--critical); }
.terminal-bar .dot:nth-child(2) { background: var(--warning); }
.terminal-bar .dot:nth-child(3) { background: var(--alert); }
.terminal-title { margin-left: 10px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.terminal-body {
    padding: 16px;
    font-size: .82rem;
    line-height: 1.6;
    overflow-y: auto;
    height: 44vh;
    min-height: 300px;
}
.terminal-body .line { white-space: pre-wrap; word-break: break-word; margin: 0 0 2px; }
.t-dim { color: var(--muted); }
.t-alert { color: var(--alert); }
.t-corrupt { color: var(--corrupt); }
.t-warn { color: var(--warning); }
.t-ink { color: var(--ink); }
.terminal-input-line { display: flex; gap: 8px; align-items: baseline; margin-top: 4px; }
.prompt { color: var(--alert); white-space: nowrap; }
#terminal-input {
    background: transparent; border: none; outline: none;
    color: var(--ink); font-family: var(--mono); font-size: .82rem;
    flex: 1; caret-color: var(--alert); padding: 0;
}

.scroll-hint {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    z-index: 2; color: var(--muted);
    font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
}
.scroll-hint:hover { color: var(--alert); }

/* ============================================================
   SPLIT — manifesto + live feed
   ============================================================ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    padding: 84px 40px;
    border-bottom: 1px dashed var(--line-2);
    align-items: center;
}
.split-left { align-self: center; }
.split-title {
    font-family: var(--display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.08;
    margin: 10px 0 22px;
}
.split-title em { color: var(--alert); font-style: normal; }
.split-body { color: var(--text-soft); max-width: 640px; margin: 0 0 16px; }
.glow { color: var(--alert); }
.manifesto-list { list-style: none; padding: 0; margin: 26px 0 0; }
.manifesto-list li {
    color: var(--text-soft);
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: .88rem;
}
.manifesto-list li span { color: var(--alert); margin-right: 12px; }

.feed {
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 360px;          /* fixed — feed scrolls internally, never grows the page */
}
.feed-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
    font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--alert); box-shadow: 0 0 8px var(--alert); animation: blink 1.4s steps(1) infinite; }
.feed-body { padding: 14px; font-size: .76rem; line-height: 1.75; overflow-y: auto; flex: 1; min-height: 0; }
.feed-body .fl { white-space: pre-wrap; }
.feed-body .ft { color: var(--muted); }
.feed-body .fok { color: var(--alert); }
.feed-body .fwarn { color: var(--warning); }
.feed-body .fcorrupt { color: var(--corrupt); }

/* ============================================================
   ARCHIVE dashboard tweaks
   ============================================================ */
.section.archive { padding-top: 84px; }
.module-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.module-id { font-size: .6rem; letter-spacing: .2em; color: var(--muted); }
.module-card.locked { opacity: .82; }
.module-card.locked:hover { border-color: var(--corrupt); transform: translateY(-2px); }
.module-card.locked h3 { color: var(--muted); letter-spacing: .14em; }
.about-section { padding-top: 84px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .signal-hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 40px 28px 72px; }
    .terminal-body { height: 38vh; }
    .split { grid-template-columns: 1fr; gap: 40px; padding: 60px 28px; }
    .wrap { padding: 0 28px 40px; }
    .site-nav, .statusbar-inner, .site-footer { padding-left: 28px; padding-right: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-title::before, .hero-title::after, .blink, .live-dot { animation: none; }
}

/* ============================================================
   Nav CTA · clickable module cards
   ============================================================ */
.nav-links a.nav-cta {
    border: 1px solid var(--alert);
    color: var(--alert);
    padding: 7px 14px;
    border-radius: var(--radius);
}
.nav-links a.nav-cta::before { content: none; }
.nav-links a.nav-cta:hover { background: var(--alert); color: #07080b; }

.btn.full { width: 100%; justify-content: center; }

.module-card.link { display: block; text-decoration: none; cursor: pointer; }
.module-card.link:hover { text-decoration: none; border-color: var(--alert); transform: translateY(-2px); }
.module-card.link h3 { color: var(--ink); }
.enter-hint { color: var(--alert); white-space: nowrap; }

/* ============================================================
   Terminal gate (/terminal)
   ============================================================ */
.gate { min-height: calc(100vh - 220px); display: flex; align-items: center; justify-content: center; padding-top: 40px; }
.gate-card { width: 100%; max-width: 520px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.gate-body { padding: 30px; }
.gate-line { font-size: .7rem; letter-spacing: .22em; margin: 0 0 10px; }
.gate-title { font-family: var(--display); font-size: 2rem; margin: 0 0 12px; letter-spacing: .02em; }
.gate-sub { color: var(--text-soft); margin: 0 0 24px; font-size: .9rem; }
.gate-note { color: var(--muted); font-size: .72rem; letter-spacing: .05em; margin: 14px 0 8px; }
.gate-skip { color: var(--muted); font-size: .76rem; }
.gate-skip:hover { color: var(--alert); }

/* ============================================================
   Dashboard (/dashboard)
   ============================================================ */
.dash-head { padding: 24px 0 8px; }
.dash-title { font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); margin: 6px 0 12px; letter-spacing: .03em; }
.dash-sub { color: var(--text-soft); max-width: 640px; }
.dash-block { margin-top: 44px; }
.block-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.block-head .section-title { margin: 0; }
.block-head .section-note { margin: 0; }
.entities-empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 28px; color: var(--muted); background: var(--surface); font-size: .9rem; }
.entities-empty b { color: var(--alert); }
.entities-empty .btn { margin-top: 16px; }

.entities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.entity { display: block; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #07080b; text-decoration: none; transition: border-color .15s, transform .1s; }
.entity:hover { border-color: var(--alert); transform: translateY(-2px); text-decoration: none; }
.entity img { display: block; width: 100%; aspect-ratio: 1/1; }
.entity-id { display: block; padding: 8px 10px; font-size: .64rem; letter-spacing: .12em; color: var(--text-soft); border-top: 1px solid var(--line); }

.mint-tracker { font-size: .74rem; letter-spacing: .06em; color: var(--text-soft); }
.mint-more { margin-left: auto; padding: 8px 16px; font-size: .72rem; }

.dash-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.wallet-chip {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid var(--line-2); border-radius: 999px;
    padding: 7px 8px 7px 14px; background: var(--surface); margin-top: 6px;
}
.wallet-chip code { font-size: .8rem; color: var(--text-soft); letter-spacing: .04em; }
.mini-btn {
    background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted);
    border-radius: 999px; padding: 5px 12px; font-family: var(--mono); font-size: .68rem;
    letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.mini-btn:hover { color: var(--critical); border-color: var(--critical); }

/* app nav (dashboard) — distinct from the marketing nav */
.app-nav .app-links { gap: 20px; }
.app-nav .app-links a::before { content: ""; }
.app-nav .app-links a { color: var(--text-soft); }
.app-nav .app-links a:hover { color: var(--alert); }
.nav-wallet { margin-left: 6px; margin-top: 0; padding: 5px 6px 5px 12px; }
.nav-wallet code { font-size: .74rem; }
@media (max-width: 620px) {
    .nav-wallet code { display: none; }
}

/* ============================================================
   REDESIGN — unified app shell + sidebar dock
   (appended; later rules intentionally override earlier ones)
   ============================================================ */
:root {
    --side-w:   250px;
    --sp-1: 6px;  --sp-2: 10px; --sp-3: 16px;
    --sp-4: 24px; --sp-5: 40px; --sp-6: 64px;
}

/* ---- shell ---- */
.app-shell { display: flex; align-items: flex-start; min-height: 100vh; }
.main-col  { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.main-col > footer { margin-top: auto; }

/* ---- sidebar rail ---- */
.sidebar {
    flex: 0 0 var(--side-w);
    width: var(--side-w);
    position: sticky;
    top: 0;
    align-self: stretch;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-2), var(--bg));
    border-right: 1px solid var(--line);
    z-index: 40;
}
.sidebar-scroll { flex: 1 1 auto; overflow-y: auto; padding: 22px 16px 12px; }
.sidebar-foot   { flex: none; padding: 14px 16px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }

/* brand (override marketing-nav brand) */
.sidebar .brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; }
.sidebar .brand-logo { height: 32px; width: 32px; }
.sidebar .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.sidebar .brand-name { font-size: 1.02rem; letter-spacing: .26em; }
.sidebar .brand-sub  { font-size: .58rem; letter-spacing: .28em; margin-top: 3px; }

/* nav groups */
.side-nav { display: flex; flex-direction: column; gap: 22px; }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-label {
    font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 8px; padding: 0 10px;
}
.side-link {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 10px; border-radius: var(--radius);
    color: var(--text-soft); font-size: .82rem; letter-spacing: .04em;
    border-left: 2px solid transparent; text-transform: lowercase;
    transition: background .13s, color .13s, border-color .13s;
}
.side-link:hover { background: rgba(215,255,63,.05); color: var(--ink); }
.side-link .sl-mark { color: var(--muted); font-size: .8rem; }
.side-link .sl-num  { font-size: .62rem; letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-link .sl-dot  { width: 7px; height: 7px; border-radius: 50%; flex: none; margin-left: auto; }
.side-link .sl-dot.ok     { background: var(--alert); box-shadow: 0 0 7px var(--alert); }
.side-link .sl-dot.sealed { background: var(--line-2); }

.side-link.is-active { background: rgba(215,255,63,.09); color: var(--alert); border-left-color: var(--alert); }
.side-link.is-active .sl-mark { color: var(--alert); }
.side-link.is-active .sl-num  { color: var(--alert); }
.side-link.admin { color: var(--warning); }
.side-link.admin:hover { color: var(--warning); background: rgba(255,158,61,.06); }
.side-link.admin.is-active { color: var(--warning); border-left-color: var(--warning); background: rgba(255,158,61,.1); }
.side-link.sealed { color: var(--muted); cursor: default; letter-spacing: .1em; }
.side-link.sealed:hover { background: none; color: var(--muted); }
.side-link.sealed .sl-mark { color: var(--critical); opacity: .7; }

/* status block */
.side-status { display: flex; flex-direction: column; gap: 5px; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.side-status .ss-row { display: flex; justify-content: space-between; gap: 10px; }
.side-status .ss-k { color: var(--muted); }
.side-status .ok { color: var(--alert); }

/* wallet chip fills the footer */
.sidebar-foot .wallet-chip { width: 100%; justify-content: space-between; margin: 0; padding: 6px 8px 6px 12px; }
.sidebar-foot .wallet-chip code { font-size: .72rem; }

/* mobile toggle + backdrop + in-drawer close (hidden on desktop) */
.side-toggle { display: none; }
.side-backdrop { display: none; }
.side-close {
    display: none;
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 34px; height: 34px; align-items: center; justify-content: center;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius);
    color: var(--text-soft); font-size: 1.2rem; cursor: pointer;
}
.side-close:hover { color: var(--alert); border-color: var(--alert); }

/* ---- canonical page header (unifies dash/mint/admin/lab/daemon heads) ---- */
.page-head, .dash-head, .mintp-head, .adm-head, .lab-head, .dmp-head { padding: 8px 0 4px; }
.page-title, .dash-title, .mintp-title, .adm-title, .lab-title, .dmp-title {
    font-family: var(--display); font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.03;
    letter-spacing: .03em; margin: 10px 0 12px; color: var(--ink);
}
.page-sub, .dash-sub, .mintp-sub, .adm-sub, .lab-sub, .dmp-sub {
    color: var(--text-soft); max-width: 680px; margin: 0;
    font-size: .92rem; line-height: 1.6;
}

/* ---- landing/gate height (no more top nav offset) ---- */
.signal-hero { min-height: 100vh; }
.gate { min-height: calc(100vh - 140px); }

/* ============================================================
   Responsive — sidebar collapses to a drawer
   ============================================================ */
@media (max-width: 900px) {
    .app-shell { display: block; }
    .main-col { min-height: 100vh; padding-top: 8px; }

    .sidebar {
        position: fixed; top: 0; left: 0; height: 100vh; width: 84vw; max-width: 320px; flex-basis: auto;
        transform: translateX(-100%); transition: transform .22s ease;
        box-shadow: 0 0 40px rgba(0,0,0,.6);
        z-index: 100;                 /* above backdrop + toggle when open */
    }
    body.side-open .sidebar { transform: translateX(0); }
    body.side-open { overflow: hidden; }   /* lock background scroll while drawer is open */

    .side-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        position: fixed; top: 12px; left: 12px; z-index: 90;
        width: 44px; height: 44px; border-radius: var(--radius);
        background: var(--surface); border: 1px solid var(--line-2);
        color: var(--alert); font-size: 1.4rem; cursor: pointer;
    }
    .side-toggle:hover { border-color: var(--alert); }
    body.side-open .side-toggle { display: none; }   /* hide burger once the drawer covers it */

    .side-backdrop { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(4,5,8,.62); backdrop-filter: blur(1px); }

    /* in-drawer close button (mobile only) */
    .side-close { display: flex; }

    /* keep the floating toggle from colliding with page headers */
    .wrap { padding-top: 8px; }
    .dash-head, .mintp-head, .adm-head, .lab-head, .dmp-head, .signal-hero-inner { padding-top: 60px; }
    .signal-hero { min-height: calc(100vh - 8px); }
}
