/*
  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%);
}

/* ─ PROMO BAR ───────────────────────────────── */

:root { --promo-h: 0px; }
body.has-promo { --promo-h: 40px; }

.promo-bar {
  display: none; /* pokazywane przez JS jeśli nie dismissed */
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 40px;
  z-index: 103;
  background: linear-gradient(90deg, #1a1208 0%, #291808 40%, #1a1208 100%);
  border-bottom: 1px solid var(--orange-line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 40px 0 16px;
  font-size: 0.8125rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  animation: promo-in 0.4s var(--ease);
}

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

.promo-bar-text { color: var(--text-3); }
.promo-bar-text strong { color: var(--text-1); font-weight: 700; }

.promo-bar-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-soft);
  border: 1px solid var(--orange-line);
  border-radius: var(--r-full);
  padding: 2px 10px 2px 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  cursor: pointer;
  transition: background var(--t);
  user-select: all;
}

.promo-bar-code:hover { background: rgba(249,115,22,0.18); }

.promo-bar-copy {
  font-size: 0.6rem;
  color: var(--text-4);
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--t);
}

.promo-bar-code:hover .promo-bar-copy { color: var(--orange); }

.promo-bar-close {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: none;
  border: none;
  color: var(--text-4);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--t), background var(--t);
}

.promo-bar-close:hover { color: var(--text-2); background: var(--bg-hover); }

/* ─ COOKIE BANNER ────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--line-1);
  animation: cookie-in 0.3s var(--ease);
  display: none;
}

.cookie-banner.visible { display: block; }

@keyframes cookie-in {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner-icon {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1;
}

.cookie-banner h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-1);
}

.cookie-banner p {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.55;
  margin-bottom: 16px;
}

.cookie-banner p a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
}

.cookie-btn-accept {
  flex: 1;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 9px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--t);
}
.cookie-btn-accept:hover { background: var(--orange-h); }

.cookie-btn-decline {
  flex: 1;
  background: transparent;
  color: var(--text-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 9px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--t);
}
.cookie-btn-decline:hover { background: var(--bg-hover); color: var(--text-2); border-color: var(--line-3); }

@media (max-width: 480px) {
  .cookie-banner { width: calc(100% - 24px); right: 12px; bottom: 12px; }
  .promo-bar-text .promo-bar-long { display: none; }
}

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

/* Top gradient scrim behind navbar */
body::before {
  content: '';
  position: fixed;
  top: var(--promo-h); left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(10,9,8,0.85) 0%, transparent 100%);
  pointer-events: none;
  z-index: 99;
}

.navbar {
  position: fixed;
  top: var(--promo-h);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(14, 13, 12, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-radius: 0;
  box-shadow: none;
  padding: 0 clamp(20px, 4vw, 64px);
  white-space: nowrap;
  transition:
    height 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

/* Scrolled: solidniejsze tlo */
.navbar.scrolled {
  height: 60px;
  background: rgba(14, 13, 12, 0.94);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom-color: rgba(255,255,255,0.11);
  box-shadow: 0 1px 32px rgba(0,0,0,0.35);
}



/* Compact logo on scroll */
.navbar.scrolled .logo-name { font-size: 0.875rem; }
.navbar.scrolled .logo-mark { width: 26px; height: 26px; }
.navbar.scrolled .nav-link  { font-size: 0.875rem; }
.navbar.scrolled .nav-links { gap: 32px; }
.navbar.scrolled .btn-sm    { padding: 5px 14px; font-size: 0.8125rem; }

/* Navbar inner layout — flex, logo left, links absolute center, buttons right */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

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

.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }

.logo-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.logo-ai { color: var(--orange); }

/* Links: absolutely centered inside the navbar (which is position:fixed = containing block) */
.nav-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  pointer-events: auto;
}

.nav-link {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.15s;
  white-space: nowrap;
  position: relative;
}

.nav-link:hover { color: #fff; }

/* Right side: buttons + lang */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  z-index: 1;
}

.nav-cta-login {
  border-radius: 999px !important;
  font-size: 0.875rem !important;
  padding: 8px 18px !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  background: transparent !important;
  color: rgba(255,255,255,0.8) !important;
}
.nav-cta-login:hover { background: rgba(255,255,255,0.06) !important; color: #fff !important; }

.nav-cta-register {
  border-radius: 999px !important;
  font-size: 0.875rem !important;
  padding: 8px 20px !important;
}

.lang-switch {
  display: flex;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  padding: 4px;
  gap: 2px;
  height: 36px;
  align-items: center;
}

.lang-btn {
  padding: 0 11px;
  height: 26px;
  line-height: 26px;
  border-radius: var(--r-full);
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  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-sep {
  height: 1px;
  background: var(--line-1);
  margin: 8px 4px;
}

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

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

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

.nav-item.active {
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid var(--orange-line);
}

.nav-item .nav-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.7;
}
.nav-item.active .nav-icon { opacity: 1; }

.nav-serie-num {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--bg-hover);
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 800; color: var(--text-3);
  flex-shrink: 0;
}
.nav-item.active .nav-serie-num {
  background: var(--orange-soft);
  border-color: var(--orange-line);
  color: var(--orange);
}

.nav-serie-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--t);
}
.nav-serie-dot[data-s="1"] { background: #f97316; }
.nav-serie-dot[data-s="2"] { background: #3b82f6; }
.nav-serie-dot[data-s="3"] { background: #8b5cf6; }
.nav-serie-dot[data-s="4"] { background: #10b981; }
.nav-item.active .nav-serie-dot { opacity: 1; }
.nav-item:hover .nav-serie-dot  { opacity: 0.8; }

.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-xl);
  padding: 20px 24px;
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), background var(--t);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.stat-card:hover { background: var(--bg-hover); border-color: var(--line-2); }
.stat-card:hover::before { opacity: 1; }

.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 ───────────────────────────── */

/* ── Episode list ─────────────────────────── */
.ep-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* compact row */
.ep-card {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t);
  cursor: pointer;
}
.ep-card:hover { border-color: var(--line-2); }
.ep-card.active { border-color: var(--orange-line); }
.ep-card.locked { opacity: 0.55; }

.ep-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

/* serie color bar */
.ep-num-badge {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: .04em;
}
.ep-num-badge[data-serie="1"] { background: rgba(249,115,22,.12); color: #f97316; }
.ep-num-badge[data-serie="2"] { background: rgba(59,130,246,.12);  color: #3b82f6; }
.ep-num-badge[data-serie="3"] { background: rgba(139,92,246,.12);  color: #8b5cf6; }
.ep-num-badge[data-serie="4"] { background: rgba(16,185,129,.12);  color: #10b981; }

.ep-row-main { flex: 1; min-width: 0; }
.ep-row-title {
  font-size: 0.875rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
  color: var(--text-1);
}
.ep-card.locked .ep-row-title { color: var(--text-3); }
.ep-row-sub {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 0.6875rem; color: var(--text-4);
}

.ep-row-right {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
}
.ep-duration {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-4);
}
.ep-play-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange-soft); border: 1px solid var(--orange-line);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
  flex-shrink: 0;
}
.ep-card:hover .ep-play-btn { background: var(--orange); color: #fff; }
.ep-lock-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-input); border: 1px solid var(--line-1);
  color: var(--text-4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* expandable detail */
.ep-detail {
  display: none;
  padding: 0 16px 14px 64px;
  border-top: 1px solid var(--line-1);
}
.ep-card.expanded .ep-detail { display: block; }
.ep-detail-desc {
  font-size: 0.8125rem; color: var(--text-3); line-height: 1.6;
  margin: 12px 0 10px;
}
.ep-detail-tools {
  display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px;
}
.ep-detail-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
}

.ep-meta { display: none; } /* legacy — unused */
.ep-serie-label { display: none; }
.ep-num { display: none; }
.ep-body { padding: 0; }
.ep-card h3 { margin: 0; font-size: 0.875rem; }
.ep-card p { margin: 0; }
.ep-card-footer { display: none; }

.ep-thumb { display: none; }
.ep-thumb-wave { display: none; }
.ep-thumb-ep { display: none; }
.ep-thumb-play { display: none; }
.ep-thumb-lock { display: none; }

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

.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);
  box-shadow: 0 -1px 0 var(--line-1), 0 -12px 40px rgba(0,0,0,0.4);
  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 FULL-SCREEN OVERLAY NAV ─────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 9, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  padding: 20px 28px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  overflow: hidden;
}

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

/* Top bar: logo + close */
.nav-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-1);
  flex-shrink: 0;
}

.nav-overlay-logo { gap: 8px; }

.nav-overlay-close {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg-input);
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t);
}
.nav-overlay-close:hover { background: var(--bg-hover); color: var(--text-1); border-color: var(--line-3); }

/* Big links */
.nav-overlay-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 8px 0;
}

.nav-overlay-link {
  display: block;
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-4);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-1);
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
  /* stagger-in state */
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    color 0.15s,
    padding-left 0.15s;
}

.nav-overlay-link:last-child { border-bottom: none; }

.nav-overlay-link:hover {
  color: var(--text-1);
  padding-left: 12px;
}

/* stagger in when open */
.nav-overlay.open .nav-overlay-link              { opacity: 1; transform: translateY(0); }
.nav-overlay.open .nav-overlay-link:nth-child(1) { transition-delay: 0.06s; }
.nav-overlay.open .nav-overlay-link:nth-child(2) { transition-delay: 0.12s; }
.nav-overlay.open .nav-overlay-link:nth-child(3) { transition-delay: 0.18s; }
.nav-overlay.open .nav-overlay-link:nth-child(4) { transition-delay: 0.24s; }

/* Bottom: lang + CTAs */
.nav-overlay-bottom {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease) 0.28s, transform 0.4s var(--ease) 0.28s;
}
.nav-overlay.open .nav-overlay-bottom { opacity: 1; transform: translateY(0); }

.nav-overlay-lang {
  display: flex;
  gap: 6px;
}

.nav-overlay-ctas {
  display: flex;
  gap: 10px;
}

/* ─ 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; }

/* Mobile top bar (dashboard) */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  z-index: 101;
  background: rgba(12, 11, 10, 0.97);
  border-bottom: 1px solid var(--line-1);
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}
.mobile-topbar-logo { flex: 1; justify-content: center; }
.mobile-topbar-right { display: flex; align-items: center; min-width: 48px; justify-content: flex-end; }

.sidebar-toggle {
  display: flex;
  position: relative;
  top: auto;
  left: auto;
  z-index: auto;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.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 {
    height: 56px;
    padding: 0 16px;
  }
  .navbar .container {
    width: 100%;
    max-width: 100%;
  }
  .nav-right  { display: none; }
  .nav-center { display: none; }
  .hamburger  { display: flex; }

  /* Hero */
  .lp-hero { padding: calc(var(--promo-h) + 56px + 60px) 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: 56px 0; }
  .lp-section-head { margin-bottom: 32px; }
  .lp-section-head h2 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .lp-cta-block { padding: 56px 20px; }
  .lp-cta-block h2 { font-size: clamp(1.6rem, 7vw, 2.4rem); }

  /* Container padding tighter on mobile */
  .container { padding: 0 16px; }
  .container-sm { padding: 0 16px; }

  /* Dashboard sidebar — slide in */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease);
    z-index: 50;
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-topbar { display: flex; }
  .sidebar-toggle { display: flex; }
  .app-shell { width: 100%; overflow-x: hidden; }
  .main { margin-left: 0; padding: 72px 16px 100px; width: 100%; min-width: 0; }
  .player-bar { left: 0; }
  .kinetic-panel { left: 0; bottom: 72px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .ep-grid { grid-template-columns: 1fr; }
  /* Page header smaller */
  .page-header h2 { font-size: 1.375rem; }
}

/* ─ 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; }
}
