/*
  Akademia AI — Design System
  Based on app.wojciech.io aesthetic
*/

:root {
  --bg:          #0c0b0a;
  --bg-card:     #161412;
  --bg-input:    #1e1b18;
  --bg-hover:    #211e1a;
  --bg-active:   #2a2420;

  --orange:      #f97316;
  --orange-h:    #fb923c;
  --orange-glow: rgba(249, 115, 22, 0.18);
  --orange-soft: rgba(249, 115, 22, 0.10);
  --orange-line: rgba(249, 115, 22, 0.22);

  --text-1:  #ffffff;
  --text-2:  #c4bfba;
  --text-3:  #7a7470;
  --text-4:  #3d3a37;

  --line-1:  rgba(255, 255, 255, 0.06);
  --line-2:  rgba(255, 255, 255, 0.10);
  --line-3:  rgba(255, 255, 255, 0.15);

  --green:   #4ade80;
  --red:     #f87171;
  --blue:    #60a5fa;

  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  --font:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', 'Fira Code', monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.15s var(--ease);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
img { max-width: 100%; display: block; }

/* ─ TYPOGRAPHY ─────────────────────────────── */

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--text-1);
}

.gradient {
  background: linear-gradient(110deg, #fff 0%, #fdba74 45%, var(--orange) 75%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-orange { color: var(--orange); }

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
}

p { color: var(--text-2); font-size: 0.9375rem; }

.label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.mono { font-family: var(--mono); }

/* ─ LAYOUT ──────────────────────────────────── */

.container    { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 680px;  margin: 0 auto; padding: 0 24px; }

/* ─ GLOW BACKGROUND ─────────────────────────── */

.glow-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 75% 10%,  rgba(249, 115, 22, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 60%,  rgba(249, 115, 22, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% -5%,  rgba(249, 115, 22, 0.10) 0%, transparent 60%);
  z-index: 0;
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 30%, transparent 70%);
}

/* ─ NAVBAR ──────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(12, 11, 10, 0.0);
  backdrop-filter: blur(0px) saturate(100%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.navbar.scrolled {
  background: rgba(12, 11, 10, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--line-1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-1);
  flex-shrink: 0;
}

.logo-mark {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--orange);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9375rem;
  color: var(--text-3);
  font-weight: 500;
  transition: color var(--t);
  white-space: nowrap;
}

.nav-link:hover { color: var(--text-1); }

.lang-switch {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 3px 10px;
  border-radius: var(--r-full);
  border: none;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--text-3);
  transition: all var(--t);
}

.lang-btn.active {
  background: var(--orange);
  color: #fff;
}

/* ─ BUTTONS ─────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--r-lg);
  font-size: 0.9375rem;
}
.btn-primary:hover {
  background: var(--orange-h);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-2);
  border: 1px solid var(--line-2);
  padding: 10px 20px;
  border-radius: var(--r-lg);
  font-size: 0.875rem;
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--line-3);
  color: var(--text-1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-3);
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-2);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
  border-radius: var(--r-md);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--r-xl);
}

.btn-xl {
  padding: 16px 40px;
  font-size: 1.0625rem;
  border-radius: var(--r-2xl);
  width: 100%;
}

.btn:disabled { opacity: 0.4; pointer-events: none; }

/* ─ FORM ────────────────────────────────────── */

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: 0.9375rem;
  font-family: var(--font);
  transition: border-color var(--t), background var(--t);
  outline: none;
}

.form-input:focus {
  border-color: var(--orange);
  background: var(--bg-hover);
}

.form-input::placeholder { color: var(--text-4); }

.form-group { margin-bottom: 14px; }

.form-error {
  font-size: 0.75rem;
  color: var(--red);
  margin-top: 5px;
  display: none;
}
.form-error.show { display: block; }

/* ─ ALERTS ──────────────────────────────────── */

.alert {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  display: none;
  margin-bottom: 14px;
}
.alert.show { display: block; }
.alert-ok  { background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74,222,128,0.2); color: var(--green); }
.alert-err { background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248,113,113,0.2); color: var(--red); }

/* ─ HERO ────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 56px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid var(--orange-line);
  padding: 5px 12px;
  border-radius: var(--r-full);
  margin-bottom: 18px;
}

.live-dot {
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 { margin-bottom: 16px; }

.hero-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-proof {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line-1);
}

.proof-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
}

.proof-label {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 3px;
}

/* ─ MINI PLAYER (hero visual) ───────────────── */

.player-preview {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  overflow: hidden;
}

.pp-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pp-serie {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--orange);
}

.pp-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  color: var(--text-3);
}

.pp-body { padding: 18px 18px 14px; }

.pp-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 3px;
}

.pp-host {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 16px;
}

.pp-waveform {
  height: 40px;
  background: var(--bg-input);
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 2px;
  overflow: hidden;
}

.pp-bar {
  flex: 1;
  border-radius: 1px;
  background: var(--line-2);
  transition: background 0.3s;
}

.pp-bar.played { background: var(--orange); opacity: 0.6; }
.pp-bar.current {
  background: var(--orange);
  animation: ppbar 0.7s ease-in-out infinite alternate;
}

@keyframes ppbar {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

.pp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pp-time {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
}

.pp-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pp-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-input);
  color: var(--text-3);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t);
}

.pp-btn:hover { background: var(--bg-hover); color: var(--text-2); }

.pp-btn.play {
  background: var(--orange);
  color: #fff;
  width: 38px;
  height: 38px;
  font-size: 0.875rem;
}

.pp-btn.play:hover { background: var(--orange-h); }

.pp-playlist {
  border-top: 1px solid var(--line-1);
  padding: 10px 14px 14px;
}

.pp-ep {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t);
}

.pp-ep:hover { background: var(--bg-hover); }
.pp-ep.active { background: var(--orange-soft); }

.pp-ep-num {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--text-3);
  width: 32px;
  flex-shrink: 0;
}

.pp-ep-title {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-ep-dur {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--text-3);
}

.pp-ep-lock {
  font-size: 0.6875rem;
  color: var(--text-4);
}

/* ─ SECTION HEADER ──────────────────────────── */

.section-header {
  margin-bottom: 48px;
}

.section-header h2 { margin-bottom: 8px; }
.section-header p { max-width: 500px; }

/* ─ FEATURE GRID ────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.feature-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  transition: background var(--t);
}

.feature-cell:hover { background: var(--bg-card); }
.feature-cell:nth-child(3n) { border-right: none; }
.feature-cell:nth-last-child(-n+3) { border-bottom: none; }

.feature-cell h3 { margin-bottom: 8px; }
.feature-cell p { font-size: 0.875rem; line-height: 1.65; }

/* ─ SERIES LIST ─────────────────────────────── */

.series-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.series-card {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  cursor: pointer;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.series-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 60%, rgba(249,115,22,0.06));
  opacity: 0;
  transition: opacity var(--t);
}
.series-card:hover::before { opacity: 1; }

.series-card:hover {
  border-color: var(--orange-line);
  background: var(--bg-hover);
  transform: translateX(4px);
}

.series-num {
  font-size: 4rem;
  font-weight: 900;
  font-family: var(--mono);
  background: linear-gradient(180deg, var(--orange), rgba(249,115,22,0.25));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  width: 84px;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}
.series-info, .series-badge { position: relative; z-index: 1; }

.series-info { flex: 1; }
.series-info h3 { margin-bottom: 4px; }
.series-tools {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: 10px;
}

.series-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid var(--orange-line);
  letter-spacing: 0.02em;
}

.series-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-free {
  background: rgba(74,222,128,0.1);
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.2);
}

.badge-pro {
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid var(--orange-line);
}

/* ─ PRICING ─────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  position: relative;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
}
.price-card:not(.featured):hover {
  border-color: var(--line-3);
}

.price-card:hover { transform: translateY(-3px); }

.price-card.featured {
  border-color: var(--orange);
  background:
    linear-gradient(165deg, rgba(249,115,22,0.10), rgba(249,115,22,0.02) 60%),
    var(--bg-card);
  box-shadow: 0 0 0 1px var(--orange), 0 20px 60px -20px rgba(249,115,22,0.35);
  transform: scale(1.02);
}

.price-top-label {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.price-tier {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.price-featured-tier { color: var(--orange); }

.price-amount {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-1);
}

.price-amount sub {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-3);
  vertical-align: super;
  font-size: 1rem;
}

.price-period {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin: 4px 0 20px;
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.price-list li {
  font-size: 0.875rem;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.price-list li .check { color: var(--green); flex-shrink: 0; font-size: 0.75rem; margin-top: 2px; }
.price-list li .cross { color: var(--text-4); flex-shrink: 0; font-size: 0.75rem; margin-top: 2px; }
.price-list li.off    { color: var(--text-3); }

/* ─ AUTH PAGE ───────────────────────────────── */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  padding: 36px;
  width: 100%;
  max-width: 420px;
}

.auth-card-top {
  text-align: center;
  margin-bottom: 28px;
}

.auth-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.auth-sub {
  font-size: 0.875rem;
  color: var(--text-3);
}

.auth-footer-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: 18px;
}

.auth-footer-note a { color: var(--orange); }

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--orange-soft);
  border: 1px solid var(--orange-line);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin-top: 14px;
  font-size: 0.78125rem;
  color: var(--text-3);
  line-height: 1.5;
}

.demo-box {
  background: var(--bg-input);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 0.8125rem;
}

.demo-box-label {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 8px;
  font-weight: 500;
}

.demo-accounts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-account-btn {
  background: var(--bg-hover);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  text-align: left;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--t);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-account-btn:hover {
  background: var(--bg-active);
  border-color: var(--orange-line);
  color: var(--text-1);
}

.demo-pass {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 6px;
}

/* ─ APP SHELL (dashboard) ───────────────────── */

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: var(--bg-card);
  border-right: 1px solid var(--line-1);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-top {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-1);
}

.sidebar-nav {
  flex: 1;
  padding: 10px;
}

.nav-group {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  padding: 10px 8px 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t);
  border: 1px solid transparent;
  margin-bottom: 1px;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-2);
}

.nav-item.active {
  background: var(--orange-soft);
  border-color: var(--orange-line);
  color: var(--orange);
  font-weight: 600;
}

.nav-item .nav-icon {
  width: 16px;
  text-align: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.nav-count {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 700;
  background: var(--orange);
  color: #fff;
  padding: 1px 6px;
  border-radius: var(--r-full);
}

/* Sidebar progress */
.sidebar-progress {
  padding: 14px 18px;
  border-top: 1px solid var(--line-1);
}

.sp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.sp-label {
  font-size: 0.75rem;
  color: var(--text-3);
}

.sp-pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  font-family: var(--mono);
}

.progress-bar {
  height: 3px;
  background: var(--line-1);
  border-radius: var(--r-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--orange);
  transition: width 0.6s var(--ease);
}

/* Sidebar user */
.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8125rem;
  flex-shrink: 0;
  color: #fff;
}

.user-meta { flex: 1; min-width: 0; }

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-plan {
  font-size: 0.6875rem;
  color: var(--orange);
  font-weight: 600;
}

.user-plan.free { color: var(--text-3); }

.logout-btn {
  background: none;
  border: none;
  color: var(--text-4);
  font-size: 0.9375rem;
  padding: 4px;
  cursor: pointer;
  transition: color var(--t);
  border-radius: var(--r-sm);
}

.logout-btn:hover { color: var(--red); }

/* Main content */
.main {
  margin-left: 240px;
  flex: 1;
  padding: 32px 32px 96px;
  position: relative;
  z-index: 1;
}

.page-header {
  margin-bottom: 28px;
}

.page-header h2 { margin-bottom: 3px; }
.page-header p { font-size: 0.875rem; }

/* ─ STATS ROW ───────────────────────────────── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-1);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* ─ EPISODE CARDS ───────────────────────────── */

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

.ep-card {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t);
}

.ep-card:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}

.ep-card.locked { opacity: 0.6; }

.ep-thumb {
  height: 96px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  border-bottom: 1px solid var(--line-1);
}

.ep-thumb-lock {
  position: absolute;
  inset: 0;
  background: rgba(12,11,10,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-3);
}

.ep-body { padding: 16px; }

.ep-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.ep-serie-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--orange);
}

.ep-num {
  font-size: 0.625rem;
  color: var(--text-4);
  font-family: var(--mono);
}

.ep-card h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
  line-height: 1.4;
}

.ep-card p {
  font-size: 0.8125rem;
  line-height: 1.55;
  margin-bottom: 12px;
}

.ep-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ep-duration {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}

.ep-progress-wrap {
  margin-bottom: 10px;
}

.ep-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--text-3);
  font-family: var(--mono);
  margin-bottom: 4px;
}

/* ─ QUIZ MODAL ──────────────────────────────── */

.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12, 11, 10, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.quiz-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.quiz-panel {
  background: var(--bg-card);
  border: 1px solid var(--orange-line);
  border-radius: var(--r-2xl);
  padding: 36px;
  width: 100%;
  max-width: 560px;
}

.quiz-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.quiz-q-text {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.quiz-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.quiz-step {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
  white-space: nowrap;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--bg-input);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--t);
}

.quiz-option:hover {
  border-color: var(--orange-line);
  background: var(--orange-soft);
}

.quiz-option.selected { border-color: var(--orange); background: var(--orange-soft); }
.quiz-option.correct  { border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.07); }
.quiz-option.wrong    { border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.07); }

.quiz-key {
  width: 26px;
  height: 26px;
  border-radius: var(--r-sm);
  background: var(--bg-hover);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-feedback {
  font-size: 0.875rem;
  flex: 1;
}

.quiz-feedback.ok  { color: var(--green); }
.quiz-feedback.err { color: var(--red); }

.quiz-result-view {
  text-align: center;
  padding: 8px 0;
}

.quiz-result-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  line-height: 1;
}

.quiz-result-view h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.quiz-score {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--orange);
  font-family: var(--mono);
  margin: 10px 0;
}

.quiz-result-view p {
  font-size: 0.9rem;
  margin-bottom: 22px;
}

/* ─ VAULT ────────────────────────────────────── */

.vault-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

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

.vault-card {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all var(--t);
}

.vault-card:hover {
  border-color: var(--orange-line);
  background: var(--bg-hover);
}

.vault-card.locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.vault-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.vi-md   { background: rgba(249,115,22,0.12); }
.vi-json { background: rgba(96,165,250,0.12); }
.vi-pdf  { background: rgba(248,113,113,0.1); }
.vi-zip  { background: rgba(234,179,8,0.1);   }

.vault-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.vault-info p { font-size: 0.78125rem; line-height: 1.5; }

.vault-ext {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 6px;
  display: inline-block;
  letter-spacing: 0.04em;
}

.ext-md   { background: rgba(249,115,22,0.1);  color: var(--orange); }
.ext-json { background: rgba(96,165,250,0.1);  color: var(--blue); }
.ext-pdf  { background: rgba(248,113,113,0.1); color: var(--red); }
.ext-zip  { background: rgba(234,179,8,0.1);   color: #eab308; }

/* ─ CERTIFICATE ─────────────────────────────── */

.cert-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}

.certificate {
  background: var(--bg-card);
  border: 1px solid var(--orange-line);
  border-radius: var(--r-2xl);
  padding: 56px 64px;
  max-width: 680px;
  width: 100%;
  text-align: center;
  position: relative;
}

.cert-inner-border {
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid var(--line-1);
  pointer-events: none;
}

.cert-logo-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
}

.cert-verbiage {
  font-size: 0.9375rem;
  color: var(--text-3);
  margin-bottom: 10px;
}

.cert-name {
  font-size: 2.5rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.cert-series-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 28px;
}

.cert-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange-line), transparent);
  margin: 24px 0;
}

.cert-facts {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 28px;
}

.cert-fact-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.cert-fact-val {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-1);
}

.cert-stamp-ring {
  width: 72px;
  height: 72px;
  border: 2px solid var(--orange-line);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-10deg);
  color: var(--orange);
}

.stamp-top    { font-size: 0.45rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.stamp-middle { font-size: 0.9rem;  font-weight: 900; }
.stamp-bottom { font-size: 0.45rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.cert-signature {
  margin-bottom: 28px;
}

.sig-name {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.75rem;
  color: var(--text-1);
  margin-bottom: 4px;
}

.sig-title {
  font-size: 0.8125rem;
  color: var(--text-3);
}

.cert-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.cert-id {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--text-4);
  margin-top: 20px;
}

/* ─ KINETIC TYPOGRAPHY ──────────────────────── */

.kinetic-panel {
  position: fixed;
  bottom: 68px;
  left: 240px;
  right: 0;
  z-index: 98;
  background: rgba(12, 11, 10, 0.94);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line-1);
  padding: 10px 28px;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  line-height: 1.9;
  min-height: 44px;
}

.kw {
  font-size: 0.875rem;
  color: var(--text-4);
  transition: color 0.18s var(--ease);
}

.kw-past { color: var(--text-3); }

.kw-active {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.9375rem;
  animation: kw-pop 0.12s ease-out;
}

@keyframes kw-pop {
  from { opacity: 0.4; transform: translateY(3px); }
  to   { opacity: 1;   transform: translateY(0); }
}

@media (max-width: 900px) {
  .kinetic-panel { left: 0; bottom: 68px; }
}

/* ─ PLAYER BAR ──────────────────────────────── */

.player-bar {
  position: fixed;
  bottom: 0;
  left: 240px;
  right: 0;
  z-index: 100;
  height: 68px;
  background: rgba(22, 20, 18, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line-2);
  display: none;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
}

.pb-info {
  flex: 1;
  min-width: 0;
}

.pb-serie {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.pb-title {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 300px;
}

.pb-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pb-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--bg-input);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  cursor: pointer;
  transition: all var(--t);
}

.pb-btn:hover { background: var(--bg-hover); color: var(--text-2); }

.pb-btn.play-btn {
  background: var(--orange);
  color: #fff;
  width: 38px;
  height: 38px;
  font-size: 0.875rem;
}

.pb-btn.play-btn:hover { background: var(--orange-h); }

.pb-seek-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pb-track {
  flex: 1;
  height: 3px;
  background: var(--line-1);
  border-radius: var(--r-full);
  cursor: pointer;
  position: relative;
}

.pb-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--orange);
  transition: width 0.1s;
}

.pb-time {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  white-space: nowrap;
}

.pb-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pb-speed-btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
  background: var(--bg-input);
  border: 1px solid var(--line-1);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t);
  border: none;
}

.pb-speed-btn:hover { color: var(--orange); }

.pb-vol {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-3);
}

.pb-vol input {
  width: 64px;
  accent-color: var(--orange);
}

/* ─ TOAST ────────────────────────────────────── */

.toast-stack {
  position: fixed;
  bottom: 80px;
  right: 18px;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  pointer-events: none;
}

.toast {
  background: var(--bg-hover);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 10px 14px;
  font-size: 0.875rem;
  max-width: 300px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: toast-in 0.2s var(--ease);
}

.toast.ok  { border-left: 2px solid var(--green); }
.toast.err { border-left: 2px solid var(--red); }

@keyframes toast-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ─ SECTION CONTENT ─────────────────────────── */

.section-content { display: none; }
.section-content.active { display: block; }

/* ─ FOOTER ──────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line-1);
  padding: 36px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-3);
  transition: color var(--t);
}

.footer-links a:hover { color: var(--text-2); }

.footer-sep {
  color: var(--text-4);
  font-size: 0.75rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-4);
}

/* ─ TRANSFORM SECTION ───────────────────────── */

.transform-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.transform-header {
  display: grid;
  grid-template-columns: 1fr 180px 48px 180px;
  gap: 0;
  padding: 12px 32px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line-1);
}

.transform-col-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.transform-col-label.before { color: var(--text-4); }
.transform-col-label.after  { color: var(--orange); }

.transform-row {
  display: grid;
  grid-template-columns: 1fr 180px 48px 180px;
  gap: 0;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line-1);
  transition: background var(--t);
}

.transform-row:last-child { border-bottom: none; }
.transform-row:hover { background: var(--bg-card); }

.transform-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-1);
}

.transform-sublabel {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 2px;
}

.transform-before {
  font-family: var(--mono);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-4);
  text-decoration: line-through;
  text-decoration-color: rgba(61,58,55,0.6);
}

.transform-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-4);
  font-size: 1rem;
}

.transform-after {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.transform-after-num {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.transform-after-unit {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orange);
  opacity: 0.75;
}

.transform-saving {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(74,222,128,0.7);
  margin-top: 3px;
  display: block;
}

@media (max-width: 700px) {
  .transform-header { display: none; }
  .transform-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 16px;
    padding: 16px 20px;
  }
  .transform-label   { grid-column: 1; grid-row: 1; }
  .transform-before  { grid-column: 1; grid-row: 2; font-size: 1rem; }
  .transform-arrow   { display: none; }
  .transform-after   { grid-column: 2; grid-row: 1 / 3; flex-direction: column; align-items: flex-end; }
  .transform-after-num { font-size: 2rem; }
}

/* ─ HOST SECTION ─────────────────────────────── */

.host-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.host-card {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--t);
  position: relative;
}

.host-card:hover { transform: translateY(-2px); border-color: var(--line-3); }

.host-card--main {
  grid-column: span 3;
  border-color: var(--orange-line);
  background: linear-gradient(150deg, rgba(249,115,22,0.06), transparent 60%), var(--bg-card);
}

.host-card--ai {
  grid-column: span 3;
  border-color: rgba(96,165,250,0.2);
  background: linear-gradient(150deg, rgba(96,165,250,0.05), transparent 60%), var(--bg-card);
}

.host-card--guest {
  grid-column: span 2;
  opacity: 0.6;
}

.host-card--guest:hover { opacity: 0.85; }

.host-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9375rem;
  margin-bottom: 4px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.host-avatar--main  { background: var(--orange); color: #fff; }

.host-avatar--ai {
  background: rgba(96,165,250,0.12);
  border: 1px solid rgba(96,165,250,0.25);
  color: var(--blue);
}

.host-avatar--guest {
  background: var(--bg-input);
  border: 1px dashed var(--line-2);
  color: var(--text-4);
  font-size: 1.25rem;
}

.host-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
}

.host-role {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 2px;
}

.host-bio {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.host-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.host-cred {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid var(--orange-line);
  letter-spacing: 0.02em;
}

.host-card--ai .host-cred {
  background: rgba(96,165,250,0.08);
  color: var(--blue);
  border-color: rgba(96,165,250,0.18);
}

.host-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orange);
  margin-top: 4px;
  transition: opacity var(--t);
  align-self: flex-start;
}

.host-link:hover { opacity: 0.7; }

.host-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(96,165,250,0.1);
  color: var(--blue);
  border: 1px solid rgba(96,165,250,0.22);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-full);
}

.host-soon {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-4);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ─ RESPONSIVE ───────────────────────────────── */

/* ─ HAMBURGER BUTTON ────────────────────────── */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--r-md);
  transition: background var(--t);
}

.hamburger:hover { background: var(--bg-hover); }

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 1px;
  transition: all 0.25s var(--ease);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  z-index: 99;
  background: rgba(12, 11, 10, 0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line-1);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  display: block;
  padding: 11px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-md);
  transition: all var(--t);
  text-decoration: none;
}

.mobile-nav-link:hover { background: var(--bg-hover); color: var(--text-1); }

.mobile-nav-divider {
  height: 1px;
  background: var(--line-1);
  margin: 8px 0;
}

.mobile-nav-lang {
  display: flex;
  gap: 8px;
  padding: 4px 12px;
}

/* ─ SIDEBAR MOBILE TOGGLE ───────────────────── */

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12,11,10,0.7);
  z-index: 49;
  backdrop-filter: blur(4px);
}

.sidebar-overlay.show { display: block; }

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 101;
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.sidebar-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 1px;
  transition: all 0.2s;
}

/* ─ RESPONSIVE: TABLET (≤1024px) ────────────── */

@media (max-width: 1024px) {
  /* Landing bento */
  .bento-span-7  { grid-column: span 12; }
  .bento-span-5  { grid-column: span 12; }
  .bento-span-8  { grid-column: span 12; }
  .bento-span-4  { grid-column: span 12; }

  /* Landing series */
  .series-grid { grid-template-columns: 1fr; gap: 10px; }

  /* Pricing */
  .pricing-v2 { grid-template-columns: 1fr; max-width: 460px; }

  /* Host */
  .host-section { grid-template-columns: 1fr; gap: 32px; }
  .host-guests  { grid-template-columns: repeat(3, 1fr); }

  /* Product mockup */
  .mock-body { height: 280px; }
  .mock-sidebar { width: 160px; }
  .mock-player { padding-left: 172px; }
}

/* ─ RESPONSIVE: MOBILE (≤768px) ─────────────── */

@media (max-width: 768px) {
  /* Navbar: hide links, show hamburger */
  .nav-right { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .lp-hero { padding: 120px 20px 60px; }
  .lp-h1   { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .lp-sub  { font-size: 0.9375rem; }
  .lp-cta-row { gap: 8px; }
  .lp-cta-row .btn-lg { padding: 12px 24px; font-size: 0.9375rem; }

  /* Product mockup — slim */
  .product-mockup { border-radius: 12px; }
  .mock-sidebar { display: none; }
  .mock-body { grid-template-columns: 1fr; height: auto; }
  .mock-content { padding: 14px; }
  .mock-player { padding-left: 16px; }
  .mock-pb-track { display: none; }

  /* Bento stays single col (already set above) */

  /* Series */
  .sc2-num { font-size: 3.5rem; }

  /* Pricing */
  .pricing-v2 { max-width: 100%; padding: 0 4px; }

  /* Host */
  .host-guests { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Inspiration grid: single column on mobile */
  .inspiration-grid { grid-template-columns: 1fr; gap: 2px; }
  .inspiration-card:first-child { border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .inspiration-card:nth-child(2) { border-radius: 0; }
  .inspiration-card:nth-child(3) { border-radius: 0; }
  .inspiration-card:last-child { border-radius: 0 0 var(--r-xl) var(--r-xl); }

  /* Demo card */
  .demo-card { padding: 28px 22px; }

  /* Logo bar */
  .logo-bar-track { gap: 8px; }
  .tool-chip { font-size: 0.75rem; padding: 5px 10px; }

  /* Sections */
  .lp-section { padding: 80px 0; }
  .lp-section-head { margin-bottom: 40px; }
  .lp-cta-block { padding: 80px 20px; }
  .lp-cta-block h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); }

  /* Dashboard sidebar — slide in */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease);
    z-index: 50;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .main { margin-left: 0; padding: 70px 16px 96px; }
  .player-bar { left: 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .ep-grid { grid-template-columns: 1fr; }
}

/* ─ RESPONSIVE: SMALL MOBILE (≤480px) ───────── */

@media (max-width: 480px) {
  .lp-h1 { letter-spacing: -0.04em; }

  .host-guests { grid-template-columns: 1fr; }

  .bento-card { padding: 20px; }
  .bento-big-num { font-size: 3.5rem; }

  .sc2-ep-count { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sc2-ep-count .btn { align-self: flex-start; }

  .stats-row { grid-template-columns: 1fr 1fr; }

  /* Cert */
  .certificate { padding: 32px 20px; }
  .cert-facts { gap: 24px; flex-wrap: wrap; justify-content: center; }

  /* Player bar compact */
  .pb-right { display: none; }
  .pb-info  { display: none; }
}

@media (max-width: 900px) {
  .hero-inner,
  .feature-grid,
  .pricing-grid { grid-template-columns: 1fr; }

  .feature-grid { border: none; gap: 1px; }
  .feature-cell { border: 1px solid var(--line-1); border-radius: var(--r-lg); }

  .host-grid { grid-template-columns: 1fr 1fr; }
  .host-card--main,
  .host-card--ai   { grid-column: span 2; }
  .host-card--guest { grid-column: span 1; }
}

@media (max-width: 600px) {
  .host-grid { grid-template-columns: 1fr; }
  .host-card--main,
  .host-card--ai,
  .host-card--guest { grid-column: span 1; }
}

@media print {
  .sidebar, .player-bar, .navbar { display: none !important; }
  .main { margin-left: 0 !important; }
  .certificate { box-shadow: none; border-color: #ccc; }
}
