@font-face {
    font-family: 'Archivo';
    src: url('fonts/Archivo-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}

:root {
    --bg: #07060B;
    --bg-2: #0B0813;
    --surface: #110C19;
    --row: rgba(255, 255, 255, 0.035);
    --row-hover: rgba(255, 255, 255, 0.065);
    --line: rgba(255, 255, 255, 0.075);
    --line-dark: rgba(0, 0, 0, 0.45);
    --text: #F1F5F6;
    --text-soft: #B4BFC2;
    --muted: #7E8B8F;
    --accent: #A66BFF;
    --accent-tint: rgba(166, 107, 255, 0.14);
    --accent-tint-strong: rgba(166, 107, 255, 0.26);
    --accent-line: rgba(166, 107, 255, 0.45);
    --accent-glow: rgba(166, 107, 255, 0.55);
    --mint: #3EF0B4;
    --mint-tint: rgba(62, 240, 180, 0.11);
    --mint-line: rgba(62, 240, 180, 0.42);
    --red: #FF4D61;
    --red-tint: rgba(214, 44, 62, 0.25);
    --red-line: rgba(255, 77, 97, 0.5);
    --amber: #FFB547;
    --amber-tint: rgba(255, 181, 71, 0.13);
    --amber-line: rgba(255, 181, 71, 0.45);
    --r: 4px;
    --r-lg: 8px;
    --cut: 12px;
    --max: 1200px;
    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-stretch: 104%;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
    text-shadow: 0 0 12px rgba(166, 107, 255, 0.45);
}

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 6, 11, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-stretch: 125%;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.logo { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 10px rgba(166, 107, 255, 0.35)); }
.logo-bg { fill: var(--accent); }
.logo-line { fill: none; stroke: #13061F; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-stretch: 125%;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.nav-links a { transition: color 0.15s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-links .mobile-only { display: none; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--r);
    border: 1px solid var(--accent-line);
    background: var(--accent-tint);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: var(--r);
    border: 1px solid var(--accent-line);
    background: var(--accent-tint);
    color: var(--text);
    font-stretch: 125%;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
}
.btn:hover { background: var(--accent-tint-strong); }
.btn:active { transform: scale(0.98); }
.btn.primary {
    border: none;
    background: var(--accent);
    color: #13061F;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    box-shadow: 0 0 26px rgba(166, 107, 255, 0.4);
}
.btn.primary:hover { background: #BB8CFF; }
.btn.small { padding: 10px 16px; font-size: 11px; --cut: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 100px 0 90px; overflow: hidden; }
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(700px 420px at 8% 0%, rgba(166, 107, 255, 0.24), rgba(166, 107, 255, 0) 70%),
        radial-gradient(500px 360px at 95% 100%, rgba(62, 240, 180, 0.07), transparent 70%);
}
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 520px;
    height: 360px;
    z-index: -1;
    background: radial-gradient(rgba(166, 107, 255, 0.5) 1px, transparent 1.5px) 0 0 / 16px 16px;
    -webkit-mask: radial-gradient(420px 280px at 0 0, #000 0%, transparent 100%);
    mask: radial-gradient(420px 280px at 0 0, #000 0%, transparent 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 13px;
    border-radius: var(--r);
    border: 1px solid var(--mint-line);
    background: var(--mint-tint);
    color: var(--mint);
    font-stretch: 125%;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 26px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; background: currentColor; box-shadow: 0 0 12px currentColor; transform: rotate(45deg); }
h1 {
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 1.02;
    letter-spacing: 0.005em;
    text-transform: uppercase;
}
h1 span { display: block; }
h1 .outline { -webkit-text-stroke-width: 2px; }
.lead { color: var(--text-soft); font-size: 18px; margin: 24px 0 34px; max-width: 560px; font-stretch: 100%; }
.lead-i { display: flex; gap: 14px; align-items: flex-start; }
.lead-i .i {
    flex: none;
    font-style: italic;
    font-weight: 800;
    font-size: 40px;
    line-height: 0.9;
    color: var(--accent);
    text-shadow: 0 0 14px var(--accent-glow);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 12px; margin-top: 42px; flex-wrap: wrap; }
.fact {
    min-width: 150px;
    padding: 14px 18px;
    border-radius: var(--r);
    background: var(--row);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.fact strong { display: block; font-stretch: 112%; font-size: 30px; font-weight: 800; line-height: 1.1; }
.fact span { color: var(--muted); font-stretch: 100%; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* Leuchtender Rand aus der oberen linken Ecke */
.rim-box { position: relative; }
.rim-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    pointer-events: none;
    background: radial-gradient(ellipse 380px 220px at 0 0, var(--accent) 0%, rgba(166, 107, 255, 0.4) 40%, rgba(166, 107, 255, 0) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Live-Terminal */
.terminal {
    border-radius: var(--r-lg);
    background:
        radial-gradient(420px 240px at 0 0, rgba(166, 107, 255, 0.18), transparent 70%),
        linear-gradient(160deg, #1A1129 0%, #100B1A 45%, #07060B 100%);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}
.term-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line-dark); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03); }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 9px; height: 9px; background: var(--line); display: block; transform: rotate(45deg); }
.term-dots i:first-child { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.term-title { color: var(--muted); font-stretch: 125%; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.term-live { color: var(--mint); font-stretch: 125%; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; display: flex; align-items: center; gap: 7px; }
.term-live::before { content: ''; width: 7px; height: 7px; background: currentColor; box-shadow: 0 0 10px currentColor; transform: rotate(45deg); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.term-body { padding: 12px; height: 404px; overflow: hidden; display: flex; flex-direction: column; gap: 7px; }
.event {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-radius: var(--r);
    background: var(--row);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    animation: slideIn 0.35s ease-out;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.event .dot, .det .dot { width: 8px; height: 8px; margin-top: 7px; background: var(--red); box-shadow: 0 0 10px var(--red); transform: rotate(45deg); }
.event .dot.kick, .det .dot.kick { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.event .dot.block, .det .dot.block { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.event-title { font-weight: 800; font-size: 14px; }
.event-meta { color: var(--muted); font-size: 12px; font-family: var(--mono); margin-top: 2px; }
.tag {
    font-stretch: 125%;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid var(--red-line);
    background: var(--red-tint);
    color: #FFC4CA;
}
.tag.kick { border-color: var(--amber-line); background: var(--amber-tint); color: var(--amber); }
.tag.block { border-color: var(--accent-line); background: var(--accent-tint); color: #D9C6FF; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.kicker::before { content: ''; width: 18px; height: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
h2 {
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.section-head p { color: var(--text-soft); font-size: 17px; margin-top: 18px; font-stretch: 100%; }
.alt {
    background: linear-gradient(180deg, var(--bg-2), var(--bg));
    border-top: 1px solid var(--line-dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature {
    position: relative;
    padding: 26px;
    border-radius: var(--r);
    background: var(--row);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: background 0.2s, transform 0.2s;
    overflow: hidden;
}
.feature:hover { background: var(--row-hover); transform: translateY(-2px); }
.f-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--r);
    border: 1px solid var(--accent-line);
    background: var(--accent-tint);
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 0 18px rgba(166, 107, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.f-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-stretch: 125%; font-size: 15px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 9px; }
.feature p { color: var(--text-soft); font-size: 14.5px; font-stretch: 100%; }
.feature ul { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 5px; }
.feature li {
    font-stretch: 112%;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-soft);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--line);
    padding: 4px 9px;
    border-radius: 3px;
}

/* Layers */
.layers { display: grid; gap: 8px; }
.layer {
    display: grid;
    grid-template-columns: 76px 1fr 1.25fr;
    gap: 24px;
    align-items: center;
    padding: 22px 26px;
    border-radius: var(--r);
    background: var(--row);
    transition: border-color 0.2s, background 0.2s;
}
.layer:hover { background: var(--row-hover); }
.layer-num { font-stretch: 125%; font-size: 34px; font-weight: 800; color: transparent; -webkit-text-stroke: 1.2px var(--accent); text-shadow: 0 0 10px rgba(166, 107, 255, 0.35); }
.layer h3 { font-stretch: 125%; font-size: 15px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.layer .trust { font-stretch: 125%; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 5px; }
.trust.high { color: var(--mint); }
.trust.mid { color: var(--accent); }
.trust.low { color: var(--amber); }
.layer p { color: var(--text-soft); font-size: 14.5px; font-stretch: 100%; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-soft); font-stretch: 100%; }
.checklist li::before {
    content: '';
    width: 10px;
    height: 10px;
    margin: 8px 0 0 5px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transform: rotate(45deg);
}
.checklist strong { color: var(--text); }

/* Panel-Vorschau (im Stil des In-Game-Panels) */
.panel-preview {
    border-radius: var(--r-lg);
    overflow: hidden;
    background:
        radial-gradient(360px 220px at 0 0, rgba(166, 107, 255, 0.2), transparent 70%),
        linear-gradient(160deg, #1A1129 0%, #100B1A 45%, #07060B 100%);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
    font-size: 12px;
    padding: 16px 18px 18px;
}
.pp-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line-dark); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03); }
.pp-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--accent-line); background: var(--accent-tint); }
.pp-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pp-title { font-stretch: 125%; font-weight: 800; font-size: 15px; line-height: 1.05; text-transform: uppercase; }
.pp-title span { display: block; }
.pp-title .outline { -webkit-text-stroke-width: 1px; }
.pp-body { display: grid; grid-template-columns: 128px 1fr; gap: 14px; }
.pp-side { display: flex; flex-direction: column; gap: 3px; }
.pp-item { padding: 7px 9px; border-radius: var(--r); color: var(--muted); font-stretch: 125%; font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.pp-item.on { background: var(--text); color: #0B0712; box-shadow: 0 6px 16px rgba(241, 245, 246, 0.12); }
.pp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 10px; }
.pp-stat { position: relative; padding: 10px 11px; border-radius: var(--r); background: var(--row); overflow: hidden; }
.pp-stat span { color: var(--muted); font-size: 8.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pp-stat b { display: block; font-stretch: 112%; font-size: 20px; font-weight: 800; margin-top: 2px; }
.pp-stat.a b { color: var(--mint); }
.pp-stat.d b { color: var(--red); }
.pp-feed { padding: 4px 12px; border-radius: var(--r); background: var(--row); }
.pp-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 9px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pp-row:last-child { border: none; }
.pp-row i { width: 7px; height: 7px; background: var(--red); box-shadow: 0 0 8px var(--red); transform: rotate(45deg); display: block; }
.pp-row i.k { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.pp-row div { font-weight: 700; }
.pp-row span { color: var(--muted); font-size: 10.5px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { border-radius: var(--r); background: var(--row); padding: 2px 22px; transition: background 0.2s; }
.faq details[open] { background: var(--row-hover); }
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-stretch: 112%;
    font-weight: 800;
    font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 24px; line-height: 1; text-shadow: 0 0 10px var(--accent-glow); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--text-soft); padding-bottom: 20px; font-stretch: 100%; }

/* CTA */
.cta {
    padding: 60px;
    text-align: center;
    border-radius: var(--r-lg);
    background:
        radial-gradient(600px 300px at 0 0, rgba(166, 107, 255, 0.24), transparent 70%),
        radial-gradient(500px 300px at 100% 100%, rgba(62, 240, 180, 0.1), transparent 70%),
        linear-gradient(160deg, #1A1129, #07060B);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.cta p { color: var(--text-soft); font-size: 17px; margin: 16px auto 30px; max-width: 560px; font-stretch: 100%; }

/* Footer */
footer { border-top: 1px solid var(--line-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); padding: 40px 0; color: var(--muted); font-size: 13px; font-stretch: 100%; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-stretch: 125%; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.foot-links a:hover { color: var(--text); }

/* ---------- Doku ---------- */
.docs { display: grid; grid-template-columns: 236px 1fr; gap: 48px; padding: 52px 0 96px; }
.toc { position: sticky; top: 94px; align-self: start; display: grid; gap: 3px; }
.toc a {
    padding: 9px 13px;
    border-radius: var(--r);
    color: var(--muted);
    font-stretch: 125%;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.toc a:hover { color: var(--text); background: var(--row-hover); border-color: var(--line); }
.doc { min-width: 0; }
.doc h1 { font-size: clamp(32px, 4.6vw, 50px); margin-bottom: 16px; }
.doc > p.lead { margin-top: 0; }
.doc h2 { font-size: 24px; margin: 60px 0 18px; padding-top: 12px; scroll-margin-top: 92px; display: flex; align-items: center; gap: 12px; }
.doc h2::before { content: ''; width: 10px; height: 10px; flex: none; background: var(--accent); box-shadow: 0 0 10px var(--accent); transform: rotate(45deg); }
.doc h3 { font-stretch: 112%; font-size: 17px; font-weight: 800; margin: 30px 0 10px; }
.doc p, .doc li { color: var(--text-soft); font-stretch: 100%; }
.doc p + p { margin-top: 12px; }
.doc ol, .doc ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.doc strong { color: var(--text); }
.doc code, .table-wrap code, .empty code { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); padding: 2px 6px; border-radius: 3px; color: var(--text); }
.doc a { color: var(--accent); }
pre {
    margin: 14px 0;
    padding: 18px 20px;
    overflow-x: auto;
    border-radius: var(--r);
    background: rgba(0, 0, 0, 0.35);
    font-size: 13px;
    line-height: 1.7;
}
pre code { background: none !important; border: none !important; padding: 0 !important; font-size: inherit; color: #CFD8E3 !important; }
.c { color: var(--muted); }
.callout { margin: 16px 0; padding: 16px 18px; border-radius: var(--r); background: var(--accent-tint); border: 1px solid var(--accent-line); color: var(--text-soft); font-stretch: 100%; }
.callout.warn { background: var(--amber-tint); border-color: var(--amber-line); }
.table-wrap { overflow-x: auto; margin: 14px 0; border-radius: var(--r); background: var(--row); }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-stretch: 100%; }
th, td { text-align: left; padding: 12px 16px; vertical-align: top; }
th { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--line-dark); }
td { color: var(--text-soft); border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }
td code { white-space: nowrap; }

/* ---------- Discord-Nutzer in der Navigation ---------- */
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: var(--r); background: var(--row); border: 1px solid var(--line); }
.user-chip[hidden] { display: none; }
.avatar { width: 30px; height: 30px; flex: none; border-radius: 3px; background: var(--accent-tint); }
.user-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-stretch: 112%; font-size: 12px; font-weight: 700; }
.icon-btn {
    width: 30px;
    height: 30px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 3px;
    border: 1px solid var(--accent-line);
    background: var(--accent-tint);
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--red-tint); border-color: var(--red-line); }
.icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hinweise ---------- */
.notice { margin: 0 0 18px; padding: 13px 16px; border-radius: var(--r); border: 1px solid var(--accent-line); background: var(--accent-tint); color: var(--text-soft); font-size: 14px; font-stretch: 100%; }
.notice[hidden] { display: none; }
.notice.danger { border-color: var(--red-line); background: var(--red-tint); color: #FFC4CA; }
.notice.warn { border-color: var(--amber-line); background: var(--amber-tint); color: var(--amber); }
.notice.ok { border-color: var(--mint-line); background: var(--mint-tint); color: var(--mint); }

/* ---------- Login ---------- */
.login-page {
    background:
        radial-gradient(700px 420px at 8% 0%, rgba(166, 107, 255, 0.24), rgba(166, 107, 255, 0) 70%),
        radial-gradient(500px 360px at 95% 100%, rgba(62, 240, 180, 0.07), transparent 70%),
        var(--bg);
    background-attachment: fixed;
}
.login-page::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 520px;
    height: 360px;
    pointer-events: none;
    background: radial-gradient(rgba(166, 107, 255, 0.5) 1px, transparent 1.5px) 0 0 / 16px 16px;
    -webkit-mask: radial-gradient(420px 280px at 0 0, #000 0%, transparent 100%);
    mask: radial-gradient(420px 280px at 0 0, #000 0%, transparent 100%);
}
.login { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 16px; }
.login-card {
    width: 100%;
    max-width: 440px;
    padding: 34px;
    border-radius: var(--r-lg);
    background:
        radial-gradient(420px 240px at 0 0, rgba(166, 107, 255, 0.2), transparent 70%),
        linear-gradient(160deg, #1A1129 0%, #100B1A 45%, #07060B 100%);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.login-brand { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line-dark); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03); }
.login-brand .logo { width: 48px; height: 48px; }
.login-brand h1 { font-size: 28px; line-height: 1; }
.login-brand h1 .outline { -webkit-text-stroke-width: 1.5px; }
.login-lead { margin-bottom: 24px; }
.login-lead .i { font-size: 34px; }
.login-lead p { color: var(--text-soft); font-size: 15px; font-stretch: 100%; }
.login-lead strong { color: var(--text); }
.discord-btn { width: 100%; padding: 17px 22px; font-size: 13px; }
.discord-btn svg { width: 22px; height: 22px; fill: currentColor; }
.login-facts { list-style: none; margin-top: 22px; display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-stretch: 100%; }
.login-facts li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.login-facts li::before { content: ''; width: 6px; height: 6px; margin: 7px 0 0 3px; background: var(--accent); box-shadow: 0 0 8px var(--accent); transform: rotate(45deg); }
.login-foot { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-stretch: 125%; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.login-foot a:hover { color: var(--text); }

/* ---------- Server-Seite ---------- */
.page { position: relative; z-index: 0; min-height: calc(100vh - 190px); padding: 56px 0 96px; overflow: hidden; }
.page::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(700px 420px at 8% 0%, rgba(166, 107, 255, 0.2), rgba(166, 107, 255, 0) 70%);
}
.page::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 520px;
    height: 360px;
    z-index: -1;
    background: radial-gradient(rgba(166, 107, 255, 0.5) 1px, transparent 1.5px) 0 0 / 16px 16px;
    -webkit-mask: radial-gradient(420px 280px at 0 0, #000 0%, transparent 100%);
    mask: radial-gradient(420px 280px at 0 0, #000 0%, transparent 100%);
}
.loading { padding: 80px 0; color: var(--muted); font-stretch: 125%; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 50px); overflow-wrap: anywhere; }
.page-head .lead { margin: 18px 0 0; font-size: 16px; }
.page-head .lead-i .i { font-size: 34px; }

.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.srv-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    border-radius: var(--r);
    background: var(--row);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: background 0.2s, transform 0.2s;
}
.srv-card:hover { background: var(--row-hover); transform: translateY(-2px); }
.srv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.srv-top h3 { font-stretch: 125%; font-size: 17px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.2; overflow-wrap: anywhere; }
.srv-meta { margin-top: -8px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.srv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.srv-stats div { min-width: 0; padding: 11px 12px; border-radius: var(--r); background: rgba(0, 0, 0, 0.25); }
.srv-stats b { display: block; font-stretch: 112%; font-size: 22px; font-weight: 800; line-height: 1.15; }
.srv-stats span { display: block; color: var(--muted); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.srv-stats small, .stat small { font-size: 0.6em; color: var(--muted); font-weight: 700; }
.srv-foot { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.srv-open { margin-left: auto; color: var(--accent); font-stretch: 125%; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.srv-open::after { content: ' →'; }

/* Status mit Raute */
.state, .mark { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--muted); font-stretch: 125%; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.state::before, .mark::before { content: ''; width: 7px; height: 7px; flex: none; background: currentColor; box-shadow: 0 0 10px currentColor; transform: rotate(45deg); }
.state.on, .mark.ok { color: var(--mint); }
.state.on::before { animation: pulse 1.6s infinite; }
.state.off, .mark.bad { color: var(--red); }
.mark.warn { color: var(--amber); }
b.warn, td.warn { color: var(--amber); }
b.ok { color: var(--mint); }
b.bad { color: var(--red); }

.empty {
    max-width: 720px;
    padding: 32px;
    border-radius: var(--r-lg);
    background: radial-gradient(360px 220px at 0 0, rgba(166, 107, 255, 0.16), transparent 70%), var(--row);
}
.empty h3 { font-stretch: 125%; font-size: 17px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.empty p { color: var(--text-soft); font-stretch: 100%; }
.empty a { color: var(--accent); }

.back { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; color: var(--muted); font-stretch: 125%; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.15s; }
.back::before { content: '←'; color: var(--accent); font-size: 14px; }
.back:hover { color: var(--text); }
.detail-state { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.muted { color: var(--muted); font-size: 13px; font-stretch: 100%; }

.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.stat { min-width: 0; padding: 14px 16px; border-radius: var(--r); background: var(--row); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); }
.stat span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.stat b { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-stretch: 112%; font-size: 24px; font-weight: 800; line-height: 1.15; }
.info-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 10px 0 34px; padding: 12px 16px; border-radius: var(--r); background: rgba(0, 0, 0, 0.25); color: var(--muted); font-size: 13px; font-stretch: 100%; }
.info-row b { color: var(--text); font-weight: 700; }

.tab-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--row); }
.tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-stretch: 125%;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.tab:hover { color: var(--text); background: var(--row-hover); }
.tab.on { background: var(--text); color: #0B0712; box-shadow: 0 6px 16px rgba(241, 245, 246, 0.12); }
.tab i { padding: 1px 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.3); font-style: normal; font-size: 10px; }
.tab.on i { background: rgba(11, 7, 18, 0.12); }
.search {
    width: 260px;
    max-width: 100%;
    padding: 11px 14px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-stretch: 100%;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.search:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-tint); }
.search::placeholder { color: var(--muted); }

.det-list { display: grid; gap: 7px; }
.det { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: start; padding: 13px 16px; border-radius: var(--r); background: var(--row); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); }
.det-main { min-width: 0; }
.det-title { font-weight: 800; font-size: 14.5px; overflow-wrap: anywhere; }
.det-title span { color: var(--text-soft); font-weight: 600; }
.det-meta { margin-top: 3px; color: var(--muted); font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.det-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.det-time { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.empty-row { padding: 28px; text-align: center; border-radius: var(--r); background: var(--row); color: var(--muted); font-stretch: 125%; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
td.strong { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 1000px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .user-name { display: none; }
    .page { padding: 36px 0 68px; }
    .page-head { flex-direction: column; align-items: flex-start; }
    .srv-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .tabs { width: 100%; }
    .tab { justify-content: center; padding: 9px 10px; }
    .tab-bar .search { width: 100%; }
    .det { grid-template-columns: 10px 1fr; }
    .det-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
    .login-card { padding: 26px 20px; }
}

/* ---------- Keys & Verwaltung ---------- */
button.btn { font-family: inherit; cursor: pointer; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.danger { border-color: var(--red-line); background: var(--red-tint); color: #FFC4CA; }
.btn.danger:hover { background: rgba(214, 44, 62, 0.4); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.modal {
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 30px;
    border: none;
    border-radius: var(--r-lg);
    color: var(--text);
    background:
        radial-gradient(420px 240px at 0 0, rgba(166, 107, 255, 0.2), transparent 70%),
        linear-gradient(160deg, #1A1129 0%, #100B1A 45%, #07060B 100%);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: auto;
}
.modal::backdrop { background: rgba(5, 3, 9, 0.72); backdrop-filter: blur(4px); }
.modal-head { padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line-dark); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03); }
.modal-head .kicker { margin-bottom: 8px; }
.modal-head h2 { font-size: 24px; }
.modal-head h2 .outline { -webkit-text-stroke-width: 1px; }
.modal-text { color: var(--text-soft); font-size: 14.5px; font-stretch: 100%; margin-bottom: 14px; }
.modal-text strong { color: var(--text); }
.modal-text code, .manage-card code, .empty code { font-family: var(--mono); font-size: 0.86em; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); padding: 2px 6px; border-radius: 3px; color: var(--text); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { color: var(--muted); font-stretch: 125%; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.field input, .field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font-family: inherit;
    font-size: 14.5px;
    font-stretch: 100%;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.field select option { background: #100B1A; color: var(--text); }
.field input:focus, .field select:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-tint); }
.field input::placeholder { color: var(--muted); }
.field small { color: var(--muted); font-size: 12.5px; font-stretch: 100%; }
.form-error, .form-ok { padding: 11px 14px; border-radius: var(--r); font-size: 13.5px; font-stretch: 100%; }
.form-error { border: 1px solid var(--red-line); background: var(--red-tint); color: #FFC4CA; }
.form-ok { border: 1px solid var(--mint-line); background: var(--mint-tint); color: var(--mint); margin-top: 4px; }
.form-error[hidden], .form-ok[hidden] { display: none; }

.key-box { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: var(--r); border: 1px solid var(--accent-line); background: rgba(0, 0, 0, 0.4); box-shadow: 0 0 22px rgba(166, 107, 255, 0.18); margin-bottom: 16px; }
.key-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); font-size: 13.5px; color: #E6D9FF; user-select: all; }
.snippet { margin: 0; font-size: 12.5px; }
.snippet code { white-space: pre-wrap; word-break: break-all; }

.manage { margin-top: 56px; }
.manage:empty { display: none; }
.manage-head { margin-bottom: 18px; }
.manage-head h2 { font-size: 26px; }
.manage-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: start; }
.manage-card { padding: 24px; border-radius: var(--r); background: var(--row); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); }
.manage-card h3 { font-stretch: 125%; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.manage-card h3:not(:first-child) { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.manage-card p { color: var(--text-soft); font-size: 14px; font-stretch: 100%; margin-bottom: 14px; }
.manage-card .modal-actions { margin-top: 6px; }

@media (max-width: 760px) {
    .modal { padding: 22px 18px; }
    .manage-grid { grid-template-columns: 1fr; }
    .head-actions { width: 100%; }
    .head-actions .btn { flex: 1; }
}

/* ---------- Aktionen, Live-Bild, Screenshots ---------- */
.modal.wide { width: min(1100px, calc(100vw - 32px)); }
.btn.warn-btn { border-color: var(--amber-line); background: var(--amber-tint); color: #FFE2B5; }
.btn.warn-btn:hover { background: rgba(255, 181, 71, 0.24); }
.btn.small { cursor: pointer; }
.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--row-hover); }
.det.clickable:hover { background: var(--row-hover); }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions .btn { padding: 7px 11px; font-size: 10px; }
.row-actions .btn + .btn { margin-left: 6px; }
.mini-tag { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 3px; border: 1px solid var(--accent-line); background: var(--accent-tint); color: #D9C6FF; font-stretch: 125%; font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
.hidden { display: none !important; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column-reverse; gap: 8px; width: min(340px, calc(100vw - 40px)); pointer-events: none; }
.toast { padding: 12px 15px; border-radius: var(--r); border: 1px solid var(--mint-line); background: rgba(13, 10, 21, 0.95); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); color: var(--text); font-size: 13.5px; font-stretch: 100%; animation: slideIn 0.25s ease-out; transition: opacity 0.3s, transform 0.3s; }
.toast.bad { border-color: var(--red-line); }
.toast.info { border-color: var(--accent-line); }
.toast.out { opacity: 0; transform: translateX(16px); }

.pl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 14px; }
.pl-stats div { padding: 10px 12px; border-radius: var(--r); background: rgba(0, 0, 0, 0.3); }
.pl-stats span { display: block; color: var(--muted); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pl-stats b { display: block; margin-top: 2px; font-stretch: 112%; font-size: 18px; font-weight: 800; }
.act-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.act-grid .btn { width: 100%; padding: 12px 14px; font-size: 11px; }
.modal-section { margin: 20px 0 8px; color: var(--muted); font-stretch: 125%; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ids { display: flex; flex-direction: column; gap: 5px; }
.ids code { display: block; padding: 7px 10px; border-radius: 3px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); font-family: var(--mono); font-size: 12px; word-break: break-all; }
.mini-list { display: grid; gap: 5px; }
.mini-list div { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 3px; background: rgba(0, 0, 0, 0.25); font-size: 13px; font-stretch: 100%; }
.mini-list span { color: var(--muted); font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list i { color: var(--muted); font-style: normal; font-size: 11.5px; white-space: nowrap; }
.kv-list { display: grid; grid-template-columns: 140px 1fr; margin-bottom: 6px; font-size: 14px; font-stretch: 100%; }
.kv-list dt, .kv-list dd { padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv-list dt { color: var(--muted); }
.kv-list dd { color: var(--text); overflow-wrap: anywhere; }

.live-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.live-head h2 { font-size: 24px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: var(--r); border: 1px solid var(--line); color: var(--muted); font-stretch: 125%; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.live-badge::before { content: ''; width: 7px; height: 7px; background: currentColor; box-shadow: 0 0 10px currentColor; transform: rotate(45deg); }
.live-badge.on { color: var(--mint); border-color: var(--mint-line); }
.live-badge.on::before { animation: pulse 1.6s infinite; }
.live-badge.bad { color: var(--red); border-color: var(--red-line); }
.live-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line); }
.live-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.live-wait { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); font-size: 14px; font-stretch: 100%; }
.live-wait[hidden] { display: none; }
.live-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.live-foot .modal-actions { margin-top: 0; }

.shot-full { display: block; width: 100%; border-radius: var(--r); border: 1px solid var(--line); background: #000; margin-bottom: 4px; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.shot-card { display: flex; flex-direction: column; padding: 0; border: none; border-radius: var(--r); overflow: hidden; background: var(--row); color: var(--text); font-family: inherit; text-align: left; cursor: pointer; transition: transform 0.15s, background 0.15s; }
.shot-card:hover { transform: translateY(-2px); background: var(--row-hover); }
.shot-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; display: block; }
.shot-meta { display: grid; gap: 2px; padding: 10px 12px; }
.shot-meta b { font-size: 13.5px; font-stretch: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-meta span { color: var(--muted); font-size: 12px; font-stretch: 100%; }

.mod-group { margin: 22px 0 8px; color: var(--accent); font-stretch: 125%; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mod-group:first-child { margin-top: 0; }
.mod-table td { vertical-align: middle; }
.mod-table td code { color: var(--muted); font-size: 11.5px; }
.mod-table tr.off td { opacity: 0.5; }
.mini-select, .mini-input { padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); color: var(--text); font-family: inherit; font-size: 13px; font-stretch: 100%; outline: none; }
.mini-select:focus, .mini-input:focus { border-color: var(--accent-line); }
.mini-select option { background: #100B1A; }
.mini-select.wide { width: 100%; }
.mini-input { width: 84px; }
.switch { position: relative; display: inline-block; width: 38px; height: 20px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 3px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.4); transition: background 0.15s, border-color 0.15s; }
.switch span::before { content: ''; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; background: var(--muted); transform: rotate(45deg); transition: transform 0.15s, background 0.15s; }
.switch input:checked + span { background: var(--accent-tint); border-color: var(--accent-line); }
.switch input:checked + span::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); transform: translateX(18px) rotate(45deg); }

.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.control-card { padding: 22px; border-radius: var(--r); background: var(--row); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); }
.control-card.span { grid-column: span 2; }
.control-card h3 { font-stretch: 125%; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.control-card p { color: var(--text-soft); font-size: 14px; font-stretch: 100%; margin-bottom: 14px; }
.control-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
    .row-actions { display: none; }
    .pl-stats { grid-template-columns: repeat(2, 1fr); }
    .control-grid { grid-template-columns: 1fr; }
    .control-card.span { grid-column: auto; }
    .kv-list { grid-template-columns: 110px 1fr; }
    .tabs { overflow-x: auto; }
    .tab { flex: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .hero-grid, .split { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr 1fr; }
    .layer { grid-template-columns: 56px 1fr; }
    .layer p { grid-column: 2; }
    .docs { grid-template-columns: 1fr; }
    .toc { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .nav-links, .nav-cta .btn { display: none; }
    .nav.open .nav-links .mobile-only { display: block; }
    .menu-btn { display: block; }
    .nav.open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 22px 24px;
        background: var(--bg);
        border-bottom: 1px solid var(--line-dark);
    }
    .hero { padding: 64px 0; }
    section { padding: 68px 0; }
    .features { grid-template-columns: 1fr; }
    .pp-body { grid-template-columns: 1fr; }
    .pp-side { display: none; }
    .cta { padding: 38px 20px; }
    .term-body { height: 360px; }
    .wrap { padding: 0 16px; }
    .brand { font-size: 15px; }
    .fact { min-width: 0; flex: 1; }
}
