/* ============================================
   BOXSPEC — Rebrand Design System
   Bold fight-poster aesthetic, high contrast
   Fonts: Oswald (display), Barlow (body), JetBrains Mono (data)
   ============================================ */

:root {
  /* Surfaces — deep charcoal with slight warm undertone */
  --black: #0a0a0b;
  --dark: #131316;
  --dark2: #1b1b20;
  --dark3: #2a2a30;
  --grey: #6b6b76;
  --light: #d4d4dc;
  --white: #f0f0f5;

  /* Brand — fight red + championship gold */
  --red: #E8000D;
  --red-dark: #a00008;
  --gold: #F5C518;

  /* Status */
  --green: #10b981;
  --orange: #f59e0b;
  --blue: #3b82f6;
  --purple: #8b5cf6;

  /* Text */
  --text-muted: #8888a0;
  --text-subtle: #5a5a6e;

  /* Surfaces */
  --surface-0: #0a0a0b;
  --surface-1: #131316;
  --surface-2: #1e1e24;
  --surface-3: #2d2d36;
  --surface-4: #3d3d48;

  /* Type scale */
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: 28px;
  --fs-2xl: 36px;
  --fs-hero: clamp(36px, 7vw, 56px);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Radius — sharper, more aggressive */
  --radius: 6px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 9999px;

  /* Motion */
  --trans: 0.18s ease;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 150ms;

  /* Glasmorphism — Fight Command */
  --glass-bg: rgba(255,255,255,.04);
  --glass-border: rgba(255,255,255,.08);
  --glass-blur: 16px;
  --glow-red: 0 0 20px rgba(232,0,13,.3);
  --glow-green: 0 0 12px rgba(34,197,94,.4);
  --glow-gold: 0 0 12px rgba(245,197,24,.3);
  --glow-blue: 0 0 12px rgba(59,130,246,.3);
  --grid-line: rgba(255,255,255,.03);
}

  --black: #f5f5f7;
  --dark: #eeeef0;
  --dark2: #e2e2e6;
  --dark3: #d0d0d6;
  --grey: #7a7a88;
  --light: #333340;
  --white: #111118;
  --red: #d50000;
  --red-dark: #b00020;
  --gold: #c49000;
  --green: #059669;
  --blue: #1d4ed8;
  --orange: #d97706;
  --purple: #7c3aed;
  --text-muted: #55556a;
  --text-subtle: #72728a;
  --surface-0: #f5f5f7;
  --surface-1: #eeeef0;
  --surface-2: #e0e0e4;
  --surface-3: #d0d0d6;
  --surface-4: #b8b8c4;
}

* { margin: 0; padding: 0; box-sizing: border-box; caret-color: transparent; }
input:focus, textarea:focus, select:focus, [contenteditable]:focus { caret-color: var(--white); }
html { scroll-behavior: smooth; }

/* ===== BUTTON SYSTEM ===== */
.btn, .submit-btn, .calc-btn, .si-btn, .mt-ego-save, .wk-btn, .ob-btn-next, .ob-btn-back, .back-link {
  font-family: 'Bebas Neue', sans-serif;
  border-radius: var(--radius-md);
  min-height: 44px;
  cursor: pointer;
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 2px;
}
/* Primary (Red CTA) */
.btn-primary, .submit-btn, .calc-btn, .ob-btn-next, .mt-ego-save {
  font-size: var(--fs-md);
  padding: 12px 28px;
  background: var(--red);
  color: var(--white);
  border: none;
}
.btn-primary:hover, .submit-btn:hover, .calc-btn:hover, .ob-btn-next:hover, .mt-ego-save:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,0,13,.25);
}
.btn-primary:active, .submit-btn:active, .calc-btn:active, .ob-btn-next:active, .mt-ego-save:active {
  transform: translateY(0) scale(.97);
  transition-duration: .08s;
}
/* Secondary (Outlined) */
.btn-secondary, .wk-btn {
  font-size: var(--fs-sm);
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--surface-3);
  color: var(--light);
}
.btn-secondary:hover, .wk-btn:hover {
  background: var(--surface-3);
  color: var(--white);
}
/* Ghost (Text-only) */
.btn-ghost, .back-link, .ob-btn-back {
  font-size: var(--fs-sm);
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--surface-3);
  color: var(--text-muted);
}
.btn-ghost:hover, .back-link:hover, .ob-btn-back:hover {
  border-color: var(--surface-4);
  color: var(--white);
}
/* Sizes */
.btn-sm { font-size: var(--fs-sm) !important; padding: 8px 18px !important; min-height: 36px; }
.btn-lg { font-size: var(--fs-lg) !important; padding: 16px 48px !important; letter-spacing: 3px; }

/* Animations */
@keyframes fadeSlideIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeSlideOut { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(-8px); } }
@keyframes shake { 0%,100% { transform:translateX(0); } 25% { transform:translateX(-5px); } 75% { transform:translateX(5px); } }
@keyframes growWidth { from { width:0; } }
/* pulseGlow removed — too distracting */

.anim-fade-in { animation: fadeSlideIn .3s ease forwards; }
.anim-fade-out { animation: fadeSlideOut .3s ease forwards; }
.anim-shake { animation: shake .3s; }
.anim-pulse { /* removed */ }

/* Scroll reveal (vanilla, applied by IntersectionObserver) */
.reveal { opacity:0; transform:translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
body {
  background: var(--black);
  color: var(--light);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: var(--fs-base);
  line-height: 1.7;
  cursor: default;
}

/* Säulen Intro */
.si-slide { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:40px 24px; scroll-snap-align:start; }
.si-center { max-width:520px; text-align:center; }
#saeulen-intro { display:none; position:fixed; inset:0; z-index:9999; background:#000; overflow:hidden; }
#si-scroll { height:100%; overflow-y:auto; scroll-snap-type:y mandatory; }
.si-num { font-family:'Bebas Neue',sans-serif; font-size:120px; opacity:.15; line-height:.8; color:var(--pillar-color, var(--red)); }
.si-title { font-family:'Bebas Neue',sans-serif; font-size:clamp(28px,5vw,42px); letter-spacing:2px; margin-top:-20px; color:var(--pillar-color, var(--white)); }
.si-body { font-family:'DM Sans',sans-serif; font-size:var(--fs-base); color:#888; line-height:1.8; margin-top:20px; }
.si-why { font-family:'Space Mono',monospace; font-size:var(--fs-xs); margin-top:20px; letter-spacing:1px; color:var(--pillar-color, var(--red)); }
.si-reason { font-family:'DM Sans',sans-serif; font-size:var(--fs-sm); color:var(--text-muted); margin-top:8px; line-height:1.6; }
.si-hero-slide { text-align:center; }
.si-hero-logo { font-family:'Bebas Neue',sans-serif; font-size:clamp(48px,10vw,80px); color:var(--white); letter-spacing:4px; line-height:.9; }
.si-hero-logo span { color:var(--red); }
.si-hero-sub { font-family:'Space Mono',monospace; font-size:var(--fs-xs); color:var(--text-subtle); letter-spacing:3px; margin-top:12px; }
.si-hero-quote { font-family:'DM Sans',sans-serif; font-size:clamp(16px,3vw,22px); color:#888; line-height:1.6; max-width:500px; margin:0 auto; }
.si-hero-quote strong { color:var(--white); font-weight:700; }
.si-hero-cta { font-family:'Bebas Neue',sans-serif; font-size:var(--fs-lg); color:var(--red); letter-spacing:3px; }
.si-hero-cta-sub { font-family:'DM Sans',sans-serif; font-size:var(--fs-sm); color:var(--text-subtle); margin-top:8px; }
.si-outro-title { font-family:'Bebas Neue',sans-serif; font-size:clamp(24px,5vw,40px); color:var(--white); letter-spacing:2px; line-height:1.2; max-width:500px; }
.si-outro-desc { font-family:'DM Sans',sans-serif; font-size:var(--fs-base); color:var(--text-muted); margin-top:20px; line-height:1.6; max-width:440px; }
.si-outro-dots { display:flex; gap:6px; margin-top:32px; justify-content:center; }
.si-outro-dot { width:8px; height:8px; border-radius:50%; }
.si-fade { opacity:0; transition:opacity .8s ease, transform .8s ease; transform:translateY(12px); display:block; width:100%; }
.si-fade.visible { opacity:1; transform:translateY(0); }
.si-hero-slide { flex-direction:column; text-align:center; align-items:center; gap:0; }
.si-hero-slide > * { width:100%; }
.si-hero-slide > .si-btn { width:auto; }
.si-btn { font-family:'Bebas Neue',sans-serif; font-size:var(--fs-lg); letter-spacing:3px; padding:18px 56px; background:var(--red); color:#fff; border:none; border-radius:var(--radius-md); cursor:pointer; transition:transform .15s,box-shadow .2s; }
.si-btn:hover { transform:scale(1.03); box-shadow:0 0 30px rgba(232,0,13,.2); }
.si-btn:active { transform:scale(.97); }
@keyframes siBounce { 0%,100% { transform:translateX(-50%) translateY(0); } 50% { transform:translateX(-50%) translateY(12px); } }

/* ===== NATIVE APP FEEL ===== */

/* Bottom Tab Bar (Mobile) */
.bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: var(--black);
  border-top: 1px solid var(--surface-2);
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
}
.btab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.5px;
  padding: 8px 12px;
  min-height: 44px;
  cursor: pointer;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btab.active { color: var(--red); }
.btab svg { transition: transform .15s; }
.btab:active svg { transform: scale(.85); }

/* Mobile Menu Items */
.mm-item {
  display: block;
  width: 100%;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-base);
  color: var(--light);
  background: none;
  border: none;
  padding: 14px 12px;
  min-height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.mm-item:active { background: rgba(255,255,255,.05); }

/* Safe Area Insets */
body {
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* No overscroll bounce */
html, body { overscroll-behavior: none; }
html { -webkit-overflow-scrolling: touch; }

/* Touch feedback — press effect on all interactive elements */
button, .card, .day-block, .nav-btn, .nav-drop-item, .btab, .submit-btn, .log-entry-card {
  -webkit-tap-highlight-color: transparent;
}
button:active, .submit-btn:active, .card:active, .day-block:active { transform: scale(.97); transition-duration: .05s; }

/* Larger touch targets */
.nav-btn, .nav-hub-btn, .nav-drop-item { min-height: 44px; display: inline-flex; align-items: center; }

/* Noise overlay removed — cleaner look */

/* ===== AUTH SCREEN ===== */
#auth-screen {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
#auth-screen.active { display: flex; }
.auth-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(232,0,13,.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(59,130,246,.05) 0%, transparent 50%);
}
.auth-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 50px 50px;
}
.auth-box {
  background: rgba(10,10,14,.85);
  border: 1px solid rgba(255,255,255,.06);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.auth-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.auth-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 5px;
  color: var(--white);
  margin-bottom: 4px;
}
.auth-logo span { color: var(--red); }
.auth-sub {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--subtle);
  text-transform: uppercase;
  margin-bottom: 40px;
}
.auth-tabs {
  display: flex;
  margin-bottom: var(--space-8);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  overflow: hidden;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  color: var(--grey);
  border: none;
  cursor: pointer;
  transition: var(--trans);
}
.auth-tab.active { background: var(--red); color: var(--white); }
.form-group { margin-bottom: var(--space-5); }
.form-label {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  color: var(--white);
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
  border-radius: var(--radius);
  outline: none;
  transition: var(--trans);
}
.form-input, textarea, input[type="text"], input[type="number"], input[type="url"], input[type="email"], input[type="password"] { cursor: text; }
.form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,0,13,.15); }
.form-input::placeholder { color: var(--text-subtle); }
.form-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  color: var(--white);
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; /* prevents iOS zoom */
  border-radius: var(--radius);
  outline: none;
  transition: var(--trans);
  appearance: none;
  cursor: pointer;
}
.form-select:focus { border-color: var(--red); }
.form-select option { background: var(--surface-2); }

/* Buttons */
.btn {
  width: 100%;
  padding: var(--space-4);
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  letter-spacing: 3px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--trans);
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #c00010; transform: translateY(-1px); }
.btn-sm {
  width: auto;
  padding: 8px 18px;
  font-size: var(--fs-base);
  letter-spacing: 2px;
}
.auth-msg {
  font-size: var(--fs-sm);
  text-align: center;
  margin-top: 16px;
  min-height: 20px;
}
.auth-msg.error { color: var(--red); }
.auth-msg.success { color: var(--green); }

/* ===== ONBOARDING WIZARD ===== */
#onboarding-screen {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 100;
}
#onboarding-screen.active { display: flex; }
.ob-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(232,0,13,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(245,197,24,.06) 0%, transparent 50%);
}
.ob-container {
  background: rgba(17,17,17,.97);
  border: 1px solid var(--surface-3);
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 480px;
  position: relative;
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  max-height: 92vh;
  overflow-y: auto;
}
.ob-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.ob-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-xl);
  letter-spacing: 6px;
  color: var(--white);
  text-align: center;
  margin-bottom: 24px;
}
.ob-logo span { color: var(--red); }
.ob-progress { margin-bottom: var(--space-8); }
.ob-progress-bar {
  height: 3px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
.ob-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
  border-radius: var(--radius-sm);
}
.ob-step-label {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.ob-step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.ob-step.active {
  display: block;
}
.ob-step.fade-in {
  opacity: 1;
  transform: translateY(0);
}
.ob-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-xl);
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 4px;
}
.ob-sub {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 24px;
  line-height: 1.5;
}
.ob-options { display: flex; flex-direction: column; gap: 8px; }
.ob-option {
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.ob-option:hover { border-color: #444; transform: translateX(3px); }
.ob-option.selected {
  border-color: var(--red);
  background: rgba(232,0,13,.06);
}
.ob-option-icon {
  font-size: var(--fs-lg);
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.ob-option-text { flex: 1; }
.ob-option-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-md);
  color: var(--white);
  letter-spacing: 1px;
}
.ob-option-desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 2px;
}
.ob-option.selected .ob-option-desc { color: #888; }
.ob-nav {
  display: flex;
  gap: 12px;
  margin-top: var(--space-8);
}
.ob-btn-back {
  flex: 0 0 auto;
  padding: 14px 22px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-md);
  letter-spacing: 2px;
  background: transparent;
  border: 1px solid #333;
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--trans);
}
.ob-btn-back:hover { border-color: var(--white); color: var(--white); }
.ob-btn-next {
  flex: 1;
  padding: var(--space-4);
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-md);
  letter-spacing: 3px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--trans);
}
.ob-btn-next:hover { background: #c00010; }
.ob-msg {
  font-size: var(--fs-xs);
  color: var(--red);
  text-align: center;
  margin-top: 8px;
  min-height: 18px;
}
.ob-form-row {
  display: flex;
  gap: 12px;
}
.ob-form-row .form-group { flex: 1; }

/* ===== ACCOUNT PAGE ===== */
.account-wrap { max-width: 640px; margin: 0 auto; }
.account-section {
  margin-bottom: var(--space-8);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--surface-2);
}
.account-section:last-of-type { border-bottom: none; }
.account-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.account-grid .form-group { margin-bottom: 0; }

/* ===== APP LAYOUT ===== */
#app-screen { display: none; min-height: 100vh; position: relative; z-index: 1; }
#app-screen.active { display: block; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,11,.97);
  border-bottom: 1px solid var(--surface-2);
  backdrop-filter: blur(16px);
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 54px;
}
.topbar-logo, .user-pill, .share-pill {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}
.topbar-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-xl);
  letter-spacing: 3px;
  color: var(--white);
  margin-right: 24px;
  white-space: nowrap;
  cursor: pointer;
}
.topbar-logo span { color: var(--red); }
.topbar-nav {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: visible;
}
.nav-btn {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0 12px;
  height: 54px;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--trans);
  display: flex;
  align-items: center;
}
.nav-btn:hover { color: var(--light); }
.nav-btn.active { color: var(--white); border-bottom-color: var(--red); }

/* Hub dropdowns */
.nav-hub {
  position: relative;
  height: 54px;
  display: flex;
  align-items: center;
}
.nav-hub-btn {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  padding: 0 12px;
  height: 54px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: var(--trans);
}
.nav-hub-btn:hover { color: var(--hc); }
.nav-hub.active > .nav-hub-btn { color: var(--white); border-bottom-color: var(--hc); }
.nav-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(14,14,14,.98);
  border: 1px solid var(--surface-3);
  border-top: 2px solid var(--hc);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  min-width: 180px;
  padding: 6px 0;
  z-index: 200;
  backdrop-filter: blur(12px);
  animation: navDropIn .15s ease;
  visibility: hidden;
  opacity: 0;
}
.nav-hub.open > .nav-drop { visibility: visible; opacity: 1; }
@keyframes navDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-hub.open > .nav-drop { display: block; visibility: visible; opacity: 1; }
.nav-drop-item {
  display: block;
  width: 100%;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-sm);
  color: #999;
  background: none;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  transition: all .15s;
}
.nav-drop-item:hover { background: rgba(255,255,255,.08); color: var(--white); }
.nav-drop-item.active { color: var(--hc, var(--white)); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
.user-pill {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--grey);
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
}
.share-pill {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--gold);
  background: rgba(245,197,24,.1);
  border: 1px solid rgba(245,197,24,.3);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--trans);
}
.share-pill:hover { background: rgba(245,197,24,.2); }
.logout-btn {
  font-size: var(--fs-md);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-subtle);
  transition: var(--trans);
}
.logout-btn:hover { color: var(--red); }
.topbar-icon-btn {
  font-size: var(--fs-base);
  background: transparent;
  border: 1px solid var(--surface-3);
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--trans);
}
.topbar-icon-btn:hover { color: var(--white); border-color: #444; }
.topbar-icon-btn.active { color: var(--red); border-color: var(--red); }

/* ===== PAGES ===== */
.page {
  display: none;
  padding: 32px 24px;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(12px);
}
.page.active {
  display: block;
  animation: pageIn .35s ease forwards;
  pointer-events: auto;
}
.page.page-exit {
  display: block;
  pointer-events: none;
  animation: pageOut .15s ease forwards;
}
@keyframes pageIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pageOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

/* Page headers */
.page-header { margin-bottom: 40px; }
.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 6vw, 70px);
  letter-spacing: 3px;
  line-height: .95;
  color: var(--white);
}
.page-title span { color: var(--red); }
.page-title .gold { color: var(--gold); }
.page-sub {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
  margin-top: 8px;
}

/* ===== CARDS ===== */
.card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--surface-2);
  transition: var(--trans);
}
.card:hover { border-color: var(--surface-3); }
.card-top { border-top: none; padding-top: 0; }
.card-top[style*="--ca"] { border-left: 3px solid var(--ca, var(--red)); padding-left: 20px; }
.card-lbl {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-xl);
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1;
}
.card-body {
  font-size: var(--fs-base);
  color: #aaa;
  line-height: 1.8;
}
.card-body strong { color: var(--white); }

/* Stat cards */
.stat-card {
  background: transparent;
  border: none;
  padding: 20px 0;
  border-bottom: 1px solid var(--surface-2);
  position: relative;
  overflow: hidden;
  transition: var(--trans);
}
.stat-card:hover { transform: none; }
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent, var(--red));
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 4px;
}
.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
}

/* ===== GRIDS ===== */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }

/* ===== DASHBOARD ===== */
.dash-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 24px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--surface-2);
  border-radius: 0;
  position: relative;
}
.dash-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  opacity: .5;
}
.dash-hero-left { flex: 1; min-width: 0; }
.rpg-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  line-height: .9;
  letter-spacing: 2px;
  color: var(--white);
}
.rpg-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--grey);
  letter-spacing: 1.5px;
  margin-top: 6px;
}
.dash-fight-input {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* Profil: Radar links, Scores rechts */
.dash-profil {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 24px;
  background: var(--dark2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  padding: 24px;
}
.dash-radar-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#rpg-radar {
  max-width: 280px;
  width: 100%;
  height: auto;
}
.dash-scores-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Stat Bars (inside dash-scores-col) */
.rpg-stat-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rpg-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background .2s;
  cursor: default;
}
.rpg-stat:hover { background: rgba(255,255,255,.02); }
.rpg-stat-info { flex: 1; min-width: 0; }
.rpg-stat-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.rpg-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
}
.rpg-stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  color: var(--white);
  line-height: 1;
}
.rpg-stat-bar {
  height: 5px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.rpg-stat-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width .8s cubic-bezier(.25,.8,.25,1);
}

/* Benchmark section hint */
.prog-sub {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  letter-spacing: .5px;
  margin: -8px 0 16px 0;
}


/* ===== TAGS / PILLS ===== */
.tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 2px;
}
.tag-red { background: rgba(232,0,13,.15); color: #ff7a80; }
.tag-green { background: rgba(0,200,83,.12); color: #6dffa7; }
.tag-blue { background: rgba(41,121,255,.15); color: #7eb4ff; }
.tag-gold { background: rgba(245,197,24,.12); color: var(--gold); }
.tag-orange { background: rgba(255,109,0,.12); color: #ffb47a; }
.tag-purple { background: rgba(170,0,255,.12); color: #cc80ff; }

/* ===== INFO BOXES ===== */
.info-box {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 14px 0;
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  font-size: var(--fs-xs);
  line-height: 1.75;
}
.info-box > span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.info-box strong { color: var(--white); }
.info-sci { background: rgba(41,121,255,.04); border: 1px solid rgba(41,121,255,.18); color: #7ea8ff; }
.info-sci > span:first-child { background: rgba(41,121,255,.15); color: #7ea8ff; }
.info-warn { background: rgba(232,0,13,.04); border: 1px solid rgba(232,0,13,.18); color: #ff9090; }
.info-warn > span:first-child { background: rgba(232,0,13,.15); color: #ff9090; }
.info-tip { background: rgba(245,197,24,.04); border: 1px solid rgba(245,197,24,.18); color: #f0d97a; }
.info-tip > span:first-child { background: rgba(245,197,24,.15); color: #f0d97a; }
.info-ok { background: rgba(0,200,83,.04); border: 1px solid rgba(0,200,83,.18); color: #7affc0; }
.info-ok > span:first-child { background: rgba(0,200,83,.15); color: #7affc0; }

/* ===== EXERCISE CARDS ===== */
.ex-card {
  background: var(--dark2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--trans);
}
.ex-card:hover { border-color: var(--surface-3); }
.ex-top {
  padding: 18px 18px 14px;
  border-left: 3px solid var(--ec, var(--red));
}
/* Exercise card image strip */
.ex-card-img {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
  background: var(--surface-0);
}
.ex-card-img img.ex-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(40%) brightness(.7);
  transition: filter .3s, transform .3s;
}
.ex-card:hover .ex-card-img img.ex-icon-img {
  filter: grayscale(0%) brightness(.85);
  transform: scale(1.05);
}
/* Fallback wenn Bild nicht lädt: Bildbereich ausblenden */
.ex-card-img.ex-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
  min-height: 120px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--surface-3);
  letter-spacing: 2px;
}
.ex-card-img.ex-icon-fallback::after {
  content: attr(data-fallback);
}

/* Exercise detail page photos */
.ex-detail-photos { margin-bottom: 24px; width: 100%; }
.ex-photo-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-sm);
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-align: center;
}
.ex-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ex-photo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-0);
  position: relative;
}
.ex-photo-frame img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: grayscale(30%) brightness(.75);
  transition: filter .3s;
}
.ex-photo-frame:hover img {
  filter: grayscale(0%) brightness(.9);
}
.ex-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 0;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  color: #888;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
}
.ex-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: #1c1c1c;
  line-height: 1;
  float: right;
  margin-left: 10px;
}
.ex-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 3px;
}
.ex-muscle {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 1px;
  color: var(--grey);
  margin-bottom: 10px;
}
.ex-desc {
  font-size: var(--fs-xs);
  color: #888;
  line-height: 1.7;
}
.ex-bot {
  padding: 12px 18px;
  background: var(--surface-2);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ex-s {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}
.ex-s strong { color: var(--white); }
.ex-tip {
  padding: 10px 18px;
  background: rgba(245,197,24,.04);
  border-top: 1px solid rgba(245,197,24,.1);
  font-size: var(--fs-xs);
  color: #888;
  line-height: 1.6;
}
.ex-tip strong { color: var(--gold); }

/* ===== PROGRESS BARS ===== */
.prog-section {
  background: var(--dark2);
  border: 1px solid var(--surface-3);
  padding: var(--space-8);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.prog-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.prog-item { margin-bottom: 16px; }
.prog-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.prog-name { font-size: var(--fs-sm); color: var(--light); }
.prog-val {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--grey);
}
.prog-bar {
  height: 4px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width .6s ease;
}
.edit-icon {
  font-size: var(--fs-sm);
  cursor: pointer;
  color: var(--text-subtle);
  transition: var(--trans);
}
.edit-icon:hover { color: var(--red); }

/* ===== TABLES ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.data-table th {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  padding: 11px 13px;
  text-align: left;
  border-bottom: 2px solid var(--surface-3);
}
.data-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--surface-1);
  vertical-align: top;
}
.data-table tr:hover td { background: rgba(255,255,255,.008); }
.data-table td:first-child { font-weight: 600; color: var(--white); }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), var(--gold), var(--green));
}
.tl-item { position: relative; margin-bottom: 24px; }
.tl-dot {
  position: absolute;
  left: -32px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: var(--black);
  top: 3px;
}
.tl-time {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.tl-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}
.tl-body { font-size: var(--fs-xs); color: #888; line-height: 1.7; }

/* ===== CALCULATOR ===== */
.calc-box {
  background: var(--dark2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  padding: var(--space-8);
}
.calc-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.calc-group label {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-2);
}
.calc-group input, .calc-group select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  color: var(--white);
  padding: 10px 13px;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  outline: none;
  transition: var(--trans);
}
.calc-group input:focus, .calc-group select:focus { border-color: var(--red); }
.calc-group select option { background: var(--surface-2); }
/* .calc-btn inherits from button system */
.calc-btn { letter-spacing: 3px; }
.calc-results {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.calc-results.visible { opacity: 1; transform: translateY(0); }
.calc-result-card {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
}
.calc-result-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  line-height: 1;
  color: var(--white);
}
.calc-result-unit {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--grey);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.calc-result-desc { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 5px; }
.calc-result-val.protein { color: var(--blue); }
.calc-result-val.carbs { color: var(--green); }
.calc-result-val.fat { color: var(--orange); }
.calc-save-row { grid-column: 1 / -1; text-align: center; margin-top: 12px; }
.calc-meal-wrap { background: var(--dark2); border: 1px solid var(--dark3); border-radius: var(--radius); padding: 20px; }
.calc-meal-title { font-family: 'Bebas Neue', sans-serif; font-size: var(--fs-md); letter-spacing: 2px; color: var(--white); margin-bottom: var(--space-4); }
.calc-meal-list { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-xs); }
.calc-meal-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; padding: 8px; background: var(--dark); border-radius: var(--radius-sm); }
.calc-meal-time { color: var(--light); }
.calc-meal-p { color: var(--blue); }
.calc-meal-k { color: var(--green); }
.calc-meta { margin-bottom: 12px; font-family: 'Space Mono', monospace; font-size: var(--fs-xs); color: var(--text-muted); }
.calc-zone-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px; background: var(--dark2); border-radius: var(--radius-sm); margin-bottom: 6px; }
.calc-zone-bpm { min-width: 90px; font-size: var(--fs-xs); font-weight: 700; font-family: 'Space Mono', monospace; }
.calc-zone-name { font-size: var(--fs-xs); color: var(--white); font-weight: 600; }
.calc-zone-desc { font-size: var(--fs-xs); color: var(--text-muted); }
.calc-cut-box { background: var(--dark2); border: 1px solid var(--dark3); border-radius: var(--radius); padding: 20px; }
.calc-cut-status { font-family: 'Bebas Neue', sans-serif; font-size: var(--fs-lg); margin-bottom: 8px; }
.calc-cut-plan { font-size: var(--fs-sm); color: var(--light); line-height: 1.8; }
.calc-cut-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.calc-cut-stat { text-align: center; padding: 12px; background: var(--dark); border-radius: var(--radius-sm); }
.calc-cut-stat-val { font-family: 'Bebas Neue', sans-serif; font-size: var(--fs-xl); color: var(--white); }
.calc-cut-stat-label { font-size: var(--fs-xs); color: var(--text-muted); }
.calc-rm-hero { margin-bottom: 16px; }
.calc-rm-title { font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: var(--white); }
.calc-rm-title span { color: var(--orange); }
.calc-rm-sub { font-family: 'Space Mono', monospace; font-size: var(--fs-xs); color: var(--text-muted); }
.calc-rm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px; background: var(--dark2); border-radius: var(--radius-sm); margin-bottom: 4px; }
.calc-rm-val { min-width: 60px; font-family: 'Bebas Neue', sans-serif; font-size: var(--fs-lg); color: var(--white); }
.calc-rm-pct { font-family: 'Space Mono', monospace; font-size: var(--fs-xs); }
.calc-rm-label { font-size: var(--fs-xs); color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--surface-2); }
.faq-q {
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--white);
  transition: var(--trans);
  user-select: none;
}
.faq-q:hover { color: var(--red); }
.faq-q:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.faq-arr {
  font-size: var(--fs-base);
  color: var(--grey);
  transition: transform .22s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-arr { transform: rotate(180deg); color: var(--red); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease-out;
  font-size: var(--fs-sm);
  color: #999;
  line-height: 1.85;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > * { overflow: hidden; }
.faq-a-inner { padding: 0 0 18px; }
.faq-a strong { color: var(--white); }

/* ===== WOCHENPLAN ===== */
.week-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
/* .wk-btn inherits from button system (secondary) */
.wk-btn { font-family: 'Space Mono', monospace; font-size: var(--fs-xs); letter-spacing: 2px; text-transform: uppercase; }
.wk-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }
.week-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 3fr 1fr 1fr 1fr;
  gap: 4px;
  margin-bottom: 20px;
}
.week-grid[data-active="0"] { grid-template-columns: 3fr 1fr 1fr 1fr 1fr 1fr 1fr; }
.week-grid[data-active="1"] { grid-template-columns: 1fr 3fr 1fr 1fr 1fr 1fr 1fr; }
.week-grid[data-active="2"] { grid-template-columns: 1fr 1fr 3fr 1fr 1fr 1fr 1fr; }
.week-grid[data-active="3"] { grid-template-columns: 1fr 1fr 1fr 3fr 1fr 1fr 1fr; }
.week-grid[data-active="4"] { grid-template-columns: 1fr 1fr 1fr 1fr 3fr 1fr 1fr; }
.week-grid[data-active="5"] { grid-template-columns: 1fr 1fr 1fr 1fr 1fr 3fr 1fr; }
.week-grid[data-active="6"] { grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 3fr; }
.day-col {
  background: var(--dark2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
}
/* Collapsed days: compact blocks */
.day-col .day-blocks { display: flex; }
.day-col .add-block-btn { display: none; }
.day-col.day-active .add-block-btn { display: block; }
.day-col:not(.day-active) .day-block {
  font-size: var(--fs-xs);
  padding: 3px 6px;
  line-height: 1.2;
}
.day-col:not(.day-active) .day-block .block-hint,
.day-col:not(.day-active) .day-block .ex-chip,
.day-col:not(.day-active) .day-block .block-check-btn,
.day-col:not(.day-active) .day-block .block-saeulen-dots { display: none; }
.day-col:not(.day-active) .day-blocks { gap: 2px; padding: 4px; }
/* Active day: bigger blocks */
.day-col.day-active .day-blocks { gap: 6px; padding: 8px 10px; }
.day-header { cursor: pointer; }
.day-col.fight-day { border-color: rgba(232,0,13,.4); }
.day-header {
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.day-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-md);
  letter-spacing: 1px;
  color: var(--white);
}
.day-date {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  letter-spacing: 1px;
}
.day-blocks {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.day-block {
  font-size: var(--fs-xs);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.3;
  position: relative;
  cursor: pointer;
  transition: var(--trans);
  position: relative;
}
.day-block:hover { filter: brightness(1.2); }
.day-block.strength { background: rgba(41,121,255,.18); color: #7eb4ff; border-left: 2px solid var(--blue); }
.day-block.cardio { background: rgba(0,200,83,.15); color: #6dffa7; border-left: 2px solid var(--green); }
.day-block.boxing { background: rgba(232,0,13,.18); color: #ff7a80; border-left: 2px solid var(--red); }
.day-block.recovery { background: rgba(255,109,0,.15); color: #ffb47a; border-left: 2px solid var(--orange); }
.day-block.meta { background: rgba(245,197,24,.12); color: #f5c518; border-left: 2px solid var(--gold); }
.day-block.fight { background: rgba(232,0,13,.35); color: var(--white); font-weight: 700; border-left: 2px solid var(--red); }
.day-block.off { background: var(--surface-1); color: var(--text-subtle); border-left: 2px solid var(--surface-3); }
.day-block.block-done { opacity: .45; transition: opacity .3s ease; }
.day-block.block-done::after {
  content: 'ERLEDIGT';
  position: absolute; top: 4px; right: 6px;
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs); letter-spacing: 1px;
  color: var(--green); opacity: .8;
}
@keyframes blockComplete {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); background: rgba(0,200,83,.1); }
  100% { transform: scale(1); }
}
.day-block.just-completed {
  animation: blockComplete .4s ease;
}
@keyframes blockUndone {
  0% { transform: scale(1); }
  40% { transform: scale(0.97); background: rgba(232,0,13,.06); }
  100% { transform: scale(1); }
}
.day-block.just-undone {
  animation: blockUndone .3s ease;
}
.block-check-btn {
  background: none; border: 1.5px solid #333; color: var(--text-muted);
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: var(--radius-sm);
  font-size: var(--fs-xs); cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: var(--trans); flex-shrink: 0; padding: 12px;
}
.block-check-btn:hover { border-color: var(--green); color: var(--green); }
.block-check-btn.checked { border-color: var(--green); background: var(--green); color: var(--black); font-weight: 700; }
.day-col.day-today {
  border-color: rgba(245,197,24,.6);
}
.day-col.day-today .day-header {
  background: rgba(245,197,24,.1);
}
.day-col.day-active {
  border-color: rgba(245,197,24,.5);
  box-shadow: 0 0 20px rgba(245,197,24,.08);
}
.day-col.day-active .day-header {
  background: rgba(245,197,24,.08);
  padding: 14px 12px 10px;
}
.day-col.day-active .day-name {
  font-size: var(--fs-lg);
}
.day-col.day-active .day-block {
  font-size: var(--fs-xs);
  padding: 8px 10px;
}
/* Collapsed: vertical text for day name */
.day-col:not(.day-active) .day-name {
  font-size: var(--fs-sm);
}
.day-col:not(.day-active) .day-header > div:last-child {
  display: none;
}
.ex-chip {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: .5px;
  padding: 6px 12px;
  min-height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(41,121,255,.2);
  color: #7eb4ff;
  cursor: pointer;
  transition: var(--trans);
  border: 1px solid rgba(41,121,255,.25);
}
.ex-chip:hover {
  background: rgba(41,121,255,.4);
  color: var(--white);
  transform: translateY(-1px);
}
.add-block-btn {
  margin: 6px 8px 8px;
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 1px;
  color: var(--text-subtle);
  background: transparent;
  border: 1px dashed var(--surface-3);
  width: calc(100% - 16px);
  padding: 10px 12px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--trans);
  text-align: center;
}
.add-block-btn:hover { border-color: #444; color: var(--text-muted); }

/* ===== TRAINING LOG ===== */
.log-form-card {
  background: var(--dark2);
  border: 1px solid var(--surface-3);
  padding: var(--space-8);
  border-radius: var(--radius);
  margin-bottom: var(--space-8);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }
.form-group-inline label {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.form-group-inline input,
.form-group-inline select,
.form-group-inline textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  color: var(--white);
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  outline: none;
  transition: var(--trans);
  resize: vertical;
}
.form-group-inline input:focus,
.form-group-inline select:focus,
.form-group-inline textarea:focus { border-color: var(--red); }
.form-group-inline select option { background: var(--surface-2); }
/* .submit-btn inherits from button system */
.submit-btn { letter-spacing: 3px; }

/* Log entries */
.log-entries { display: flex; flex-direction: column; gap: 10px; }
.log-entry-card {
  background: var(--dark2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--trans);
}
.log-entry-card:hover { border-color: var(--surface-3); }
.log-entry-date {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  line-height: 1;
  color: var(--white);
  text-align: center;
  min-width: 50px;
}
.log-entry-month {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--grey);
  text-align: center;
  letter-spacing: 1px;
}
.log-entry-body { flex: 1; }
.log-entry-type {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.log-entry-notes { font-size: var(--fs-sm); color: #aaa; margin-top: 6px; }
.log-entry-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.delete-btn {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: var(--fs-md);
  transition: var(--trans);
  flex-shrink: 0;
}
.delete-btn:hover { color: var(--red); }

/* ===== FIGHT COUNTDOWN ===== */
.fight-countdown {
  background: linear-gradient(135deg, rgba(232,0,13,.08), rgba(245,197,24,.04));
  border: 1px solid rgba(232,0,13,.25);
  border-radius: var(--radius);
  padding: var(--space-8);
  margin-bottom: 24px;
  text-align: center;
}
.fight-countdown-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 80px;
  line-height: 1;
  color: var(--white);
}
.fight-countdown-label {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 3px;
  color: var(--grey);
  text-transform: uppercase;
  margin-top: 4px;
}
.phase-badge {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  letter-spacing: 3px;
  padding: 8px 20px;
  border-radius: var(--radius);
  margin-top: 16px;
}
.phase-aufbau { background: rgba(0,200,83,.15); color: var(--green); border: 1px solid rgba(0,200,83,.3); }
.phase-steigerung { background: rgba(245,197,24,.15); color: var(--gold); border: 1px solid rgba(245,197,24,.3); }
.phase-peak { background: rgba(255,109,0,.15); color: var(--orange); border: 1px solid rgba(255,109,0,.3); }
.phase-taper { background: rgba(41,121,255,.15); color: var(--blue); border: 1px solid rgba(41,121,255,.3); }
.phase-kampf { background: rgba(232,0,13,.2); color: var(--red); border: 1px solid rgba(232,0,13,.4); }

/* ===== HRV AMPEL ===== */
.hrv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  margin-bottom: 24px;
}
.hrv-box {
  padding: 24px;
  text-align: center;
}
.hrv-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 auto 14px;
}
.hrv-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  letter-spacing: 2px;
}
.hrv-range {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 12px;
}
.hrv-desc { font-size: var(--fs-xs); color: #aaa; }

/* ===== SECTION HEADERS (guide-style) ===== */
.section-header { margin-bottom: 32px; }
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 4px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 2px;
  line-height: .95;
  color: var(--white);
}
.section-title span { color: var(--red); }
.section-sub {
  font-size: var(--fs-sm);
  color: #777;
  margin-top: 12px;
  max-width: 680px;
  line-height: 1.75;
}

/* ===== CATEGORY HEADERS ===== */
.cat-header {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-xl);
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn .2s ease forwards;
}
.modal-overlay.closing {
  display: flex;
  animation: fadeOut .2s ease forwards;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeOut { from { opacity:1; } to { opacity:0; } }
.modal-overlay.active .modal {
  animation: modalSlideIn .3s ease;
}
.modal-overlay.closing .modal {
  animation: modalSlideOut .2s ease forwards;
}
@keyframes modalSlideIn { from { opacity:0; transform:translateY(20px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes modalSlideOut { from { opacity:1; transform:translateY(0) scale(1); } to { opacity:0; transform:translateY(10px) scale(.97); } }
.modal {
  background: var(--dark2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-xl);
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 20px;
}
.modal-close {
  float: right;
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-size: var(--fs-lg);
  cursor: pointer;
  transition: var(--trans);
}
.modal-close:hover { color: var(--red); }

/* ===== PHASE CYCLE VISUAL ===== */
.phase-cycle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  margin-bottom: 32px;
}
.phase-block {
  padding: var(--space-6);
  transition: var(--trans);
}
.phase-block.current { outline: 2px solid var(--gold); outline-offset: -2px; }
.phase-week {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.phase-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-xl);
  color: var(--white);
  margin-bottom: 12px;
}
.phase-bar {
  height: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.phase-details {
  font-size: var(--fs-xs);
  color: #888;
  line-height: 2;
}

/* ===== TOOLTIP (i) SYSTEM ===== */
.tt {
  position: relative;
  display: inline;
  color: var(--blue);
  cursor: help;
  border-bottom: 1px dashed rgba(41,121,255,.45);
}
.tt:hover { color: var(--white); border-bottom-color: var(--white); }
.tt .tt-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  transform: none;
  background: var(--surface-2);
  border: 1px solid #333;
  color: #ccc;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-xs);
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: var(--radius);
  width: max-content;
  max-width: 300px;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  transition: opacity .15s ease, visibility .15s ease;
  pointer-events: none;
}
.tt .tt-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 16px;
  transform: none;
  border: 6px solid transparent;
  border-top-color: #333;
}
.tt:hover .tt-text { visibility: visible; opacity: 1; }
/* Right-align tooltips near right edge */
.tt .tt-text.tt-left { left: auto; right: 0; transform: none; }
.tt .tt-text.tt-left::after { left: auto; right: 12px; transform: none; }

/* ===== CLUSTER HEADERS ===== */
.cluster-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 40px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface-2);
}
.cluster-header:first-of-type { margin-top: 0; }
.cluster-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-xl);
  letter-spacing: 2px;
  color: var(--white);
}
.cluster-sub {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
}

/* ===== BENCHMARK CARDS ===== */
.bench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.bench-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 18px 0 18px 16px;
  border-left: 3px solid var(--bc, var(--red));
}
.bench-name {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.bench-current {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--white);
  line-height: 1;
}
.bench-target {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 4px;
}
.bench-bar {
  height: 4px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  margin-top: 10px;
  overflow: hidden;
}
.bench-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width .6s ease;
}
.bench-input {
  width: 80px;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  color: var(--white);
  padding: 6px 10px;
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  border-radius: var(--radius-sm);
  outline: none;
  margin-top: 8px;
}
.bench-input:focus { border-color: var(--red); }

/* ===== TESTS PAGE — NEW LAYOUT ===== */
.tests-wrap { max-width: 900px; margin: 0 auto; }
.tests-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
  padding: var(--space-8);
  background: linear-gradient(135deg, rgba(17,17,17,.95), rgba(25,25,25,.9));
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-lg);
}
.tests-radar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tests-overview { display: flex; flex-direction: column; gap: 10px; }
.tests-overall {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--surface-3);
  margin-bottom: 4px;
}
.tests-overall-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  line-height: 1;
  background: linear-gradient(135deg, var(--red), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tests-overall-label {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  color: var(--text-muted);
}
.tests-axis-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.tests-axis-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tests-axis-label {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 1px;
  color: #888;
  flex: 1;
}
.tests-axis-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  line-height: 1;
  min-width: 48px;
  text-align: right;
}
.tests-axis-bar {
  width: 100%;
  height: 3px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 2px;
}
.tests-axis-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width .6s ease;
}
.tests-weakest {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(232,0,13,.06);
  border: 1px solid rgba(232,0,13,.15);
  border-radius: var(--radius);
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: #999;
  letter-spacing: 1px;
}
.tests-weakest strong { color: var(--red); }
.tests-cluster {
  margin-bottom: 32px;
}
.tests-cluster-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--surface-2);
}
.tests-cluster-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  letter-spacing: 3px;
}
.tests-cluster-avg {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 1px;
  margin-left: auto;
}
.test-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--surface-2);
  border-radius: 0;
  padding: 20px 0;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  transition: border-color .2s;
}
.test-card:hover { border-color: var(--surface-3); }
.test-card-left { min-width: 0; }
.test-card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.test-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  letter-spacing: 1px;
  color: var(--white);
}
.test-card-level {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 1px;
}
.test-card-how-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.test-card-how {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
.how-toggle {
  background: none;
  border: 1px solid var(--surface-3);
  color: var(--gold);
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 1px;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.how-toggle:hover { border-color: var(--gold); background: rgba(245,197,24,0.06); }
.how-toggle.active { border-color: var(--gold); color: var(--white); background: rgba(245,197,24,0.1); }

/* Animated how-to panel */
.how-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 6px;
}
.how-panel.open {
  margin-top: 8px;
  margin-bottom: 12px;
}
.how-step {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-2);
  opacity: 0;
  transform: translateY(8px);
  animation: howStepIn .35s ease forwards;
}
.how-panel:not(.open) .how-step {
  animation: none;
  opacity: 0;
}
@keyframes howStepIn {
  to { opacity: 1; transform: translateY(0); }
}
.how-step:last-child { border-bottom: none; }
.how-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-sm);
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}
.how-step-body { min-width: 0; }
.how-step-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-base);
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 2px;
}
.how-step-desc {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: #777;
  line-height: 1.6;
}
.test-card-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.test-card-bar {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.test-card-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width .6s ease;
}
.test-card-pct {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  min-width: 36px;
  text-align: right;
}
.test-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.test-card-meta-item {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
.test-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 100px;
}
.test-card-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  line-height: 1;
  color: var(--white);
}
.test-card-unit {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: -4px;
}
.test-card-input {
  width: 100px;
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  color: var(--white);
  padding: 7px 10px;
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  border-radius: var(--radius-sm);
  outline: none;
  text-align: right;
}
.test-card-input:focus { border-color: var(--red); }
.test-card-input::placeholder { color: var(--text-subtle); }

/* ===== MENTAL PAGE ===== */

/* Hero quote */
.mt-hero {
  text-align: center;
  padding: 16px 0 40px;
}
.mt-hero-quote {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 3px;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}
.mt-hero-quote span { color: var(--red); }
.mt-hero-attr {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  letter-spacing: 2px;
}

/* Alter Ego Card */
.mt-ego-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.mt-ego-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}
.mt-ego-head {
  margin-bottom: 20px;
}
.mt-ego-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  letter-spacing: 2px;
  color: var(--white);
}
.mt-ego-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 6px;
}
.mt-ego-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.mt-ego-field label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mt-ego-field input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--white);
  font-size: var(--fs-sm);
  font-family: inherit;
  transition: border-color .2s;
}
.mt-ego-field input:focus {
  outline: none;
  border-color: var(--red);
}
.mt-ego-field input::placeholder { color: var(--text-subtle); }
.mt-ego-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 24px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-base);
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: opacity .2s;
}
.mt-ego-save:hover { opacity: .85; }
.mt-ego-msg {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--green);
  margin-left: var(--space-4);
}
.mt-ego-saved {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 14px 18px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--red);
}
.mt-ego-saved-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  color: var(--red);
  letter-spacing: 1px;
}
.mt-ego-saved-traits {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Accordion list */
.mt-acc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mt-acc {
  border-bottom: 1px solid var(--surface-2);
}
.mt-acc-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  transition: background .2s;
  user-select: none;
}
.mt-acc-head:hover { background: rgba(255,255,255,.03); }
.mt-acc-left { flex: 1; display: flex; align-items: baseline; gap: var(--space-4); }
.mt-acc-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-xl);
  line-height: 1;
  color: var(--mc);
  opacity: .25;
  min-width: 32px;
}
.mt-acc-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  letter-spacing: 1.5px;
  color: var(--white);
}
.mt-acc-sub {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  margin-left: 8px;
}
.mt-acc-arrow {
  font-size: var(--fs-md);
  color: var(--text-subtle);
  transition: transform .3s ease;
}
.mt-acc.open .mt-acc-arrow { transform: rotate(180deg); color: var(--mc); }
.mt-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease-out;
}
.mt-acc.open .mt-acc-body {
  grid-template-rows: 1fr;
}
.mt-acc-body > * {
  overflow: hidden;
}
.mt-acc-inner {
  padding: 8px 4px 32px 46px;
}
.mt-acc-intro {
  font-size: var(--fs-base);
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 720px;
}
.mt-acc-intro strong { color: var(--white); }
.mt-acc-aside {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.7;
  padding: 12px 16px;
  border-left: 2px solid var(--mc);
  margin-bottom: 24px;
  max-width: 640px;
}
.mt-acc-steps { margin: 0; padding: 0; list-style: none; }
.mt-acc-step {
  display: flex;
  gap: var(--space-4);
  padding: 14px 0;
  border-bottom: 1px solid var(--surface-2);
}
.mt-acc-step:last-child { border-bottom: none; }
.mt-acc-step-n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-md);
  color: var(--mc);
  opacity: .5;
  min-width: 20px;
  padding-top: 1px;
}
.mt-acc-step-t {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-base);
  letter-spacing: .5px;
  color: var(--white);
  margin-bottom: 3px;
}
.mt-acc-step-d {
  font-size: var(--fs-sm);
  color: #777;
  line-height: 1.7;
}

/* Daily protocol */
.mt-daily {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mt-slot {
  background: var(--surface-0);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  position: relative;
  overflow: hidden;
}
.mt-slot::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--mc);
}
.mt-slot-time {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-base);
  letter-spacing: 1px;
  color: var(--mc);
  margin-bottom: 8px;
}
.mt-slot-body {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.9;
}



/* ===== PROGRESSIVE DISCLOSURE SECTIONS ===== */
.pd-section {
  border-bottom: 1px solid var(--surface-2);
  margin-bottom: 0;
}
.pd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  cursor: pointer;
  transition: background .2s;
  user-select: none;
}
.pd-head:hover { background: rgba(255,255,255,.03); }
.pd-head-left {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  flex: 1;
}
.pd-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  letter-spacing: 1.5px;
  color: var(--white);
}
.pd-hint {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  margin-left: 8px;
}
.pd-arrow {
  font-size: var(--fs-base);
  color: var(--text-subtle);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.pd-section.open .pd-arrow { transform: rotate(180deg); color: var(--red); }
.pd-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease-out;
}
.pd-section.open .pd-body,
.pd-section.open-default .pd-body {
  grid-template-rows: 1fr;
}
.pd-body > * {
  overflow: hidden;
}
.pd-inner {
  padding: 0 4px 28px;
}

/* ===== SEARCH ===== */
.search-container { position: relative; }
.search-input {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  color: var(--white);
  padding: 10px 12px;
  min-height: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-xs);
  border-radius: var(--radius-sm);
  width: 160px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s, width .2s;
}
.search-input:focus { border-color: var(--red); width: 240px; }
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-md);
  max-height: 400px;
  overflow-y: auto;
  width: 350px;
  z-index: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.search-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--surface-2);
  cursor: pointer;
  transition: background .15s;
}
.search-item:hover { background: var(--surface-2); }
.search-item-title { font-size: var(--fs-sm); color: var(--white); font-weight: 600; }
.search-item-ctx { font-size: var(--fs-xs); color: var(--text-muted); font-family: 'Space Mono', monospace; margin-top: 2px; }

/* ===== SÄULEN INTRO ===== */
.saeulen-intro { margin-bottom: 60px; }

/* Hero */
.si-hero { text-align: center; padding: 60px 0 50px; }
.si-hero-label {
  font-family: 'Space Mono', monospace; font-size: var(--fs-xs); letter-spacing: 6px;
  color: var(--red); margin-bottom: 16px; text-transform: uppercase;
}
.si-hero-title {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(32px, 5vw, 56px);
  color: var(--white); letter-spacing: 3px; line-height: 1.1;
}
.si-hero-title span { color: var(--red); }

/* Steps */
.si-narrative { max-width: 720px; margin: 0 auto; }
.si-step {
  display: flex; gap: 24px; padding: 32px 0;
  border-bottom: 1px solid var(--surface-2);
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.si-step.si-visible { opacity: 1; transform: translateY(0); }
.si-step-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: #1a1a1a;
  line-height: 1; min-width: 56px; user-select: none;
}
.si-visible .si-step-num { color: var(--text-subtle); }
.si-step-body { flex: 1; }
.si-step-title {
  font-family: 'Bebas Neue', sans-serif; font-size: var(--fs-lg);
  color: var(--white); letter-spacing: 1px; margin-bottom: 10px;
}
.si-step-text {
  font-size: var(--fs-sm); color: #999; line-height: 1.85;
}
.si-step-text strong { color: var(--white); font-weight: 600; }

/* Barrel Visualization */
.si-barrel-wrap {
  margin: 48px auto; text-align: center;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.si-barrel-wrap.si-visible { opacity: 1; transform: translateY(0); }
.si-barrel {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 4px; height: 200px; margin: 0 auto 20px; max-width: 600px;
  padding: 0 20px; position: relative;
}
.si-barrel-stave {
  flex: 1; max-width: 60px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--red); position: relative;
  height: 0; transition: height .5s cubic-bezier(.22,.68,.36,1);
  display: flex; align-items: flex-end; justify-content: center;
  overflow: visible;
}
.si-barrel-stave span {
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  font-family: 'Space Mono', monospace; font-size: var(--fs-xs); letter-spacing: 0.5px;
  color: var(--text-muted); white-space: nowrap; text-transform: uppercase;
}
.si-stave-weak { background: var(--red) !important; }
.si-barrel-stave:not(.si-stave-weak) { background: var(--surface-3); }

/* Animate barrel staves in */
.si-barrel-animate .si-barrel-stave {
  height: 160px;
  transition-delay: calc(var(--si) * 80ms);
}
.si-barrel-animate .si-stave-weak {
  height: 70px;
  transition-delay: calc(var(--si) * 80ms);
}

/* Water level line */
.si-barrel-animate::after {
  content: '';
  position: absolute; left: 0; right: 0;
  bottom: 70px; height: 2px;
  background: var(--red);
  opacity: 0;
  animation: si-water-fade 0.5s ease 1.2s forwards;
}
@keyframes si-water-fade { to { opacity: .6; } }

.si-barrel-caption {
  font-size: var(--fs-xs); color: var(--text-muted); margin-top: 32px; line-height: 1.6;
}

/* Cluster Preview Cards */
.si-clusters {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 40px auto; max-width: 720px;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.si-clusters.si-visible { opacity: 1; transform: translateY(0); }
.si-cluster-card {
  background: var(--surface-0); border: 1px solid var(--surface-2); border-radius: var(--radius-md);
  padding: 16px; border-top: 3px solid var(--scc);
  transition: border-color .2s;
}
.si-cluster-card:hover { border-color: var(--scc); }
.si-cluster-name {
  font-family: 'Bebas Neue', sans-serif; font-size: var(--fs-md);
  color: var(--scc); letter-spacing: 2px;
}
.si-cluster-desc {
  font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px; line-height: 1.5;
}
.si-cluster-count {
  font-family: 'Space Mono', monospace; font-size: var(--fs-xs);
  color: var(--text-subtle); letter-spacing: 1px; margin-top: 10px;
}

/* Scroll CTA divider */
.si-scroll-cta {
  display: flex; align-items: center; gap: 20px;
  margin: 60px 0 40px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.si-scroll-cta.si-visible { opacity: 1; transform: translateY(0); }
.si-scroll-line { flex: 1; height: 1px; background: var(--surface-3); }
.si-scroll-text {
  font-family: 'Bebas Neue', sans-serif; font-size: var(--fs-lg);
  color: var(--red); letter-spacing: 4px; white-space: nowrap;
}


/* ===== SÄULEN CARDS (Redesigned) ===== */
.saeulen-cards-wrap { max-width: 860px; margin: 0 auto; }

.sc-cluster-head { margin: 48px 0 20px; }
.sc-cluster-head:first-child { margin-top: 0; }
.sc-cluster-line { width: 32px; height: 3px; border-radius: var(--radius-sm); margin-bottom: 10px; }
.sc-cluster-label {
  font-family: 'Bebas Neue', sans-serif; font-size: var(--fs-xl);
  letter-spacing: 3px; line-height: 1;
}
.sc-cluster-sub {
  font-family: 'Space Mono', monospace; font-size: var(--fs-xs);
  color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 4px;
}

.sc-grid { display: flex; flex-direction: column; gap: 10px; }

.sc-card {
  display: flex; gap: 0; background: var(--surface-0);
  border: 1px solid var(--surface-2); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color .2s, background .2s;
  overflow: hidden;
}
.sc-card:hover { border-color: #333; background: var(--surface-1); }

.sc-card-left {
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px 16px; min-width: 56px;
}
.sc-card-num {
  font-family: 'Bebas Neue', sans-serif; font-size: var(--fs-xl);
  line-height: 1; opacity: .4;
}
.sc-card:hover .sc-card-num { opacity: .8; }

.sc-card-body { flex: 1; padding: 18px 20px 16px 0; }
.sc-card-cat {
  font-family: 'Space Mono', monospace; font-size: var(--fs-xs);
  color: var(--text-subtle); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px;
}
.sc-card-title {
  font-family: 'Bebas Neue', sans-serif; font-size: var(--fs-lg);
  color: var(--white); letter-spacing: 1.5px; line-height: 1.1;
}
.sc-card-desc {
  font-size: var(--fs-xs); color: #777; line-height: 1.6;
  margin-top: 8px; max-width: 600px;
}
.sc-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; gap: 12px;
}
.sc-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-card-arrow {
  font-family: 'Bebas Neue', sans-serif; font-size: var(--fs-lg);
  color: var(--text-subtle); transition: color .2s, transform .2s;
  flex-shrink: 0; padding-right: 4px;
}
.sc-card:hover .sc-card-arrow { color: var(--text-muted); transform: translateX(3px); }


/* Legacy compat */
.saeule-card { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.saeule-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.4); }

/* ===== DETAIL PAGES (Säulen + Übungen) ===== */
/* .back-link inherits from button system (ghost) */
.back-link { font-family: 'Space Mono', monospace; letter-spacing: 1px; }
.back-link:hover { border-color: var(--red); }
.detail-content { max-width: 900px; }
.detail-section { margin-bottom: 32px; }
.detail-section-title {
  font-family: 'Bebas Neue', sans-serif; font-size: var(--fs-lg); color: var(--red);
  letter-spacing: 2px; margin-bottom: var(--space-4); padding-bottom: 8px; border-bottom: 1px solid var(--surface-3);
}
.detail-text { font-size: var(--fs-sm); color: #aaa; line-height: 1.8; }
.link-card {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface-2); border: 1px solid var(--surface-3); border-radius: var(--radius-md);
  padding: 16px 20px; cursor: pointer; width: 100%; transition: all .15s;
  font-size: var(--fs-sm); color: var(--white); font-family: 'DM Sans', sans-serif;
}
.link-card:hover { border-color: var(--red); background: var(--surface-2); }

/* ===== EXERCISE DETAIL PAGE ===== */
.ex-detail-page { display: grid; grid-template-columns: 1fr 240px; gap: 40px; }
.ex-detail-left {}
.ex-detail-right {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  position: sticky; top: 80px; align-self: start;
}
.ex-detail-title { font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: var(--white); letter-spacing: 2px; }
.ex-detail-subtitle { font-family: 'Space Mono', monospace; font-size: var(--fs-xs); color: var(--text-muted); letter-spacing: 2px; margin-bottom: 20px; }
.ex-detail-section { margin-bottom: 24px; }
.ex-detail-section-title { font-family: 'Bebas Neue', sans-serif; font-size: var(--fs-md); color: var(--red); letter-spacing: 1px; margin-bottom: 10px; }
.ex-detail-text { font-size: var(--fs-sm); color: #aaa; line-height: 1.8; }
.muscle-svg { width: 200px; height: auto; }
.muscle-svg .muscle-base { fill: #161616; stroke: #252525; stroke-width: 0.6; transition: fill .3s; }
.muscle-svg .muscle-active { stroke: rgba(255,255,255,.15); stroke-width: 0.5; opacity: 0.85; }
.muscle-label { font-family: 'Bebas Neue', sans-serif; font-size: var(--fs-sm); color: var(--text-muted); text-align: center; letter-spacing: 2px; }
.muscle-tag {
  font-family: 'Space Mono', monospace; font-size: var(--fs-xs);
  padding: 3px 8px; border-radius: var(--radius-sm); letter-spacing: 0.5px;
}

/* ===== ROUTINE TIMELINE ===== */
.routine-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: 8px 0;
  border-bottom: 1px solid var(--surface-2);
}
.routine-time {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--gold);
  min-width: 50px;
  flex-shrink: 0;
}
.routine-label { font-size: var(--fs-sm); color: var(--light); }
.routine-now { background: rgba(232,0,13,.06); border-radius: var(--radius-sm); padding: 8px; border-left: 3px solid var(--red); }


/* ===== GOAL FILTER BAR ===== */
.goal-filter-bar { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:20px; padding:16px; background:var(--surface-0); border:1px solid var(--surface-2); border-radius:var(--radius-md); }
.goal-filter-btn { font-family:'Space Mono',monospace; font-size:var(--fs-xs); letter-spacing:0.5px; padding:10px 16px; min-height:40px; background:var(--surface-1); border:1px solid var(--surface-3); border-radius:var(--radius-sm); color:#777; cursor:pointer; transition:all .2s; white-space:nowrap; }
.goal-filter-btn:hover { background:var(--surface-2); color:var(--gfc); border-color:color-mix(in srgb, var(--gfc) 30%, transparent); }
.goal-filter-btn.active { background:color-mix(in srgb, var(--gfc) 10%, #0a0a0a); color:var(--gfc); border-color:color-mix(in srgb, var(--gfc) 50%, transparent); }
.goal-filter-info { display:flex; align-items:center; gap:12px; padding:12px 16px; margin-bottom:24px; background:var(--surface-0); border:1px solid; border-radius:var(--radius-md); font-size:var(--fs-sm); color:#999; }

/* ===== MEDIATHEK (legacy) ===== */
.med-goals { display:flex; flex-direction:column; gap:0; }
.med-goal-card { display:flex; align-items:center; gap:16px; padding:16px 20px; background:var(--surface-0); border:1px solid var(--surface-2); cursor:pointer; transition:all .2s; user-select:none; }
.med-goal-card:hover { background:var(--surface-2); border-color:color-mix(in srgb, var(--gc) 30%, transparent); }
.med-goal-card.med-goal-open { background:var(--surface-1); border-color:color-mix(in srgb, var(--gc) 40%, transparent); }
.med-goal-icon { font-size:var(--fs-xl); width:44px; text-align:center; flex-shrink:0; }
.med-goal-label { font-family:'Bebas Neue',sans-serif; font-size:var(--fs-lg); color:var(--gc); letter-spacing:1px; }
.med-goal-sub { font-size:var(--fs-xs); color:var(--text-muted); flex:1; }
.med-goal-arrow { font-size:var(--fs-base); color:var(--text-muted); transition:transform .2s; margin-left:auto; }

.med-goal-detail { background:var(--surface-0); border-left:3px solid var(--surface-3); padding:0; margin-bottom:8px; }
.med-ex-row { padding:14px 20px 14px 28px; border-bottom:1px solid var(--surface-1); }
.med-ex-row.med-fundamental { border-left:3px solid var(--gold); margin-left:-3px; padding-left:25px; }
.med-ex-header { display:flex; align-items:center; gap:10px; margin-bottom:4px; }
.med-ex-name { font-family:'Space Mono',monospace; font-size:var(--fs-sm); font-weight:700; color:var(--white); }
.med-badge-fund { font-size:var(--fs-xs); letter-spacing:1.5px; padding:2px 6px; background:rgba(245,197,24,.12); color:var(--gold); border-radius:var(--radius-sm); font-family:'Space Mono',monospace; }
.med-ex-why { font-size:var(--fs-xs); color:#999; line-height:1.6; margin-bottom:4px; }
.med-ex-source { font-size:var(--fs-xs); color:var(--text-subtle); font-style:italic; }

.med-fund-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px; }
.med-fund-card { background:var(--surface-0); border:1px solid var(--surface-2); border-radius:var(--radius-md); overflow:hidden; transition:border-color .2s; }
.med-fund-card:hover { border-color:#333; }
.med-fund-img { height:100px; overflow:hidden; background:#080808; }
.med-fund-img img { width:100%; height:100%; object-fit:cover; object-position:center 20%; filter:grayscale(40%) brightness(.65); }
.med-fund-body { padding:12px 14px; }
.med-fund-cat { font-size:var(--fs-xs); letter-spacing:2px; color:var(--red); margin-bottom:2px; font-family:'Space Mono',monospace; }
.med-fund-name { font-family:'Bebas Neue',sans-serif; font-size:var(--fs-md); color:var(--white); margin-bottom:4px; }
.med-fund-why { font-size:var(--fs-xs); color:#777; line-height:1.5; }

/* ===== SUPPLEMENT ARTICLE ===== */
.supp-article {
  max-width: 1060px;
  margin: 0 auto;
  padding-top: 10px;
}
.supp-article-header {
  border-bottom: 1px solid var(--surface-2);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.supp-article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}
.supp-article-body {
  font-size: var(--fs-sm);
  color: #bbb;
  line-height: 1.75;
  min-width: 0;
}
.supp-article-body strong { color: var(--white); }
.supp-h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-lg);
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--surface-2);
}
.supp-text {
  font-size: var(--fs-sm);
  color: #bbb;
  line-height: 1.8;
  margin-bottom: 36px;
}
.supp-text strong { color: var(--white); }
.supp-warn-block {
  padding: 22px 26px;
  margin-bottom: 36px;
  border-left: 3px solid var(--orange);
  background: #110e08;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Sidebar */
.supp-sidebar {
  position: sticky;
  top: 80px;
}
.supp-sidebar-img {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--surface-2);
  margin-bottom: 20px;
}
.supp-sidebar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.85);
}
.supp-sidebar-meta {
  background: var(--surface-0);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.supp-sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--surface-1);
  font-size: var(--fs-xs);
}
.supp-sidebar-row:last-child { border-bottom: none; }
.supp-sidebar-row span:first-child {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.supp-sidebar-row span:last-child {
  font-family: 'DM Sans', sans-serif;
  color: #999;
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ===== DESKTOP DESIGN UPGRADE ===== */

/* Wider container on desktop */
@media (min-width: 1024px) {
  .page { max-width: 1440px; padding: 40px 48px; }
}


/* Section labels */
.sec-label {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 3px;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Glow text effect for scores */
.glow-text {
  text-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
}

/* Pulse animation for live indicators */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.pulse { animation: pulse 2s ease-in-out infinite; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--red), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Ring glow */
.ring-glow {
  filter: drop-shadow(0 0 8px var(--red));
}

/* Animated counter (for JS to trigger) */
@keyframes countUp {
  from { opacity: 0; transform: scale(.8); }
  to { opacity: 1; transform: scale(1); }
}
.count-up {
  animation: countUp .4s ease-out forwards;
}

/* Horizontal divider with gradient */
.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,0,13,.2), transparent);
  margin: 20px 0;
}

/* Stat number with accent underline */
.stat-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1;
  color: var(--white);
  position: relative;
  display: inline-block;
}
.stat-big::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-sm);
  color: var(--white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(20px);
  animation: toastIn .3s ease forwards;
  max-width: 320px;
}
.toast.out {
  animation: toastOut .3s ease forwards;
}
@keyframes toastIn {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(20px); }
}
.toast-success { background: rgba(0,200,83,.15); border: 1px solid rgba(0,200,83,.3); }
.toast-error { background: rgba(232,0,13,.15); border: 1px solid rgba(232,0,13,.3); }
.toast-info { background: rgba(41,121,255,.15); border: 1px solid rgba(41,121,255,.3); }

/* ===== BASE RESPONSIVE IMPROVEMENTS ===== */
body { overflow-x: hidden; }
img, iframe, canvas, video { max-width: 100%; height: auto; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { min-width: 400px; }

/* ===== RESPONSIVE: TABLET (max-width: 768px) ===== */
@media (max-width: 768px) {

  /* --- Bottom Tab Bar --- */
  .bottom-bar { display: flex; }
  .page { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }

  /* --- Navigation Mobile: Minimal --- */
  .topbar { flex-wrap: nowrap; height: 48px; padding: 0 12px; gap: 4px; }
  .topbar-logo { font-size: 22px; }
  .topbar-nav { display: none; }
  .topbar-right { gap: 4px; }
  .share-pill { display: none; }
  .user-pill { display: none; }
  .search-container { display: none; }
  .topbar-icon-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: 16px; }
  .logout-btn { font-size: 14px; padding: 4px 8px; }
  .search-input { width: 120px; }
  .search-input:focus { width: 180px; }
  .search-results { width: 300px; }

  /* --- Dashboard --- */
  .dash-hero { flex-direction: column; gap: 4px; }
  .dash-hide-mobile { display: none; }
  .dash-profil { flex-direction: column; align-items: center; }
  .dash-radar-col { width: 100%; max-width: 280px; }
  .dash-scores-col { width: 100%; }

  /* --- Cards & Grids --- */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .card { padding: 16px 0; }
  .form-row, .form-row.triple { flex-direction: column; grid-template-columns: 1fr; }

  /* --- Pages --- */
  .page { padding: 16px 12px; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .page-title { font-size: clamp(28px, 6vw, 40px); }
  .account-wrap { max-width: 100%; }

  /* Wochenplan Mobile — vertikal stapeln */
  .week-grid,
  .week-grid[data-active="0"],
  .week-grid[data-active="1"],
  .week-grid[data-active="2"],
  .week-grid[data-active="3"],
  .week-grid[data-active="4"],
  .week-grid[data-active="5"],
  .week-grid[data-active="6"] { grid-template-columns: 1fr; }
  .day-col { min-height: auto; }
  .day-col:not(.day-active) .day-blocks { display: none; }
  .day-col:not(.day-active) .day-header > div:last-child { display: flex; }

  /* --- Tests --- */
  .tests-hero { grid-template-columns: 1fr; }
  .tests-radar-wrap { margin-bottom: 10px; }
  .tests-wrap { max-width: 100%; }
  .test-card { grid-template-columns: 1fr; }
  .test-card-right { flex-direction: row; align-items: baseline; gap: 12px; width: 100%; }

  /* --- Inline headings scale down on tablet --- */
  [style*="font-size:34px"] { font-size: clamp(24px, 4vw, 34px) !important; word-wrap: break-word; }
  [style*="font-size:42px"] { font-size: clamp(28px, 5vw, 42px) !important; }
  [style*="font-size:48px"] { font-size: clamp(32px, 6vw, 48px) !important; }

  /* --- Ernährung --- */
  .ern-nav { flex-wrap: wrap; }
  .ern-nav button { font-size: 11px; padding: 6px 10px; }
  .calc-inputs { grid-template-columns: 1fr; }

  /* --- Supplements --- */
  .supp-article-layout { grid-template-columns: 1fr; }
  .supp-sidebar { position: static; }
  .supp-sidebar-img { height: 220px; }

  /* --- Mental --- */
  .mt-ego-fields { grid-template-columns: 1fr; }
  .mt-daily { grid-template-columns: 1fr 1fr; }
  .mt-acc-inner { padding-left: 20px; }
  .mt-acc-num { font-size: 22px; }
  .mt-acc-title { font-size: 17px; }
  .mt-hero-quote { font-size: 22px; }

  /* --- Säulen --- */
  .si-clusters { grid-template-columns: 1fr; }
  .sc-grid { grid-template-columns: 1fr; }
  .si-barrel-wrap { margin: 32px auto; }
  .si-barrel { height: 160px; padding: 0 8px; }
  .si-barrel-stave span { font-size: 7px; }
  .si-barrel-animate .si-barrel-stave { height: 130px; }
  .si-barrel-animate .si-stave-weak { height: 55px; }
  .si-barrel-animate::after { bottom: 55px; }
  .si-hero { padding: 40px 0 30px; }
  .si-step { flex-direction: column; gap: 8px; padding: 24px 0; }
  .si-step-num { font-size: 36px; min-width: auto; }
  .sc-card-left { min-width: 44px; padding: 16px 10px; }
  .sc-card-num { font-size: 22px; }
  .sc-card-title { font-size: 17px; }
  .sc-card-desc { font-size: 11px; }
  .sc-card-body { padding: 14px 14px 12px 0; }

  /* --- Regeneration --- */
  .hrv-grid { grid-template-columns: 1fr; }

  /* --- Rechner --- */
  .calc-results { grid-template-columns: 1fr 1fr; }

  /* --- Account --- */
  .account-grid { grid-template-columns: 1fr; }

  /* --- Modals --- */
  .modal-overlay.active { align-items: flex-start; }
  .modal { width: 100%; max-width: 100%; height: 100vh; border-radius: 0; overflow-y: auto; margin: 0; }

  /* --- Fight detail --- */
  .fight-detail-grid { grid-template-columns: 1fr !important; }

  /* --- Periodisierung --- */
  .phase-cycle { grid-template-columns: 1fr 1fr; }

  /* --- FAQ --- */
  .faq-q { font-size: 14px; }

  /* --- Onboarding --- */
  .ob-container { padding: 32px 24px 28px; margin: 12px; }

  /* --- Progressive Disclosure --- */
  .pd-title { font-size: 17px; }

  /* --- Exercise detail --- */
  .ex-detail-page { grid-template-columns: 1fr; }
  .ex-detail-right { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; }

  /* --- Mediathek --- */
  .goal-filter-bar { gap: 4px; padding: 10px; }
  .goal-filter-btn { font-size: 11px; padding: 10px 12px; min-height: 44px; }
  .med-goal-card { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .med-goal-sub { display: none; }
  .med-fund-grid { grid-template-columns: 1fr; }
  .supp-article { padding: 0 4px; }

  .toast-container { bottom: 70px; right: 12px; left: 12px; }
  .toast { max-width: 100%; }

}

/* ===== RESPONSIVE: MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {

  /* --- Navigation --- */
  .topbar-logo { font-size: 20px; }
  .topbar { padding: 6px 10px; }
  .search-input { width: 80px; font-size: 12px; }
  .search-input:focus { width: 140px; }
  .search-results { width: calc(100vw - 20px); max-width: 300px; left: 10px; right: 10px; }

  /* --- Page & Typography --- */
  .page { padding: 12px 10px; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .page-title { font-size: clamp(24px, 7vw, 36px); }
  .page-sub { font-size: 11px; }
  .rpg-name { font-size: 28px; }

  /* --- Cards & Spacing --- */
  .card { padding: 12px 0; }
  .grid-2, .grid-3, .grid-4 { gap: 10px; }
  .grid-4 { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: 1fr 1fr; }

  /* --- Dashboard Mobile: Nur das Wichtigste --- */
  .dash-hero { padding: 8px 0; gap: 4px; }
  .dash-action-card { padding: 10px; }
  .dash-profil { display: none; }
  #dash-hinweise { font-size: 12px; }

  /* --- Forms --- */
  .form-input, .form-select { padding: 10px 12px; font-size: 16px; }
  .prog-section { padding: 14px; }
  .calc-box { padding: 14px; }
  .log-form-card { padding: 14px; }
  .modal { padding: 16px; }
  .auth-box { padding: 32px 20px; margin: 0 12px; border-radius: 16px; }
  .ob-container { padding: 20px 12px 16px; margin: 4px; }

  /* --- Tests Mobile: Kompakt --- */
  .tests-hero { padding: 12px; gap: 10px; }
  .tests-radar-wrap { display: none; }
  .test-card-value { font-size: 24px; }
  .stat-num { font-size: 28px; }
  /* Batch-Input auf Mobile verstecken */
  #batch-test-form { display: none !important; }

  /* --- Wochenplan Mobile: Nur Plan, wenig Overhead --- */
  .week-grid { gap: 2px; }
  .day-col.day-active .day-header { padding: 10px 10px 8px; }
  .day-col.day-active .day-name { font-size: 18px; }
  .day-col.day-active .day-blocks { padding: 6px 8px; }
  .day-block { font-size: 12px; padding: 8px 10px; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
  .day-col.day-active .day-block { font-size: 13px; padding: 10px 12px; }
  .day-col:not(.day-active) .day-block .block-hint { display: none; }
  .day-col.day-active .day-block .block-hint { font-size: 9px; }
  .week-controls { gap: 4px; }
  .wk-btn { font-size: 10px; padding: 8px 12px; min-height: 44px; }
  /* Exercise chips im Block: nur auf aktivem Tag */
  .day-col:not(.day-active) .ex-chip { display: none; }
  .ex-chip { font-size: 9px; padding: 6px 10px; min-height: 32px; }

  /* --- Säulen Intro --- */
  .si-slide { padding: 24px 16px; }
  .si-num { font-size: 80px; }
  .si-title { font-size: clamp(20px, 6vw, 32px); margin-top: -12px; }
  .si-body { font-size: 13px; margin-top: 14px; }
  .si-why { font-size: 12px; }
  .si-reason { font-size: 13px; }
  .si-btn { padding: 14px 32px; font-size: 16px; letter-spacing: 1px; }
  .si-clusters { grid-template-columns: 1fr; }
  .si-barrel-stave span { font-size: 6px; }

  /* --- Account Mobile --- */
  .account-grid { grid-template-columns: 1fr; gap: 8px; }
  .account-wrap { max-width: 100%; }
  .account-section { padding: 12px 0; }
  .account-section-title { font-size: 14px; }

  /* --- Mental --- */
  .mt-daily { grid-template-columns: 1fr; }
  .mt-acc-sub { display: none; }

  /* --- Phases --- */
  .phase-cycle { grid-template-columns: 1fr; }
  .phase-block { padding: 12px; }
  .fight-countdown { padding: 14px; }

  /* --- Exercise detail --- */
  .ex-detail-title { font-size: 24px; }

  /* --- Log entries --- */
  .log-entry-card { padding: 10px; gap: 10px; }
  .log-entry-date { font-size: 18px; }
  .log-entry-notes { font-size: 11px; }

  /* --- Kämpfe Mobile --- */
  .fight-detail-grid { grid-template-columns: 1fr !important; }

  /* --- Content Pages: Card Bodies collapsible with tap-to-expand --- */
  .card-body { max-height: 160px; overflow: hidden; position: relative; cursor: pointer; }
  .card-body::after { content:'Mehr anzeigen ▾'; position:absolute; bottom:0; left:0; right:0; height:52px; background:linear-gradient(transparent 0%, var(--black) 60%); display:flex; align-items:flex-end; justify-content:center; padding-bottom:6px; font-family:'Space Mono',monospace; font-size:11px; color:var(--text-muted); letter-spacing:1px; pointer-events:none; }
  .card-body.expanded { max-height: none; overflow: visible; cursor: default; }
  .card-body.expanded::after { display: none; }

  /* --- ALL inline headings responsive (override inline font-size via !important) --- */
  [id^="ern-s"] { font-size: clamp(20px, 5.5vw, 34px) !important; word-wrap: break-word; overflow-wrap: break-word; }
  [id^="ern-s"] span { font-size: inherit; }
  [style*="font-size:34px"] { font-size: clamp(20px, 5.5vw, 34px) !important; }
  [style*="font-size:30px"][style*="Bebas Neue"] { font-size: clamp(18px, 5vw, 30px) !important; }
  [style*="font-size:28px"][style*="Bebas Neue"] { font-size: clamp(18px, 5vw, 28px) !important; }
  [style*="font-size:26px"][style*="Bebas Neue"] { font-size: clamp(16px, 4.5vw, 26px) !important; }
  [style*="font-size:42px"] { font-size: clamp(24px, 6vw, 42px) !important; }
  [style*="font-size:48px"] { font-size: clamp(28px, 7vw, 48px) !important; }
  [style*="font-size:36px"] { font-size: clamp(22px, 6vw, 36px) !important; }

  /* --- Inline grids: force collapse on mobile --- */
  [style*="minmax(200px"] { grid-template-columns: 1fr !important; }
  [style*="minmax(240px"] { grid-template-columns: 1fr !important; }
  [style*="minmax(280px"] { grid-template-columns: 1fr !important; }
  [style*="min-width:200px"] { min-width: 0 !important; }
  
  /* --- Tooltips auf Mobile als Tap-to-reveal --- */
  .tt .tt-text {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    max-width: 100%;
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px 20px 28px;
    font-size: 14px;
    z-index: 9999;
  }
  .tt .tt-text::after { display: none; }
  .tt:hover .tt-text { visibility: hidden; opacity: 0; }
  .tt.tt-open .tt-text { visibility: visible; opacity: 1; pointer-events: auto; }

  /* --- Allgemein: Info-Boxes kompakter --- */
  .info-box { font-size: 12px; padding: 10px; }
  .info-box span { font-size: 14px; }

  /* --- Supplements/Ernährung: Bilder und Content kompakt --- */
  .supp-sidebar-img { display: none; }
  .ern-nav button { font-size: 10px; padding: 4px 8px; }

  /* --- Bottom Bar Spacing --- */
  .bottom-bar { padding: 2px 0 calc(2px + env(safe-area-inset-bottom, 0px)); }
  .btab { padding: 6px 8px; font-size: 9px; min-height: 44px; }
  .btab svg { width: 20px; height: 20px; }

  /* --- Data tables --- */
  .data-table { min-width: auto; font-size: 11px; }
  .data-table td, .data-table th { padding: 6px 4px; }

  /* --- Inline info boxes and source text --- */
  .info-box div { word-wrap: break-word; overflow-wrap: break-word; }
  .related-links { flex-direction: column; align-items: stretch; }
  .related-links button { text-align: center; }

  /* --- Timeline items compact --- */
  .tl-item { padding-left: 20px; }
  .tl-body { font-size: 12px; }

  /* --- Calc box inputs on mobile --- */
  .calc-inputs { grid-template-columns: 1fr !important; }

}

/* ===== RESPONSIVE: SMALL MOBILE (max-width: 360px) ===== */
@media (max-width: 360px) {
  .page { padding: 10px 8px; }
  .page-title { font-size: 22px; }
  .rpg-name { font-size: 24px; }
  .topbar-logo { font-size: 18px; }
  .search-input { width: 60px; }
  .search-input:focus { width: 100px; }
  .modal { padding: 12px; }
  .auth-box { padding: 16px 12px; }
  .si-slide { padding: 16px 12px; }
  .si-num { font-size: 60px; }
  .si-title { font-size: 18px; }
  .si-body { font-size: 12px; }
  .si-btn { padding: 12px 24px; font-size: 14px; }
  .tests-hero { padding: 10px; gap: 10px; }
  .dash-profil { padding: 10px; }
  #rpg-radar { max-width: 160px; }
  .btab span { font-size: 7px; }
  .form-input, .form-select { padding: 8px 10px; font-size: 12px; }

  /* --- Card body: even more compact on tiny screens --- */
  .card-body { max-height: 130px; }
  .card-body::after { font-size: 10px; height: 44px; }

  /* --- Prevent any horizontal overflow --- */
  .page { overflow-x: hidden; word-wrap: break-word; overflow-wrap: break-word; }
  .card-body { word-wrap: break-word; overflow-wrap: break-word; }
  .info-box { word-wrap: break-word; overflow-wrap: break-word; }
}

/* Editable field hover indicators */
.editable-field {
  cursor: text;
  position: relative;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  transition: all .2s ease;
  border: 1px solid transparent;
}
.editable-field:hover {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.06);
}
.editable-field::after {
  content: '\270E';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 12px;
  color: var(--text-subtle);
  opacity: 0;
  transition: opacity .2s;
}
.editable-field:hover::after {
  opacity: 1;
  color: var(--text-subtle);
}

/* ===== POLISH DETAILS ===== */
@keyframes checkBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.block-check-btn.just-checked {
  animation: checkBounce .3s ease;
}

/* Activity feed hover */
.activity-item {
  transition: transform .15s ease, background .15s ease;
}
.activity-item:hover {
  transform: translateX(4px);
  background: rgba(255,255,255,.02);
}

/* Fight countdown pulse */
@keyframes countdownPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}
.countdown-urgent {
  animation: countdownPulse 2s ease-in-out infinite;
  color: var(--gold);
}
.countdown-critical {
  animation: countdownPulse 1s ease-in-out infinite;
  color: var(--red);
}

/* Week completion golden glow */
@keyframes goldenGlimmer {
  0%, 100% { text-shadow: 0 0 8px rgba(245,197,24,.3); }
  50% { text-shadow: 0 0 20px rgba(245,197,24,.6); }
}
.week-complete {
  color: var(--gold);
  animation: goldenGlimmer 2s ease-in-out infinite;
}

/* ===== DASHBOARD v4 ===== */

/* Full-bleed hero banner */
#page-dashboard.page { padding-top: 0; }
.db-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 60px;
  overflow: hidden;
}
.db-hero-img {
  position: absolute;
  inset: 0;
  background: center 30%/cover no-repeat;
  filter: grayscale(60%) brightness(.5) contrast(1.1);
}
.db-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,.1) 0%, rgba(8,8,8,.4) 40%, var(--black) 92%);
}
.db-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.db-hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 10vw, 96px);
  color: var(--white);
  letter-spacing: 6px;
  line-height: .82;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.db-hero-sub {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.4);
  letter-spacing: 3px;
  margin-top: 8px;
}

/* Quick stats row — overlaps hero significantly */
.db-stats-row {
  display: flex;
  gap: 0;
  margin: -48px auto 0;
  max-width: 640px;
  position: relative;
  z-index: 2;
  background: rgba(17,17,17,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.db-stat-cell {
  flex: 1;
  text-align: center;
  padding: 20px 12px;
  border-right: 1px solid var(--surface-2);
  transition: background .2s ease;
}
.db-stat-cell:last-child { border-right: none; }
.db-stat-cell:hover { background: rgba(255,255,255,.02); }
.db-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--white);
  line-height: 1;
}
.db-stat-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.3);
  margin-top: 4px;
  text-transform: uppercase;
}

/* Quick action buttons */
.db-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 24px 0;
  flex-wrap: wrap;
}
.db-action-btn {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--surface-3);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.db-action-btn:hover {
  color: var(--white);
  border-color: var(--surface-4);
  background: rgba(255,255,255,.03);
}

/* Next training block — prominent */
.db-next-block {
  background: var(--surface-1);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color .2s ease;
  cursor: pointer;
}
.db-next-block:hover { border-color: var(--surface-3); }
.db-next-time {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--red);
  line-height: 1;
  min-width: 70px;
}
.db-next-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-md);
  color: var(--white);
  letter-spacing: 1px;
}
.db-next-meta {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* Content container */
.db-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section */
.db-sec {
  padding: 24px 0;
  border-bottom: 1px solid var(--surface-2);
}
.db-sec:last-child { border-bottom: none; }
.db-sec-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.db-sec-ttl {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-md);
  color: var(--white);
  letter-spacing: 1.5px;
}
.db-sec-link {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  cursor: pointer;
  transition: color .15s;
}
.db-sec-link:hover { color: var(--white); }

/* Two-column grid */
.db-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Week strip */
.db-week-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--surface-1);
  border-radius: var(--radius-md);
}
.db-week-day { text-align: center; }
.db-week-day.today { transform: scale(1.15); }
.db-week-day:not(.today) { opacity: .5; }
.db-week-day svg { display: block; margin: 0 auto; }
.db-week-day-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 7px;
  color: rgba(255,255,255,.3);
  margin-top: 3px;
}
.db-week-day.today .db-week-day-lbl { color: var(--white); }

/* Responsive */
@media (max-width: 768px) {
  .db-hero { min-height: 40vh; }
  .db-hero-name { font-size: 48px; letter-spacing: 3px; }
  .db-stats-row { margin: -20px 16px 0; }
  .db-stat-num { font-size: 24px; }
  .db-stat-cell { padding: 14px 8px; }
  .db-two { grid-template-columns: 1fr; }
  .db-content { padding: 0 16px; }
  .db-next-block { flex-direction: column; text-align: center; }
  .db-next-time { font-size: 28px; }
}
@media (max-width: 480px) {
  .db-hero { min-height: 35vh; padding-bottom: 32px; }
  .db-hero-name { font-size: 36px; letter-spacing: 2px; }
  .db-stats-row { flex-wrap: wrap; }
  .db-stat-cell { flex: 1 1 45%; }
  .db-actions { gap: 6px; }
  .db-action-btn { padding: 10px 14px; font-size: 11px; min-height: 44px; }
  .db-next-block { padding: 14px !important; }
  .db-next-title { font-size: clamp(18px, 5vw, 24px) !important; }
  .db-sec-ttl { font-size: 16px !important; }
  .db-sec-hd { flex-wrap: wrap; gap: 4px; }
}

/* ===== LIGHT MODE: DASHBOARD ===== */

/* ===== LIGHT MODE: BLOCK DETAIL ===== */

/* ===== LIGHT MODE: ACCORDIONS ===== */

/* ===== LIGHT MODE: PRODUCT CARDS ===== */

/* ===== LIGHT MODE: MISC ===== */

/* ===== LIGHT MODE: BOTTOM NAV ===== */

/* ===== OLD COMPAT (keep fighter-header for transitions) ===== */
.fighter-header { display: none; }
.score-hero { display: none; }
.dash-content { display: none; }

/* Fighter header — full bleed */
.fighter-header {
  position: relative;
  margin: -32px -24px 0;
  padding: 80px 32px 40px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.fighter-header-bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  filter: grayscale(100%) contrast(1.1);
  opacity: .1;
}
.fighter-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,.2) 0%, var(--black) 100%);
}
.fighter-header-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.fighter-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 8vw, 72px);
  color: var(--white);
  letter-spacing: 4px;
  line-height: .85;
  text-transform: uppercase;
}
.fighter-accent {
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin: 12px 0;
}
.fighter-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fighter-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.fighter-pills {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.fighter-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  min-width: 72px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s ease;
}
.fighter-pill:hover { border-color: rgba(255,255,255,.12); }
.fighter-pill-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fighter-pill-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Score hero with glow */
.score-hero {
  text-align: center;
  padding: 48px 0 32px;
  position: relative;
}
.score-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(232,0,13,.1) 0%, transparent 70%);
  pointer-events: none;
}
.score-ring-wrap {
  position: relative;
  z-index: 1;
  display: inline-block;
}
.score-ring-wrap svg { display: block; }
.score-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  color: var(--white);
  line-height: 1;
}
.score-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(255,255,255,.35);
  margin-top: 16px;
}

/* Content container */
.dash-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section spacing */
.dash-sec {
  padding: 28px 0;
  border-bottom: 1px solid var(--surface-2);
}
.dash-sec:last-child { border-bottom: none; }
.dash-sec-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dash-sec-ttl {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--fs-md);
  color: var(--white);
  letter-spacing: 1.5px;
}

/* Two-column asymmetric (radar + stats) */
.dash-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Week progress */
.dash-week {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 0;
}
.dash-week-dot {
  text-align: center;
  transition: transform .2s ease;
}
.dash-week-dot.is-today { transform: scale(1.2); }
.dash-week-dot:not(.is-today) { opacity: .5; }
.dash-week-dot svg { display: block; margin: 0 auto; }
.dash-week-daylbl {
  font-family: 'Space Mono', monospace;
  font-size: 7px;
  color: rgba(255,255,255,.3);
  margin-top: 3px;
}
.dash-week-dot.is-today .dash-week-daylbl { color: var(--white); }

/* Activity list */
.dash-act-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-2);
  transition: transform .15s ease;
}
.dash-act-item:last-child { border-bottom: none; }
.dash-act-item:hover { transform: translateX(3px); }

/* Bench sparklines */
.dash-sparks {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dash-sparks::-webkit-scrollbar { display: none; }
.dash-spark-item {
  flex-shrink: 0;
  min-width: 100px;
  cursor: pointer;
  transition: transform .2s ease;
}
.dash-spark-item:hover { transform: translateY(-2px); }

/* CTA */
.dash-empty-cta {
  text-align: center;
  padding: 40px 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .fighter-header { padding: 60px 20px 32px; min-height: 220px; }
  .fighter-name { font-size: 40px; letter-spacing: 2px; }
  .fighter-pills { gap: 8px; }
  .fighter-pill { padding: 10px 14px; min-width: 60px; }
  .fighter-pill-val { font-size: 22px; }
  .dash-two-col { grid-template-columns: 1fr; }
  .dash-content { padding: 0 16px; }
  .score-num { font-size: 44px; }
}
@media (max-width: 480px) {
  .fighter-header { padding: 48px 16px 24px; min-height: 180px; }
  .fighter-name { font-size: 32px; }
  .fighter-pill { padding: 8px 10px; }
  .fighter-pill-val { font-size: 18px; }
  .dash-week { gap: 8px; }
}

/* ===== SKELETON LOADING ===== */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.2s ease infinite;
  border-radius: var(--radius-md);
}
.skeleton-text { height: 16px; width: 80%; margin-bottom: var(--space-2); }
.skeleton-title { height: 32px; width: 60%; margin-bottom: var(--space-4); }
.skeleton-card { height: 120px; width: 100%; margin-bottom: var(--space-4); }
.skeleton-circle { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-row { display: flex; gap: var(--space-4); margin-bottom: var(--space-4); }
.skeleton-row > * { flex: 1; }

/* ===== BLOCK DETAIL ===== */
.bd-hero { padding: 0 0 24px; }
.bd-back { background: none; border: none; color: #555; cursor: pointer; padding: 0; min-height: 44px; display: flex; align-items: center; margin-bottom: 12px; }
.bd-back:hover { color: var(--white); }
.bd-day { font-family: 'Space Mono', monospace; font-size: 11px; color: #555; letter-spacing: 2px; }
.bd-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(32px, 7vw, 48px); color: var(--white); letter-spacing: 3px; line-height: 1; margin: 4px 0 0; }
.bd-hint { font-family: 'DM Sans', sans-serif; font-size: 13px; color: #555; line-height: 1.5; margin-top: 10px; max-width: 520px; }
.bd-stats { display: flex; gap: 24px; margin-top: 16px; }
.bd-stat { display: flex; align-items: baseline; gap: 5px; }
.bd-stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--white); }
.bd-stat-unit { font-family: 'Space Mono', monospace; font-size: 11px; color: #444; }

/* Sections with left accent bar */
.bd-section { display: flex; gap: 0; margin-top: 20px; }
.bd-section-bar { width: 3px; border-radius: 2px; flex-shrink: 0; }
.bd-section-body { flex: 1; padding-left: 16px; min-width: 0; }
.bd-section-label { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 2px; margin-bottom: 12px; }
.bd-phase-text { font-family: 'DM Sans', sans-serif; font-size: 13px; color: #777; line-height: 1.5; padding: 6px 0; }

/* Exercise rows */
.bd-ex { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--surface-1); }
.bd-ex[onclick] { cursor: pointer; }
.bd-ex:last-child { border-bottom: none; }
.bd-ex-main { flex: 1; min-width: 0; }
.bd-ex-name { font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--white); font-weight: 600; }
.bd-ex[onclick] .bd-ex-name { text-decoration: underline; text-decoration-color: var(--surface-2); text-underline-offset: 3px; }
.bd-ex-note { font-family: 'DM Sans', sans-serif; font-size: 12px; color: #555; margin-top: 2px; }
.bd-ex-meta { text-align: right; flex-shrink: 0; }
.bd-ex-sets { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--white); font-weight: 700; }
.bd-ex-rest { font-family: 'Space Mono', monospace; font-size: 10px; color: #444; margin-top: 2px; }

/* Weight input per exercise */
.bd-ex-weight { flex-shrink: 0; }
.bd-weight-input { width: 56px; padding: 10px 4px; text-align: center; font-family: 'Space Mono', monospace; font-size: 13px; color: var(--white); background: var(--surface-1); border: 1px solid var(--surface-2); border-radius: var(--radius-sm); min-height: 40px; -moz-appearance: textfield; }
.bd-weight-input::-webkit-inner-spin-button, .bd-weight-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.bd-weight-input:focus { border-color: var(--red); outline: none; }
.bd-weight-input::placeholder { color: #333; }

/* Block detail mobile */
@media (max-width: 480px) {
  .bd-ex { flex-wrap: wrap; gap: 8px; }
  .bd-ex-meta { order: 2; }
  .bd-ex-weight { order: 3; }
  .bd-section { gap: 0; }
  .bd-section-body { padding-left: 12px; }
  .bd-title { font-size: clamp(24px, 7vw, 36px) !important; }
  .bd-stats { gap: 16px; flex-wrap: wrap; }
  .bd-stat-val { font-size: 18px !important; }
  .bd-section-label { font-size: 16px !important; }
  .bd-ex-name { font-size: 13px !important; }
  .bd-ex-sets { font-size: 12px !important; }
}

/* Done button */
.bd-action { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--surface-1); }
.bd-done-btn { width: 100%; padding: 16px; font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 2px; border: 2px solid var(--red); background: transparent; color: var(--red); border-radius: var(--radius-md); cursor: pointer; transition: background .2s, color .2s; }
.bd-done-btn:hover { background: var(--red); color: #fff; }
.bd-done-btn.done { border-color: var(--green); color: var(--green); }
.bd-done-btn.done:hover { background: var(--green); color: #000; }

/* ===== REDUCED MOTION ===== */
/* ===== FIGHT COMMAND DASHBOARD ===== */

/* Hero: animated gradient + grid overlay */
.fc-hero {
  position: relative;
  padding: 48px 32px 32px;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.fc-hero .db-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
  z-index: 0;
}
.fc-hero .db-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black) 0%, rgba(10,10,11,.6) 50%, rgba(10,10,11,.3) 100%);
  z-index: 0;
}
.fc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,0,13,.08) 0%, transparent 40%, rgba(59,130,246,.06) 80%, transparent 100%);
  background-size: 400% 400%;
  animation: fcGradient 20s ease infinite;
  z-index: 0;
}
.fc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  pointer-events: none;
}
@keyframes fcGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.fc-hero > * { position: relative; z-index: 2; }

.fc-hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 7vw, 60px);
  color: var(--white);
  letter-spacing: 4px;
  line-height: .9;
  text-shadow: var(--glow-red);
  text-transform: uppercase;
}
.fc-hero-sub {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.35);
  letter-spacing: 1px;
  margin-top: 8px;
}
.fc-hero-record {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.fc-record-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.fc-record-badge.wins { color: var(--green); border-color: rgba(34,197,94,.25); }
.fc-record-badge.losses { color: var(--red); border-color: rgba(232,0,13,.25); }
.fc-record-badge.draws { color: var(--gold); border-color: rgba(245,197,24,.25); }

/* Stats bar */
.fc-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 32px;
  margin-top: -20px;
  position: relative;
  z-index: 10;
}
.fc-stat-cell {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
}
.fc-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--white);
  line-height: 1;
}
.fc-stat-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Next session glasmorphism card */
.fc-next-session {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, opacity .3s ease;
}
.fc-next-glow {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: var(--block-color, var(--red));
  box-shadow: 0 0 16px var(--block-color, rgba(232,0,13,.4));
}
.fc-next-time {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--white);
  letter-spacing: 1px;
}
.fc-next-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(18px, 3.5vw, 26px);
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
  cursor: pointer;
}
.fc-next-meta {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 4px;
}
.fc-btn-done {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  min-height: 44px;
  box-shadow: var(--glow-red);
  transition: transform .15s, box-shadow .15s;
}
.fc-btn-done:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(232,0,13,.5); }
.fc-btn-done:active { transform: scale(.96); }
.fc-btn-ghost {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 10px 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 44px;
  transition: border-color .15s, color .15s;
}
.fc-btn-ghost:hover { border-color: rgba(255,255,255,.2); color: var(--white); }

/* Today checklist */
.fc-today-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}
.fc-today-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .5s ease;
}
.fc-today-fill.in-progress { background: var(--gold); box-shadow: var(--glow-gold); }
.fc-today-fill.complete { background: var(--green); box-shadow: var(--glow-green); }

.fc-today-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  cursor: pointer;
  transition: background .15s;
}
.fc-today-item:hover { background: rgba(255,255,255,.02); }
.fc-today-item:last-child { border-bottom: none; }

.fc-check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--surface-3);
  background: transparent;
  color: transparent;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s ease;
  min-height: 30px;
}
.fc-check.done {
  border-color: var(--green);
  background: var(--green);
  color: #000;
  box-shadow: var(--glow-green);
  animation: fcCheckPulse .6s ease;
}
@keyframes fcCheckPulse {
  0% { transform: scale(1); box-shadow: var(--glow-green); }
  50% { transform: scale(1.15); box-shadow: 0 0 20px rgba(34,197,94,.6); }
  100% { transform: scale(1); box-shadow: var(--glow-green); }
}

/* Week strip */
.fc-week-strip {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.fc-week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.fc-week-day.today svg { animation: fcTodayPulse 2.5s ease infinite; }
@keyframes fcTodayPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.fc-week-ring-complete { filter: drop-shadow(var(--glow-green)); }
.fc-week-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-subtle);
}
.fc-week-day.today .fc-week-lbl { color: var(--white); }

/* Performance card */
.fc-performance {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: border-color .2s;
}
.fc-performance:hover { border-color: rgba(255,255,255,.12); }

.fc-hrv-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  margin-top: 12px;
}

/* Quick links */
.fc-quick-links { display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 0; }
.fc-quick-btn {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--glass-border);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  min-height: 36px;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.fc-quick-btn:hover { border-color: var(--red); color: var(--white); box-shadow: 0 0 12px rgba(232,0,13,.15); }

/* Welcome banner */
.fc-welcome {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.fc-welcome-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 8px;
  transition: background .15s;
}
.fc-welcome-step:hover { background: rgba(255,255,255,.06); }
.fc-welcome-step:last-child { margin-bottom: 0; }
.fc-welcome-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

/* Section labels */
.fc-section-label {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Content wrapper */
.fc-content { padding: 24px 32px; }

/* Mobile */
@media (max-width: 768px) {
  .fc-hero { padding: 32px 16px 24px; min-height: 180px; }
  .fc-hero-name { font-size: clamp(28px, 8vw, 44px); }
  .fc-stats-bar { padding: 0 16px; gap: 6px; }
  .fc-stat-cell { padding: 10px 8px; }
  .fc-stat-num { font-size: 22px; }
  .fc-content { padding: 16px; }
  .fc-next-session { padding: 16px 18px; }
}
@media (max-width: 480px) {
  .fc-stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: -16px; }
  .fc-hero { min-height: 160px; padding: 24px 12px 20px; }
}

/* Light mode adjustments */
  background: linear-gradient(135deg, #f5f5f7 0%, #fde8e8 25%, #f5f5f7 50%, #e8edf5 75%, #f5f5f7 100%);
  background-size: 400% 400%;
}
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
    scroll-behavior: auto !important;
  }
  body::before { display: none; }
  .reveal { opacity: 1; transform: none; }
  .si-slide { scroll-snap-align: none; }
  .si-intro { scroll-snap-type: none; }
  .modal, .nav-drop { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .anim-pulse { animation: none !important; }
  .pulse { animation: none !important; }
}

/* ===== PAGE ENTER ANIMATION ===== */
@keyframes pageEnter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.page.entering { animation: pageEnter 200ms var(--ease) forwards; }

/* ===== TRAINING PAGE SUB-TABS ===== */
.sub-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0 var(--space-4);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--surface-2);
}
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tab {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: var(--space-3) var(--space-4);
  min-height: 40px;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.sub-tab:hover { color: var(--light); }
.sub-tab.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

/* ===== AI COACH PANEL ===== */
body.hide-coach #ai-coach-fab,
body.hide-coach #ai-coach-panel { display: none !important; }
#ai-coach-fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232,0,13,.4);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
#ai-coach-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(232,0,13,.5); }
#ai-coach-fab:active { transform: scale(.95); }

#ai-coach-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 600;
  width: 400px;
  max-width: 100vw;
  height: 70vh;
  max-height: 600px;
  background: var(--surface-0);
  border: 1px solid var(--surface-2);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.25,.1,.25,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.5);
}
#ai-coach-panel.open {
  transform: translateY(0);
}

.ai-coach-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--surface-2);
  flex-shrink: 0;
}
.ai-coach-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.ai-coach-quick {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}
.ai-coach-quick::-webkit-scrollbar { display: none; }
.ai-quick-btn {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--surface-1);
  border: 1px solid var(--surface-2);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  min-height: 32px;
  transition: border-color .15s, color .15s;
}
.ai-quick-btn:hover { border-color: var(--red); color: var(--white); }

.ai-coach-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--surface-2);
  flex-shrink: 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.ai-coach-input-row input {
  flex: 1;
  background: var(--surface-1);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--light);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  min-height: 44px;
}
.ai-coach-input-row input:focus { border-color: var(--red); }
.ai-send-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.ai-send-btn:hover { background: var(--red-dark); }

/* AI Coach Action Buttons */
.ai-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  margin: 6px 4px 2px 0;
  min-height: 34px;
  transition: transform .1s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.ai-action-btn:active { transform: scale(.95); }
.ai-action-video {
  background: rgba(232,0,13,.15);
  color: #ff6b6b;
  border: 1px solid rgba(232,0,13,.3);
}
.ai-action-video:hover { background: rgba(232,0,13,.25); }
.ai-action-nav {
  background: rgba(41,121,255,.12);
  color: #6ba3ff;
  border: 1px solid rgba(41,121,255,.25);
}
.ai-action-nav:hover { background: rgba(41,121,255,.2); }
.ai-action-do {
  background: rgba(0,200,83,.12);
  color: #5ddb8a;
  border: 1px solid rgba(0,200,83,.25);
}
.ai-action-do:hover { background: rgba(0,200,83,.2); }

.typing-dots::after {
  content: '';
  animation: typingDots 1.2s infinite;
}
@keyframes typingDots {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

/* Mobile: full width */
@media (max-width: 480px) {
  #ai-coach-panel { width: 100vw; height: 80vh; max-height: none; border-radius: 16px 16px 0 0; }
  #ai-coach-fab { bottom: 72px; right: 16px; width: 50px; height: 50px; font-size: 22px; }
}

/* ===== VIDEO LIBRARY ===== */
.vid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.vid-card {
  background: var(--surface-1);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.vid-card:hover { border-color: var(--surface-3); transform: translateY(-2px); }
.vid-card:active { transform: scale(.98); }
.vid-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.vid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.vid-card:hover .vid-thumb img { transform: scale(1.05); }
.vid-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(232,0,13,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.vid-card:hover .vid-play-icon { opacity: 1; }
.vid-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #fff;
  background: rgba(0,0,0,.7);
  padding: 2px 6px;
  border-radius: 3px;
}
.vid-info { padding: 14px; }
.vid-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.vid-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vid-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.vid-tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--text-subtle);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

/* Custom Video Player Overlay */
#vid-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
#vid-player-overlay.active { opacity: 1; }
.vid-player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.9);
}
.vid-player-container {
  position: relative;
  width: 90vw;
  max-width: 960px;
  background: var(--surface-0);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
}
.vid-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface-1);
}
.vid-player-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--white);
  letter-spacing: 1px;
}
.vid-player-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  min-height: 36px;
}
.vid-player-close:hover { color: var(--white); }
.vid-player-frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}
.vid-player-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .vid-grid { grid-template-columns: 1fr; }
  .vid-player-container { width: 100vw; max-width: none; border-radius: 0; }
}

/* Light mode */

