/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Light mode (default) */
  --bg:          #f8fafc;
  --surface:     #ffffff;
  --border:      #e2e8f0;
  --text:        #0f172a;
  --muted:       #64748b;
  --accent:      #0ea5e9;
  --accent-hover:#0284c7;
  --accent2:     #0284c7;
  --danger:      #ef4444;
  --success:     #22c55e;
  --radius:      16px;
  --light:       #f8fafc;
  --dk-text:     #ffffff;
  --dk-muted:    #cbd5e1;
}

.dark {
  /* Dark mode */
  --bg:          #060e1c;
  --surface:     #0c1a2e;
  --border:      #132033;
  --text:        #ddeeff;
  --muted:       #5b7a9d;
  --accent:      #0ea5e9;
  --accent-hover:#38bdf8;
  --accent2:     #38bdf8;
  --danger:      #ef4444;
  --success:     #22c55e;
  --radius:      16px;
  --light:       #f0f9ff;
  --dk-text:     #060e1c;
  --dk-muted:    #334155;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }

/* Navigation is handled by Tailwind now via base.html */

/* ===== NAV PILL (glass) ===== */
.nav-pill {
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 24px rgba(0,0,0,0.05);
}
.dark .nav-pill {
  background: rgba(255,255,255,0.03);
  -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(0.4);
  backdrop-filter: blur(24px) saturate(180%) brightness(0.4);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 4px 24px rgba(0,0,0,0.15);
}
.lp-nav-links {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.lp-logo-text,
.lp-nav-links,
.lp-nav-links a,
.lp-nav-sign-in {
  transition: color 0.35s ease, text-shadow 0.35s ease;
}
nav.nav-over-light .lp-logo-text { color: #0ea5e9; }
nav.nav-over-light .lp-nav-links { color: #0f172a; text-shadow: none; }
nav.nav-over-light .lp-nav-links a:hover { color: #0ea5e9; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.14); color: var(--muted); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-sm { padding: 0.28rem 0.7rem; font-size: 0.8rem; }
.btn-lg { font-size: 1rem; padding: 0.75rem 1.75rem; gap: 0.6rem; }
.btn-full { width: 100%; justify-content: center; padding: 0.85rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; padding: 0.75rem; }

/* ===== AVATARS ===== */
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.avatar-placeholder { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: #fff; }

/* ===== NOTIFICATION BELL ===== */
.notif-bell { position: relative; display: flex; align-items: center; }
.notif-bell a { display: flex; align-items: center; padding: 0.3rem; border-radius: 6px; color: var(--muted); transition: color 0.15s; }
.notif-bell a:hover { color: var(--text); }
.notif-badge {
  display: none;
  position: absolute;
  top: -2px; right: -2px;
  background: var(--danger);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.notif-badge.visible { display: flex; }

/* ===== SEARCH ===== */
.search-form { display: flex; align-items: center; gap: 0.25rem; }
.search-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  font-size: 0.8rem;
  outline: none;
  width: 160px;
  transition: border-color 0.15s, width 0.2s;
  font-family: inherit;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--accent); width: 210px; }

/* ===== DROPDOWN ===== */
.dropdown { position: relative; }
.dropdown-toggle { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; color: var(--text); }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 168px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  z-index: 100;
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item { display: block; padding: 0.6rem 1rem; font-size: 0.85rem; color: var(--muted); transition: color 0.1s, background 0.1s; }
.dropdown-item:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.dropdown-item-accent { color: var(--accent); }
.dropdown-divider { border-top: 1px solid var(--border); }

/* ===== MAIN LAYOUT ===== */
main { max-width: 1200px; margin: 0 auto; padding: 88px 1.5rem 2rem; }
main.main-full { max-width: 100%; padding: 0; }
.page-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.5rem; }

/* ===== MESSAGES ===== */
.messages { padding: 0 1.5rem; margin-top: 0.75rem; max-width: 1200px; margin-left: auto; margin-right: auto; }
.message { padding: 0.65rem 1rem; border-radius: 7px; font-size: 0.875rem; margin-bottom: 0.5rem; }
.message-success { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.25); color: var(--success); }
.message-error { background: rgba(255,90,90,0.1); border: 1px solid rgba(255,90,90,0.25); color: var(--danger); }

/* ===== CARDS ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-padded { padding: 1.75rem; margin-bottom: 1.25rem; }
.card-lg { padding: 2.5rem; }

/* ===== VIDEO GRID ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.video-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.video-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.video-thumb { aspect-ratio: 16/9; background: var(--border); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { color: var(--muted); font-size: 2rem; }
.thumb-badge-private { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,0.65); color: #fff; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 4px; pointer-events: none; }
.badge-status { position: absolute; top: 8px; right: 8px; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 999px; }
.badge-processing { background: rgba(14,165,233,0.2); color: var(--accent); border: 1px solid var(--accent); }
.badge-failed { background: rgba(255,90,90,0.2); color: var(--danger); border: 1px solid var(--danger); }
.video-info { padding: 0.75rem 0.9rem; }
.video-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.dot { width: 3px; height: 3px; background: var(--muted); border-radius: 50%; }
.badge-vis {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(0,0,0,0.7);
  position: absolute;
  top: 8px; right: 8px;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.1rem; }
label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-bottom: 0.4rem; }
input[type=text],
input[type=email],
input[type=url],
input[type=password],
select,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
input[type=search] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
select option { background: var(--surface); }
textarea { resize: vertical; }
input[type=file] { padding: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.4rem; }
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 0.3rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===== TABS ===== */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn { background: none; border: none; color: var(--muted); padding: 0.65rem 1rem; cursor: pointer; font-size: 0.875rem; border-bottom: 2px solid transparent; transition: color 0.15s; font-family: inherit; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 4rem 2rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.empty-state h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.empty-state p { font-size: 0.875rem; margin-bottom: 1.5rem; color: var(--muted); }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 4rem;
}
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.28); text-align: center; }
.footer-links { display: flex; gap: 1.5rem; justify-content: flex-end; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.28); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.65); }

/* ===== UTILITY ===== */
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-accent { color: var(--accent); }


/* ================================================================
   LANDING PAGE SECTIONS (home.html — unauthenticated)
================================================================ */

/* ── Hero ── */
.lp-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.lp-hero-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 700px;
  background: radial-gradient(ellipse at 50% 25%, rgba(14,165,233,0.1) 0%, rgba(14,165,233,0.03) 50%, transparent 70%);
  pointer-events: none;
}
.lp-hero-orb-l {
  position: absolute;
  top: 28%; left: 4%;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(14,165,233,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.lp-hero-orb-r {
  position: absolute;
  top: 38%; right: 3%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(56,189,248,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.lp-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.22);
  border-radius: 999px;
  padding: 0.38rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 2.25rem;
}
.lp-eyebrow-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: lp-pulse 2.4s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.7); }
}
.lp-h1 {
  position: relative;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 1.75rem;
}
.lp-h1 .lp-blue { color: var(--accent2); display: block; }
.lp-sub {
  position: relative;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.75rem;
  line-height: 1.7;
}
.lp-btns {
  position: relative;
  display: flex;
  gap: 0.875rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 5rem;
}
.lp-btn-fill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 600; padding: 0.875rem 2rem;
  border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; font-family: inherit; letter-spacing: -0.01em;
  background: var(--accent); color: #fff;
  box-shadow: 0 0 40px rgba(14,165,233,0.3), 0 2px 8px rgba(14,165,233,0.28);
  transition: all 0.22s ease;
}
.lp-btn-fill:hover {
  background: #18b8fd;
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(14,165,233,0.48), 0 4px 16px rgba(14,165,233,0.35);
}
.lp-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 600; padding: 0.875rem 2rem;
  border-radius: 999px; cursor: pointer; text-decoration: none;
  font-family: inherit; letter-spacing: -0.01em;
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.14);
  transition: all 0.22s ease;
}
.lp-btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Wave animation ── */
.lp-waves {
  width: 100%; height: 200px;
  overflow: hidden; flex-shrink: 0;
  position: relative;
}
.lp-wave-svg {
  position: absolute;
  bottom: 0; left: 0;
  width: 200%; height: 100%;
}
.lp-w1 { animation: lp-wave 16s linear infinite; }
.lp-w2 { animation: lp-wave 11s linear infinite reverse; opacity: 0.55; }
.lp-w3 { animation: lp-wave 22s linear infinite; opacity: 0.38; }
@keyframes lp-wave {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Shared section styles ── */
.lp-section { padding: 7rem 2rem; }
.lp-light { background: var(--light); }
.lp-dark  { background: var(--bg); }
.lp-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.lp-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.875rem;
}
.lp-h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.15; margin-bottom: 0.875rem;
}
.lp-light .lp-h2 { color: var(--dk-text); }
.lp-dark  .lp-h2 { color: #fff; }
.lp-desc {
  font-size: 1.05rem; max-width: 470px;
  margin: 0 auto 3.5rem; line-height: 1.7;
}
.lp-light .lp-desc { color: var(--dk-muted); }
.lp-dark  .lp-desc { color: var(--muted); }

/* ── How it works cards ── */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step {
  background: #fff;
  border-radius: 22px;
  padding: 2.25rem 2rem;
  text-align: left;
  box-shadow: 0 2px 12px rgba(6,14,28,0.05), 0 8px 32px rgba(6,14,28,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lp-step:hover { transform: translateY(-5px); box-shadow: 0 12px 48px rgba(6,14,28,0.12); }
.lp-step-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(56,189,248,0.07));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.lp-step-num {
  display: block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.4rem;
}
.lp-step h3 { font-size: 1.05rem; font-weight: 700; color: var(--dk-text); margin-bottom: 0.55rem; letter-spacing: -0.01em; }
.lp-step p  { font-size: 0.875rem; color: var(--dk-muted); line-height: 1.7; }

/* ── Upload / try it ── */
.lp-upload-outer { position: relative; max-width: 580px; margin: 0 auto; }
.lp-upload-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse, rgba(14,165,233,0.14) 0%, transparent 65%);
  border-radius: 60px; pointer-events: none;
}
.lp-upload-card {
  position: relative;
  background: rgba(14,165,233,0.025);
  border: 1.5px dashed rgba(14,165,233,0.38);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  text-align: center;
}
.lp-upload-card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; width: 76%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.32), transparent);
}
.lp-upload-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, rgba(14,165,233,0.16), rgba(56,189,248,0.08));
  border-radius: 20px;
  border: 1px solid rgba(14,165,233,0.22);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.75rem;
}
.lp-upload-card h2 { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.6rem; }
.lp-upload-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }
.lp-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  color: #fff; font-size: 0.95rem; font-family: inherit;
  outline: none; margin-bottom: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-input::placeholder { color: rgba(255,255,255,0.26); }
.lp-input:focus { border-color: rgba(14,165,233,0.48); box-shadow: 0 0 0 3px rgba(14,165,233,0.08); }
.lp-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.75rem; }
.lp-pill {
  padding: 0.32rem 0.9rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.22);
  color: var(--accent2);
}
.lp-gen-btn {
  display: block; width: 100%; text-decoration: none;
  background: var(--accent); color: #fff;
  border: none; border-radius: 14px;
  padding: 1rem 1.5rem; font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: inherit; letter-spacing: -0.01em;
  transition: all 0.22s ease;
  box-shadow: 0 0 40px rgba(14,165,233,0.22), 0 2px 8px rgba(14,165,233,0.25);
  text-align: center;
}
.lp-gen-btn:hover {
  background: #18b8fd; transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(14,165,233,0.42), 0 4px 16px rgba(14,165,233,0.3);
}

/* ── Pricing ── */
.lp-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 620px) { .lp-pricing { grid-template-columns: 1fr; } }
.lp-plan { border-radius: 24px; padding: 2.5rem; text-align: left; }
.lp-plan-free {
  background: #fff;
  box-shadow: 0 4px 24px rgba(6,14,28,0.07);
}
.lp-plan-pro {
  background: linear-gradient(160deg, #0e2040 0%, #091525 100%);
  border: 1px solid rgba(14,165,233,0.35);
  box-shadow:
    inset 0 1px 0 rgba(56,189,248,0.12),
    0 0 70px rgba(14,165,233,0.15),
    0 8px 40px rgba(0,0,0,0.45);
  position: relative; overflow: hidden;
}
.lp-plan-pro::before {
  content: '';
  position: absolute; top: 0; left: 15%; width: 70%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.45), transparent);
}
.lp-plan-name { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.lp-plan-amount { font-size: 3.8rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.25rem; }
.lp-plan-free .lp-plan-amount { color: var(--dk-text); }
.lp-plan-pro  .lp-plan-amount { color: #fff; }
.lp-plan-period { font-size: 0.85rem; margin-bottom: 2rem; }
.lp-plan-free .lp-plan-period { color: var(--dk-muted); }
.lp-plan-pro  .lp-plan-period { color: rgba(255,255,255,0.42); }
.lp-plan-list { list-style: none; margin-bottom: 2rem; }
.lp-plan-list li { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0; font-size: 0.9rem; }
.lp-plan-free .lp-plan-list li { color: #2d4060; border-bottom: 1px solid rgba(6,14,28,0.06); }
.lp-plan-pro  .lp-plan-list li { color: rgba(255,255,255,0.78); border-bottom: 1px solid rgba(255,255,255,0.06); }
.lp-chk { flex-shrink: 0; width: 20px; height: 20px; background: rgba(14,165,233,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lp-plan-btn {
  display: block; width: 100%; padding: 0.9rem; border-radius: 14px;
  font-size: 0.95rem; font-weight: 700; text-align: center;
  cursor: pointer; border: none; font-family: inherit;
  text-decoration: none; letter-spacing: -0.01em; transition: all 0.2s;
}
.lp-plan-btn-free { background: transparent; border: 1.5px solid rgba(14,165,233,0.3); color: var(--accent); }
.lp-plan-btn-free:hover { background: rgba(14,165,233,0.07); border-color: rgba(14,165,233,0.6); }
.lp-plan-btn-pro { background: var(--accent); color: #fff; box-shadow: 0 0 30px rgba(14,165,233,0.28); }
.lp-plan-btn-pro:hover { background: #18b8fd; transform: translateY(-2px); box-shadow: 0 0 50px rgba(14,165,233,0.45); }

/* ── Feed (authenticated home) ── */
.lp-feed { max-width: 1200px; margin: 0 auto; padding: 88px 1.5rem 2rem; }
.feed-label { font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.06em; }


/* ================================================================
   WATCH PAGE
================================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
video::-webkit-media-controls-download-button { display: none !important; }

.watch-container { max-width: 900px; margin: 0 auto; }
.video-player-wrap { background: #000; border-radius: 14px; overflow: hidden; margin-bottom: 1.5rem; aspect-ratio: 16/9; }
.watch-video { width: 100%; height: 100%; outline: none; }
.video-processing {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; aspect-ratio: 16/9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; gap: 1rem;
}
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
.video-failed { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.watch-info { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.watch-info-main { flex: 1; min-width: 0; }
.watch-title { font-size: 1.35rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.75rem; }
.watch-creator-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.creator-avatar-link { display: flex; align-items: center; gap: 0.5rem; }
.creator-avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.creator-avatar-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; }
.creator-handle { font-size: 0.875rem; font-weight: 600; }
.creator-followers { font-size: 0.72rem; color: var(--muted); }
.watch-date { color: var(--muted); font-size: 0.8rem; margin-left: auto; }
.watch-category { color: var(--muted); font-size: 0.8rem; }
.ref-nudge-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(6,14,28,0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 1rem; }
.ref-nudge-overlay[hidden] { display: none; }
.ref-nudge-modal { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem 1.75rem; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.ref-nudge-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.ref-nudge-title { font-size: 1.1rem; font-weight: 700; color: var(--fg); margin: 0 0 0.6rem; }
.ref-nudge-body { font-size: 0.875rem; color: var(--muted); line-height: 1.55; margin: 0 0 1.5rem; }
.ref-nudge-body strong { color: var(--accent); }
.ref-nudge-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.action-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 1rem; border-radius: 999px; font-size: 0.875rem; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--muted); transition: all 0.15s; font-family: inherit; }
.action-btn:hover { border-color: var(--accent); color: var(--accent); }
.action-btn.active { background: rgba(14,165,233,0.1); border-color: var(--accent); color: var(--accent); }
.follow-btn { display: inline-flex; align-items: center; padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--muted); transition: all 0.15s; font-family: inherit; }
.follow-btn:hover, .follow-btn.following { background: var(--accent); border-color: var(--accent); color: #fff; }
.action-bar { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.view-count { font-size: 0.8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.view-icon { vertical-align: middle; }
.video-description { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.5rem; }
.comments-section { margin-top: 0.5rem; }
.comments-heading { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.comment-count { color: var(--muted); font-weight: 400; font-size: 0.875rem; }
.comment-form { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.5rem; }
.comment-user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-form-body { flex: 1; min-width: 0; }
.comment-form-textarea { width: 100%; max-width: 100%; resize: none; }
.comment-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.4rem; }
.comment-list { display: flex; flex-direction: column; gap: 1rem; }
.load-more-btn { display: none; margin-top: 1rem; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.comment-bubble { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.85rem; flex: 1; }
.reply-thread { margin-left: 2rem; display: flex; flex-direction: column; gap: 0.65rem; margin-top: 0.65rem; }
.comment-row { display: flex; gap: 0.65rem; align-items: flex-start; }
.comment-row-body { flex: 1; }
.comment-avatar-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-meta { font-size: 0.78rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--text); }
.comment-meta-time { font-weight: 400; color: var(--muted); font-size: 0.72rem; }
.comment-body-text { font-size: 0.875rem; line-height: 1.5; }
.reply-btn { background: none; border: none; color: var(--muted); font-size: 0.75rem; cursor: pointer; padding: 0.25rem 0; margin-top: 0.15rem; }
.reply-form-wrap { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.5rem; }
.reply-textarea { flex: 1; min-width: 0; max-width: 100%; resize: none; font-size: 0.8rem; padding: 0.4rem 0.65rem; }

/* ================================================================
   CREATE PAGE
================================================================ */
.create-container { max-width: 640px; margin: 0 auto; }
.upgrade-notice {
  background: rgba(14,165,233,0.07);
  border: 1px solid rgba(14,165,233,0.22);
  border-radius: 12px;
  padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.upgrade-notice-title { font-weight: 600; margin-bottom: 0.25rem; }
.upgrade-notice-sub { font-size: 0.875rem; color: var(--muted); }
.section-heading { font-size: 0.9rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.25rem; }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; }
.voice-option { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.9rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color 0.15s; }
.voice-option:hover { border-color: var(--accent); }
.voice-option input[type=radio] { accent-color: var(--accent); }
.voice-option input[type=radio]:checked + .voice-name { color: var(--accent); }
.voice-name { font-size: 0.85rem; }

/* ================================================================
   STUDIO PAGE
================================================================ */
.studio-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.studio-subtitle { color: var(--muted); font-size: 0.875rem; }
.table-wrap { overflow-x: auto; }
.studio-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.studio-table thead tr { border-bottom: 1px solid var(--border); }
.studio-table th { text-align: left; padding: 0.6rem 0.75rem; color: var(--muted); font-weight: 500; }
.studio-table tbody tr { border-bottom: 1px solid var(--surface); }
.studio-table td { padding: 0.75rem; vertical-align: middle; color: var(--muted); font-size: 0.8rem; }
.studio-table td:first-child { color: var(--text); font-size: 0.875rem; }
.studio-table td:last-child { white-space: nowrap; }
/* ===== DELETE BUBBLE MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,10,20,0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-overlay.is-open { display: flex; }
.bubble-dialog {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem;
  background: linear-gradient(145deg, #0f2847 0%, #091a30 55%, #060e1c 100%);
  border: 1.5px solid rgba(56,189,248,0.45);
  box-shadow:
    inset 0 1px 0 rgba(56,189,248,0.18),
    inset 0 0 50px rgba(14,165,233,0.06),
    0 0 0 6px rgba(14,165,233,0.07),
    0 0 80px rgba(14,165,233,0.25),
    0 24px 64px rgba(0,0,0,0.75);
}
.bubble-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.55rem;
  letter-spacing: -0.015em;
}
.bubble-divider {
  width: 44px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.65), transparent);
  margin: 0 auto 0.85rem;
  border: none;
}
.bubble-body {
  font-size: 0.875rem;
  color: #93c5fd;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}
.bubble-body strong {
  display: block;
  color: #e0f2fe;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.bubble-body small {
  display: block;
  font-size: 0.75rem;
  color: #60a5fa;
  opacity: 0.75;
}
.bubble-actions { display: flex; justify-content: center; gap: 0.6rem; }
.btn-ocean-ghost {
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(56,189,248,0.4);
  color: #bae6fd;
}
.btn-ocean-ghost:hover {
  background: rgba(14,165,233,0.18);
  border-color: #38bdf8;
  color: #e0f2fe;
}
.btn-danger { background: var(--danger); color: #fff; border: none; }
.btn-danger:hover { background: #dc2626; }
.btn-danger-ghost { color: var(--danger); border-color: rgba(239,68,68,0.3); }
.btn-danger-ghost:hover { border-color: var(--danger); color: var(--danger); }
.job-title { font-weight: 600; color: var(--text); }
.job-category { font-size: 0.75rem; color: var(--muted); }
.status-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.status-pending    { background: rgba(14,165,233,0.1);  color: var(--accent);  border: 1px solid rgba(14,165,233,0.3); }
.status-processing { background: rgba(250,204,21,0.1);  color: #facc15;        border: 1px solid rgba(250,204,21,0.3); }
.status-done       { background: rgba(74,222,128,0.1);  color: var(--success); border: 1px solid rgba(74,222,128,0.3); }
.status-failed     { background: rgba(255,90,90,0.1);   color: var(--danger);  border: 1px solid rgba(255,90,90,0.3); }

/* ================================================================
   CHANNEL PAGE
================================================================ */
.channel-header { margin-bottom: 2.5rem; }
.channel-profile-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.channel-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.channel-avatar-placeholder { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: #fff; }
.channel-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.2rem; }
.channel-stats { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.35rem; }
.channel-bio { color: var(--muted); font-size: 0.9rem; max-width: 480px; }
.pro-badge { font-size: 0.75rem; color: var(--accent); font-weight: 600; }
.channel-actions { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }

/* ================================================================
   EXPLORE PAGE
================================================================ */
.filter-row   { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.category-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* ================================================================
   SEARCH PAGE
================================================================ */
.search-page-form { max-width: 540px; margin-bottom: 2rem; display: flex; gap: 0.5rem; }
.search-page-form input[type=search] { border-radius: 999px; padding-left: 1.1rem; }
.search-page-form .btn { border-radius: 999px; }
.results-count { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }

/* ================================================================
   NOTIFICATIONS PAGE
================================================================ */
.notif-list { display: flex; flex-direction: column; gap: 0.6rem; max-width: 640px; }
.notif-item { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.9rem 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color 0.15s; }
.notif-item:hover { border-color: var(--accent); }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.notif-follow  { background: rgba(14,165,233,0.15); }
.notif-comment { background: rgba(74,222,128,0.15); }
.notif-reply   { background: rgba(250,204,21,0.15); }
.notif-content { flex: 1; min-width: 0; }
.notif-text  { font-size: 0.875rem; line-height: 1.4; }
.notif-actor { font-weight: 700; color: var(--text); }
.notif-link  { color: var(--accent); }
.notif-time  { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }

/* ================================================================
   HANDLE SETUP PAGE
================================================================ */
.setup-container { max-width: 460px; margin: 4rem auto; }
.setup-header { text-align: center; margin-bottom: 2rem; }
.setup-icon  { font-size: 2rem; margin-bottom: 0.75rem; }
.setup-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.handle-input-wrap {
  display: flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  background: var(--bg); transition: border-color 0.15s;
}
.handle-input-wrap:focus-within { border-color: var(--accent); }
.handle-prefix { padding: 0 0.75rem; color: var(--muted); font-size: 0.875rem; white-space: nowrap; }
.handle-input-wrap input[type=text] {
  border: none !important; border-radius: 0 !important;
  background: transparent !important; flex: 1; width: auto; padding-left: 0;
}
.handle-input-wrap input[type=text]:focus { border-color: transparent !important; }
.handle-preview { background: var(--border); border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 1.5rem; font-size: 0.8rem; color: var(--muted); }

/* ================================================================
   EDIT VIDEO PAGE
================================================================ */
.edit-container { max-width: 560px; margin: 0 auto; }
.back-link { font-size: 0.85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.3rem; margin-bottom: 1.5rem; }

/* ================================================================
   THUMBNAIL UPLOAD
================================================================ */
.thumb-upload-box { aspect-ratio: 16/9; border: 2px dashed var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; position: relative; transition: border-color 0.15s; background: var(--surface); }
.thumb-upload-box:hover { border-color: var(--accent); }
.thumb-upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.85rem; pointer-events: none; }
.thumb-preview-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; display: none; }
.thumb-preview-img.visible { display: block; }
.edit-thumb-current { width: 100%; max-width: 320px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; margin-bottom: 0.75rem; display: block; border: 1px solid var(--border); }
.optional-label { font-size: 0.7em; font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; margin-left: 0.4rem; }
.thumb-upload-hint { font-size: 0.72rem; }
.file-input-hidden { position: fixed; width: 0; height: 0; opacity: 0; overflow: hidden; pointer-events: none; }

/* ================================================================
   BILLING SUCCESS PAGE
================================================================ */
.success-container { max-width: 480px; margin: 5rem auto; text-align: center; }
.success-icon     { font-size: 3rem; margin-bottom: 1rem; }
.success-title    { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.75rem; }
.success-subtitle { color: var(--muted); margin-bottom: 2rem; }
.success-actions  { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   TRIAL WAIT PAGE
================================================================ */
.trial-done-icon { width:64px;height:64px;border-radius:50%;background:rgba(56,189,248,0.15);border:2px solid var(--accent);display:flex;align-items:center;justify-content:center;font-size:1.75rem;color:var(--accent);margin:0 auto; }
.trial-progress-wrap { width:100%;max-width:400px;height:6px;background:var(--border);border-radius:99px;overflow:hidden;margin:0 auto; }
.trial-progress-bar { height:100%;background:var(--accent);border-radius:99px;transition:width 0.5s ease; }

/* ================================================================
   VIDEO PROCESSING WAIT SCREEN  (vp-*)
================================================================ */
.vp-wait {
  max-width: 500px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

/* — Circular progress ring — */
.vp-ring-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 1.75rem;
}
.vp-ring-svg { width: 130px; height: 130px; }
.vp-ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 7;
}
.vp-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 263.9;
  stroke-dashoffset: 263.9;
  transition: stroke-dashoffset 0.9s cubic-bezier(.4,0,.2,1);
}
.vp-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-pct {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* — Headline — */
.vp-headline {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.vp-headline-em { color: var(--accent); }

/* — ETA — */
.vp-eta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  min-height: 1.3em;
}

/* — Steps card — */
.vp-steps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 1.25rem;
  text-align: left;
  margin-bottom: 1.5rem;
}
.vp-step {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.8rem 0;
}
.vp-step + .vp-step { border-top: 1px solid var(--border); }

/* step icon */
.vp-step-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--border);
  color: var(--muted);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.vp-step-icon.done {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  border: 1.5px solid rgba(34, 197, 94, 0.3);
}
.vp-step-icon.active {
  background: rgba(14, 165, 233, 0.1);
  border: 2px solid var(--accent);
  color: transparent;
  animation: vp-pulse 1.6s ease-in-out infinite;
}
.vp-step-icon.pending { opacity: 0.35; }

@keyframes vp-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(14,165,233,.35); }
  50%       { box-shadow: 0 0 0 5px rgba(14,165,233,0);   }
}

/* step label */
.vp-step-label {
  flex: 1;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.3s;
}
.vp-step-label.active  { color: var(--text); font-weight: 600; }
.vp-step-label.pending { opacity: 0.5; }

/* step time badge */
.vp-step-time {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 38px;
  text-align: right;
}

/* — Close note — */
.vp-quip {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin: -0.25rem 0 1.25rem;
  min-height: 1.3em;
  transition: opacity 0.4s ease;
}
.vp-quip--fade { opacity: 0; }

.vp-time-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.25rem;
  text-align: center;
}

.vp-time-notice-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.vp-time-notice-range {
  font-size: 0.9rem;
  font-weight: 600;
  color: #a5b4fc;
  line-height: 1.3;
}

.vp-time-notice-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.vp-time-notice-icon {
  color: #818cf8;
}

.vp-close-note {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0.7;
}

/* ================================================================
   TRIAL WAIT PAGE LAYOUT
================================================================ */
.trial-page-wrap { max-width: 680px; margin: 0 auto; padding: 1rem 1.5rem 3rem; }

/* Done-state spacing overrides inside .vp-done */
.vp-done .vp-headline    { margin-top: 1rem; }
.vp-done .vp-eta--sub    { margin-bottom: 2rem; }
.vp-done .vp-eta--alt    { margin-top: 1rem; margin-bottom: 0; }

/* Larger CTA button variant */
.btn-cta-lg { font-size: 1.05rem; padding: .85rem 2rem; }

/* ================================================================
   LANDING PAGE
================================================================ */
.landing-wave-spacer { margin-bottom: -1px; }

/* ================================================================
   SHARE PANEL (watch page)
================================================================ */
.share-wrap {
  position: relative;
}
.share-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem;
  min-width: 210px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.share-panel-hint {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.1rem;
}
.share-panel-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.share-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.share-option:hover {
  background: rgba(14,165,233,0.08);
  color: var(--accent);
}
.share-option svg {
  flex-shrink: 0;
  color: var(--muted);
}
.share-option:hover svg {
  color: var(--accent);
}

/* ================================================================
   REFERRAL STATUS PAGE
================================================================ */
.refstat-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.refstat-header { text-align: center; }
.refstat-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.refstat-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 460px;
  margin: 0 auto;
}
.refstat-link-card {
  display: flex;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.6rem 0.6rem 1rem;
  align-items: center;
}
.refstat-link-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--text);
  font-family: inherit;
}
.refstat-copy-btn { flex-shrink: 0; }
.refstat-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.refstat-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.refstat-stat--credits { border-color: rgba(99,102,241,0.35); }
.refstat-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.refstat-stat-denom {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
}
.refstat-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.refstat-progress-wrap { text-align: center; }
.refstat-progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.refstat-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #818cf8);
  border-radius: 99px;
  transition: width 0.6s ease;
}
.refstat-progress-label {
  font-size: 0.8rem;
  color: var(--muted);
}
.refstat-how-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.refstat-how-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  counter-reset: how;
}
.refstat-how-list li {
  counter-increment: how;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}
.refstat-how-list li::before {
  content: counter(how);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(14,165,233,0.12);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.refstat-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.refstat-history-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
}
.refstat-history-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(14,165,233,0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.refstat-history-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.refstat-history-email {
  font-size: 0.82rem;
  font-weight: 600;
  truncate: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.refstat-history-date {
  font-size: 0.72rem;
  color: var(--muted);
}
.refstat-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
}
.refstat-badge--credited { background: rgba(34,197,94,0.12); color: #22c55e; }
.refstat-badge--activated { background: rgba(14,165,233,0.12); color: var(--accent); }
.refstat-badge--pending { background: var(--border); color: var(--muted); }

/* ================================================================
   REFERRAL LANDING PAGE
================================================================ */
.ref-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.ref-hero {
  text-align: center;
}
.ref-from {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.ref-headline {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #0ea5e9, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ref-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}
.ref-bonus {
  color: var(--accent);
  font-weight: 700;
  -webkit-text-fill-color: initial;
}
.ref-video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.ref-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #060e1c;
  overflow: hidden;
}
.ref-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.ref-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
}
.ref-video-info {
  padding: 1rem 1.25rem 1.25rem;
}
.ref-video-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.ref-video-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.ref-video-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.ref-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.ref-cta-btn {
  font-size: 1.05rem;
  padding: 0.85rem 2.25rem;
  width: 100%;
  max-width: 340px;
}
.ref-login-note {
  font-size: 0.85rem;
  color: var(--muted);
}
.ref-login-note a {
  color: var(--accent);
  text-decoration: underline;
}
.ref-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  width: 100%;
  max-width: 340px;
  margin-top: 0.5rem;
}
.ref-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}
.ref-perks li svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--success);
}

.honeypot-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ================================================================
   MOBILE CREATE FAB
================================================================ */
.mobile-create-fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(14,165,233,0.15), 0 8px 24px rgba(14,165,233,0.45), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.mobile-create-fab:active { transform: scale(0.92); }

/* ================================================================
   MOBILE NAV DRAWER
================================================================ */
.mobile-drawer { left: 4%; right: 4%; }

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

  /* Show FAB for authenticated users */
  .mobile-create-fab { display: flex; }

  /* Reduce top whitespace — h-20 spacer (80px) + 1.5rem padding = ~104px to content */
  main { padding-top: 1.5rem; }

  /* Add bottom clearance so FAB doesn't cover content */
  body[data-auth="true"] main { padding-bottom: 4.5rem; }

  /* Card padding reduction */
  .card-padded { padding: 1.1rem; }

  /* Create form: stack 2-col grid to 1-col */
  .form-grid-2 { grid-template-columns: 1fr; }

  /* Tab buttons: taller touch targets */
  .tab-btn { padding: 0.8rem 1rem; font-size: 0.875rem; }

  /* Voice picker: 2 compact cols instead of 1 wide col */
  .voice-grid { grid-template-columns: 1fr 1fr; }

  /* Video grid: 2 columns on mobile (like YouTube/TikTok) */
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .video-info  { padding: 0.5rem 0.6rem 0.6rem; }
  .video-title { font-size: 0.82rem; }

  /* Action bar: bigger touch targets */
  .action-btn { padding: 0.6rem 0.9rem; min-height: 40px; }

  /* Watch: video goes edge-to-edge on mobile */
  .watch-container { max-width: 100%; }
  .video-player-wrap {
    border-radius: 0;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }
  .watch-title { font-size: 1.15rem; }

  /* Channel page: stack avatar row */
  .channel-profile-row { gap: 0.85rem; }
  .channel-name { font-size: 1.2rem; }

  /* Page title: smaller on mobile */
  .page-title { font-size: 1.2rem; margin-bottom: 1rem; }

  /* Empty state: less padding */
  .empty-state { padding: 2.5rem 1.25rem; }
}
