/* MCAfk – dark UI. Accent: white/grey. */
:root {
  --bg: #0a0a0a; --bg-2: #0f0f10; --panel: #141415; --card: #18181a; --card-2: #1e1e21; --hover: #222226;
  --line: #242427; --line-2: #2f2f33;
  --text: #e8e8ea; --muted: #a1a1aa; --dim: #6b6b74;
  --accent: #e5e7eb; --accent-ink: #0a0a0a; --accent-2: #9ca3af;
  --ok: #4ade80; --warn: #fbbf24; --bad: #f87171; --info: #93c5fd;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 16px 40px rgba(0, 0, 0, .5);
  --font: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .88em; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Icons */
.px { display: inline-block; width: 20px; height: 20px; image-rendering: pixelated; shape-rendering: crispEdges; vertical-align: middle; flex: none; object-fit: cover; object-position: top; }
.px.lg { width: 32px; height: 32px; } .px.xl { width: 48px; height: 48px; } .px.sm { width: 16px; height: 16px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .12s var(--ease); }
.btn:hover { background: var(--hover); border-color: #3d3d42; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: #fff; border-color: #fff; color: #000; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); border-color: #4a2222; background: #1a1010; }
.btn.danger:hover { background: #2a1414; color: #fca5a5; }
.btn.sm { padding: 6px 11px; font-size: .82rem; border-radius: 8px; }
.btn.xs { padding: 3px 8px; font-size: .76rem; border-radius: 7px; }
.btn.icon { padding: 6px 8px; }
.btn.block { width: 100%; }

/* ---- Site header ---- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(10, 10, 10, .78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -.02em; }
.brand .px { width: 26px; height: 26px; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a, .nav button.link { color: var(--muted); padding: 8px 11px; border-radius: 8px; font-size: .9rem; background: none; border: 0; cursor: pointer; font: inherit; transition: color .15s, background .15s; }
.nav a:hover, .nav button.link:hover { color: #fff; background: var(--card); }
.nav a.btn.primary { color: var(--accent-ink); margin-left: 6px; padding: 7px 14px; }
.nav a.btn.primary:hover { background: #fff; color: #000; }
.nav .px { width: 16px; height: 16px; margin-right: 4px; }
.menu-btn { display: none; margin-left: auto; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; margin: 0 4px; }
.lang button { background: none; border: 0; color: var(--dim); font: inherit; font-size: .78rem; font-weight: 700; padding: 5px 9px; cursor: pointer; transition: background .15s, color .15s; }
.lang button.on { background: var(--accent); color: var(--accent-ink); }
.lang button:not(.on):hover { color: #fff; }

/* ---- Hero ---- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 620px; background: radial-gradient(closest-side, rgba(229, 231, 235, .09), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .25; mask-image: radial-gradient(ellipse at top, #000 20%, transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 580px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: .82rem; margin-bottom: 18px; background: var(--bg-2); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2s infinite; }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 1.5rem; letter-spacing: -.03em; }
.hero-stats span { color: var(--dim); font-size: .82rem; }
.mock { background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock .rowi { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.mock .rowi:last-child { border-bottom: 0; }
.mock .rowi .grow { flex: 1; min-width: 0; }
.mock .rowi b { display: block; font-size: .93rem; }
.mock .rowi .sub { color: var(--dim); font-size: .8rem; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---- Sections ---- */
.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); }
.kicker { color: var(--accent-2); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.hover { transition: border-color .2s, transform .25s var(--ease), background .2s; }
.card.hover:hover { border-color: #3a3a40; background: var(--card-2); transform: translateY(-3px); }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card > p { color: var(--muted); margin: 0; font-size: .93rem; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-title h3 { margin: 0; }
.why { display: flex; gap: 14px; align-items: flex-start; }
.why .px { width: 34px; height: 34px; }
.why h3 { margin-bottom: 4px; }
.why p { color: var(--muted); margin: 0; font-size: .92rem; }
.steps-row { counter-reset: step; }
.step-card { position: relative; padding-top: 44px; }
.step-card::before { counter-increment: step; content: counter(step); position: absolute; top: 16px; left: 20px; width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.compare { width: 100%; border-collapse: collapse; }
.compare td, .compare th { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .yes { color: var(--ok); font-weight: 700; } .compare .no { color: var(--dim); }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price { display: flex; flex-direction: column; gap: 14px; padding: 26px; position: relative; }
.price.featured { border-color: #4b4b52; background: linear-gradient(180deg, #1f1f22, var(--card)); }
.price .tag { position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 800; color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 999px; }
.price .amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -.035em; }
.price .amount small { font-size: .9rem; color: var(--dim); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; color: var(--muted); font-size: .92rem; flex: 1; }
.price li { display: flex; gap: 9px; align-items: center; }
.price li::before { content: ""; width: 6px; height: 6px; background: var(--accent-2); flex: none; }
.note { color: var(--dim); font-size: .85rem; margin-top: 18px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .2s, background .2s; }
.faq details[open] { border-color: #3a3a40; background: var(--card-2); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 650; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-size: 1.3rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: #fff; }
.faq .a { padding: 0 18px 16px; color: var(--muted); animation: faqIn .3s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }
.cta-band { text-align: center; padding: 56px 24px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(ellipse at top, rgba(229, 231, 235, .08), transparent 70%), var(--bg-2); }

/* Watermark footer */
.footer { border-top: 1px solid var(--line); margin-top: 72px; color: var(--dim); font-size: .86rem; }
.footer .wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding-top: 30px; padding-bottom: 18px; }
.footer .brand { font-size: 1.05rem; }
.footer .links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer .links a { color: var(--dim); }
.footer .links a:hover { color: #fff; }
.footer .copy { text-align: right; }
.footer .disclaimer { text-align: center; padding: 0 20px 26px; font-size: .78rem; color: #55555c; }
.watermark { text-align: center; font-weight: 900; font-size: clamp(4rem, 17vw, 14rem); letter-spacing: -.06em; line-height: .8; color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0)); -webkit-background-clip: text; background-clip: text; user-select: none; overflow: hidden; padding-top: 10px; }

/* Forms */
label { display: block; font-size: .83rem; color: var(--muted); margin-bottom: 6px; font-weight: 550; }
input, select, textarea { width: 100%; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: .92rem; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #6b6b74; box-shadow: 0 0 0 3px rgba(161, 161, 170, .14); }
input::placeholder, textarea::placeholder { color: #4b4b52; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: #e5e7eb; }
.check { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: .9rem; margin: 0; cursor: pointer; }
.field { margin-bottom: 14px; }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }
.fields.two { grid-template-columns: 1fr 1fr; } .fields.four { grid-template-columns: repeat(4, 1fr); }
.fields .field { margin: 0; }
.hint { font-size: .78rem; color: var(--dim); margin-top: 5px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.msg { font-size: .88rem; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; border: 1px solid; }
.msg.err { color: #fca5a5; border-color: #4a2222; background: #1a1010; }
.msg.ok { color: #86efac; border-color: #1f3a28; background: #0e1912; }
.msg.info { color: var(--accent); border-color: var(--line-2); background: var(--bg-2); }
.msg.warning { color: #fcd34d; border-color: #4a3a12; background: #1a150a; }
.msg.critical { color: #fca5a5; border-color: #5a2020; background: #200f0f; }
.auth-box { max-width: 430px; margin: 70px auto; }
.auth-box .card { padding: 28px; }
.auth-box h1 { font-size: 1.7rem; display: flex; gap: 12px; align-items: center; }

/* Badges / switch */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: var(--bg-2); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.badge.online { color: #86efac; border-color: #1f3a28; } .badge.online::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.badge.reconnecting, .badge.connecting, .badge.auth { color: #fcd34d; border-color: #4a3a12; }
.badge.reconnecting::before, .badge.connecting::before, .badge.auth::before { background: var(--warn); animation: pulse 1.2s infinite; }
.badge.offline::before { background: #4b4b52; }
.badge.bad { color: #fca5a5; border-color: #4a2222; } .badge.bad::before { background: var(--bad); }
.badge.plain::before { display: none; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--muted); }
.pill.tier { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@keyframes pulse { 50% { opacity: .35; } }
.switch { position: relative; width: 42px; height: 24px; flex: none; display: inline-block; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 99px; cursor: pointer; transition: background .2s, border-color .2s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: var(--dim); transition: transform .2s var(--ease), background .2s; }
.switch input:checked + span { background: #3f3f46; border-color: #71717a; }
.switch input:checked + span::after { transform: translateX(18px); background: #fafafa; }
.switch input:disabled + span { opacity: .4; cursor: not-allowed; }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(161, 161, 170, .25); }

/* Tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .88rem; }
.t th, .t td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t th { color: var(--muted); font-weight: 650; font-size: .8rem; }
.t th.sort { cursor: pointer; user-select: none; }
.t th.sort::before { content: "⇅ "; color: var(--dim); }
.t tbody tr { transition: background .12s; }
.t tbody tr:hover td { background: #161618; }
.t td.num { font-variant-numeric: tabular-nums; }
.t td select { width: auto; padding: 4px 8px; }
.t .fav { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; }

/* Toast / modal / menu */
.toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 8px; z-index: 100; }
.toast { background: var(--card-2); border: 1px solid var(--line-2); padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: .9rem; max-width: 380px; animation: up .25s var(--ease); }
.toast.err { border-color: #4a2222; color: #fca5a5; } .toast.ok { border-color: #1f3a28; color: #86efac; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); display: grid; place-items: center; z-index: 60; padding: 20px; animation: fade .2s; }
.modal .card { width: 100%; max-width: 480px; box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto; animation: pop .25s var(--ease); }
.modal .card.wide { max-width: 760px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
.dropdown { position: relative; display: inline-block; }
.dropdown .menu { position: absolute; right: 0; top: calc(100% + 4px); min-width: 170px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); padding: 5px; z-index: 40; animation: pop .15s var(--ease); }
.dropdown .menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 8px 10px; border-radius: 7px; font: inherit; font-size: .86rem; cursor: pointer; }
.dropdown .menu button:hover { background: var(--hover); }
.dropdown .menu button.danger { color: var(--bad); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; margin: 0; color: var(--text); background: var(--bg-2); transition: border-color .15s; }
.seg label:hover { border-color: #52525b; }
.seg label small { display: block; color: var(--dim); font-size: .76rem; }
.tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 6px 12px; font: inherit; font-size: .82rem; cursor: pointer; }
.tabs button.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* Console */
.console { background: #050505; border: 1px solid var(--line); border-radius: 12px; height: 440px; overflow-y: auto; font-family: var(--mono); font-size: .82rem; padding: 12px 14px; line-height: 1.6; }
.console .l { white-space: pre-wrap; word-break: break-word; }
.console .t { color: #4b4b52; margin-right: 8px; }
.console .who { color: #71717a; margin-right: 6px; }
.console .chat { color: #e5e7eb; } .console .event { color: #fcd34d; } .console .error { color: #fca5a5; } .console .info { color: #a1a1aa; } .console .self { color: #93c5fd; }
.console .warn { color: #fcd34d; } .console .http { color: #71717a; }
.console-input { display: flex; gap: 8px; margin-top: 10px; }
.console-input input { font-family: var(--mono); }
.console-input select { width: 180px; flex: none; }

/* Slots (Inventory/GUI) */
.slots { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; max-width: 520px; }
.slot { aspect-ratio: 1; background: #1b1b1e; border: 1px solid #2b2b30; border-radius: 6px; position: relative; display: grid; place-items: center; font-size: .62rem; color: var(--muted); text-align: center; padding: 2px; overflow: hidden; cursor: pointer; transition: border-color .15s, background .15s; }
.slot:hover { border-color: #71717a; background: #222226; }
.slot.empty { cursor: default; opacity: .55; }
.slot.empty:hover { border-color: #2b2b30; background: #1b1b1e; }
.slot .n { position: absolute; top: 2px; left: 4px; color: #52525b; font-size: .58rem; }
.slot .c { position: absolute; right: 3px; bottom: 1px; color: #fff; font-weight: 700; font-size: .7rem; }
.slot .it { line-height: 1.1; word-break: break-word; }

/* Charts */
.chart { width: 100%; height: 220px; display: block; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.bars i { flex: 1; background: #3f3f46; border-radius: 3px 3px 0 0; min-height: 2px; transition: height .3s var(--ease); }
.bars i.full { background: #d4d4d8; }
.legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ======== Panel layout (app + admin) ======== */
body.panel { display: block; }
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 18px 18px 14px; }
.side nav { padding: 4px 12px; display: grid; gap: 6px; }
.side .item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--text); background: var(--card); border: 1px solid transparent; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-align: left; width: 100%; font-family: inherit; }
.side .item:hover { background: var(--hover); color: #fff; }
.side .item.on { background: var(--accent); color: var(--accent-ink); }
.side .item .px { width: 18px; height: 18px; }
.side .item .cnt { margin-left: auto; font-size: .78rem; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.side .item.on .cnt { color: #3f3f46; }
.side .sec { display: flex; justify-content: space-between; align-items: center; padding: 18px 14px 6px 16px; font-size: .78rem; color: var(--muted); font-weight: 650; }
.side .sec button { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1; padding: 0 4px; border-radius: 6px; }
.side .sec button:hover { color: #fff; background: var(--card); }
.side .sub { display: grid; gap: 5px; padding: 6px 0 6px 18px; animation: faqIn .2s var(--ease); }
.side .sub .item { padding: 7px 11px; font-size: .86rem; background: var(--panel); }
.side .sub .item.on { background: var(--accent); color: var(--accent-ink); }
.side .fav { width: 18px; height: 18px; border-radius: 4px; image-rendering: pixelated; flex: none; }
.side .bottom { margin-top: auto; padding: 12px; display: grid; gap: 8px; }
.planbox { border: 1px solid #4a2222; background: #1a1010; color: #fca5a5; border-radius: 10px; padding: 11px 12px; font-size: .8rem; }
.planbox.neutral { border-color: var(--line-2); background: var(--card); color: var(--muted); }
.planbox b { display: block; font-size: .88rem; margin-bottom: 2px; }
.userrow { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); cursor: pointer; position: relative; }
.userrow:hover { background: var(--hover); }
.avatar { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #52525b, #27272a); display: grid; place-items: center; font-weight: 800; font-size: .78rem; color: #fff; flex: none; }
.userrow .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; font-size: .86rem; }
.main { min-width: 0; display: flex; flex-direction: column; }
.main-head { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(10, 10, 10, .85); backdrop-filter: blur(10px); z-index: 20; }
.main-head h2 { font-size: 1.05rem; margin: 0; display: flex; gap: 10px; align-items: center; }
.main-body { padding: 22px 24px 40px; display: grid; gap: 16px; align-content: start; }
.panelcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input.filter { width: 220px; margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.stat small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; margin-bottom: 6px; }
.stat b { font-size: 1.75rem; letter-spacing: -.03em; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat span { color: var(--dim); font-size: .78rem; }
.stat .meter { height: 6px; background: var(--card-2); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.stat .meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; width: 0; transition: width .4s var(--ease); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--dim); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .px { width: 40px; height: 40px; margin-bottom: 10px; }
.announce { display: flex; gap: 12px; align-items: flex-start; }
.announce .x { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; font-size: 1.1rem; opacity: .7; }
.msa-code { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; letter-spacing: .15em; color: #fff; margin: 6px 0; user-select: all; }
.macro { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; background: var(--bg-2); margin-bottom: 12px; }
.macro-head { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 10px; }
.macro-head .field { margin: 0; flex: 1; min-width: 130px; }
.msteps { display: grid; gap: 8px; margin: 10px 0; }
.mstep { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.mstep .num { width: 22px; text-align: center; color: var(--dim); font-size: .8rem; flex: none; }
.mstep select { width: 150px; flex: none; }
.mstep .params { display: flex; gap: 8px; flex: 1; min-width: 0; }
.mstep .params input, .mstep .params select { min-width: 0; }
.mstep .tools { display: flex; gap: 4px; flex: none; }
.mstep .none { color: var(--dim); font-size: .84rem; align-self: center; }
.verpick { position: relative; }
.verpick .list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); z-index: 45; padding: 4px; }
.verpick .grp { font-size: .72rem; color: var(--dim); font-weight: 700; padding: 6px 8px 2px; text-transform: uppercase; letter-spacing: .06em; }
.verpick .opt { display: flex; justify-content: space-between; width: 100%; background: none; border: 0; color: var(--text); padding: 6px 8px; border-radius: 6px; font: inherit; font-size: .86rem; cursor: pointer; text-align: left; }
.verpick .opt:hover:not(:disabled) { background: var(--hover); }
.verpick .opt:disabled { color: var(--dim); cursor: not-allowed; }
.verpick .opt small { color: var(--dim); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--card-2); border: 1px solid var(--line-2); padding: 3px 6px 3px 10px; border-radius: 999px; font-size: .8rem; }
.chip button { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: .95rem; padding: 0 3px; }
.chip button:hover { color: #fff; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; } .reveal.d2 { transition-delay: .12s; } .reveal.d3 { transition-delay: .18s; }

/* Responsive */
@media (max-width: 1000px) {
  .hero .wrap, .two-col { grid-template-columns: 1fr; }
  .g3, .prices, .g4 { grid-template-columns: 1fr 1fr; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 70; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 54px 0 44px; }
  .g3, .g2, .g4, .prices, .fields, .fields.two, .fields.four, .seg { grid-template-columns: 1fr; }
  .topbar .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px; }
  .topbar .nav.open { display: flex; }
  .footer .wrap { grid-template-columns: 1fr; text-align: center; }
  .footer .copy { text-align: center; }
  .main-head, .main-body { padding-left: 14px; padding-right: 14px; }
  .mstep { flex-wrap: wrap; } .mstep select { width: 100%; flex: 1; } .mstep .params { flex-basis: 100%; }
  .toolbar input.filter { width: 100%; margin-left: 0; }
  .console { height: 340px; }
  .console-input { flex-wrap: wrap; } .console-input select { width: 100%; }
  .toasts { left: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.mt { margin-top: 16px; }
.mc-icon { image-rendering: pixelated; }

/* ===== v1.2: größere Schrift, Linien-Icons, Minecraft-Köpfe, Animationen ===== */
body { font-size: 16px; line-height: 1.6; }
h3 { font-size: 1.15rem; }
.btn { min-height: 40px; padding: 9px 18px; font-size: .95rem; }
.btn.sm { min-height: 34px; padding: 6px 13px; font-size: .88rem; }
.btn.xs { min-height: 28px; padding: 4px 10px; font-size: .82rem; }
input, select, textarea { min-height: 42px; font-size: 1rem; padding: 10px 13px; }
label { font-size: .9rem; }
.hint { font-size: .84rem; }
.msg { font-size: .95rem; }
.nav a, .nav button.link { font-size: .98rem; }
.card > p, .why p, .price ul { font-size: 1rem; }
.faq summary { font-size: 1.05rem; }
.footer { font-size: .92rem; }
.badge { font-size: .82rem; padding: 4px 11px; }
.t { font-size: .97rem; }
table.t { font-size: .97rem; }
.t th { font-size: .86rem; }
.t th, .t td { padding: 12px 14px; }
.stat small { font-size: .88rem; }
.stat b { font-size: 2rem; }
.stat span { font-size: .85rem; }
.console { font-size: .9rem; }
.main-head { height: 68px; }
.main-head h2 { font-size: 1.25rem; }
.main-body { gap: 18px; padding: 26px 28px 44px; }
.panelcard { padding: 22px; }
.shell { grid-template-columns: 292px minmax(0, 1fr); }
.side .brand { font-size: 1.3rem; }
.side .item { font-size: 1rem; padding: 10px 13px; gap: 12px; position: relative; transition: background .18s, color .18s, transform .18s var(--ease); }
.side .item:hover { transform: translateX(2px); }
.side .item .cnt { font-size: .85rem; }
.side .sub .item { font-size: .95rem; padding: 8px 12px; }
.side .sec { font-size: .86rem; }
.userrow .who { font-size: .95rem; }
.planbox { font-size: .88rem; }
.kv { font-size: .98rem; }

/* Linien-Icons (Lucide) */
.ui { display: inline-block; flex: none; vertical-align: -3px; stroke-width: 2; }
.side .item .ui { color: var(--muted); transition: color .18s; }
.side .item:hover .ui { color: #fff; }
.side .item.on .ui { color: var(--accent-ink); }
.card-title h3 .ui, .panelcard h3 .ui, .main-head h2 .ui { color: var(--accent-2); }
.empty .ui.xl { color: var(--dim); margin-bottom: 10px; }
.msg .ui { flex: none; margin-top: 2px; }
.nowrap { flex-wrap: nowrap; white-space: nowrap; }

/* Minecraft-Köpfe / Avatare */
.head-wrap { position: relative; display: inline-flex; flex: none; }
.mc-head { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); background: #222; }
.avatar.sm { width: 28px; height: 28px; font-size: .74rem; }
.sdot { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--panel); background: #52525b; }
.sdot.online { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.sdot.reconnecting, .sdot.connecting, .sdot.auth { background: var(--warn); animation: pulse 1.2s infinite; }

/* Animationen (dezent, 150–400 ms) */
@keyframes riseIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.anim-in { animation: riseIn .38s var(--ease) both; }
#view, #a-view { animation: fade .25s var(--ease); }
.stat, .panelcard { transition: transform .22s var(--ease), border-color .22s, box-shadow .22s; }
.stat:hover { transform: translateY(-3px); border-color: #3a3a40; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.panelcard:hover { border-color: #2f2f34; }
.console .l.new { animation: slideIn .25s var(--ease); }
.skeleton { min-height: 104px; background: linear-gradient(90deg, var(--panel) 0, #1c1c1f 40%, var(--panel) 80%); background-size: 800px 100%; animation: shimmer 1.2s linear infinite; }
.skeleton.tall { min-height: 280px; }
.side .item::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 0; border-radius: 4px; background: var(--accent); transform: translateY(-50%); transition: height .25s var(--ease); }
.side .item.on::before { height: 60%; }
.bars i { transition: height .5s var(--ease); }


/* ============================================================================
 * MCAfk v2.0 – Obsidian & Emerald XP Tuning (100% CSP-kompatibel)
 * ============================================================================ */
:root {
  --bg: #080a0d;
  --bg-2: #0d1016;
  --panel: #11151d;
  --card: #141923;
  --card-2: #1a202d;
  --hover: #202838;
  --line: #232b3a;
  --line-2: #2f3a4e;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --dim: #64748b;
  --accent: #22e584;
  --accent-ink: #04130b;
  --accent-2: #38bdf8;
  --gold: #fbbf24;
  --ok: #22e584;
  --warn: #fbbf24;
  --bad: #f87171;
  --info: #38bdf8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 22px 50px rgba(0, 0, 0, .58);
  --glow: 0 0 0 1px rgba(34, 229, 132, .38), 0 14px 34px -10px rgba(34, 229, 132, .52);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@keyframes mcAurora {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .78; }
  50% { transform: translate3d(2%, -3%, 0) scale(1.06); opacity: 1; }
}
@keyframes mcShine {
  0% { transform: translateX(-140%) skewX(-20deg); }
  100% { transform: translateX(260%) skewX(-20deg); }
}
@keyframes mcRadar {
  0% { transform: scale(1); opacity: .85; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes mcBorderShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Header & Navigation */
.topbar {
  background: rgba(8, 10, 13, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(35, 43, 58, .85);
}
.lang button.on {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Tactile Shimmer Primary Buttons */
.btn.primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #22e584, #10b981 65%, #0ea5e9);
  color: var(--accent-ink);
  border-color: rgba(34, 229, 132, .65);
  box-shadow: var(--glow);
  font-weight: 700;
}
.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: translateX(-140%) skewX(-20deg);
}
.btn.primary:hover {
  background: linear-gradient(135deg, #34f596, #14d394 65%, #38bdf8);
  border-color: #6ee7b7;
  color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(110, 231, 183, .75), 0 18px 38px -8px rgba(34, 229, 132, .68);
}
.btn.primary:hover::after {
  animation: mcShine .78s ease;
}
.btn.primary:active {
  transform: translateY(0) scale(.985);
}

/* Hero Aurora + Voxel Grid */
.hero::before {
  height: 680px;
  background:
    radial-gradient(640px circle at 22% 20%, rgba(34, 229, 132, .18), transparent 65%),
    radial-gradient(520px circle at 82% 26%, rgba(56, 189, 248, .14), transparent 68%);
  animation: mcAurora 11s ease-in-out infinite;
}
.hero::after {
  background-image:
    linear-gradient(rgba(35, 43, 58, .75) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 43, 58, .75) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .42;
}
.eyebrow {
  border-color: rgba(34, 229, 132, .35);
  background: rgba(17, 21, 29, .9);
  box-shadow: 0 6px 24px -10px rgba(34, 229, 132, .35);
}
.eyebrow .dot {
  position: relative;
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
}
.eyebrow .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: mcRadar 1.9s var(--ease) infinite;
}
.mock {
  border: 1px solid rgba(34, 229, 132, .3);
  background: linear-gradient(180deg, var(--card-2), var(--panel));
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .75), 0 0 40px -16px rgba(34, 229, 132, .25);
}
.mock-bar i:nth-child(1) { background: rgba(248, 113, 113, .8); }
.mock-bar i:nth-child(2) { background: rgba(251, 191, 36, .8); }
.mock-bar i:nth-child(3) { background: rgba(34, 229, 132, .85); }

/* Tactile Cards & Spotlight Hover */
.card {
  background: linear-gradient(180deg, rgba(26, 32, 45, .72), var(--card));
  border-color: var(--line);
}
.card.hover:hover {
  border-color: rgba(34, 229, 132, .48);
  background: linear-gradient(180deg, rgba(32, 40, 56, .9), var(--card));
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(34, 229, 132, .28);
}
.kicker {
  color: var(--accent);
  letter-spacing: .14em;
}
.step-card::before {
  background: linear-gradient(135deg, #22e584, #10b981);
  color: var(--accent-ink);
  box-shadow: 0 6px 18px -6px rgba(34, 229, 132, .6);
}

/* Comparison Table Highlight */
.compare th:nth-child(2),
.compare td:nth-child(2) {
  background: rgba(34, 229, 132, .06);
}
.compare th:nth-child(2) {
  color: var(--accent);
}

/* Featured Pricing Animated Emerald Beam */
.price.featured {
  position: relative;
  border-color: rgba(34, 229, 132, .55);
  background: linear-gradient(180deg, rgba(34, 229, 132, .09), var(--card));
  box-shadow: 0 24px 56px -22px rgba(34, 229, 132, .38);
}
.price.featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, #22e584, #38bdf8, #fbbf24, #22e584);
  background-size: 240% 240%;
  animation: mcBorderShift 5s ease infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.price .tag {
  background: var(--accent);
  color: var(--accent-ink);
}
.price li::before {
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(34, 229, 132, .6);
}

/* FAQ & CTA Band */
.faq details[open] {
  border-color: rgba(34, 229, 132, .45);
  background: var(--card-2);
}
.faq details[open] summary::after {
  color: var(--accent);
}
.cta-band {
  border-color: rgba(34, 229, 132, .32);
  background: radial-gradient(ellipse at top, rgba(34, 229, 132, .14), transparent 70%), var(--panel);
  box-shadow: 0 24px 60px -26px rgba(34, 229, 132, .25);
}
.watermark {
  background: linear-gradient(180deg, rgba(34, 229, 132, .15), rgba(255, 255, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
}

/* Badges & Tactile Emerald Switch */
.badge.online {
  color: #6ee7b7;
  border-color: rgba(34, 229, 132, .42);
  background: rgba(34, 229, 132, .1);
}
.switch input:checked + span {
  background: rgba(34, 229, 132, .85);
  border-color: #22e584;
  box-shadow: 0 0 14px rgba(34, 229, 132, .42);
}
.switch input:checked + span::after {
  background: #04130b;
}

/* Dashboard & Admin Panel Polish */
.side {
  background: #0b0e14;
  border-right: 1px solid var(--line);
}
.side .item.on {
  background: linear-gradient(135deg, #22e584, #10b981);
  color: var(--accent-ink);
  box-shadow: 0 8px 22px -8px rgba(34, 229, 132, .55);
}
.side .item::before {
  background: var(--accent);
}
.main-head {
  background: rgba(8, 10, 13, .86);
  backdrop-filter: blur(14px);
}
.stat:hover {
  border-color: rgba(34, 229, 132, .45);
  box-shadow: 0 16px 32px -16px rgba(34, 229, 132, .28);
}
.stat .meter i {
  background: linear-gradient(90deg, #22e584, #38bdf8);
}
.bars i {
  background: linear-gradient(180deg, rgba(34, 229, 132, .65), rgba(34, 229, 132, .22));
}
.bars i.full {
  background: linear-gradient(180deg, #22e584, #10b981);
}
.console {
  background: #05070a;
  border-color: var(--line);
}
.console .event { color: #22e584; }
.console .self { color: #38bdf8; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(34, 229, 132, .65);
  box-shadow: 0 0 0 3px rgba(34, 229, 132, .16);
}
.toast.ok {
  border-color: rgba(34, 229, 132, .45);
  background: #0b1c14;
  color: #6ee7b7;
}

/* ===== Mobile (v1.3): Vergleichstabelle als Karten, Off-Canvas-Sidebar, Touch-Ziele ===== */
.side-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); z-index: 65; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.side-overlay.show { opacity: 1; pointer-events: auto; }
body.noscroll { overflow: hidden; }
@media (min-width: 681px) { .topbar .menu-btn { display: none; } }
@media (max-width: 1000px) {
  .side { height: 100dvh; }
  .side .item:hover { transform: none; }
}
@media (max-width: 680px) {
  .btn, .btn.sm, .btn.xs, .nav a, .nav button.link, .side .item, .side .sub .item, .lang button, .tabs button, .userrow { min-height: 44px; }
  input, select, textarea { min-height: 44px; font-size: 16px; }
  .lang button { padding: 6px 12px; }
  .switch { width: 50px; height: 30px; }
  .switch span::after { width: 22px; height: 22px; }
  .switch input:checked + span::after { transform: translateX(20px); }
  .topbar .nav a, .topbar .nav .lang { width: 100%; }
  .topbar .nav a { display: flex; align-items: center; }
  .topbar .nav a.btn { justify-content: center; margin: 6px 0 0; }
  /* Vergleichstabelle: jede Zeile als Karte */
  .compare thead { display: none; }
  .compare, .compare tbody { display: block; }
  .compare tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .compare td { border: 0; padding: 0; text-align: center; font-size: 1rem; }
  .compare td:first-child { grid-column: 1 / -1; text-align: left; font-weight: 650; margin-bottom: 4px; }
  .compare td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: .74rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
  .compare td:nth-child(2) { background: transparent; border-radius: 8px; }
  .main-head { gap: 8px; }
  .main-head h2 { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .card-title { gap: 8px; }
}
/* Grid-Kinder dürfen schrumpfen (breite Tabellen scrollen im Container statt die Seite zu verbreitern) */
.main-body > *, .two-col > *, .stats > * { min-width: 0; }
