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

:root {
  --bg:        #e8eef8;
  --bg-card:   #ffffff;
  --bg-card2:  #dde5f4;
  --border:    rgba(37,99,235,0.12);
  --border-hi: rgba(37,99,235,0.28);
  --text:      #0f172a;
  --muted:     #475569;
  --faint:     #94a3b8;
  --c1:        #2563eb;
  --c1-dim:    rgba(37,99,235,0.08);
  --c2:        #f97316;
  --c2-dim:    rgba(249,115,22,0.08);
  --success:   #059669;
  --error:     #dc2626;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
  font-weight: 400;
}

/* ── Background canvas ───────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(232,238,248,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo-icon { font-size: 1.4rem; line-height: 1; opacity: 0.9; }
.nav-logo-text {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-auth { display: flex; align-items: center; }
.auth-user { display: flex; align-items: center; gap: 0.75rem; }
.dev-badge { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; color: #fff; background: #e53e3e; border-radius: 4px; padding: 0.15rem 0.45rem; }
.user-email { font-size: 0.9rem; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.user-email:hover { color: var(--c1); }

/* ── Nav links ───────────────────────────────────────────────── */
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--c1); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 4rem 2rem 3rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.07) 0%, transparent 68%);
  pointer-events: none;
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.hero-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.4rem;
  color: var(--text);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 3.5rem;
  line-height: 1.75;
  font-weight: 400;
}

/* ── Upload box ───────────────────────────────────────────────── */
.upload-box {
  background: var(--bg-card);
  border: 1.5px dashed rgba(37,99,235,0.3);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 16px rgba(37,99,235,0.06);
}
.upload-box:hover {
  border-color: rgba(37,99,235,0.5);
  box-shadow: 0 4px 24px rgba(37,99,235,0.1);
}
.drop-zone {
  padding: 4.5rem 2.5rem;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}
.drop-zone:hover, .drop-zone.drag-over {
  background: var(--c1-dim);
}
.drop-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: rgba(37,99,235,0.45);
}
.drop-primary   { font-size: 1.1rem; font-weight: 500; color: var(--text); margin-bottom: 0.35rem; letter-spacing: 0.01em; }
.drop-secondary { font-size: 0.95rem; color: var(--muted); margin-bottom: 1rem; }
.drop-link      { color: var(--c1); font-weight: 500; cursor: pointer; }
.drop-hint      { font-size: 0.85rem; color: var(--faint); letter-spacing: 0.02em; }

.file-preview {
  padding: 1.4rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--c1-dim);
}
.file-info    { display: flex; align-items: center; gap: 0.85rem; flex: 1; min-width: 0; }
.file-icon    { font-size: 1.5rem; flex-shrink: 0; opacity: 0.85; }
.file-details { min-width: 0; }
.file-name {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.file-size    { font-size: 0.83rem; color: var(--muted); }
.file-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.guest-cta {
  margin-bottom: 0.9rem;
  padding: 1rem;
  background: var(--c1-dim);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 10px;
}
.guest-cta-hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.45rem; }
.link-btn {
  background: none;
  border: none;
  color: var(--c1);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
}

/* ── Processing ───────────────────────────────────────────────── */
.processing-card { padding: 4.5rem 2.5rem; text-align: center; }
.spinner {
  width: 48px; height: 48px;
  border: 2px solid rgba(37,99,235,0.15);
  border-top-color: var(--c1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 2rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-card h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.processing-detail  { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.75rem; }
.progress-bar-wrap  { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; }
.progress-bar       { flex: 1; height: 3px; background: rgba(37,99,235,0.12); border-radius: 2px; overflow: hidden; }
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  border-radius: 2px;
  transition: width 0.6s ease;
}
.progress-pct  { font-size: 0.88rem; color: var(--muted); width: 3.5rem; text-align: right; flex-shrink: 0; }
.processing-note { font-size: 0.85rem; color: var(--faint); }

/* ── Result cards ─────────────────────────────────────────────── */
.result-card { padding: 3.5rem 2.5rem; text-align: center; }
.result-card--error { border-top: 1px solid rgba(220,38,38,0.12); }
.success-badge, .error-badge {
  width: 58px; height: 58px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.success-badge { background: rgba(5,150,105,0.08); color: var(--success); border: 1px solid rgba(5,150,105,0.22); }
.error-badge   { background: rgba(220,38,38,0.06); color: var(--error); border: 1px solid rgba(220,38,38,0.18); }
.result-card h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.done-meta    { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; letter-spacing: 0.01em; }
.error-detail { color: var(--muted); font-size: 0.95rem; margin: 0.5rem 0 2rem; }
.video-preview {
  width: 100%;
  border-radius: 10px;
  background: #000;
  margin-bottom: 1.5rem;
  max-height: 360px;
  display: block;
  border: 1px solid var(--border);
}
.done-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--c1);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.15s, box-shadow 0.2s;
  font-family: inherit;
}
.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 6px 24px rgba(37,99,235,0.3);
}

.btn-outline {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  font-family: inherit;
}
.btn-outline:hover { border-color: var(--c1); color: var(--c1); }

.btn-outline-sm {
  padding: 0.32rem 0.85rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s;
  font-family: inherit;
}
.btn-outline-sm:hover { border-color: var(--c1); color: var(--c1); }

.btn-google {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.btn-google:hover { border-color: var(--border-hi); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn-google svg { flex-shrink: 0; }

/* ── Demo video section ───────────────────────────────────────── */
.demo-section { padding: 40px 24px 72px; }
.demo-video-placeholder {
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-card2);
  border: 2px dashed var(--border-hi);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.demo-placeholder-inner { text-align: center; color: var(--muted); }
.demo-placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
  display: block;
  margin-bottom: 12px;
}
.demo-placeholder-label { font-size: 0.95rem; opacity: 0.5; }

/* ── Steps section ────────────────────────────────────────────── */
.steps-section {
  padding: 7rem 2rem;
  border-top: 1px solid var(--border);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 3.5rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.75rem 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(37,99,235,0.04);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.step-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 8px 28px rgba(37,99,235,0.1);
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  background: transparent;
}
.step-num--1 { color: var(--c1); border: 1px solid rgba(37,99,235,0.35); }
.step-num--2 { color: #6d28d9; border: 1px solid rgba(109,40,217,0.35); }
.step-num--3 { color: var(--c2); border: 1px solid rgba(249,115,22,0.35); }

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.step-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.75; }

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-section { padding: 7rem 2rem; border-top: 1px solid var(--border); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1060px;
  margin: 0 auto;
}
.pricing-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 680px;
}
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pricing-grid--two { grid-template-columns: 1fr; } }
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(37,99,235,0.04);
}
.pricing-card--featured {
  border-color: var(--c1);
  box-shadow: 0 4px 28px rgba(37,99,235,0.14);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--c2);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.9rem;
  border-radius: 99px;
  white-space: nowrap;
}
.pricing-plan {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.pricing-price {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.pricing-price span { font-size: 1rem; color: var(--muted); font-weight: 400; font-family: 'Inter', system-ui, sans-serif; }
.pricing-sub { font-size: 0.83rem; color: var(--faint); margin-bottom: 1.75rem; }
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
  flex: 1;
}
.pricing-features li { font-size: 0.9rem; color: var(--muted); display: flex; align-items: flex-start; gap: 0.65rem; }
.pricing-features li::before { content: '—'; color: var(--c1); flex-shrink: 0; font-size: 0.78rem; margin-top: 0.15rem; }
.pricing-features li.dim { opacity: 0.38; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-section { padding: 7rem 2rem; border-top: 1px solid var(--border); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  cursor: pointer;
  padding: 1.35rem 0;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; color: var(--c1); font-size: 1.2rem; font-weight: 300; flex-shrink: 0; }
details[open] .faq-question::after { content: '−'; }
.faq-answer { padding-bottom: 1.5rem; font-size: 0.93rem; color: var(--muted); line-height: 1.8; }
.faq-answer a { color: var(--c1); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* ── History ──────────────────────────────────────────────────── */
.history-section {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}
.history-list { display: flex; flex-direction: column; gap: 0.85rem; }
.history-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.75rem;
  box-shadow: 0 1px 4px rgba(37,99,235,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.history-item:hover { border-color: var(--border-hi); box-shadow: 0 4px 16px rgba(37,99,235,0.08); }
.history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.history-date { font-size: 0.88rem; color: var(--muted); }
.history-status {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.history-status--done        { background: rgba(37,99,235,0.1); color: var(--c1); }
.history-status--error       { background: rgba(220,38,38,0.08); color: var(--error); }
.history-status--transcribing,
.history-status--rendering,
.history-status--queued      { background: rgba(71,85,105,0.1); color: var(--muted); }
.history-video {
  width: 100%; border-radius: 8px; background: #000;
  max-height: 240px; margin-bottom: 0.85rem; display: block;
  border: 1px solid var(--border);
}
.btn-sm { padding: 0.3rem 0.85rem; font-size: 0.8rem; }
.no-history {
  color: var(--muted);
  font-size: 0.93rem;
  text-align: center;
  padding: 3rem;
  border: 1px dashed rgba(37,99,235,0.18);
  border-radius: 12px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 2.75rem 2rem; }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand { font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.footer-links { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-link { font-size: 0.83rem; color: var(--faint); text-decoration: none; transition: color 0.15s; }
.footer-link:hover, .footer-link.active { color: var(--c1); }
.footer-copy { font-size: 0.8rem; color: var(--faint); }

/* ── Cookie banner ───────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.75rem; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 300;
  max-width: 540px;
  width: calc(100% - 2rem);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.cookie-text { font-size: 0.84rem; color: var(--muted); flex: 1; }
.cookie-text a { color: var(--c1); text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-accept {
  padding: 0.38rem 1rem;
  background: var(--c1);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

/* ── Auth Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 28px 72px rgba(0,0,0,0.14), 0 0 0 1px rgba(37,99,235,0.05);
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s;
  line-height: 1;
  font-family: inherit;
}
.modal-close:hover { color: var(--muted); }
.modal-card h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  text-align: center;
  letter-spacing: -0.01em;
  color: var(--text);
}
.btn-google--full { width: 100%; justify-content: center; }
.modal-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.modal-divider::before, .modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.input-field {
  display: block;
  width: 100%;
  padding: 0.72rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.94rem;
  margin-bottom: 0.7rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.input-field:focus { border-color: var(--c1); }
.input-field::placeholder { color: var(--faint); }
.btn-full { width: 100%; text-align: center; justify-content: center; margin-top: 0.3rem; }
.auth-error {
  font-size: 0.85rem;
  color: var(--error);
  text-align: center;
  margin-bottom: 0.5rem;
}
.auth-success {
  font-size: 0.85rem;
  color: var(--success);
  text-align: center;
  margin-bottom: 0.5rem;
}
.modal-toggle {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1.4rem;
}
.modal-toggle-link {
  color: var(--c1);
  cursor: pointer;
  font-weight: 500;
  margin-left: 0.25rem;
}
.modal-toggle-link:hover { text-decoration: underline; }

/* ── Account page ────────────────────────────────────────────── */
.account-hero { padding: 5rem 2rem 3.5rem; border-bottom: 1px solid var(--border); }
.account-hero-inner { max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 1.75rem; }
.account-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,0.3);
  background: rgba(37,99,235,0.06);
  color: var(--c1);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.account-info h1 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.account-meta { font-size: 0.88rem; color: var(--muted); }
.account-section { padding: 3.5rem 2rem; border-bottom: 1px solid var(--border); }
.account-section-inner { max-width: 820px; margin: 0 auto; }
.account-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 500px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: 0 1px 4px rgba(37,99,235,0.04);
}
.stat-value {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label { font-size: 0.8rem; color: var(--muted); }
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(37,99,235,0.06);
}
.plan-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.5rem; }
.plan-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c1);
  border: 1px solid rgba(37,99,235,0.28);
  padding: 0.2rem 0.75rem;
  border-radius: 99px;
}
.plan-usage-bar { height: 3px; background: rgba(37,99,235,0.1); border-radius: 2px; overflow: hidden; margin-bottom: 0.65rem; }
.plan-usage-fill { height: 100%; background: linear-gradient(90deg, var(--c1), var(--c2)); border-radius: 2px; transition: width 0.5s ease; }
.plan-usage-label { font-size: 0.84rem; color: var(--muted); margin-bottom: 1.4rem; }

/* ── Legal pages ─────────────────────────────────────────────── */
.legal-page { padding: 5rem 2rem 7rem; }
.legal-inner { max-width: 820px; margin: 0 auto; }
.legal-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.legal-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 3.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.legal-inner h2 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 1.25rem; font-weight: 700; margin: 2.75rem 0 0.75rem; color: var(--text); }
.legal-inner p { font-size: 0.94rem; color: var(--muted); line-height: 1.82; margin-bottom: 0.85rem; }
.legal-inner ul { margin: 0.35rem 0 0.85rem 1.4rem; }
.legal-inner ul li { font-size: 0.94rem; color: var(--muted); line-height: 1.82; }
.legal-inner a { color: var(--c1); text-decoration: none; }
.legal-inner a:hover { text-decoration: underline; }

/* ── Auth gate ───────────────────────────────────────────────── */
.auth-gate { text-align: center; padding: 6rem 2rem; }
.auth-gate h2 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 0.85rem; color: var(--text); }
.auth-gate p { font-size: 0.95rem; color: var(--muted); margin-bottom: 2rem; }

/* ── Shimmer loading ─────────────────────────────────────────── */
.shimmer {
  background: linear-gradient(90deg, rgba(37,99,235,0.04) 25%, rgba(37,99,235,0.08) 50%, rgba(37,99,235,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
  border: 1px solid var(--border);
  height: 90px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Demo video wrap ─────────────────────────────────────────── */
.demo-video-wrap { position: relative; width: 100%; margin-bottom: 1.5rem; }
.demo-video-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.82) 0%, rgba(15,23,42,0.3) 65%, transparent 100%);
  border-radius: 0 0 10px 10px;
  padding: 1.4rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* ── Paywall ─────────────────────────────────────────────────── */
.paywall-section { border-top: 1px solid var(--border); padding-top: 1.75rem; margin-top: 0.5rem; }
.paywall-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--c1-dim);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: left;
}
.paywall-lock { font-size: 1.5rem; flex-shrink: 0; }
.paywall-title { font-weight: 600; font-size: 0.95rem; color: var(--text); margin-bottom: 0.15rem; }
.paywall-sub   { font-size: 0.84rem; color: var(--muted); }
.paywall-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 480px) { .paywall-options { grid-template-columns: 1fr; } }
.paywall-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-decoration: none;
  background: var(--bg-card);
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.paywall-option:hover { border-color: var(--c1); box-shadow: 0 4px 20px rgba(37,99,235,0.12); }
.paywall-option--featured { border-color: rgba(37,99,235,0.45); background: rgba(37,99,235,0.04); }
.paywall-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--c1);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.7rem;
  border-radius: 99px;
  white-space: nowrap;
}
.paywall-price {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.paywall-price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.paywall-label  { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.paywall-detail { font-size: 0.78rem; color: var(--muted); }
.paywall-note   { font-size: 0.8rem; color: var(--faint); text-align: center; }
.paywall-note a { color: var(--c1); text-decoration: none; }
.paywall-note a:hover { text-decoration: underline; }

/* ── Guest bookmark link ─────────────────────────────────────── */
.guest-link-box {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(37,99,235,0.05);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}
.guest-link-box a { color: var(--c1); word-break: break-all; }

/* ── Password field with toggle ──────────────────────────────── */
.input-wrap { position: relative; margin-bottom: 0.7rem; }
.input-wrap .input-field { margin-bottom: 0; padding-right: 2.8rem; }
.pw-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--faint);
  padding: 0.2rem;
  display: flex;
  align-items: center;
  line-height: 1;
  transition: color 0.15s;
}
.pw-toggle:hover { color: var(--muted); }

/* ── Video blur on paywall reveal ────────────────────────────── */
.demo-video-wrap.video-blur .video-preview {
  filter: blur(7px);
  transition: filter 0.4s ease;
}
.demo-video-wrap.video-blur .demo-video-overlay {
  top: 0;
  background: rgba(15,23,42,0.55);
  border-radius: 10px;
  font-size: 2.8rem;
  letter-spacing: 0;
}

/* ── Account tabs ────────────────────────────────────────────── */
.account-tab-bar {
  border-bottom: 1px solid var(--border);
  background: rgba(232,238,248,0.7);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 68px;
  z-index: 50;
}
.account-tab-bar-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 0;
}
.account-tab {
  padding: 1rem 1.4rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.account-tab:hover { color: var(--text); }
.account-tab.active { color: var(--c1); border-bottom-color: var(--c1); }
.tab-hint { font-weight: 400; color: var(--faint); font-size: 0.82rem; text-transform: none; letter-spacing: 0; }

/* ── Tab panels ──────────────────────────────────────────────── */
.tab-panel { padding: 3rem 2rem; }
.tab-panel-inner { max-width: 860px; margin: 0 auto; }

/* ── Video grid ──────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(37,99,235,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.video-card:hover { border-color: var(--border-hi); box-shadow: 0 6px 24px rgba(37,99,235,0.1); }
.video-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  border: none;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.video-card-play:hover { background: rgba(0,0,0,0.55); }
.video-card-info { padding: 1rem 1.1rem; }
.video-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3rem;
}
.video-card-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.25rem; }
.video-card-expiry { font-size: 0.78rem; margin-bottom: 0.85rem; min-height: 1.1em; }
.video-card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ── Video badge ─────────────────────────────────────────────── */
.vid-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.12rem 0.5rem;
  border-radius: 99px;
  background: rgba(71,85,105,0.1);
  color: var(--muted);
}
.vid-badge--paid { background: rgba(37,99,235,0.1); color: var(--c1); }

/* ── Details cards ───────────────────────────────────────────── */
.details-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(37,99,235,0.04);
}
.details-card-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.detail-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.detail-row:first-of-type { padding-top: 0; }
.detail-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  width: 120px;
  flex-shrink: 0;
}
.detail-value { font-size: 0.9rem; color: var(--text); }
.detail-row--edit { align-items: center; flex-wrap: wrap; }
.detail-edit-wrap { display: flex; align-items: center; gap: 0.65rem; flex: 1; }
.input-field--inline { flex: 1; margin-bottom: 0; }
.details-hint { font-size: 0.83rem; color: var(--faint); margin-bottom: 0.9rem; }
.detail-msg { font-size: 0.84rem; margin-top: 0.6rem; }
.detail-msg--ok    { color: var(--success); }
.detail-msg--error { color: var(--error); }

.hidden { display: none !important; }