/* ==========================================================================
   META-HOSTING ULTIMATE CYBER-GLASS THEME (v5.0 - Master Edition)
   ========================================================================== */

@property --ang {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root, html.hw {
  color-scheme: dark;

  /* Obsidian & Cosmic Backgrounds */
  --bg: #060714;
  --bg-deep: #03040a;
  --p: #0d1127;
  --p2: #141a38;
  --p3: #1b234b;
  --line: rgba(124, 92, 255, 0.16);
  --line-light: rgba(255, 255, 255, 0.08);
  --line-focus: rgba(99, 102, 241, 0.55);

  /* Typography */
  --tx: #f3f6fc;
  --tx-bright: #ffffff;
  --mut: #8b99bd;
  --mut-dark: #586588;

  /* Neon Accents */
  --ac: #6366f1;
  --ac2: #818cf8;
  --ac3: #06b6d4;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --purple: #a855f7;
  --ok: #10b981;
  --ok-glow: rgba(16, 185, 129, 0.5);
  --bad: #f43f5e;
  --warm: #f59e0b;

  /* Atmosphere & Surfaces */
  --hd: rgba(6, 7, 20, 0.78);
  --in: #090c1f;
  --con: #03050e;
  --hv: #4f46e5;
  --r: 18px;
  --r-sm: 10px;
  --r-lg: 24px;
  --glow: rgba(99, 102, 241, 0.4);
  --glow-cyan: rgba(6, 182, 212, 0.35);

  /* Gradients */
  --grad: linear-gradient(135deg, #6366f1, #a855f7 50%, #06b6d4);
  --grad-hover: linear-gradient(135deg, #4f46e5, #9333ea 50%, #0891b2);
  --grad-emerald: linear-gradient(135deg, #059669, #10b981);
  --grad-rose: linear-gradient(135deg, #e11d48, #f43f5e);
  --grad-amber: linear-gradient(135deg, #d97706, #f59e0b);
  --glass: linear-gradient(145deg, rgba(20, 26, 54, 0.75), rgba(10, 13, 29, 0.68));
  --glass-card: linear-gradient(155deg, rgba(22, 28, 60, 0.8), rgba(9, 12, 26, 0.75));

  /* Motion Curves */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --snappy: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html, html.hw {
  background: var(--bg);
  scroll-behavior: smooth;
}

body, html.hw body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  min-height: 100vh;
  position: relative;
  font: 15px/1.65 "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--ac2);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
  color: var(--tx-bright);
}

/* ========== LADESCREEN ========== */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99999;
  background:
    url(/logo.png) center/96px no-repeat,
    linear-gradient(90deg, var(--ac), var(--ac3), var(--pink)) center calc(50% + 112px)/0 4px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) center calc(50% + 112px)/240px 4px no-repeat,
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.35), transparent 45%),
    var(--bg);
  animation: loadBar 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards, loaderOut 0.35s ease 0.7s forwards;
}

html::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 50%;
  width: 156px;
  height: 156px;
  margin: -78px 0 0 -78px;
  z-index: 100000;
  border-radius: 50%;
  background: conic-gradient(from var(--ang), transparent 0 55%, var(--ac) 80%, var(--ac3) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: spin 0.8s linear infinite, loaderOut 0.35s ease 0.7s forwards;
}

@keyframes spin {
  to { --ang: 360deg; }
}

@keyframes loadBar {
  0% { background-size: 84px, 0 4px, 240px 4px, auto, auto; }
  25% { background-size: 104px, 60px 4px, 240px 4px, auto, auto; }
  50% { background-size: 92px, 130px 4px, 240px 4px, auto, auto; }
  75% { background-size: 104px, 190px 4px, 240px 4px, auto, auto; }
  100% { background-size: 96px, 240px 4px, 240px 4px, auto, auto; }
}

@keyframes loaderOut {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ========== HINTERGRUND: CYBER-AURORA & STERNE ========== */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 35% at 15% 15%, rgba(99, 102, 241, 0.28), transparent 70%),
    radial-gradient(38% 34% at 85% 25%, rgba(6, 182, 212, 0.20), transparent 70%),
    radial-gradient(45% 40% at 50% 90%, rgba(236, 72, 153, 0.16), transparent 70%),
    radial-gradient(30% 25% at 75% 80%, rgba(16, 185, 129, 0.12), transparent 70%);
  will-change: transform;
  animation: auroraDrift 30s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent),
    radial-gradient(1px 1px at 25% 65%, #c7d2fe, transparent),
    radial-gradient(1.5px 1.5px at 38% 12%, #fff, transparent),
    radial-gradient(1px 1px at 58% 78%, #67e8f9, transparent),
    radial-gradient(1.5px 1.5px at 73% 36%, #fff, transparent),
    radial-gradient(1px 1px at 89% 70%, #c7d2fe, transparent),
    radial-gradient(1px 1px at 95% 15%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 64% 52%, #a5b4fc, transparent),
    linear-gradient(rgba(99, 102, 241, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.035) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, auto, auto, auto, auto, 48px 48px, 48px 48px;
  -webkit-mask: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 88%);
  mask: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 88%);
}

@keyframes auroraDrift {
  0% { transform: translate3d(-3%, -2%, 0) scale(1); }
  50% { transform: translate3d(2%, 3%, 0) scale(1.05); }
  100% { transform: translate3d(4%, -1%, 0) scale(1.02); }
}

/* Deko-Elemente verstecken */
html.hw .deco, html.hw .web, .deco, .web { display: none !important; }
html.hw .classic { display: inline; }
html.hw .hwonly { display: none; }

/* Typografie */
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

h1, h2, h3 {
  font-family: inherit;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0;
}

h2 {
  font-size: 32px !important;
  line-height: 1.2;
  background: linear-gradient(180deg, #ffffff 40%, var(--ac2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--tx-bright);
}

/* ========== ALLGEMEINE LAYOUT-KLASSEN (FLEX, GRIDS, UTILS) ========== */
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.sp {
  justify-content: space-between;
}

.st {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.st b {
  font-size: 17px;
  font-weight: 750;
  color: #fff;
}

.nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.nums div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  background: rgba(8, 11, 26, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nums b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  font-family: ui-monospace, monospace;
}

.nums span {
  font-size: 11px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.note {
  color: var(--mut);
  font-size: 13.5px;
  line-height: 1.6;
}

.err {
  color: var(--bad);
  font-weight: 650;
  font-size: 13.5px;
  margin: 6px 0;
}

.banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 20px;
  color: #fbbf24;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--ok);
}

.badge.bad {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.35);
  color: var(--bad);
}

.badge.maintenance, .status-maintenance {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--warm);
  font-weight: 700;
}

.status-maintenance {
  grid-column: 1 / -1;
  padding: 16px 20px;
  border-radius: 16px;
  margin: 10px 0;
}

.chk {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0;
  color: var(--tx);
  font-size: 15px;
}

.chk input {
  width: auto;
  margin-top: 5px;
  flex: none;
  accent-color: var(--ac);
  cursor: pointer;
}

.tag, em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.12);
  border-radius: 99px;
  padding: 2px 9px;
  flex: none;
  letter-spacing: 0.02em;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1140px) / 2));
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hd);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.9), 0 0 1px rgba(99, 102, 241, 0.2);
  animation: headIn 0.7s var(--ease) both;
  display: flex;
  align-items: center;
}

header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6) 20%, rgba(6, 182, 212, 0.6) 50%, rgba(236, 72, 153, 0.5) 80%, transparent);
  background-size: 200% 100%;
  animation: lightStream 6s linear infinite;
}

@keyframes lightStream {
  to { background-position: 200% 0; }
}

@keyframes headIn {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.logo, html.hw .logo {
  font: 800 20px system-ui, sans-serif;
  color: var(--tx-bright);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s var(--ease);
}

.logo::before {
  content: "";
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border-radius: 50%;
  background: url(/logo.png) center/cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 20px var(--glow);
  transition: box-shadow 0.3s, transform 0.6s var(--spring);
}

.logo:hover::before {
  transform: rotate(-15deg) scale(1.15);
  box-shadow: 0 0 0 2px var(--ac), 0 0 35px var(--glow), 0 0 50px var(--glow-cyan);
}

nav {
  display: flex;
  gap: 6px;
  flex: 1;
}

nav a, .tabs a {
  position: relative;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--mut);
  overflow: hidden;
  transition: color 0.25s, background 0.25s, transform 0.25s var(--spring);
}

nav a:hover, .tabs a:hover {
  color: var(--tx-bright);
  background: rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

nav a.on, .tabs a.on {
  color: var(--tx-bright);
  background: rgba(99, 102, 241, 0.22);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.35);
}

nav a.on::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 99px;
  background: var(--grad);
  box-shadow: 0 0 10px var(--ac);
  animation: sheen 3s linear infinite;
  background-size: 200% 100%;
}

.language-toggle {
  flex: none;
  min-width: 48px;
  padding: 7px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--tx) !important;
  font-size: 13px !important;
  font-weight: 750;
  cursor: pointer;
  box-shadow: none !important;
  transition: all 0.25s var(--ease);
}

.language-toggle:hover {
  background: rgba(99, 102, 241, 0.2) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 0 16px -4px var(--glow) !important;
}

.me {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  white-space: nowrap;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tx);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.25s;
}

.profile-trigger:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--tx-bright);
}

.me img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(124, 92, 255, 0.3);
  transition: border-color 0.25s, transform 0.35s var(--spring), box-shadow 0.3s;
}

.me img:hover {
  border-color: var(--cyan);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 0 24px var(--glow-cyan);
}

.me a:not(.btn) {
  color: var(--mut);
  font-weight: 550;
}

.me a:not(.btn):hover {
  color: var(--tx-bright);
}

main {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  padding: 44px 24px 90px;
}

footer {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 24px;
  gap: 24px;
}

footer a {
  color: var(--mut);
  font-size: 13.5px;
}

footer a:hover {
  color: var(--tx-bright);
  text-shadow: 0 0 12px var(--glow);
}

/* ========== SEITENKOPF & KARTEN ========== */
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 32px;
}

.page-heading .lead {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--mut);
  font-size: 15.5px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 5px 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.2));
  background-size: 200% 100%;
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--ac2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: sheen 4s linear infinite;
}

.section-title { margin: 34px 0 14px; }
.content-section { margin-top: 36px; }
.content-section > h3 { margin: 0 0 6px; }
.content-section > p { margin: 0 0 16px; }
.back-link { margin: 0 0 18px; font-size: 14px; }
.back-link a {
  color: var(--mut);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, transform 0.25s var(--ease);
}
.back-link a:hover {
  color: var(--tx-bright);
  transform: translateX(-4px);
}

/* Quota Card */
.quota-card {
  min-width: 170px;
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.3s var(--spring), border-color 0.3s, box-shadow 0.3s;
}

.quota-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 20px 45px -18px var(--glow), 0 0 25px -10px var(--glow);
}

.quota-card span, .quota-card small {
  display: block;
  color: var(--mut);
  font-size: 12px;
  font-weight: 600;
}

.quota-card b {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Daily Streak */
.daily-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.daily-step {
  display: grid;
  gap: 5px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--mut);
  text-align: center;
  font-size: 12px;
  background: var(--p);
  transition: transform 0.25s var(--spring), border-color 0.25s, box-shadow 0.25s;
}

.daily-step:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
}

.daily-step b {
  color: var(--tx-bright);
  font-size: 15px;
  font-weight: 700;
}

.daily-step.complete {
  border-color: var(--ok);
  background: rgba(16, 185, 129, 0.12);
  color: var(--ok);
  box-shadow: 0 0 20px -6px rgba(16, 185, 129, 0.55);
}

.daily-step.current {
  border-color: var(--ac);
  color: var(--ac2);
  background: rgba(99, 102, 241, 0.16);
  animation: pulseCurrent 2s ease-in-out infinite;
}

@keyframes pulseCurrent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

/* ========== BUTTONS (CYBER-SHINE & GLOW) ========== */
button, .btn {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  background-size: 180% 100%;
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 10px 24px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 10px 26px -10px rgba(99, 102, 241, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s var(--spring), box-shadow 0.25s, background-position 0.5s, filter 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button::after, .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

button:hover, .btn:hover {
  background-position: 100% 0;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -10px rgba(99, 102, 241, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

button:hover::after, .btn:hover::after {
  left: 130%;
}

button:active, .btn:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 4px 12px -6px rgba(99, 102, 241, 0.8);
}

button.ghost, .btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--tx);
  box-shadow: none;
}

button.ghost:hover, .btn.ghost:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.65);
  color: var(--tx-bright);
  box-shadow: 0 0 24px -6px var(--glow);
}

button.red {
  background: var(--grad-rose);
  box-shadow: 0 10px 24px -10px rgba(244, 63, 94, 0.8);
}

button.red:hover {
  box-shadow: 0 14px 30px -8px rgba(244, 63, 94, 0.95);
}

.sm {
  padding: 7px 15px;
  font-size: 13px;
  border-radius: 10px;
}

button:disabled {
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.6);
  opacity: 0.55;
  cursor: not-allowed;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ========== HERO / STARTSEITE ========== */
.hero {
  position: relative;
  padding: 80px 0 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero h1, html.hw .hero h1 {
  max-width: 720px;
  margin: 6px 0 20px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.035em;
  background: linear-gradient(90deg, #fff 0%, #c7d2fe 35%, #67e8f9 65%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 7s linear infinite;
}

.hero p:not(.eyebrow):not(.note) {
  max-width: 580px;
  color: var(--mut);
  font-size: 18px;
  line-height: 1.7;
}

.hero .btn {
  margin: 14px 12px 0 0;
}

.hero::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 48px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: url(/logo.png) center/cover no-repeat;
  box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.55), 0 0 80px rgba(99, 102, 241, 0.5), 0 0 140px -10px rgba(6, 182, 212, 0.4);
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  right: -16px;
  top: 22px;
  width: 332px;
  height: 332px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 60%, var(--ac) 80%, var(--ac3), transparent);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  opacity: 0.75;
  animation: spin 8s linear infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.cols div {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.35s var(--spring), border-color 0.3s, box-shadow 0.3s;
}

.cols div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 80% at 50% 0%, rgba(99, 102, 241, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}

.cols div:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 24px 50px -24px var(--glow);
}

.cols div:hover::before { opacity: 1; }
.cols b { position: relative; margin-bottom: 6px; font-size: 17px; color: var(--tx-bright); display: block; }
.cols span { position: relative; line-height: 1.65; color: var(--mut); }

/* ========== KARTEN & ALLGEMEINE SURFACES ========== */
.card, html.hw .card {
  position: relative;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 42px -28px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.35s var(--spring), border-color 0.3s, box-shadow 0.35s;
  padding: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* ========== HOSTER DASHBOARD: SERVER CARDS ========== */
.server-card {
  display: flex !important;
  flex-direction: column;
  gap: 14px;
  background: var(--glass-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 20px !important;
  padding: 22px !important;
  text-decoration: none !important;
  color: inherit !important;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--spring), border-color 0.3s, box-shadow 0.35s !important;
}

.server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--ang), transparent 0 65%, var(--ac) 80%, var(--ac3) 95%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.35s;
}

.server-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.server-card:hover {
  transform: translateY(-8px) scale(1.015) !important;
  border-color: transparent !important;
  box-shadow: 0 28px 60px -24px var(--glow), 0 0 0 1px rgba(99, 102, 241, 0.25) !important;
}

.server-card:hover::before {
  opacity: 1;
  animation: spin 3.5s linear infinite;
}

.server-card:hover::after {
  transform: scaleX(1);
}

.server-card:active {
  transform: translateY(-2px) scale(0.99) !important;
}

/* Card Header */
.sc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.sc-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.sc-badge {
  font-size: 11px;
  font-weight: 750;
  padding: 3px 9px;
  border-radius: 7px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sc-badge.lang-python {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.sc-badge.lang-node {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

.sc-badge.iso {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.sc-badge.role {
  background: rgba(192, 132, 252, 0.15);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.35);
}

/* Status Pills */
.sc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 99px;
}

.sc-status-pill.status-running {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 16px -4px rgba(16, 185, 129, 0.5);
}

.sc-status-pill.status-starting {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sc-status-pill.status-offline {
  background: rgba(100, 116, 139, 0.14);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.sc-status-pill.status-suspended {
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

/* Status Dots with Radar Ping */
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

.dot.offline { background: #64748b; }
.dot.suspended { background: var(--bad); }

.dot.starting {
  background: var(--warm);
  animation: pulseAmber 1.5s ease-in-out infinite;
}

.dot.running {
  background: var(--ok);
  position: relative;
  box-shadow: 0 0 10px var(--ok);
}

.dot.running::before, .dot.running::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--ok);
  animation: radarWave 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  opacity: 0.8;
}

.dot.running::after {
  animation-delay: 1.2s;
}

@keyframes radarWave {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(3.2); opacity: 0; }
}

@keyframes pulseAmber {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* Card Body */
.sc-info { margin: 2px 0 4px; }
.sc-name {
  display: block;
  font-size: 18px;
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s;
}

.server-card:hover .sc-name {
  color: var(--ac2);
  text-shadow: 0 0 14px rgba(129, 140, 248, 0.4);
}

.sc-server {
  font-size: 13px;
  color: var(--mut);
  margin: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Telemetry Box */
.sc-telemetry {
  background: rgba(6, 8, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 13px 14px;
  margin: 2px 0;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sc-tele-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}

.sc-tele-label {
  color: var(--mut);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sc-tele-val {
  font-weight: 750;
  color: #f1f5f9;
  font-size: 12.5px;
  font-family: ui-monospace, monospace;
}

/* Animated Progress Bars with Light Shimmer */
.sc-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}

.sc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  border-radius: 99px;
  transition: width 0.5s ease;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
  position: relative;
  overflow: hidden;
}

.sc-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: barShimmer 2.2s infinite;
}

@keyframes barShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.sc-tele-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.sc-uptime {
  font-weight: 750;
  color: #38bdf8;
  font-family: ui-monospace, monospace;
}

.sc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ac2);
  padding-top: 4px;
}

.sc-arrow {
  transition: transform 0.25s ease;
}

.server-card:hover .sc-arrow {
  transform: translateX(6px);
  color: var(--cyan);
}

/* ========== COMMAND CENTER HUD (SLOT DETAIL) ========== */
.slot-hero {
  padding: 26px 30px !important;
  margin-bottom: 26px !important;
  border-radius: 22px !important;
  background: linear-gradient(160deg, rgba(20, 26, 56, 0.85), rgba(9, 12, 28, 0.82)) !important;
  border: 1px solid rgba(124, 92, 255, 0.32) !important;
  box-shadow: 0 24px 55px -20px rgba(0, 0, 0, 0.9), 0 0 35px -15px rgba(124, 92, 255, 0.3) !important;
}

.slot-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.slot-hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.slot-hero-title {
  font-size: 32px !important;
  font-weight: 850 !important;
  margin: 0 0 4px !important;
  color: #fff !important;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #ffffff 40%, #c7d2fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slot-hero-sub {
  font-size: 14px;
  color: var(--mut);
}

.slot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 750;
  transition: all 0.3s var(--ease);
}

.slot-status-pill.status-running {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 24px -4px rgba(16, 185, 129, 0.55);
}

.slot-status-pill.status-starting {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 20px -4px rgba(245, 158, 11, 0.4);
}

.slot-status-pill.status-offline {
  background: rgba(100, 116, 139, 0.16);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.slot-status-pill.status-suspended {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 20px -4px rgba(244, 63, 94, 0.4);
}

.slot-hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.hud-box {
  background: rgba(6, 8, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--spring), border-color 0.25s, box-shadow 0.25s;
}

.hud-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ac), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.hud-box:hover {
  border-color: rgba(99, 102, 241, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.8), 0 0 20px -8px var(--glow);
}

.hud-box:hover::before {
  opacity: 1;
}

.hud-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.hud-label {
  color: var(--mut);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hud-val {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
}

.hud-bar-bg {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 2px;
  position: relative;
}

.hud-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.7);
  transition: width 0.5s ease;
  position: relative;
}

.hud-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: barShimmer 2.2s infinite;
}

.hud-bar-fill.cpu {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.7);
}

.hud-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--mut);
  margin-top: 3px;
}

.hud-sub {
  color: var(--mut);
  font-size: 11.5px;
  font-weight: 550;
}

/* ========== TABS ========== */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 24px 0 20px;
}

/* ========== KONSOLE, BEFEHLE & STEUERUNG ========== */
.console-actions {
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}

.console-actions #b1 {
  background: var(--grad-emerald) !important;
  box-shadow: 0 8px 24px -8px rgba(16, 185, 129, 0.85) !important;
}

.console-actions #b1:hover {
  box-shadow: 0 14px 32px -6px rgba(16, 185, 129, 1) !important;
}

.console-actions #b2 {
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fbbf24 !important;
}

.console-actions #b2:hover {
  background: rgba(245, 158, 11, 0.16) !important;
  box-shadow: 0 0 20px -6px rgba(245, 158, 11, 0.6) !important;
}

.console-actions #b3 {
  border-color: rgba(244, 63, 94, 0.45) !important;
  color: #f87171 !important;
}

.console-actions #b3:hover {
  background: rgba(244, 63, 94, 0.16) !important;
  box-shadow: 0 0 20px -6px rgba(244, 63, 94, 0.6) !important;
}

pre#con {
  background: var(--con) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  padding: 18px 20px !important;
  box-shadow: inset 0 2px 28px rgba(0, 0, 0, 0.65), 0 10px 30px -15px rgba(0, 0, 0, 0.8) !important;
  font-family: ui-monospace, "SF Mono", Consolas, monospace !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  height: clamp(240px, 48vh, 440px);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.cmd {
  background: rgba(10, 14, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 8px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.cmd:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2), 0 8px 25px -8px rgba(6, 182, 212, 0.35);
}

.cmd span {
  color: var(--cyan);
  font-weight: 850;
  font-size: 20px;
  margin-left: 2px;
  animation: promptBlink 1.2s ease-in-out infinite;
}

@keyframes promptBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.cmd input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  padding: 6px 0 !important;
  font-family: ui-monospace, monospace !important;
  font-size: 14px !important;
  min-height: auto !important;
}

.cmd button {
  padding: 8px 20px !important;
  font-size: 13.5px !important;
  border-radius: 10px !important;
  flex: none;
}

/* ========== DATEIEN-EXPLORER ========== */
.files {
  display: grid;
  grid-template-columns: 310px 1fr !important;
  gap: 18px;
}

.fl {
  max-height: 520px;
  overflow: auto;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.folder-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.folder-row > a {
  min-width: 0;
  flex: 1;
}

.folder-row > button {
  flex: none;
  padding: 5px 8px;
}

.fl a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--tx);
  word-break: break-all;
  font-size: 14px;
  transition: background 0.2s, transform 0.25s var(--ease);
}

.fl a i {
  font: 700 12px ui-monospace, monospace;
  width: 44px;
  flex: none;
}

.fl a span {
  flex: 1;
  word-break: break-all;
}

.fl small {
  color: var(--mut);
  font-size: 11.5px;
  flex: none;
  font-family: ui-monospace, monospace;
}

.fl a:hover {
  background: rgba(99, 102, 241, 0.14);
  transform: translateX(4px);
}

.fl a.on {
  background: rgba(99, 102, 241, 0.25);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.fd {
  color: var(--mut);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 14px 0 4px;
  padding-left: 10px;
}

#lp.over {
  outline: 2px dashed var(--cyan) !important;
  background: rgba(6, 182, 212, 0.05);
}

.drop {
  display: none;
  border: 1.5px dashed var(--ac);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: var(--ac2);
  background: rgba(99, 102, 241, 0.08);
}

#lp.over .drop {
  display: block;
}

.empty {
  color: var(--mut);
  padding: 24px;
}

.empty b {
  color: var(--tx-bright);
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
  font-weight: 750;
}

.empty ol {
  padding-left: 24px;
  line-height: 2.2;
  margin: 12px 0 0;
}

.empty span {
  color: var(--cyan);
  font-family: ui-monospace, monospace;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

textarea#ed {
  height: 500px;
  width: 100%;
  background: var(--con);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  resize: vertical;
}

/* ========== FORMULARE & INPUTS ========== */
input, select, textarea {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--in);
  color: var(--tx);
  padding: 10px 14px;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
  width: 100%;
}

input:hover, select:hover, textarea:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ac);
  background: #0f132e;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25), 0 0 25px -6px var(--glow);
}

label {
  display: block;
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 6px;
}

/* ========== TABELLEN & ADMIN ========== */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  color: var(--mut);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}

tr:hover td {
  background: rgba(99, 102, 241, 0.08);
}

.admin-tabs {
  display: flex;
  gap: 6px;
  margin: 24px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-tab {
  padding: 10px 20px !important;
  border-radius: 12px 12px 0 0 !important;
  background: transparent !important;
  color: var(--mut) !important;
  font-weight: 700;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab:hover {
  color: #fff !important;
  background: rgba(99, 102, 241, 0.1) !important;
}

.admin-tab.on {
  background: rgba(99, 102, 241, 0.22) !important;
  color: #fff !important;
  border-bottom: 2px solid var(--cyan) !important;
}

/* ========== SHOP & PROFIL ========== */
.shop-section {
  max-width: 800px;
  margin-top: 32px;
}

.shop-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--glass-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  margin-top: 18px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.shop-product:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 20px 48px -20px var(--glow);
}

.shop-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.coming-soon {
  padding: 22px;
  border-left: 4px solid var(--ac);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.14), transparent);
  margin-top: 24px;
}

.dashboard-daily {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 940px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 24px 0;
}

.profile-panel {
  max-width: 640px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.profile-summary > img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ac);
  box-shadow: 0 0 25px var(--glow);
}

.profile-summary > div {
  display: grid;
  gap: 2px;
}

.profile-summary b {
  font-size: 18px;
  font-weight: 750;
  color: #fff;
}

.profile-coins {
  margin-left: auto;
  text-align: right;
  min-width: 100px;
}

.profile-coins b {
  font-size: 22px;
  font-weight: 850;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========== TUTORIAL & DOKU ========== */
.doc {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r);
  background: var(--glass);
}

.tutorial-step {
  border-radius: var(--r);
  background: var(--p);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 26px;
  margin: 16px 0;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.tutorial-step:hover {
  transform: translateX(6px);
  border-color: rgba(99, 102, 241, 0.6);
}

.tutorial code {
  background: var(--p2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--cyan);
  font-family: ui-monospace, monospace;
}

.tutorial .tip {
  border-left: 3px solid var(--warm);
  background: rgba(245, 158, 11, 0.08);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 14px 0;
}

/* Status-Seite Spezifisch */
.bot-counts {
  display: flex;
  gap: 14px;
  margin: 14px 0;
}

.bot-count {
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
}

.bot-count.active {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.bot-count.inactive {
  background: rgba(100, 116, 139, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.bot-owner {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 34, 0.6);
  margin: 8px 0;
}

.bot-owner-heading {
  font-weight: 750;
  color: #fff;
  margin-bottom: 8px;
  font-size: 15px;
}

/* ========== SCROLLBAR & SELECTION ========== */
::selection {
  background: rgba(99, 102, 241, 0.5);
  color: #fff;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--ac), #312e81);
  border-radius: 99px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* ========== ANIMATIONEN (KEYFRAMES & STAGGER) ========== */
@keyframes shine {
  to { background-position: -250% 0; }
}

@keyframes sheen {
  to { background-position: 200% 0; }
}

main > * {
  animation: pageIn 0.6s var(--ease) 0.85s both;
}

main > *:nth-child(2) { animation-delay: 0.95s; }
main > *:nth-child(3) { animation-delay: 1.05s; }
main > *:nth-child(4) { animation-delay: 1.15s; }

.grid > *, .cols > * {
  animation: pageIn 0.65s var(--spring) 0.95s both;
}

.grid > *:nth-child(2), .cols > *:nth-child(2) { animation-delay: 1.05s; }
.grid > *:nth-child(3), .cols > *:nth-child(3) { animation-delay: 1.15s; }
.grid > *:nth-child(4) { animation-delay: 1.25s; }
.grid > *:nth-child(5) { animation-delay: 1.35s; }
.grid > *:nth-child(6) { animation-delay: 1.45s; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ========== RESPONSIVENESS ========== */
@media (max-width: 1000px) {
  .hero::after, .hero::before { display: none; }
}

@media (max-width: 850px) {
  header { flex-wrap: wrap; gap: 8px 16px; padding: 12px 20px; }
  nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  nav a { white-space: nowrap; }
}

@media (max-width: 650px) {
  main { padding: 24px 16px 60px; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 36px; }
  .grid { grid-template-columns: 1fr !important; }
  .cols { grid-template-columns: 1fr; }
  .slot-hud { grid-template-columns: 1fr; }
  .files { grid-template-columns: 1fr !important; }
  .daily-progress { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-heading { flex-direction: column; align-items: flex-start; }
  .quota-card { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html::before, html::after { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ========== TABELLEN-FIX: nichts mehr außerhalb der Karte ========== */
.card:has(> table) {
  padding: 8px 12px;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.card > table {
  min-width: 100%;
  width: max-content;
}

.card > table th,
.card > table td {
  padding: 12px 10px;
  vertical-align: middle;
}

.card > table th { white-space: nowrap; font-size: 12px; }
.card > table td .note { word-break: break-all; }
.card > table td select,
.card > table td input[type="number"] { min-height: 40px; }

.row-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 120px;
}

.row-actions button { white-space: nowrap; width: 100%; }

.card:has(> table)::-webkit-scrollbar { height: 8px; }
.card:has(> table)::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 8px;
}

@media (max-width: 650px) {
  .card:has(> table) { padding: 4px 6px; }
}

/* ==========================================================================
   v6 MODERN LAYER – Spotlight-Glas, Floating-Navbar, Bento-Look, Grain
   (liegt über dem alten Theme, alle Funktionen bleiben gleich)
   ========================================================================== */
:root, html.hw {
  --bg: #05050d;
  --ac: #7c6cff;
  --ac2: #a79bff;
  --glass: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015) 55%), rgba(10, 11, 26, 0.72);
  --glass-card: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015) 55%), rgba(10, 11, 26, 0.74);
  --grad: linear-gradient(135deg, #7c6cff 0%, #a855f7 45%, #22d3ee 100%);
  --edge: rgba(255, 255, 255, 0.09);
  --edge-hi: rgba(255, 255, 255, 0.2);
  --r: 22px;
}

::selection { background: rgba(124, 108, 255, 0.55); color: #fff; }
html { scrollbar-color: rgba(124, 108, 255, 0.5) transparent; scrollbar-width: thin; }
body { font-feature-settings: "cv11", "ss01", "ss03"; letter-spacing: -0.005em; }

/* Hintergrund: Lichtkegel von oben + tieferes Schwarz */
body::before {
  background:
    radial-gradient(60% 45% at 50% -8%, rgba(124, 108, 255, 0.42), transparent 70%),
    radial-gradient(38% 34% at 88% 22%, rgba(34, 211, 238, 0.20), transparent 70%),
    radial-gradient(42% 38% at 8% 62%, rgba(168, 85, 247, 0.20), transparent 70%),
    radial-gradient(45% 40% at 55% 100%, rgba(236, 72, 153, 0.16), transparent 70%);
}

/* Film-Grain über allem (sehr dezent, gibt den "teuren" Look) */
main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ===== Floating Navbar ===== */
header {
  top: 12px;
  width: min(1180px, calc(100% - 28px));
  margin: 12px auto 0;
  padding: 0 14px 0 18px;
  min-height: 62px;
  border-radius: 22px;
  border: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)), rgba(8, 9, 22, 0.6);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 24px 60px -28px #000, inset 0 1px 0 rgba(255,255,255,0.12), 0 0 0 1px rgba(124,108,255,0.06);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
header.scrolled {
  border-color: var(--edge-hi);
  box-shadow: 0 30px 70px -26px #000, inset 0 1px 0 rgba(255,255,255,0.16), 0 0 50px -18px rgba(124,108,255,0.55);
}
header::after { left: 28px; right: 28px; opacity: 0.9; filter: blur(0.3px); }

nav a, .tabs a {
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
nav a:hover, .tabs a:hover { transform: none; background: rgba(255,255,255,0.07); }
nav a.on, .tabs a.on {
  background: linear-gradient(180deg, rgba(124,108,255,0.35), rgba(124,108,255,0.14));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 0 24px -6px rgba(124,108,255,0.7);
}
nav a.on::after { display: none; }

.language-toggle, .profile-trigger {
  border-radius: 12px !important;
  border: 1px solid var(--edge) !important;
  background: rgba(255,255,255,0.05) !important;
}

/* ===== Typografie ===== */
h2 { font-size: clamp(30px, 4vw, 40px) !important; letter-spacing: -0.04em; font-weight: 800; background: linear-gradient(180deg, #fff 30%, #b9b2ff); -webkit-background-clip: text; background-clip: text; }
h3 { letter-spacing: -0.025em; }
.page-heading { margin-bottom: 38px; }
.page-heading .lead { font-size: 16px; line-height: 1.7; }
.eyebrow {
  background: rgba(124,108,255,0.12);
  border: 1px solid rgba(167,155,255,0.35);
  box-shadow: 0 0 30px -8px rgba(124,108,255,0.7), inset 0 1px 0 rgba(255,255,255,0.12);
  letter-spacing: 0.12em;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ===== Hero ===== */
.hero { border-bottom: 0; padding: 92px 0 72px; }
.hero h1, html.hw .hero h1 {
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 820px;
  background: linear-gradient(100deg, #fff 0%, #cfc9ff 30%, #7ee7ff 60%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}
.hero p:not(.eyebrow):not(.note) { font-size: 19px; color: #9aa6c6; }
.hero .btn { padding: 14px 28px; border-radius: 14px; font-size: 15.5px; }

/* ===== Buttons ===== */
button, .btn {
  border-radius: 12px;
  background-image: var(--grad);
  background-size: 160% 100%;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 0 0 1px rgba(255,255,255,0.1), 0 12px 32px -12px rgba(124,108,255,0.9), 0 0 44px -16px rgba(34,211,238,0.5);
}
button:hover, .btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
button.ghost, .btn.ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
button.ghost:hover, .btn.ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--edge-hi); box-shadow: 0 0 30px -8px rgba(124,108,255,0.7); }
button.red { box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 12px 30px -12px rgba(244,63,94,0.85); }

/* ===== Karten mit Maus-Spotlight (--mx/--my setzt app.js) ===== */
html .card, html.hw .card, .cols div, .hud-box, .shop-product, .tutorial-step, .profile-panel, .quota-card, .bot-owner, .doc {
  --mx: 50%; --my: 0%;
  background:
    radial-gradient(520px circle at var(--mx) var(--my), rgba(139, 125, 255, 0.16), transparent 42%),
    var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 30px 60px -36px #000;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
html body .server-card {
  --mx: 50%; --my: 0%;
  background:
    radial-gradient(480px circle at var(--mx) var(--my), rgba(139, 125, 255, 0.2), transparent 45%),
    var(--glass-card) !important;
  border: 1px solid var(--edge) !important;
  border-radius: 24px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 30px 60px -34px #000 !important;
}
html body .server-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(167, 155, 255, 0.55) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 36px 80px -30px rgba(124,108,255,0.65) !important;
}
.cols div:hover, .shop-product:hover, .hud-box:hover { border-color: rgba(167,155,255,0.5); }

/* ===== Tabs als Segmented-Control ===== */
.tabs, .admin-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  margin: 22px 0 22px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.admin-tab { border-radius: 12px !important; padding: 9px 18px !important; }
.admin-tab.on {
  background: linear-gradient(180deg, rgba(124,108,255,0.4), rgba(124,108,255,0.16)) !important;
  border-bottom: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 0 26px -8px rgba(124,108,255,0.8) !important;
}

/* ===== Inputs ===== */
input, select, textarea {
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--edge);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.35);
}
input:hover, select:hover, textarea:hover { border-color: rgba(167,155,255,0.45); }
input:focus, select:focus, textarea:focus {
  background: rgba(124,108,255,0.07);
  border-color: rgba(167,155,255,0.9);
  box-shadow: 0 0 0 4px rgba(124,108,255,0.22), 0 0 40px -10px rgba(124,108,255,0.7);
}
label { color: #b9b2ff; letter-spacing: 0.01em; }

/* ===== Tabellen ===== */
th { color: #8e9bc2; letter-spacing: 0.1em; border-bottom-color: var(--edge); }
td { border-bottom-color: rgba(255,255,255,0.05); }
tr:hover td { background: linear-gradient(90deg, rgba(124,108,255,0.1), rgba(34,211,238,0.04)); }
tr:last-child td { border-bottom: 0; }

/* ===== Badges / Pills ===== */
.badge, .sc-badge, .sc-status-pill, .slot-status-pill, .bot-count { backdrop-filter: blur(8px); }

/* ===== Footer ===== */
footer { border-top-color: var(--edge); }

/* ===== Mobile ===== */
@media (max-width: 850px) {
  header { flex-wrap: wrap; width: calc(100% - 20px); margin-top: 10px; padding: 10px 14px; border-radius: 20px; gap: 8px 14px; }
  .hero { padding: 56px 0 44px; }
  .tabs, .admin-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; }
  .tabs a, .admin-tab { white-space: nowrap; }
}


/* ==========================================================================
   v7 SPEED + MOTION – kein Ladescreen mehr, sofortiger Start, bessere Animationen
   ========================================================================== */
html::before, html::after { display: none !important; animation: none !important; }

@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes blurIn { from { opacity: 0; transform: translateY(14px); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes headDrop { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rippleOut { to { transform: scale(1); opacity: 0; } }

header { animation: headDrop 0.45s var(--ease) both; }
main > * { animation: riseIn 0.5s var(--ease) 0.02s both; }
main > *:nth-child(2) { animation-delay: 0.07s; }
main > *:nth-child(3) { animation-delay: 0.12s; }
main > *:nth-child(4) { animation-delay: 0.17s; }
main > *:nth-child(5) { animation-delay: 0.22s; }
.page-heading h2, .hero h1 { animation-name: blurIn; animation-duration: 0.7s; animation-timing-function: var(--ease); animation-fill-mode: both; }
.grid > *, .cols > * { animation: popIn 0.55s var(--ease) 0.03s both; }
.grid > *:nth-child(2), .cols > *:nth-child(2) { animation-delay: 0.075s; }
.grid > *:nth-child(3), .cols > *:nth-child(3) { animation-delay: 0.120s; }
.grid > *:nth-child(4), .cols > *:nth-child(4) { animation-delay: 0.165s; }
.grid > *:nth-child(5), .cols > *:nth-child(5) { animation-delay: 0.210s; }
.grid > *:nth-child(6), .cols > *:nth-child(6) { animation-delay: 0.255s; }
.grid > *:nth-child(7), .cols > *:nth-child(7) { animation-delay: 0.300s; }
.grid > *:nth-child(8), .cols > *:nth-child(8) { animation-delay: 0.345s; }
.grid > *:nth-child(9), .cols > *:nth-child(9) { animation-delay: 0.390s; }
.grid > *:nth-child(10), .cols > *:nth-child(10) { animation-delay: 0.435s; }
.grid > *:nth-child(11), .cols > *:nth-child(11) { animation-delay: 0.480s; }
.grid > *:nth-child(12), .cols > *:nth-child(12) { animation-delay: 0.525s; }
#v table tr { animation: rowIn 0.4s var(--ease) both; }
#v table tr:nth-child(1) { animation-delay: 0.15s; }
#v table tr:nth-child(2) { animation-delay: 0.18s; }
#v table tr:nth-child(3) { animation-delay: 0.21s; }
#v table tr:nth-child(4) { animation-delay: 0.24s; }
#v table tr:nth-child(5) { animation-delay: 0.27s; }
#v table tr:nth-child(6) { animation-delay: 0.30s; }
#v table tr:nth-child(7) { animation-delay: 0.33s; }
#v table tr:nth-child(8) { animation-delay: 0.36s; }
#v table tr:nth-child(9) { animation-delay: 0.39s; }
#v table tr:nth-child(10) { animation-delay: 0.42s; }
#v table tr:nth-child(11) { animation-delay: 0.45s; }
#v table tr:nth-child(12) { animation-delay: 0.48s; }
#v table tr:nth-child(13) { animation-delay: 0.51s; }
#v table tr:nth-child(14) { animation-delay: 0.54s; }

/* Scroll-Reveal (Karten unterhalb des sichtbaren Bereichs) */
.rv { opacity: 0; transform: translateY(32px) scale(0.97); animation: none !important; }
.rv.rv-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }

/* 3D-Tilt */
.server-card, .cols div, .shop-product { transform-style: preserve-3d; }
html body .server-card.tilting, .cols div.tilting, .shop-product.tilting {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) !important;
  transition: transform 0.12s linear, border-color 0.3s, box-shadow 0.35s !important;
}

/* Button-Ripple */
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.45); transform: scale(0); animation: rippleOut 0.6s ease-out forwards; pointer-events: none; }

/* Skeleton beim ersten Laden */
.skel { display: grid; gap: 18px; padding-top: 12px; }
.skel i, .skel b {
  display: block; border-radius: 16px;
  background: linear-gradient(100deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.11) 50%, rgba(255,255,255,0.04) 70%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.skel i:nth-child(1) { height: 28px; width: 220px; }
.skel i:nth-child(2) { height: 16px; width: 380px; max-width: 90%; }
.skel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 18px; }
.skel-grid b { height: 190px; border-radius: 22px; }

/* Nav-Links: Hover-Linie */
nav a::before { content: ""; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px; border-radius: 9px; background: var(--grad); transform: translateX(-50%); transition: width 0.3s var(--ease); }
nav a:hover::before { width: calc(100% - 28px); }
nav a.on::before { width: 0; }

/* Status-Punkt "live" Puls */
.dot.running { animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); } 50% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } }

/* Performance: weniger teure Effekte */
html .card, html.hw .card, .cols div, .hud-box, .shop-product, .tutorial-step, .profile-panel, .quota-card, .bot-owner, .doc {
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
main::before { mix-blend-mode: normal; opacity: 0.035; }
body::before { animation-duration: 45s; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
}

/* ==========================================================================
   v9 MOBILE – kompakter Header (Logo | Sprache | Konto, darunter scrollbare Navigation)
   ========================================================================== */
@media (max-width: 850px) {
  header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; min-height: 0; }
  header .logo { order: 1; font-size: 17px; margin-right: auto; }
  #language-toggle { order: 2; margin-left: 0; }
  #me { order: 3; display: flex; align-items: center; gap: 8px; margin-left: 0; }
  #me .btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
  #me .profile-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #me > a:not(.profile-trigger):not(.btn) { font-size: 12.5px; }
  #nav { order: 4; flex: 1 0 100%; display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  #nav::-webkit-scrollbar { display: none; }
  #nav a { flex: 0 0 auto; white-space: nowrap; padding: 8px 14px; }
  header::after { left: 16px; right: 16px; }
  main { padding-left: 16px; padding-right: 16px; }
  .hero h1, html.hw .hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .page-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero .btn { width: 100%; text-align: center; }
  .actions { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  #me .profile-name { display: none; }
  footer { flex-wrap: wrap; gap: 8px 16px; justify-content: center; padding: 20px 16px; }
}
