/* ============================================
   Porshers — Complete Stylesheet
   ============================================ */

:root {
  --green: #10b67e;
  --green-dark: #0e9a6b;
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --ink: #0a1f1a;
  --text: #1f2937;
  --text-2: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #f3f4f6;
  --bg: #ffffff;
  --bg-soft: #f8faf9;
  --bg-alt: #f3f4f6;
  --warn: #fef3c7;
  --warn-text: #92400e;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --ig-1: #f59e0b;
  --ig-2: #ec4899;
  --ig-3: #8b5cf6;
  --ig-4: #3b82f6;
  --ig-5: #06b6d4;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.08), 0 5px 10px rgba(0,0,0,.04);
  --shadow-green: 0 8px 20px rgba(16,182,126,.18);
  --radius: 12px;
  --radius-lg: 16px;
  --max: 1280px;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  line-height: 1.4;
  font-family: var(--sans);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); }
.btn-ghost { color: var(--text); background: transparent; }
.btn-ghost:hover { color: var(--green-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-alt); }
.btn-danger { color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}
.brand-mark { color: var(--green); font-size: 12px; }
.primary-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .12s;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a.admin-link {
  color: var(--green-dark);
  font-weight: 700;
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-plan {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--bg-alt);
  color: var(--muted);
}
.user-plan.plan-basic { background: #dbeafe; color: #1e40af; }
.user-plan.plan-pro { background: var(--ink); color: #fff; }
.user-plan.plan-agency { background: var(--green); color: #fff; }

/* ===== FLASHES ===== */
.flashes { margin-top: 16px; }
.flash {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}
.flash-success { background: var(--green-50); color: var(--green-dark); border: 1px solid var(--green-200); }
.flash-error { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.flash-warning { background: var(--warn); color: var(--warn-text); border: 1px solid #fde68a; }

/* ===== HERO ===== */
.hero { padding: 80px 0 60px; text-align: center; background: var(--bg-soft); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 24px;
}
.hero-badge .pill {
  background: var(--green);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}
.hero-badge .arrow { color: var(--green); }
.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}
.hero-title .ig-grad {
  background: linear-gradient(135deg, var(--ig-1), var(--ig-2), var(--ig-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title .green { color: var(--green); }
.hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.6;
}
.hero-ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ===== SECTIONS ===== */
.recent-section, .features-section { padding: 80px 0; }
.recent-section { background: #fff; }
.features-section { background: var(--bg-soft); }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.section-eyebrow.center { display: flex; max-width: max-content; margin: 0 auto; }
.section-eyebrow .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 8px;
}
.section-title.center { text-align: center; }
.section-sub {
  color: var(--text-2);
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 32px;
}
.recent-section .section-sub a { color: var(--green-dark); text-decoration: underline; }

/* ===== REEL GRID ===== */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.reel-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.reel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
  color: inherit;
}
.reel-thumb {
  aspect-ratio: 9/14;
  position: relative;
  background: var(--bg-alt) center/cover no-repeat;
}
.reel-thumb-fallback {
  position: absolute;
  inset: 0;
  background: var(--bg-alt);
}
.reel-thumb-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.reel-thumb-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.reel-thumb-svg--large {
  position: absolute;
  inset: 0;
}
.grad-1 { background: linear-gradient(135deg, #fbbf24, #f97316); }
.grad-2 { background: linear-gradient(135deg, #a78bfa, #ec4899); }
.grad-3 { background: linear-gradient(135deg, #34d399, #06b6d4); }
.grad-4 { background: linear-gradient(135deg, #f472b6, #fb923c); }
.grad-5 { background: linear-gradient(135deg, #60a5fa, #a78bfa); }
.grad-6 { background: linear-gradient(135deg, #fcd34d, #fb7185); }
.reel-niche-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.reel-growth-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--green);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
}
.reel-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,31,26,.4);
  backdrop-filter: blur(4px);
  font-size: 32px;
}
.reel-card-body { padding: 14px; }
.reel-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reel-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color .15s, transform .15s;
}
.feature-card:hover { border-color: var(--green-200); transform: translateY(-2px); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.feature-card p { color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.6; }

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--ink), #143027);
  color: #fff;
  text-align: center;
}
.final-cta h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.final-cta p {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  margin: 0 0 24px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0a1714;
  color: rgba(255,255,255,.7);
  padding: 60px 0 24px;
  margin-top: 80px;
}

/* Collapse the gap ONLY when the previous section is already a dark full-bleed CTA.
   This way pages with light content still breathe; homepage transitions are seamless. */
.l-final + .site-footer,
.final-cta + .site-footer,
.demo-paywall + .site-footer,
.upgrade-cta + .site-footer {
  margin-top: 0;
}

/* Reliable fallback: on the landing page (which always ends with .l-final),
   collapse the footer gap regardless of selector support. */
body.page-landing .site-footer {
  margin-top: 0;
}

/* Some pages put the CTA inside a wrapper (e.g. landing.php closes a `<div class="landing-page">` after the dark CTA).
   For the landing page specifically, the final section is `.l-final` which is the LAST child of `.landing-page`.
   When that wrapper is the last thing before footer, also collapse. */
.landing-page:has(> .l-final:last-child) + .site-footer {
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.brand--footer { color: #fff; }
.footer-tag { font-size: 14px; margin: 16px 0 0; max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: color .12s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 12px;
}
.footer-bottom p { margin: 0; }
.footer-disclaimer { color: rgba(255,255,255,.5); }

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: calc(100vh - 200px);
  padding: 40px 24px;
  background: var(--bg-soft);
  display: flex;
  align-items: stretch;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.auth-brand-panel {
  background: linear-gradient(135deg, var(--ink) 0%, #143027 50%, #0e9a6b 100%);
  color: #fff;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.auth-brand-panel::before, .auth-brand-panel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  width: 320px;
  height: 320px;
}
.auth-brand-panel::before {
  top: -120px; right: -120px;
  background: radial-gradient(circle, var(--ig-3) 0%, transparent 70%);
  opacity: .35;
}
.auth-brand-panel::after {
  bottom: -160px; left: -100px;
  background: radial-gradient(circle, var(--green) 0%, transparent 70%);
  opacity: .25;
}
.auth-brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 480px;
}
.brand--auth { color: #fff; font-size: 18px; }
.brand--auth .brand-mark { font-size: 14px; }
.auth-brand-content { margin: 40px 0; }
.auth-brand-content h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #fff;
}
.auth-brand-content p {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  margin: 0;
  max-width: 360px;
}
.auth-brand-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.auth-stat-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--green-200);
  margin-bottom: 4px;
}
.auth-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  line-height: 1.4;
}
.auth-brand-checks {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.auth-brand-checks li {
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.auth-form-panel {
  padding: 48px;
  display: flex;
  align-items: center;
}
.auth-form-inner {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.auth-back {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}
.auth-back:hover { color: var(--green-dark); }
.auth-form-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.auth-form-sub {
  color: var(--text-2);
  font-size: 14px;
  margin: 0 0 28px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.auth-field input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--sans);
  background: #fff;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-50);
}
.auth-hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  line-height: 1.5;
}
.auth-check input { margin-top: 3px; }
.auth-error {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.auth-error a { color: #991b1b; text-decoration: underline; font-weight: 600; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-alt {
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
}
.auth-alt a { color: var(--green-dark); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }
.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}
.auth-forgot-row a {
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 500;
}
.auth-forgot-row a:hover { text-decoration: underline; }
.empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.empty-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}

/* ===== SAVE BUTTON (reel cards) ===== */
.reel-card-wrap {
  position: relative;
}
.save-btn-form {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  margin: 0;
}
.save-btn {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform .15s, background .15s, color .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  padding: 0;
  line-height: 1;
}
.save-btn:hover {
  background: #fff;
  transform: scale(1.1);
  color: #f59e0b;
}
.save-btn--saved {
  background: #fbbf24;
  color: #fff;
  border-color: #f59e0b;
}
.save-btn--saved:hover {
  background: #f59e0b;
  color: #fff;
}

/* Reel single page save row */
.reel-save-row {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.reel-save-hint {
  font-size: 13px;
  color: var(--muted);
}
.reel-save-hint a {
  color: var(--green-dark);
  font-weight: 600;
}
.reel-save-hint a:hover { text-decoration: underline; }

/* Saved date footnote in card */
.reel-saved-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line-2);
}

/* Dashboard header actions slot (e.g. CSV export button) */
.dash-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ===== DEMO PAGE ===== */
.demo-page { padding: 20px 24px 60px; }
.demo-banner {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.demo-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.demo-banner-content > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.demo-banner-content strong { color: #92400e; font-weight: 700; }
.demo-banner-content span { color: #78350f; font-size: 13px; }

.demo-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}
.demo-sidebar .dash-sidebar-item.locked,
.demo-sidebar .dash-sidebar-count.locked {
  opacity: 0.45;
  pointer-events: none;
}
.demo-card-wrap.demo-locked .reel-card { pointer-events: none; }
.demo-card-wrap.demo-locked .reel-thumb {
  filter: blur(3px);
}
.demo-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,31,26,.55);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  z-index: 2;
}
.demo-card-overlay-icon { font-size: 28px; }
.demo-card-overlay-text { font-size: 12px; font-weight: 600; }
.demo-blur {
  display: inline-block;
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.demo-paywall {
  margin-top: 40px;
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--ink), #143027);
  color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
}
.demo-paywall-eyebrow {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.demo-paywall h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.demo-paywall h2 .green { color: #34d399; }
.demo-paywall > p {
  color: rgba(255,255,255,.75);
  margin: 0 auto 28px;
  max-width: 520px;
  font-size: 15px;
}
.demo-paywall-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.dpc {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}
.dpc-icon { font-size: 22px; flex-shrink: 0; }
.dpc > div:last-child { line-height: 1.4; }
.dpc strong { display: block; color: #fff; font-size: 14px; }
.dpc span { display: block; font-size: 12px; color: rgba(255,255,255,.6); }
.demo-trust {
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

@media (max-width: 1024px) {
  .demo-shell { grid-template-columns: 1fr; }
  .demo-sidebar { display: none; }
}
@media (max-width: 600px) {
  .demo-paywall-checks { grid-template-columns: 1fr; }
}

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-page { padding: 32px 0 80px; min-height: 70vh; }
.search-hero { text-align: center; margin-bottom: 32px; }
.search-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--green-50);
  color: var(--green-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.search-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
}
.ai-pill {
  margin-left: 6px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.search-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.1;
}
.search-hero h1 .green { color: var(--green); }
.search-sub {
  max-width: 580px;
  margin: 0 auto 28px;
  color: var(--text-2);
  font-size: 16px;
}
.search-form { max-width: 720px; margin: 0 auto; }
.search-input-wrap {
  position: relative;
  display: flex;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(15,23,42,.06);
  transition: border-color .15s;
}
.search-input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-50);
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 16px 14px 44px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}
.search-submit {
  border-radius: 12px;
  padding: 12px 24px;
  white-space: nowrap;
}
.search-examples {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.examples-label { color: var(--muted); font-size: 13px; }
.example-chip {
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  transition: all .15s;
}
.example-chip:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

/* Filters collapsible */
.search-filters {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
}
.search-filters summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  list-style: none;
  padding: 4px 0;
}
.search-filters summary::-webkit-details-marker { display: none; }
.search-filters[open] { padding-bottom: 16px; }
.filter-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.filter-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.filter-row select, .filter-row input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  min-width: 140px;
}
.filter-clear {
  font-size: 12px;
  color: var(--muted);
}

/* Usage strip */
.usage-strip {
  margin-top: 16px;
  padding: 10px 16px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: 10px;
  font-size: 13px;
  display: inline-block;
}
.usage-strip a {
  color: var(--green-dark);
  font-weight: 600;
  margin-left: 6px;
}

/* Gating cards */
.gate-card {
  max-width: 520px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.gate-icon { font-size: 40px; margin-bottom: 12px; }
.gate-card h3 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.gate-card p { color: var(--text-2); margin: 0 0 20px; }
.gate-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.gate-hint { color: var(--muted); font-size: 12px; }

/* Source reel display */
.source-reel { max-width: 720px; margin: 32px auto; }
.source-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.source-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
}
.source-card:hover { border-color: var(--green); }
.source-thumb {
  width: 60px; height: 90px;
  border-radius: 8px;
  background: var(--bg-alt) center/cover no-repeat;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.source-info { flex: 1; }
.source-niche {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 2px;
}
.source-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.source-meta { font-size: 12px; color: var(--muted); }

.search-meta-line {
  max-width: 720px;
  margin: 24px auto;
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg-soft);
  padding: 10px 14px;
  border-radius: 8px;
}
.search-meta-line em { color: var(--ink); font-style: normal; font-weight: 600; }

/* Results header */
.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.search-results-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.badge-ai {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-keyword {
  background: var(--bg-alt);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Match score pill on cards */
.reel-match-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
}

/* How it works (empty state) */
.search-how-it-works {
  max-width: 980px;
  margin: 60px auto 0;
}
.search-how-it-works h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.how-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-dark);
  font-weight: 800;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.how-card h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.how-card p { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.55; }

@media (max-width: 768px) {
  .search-input-wrap { flex-direction: column; padding: 8px; }
  .search-input { padding: 12px 16px; }
  .search-icon { display: none; }
  .search-submit { width: 100%; }
  .how-grid { grid-template-columns: 1fr; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-row select, .filter-row input { min-width: 0; width: 100%; }
}

/* ===== DASHBOARD ===== */
.dashboard-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 60px;
  min-height: 70vh;
}
.dash-sidebar {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  height: fit-content;
  position: sticky;
  top: 84px;
}
.dash-sidebar-section { margin-bottom: 24px; }
.dash-sidebar-section:last-child { margin-bottom: 0; }
.dash-sidebar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  padding: 0 8px;
  margin-bottom: 8px;
}
.dash-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  transition: background .12s, color .12s;
  margin-bottom: 2px;
}
.dash-sidebar-item:hover { background: #fff; color: var(--ink); }
.dash-sidebar-item.is-active {
  background: var(--green-100);
  color: var(--green-dark);
  font-weight: 600;
}
.dash-sidebar-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 999px;
}
.dash-plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.dash-plan-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .6px;
}
.dash-plan-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 4px 0 10px;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.dash-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}
.dash-subtitle { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}
.pagination a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-2);
}
.pagination a:hover { border-color: var(--green); color: var(--green-dark); }
.upgrade-cta {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, var(--ink), #1a3530);
  color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
}
.upgrade-cta h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; color: #fff; }
.upgrade-cta p { color: rgba(255,255,255,.7); margin: 0 0 20px; }

/* ===== EMPTY STATES ===== */
.empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-soft);
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0; }
.empty a { color: var(--green-dark); font-weight: 600; }

/* ===== REEL SINGLE ===== */
.reel-single { padding: 32px 24px 80px; max-width: var(--max); margin: 0 auto; }
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }
.reel-single-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  align-items: start;
}
.reel-single-media { position: sticky; top: 84px; }
.reel-thumb-large {
  aspect-ratio: 9/14;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-alt) center/cover no-repeat;
}
.reel-thumb-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: rgba(10,31,26,.5);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 600;
  z-index: 2;
}
.lock-icon { font-size: 32px; }
.reel-single-niche {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.reel-single-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.2;
}
.reel-creator {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.creator-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ig-1), var(--ig-2), var(--ig-3));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--mono);
}
.creator-handle { font-weight: 700; color: var(--ink); }
.creator-meta { font-size: 13px; color: var(--muted); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--mono);
}
.locked {
  display: inline-block;
  color: var(--muted);
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
}
.reel-notes {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.reel-notes h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.reel-notes p { color: var(--text); line-height: 1.7; margin: 0; }
.reel-box {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.reel-box h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.store-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.store-product { font-weight: 700; color: var(--ink); }
.store-platform { font-size: 12px; color: var(--muted); }
.store-price {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 18px;
  color: var(--green-dark);
}
.hashtags { display: flex; flex-wrap: wrap; gap: 6px; }
.hashtag {
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--mono);
}
.paywall {
  padding: 32px;
  background: linear-gradient(135deg, var(--ink), #1a3530);
  color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 16px;
}
.paywall-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.paywall h3 { font-size: 20px; font-weight: 800; margin: 0 0 8px; color: #fff; }
.paywall p { color: rgba(255,255,255,.7); margin: 0 0 16px; }
.similar-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.similar-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

/* ===== PRICING ===== */
.pricing-hero {
  padding: 64px 0 32px;
  background: linear-gradient(180deg, var(--green-50), #fff);
  text-align: center;
}
.pricing-title {
  font-size: 46px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin: 16px 0 12px;
  line-height: 1.1;
}
.pricing-title-accent {
  background: linear-gradient(120deg, var(--green), #0e9a6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pricing-sub {
  color: var(--text-2);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto;
}
.pricing-grid-section { padding: 40px 0 80px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  max-width: 1020px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.pricing-card:hover {
  box-shadow: 0 16px 40px -12px rgba(15,23,42,.16);
  transform: translateY(-3px);
}
.pricing-card--featured {
  border: 2px solid var(--green);
  box-shadow: 0 20px 48px -16px rgba(16,182,126,.4);
  transform: scale(1.04);
  z-index: 2;
}
.pricing-card--featured:hover { transform: scale(1.04) translateY(-3px); }
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(120deg, var(--green), #0e9a6b);
  color: #fff;
  padding: 5px 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16,182,126,.4);
}
.pricing-card-head { margin-bottom: 18px; }
.pricing-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.pricing-tagline {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-2, #f1f5f9);
}
.pricing-currency { font-size: 22px; font-weight: 800; color: var(--ink); align-self: flex-start; margin-top: 6px; }
.pricing-current { font-size: 46px; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.pricing-period { color: var(--muted); font-size: 15px; margin-left: 4px; }
.pricing-cta { margin-bottom: 22px; font-weight: 700; }
.btn-dark {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.btn-dark:hover { background: #15302a; }
.pricing-features-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}
.pricing-features li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pricing-check {
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}
.pricing-faq {
  max-width: 820px;
  margin: 64px auto 0;
}
.pricing-faq h2 {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 28px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.faq-item h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.faq-item p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.55; }
@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
}
.pricing-guarantees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
  padding: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
}
.guarantee { display: flex; gap: 14px; align-items: flex-start; }
.g-icon { font-size: 24px; }
.guarantee strong { display: block; color: var(--ink); margin-bottom: 4px; }
.guarantee span { display: block; font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ===== ACCOUNT ===== */
.page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 32px 0 8px;
}
.page-sub { color: var(--text-2); margin: 0 0 32px; }
.account-page { padding: 0 24px 80px; max-width: 800px; margin: 0 auto; }
.account-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.account-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
}
.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.account-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.account-value { font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-alt);
  color: var(--muted);
}
.plan-badge.plan-basic { background: #dbeafe; color: #1e40af; }
.plan-badge.plan-pro { background: var(--ink); color: #fff; }
.plan-badge.plan-agency { background: var(--green); color: #fff; }
.sub-status { font-size: 12px; color: var(--muted); }

.account-form, .admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.form-field input, .form-field select, .form-field textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--sans);
  background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-50);
}
.form-field input:disabled {
  background: var(--bg-alt);
  color: var(--muted);
  cursor: not-allowed;
}
.form-field small { color: var(--muted); font-size: 12px; }
.form-check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--text-2);
}

/* ===== ADMIN ===== */
.admin-page { padding: 0 24px 60px; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.admin-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.admin-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.admin-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 4px;
  font-family: var(--mono);
}
.admin-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.admin-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .5px;
  font-weight: 700;
}
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table a { color: var(--ink); font-weight: 600; }
.admin-table a:hover { color: var(--green-dark); }
.admin-table-actions { display: flex; gap: 12px; }
.admin-table-actions a, .admin-table-actions button {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
}
.link-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--danger);
  font-family: inherit;
  font-weight: 600;
}
.link-button:hover { text-decoration: underline; }
.badge-premium, .badge-free {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}
.badge-premium { background: var(--ink); color: #fff; }
.badge-free { background: var(--green-100); color: var(--green-dark); }

.admin-form { max-width: 720px; }
.form-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.form-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ===== EMBEDDED CHECKOUT ===== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  margin-top: 24px;
  align-items: start;
}
.checkout-summary {
  background: linear-gradient(160deg, #0a1f1a, #143027);
  border: 1px solid #143027;
  border-radius: 18px;
  padding: 30px;
  color: #fff;
}
.checkout-summary h1 { color: #fff !important; }
.checkout-summary > p { color: rgba(255,255,255,.7) !important; }
.checkout-plan-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.checkout-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 14px;
}
.checkout-plan-name { font-size: 18px; font-weight: 800; color: #fff; }
.checkout-plan-price { font-size: 26px; font-weight: 800; color: #34d399; font-family: var(--mono); }
.checkout-plan-price span { font-size: 14px; color: rgba(255,255,255,.6); font-weight: 500; }
.checkout-plan-features { list-style: none; margin: 0; padding: 0; }
.checkout-plan-features li {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  padding: 5px 0;
}
.checkout-total {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px;
}
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  padding: 5px 0;
}
.checkout-total-final {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 8px;
  padding-top: 14px;
}
.checkout-total-final span:last-child { color: #34d399; }
.checkout-renew-note { font-size: 12px; color: rgba(255,255,255,.55); margin: 14px 0 0; }
.checkout-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  color: rgba(255,255,255,.7);
}
.checkout-pay {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 12px 32px -12px rgba(15,23,42,.12);
}
#payment-element { min-height: 40px; }
#submit-btn { font-weight: 700; font-size: 16px; }
@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

/* ===== CHECKOUT SUCCESS ===== */
.checkout-success { padding: 60px 24px; max-width: 480px; margin: 0 auto; }
.checkout-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.checkout-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 auto 20px;
}
.checkout-card h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}
.checkout-card p { color: var(--text-2); margin: 0 0 24px; }
.checkout-details {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}
.checkout-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line-2);
}
.checkout-detail-row:last-child { border-bottom: none; }
.checkout-detail-row span { color: var(--muted); }
.checkout-detail-row strong { color: var(--ink); }
.small-text { font-size: 12px; color: var(--muted); margin: 16px 0 0; }

/* ===== 404 ===== */
.error-404 { padding: 80px 24px 120px; text-align: center; }
.error-card { max-width: 480px; margin: 0 auto; }
.error-code {
  font-size: 120px;
  font-weight: 800;
  color: var(--green);
  font-family: var(--mono);
  line-height: 1;
  margin-bottom: 16px;
}
.error-card h1 { font-size: 32px; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.error-card p { color: var(--text-2); margin: 0 0 24px; }
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-title { font-size: 44px; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .reel-single-grid { grid-template-columns: 1fr; }
  .reel-single-media { position: static; max-width: 400px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-guarantees { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero { padding: 48px 0 40px; }
  .header-inner { flex-wrap: wrap; }
  .primary-nav { display: none; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-brand-panel { padding: 32px 24px; }
  .auth-brand-inner { min-height: auto; }
  .auth-brand-content { margin: 24px 0; }
  .auth-brand-content h2 { font-size: 24px; }
  .auth-brand-checks { display: none; }
  .auth-form-panel { padding: 32px 24px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-table { display: block; overflow-x: auto; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .reel-single-title { font-size: 24px; }
}
