@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

:root {
  --bg-primary: #0A0A0F;
  --bg-elevated: #111114;
  --bg-subtle: #0F0F13;
  --bg-tile-warm: linear-gradient(135deg, #1A0D15, #150A14);
  --bg-tile-cool: linear-gradient(135deg, #0D1518, #0A1015);
  --bg-tile-organic: linear-gradient(135deg, #0D1A14, #0A150F);
  --bg-tile-amber: linear-gradient(135deg, #1A1A0D, #15140A);
  --accent-primary: #FF3366;
  --accent-secondary: #FF6B35;
  --accent-gradient: linear-gradient(90deg, #FF3366, #FF6B35);
  --text-primary: #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-tertiary: #AAAAAA;
  --text-muted: #999999;
  --text-disabled: #777777;
  --text-placeholder: #666666;
  --border-subtle: rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.08);
  --border-emphasis: rgba(255,255,255,0.15);
  --status-processing: #FF6B35;
  --status-complete: #9BCC4E;
  --status-failed: #E24B4A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* File-Inputs nie display:none: mobile Safari/Chrome öffnen den Dateidialog
   sonst nicht, wenn das Feld per <label for>/umschließendem Label getippt wird.
   Sichtbar-versteckt (überschreibt inline display:none) — funktioniert auf allen
   Geräten, Auslösung per Label und per JS .click() bleibt erhalten. */
input[type="file"] {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  display: inline-block !important;
}
html { overflow-x: clip; }

h1, h2, h3 {
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
  font-weight: 400;
  font-style: normal;   /* Bangers nie synthetisch kursiv — gilt seitenweit */
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ── Page header (global — used by video_studio, tool_run, library, etc.) ───── */
.rv-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.rv-kick {
  font-size: 11px;
  letter-spacing: .2em;
  color: #FF6B35;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.rv-h1 {
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: .04em;
  color: white;
  line-height: 1;
  margin: 0;
}
.rv-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 480px) {
  .rv-page-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .rv-h1 { font-size: 28px; }
  .rv-toolbar { width: 100%; }
}

/* ── Admin: einheitliche Aktionsleiste unter dem Subnav ──────────────────
   Ersetzt die früheren, pro Seite verschiedenen Topbars. Jede Admin-Seite
   nutzt jetzt die Haupt-Nav + Subnav; seitenspezifische Aktionen liegen hier. */
.admin-actionbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-actionbar .ab-title {
  font-size: 30px;
  font-weight: 400;
  color: #fff;
  font-family: 'Bangers', cursive;
  letter-spacing: 1.5px;
  font-style: normal;
  margin-right: auto;
}

/* ── Globale H1-Skala (Marketing-Seiten) ─────────────────────────────────
   Zwei Stufen, eine Quelle:
   .rv-h1-hero → Landing/Preregister-Heros
   .rv-h1-page → alle übrigen Seiten-H1 (Pricing, FAQ, Blog, Tools, Legal …)
   App-Seiten (tool_run, video_studio) nutzen weiterhin .rv-h1 (Bangers, aufrecht). */
.rv-h1-hero {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 2px;
  color: #fff;
}
.rv-h1-page {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 1px;
  color: #fff;
}

.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0A0A0F;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 0%, rgba(255,51,102,0.4) 40%, rgba(255,107,53,0.4) 60%, transparent 100%) 1;
  padding: 14px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.admin-logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #FF3366, #FF6B35);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-logo-icon svg {
  width: 16px;
  height: 16px;
  color: white;
}

.admin-logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: white;
}

.admin-logo-text span {
  color: var(--accent-primary);
}

.nav-brand { font-size: 18px; font-weight: 700; letter-spacing: -2px; }
.nav-brand .vid { color: #FF3366; }
.nav-logo-img { height: 45px; width: auto; vertical-align: middle; display: block; }

.nav-lang-mobile { display: none; }
.nav-lang-mobile-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 14px; color: var(--text-secondary); cursor: pointer; border-radius: 8px; }
.nav-lang-mobile-item:hover { background: var(--bg-hover); color: white; }
.nav-lang-mobile-item.active { color: var(--accent-primary); }
.lang-switch { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; background: transparent; border: 0.5px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 6px 10px; font-size: 12px; color: var(--text-tertiary); cursor: pointer; font-family: inherit; transition: all 0.2s; }
.lang-btn:hover { border-color: rgba(255,255,255,0.2); color: white; }
.lang-flag { width: 16px; height: 12px; border-radius: 2px; overflow: hidden; display: inline-flex; }
.lang-chevron { transition: transform 0.2s; }
.lang-switch.open .lang-chevron { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; background: var(--bg-elevated); border: 0.5px solid var(--border-default); border-radius: 8px; padding: 4px; min-width: 140px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all 0.15s; z-index: 200; }
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; color: var(--text-secondary); border-radius: 6px; cursor: pointer; }
.lang-item:hover { background: var(--bg-hover); color: white; }
.lang-item.active { background: rgba(255,51,102,0.1); color: var(--accent-primary); }

.nav-center { display: flex; gap: 32px; margin-left: 48px; }
.nav-center a { position: relative; font-size: 13px; font-weight: 400; color: var(--text-tertiary); text-decoration: none; transition: color 0.2s; }
.nav-center a:hover, .nav-center a.active { color: var(--text-primary); font-weight: 500; }
.nav-center a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--accent-primary); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.credits-pill { font-size: 12px; color: var(--text-tertiary); border: 0.5px solid var(--border-subtle); border-radius: 20px; padding: 6px 12px; }
.credits-pill-admin { font-family: 'SF Mono', 'Consolas', monospace; font-weight: 600; color: #FF6B35; background: rgba(255, 107, 53, 0.12); border-color: rgba(255, 107, 53, 0.25); letter-spacing: 0.4px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #222; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--text-secondary); text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s; }
.avatar:hover { background: #2a2a2a; color: #FF3366; }
.icon-ghost { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: transparent; border: none; border-radius: 8px; color: var(--text-tertiary); text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s; }
.icon-ghost:hover { background: rgba(255,255,255,0.06); color: white; }

.nav-cta-secondary { font-size: 13px; color: var(--text-secondary); text-decoration: none; padding: 8px 14px; border-radius: 8px; transition: color 0.15s, background 0.15s; }
.nav-cta-secondary:hover { color: white; background: rgba(255,255,255,0.05); }
.nav-cta-primary { font-size: 13px; font-weight: 600; color: white; text-decoration: none; padding: 8px 16px; border-radius: 8px; background: linear-gradient(135deg, #FF3366, #FF6B35); box-shadow: 0 2px 8px rgba(255,51,102,0.25); transition: transform 0.15s, box-shadow 0.15s; }
.nav-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,51,102,0.35); }

/* 24h retention notice — used on Library, Job Detail, Dashboard */
.retention-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 18px;
  background: rgba(255, 107, 53, 0.08);
  border: 0.5px solid rgba(255, 107, 53, 0.22);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  max-width: 100%;
}
.retention-notice svg { color: #FF6B35; flex-shrink: 0; }
.retention-notice strong { color: white; font-weight: 600; }

/* Hero */
.hero { padding: 80px 48px 60px; max-width: 1280px; margin: 0 auto; text-align: center; }

.eyebrow-badge {
  display: inline-block;
  font-size: 11px;
  color: var(--accent-secondary);
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 0.5px solid rgba(255,107,53,0.3);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.hero h1 { font-size: 88px; font-weight: 400; letter-spacing: 3px; line-height: 0.95; margin-bottom: 24px; }
.hero h1 .gradient { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-lead { font-size: 18px; color: #aaa; max-width: 680px; margin: 0 auto 48px; line-height: 1.5; }
.cta-row { display: flex; justify-content: center; gap: 14px; margin-bottom: 80px; }

.btn-primary { background: var(--accent-primary); color: white; border: none; border-radius: 8px; padding: 16px 32px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.2s; }
.btn-primary:hover { background: #FF4A78; }
.btn-secondary { background: transparent; color: white; border: 0.5px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 16px 32px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.2s; }
.btn-secondary:hover { background: rgba(255,255,255,0.05); }

/* Hero Video */
.hero-video-wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

.hero-video {
  aspect-ratio: 21/9;
  background: #111;
  background-image: linear-gradient(135deg, #1A0D15, #0A0A0F);
  border: 0.5px solid var(--border-default);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}

.hero-waveform {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  margin-bottom: 16px;
}

.hero-waveform .bar {
  width: 6px;
  border-radius: 3px;
  height: var(--h, 50%);
  opacity: calc(0.4 + (var(--h, 50%) / 200%));
  animation: pulse 1.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.hero-waveform .bar:nth-child(odd) { background: var(--accent-primary); }
.hero-waveform .bar:nth-child(even) { background: var(--accent-secondary); }

@keyframes pulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-waveform .bar { animation: none; }
}

.hero-placeholder-label { font-size: 12px; color: var(--text-placeholder); letter-spacing: 4px; text-transform: uppercase; }

.live-preview-pill {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot { width: 8px; height: 8px; background: var(--accent-primary); border-radius: 50%; }
.live-preview-text { font-size: 11px; letter-spacing: 1px; color: var(--text-secondary); }

/* Section Headers */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; padding: 0 48px; max-width: 1280px; margin-left: auto; margin-right: auto; }
.section-eyebrow { font-size: 11px; color: var(--accent-secondary); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-size: 42px; font-weight: 400; letter-spacing: 2px; }
.section-header-right { display: flex; gap: 8px; }

/* Filter Pills */
.filter-pill { font-size: 13px; padding: 8px 16px; border-radius: 20px; border: 0.5px solid var(--border-default); background: transparent; color: var(--text-tertiary); cursor: pointer; transition: all 0.2s; }
.filter-pill:hover { border-color: var(--border-emphasis); color: var(--text-secondary); }
.filter-pill.active { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }

/* Bento Grid */
.bento-wrap { padding: 0 48px; max-width: 1280px; margin: 0 auto 80px; }

.bento-row-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.bento-row-2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.bento-row-3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 80px; }

.bento-filter-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 80px;
}

/* Tile Base */
.tile {
  border-radius: 14px;
  border: 0.5px solid var(--border-default);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
  transform: scale(1.01);
  border-color: var(--border-emphasis);
  box-shadow: 0 0 0 1px rgba(255,51,102,0.15), 0 20px 40px rgba(255,51,102,0.08);
}

.tile-inner { position: relative; height: 100%; }

.tile-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-placeholder);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.tile-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  z-index: 2;
}

.tile-pill.flagship { background: var(--accent-primary); color: white; }
.tile-pill.audio, .tile-pill.video, .tile-pill.ai-gen { background: rgba(255,255,255,0.1); color: var(--text-secondary); backdrop-filter: blur(8px); }

.tile-pill-top-left { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; z-index: 2; }

.tile-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.tile-title { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.tile-desc { font-size: 13px; font-weight: 400; color: #aaa; margin-bottom: 16px; line-height: 1.4; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tile-btn {
  background: white;
  color: black;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

/* Tile Sizes */
.tile-autoflow { aspect-ratio: 16/10; background: var(--bg-tile-warm); position: relative; }
.tile-autoflow::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent-gradient); z-index: 3; border-radius: 14px 14px 0 0; }
.tile-autoflow .tile-bottom { text-shadow: 0 2px 12px rgba(0,0,0,0.6); }

.tile-character { aspect-ratio: 4/5; background: var(--bg-tile-organic); }
.tile-lipsync { aspect-ratio: 1/1; background: var(--bg-tile-amber); }
.tile-vocal { aspect-ratio: 1/1; background: var(--bg-tile-cool); }
.tile-upscale { aspect-ratio: 1/1; background: var(--bg-tile-warm); }
.tile-compact {
  aspect-ratio: 1/1;
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
  min-height: 120px;
  max-height: 140px;
}
.tile-compact:hover { box-shadow: none; }
.tile-compact .tile-inner { display: flex; flex-direction: column; height: 100%; }
.tile-compact .tile-bottom { padding: 16px 20px; position: relative; }
.tile-compact .tile-icon { color: var(--accent-secondary); font-size: 18px; margin-bottom: 6px; }
.tile-compact .tile-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.tile-compact .tile-desc { font-size: 11px; color: var(--text-muted); margin-bottom: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Row 2 tile desc smaller */
.tile-lipsync .tile-desc, .tile-vocal .tile-desc, .tile-upscale .tile-desc {
  font-size: 12px;
  color: #aaa;
}

/* Recent Jobs */
.recent-wrap { padding: 0 48px; max-width: 1280px; margin: 0 auto 80px; }

.jobs-table-wrap { background: #0D0D11; border: 0.5px solid var(--border-subtle); border-radius: 14px; overflow: hidden; }
.jobs-table { width: 100%; border-collapse: collapse; }
.jobs-table th { padding: 14px 24px; font-size: 10px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; color: var(--text-disabled); border-bottom: 0.5px solid var(--border-subtle); text-align: left; }
.jobs-table td { padding: 16px 24px; border-bottom: 0.5px solid rgba(255,255,255,0.04); vertical-align: middle; }
.jobs-table tr:last-child td { border-bottom: none; }
.jobs-table tr:hover td { background: rgba(255,255,255,0.02); }

.job-thumb { width: 56px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--text-placeholder); letter-spacing: 1px; }
.job-title { font-size: 14px; font-weight: 500; }
.job-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.status-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 10px; }
.status-processing { background: rgba(255,107,53,0.15); color: var(--status-processing); }
.status-complete { background: rgba(99,153,34,0.15); color: var(--status-complete); }
.status-failed { background: rgba(226,75,74,0.15); color: var(--status-failed); }

.info-icon { font-size: 12px; color: var(--text-muted); cursor: default; }

.progress-wrap { display: flex; flex-direction: column; gap: 4px; }
.progress-bar { width: 100px; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent-gradient); border-radius: 2px; transition: width 0.4s ease; }
.progress-label { font-size: 11px; color: var(--text-tertiary); }

.action-link { font-size: 12px; font-weight: 500; color: var(--accent-secondary); text-decoration: none; }

/* Footer */
.site-footer { border-top: 0.5px solid var(--border-subtle); font-size: 12px; color: var(--text-disabled); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 32px 48px; display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-disabled); text-decoration: none; }
.footer-links a:hover { color: var(--text-tertiary); }

/* Auth Pages */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg-primary); padding: 24px; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 2.5rem; text-decoration: none; width: 100%; }
.auth-logo .nav-brand { font-size: 24px; }
.auth-logo-img { height: auto; width: auto; max-width: 365px; max-height: 210px; vertical-align: middle; display: block; }
@media (max-width: 480px) {
  .auth-logo-img { max-width: 285px; max-height: 170px; }
}
.auth-box { background: var(--bg-elevated); border: 0.5px solid var(--border-default); border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 420px; }
.auth-box h2 { font-size: 30px; font-weight: 400; letter-spacing: 2px; text-align: center; margin-bottom: 1.5rem; }
.auth-box form { display: flex; flex-direction: column; gap: 0.75rem; }
.auth-box input { background: var(--bg-primary); border: 0.5px solid var(--border-default); border-radius: 8px; padding: 0.75rem; color: var(--text-primary); font-size: 1rem; width: 100%; }
.auth-box input:focus { outline: 2px solid var(--accent-primary); border-color: transparent; }
.auth-box button { background: var(--accent-primary); color: white; border: none; border-radius: 8px; padding: 0.875rem; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 0.5rem; }
.auth-box button:hover { background: #FF4A78; }
.auth-box .error { background: rgba(239,68,68,0.15); border: 0.5px solid rgba(239,68,68,0.3); color: #EF4444; padding: 0.75rem; border-radius: 8px; font-size: 0.875rem; text-align: center; }
.auth-box p { text-align: center; color: var(--text-tertiary); font-size: 0.875rem; margin-top: 1rem; }
.auth-box p a { color: var(--accent-secondary); text-decoration: none; }

/* Admin Buttons */
.btn-action { background: var(--accent-secondary); color: white; border: none; border-radius: 4px; padding: 0.3rem 0.6rem; font-size: 0.8rem; cursor: pointer; }
.btn-danger { background: #EF4444; color: white; border: none; border-radius: 4px; padding: 0.3rem 0.6rem; font-size: 0.8rem; cursor: pointer; }
.btn-primary-sm { background: var(--accent-primary); color: white; border: none; border-radius: 6px; padding: 0.5rem 1rem; font-size: 0.9rem; cursor: pointer; display: inline-block; text-decoration: none; }

/* Stat Cards */
.stat-card { background: var(--bg-elevated); border: 0.5px solid var(--border-default); border-radius: 12px; padding: 1.25rem; text-align: center; }
.stat-label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--accent-primary); }

/* Forms */
input[type="text"], input[type="password"], input[type="number"], select { background: var(--bg-primary); border: 0.5px solid var(--border-default); border-radius: 6px; padding: 0.5rem; color: var(--text-primary); font-size: 0.875rem; }
label { color: var(--text-tertiary); font-size: 0.85rem; display: block; margin-bottom: 0.25rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.75rem; border-bottom: 0.5px solid var(--border-subtle); }
th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; }

/* Responsive */
@media (max-width: 1024px) {
  .bento-row-1 { grid-template-columns: 1fr; }
  .bento-row-2 { grid-template-columns: repeat(2, 1fr); }
  .bento-row-3 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 44px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 768px) {
  .nav-header { padding: 12px 16px; }
  .nav-logo-img { height: 36px; }

  /* Hide center nav by default on mobile; show via hamburger toggle */
  .nav-center {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #0A0A0F;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    padding: 8px 16px 16px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.2s ease;
    z-index: 99;
  }
  .nav-center.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-center a {
    padding: 14px 8px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-center a:last-child { border-bottom: none; }
  .nav-center a.active {
    color: var(--accent-primary);
    border-bottom-color: rgba(255,51,102,0.2);
  }
  /* Language switch in hamburger menu */
  .nav-lang-mobile {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 0 6px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4px;
  }

  .nav-hamburger {
    display: inline-flex !important;
  }

  /* Compact nav-right on mobile */
  .nav-right { gap: 6px; }
  .credits-pill { font-size: 10px; padding: 4px 8px; }
  .icon-ghost, .avatar { width: 30px; height: 30px; }
  .lang-btn { padding: 4px 8px; font-size: 11px; }
  .nav-cta-secondary { padding: 6px 10px; font-size: 12px; }
  .nav-cta-primary { padding: 6px 12px; font-size: 12px; }

  .hero { padding: 50px 20px 30px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 14px; padding: 0 8px; }
  .hero-logo-img { max-width: 240px !important; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-row .btn-primary,
  .cta-row .btn-secondary { width: 100%; justify-content: center; }

  .bento-row-1, .bento-row-2, .bento-row-3 { grid-template-columns: 1fr; }
  .container, .hero-video-wrap, .bento-wrap, .recent-wrap, .section-header { padding-left: 20px; padding-right: 20px; }

  /* Library */
  .page-header-wrap { padding: 56px 20px 24px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-header-left .page-title { font-size: 28px !important; letter-spacing: 2px !important; }
  .page-header-right { width: 100%; }
  .page-header-right .btn-primary { width: 100%; justify-content: center; }
  .filter-search-bar { flex-direction: column; gap: 10px; padding: 0 20px; }
  .filter-pills { flex-wrap: wrap; }
  .projects-grid { grid-template-columns: repeat(2, 1fr) !important; padding: 0 16px !important; gap: 10px !important; overflow-x: hidden !important; }

  /* Pricing */
  .pricing-subheadline { font-size: 14px !important; padding: 0 12px; }
  .tier-card { padding: 20px !important; }
  .tier-card .tier-price { font-size: 32px !important; }
  .billing-toggle { flex-wrap: wrap; }

  /* Docs */
  .docs-layout { grid-template-columns: 1fr !important; padding: 24px 16px !important; gap: 24px !important; }
  .docs-sidebar { position: relative !important; max-height: 220px; overflow-y: auto; padding: 12px; border: 0.5px solid var(--border-default); border-radius: 10px; }
  .doc-title { font-size: 22px !important; }

  /* Settings */
  .settings-layout { grid-template-columns: 1fr !important; padding: 24px 16px !important; gap: 16px !important; }
  .settings-sidebar { position: relative !important; }
  .settings-card { padding: 18px !important; }

  /* Job Detail tweaks */
  .container[style*="max-width:980px"] { padding: 20px 16px !important; }

  /* Retention banner */
  .retention-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 20px; }
  .retention-cta { text-align: center; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; padding: 24px 16px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 16px; }

  /* Forms */
  .field-input, input[type=email], input[type=text], input[type=password] { font-size: 16px !important; /* prevents iOS zoom */ }
}

@media (max-width: 480px) {
  .nav-header { padding: 10px 12px; }
  .nav-logo-img { height: 30px; }
  .nav-right .lang-btn { display: none; }
  .credits-pill { font-size: 10px; padding: 3px 6px; }

  .hero h1 { font-size: 24px; line-height: 1.15; }
  .hero-logo-img { max-width: 200px !important; }
  /* Konsistente Section-Titles auf Mobile */
  .section-title { font-size: 26px !important; letter-spacing: 1px !important; }
  .topup-title { font-size: 26px !important; letter-spacing: 1px !important; }
  .faq-title { font-size: 26px !important; letter-spacing: 1px !important; }
  .free-title { font-size: 26px !important; letter-spacing: 1px !important; }
  .calc-title { font-size: 24px !important; letter-spacing: 1px !important; }
  .cost-title { font-size: 26px !important; letter-spacing: 1px !important; }
  .page-header-left .page-title { font-size: 24px !important; letter-spacing: 1px !important; }
  /* Library: 1 Spalte auf sehr kleinen Screens */
  .projects-grid { grid-template-columns: 1fr !important; }
}

/* Hamburger button — hidden on desktop, shown on mobile via media query */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  margin-right: 4px;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.06); color: white; }
.nav-hamburger .ham-icon { width: 22px; height: 22px; display: block; }
.nav-hamburger .ham-bar { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }
.nav-hamburger.open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open .ham-bar:nth-child(2) { opacity: 0; }
.nav-hamburger.open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* ── Ultra-Wide ≥1800px ── */
@media (min-width: 1800px) {
  .hero, .hero-video-wrap, .section-header, .bento-wrap, .recent-wrap, .footer-inner, .admin-actionbar { max-width: 1760px; }
}
