:root {
  /* Flächen (dunkel) */
  --bg: #070a10;  --bg-2: #0b0f17;
  --panel: #111824; --panel-2: #151d2c; --panel-3: #1a2436;
  --line: #222d40; --line-2: #2c3a52;
  /* Text */
  --text: #eef3fb; --muted: #91a0b6; --muted-2: #6a7890;
  /* Marken-Akzente: Teal/Emerald + Amber */
  --accent: #15c8a3; --accent-2: #4fe6c4;
  --amber: #ffb13d;  --good: #2bd17e;
  --warn: #ffc857;   --bad: #ff6b6b;
  /* Verläufe */
  --grad-brand: linear-gradient(110deg, #ffb13d 0%, #2bd17e 46%, #00c2b8 100%);
  --grad-accent: linear-gradient(135deg, #00c2b8 0%, #2bd17e 100%);
  /* Form */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--text);
  background:
    radial-gradient(900px 520px at 80% -8%, rgba(255,177,61,.10), transparent 60%),
    radial-gradient(1100px 640px at 10% -4%, rgba(0,194,184,.18), transparent 55%),
    var(--bg);
  font: 15px/1.55 "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--bad); min-height: 1.2em; margin-top: 8px; font-size: 13px; }
b { color: #fff; }
h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 16px; margin: 0 0 10px; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 18px 0 8px; }

.topbar {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 22px;
  border-bottom: 1px solid var(--line); background: rgba(7,10,16,.72);
  backdrop-filter: blur(14px) saturate(140%); position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 18px; }
.brand .tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 2px 7px; border-radius: 20px; margin-left: 6px; vertical-align: middle; }
.world { color: var(--muted); display: flex; gap: 10px; align-items: center; }

.card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }

/* Auth */
.auth { max-width: 440px; margin: 7vh auto; }
.tabs { display: flex; gap: 8px; margin: 16px 0; }
.tab { flex: 1; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); padding: 10px; border-radius: 10px; cursor: pointer; }
.tab.active { color: #fff; border-color: var(--accent); }
form { display: flex; flex-direction: column; gap: 10px; }
input, select {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  padding: 10px 12px; border-radius: 10px; font-size: 14px;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
button { cursor: pointer; border: none; border-radius: 10px; padding: 10px 14px; font-weight: 600; background: var(--panel-2); color: var(--text); }
button.primary, #authSubmit { background: var(--grad-accent); color: #042018; font-weight: 700;
  box-shadow: 0 8px 22px -10px rgba(0,194,184,.7); transition: transform .15s, box-shadow .15s; }
button.primary:hover, #authSubmit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,194,184,.85); }
button.ghost { border: 1px solid var(--line); background: transparent; }
button.link { background: none; color: var(--accent); padding: 0; font-weight: 500; }
button:disabled { opacity: .45; cursor: default; }

/* Register-only Felder (E-Mail, Consent, Captcha) */
.reg-only { display: none; }
#authForm.register .reg-only { display: block; }
#authForm.register .consent.reg-only { display: flex; }
.consent { align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.consent input { width: auto; flex: none; }
.consent a { color: var(--accent); }
#turnstile { min-height: 0; }
.notice { background: rgba(21,200,163,.08); border: 1px solid var(--accent); border-radius: 10px; padding: 11px 14px; font-size: 13px; color: #bdeede; margin-top: 8px; }
.notice.hidden { display: none; }
.notice .link { color: var(--accent); }

/* Login-/Register-spezifische Felder */
.login-only { display: block; }
#authForm.register .login-only { display: none !important; }
.forgot { display: flex; gap: 8px; margin-top: 10px; }
.forgot input { flex: 1; }
#forgotLink { margin-top: 6px; text-align: left; }

/* ---- Barrierefreiheit (WCAG 2.2) ---- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--accent); color: #042018; padding: 10px 16px; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
button.link { min-height: 24px; padding: 4px 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 16px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2,1fr); } }
.kpi-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.kpi-value { font-size: 24px; font-weight: 800; margin: 6px 0 2px;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-sub { font-size: 13px; color: var(--muted); }

/* Layout */
#dashView { max-width: 1340px; margin: 0 auto; }
.layout { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 28px; }
/* Operativer Bereich: breite Aktions-Hauptspalte + schmale Status-Seitenleiste.
   Jede Spalte fließt unabhängig (Flex-Stack) → keine ausgefransten Grid-Reihen. */
.opgrid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.opmain, .opside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.opside .locations { grid-template-columns: 1fr; }
@media (max-width: 1024px) { .opgrid { grid-template-columns: 1fr; } }
/* Abwärtskompatibilität, falls span-Klassen noch irgendwo auftauchen */
.span2, .span3 { grid-column: auto; }
/* Kartenüberschriften mit klarer Trennlinie für bessere Gliederung */
.card > h2 { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }

/* Bereichs-Navigation (Reiter unter dem Header, klebend beim Scrollen) */
.subnav {
  display: flex; gap: 8px; flex-wrap: wrap; max-width: 1340px; margin: 0 auto; padding: 12px 16px 10px;
  position: sticky; top: var(--header-h, 56px); z-index: 9;
  background: rgba(7,10,16,.82); backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.subtab { position: relative; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; }
.subtab:hover { color: var(--text); border-color: var(--line-2); }
.subtab.active { background: var(--grad-accent); color: #042018; border-color: var(--accent); box-shadow: 0 8px 22px -12px rgba(0,194,184,.7); }
.tabpane { padding-top: 12px; }
/* Hinweis-Badge an einem Reiter (z. B. Überlast/Blackout oder abholbereite Belohnung) */
.tabbadge { display: none; position: absolute; top: 5px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--panel-2); }
.subtab.active .tabbadge { box-shadow: 0 0 0 2px #0c3a30; }
.tabbadge.gold { background: var(--amber); }
.tabbadge.on { display: block; animation: badgePulse 1.5s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@media (max-width: 560px) {
  .subnav { gap: 6px; padding: 10px 10px 8px; }
  .subtab { padding: 9px 12px; font-size: 13px; flex: 1 1 auto; text-align: center; }
}

.bar { background: var(--panel-2); border-radius: 8px; height: 9px; overflow: hidden; margin: 6px 0; }
.bar.tiny { height: 6px; margin-top: 8px; }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--good)); transition: width .3s; }
.bar-fill.hot { background: linear-gradient(90deg, var(--warn), var(--bad)); }

table.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mini td { padding: 6px 0; border-bottom: 1px solid var(--line); }
table.mini td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
table.mini tr.strong td { font-weight: 700; border-bottom: none; }

.list { display: flex; flex-direction: column; gap: 8px; }
.row { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row .meta { font-size: 12px; color: var(--muted); }
.pos { color: var(--good); } .neg { color: var(--bad); } .warnc { color: var(--warn); }
.rank { width: 28px; text-align: center; color: var(--muted); font-weight: 700; }
.me { border-color: var(--accent); }

/* Tarife */
.tariffs { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
@media (max-width: 800px) { .tariffs { grid-template-columns: 1fr; } }
.tariff { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.tariff h4 { margin: 0 0 4px; font-size: 14px; }
.tariff .priceline { display: flex; gap: 6px; margin: 10px 0 6px; }
.tariff .priceline input { width: 100%; }
.tariff .cmp { font-size: 12px; }
.tariff .capline { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; margin-top: 8px; }

/* Markt */
.market { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.market .mrow { display: flex; justify-content: space-between; }
.chip { font-size: 11px; padding: 1px 7px; border-radius: 20px; border: 1px solid var(--line); }
.chip.up { color: var(--good); border-color: var(--good); }
.chip.down { color: var(--bad); border-color: var(--bad); }
.chip.flat { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
button.chip { cursor: pointer; background: var(--bg-2); color: var(--muted); font-weight: 600; }
button.chip.on { background: var(--accent); color: #042018; border-color: var(--accent); }

/* Standorte */
.locations { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
@media (max-width: 800px) { .locations { grid-template-columns: 1fr; } }
.loc { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.loc.locked { opacity: .92; }
.loc h4 { margin: 0 0 4px; font-size: 15px; }
.loc .specs { font-size: 12px; color: var(--muted); margin: 6px 0; line-height: 1.7; }

/* Hardware */
.hwbar { margin: 6px 0 14px; }
.hwbar select { min-width: 220px; }
.models { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
@media (max-width: 1000px) { .models { grid-template-columns: 1fr; } }
.model { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.model h4 { margin: 0 0 2px; font-size: 14px; }
.model .cat { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .4px; }
.model .specs { font-size: 12px; color: var(--muted); margin: 8px 0; line-height: 1.8; }
.model .buyline { display: flex; gap: 6px; align-items: center; }
.model .buyline input { width: 64px; }
.owned { font-size: 12px; color: var(--muted); margin-top: 8px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.4); z-index: 50; }
.toast.bad { border-color: var(--bad); color: var(--bad); }
.toast.good { border-color: var(--good); color: var(--good); }

/* Charts */
.charts { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 900px) { .charts { grid-template-columns: repeat(2,1fr); } }
.chart { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.chart .clabel { font-size: 12px; color: var(--muted); }
.chart .cval { font-size: 18px; font-weight: 700; margin: 2px 0 6px; }
.chart svg { width: 100%; height: 48px; display: block; }

/* Kredit */
.loanbox { font-size: 13px; }
.loanbox .lrow { display: flex; justify-content: space-between; margin-bottom: 4px; }
.loanbox .lactions { display: flex; gap: 6px; margin-top: 8px; }
.loanbox .lactions input { width: 100%; }

/* Upgrade-Stufen */
.pips { display: flex; gap: 4px; margin: 8px 0; }
.pip { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.pip.on { background: var(--accent); }
.model .max { color: var(--good); font-weight: 600; }

/* Tutorial-Modal */
.modal { position: fixed; inset: 0; background: rgba(6,9,15,.72); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(3px); }
.modal-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; max-width: 480px; width: calc(100% - 40px); }
.tutbody { font-size: 14px; line-height: 1.6; min-height: 96px; margin: 12px 0; }
.tutbody b { color: var(--accent); }
.tut-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.tut-nav > div { display: flex; gap: 8px; }
.dots { display: flex; gap: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots span.on { background: var(--accent); }

/* Tier-Leiste */
.tierstrip { margin: 16px 16px 0; background: linear-gradient(90deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 16px; position: relative; overflow: hidden; }
.tierstrip .tbadge { font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--accent); border-radius: 12px; box-shadow: 0 0 18px rgba(79,140,255,.35); }
.tierstrip .tinfo { flex: 1; }
.tierstrip .tname { font-weight: 700; font-size: 16px; }
.tierstrip .tname .lvl { color: var(--accent); }
.tierstrip .tnext { font-size: 12px; color: var(--muted); }
.tierstrip .tbar { height: 8px; background: var(--bg); border-radius: 6px; overflow: hidden; margin-top: 7px; }
.tierstrip .tbar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--good)); transition: width .6s cubic-bezier(.2,.8,.2,1); }

/* Missions-Banner */
.missionbar { margin: 12px 16px 0; background: linear-gradient(90deg, #1a2336, var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 18px; transition: box-shadow .3s, border-color .3s; }
.missionbar.ready { border-color: var(--good); box-shadow: 0 0 24px rgba(58,210,159,.35); animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 0%,100%{box-shadow:0 0 18px rgba(58,210,159,.25)} 50%{box-shadow:0 0 30px rgba(58,210,159,.55)} }
.missionbar .mleft { flex: 1; min-width: 0; }
.missionbar .mtitle { font-size: 15px; }
.missionbar .mbar { height: 9px; background: var(--bg); border-radius: 6px; overflow: hidden; margin: 8px 0 5px; }
.missionbar .mbar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--good)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.missionbar .mright { display: flex; align-items: center; gap: 14px; text-align: center; }
.missionbar .mreward { font-size: 11px; color: var(--muted); line-height: 1.3; }
.missionbar .mreward b { color: var(--good); font-size: 16px; }
.missionbar .claimbtn { font-size: 14px; padding: 12px 18px; }
.missionbar .claimbtn:not(:disabled) { background: var(--good); color: #07221a; }

/* Zähler-Animation: leichter Puls bei Änderung */
.kpi-value.bump { animation: bump .4s ease; }
@keyframes bump { 0%{transform:scale(1)} 35%{transform:scale(1.14)} 100%{transform:scale(1)} }

/* RZ-Visualisierung */
.dcviz { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 12px; }
.dcloc { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.dcloc .dchead { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.dcloc .dchead .muted { font-size: 11px; }
.leds { display: flex; flex-wrap: wrap; gap: 4px; }
.led { width: 11px; height: 11px; border-radius: 3px; background: var(--line); position: relative; }
.led.dedicated { background: var(--accent-2); box-shadow: 0 0 6px var(--accent-2); animation: blink 2.2s infinite; }
.led.vps { background: var(--good); box-shadow: 0 0 6px var(--good); animation: blink 1.7s infinite; }
.led.cloud { background: var(--amber); box-shadow: 0 0 6px var(--amber); animation: blink 1.3s infinite; }
.led.down { background: var(--bad) !important; box-shadow: 0 0 8px var(--bad); animation: blinkfast .4s infinite; }
.led.empty { background: var(--line); box-shadow: none; animation: none; opacity: .5; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.45} }
@keyframes blinkfast { 0%,100%{opacity:1} 50%{opacity:.2} }
.dcloc .dcfoot { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* Erfolge */
.achgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 10px; }
.ach { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; transition: transform .15s; }
.ach.locked { opacity: .4; filter: grayscale(1); }
.ach.unlocked { border-color: var(--good); }
.ach.unlocked:hover { transform: translateY(-3px); }
.ach .aicon { font-size: 28px; }
.ach .aname { font-weight: 600; font-size: 13px; margin: 4px 0 2px; }
.ach .adesc { font-size: 11px; color: var(--muted); }

/* Konfetti-Canvas */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; }

/* Erfolg-Popups */
.achpops { position: fixed; top: 70px; right: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 210; }
.achpop { background: linear-gradient(135deg, #1d2536, #243150); border: 1px solid var(--good); border-radius: 12px; padding: 12px 16px; min-width: 240px; box-shadow: 0 10px 40px rgba(0,0,0,.5); display: flex; gap: 12px; align-items: center; animation: popin .5s cubic-bezier(.2,1.4,.4,1) both; }
.achpop.out { animation: popout .4s ease forwards; }
.achpop.cust { border-color: var(--accent); background: linear-gradient(135deg, #14202c, #16303a); }
.achpop.cust .pt { color: var(--accent); }
.achpop.loss, .achpop.warn { border-color: var(--bad); background: linear-gradient(135deg, #2a1820, #34161c); }
.achpop.loss .pt, .achpop.warn .pt { color: var(--bad); }
.achpop.event { border-color: var(--amber); background: linear-gradient(135deg, #2a2418, #34301a); }
.achpop.event .pt { color: var(--amber); }
.achpop.event-good { border-color: var(--good); background: linear-gradient(135deg, #142a1e, #163a24); }
.achpop.event-good .pt { color: var(--good); }
.achpop.event-bad { border-color: var(--bad); background: linear-gradient(135deg, #2a1820, #34161c); }
.achpop.event-bad .pt { color: var(--bad); }
.achpop .pi { font-size: 30px; }
.achpop .pt { font-size: 11px; color: var(--good); text-transform: uppercase; letter-spacing: .5px; }
.achpop .pn { font-weight: 700; }
.achpop .pd { font-size: 12px; color: var(--muted); }
@keyframes popin { from{transform:translateX(120%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes popout { to{transform:translateX(120%);opacity:0} }

/* Schwebende Geldzahlen */
.floaters { position: fixed; inset: 0; pointer-events: none; z-index: 205; }
.floater { position: absolute; font-weight: 800; font-size: 17px; text-shadow: 0 2px 8px rgba(0,0,0,.6); animation: floatup 1.6s ease-out forwards; white-space: nowrap; }
.floater.pos { color: var(--good); }
.floater.neg { color: var(--bad); }
.floater.big { font-size: 26px; }
@keyframes floatup { 0%{transform:translateY(0) scale(.8);opacity:0} 15%{opacity:1;transform:translateY(-6px) scale(1)} 100%{transform:translateY(-54px) scale(1);opacity:0} }

/* Einstellungen */
.setsection { margin: 14px 0; }
.setsection h3 { margin: 0 0 8px; }
.setsection input[type="password"], .setsection input[type="text"], .setsection input:not([type]) { width: 100%; margin-bottom: 8px; }
.toggle { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.toggle input { width: 42px; height: 24px; appearance: none; background: var(--line); border-radius: 20px; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.toggle input:checked { background: var(--good); }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
.toggle input:checked::after { left: 20px; }
.setrow { display: flex; gap: 8px; }
.setrow input { flex: 1; }
.setmsg { min-height: 18px; font-size: 13px; margin-top: 6px; }
.setmsg.ok { color: var(--good); }
.setmsg.err { color: var(--bad); }
.setinfo { margin-top: 4px; }
.setsection.danger { border-top: 1px solid var(--bad); padding-top: 12px; margin-top: 18px; }
.setsection.danger h3 { color: var(--bad); }
.danger-btn { background: var(--bad); color: #fff; width: 100%; }
.danger-btn:hover { filter: brightness(1.08); }

/* Admin-Tabelle */
.atable { width: 100%; border-collapse: collapse; font-size: 13px; }
.atable th, .atable td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.atable th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; }
.atable td.r, .atable th.r { text-align: right; font-variant-numeric: tabular-nums; }
.atable tbody tr:hover { background: var(--panel-2); }
.atable .badge { font-size: 10px; background: var(--accent); color: #fff; padding: 1px 6px; border-radius: 20px; vertical-align: middle; }
.atable .acts { display: flex; gap: 6px; }
.atable .acts button { padding: 5px 9px; font-size: 12px; font-weight: 600; }
.atable .acts .danger-btn { width: auto; }

/* Willkommen-zurück-Statistik */
.wstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.wstats > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 14px; }

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: 6px 10px; padding: 10px 14px; }
  .brand { font-size: 16px; }
  .brand .tag { display: none; }
  .world { font-size: 12px; flex-wrap: wrap; gap: 6px; }
  .card { padding: 14px; }
  .kpis { gap: 8px; padding: 10px; }
  .kpi-value { font-size: 20px; }
  .layout { gap: 8px; padding: 0 10px 18px; }
  .tierstrip, .missionbar { margin: 10px 10px 0; flex-wrap: wrap; padding: 12px 14px; }
  .missionbar .mright { width: 100%; justify-content: space-between; }
  .tierstrip .tbadge { width: 40px; height: 40px; font-size: 22px; }
  .achpops { left: 10px; right: 10px; top: auto; bottom: 12px; }
  .achpop { min-width: 0; }
  .modal-card { padding: 18px; }
  .charts { grid-template-columns: 1fr 1fr; }
  .tariffs { grid-template-columns: 1fr; }
}

/* === Netzwerk-Panel === */
.netgrid { display: flex; flex-direction: column; gap: 14px; }
.netwarn { background: rgba(255,107,107,.1); border: 1px solid var(--bad); color: #ffd6d6; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.netsum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.netsum > div { display: flex; flex-direction: column; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.netsum b { font-size: 16px; }
.netsum button { margin-top: 2px; }
.netsites { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.netsite { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 7px; }
.netsite h4 { margin: 0 0 2px; font-size: 15px; }
.netrow { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.netrow b { color: var(--text); font-weight: 600; }
.netsite .netbtn { width: 100%; margin-top: 2px; font-size: 13px; }
.netsite .capline { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.netsite .max { font-size: 12px; color: var(--good); }
.netinter { border-top: 1px solid var(--line); padding-top: 12px; }
.netinter h4 { margin: 0 0 10px; font-size: 15px; }
.netlinks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.netbuild { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.netbuild select { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); padding: 9px 10px; border-radius: 10px; }
@media (max-width: 700px) { .netsum { grid-template-columns: 1fr; } }
