/* ===================================
   ScriptFlare — Main Stylesheet
   =================================== */

:root {
  --bg: #06060f;
  --bg2: #0d0d1f;
  --bg3: #13132a;
  --surface: #1a1a35;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --primary: #7c5cfc;
  --primary-dark: #5a3de0;
  --primary-light: #9d82fd;
  --pink: #ff61a6;
  --green: #10b981;
  --yellow: #fbbf24;
  --text: #f0f0f8;
  --text-muted: #8888aa;
  --text-faint: #555577;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.6);
}

/* === LIGHT MODE === */
body.light-mode {
  --bg: #f5f5fa;
  --bg2: #eeeef8;
  --bg3: #e8e8f5;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.1);
  --border-hover: rgba(0,0,0,0.2);
  --primary: #6244e8;
  --primary-dark: #4a2fc8;
  --primary-light: #6244e8;
  --text: #0d0d20;
  --text-muted: #444466;
  --text-faint: #888899;
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.15);
}
body.light-mode .hero-bg { opacity: 0.06; }
body.light-mode .gradient-text { -webkit-text-fill-color: initial; color: var(--primary); background: none; }
body.light-mode .nav-logo .logo-icon,
body.light-mode .footer-brand .logo-icon { filter: none; }
body.light-mode #final-cta { background: linear-gradient(135deg, #4a2fc8 0%, #6244e8 100%); }
body.light-mode .skeleton-line,
body.light-mode .skeleton-header { background: linear-gradient(90deg, #ddd 25%, #e8e8f5 50%, #ddd 75%); background-size: 200% 100%; }
body.light-mode .tp-script { background: #fafafa; color: #111; }
body.light-mode .teleprompter { background: #fafafa; }
body.light-mode .tp-controls { background: #eee; border-color: #ddd; }
body.light-mode .tp-btn { background: #fff; border-color: #ccc; color: #333; }
body.light-mode .tp-btn:hover { background: #eee; }

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* === LAYOUT === */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.hidden { display: none !important; }

/* === NAVBAR === */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-icon { font-size: 1.3rem; }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 8px; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  margin-left: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  border: none;
  position: relative;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(124, 92, 252, 0.45);
  opacity: 0.95;
}
/* Pulsing glow on the main generate CTA */
#generate-btn.btn-xl:not([style*="background"]) {
  animation: btn-pulse 3s ease-in-out infinite;
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 252, 0); }
  50%       { box-shadow: 0 0 0 8px rgba(124, 92, 252, 0.18); }
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(124, 92, 252, 0.08);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
}
.btn-ghost:hover { color: var(--text); }
.btn-improve {
  background: rgba(250,190,50,0.1);
  color: #f5a623;
  border: 1px solid rgba(250,190,50,0.3);
  border-radius: 8px;
}
.btn-improve:hover {
  background: rgba(250,190,50,0.2);
  border-color: rgba(250,190,50,0.5);
}
.btn-paypal {
  background: #ffc439;
  color: #333;
  font-weight: 700;
}
.btn-paypal:hover {
  background: #ffb300;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,196,57,0.35);
}
.btn-sm  { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }
.btn-xl  { padding: 18px 36px; font-size: 1.1rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* === HERO === */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,92,252,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255,97,166,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.badge {
  display: inline-block;
  background: rgba(124,92,252,0.15);
  border: 1px solid rgba(124,92,252,0.35);
  color: var(--primary-light);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, #9d82fd, #ff61a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
}
.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === SECTIONS === */
section { padding: 96px 0; }
.section-badge {
  display: inline-block;
  background: rgba(124,92,252,0.12);
  border: 1px solid rgba(124,92,252,0.25);
  color: var(--primary-light);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 560px;
}

/* === FEATURES === */
#features { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(124,92,252,0.3);
  background: var(--bg3);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.feature-card em { color: var(--primary-light); font-style: normal; }

/* === HOW IT WORKS === */
#how-it-works { background: var(--bg2); }
.steps-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.step-card {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s;
}
.step-card:hover {
  border-color: rgba(124, 92, 252, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.step-arrow {
  font-size: 1.5rem;
  color: var(--text-faint);
  flex-shrink: 0;
}

/* === GENERATOR === */
#generator { background: var(--bg); }
.app-wrapper {
  background: var(--bg2);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(124, 92, 252, 0.08);
  max-width: 860px;
  margin: 0 auto;
}

/* Usage Bar */
.usage-bar {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}
.usage-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.usage-tip {
  color: var(--primary-light);
  cursor: pointer;
  font-size: 0.82rem;
}
.usage-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}
.usage-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-stats-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-stats-toggle:hover { background: var(--bg2); color: var(--text); }

/* Creator Stats Dashboard */
.creator-stats {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  animation: fadeSlideIn 0.2s ease;
}
.cs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cs-title { font-weight: 700; font-size: 0.85rem; color: var(--text); }
.cs-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.cs-close:hover { background: rgba(255,255,255,0.06); }
.cs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}
.cs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  background: var(--bg3, var(--bg));
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}
.cs-num { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.cs-label { font-size: 0.68rem; color: var(--text-muted); }
.cs-niche { font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 480px) {
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Niche quick-select pills */
.niche-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.niche-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.niche-pill:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(124, 92, 252, 0.08);
}
.niche-pill.active {
  background: rgba(124, 92, 252, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Form */
.gen-form {
  padding: 32px;
}
.form-row {
  margin-bottom: 20px;
}
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { width: 100%; }
label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.required { color: var(--pink); }
input[type="text"], select {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
  -webkit-appearance: none;
}
input[type="text"]::placeholder { color: var(--text-faint); }
input[type="text"]:focus, select:focus {
  border-color: var(--primary);
  background: rgba(124,92,252,0.05);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.12);
}
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238888aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--text-faint);
}
#generate-btn {
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: white;
  border-radius: 12px;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
#generate-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(124,92,252,0.5);
}
#generate-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Output */
.gen-output {
  border-top: 1px solid var(--border);
  animation: fadeSlideIn 0.4s ease;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.output-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.output-badge {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}
.output-niche-badge {
  background: rgba(124,92,252,0.1);
  border: 1px solid rgba(124,92,252,0.25);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
}
.output-stats {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.wc-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.wc-bar-track {
  flex: 1;
  max-width: 200px;
  height: 5px;
  background: var(--bg3);
  border-radius: 100px;
  overflow: hidden;
}
.wc-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--primary);
  transition: width 0.5s ease;
}
.wc-bar-fill.wc-ok { background: #22c55e; }
.wc-bar-fill.wc-short { background: #f59e0b; }
.wc-bar-fill.wc-over { background: #ef4444; }
.wc-bar-label {
  font-size: 0.75rem;
  color: var(--text-faint);
  white-space: nowrap;
}
.output-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.output-actions-more {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
  animation: fadeSlideIn 0.2s ease;
}
.output-more-toggle {
  font-size: 0.78rem !important;
  opacity: 0.7;
}
.output-more-toggle:hover { opacity: 1; }
.script-content {
  padding: 28px 32px;
  max-height: 640px;
  overflow-y: auto;
  line-height: 1.75;
  font-size: 0.95rem;
  color: var(--text);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.script-content::-webkit-scrollbar { width: 6px; }
.script-content::-webkit-scrollbar-track { background: transparent; }
.script-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* B-roll hidden state */
#script-content.hide-broll .visual-cue { display: none; }
#broll-toggle.broll-off { opacity: 0.45; text-decoration: line-through; }

/* Section headers in script */
.script-section-header {
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 10px;
  padding: 6px 10px;
  border-left: 3px solid var(--primary);
  background: rgba(124, 92, 252, 0.07);
  border-radius: 0 6px 6px 0;
}
.script-section-header:first-child { margin-top: 0; }
.sec-copy-btn {
  background: none;
  border: none;
  color: var(--primary-light);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.script-section-header:hover .sec-copy-btn { opacity: 0.7; }
.sec-copy-btn:hover { opacity: 1 !important; }
.visual-cue {
  display: block;
  color: #7dd3fc;
  font-size: 0.83rem;
  margin: 10px 0;
  padding: 6px 12px 6px 10px;
  border-left: 2px solid rgba(125, 211, 252, 0.25);
  background: rgba(56, 189, 248, 0.04);
  border-radius: 0 6px 6px 0;
}
.script-para {
  display: block;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* Paywall */
.paywall {
  padding: 48px 32px;
  text-align: center;
  animation: fadeSlideIn 0.4s ease;
}
.paywall-inner {
  max-width: 420px;
  margin: 0 auto;
}
.paywall-icon { font-size: 2.5rem; margin-bottom: 16px; }
.paywall h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.paywall p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.pricing-highlight {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}
.price-big {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-per { font-size: 1rem; color: var(--text-muted); }
.price-cancel {
  font-size: 0.78rem;
  color: var(--text-faint);
  display: block;
  width: 100%;
  text-align: center;
  margin-top: -18px;
}
.paywall-or {
  margin: 20px 0 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
}
.paywall-or::before,
.paywall-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--border);
}
.paywall-or::before { left: 0; }
.paywall-or::after { right: 0; }
.unlock-row {
  display: flex;
  gap: 8px;
}
.unlock-row input {
  flex: 1;
  font-size: 0.85rem;
}
.unlock-msg {
  margin-top: 10px;
  font-size: 0.85rem;
}
.unlock-msg.success { color: var(--green); }
.unlock-msg.error { color: #f87171; }

/* Pro Badge */
.pro-badge {
  background: rgba(16,185,129,0.1);
  border-top: 1px solid rgba(16,185,129,0.2);
  color: var(--green);
  text-align: center;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* === TESTIMONIALS === */
#testimonials { background: var(--bg2); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 1000px) {
  .testimonials-grid { grid-template-columns: repeat(4, 1fr); }
}
.testimonial-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
}
.testimonial-card:hover {
  border-color: rgba(124,92,252,0.25);
  transform: translateY(-2px);
}
.stars {
  color: var(--yellow);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}
.testimonial-author span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.testimonial-result {
  display: inline-block;
  background: rgba(52, 211, 153, 0.08);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

/* === PRICING === */
#pricing { background: var(--bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1060px;
  margin: 0 auto 40px;
}
.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(145deg, rgba(124,92,252,0.08), var(--bg2));
  box-shadow: 0 0 40px rgba(124,92,252,0.12);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: white;
  padding: 4px 18px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.launch-price-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255,97,166,0.15), rgba(124,92,252,0.15));
  border: 1px solid rgba(255,97,166,0.3);
  color: #ff9fd1;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.plan-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}
.plan-price-was {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-faint);
  text-decoration: line-through;
  letter-spacing: -0.03em;
}
.plan-price {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}
.plan-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.plan-features {
  list-style: none;
  margin-bottom: 28px;
}
.plan-features li {
  padding: 7px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.plan-features li.muted { color: var(--text-faint); }
.plan-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 12px;
}
.guarantee-badge {
  display: inline-block;
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.2);
  color: #6ee7b7;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.paypal-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg2);
  border: 1px solid rgba(255,196,57,0.2);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  animation: fadeSlideIn 0.4s ease;
}
.paypal-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.paypal-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.65;
}
.paypal-btn-wrap {
  margin: 24px 0;
}
.paypal-note {
  font-size: 0.8rem;
  color: var(--text-faint);
}
.paypal-steps {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.paypal-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.step-num-small {
  background: rgba(124,92,252,0.15);
  border: 1px solid rgba(124,92,252,0.3);
  color: var(--primary-light);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.paypal-guarantee {
  font-size: 0.82rem;
  color: var(--green);
  margin-top: 4px;
  padding: 8px 14px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 8px;
}

/* === FAQ === */
#faq { background: var(--bg2); }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.2s;
  gap: 16px;
}
.faq-q:hover { color: var(--primary-light); }
.faq-arrow {
  color: var(--text-faint);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 4px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  display: none;
}
.faq-a.open { display: block; }

/* === FINAL CTA === */
#final-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a0850 50%, #2d0f60 100%);
  text-align: center;
  padding: 100px 0;
}
#final-cta .section-title.white,
#final-cta .section-sub.white {
  color: #fff;
}
#final-cta .section-sub.white {
  color: rgba(255,255,255,0.7);
  margin: 0 auto 36px;
}

.final-cta-quote {
  font-style: italic;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.7;
  padding: 0 16px;
}
.final-cta-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* === SCROLL TO TOP === */
.scroll-top {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--bg3);
  border-color: var(--border-hover);
  color: var(--text);
}
@media (max-width: 640px) {
  .scroll-top { bottom: 76px; right: 12px; width: 36px; height: 36px; font-size: 0.9rem; }
}

/* === FOOTER === */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-tagline {
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 400;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 700px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 400px) {
  .footer-cols { grid-template-columns: 1fr; }
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin: 0;
}
.footer-legal {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-faint);
}
.footer-legal a { color: var(--text-faint); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-muted); }
/* Keep old footer-links for backwards compat (hidden) */
.footer-links { display: none; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .steps-row {
    flex-direction: column;
  }
  .step-arrow { transform: rotate(90deg); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
}
@media (max-width: 640px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(6,6,15,0.98);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(20px);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .output-header { flex-direction: column; align-items: flex-start; }
  #generator .section-title { font-size: 1.8rem; }
  .gen-form { padding: 20px; }
  .script-content { padding: 20px; }
  .unlock-row { flex-direction: column; }
  .sf-toast { bottom: 80px; }
  .niche-pills { gap: 6px; }
  body { padding-bottom: 68px; }
}

/* === FOUNDER NOTE === */
#founder-note { background: var(--bg); padding: 60px 0; }
.founder-card {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.founder-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: #fff;
}
.founder-content p {
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.founder-sig strong { display: block; font-size: 0.9rem; }
.founder-sig span { font-size: 0.78rem; color: var(--text-faint); }
@media (max-width: 560px) {
  .founder-card { flex-direction: column; gap: 16px; }
}

/* === COMPARISON TABLE === */
#comparison { background: var(--bg2); }
.comparison-table {
  max-width: 860px;
  margin: 0 auto 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-header,
.compare-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
}
.compare-header {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.compare-col {
  padding: 14px 20px;
  font-size: 0.86rem;
}
.compare-header .compare-col {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.compare-header .col-sf {
  background: rgba(124,92,252,0.07);
  color: var(--primary-light);
}
.col-gpt,
.col-sf {
  text-align: center;
  border-left: 1px solid var(--border);
}
.compare-row {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.compare-row:last-child { border-bottom: none; }
.compare-row:hover { background: rgba(255,255,255,0.02); }
.col-feature { color: var(--text-muted); font-weight: 500; }
.col-yes { color: #6ee7b7; }
.col-no  { color: var(--text-faint); }
.compare-cta {
  text-align: center;
  margin-top: 12px;
}
@media (max-width: 600px) {
  .comparison-table { overflow-x: auto; }
  .compare-header,
  .compare-row {
    grid-template-columns: minmax(120px,1fr) minmax(100px,1fr) minmax(120px,1fr);
    min-width: 340px;
  }
  .col-feature { font-size: 0.78rem; }
  .col-gpt, .col-sf { font-size: 0.75rem; }
}

/* === SCRIPT PREVIEW SECTION === */
#script-preview { background: var(--bg2); }
.preview-wrapper {
  background: var(--bg3);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(124, 92, 252, 0.06);
}
.preview-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(124, 92, 252, 0.05);
  flex-wrap: wrap;
}
.preview-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
}
.preview-tag-live {
  background: rgba(124, 92, 252, 0.1);
  border-color: rgba(124, 92, 252, 0.3);
  color: var(--primary-light);
}
.preview-content {
  padding: 24px 28px;
  font-size: 0.93rem;
  line-height: 1.78;
  color: var(--text-muted);
  position: relative;
}
.preview-section-header {
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin: 20px 0 10px;
  padding: 6px 10px;
  border-left: 3px solid var(--primary);
  background: rgba(124, 92, 252, 0.07);
  border-radius: 0 6px 6px 0;
}
.preview-section-header:first-child { margin-top: 0; }
.preview-visual {
  display: block;
  color: var(--text-faint);
  font-style: italic;
  font-size: 0.84rem;
  margin: 10px 0;
  padding: 5px 12px;
  border-left: 2px solid rgba(255,255,255,0.1);
}
.preview-fade {
  position: relative;
  margin-top: -40px;
}
.preview-blur-overlay {
  background: linear-gradient(to bottom, transparent, var(--bg3) 60%);
  padding: 80px 0 16px;
  text-align: center;
}

/* === PREVIEW TABS === */
.preview-tabs {
  display: flex;
  gap: 6px;
  padding: 16px 24px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(124, 92, 252, 0.03);
}
.preview-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px 10px;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  margin-bottom: -1px;
}
.preview-tab:hover {
  color: var(--text);
  background: rgba(124, 92, 252, 0.08);
}
.preview-tab.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
  background: rgba(124, 92, 252, 0.1);
}
.preview-panel {
  display: none;
}
.preview-panel.active {
  display: block;
}

/* === TOAST NOTIFICATIONS === */
.sf-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--border-hover);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  max-width: 420px;
  text-align: center;
  white-space: nowrap;
}
.sf-toast.sf-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.sf-toast.sf-toast-warning {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(25, 20, 8, 0.95);
  color: #fde68a;
}
.sf-toast.sf-toast-success {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(4, 20, 14, 0.95);
  color: #6ee7b7;
}
.sf-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: normal;
}
.sf-toast-action {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: inherit;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.sf-toast-action:hover { background: rgba(255,255,255,0.2); }

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === USAGE URGENCY === */
.usage-bar.urgent .usage-fill {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.usage-bar.urgent #usage-label {
  color: #fbbf24;
}
.usage-bar.critical .usage-fill {
  background: #ef4444;
  animation: pulse-red 1.5s ease-in-out infinite;
}
.usage-bar.critical #usage-label {
  color: #f87171;
}
@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* === STICKY MOBILE CTA === */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(6, 6, 15, 0.97);
  border-top: 1px solid rgba(124, 92, 252, 0.25);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.32s ease;
  backdrop-filter: blur(12px);
}
.sticky-cta-bar.visible {
  transform: translateY(0);
}
.sticky-cta-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 0.82rem;
  line-height: 1.4;
}
.sticky-cta-text strong { font-size: 0.9rem; }
.sticky-cta-text span { color: var(--text-muted); }
.sticky-cta-btn { white-space: nowrap; }
@media (min-width: 769px) {
  .sticky-cta-bar { display: none; }
}

/* === SKELETON LOADER === */
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-line, .skeleton-header {
  background: linear-gradient(90deg, var(--surface) 25%, rgba(124,92,252,0.06) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease infinite;
  border-radius: 5px;
  margin-bottom: 10px;
}
.skeleton-line { height: 13px; width: 100%; }
.skeleton-header { height: 18px; width: 32%; margin-bottom: 14px; }
.skeleton-line.w-95 { width: 95%; }
.skeleton-line.w-92 { width: 92%; }
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-88 { width: 88%; }
.skeleton-line.w-85 { width: 85%; }
.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-header.w-40 { width: 40%; }
.skeleton-spacer { height: 20px; }

/* === QUALITY IMPROVEMENT TIPS === */
.quality-tips {
  padding: 10px 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(251,191,36,0.03);
  line-height: 1.6;
}
.quality-tips strong { color: var(--yellow); }
.quality-tips em { color: var(--primary-light); font-style: normal; }
.quality-tips span { display: inline; }
.quality-tips span + span::before { content: ' · '; color: var(--text-faint); }

/* === NICHE PERFORMANCE TIP === */
.niche-perf-tip {
  padding: 10px 20px;
  font-size: 0.79rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(124,92,252,0.03);
  animation: fadeSlideIn 0.3s ease;
}
.niche-perf-tip strong { color: var(--primary-light); }

/* === SCRIPT QUALITY REPORT === */
.script-quality {
  display: flex;
  gap: 8px;
  padding: 10px 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  background: rgba(0,0,0,0.15);
  animation: fadeSlideIn 0.3s ease;
}
.quality-item {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.quality-item.q-ok {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.25);
  color: #6ee7b7;
}
.quality-item.q-miss {
  background: rgba(251,191,36,0.06);
  border-color: rgba(251,191,36,0.2);
  color: #fcd34d;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.q-fix-btn {
  background: rgba(251,191,36,0.18);
  border: 1px solid rgba(251,191,36,0.35);
  color: #fcd34d;
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s;
  white-space: nowrap;
}
.q-fix-btn:hover {
  background: rgba(251,191,36,0.35);
  color: #fff;
}
.hook-formula-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  border: 1px solid rgba(124,92,252,0.3);
  background: rgba(124,92,252,0.1);
  color: #a78bfa;
  letter-spacing: 0.01em;
}

/* Watch Time Predictor */
.watch-time-pred {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  margin: 6px 0;
  flex-wrap: wrap;
}
.wtp-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 130px;
}
.wtp-bar-wrap {
  flex: 1;
  min-width: 80px;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.wtp-bar {
  height: 100%;
  border-radius: 100px;
  transition: width 0.9s ease;
}
.wtp-bar.wt-high { background: linear-gradient(90deg, #059669, #6ee7b7); }
.wtp-bar.wt-mid  { background: linear-gradient(90deg, #d97706, #fcd34d); }
.wtp-bar.wt-low  { background: linear-gradient(90deg, #dc2626, #f87171); }
.wtp-pct {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.wtp-pct.wt-high { color: #6ee7b7; }
.wtp-pct.wt-mid  { color: #fcd34d; }
.wtp-pct.wt-low  { color: #f87171; }
.wtp-grade {
  font-weight: 400;
  font-size: 0.74rem;
  opacity: 0.8;
  margin-left: 4px;
}

/* Script score badge */
.quality-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 14px 4px 4px;
  border-right: 1px solid var(--border);
  margin-right: 4px;
  gap: 1px;
  position: relative;
  cursor: pointer;
}
.quality-gauge {
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}
.gauge-track {
  fill: none;
  stroke: rgba(255,255,255,0.07);
  stroke-width: 4;
}
.gauge-fill {
  fill: none;
  stroke: #6ee7b7;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0 113;
  transition: stroke-dasharray 0.8s ease;
}
.quality-score-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  font-weight: 600;
}
.quality-score {
  position: absolute;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  top: 50%;
  left: 8px;
  width: 48px;
  text-align: center;
  transform: translateY(-50%);
}
.score-high { color: #34d399; }
.score-mid  { color: #fbbf24; }
.score-low  { color: #f87171; }

/* Generation progress bar */
.gen-progress-wrap {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeSlideIn 0.25s ease;
}
.gen-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.gen-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  border-radius: 3px;
  transition: width 0.6s ease-out;
}
.gen-progress-pct {
  font-size: 11px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
}

/* === TOPIC INPUT ROW (with surprise button) === */
.topic-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.topic-input-row input { flex: 1; }
.btn-surprise {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-surprise:hover {
  background: rgba(124,92,252,0.1);
  border-color: rgba(124,92,252,0.4);
  transform: rotate(20deg) scale(1.1);
}

/* === MIC BUTTON === */
.btn-mic {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 0 12px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-mic:hover {
  background: rgba(124,92,252,0.1);
  border-color: rgba(124,92,252,0.4);
}
.btn-mic.mic-active {
  background: rgba(255,72,72,0.12);
  border-color: rgba(255,72,72,0.5);
  color: #ff6b6b;
  animation: mic-pulse 1s ease-in-out infinite;
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,72,72,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(255,72,72,0); }
}

/* === LOADING TIPS === */
.loading-tip-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(124,92,252,0.05);
  border: 1px solid rgba(124,92,252,0.12);
  border-radius: 8px;
  animation: fadeSlideIn 0.3s ease;
}
.loading-tip-icon { font-size: 0.9rem; flex-shrink: 0; margin-top: 1px; }
#loading-tip-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === UPGRADE NUDGE (1 script left banner) === */
.upgrade-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(251,191,36,0.06);
  border-bottom: 1px solid rgba(251,191,36,0.15);
  font-size: 0.84rem;
  color: var(--text-muted);
  animation: fadeSlideIn 0.3s ease;
}
.upgrade-nudge-btn {
  white-space: nowrap;
  color: var(--yellow);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.upgrade-nudge-btn:hover { opacity: 0.8; }
@media (max-width: 560px) {
  .upgrade-nudge { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* === VOICEOVER QUICK LINKS === */
.voiceover-links {
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeSlideIn 0.3s ease;
}
.voiceover-label {
  font-size: 0.75rem;
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.voiceover-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.voiceover-chip {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  text-decoration: none;
  transition: all 0.18s;
}
.voiceover-chip:hover {
  border-color: rgba(124,92,252,0.4);
  color: var(--primary-light);
  background: rgba(124,92,252,0.06);
}

/* === TOPIC HISTORY === */
.topic-history {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  animation: fadeSlideIn 0.25s ease;
}
.topic-history-label {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.topic-history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.topic-history-chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-faint);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.18s;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topic-history-chip:hover {
  border-color: var(--border-hover);
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
}

/* === INLINE TOPIC STARTERS === */
.topic-starters {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  animation: fadeSlideIn 0.22s ease;
}
.ts-label {
  font-size: 0.72rem;
  color: var(--text-faint);
  white-space: nowrap;
  padding-top: 5px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.ts-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ts-chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ts-chip:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(124,92,252,0.07);
  transform: translateY(-1px);
}
/* Generate button pulse when topic starter is clicked */
@keyframes sf-btn-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124,92,252,0.5); }
  50%  { box-shadow: 0 0 0 8px rgba(124,92,252,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,92,252,0); }
}
.btn-pulse {
  animation: sf-btn-pulse 0.6s ease 0s, sf-btn-pulse 0.6s ease 0.8s;
}

/* === TOPIC SUGGESTIONS === */
.topic-suggestions {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  animation: fadeSlideIn 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.topic-sug-label {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 8px;
  flex-shrink: 0;
}
.topic-sug-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.topic-sug-chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  transition: all 0.2s;
  cursor: pointer;
  text-align: left;
}
.topic-sug-chip:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(124,92,252,0.06);
}
.topic-series-row {
  flex-basis: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.tsc-series {
  border-color: rgba(124,92,252,0.3);
}
.tsc-series:hover {
  border-color: var(--primary);
  background: rgba(124,92,252,0.1);
  color: var(--text);
}

/* === IMPROVE PREVIEW PANEL === */
.improve-preview {
  margin: 0 24px 16px;
  background: linear-gradient(135deg, rgba(124,92,252,0.08) 0%, rgba(255,97,166,0.06) 100%);
  border: 1px solid rgba(124,92,252,0.3);
  border-radius: 12px;
  padding: 16px 20px;
  animation: fadeSlideIn 0.3s ease;
}
.ip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.ip-lock {
  font-size: 1rem;
  flex-shrink: 0;
}
.ip-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
}
.ip-close:hover { color: var(--text); }
.ip-fixes {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.ip-fix-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
}
.ip-fix-icon {
  flex-shrink: 0;
  font-size: 0.9rem;
}
.ip-fix-text {
  color: var(--text-muted);
  line-height: 1.4;
}
.ip-cta {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--primary), #a855f7);
  border: none;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: 8px;
  transition: opacity 0.2s;
}
.ip-cta:hover { opacity: 0.9; }
.ip-sub {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 8px;
}

/* === HERO NICHE QUICK-START === */
.hero-niches {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}
.hero-niche-label {
  font-size: 0.78rem;
  color: var(--text-faint);
  white-space: nowrap;
}
.hero-niche-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  transition: all 0.2s;
  cursor: pointer;
}
.hero-niche-chip:hover {
  background: rgba(124,92,252,0.1);
  border-color: rgba(124,92,252,0.35);
  color: var(--text);
}

/* === NICHE AUTO-DETECT HINT === */
.niche-hint {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 6px;
  display: none;
  animation: fadeSlideIn 0.2s ease;
}
.niche-hint.visible { display: block; }
.niche-hint-btn {
  background: rgba(124,92,252,0.1);
  border: 1px solid rgba(124,92,252,0.3);
  color: var(--primary-light);
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 4px;
}
.niche-hint-btn:hover { background: rgba(124,92,252,0.2); }

/* === TOPIC CHARACTER COUNTER === */
.form-hint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}
.topic-counter {
  font-size: 0.75rem;
  color: var(--text-faint);
  flex-shrink: 0;
}

/* === PRICING DEMAND STRIP === */
.pricing-demand-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.demand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}

/* === AUDIENCE PRESETS === */
.audience-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.audience-preset {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-faint);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.18s;
}
.audience-preset:hover,
.audience-preset.active {
  border-color: rgba(124,92,252,0.5);
  color: var(--primary-light);
  background: rgba(124,92,252,0.07);
}

/* === LENGTH HINT === */
.length-hint {
  font-size: 0.73rem;
  color: var(--primary-light);
  margin-top: 6px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.3s ease;
}
.length-hint.visible {
  opacity: 1;
  max-height: 40px;
}

/* === GENERATE TIP + KEYBOARD HINT === */
.generate-tip {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 10px;
  text-align: center;
}
kbd {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: inherit;
  font-size: 0.75rem;
}
@media (max-width: 640px) {
  .generate-tip { display: none; }
}

/* === PAYWALL SAMPLE LINK === */
.paywall-sample-link {
  display: inline-block;
  font-size: 0.83rem;
  color: var(--text-faint);
  margin: 8px 0 4px;
  transition: color 0.2s;
}
.paywall-sample-link:hover { color: var(--primary-light); }

/* === PAYWALL SOCIAL PROOF === */
.paywall-social {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 4px 0 12px;
}

/* === PAYWALL TESTIMONIAL === */
/* === PAYWALL HOOK PREVIEW === */
.paywall-hook-preview {
  background: rgba(124,92,252,0.06);
  border: 1px solid rgba(124,92,252,0.22);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0;
  text-align: left;
  animation: fadeSlideIn 0.3s ease;
}
.php-label {
  font-size: 0.7rem;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  font-weight: 600;
}
.php-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 8px;
}
.php-blur {
  font-size: 0.78rem;
  color: var(--primary-light);
  opacity: 0.7;
  position: relative;
}
.php-blur::before {
  content: '';
  display: block;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(10,8,26,0.95));
  margin-bottom: -4px;
  pointer-events: none;
}

.paywall-testimonial {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0;
  text-align: left;
}
.pwt-stars { color: #fbbf24; font-size: 13px; }
.paywall-testimonial p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 6px 0;
  font-style: italic;
}
.pwt-author {
  font-size: 11px;
  color: var(--text-faint);
}

/* === PAYWALL BENEFITS === */
.paywall-benefits {
  list-style: none;
  text-align: left;
  margin: 14px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.paywall-benefits li {
  padding: 4px 0;
  line-height: 1.5;
}

/* === PRICING COMPARE === */
.pricing-compare {
  text-align: center;
  margin: -12px 0 36px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 10px 16px;
  background: rgba(124, 92, 252, 0.05);
  border: 1px solid rgba(124, 92, 252, 0.12);
  border-radius: 10px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-compare strong { color: var(--text); }

/* === LIVE TICKER === */
.live-ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 16px;
  animation: fadeSlideIn 0.4s ease;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* === YOUTUBE TITLE OPTIONS === */
.title-options {
  margin: 0 0 0;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  background: rgba(124, 92, 252, 0.03);
  animation: fadeSlideIn 0.3s ease;
}
.title-options-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.title-options-icon { font-size: 1rem; }
.title-options-header strong {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
}
.title-options-sub {
  font-size: 0.76rem;
  color: var(--text-faint);
  margin-left: auto;
}
.title-options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.title-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.title-option:hover {
  border-color: rgba(124, 92, 252, 0.4);
  background: rgba(124, 92, 252, 0.06);
}
.title-option-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}
.title-option:hover .title-option-text { color: var(--text); }
.title-option-copy {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-light);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
  min-width: 36px;
  text-align: right;
}
.title-option:hover .title-option-copy { opacity: 1; }

/* === PRICING COUNTDOWN === */
.pricing-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 10px;
}
.pricing-countdown strong { color: #fb923c; }

/* === PAYPAL COPY EMAIL === */
.copy-email-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--primary-light);
  font-size: 0.76rem;
  padding: 2px 8px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 6px;
  transition: background 0.15s;
}
.copy-email-btn:hover { background: rgba(124,92,252,0.12); }

/* Title char count */
.title-char-count {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.title-len-ok   { background: rgba(16,185,129,0.12); color: #6ee7b7; }
.title-len-warn { background: rgba(251,191,36,0.12); color: #fcd34d; }
.title-len-over { background: rgba(248,113,113,0.12); color: #fca5a5; }

/* Headline strength badge */
.title-hs {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}
.hs-high { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.hs-mid  { background: rgba(251,191,36,0.15); color: #fcd34d; }
.hs-low  { background: rgba(148,163,184,0.12); color: #94a3b8; }

/* Thumbnail text ideas */
.title-options-thumb {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.thumb-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.thumb-lines-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.thumb-line-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(124,92,252,0.06);
  border: 1px solid rgba(124,92,252,0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.thumb-line-option:hover {
  background: rgba(124,92,252,0.12);
  border-color: rgba(124,92,252,0.4);
}
.thumb-line-text {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary-light);
  text-transform: uppercase;
}
.thumb-line-option .title-option-copy {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-faint);
  opacity: 0;
  transition: opacity 0.15s;
}
.thumb-line-option:hover .title-option-copy { opacity: 1; }

/* === VIDEO DESCRIPTION PANEL === */
.desc-panel {
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.12);
  animation: fadeSlideIn 0.3s ease;
}
.desc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.desc-content {
  margin: 0;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 340px;
  overflow-y: auto;
}

/* === CONTENT CALENDAR === */
.content-calendar {
  margin: 0;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  background: rgba(16, 185, 129, 0.02);
  animation: fadeSlideIn 0.3s ease;
}
.cal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.cal-header strong { font-size: 0.88rem; color: var(--text); }
.cal-sub {
  font-size: 0.76rem;
  color: var(--text-faint);
  margin-left: auto;
}
.cal-ideas {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cal-idea {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.cal-idea:hover {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.05);
}
.cal-day {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 26px;
  flex-shrink: 0;
}
.cal-icon { font-size: 0.9rem; flex-shrink: 0; }
.cal-idea-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.4;
}
.cal-idea:hover .cal-idea-text { color: var(--text); }
.cal-use {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6ee7b7;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cal-idea:hover .cal-use { opacity: 1; }
@media (max-width: 480px) {
  .cal-sub { display: none; }
}

/* === EXIT INTENT MODAL === */
.exit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeSlideIn 0.25s ease;
}
.exit-modal.hidden { display: none; }
.exit-modal-box {
  background: var(--surface);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 60px rgba(124, 92, 252, 0.2);
}
.exit-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s;
}
.exit-modal-close:hover { color: var(--text); }
.exit-modal-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.exit-modal-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.exit-modal-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.exit-modal-note {
  font-size: 0.76rem;
  color: var(--text-faint);
  margin-top: 10px;
  margin-bottom: 0;
}
@media (max-width: 480px) {
  .exit-modal-box { padding: 28px 20px; }
}

/* === OPTIONAL LABEL === */
.optional-label {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-weight: 400;
}

/* === TELEPROMPTER === */
.teleprompter {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}
.teleprompter.hidden { display: none; }
.tp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #111;
  border-bottom: 1px solid #222;
  flex-shrink: 0;
  gap: 8px;
  flex-wrap: wrap;
}
.tp-controls-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tp-logo {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-right: 8px;
}
.tp-btn {
  background: #222;
  border: 1px solid #333;
  color: #ccc;
  font-size: 0.78rem;
  font-family: inherit;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tp-btn:hover { background: #333; color: #fff; }
.tp-close {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  font-size: 0.82rem;
  font-family: inherit;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.tp-close:hover { background: rgba(239,68,68,0.25); }
.tp-script {
  flex: 1;
  overflow-y: auto;
  padding: 60px 10% 200px;
  line-height: 1.8;
  color: #fff;
  scroll-behavior: auto;
}
.tp-line {
  display: block;
  margin-bottom: 0.6em;
}
.tp-header {
  display: block;
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.7em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1.4em 0 0.6em;
  padding: 6px 14px;
  background: rgba(124,92,252,0.12);
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
}
.tp-broll {
  display: block;
  color: #6b7280;
  font-size: 0.65em;
  font-style: italic;
  margin: 0.4em 0;
}
.tp-spacer { height: 0.4em; }
@media (max-width: 640px) {
  .tp-script { padding: 40px 5% 160px; }
  .tp-controls { padding: 8px 12px; }
}

/* === SCRIPT HISTORY PANEL === */
.history-panel {
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.1);
  animation: fadeSlideIn 0.25s ease;
}
.history-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}
.history-header strong { color: var(--text); }
.history-sub { font-size: 0.75rem; color: var(--text-faint); margin-left: auto; }
.history-list { padding: 8px 0; }
.history-item {
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.history-item:last-child { border-bottom: none; }
.history-item:hover { background: rgba(124,92,252,0.06); }
.history-item-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.history-item-date {
  font-size: 0.72rem;
  color: var(--text-faint);
}
.history-item-niche {
  font-size: 0.72rem;
  color: var(--primary-light);
  font-weight: 500;
}
.history-item-words {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-left: auto;
}
.history-item-topic {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.history-item:hover .history-item-topic { color: var(--text); }

/* === TOOLS & RESOURCES SECTION === */
#resources { background: var(--bg); }
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 700px) {
  .resources-grid { grid-template-columns: 1fr; gap: 24px; }
}
.resource-category {}
.resource-cat-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.resource-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.resource-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  flex-wrap: wrap;
}
.resource-card:hover {
  border-color: rgba(124,92,252,0.35);
  background: rgba(124,92,252,0.05);
  transform: translateY(-1px);
}
.resource-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  min-width: 100px;
  flex-shrink: 0;
}
.resource-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.4;
}
.resource-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

/* === CHECKLIST TRIGGER BUTTON === */
.checklist-trigger {
  background: none;
  border: none;
  color: var(--primary-light);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.checklist-trigger:hover { color: var(--text); }

/* === STARTER CHECKLIST MODAL === */
.checklist-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeSlideIn 0.25s ease;
  overflow-y: auto;
}
.checklist-modal.hidden { display: none; }
.checklist-box {
  background: var(--surface);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 0 60px rgba(124, 92, 252, 0.15);
  text-align: left;
}
.checklist-header {
  text-align: center;
  margin-bottom: 24px;
}
.checklist-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.checklist-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.checklist-header p {
  font-size: 0.86rem;
  color: var(--text-muted);
}
.checklist-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.checklist-day {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}
.checklist-day-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  margin-bottom: 8px;
}
.checklist-day ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.checklist-day li {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}
@media (max-width: 480px) {
  .checklist-box { padding: 24px 18px 24px; }
}

/* === THEME TOGGLE BUTTON === */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.05); }

/* === CHANNEL NAME IDEAS === */
.channel-names {
  padding: 14px 20px 16px;
  border-top: 1px solid var(--border);
  background: rgba(124,92,252,0.02);
  animation: fadeSlideIn 0.3s ease;
}
.channel-names-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.86rem;
}
.channel-names-header strong { color: var(--text); }
.channel-names-sub { font-size: 0.75rem; color: var(--text-faint); margin-left: auto; }
.channel-names-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.channel-name-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.channel-name-chip:hover {
  border-color: rgba(124,92,252,0.4);
  background: rgba(124,92,252,0.08);
  color: var(--text);
}
.channel-name-copy {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary-light);
  opacity: 0;
  transition: opacity 0.15s;
}
.channel-name-chip:hover .channel-name-copy { opacity: 1; }

/* === SECTION WORD COUNT BREAKDOWN === */
.section-breakdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 20px 12px;
  border-top: 1px solid var(--border);
  background: rgba(124,92,252,0.02);
  animation: fadeSlideIn 0.3s ease;
}
.breakdown-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}
.sec-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: default;
  transition: border-color 0.2s;
}
.sec-chip em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-faint);
}
.sec-chip:hover { border-color: rgba(124,92,252,0.3); }
.sec-chip.sec-short {
  border-color: rgba(255,160,64,0.4);
  color: #f5a623;
}
.sec-chip.sec-short em { color: #f5a623; opacity: 0.7; }
.sec-chip.sec-long {
  border-color: rgba(255,72,72,0.35);
  color: #ff6b6b;
}
.sec-chip.sec-long em { color: #ff6b6b; opacity: 0.7; }

/* === SOCIAL MEDIA REPURPOSE PANEL === */
.social-clips {
  border-top: 1px solid var(--border);
  background: rgba(124,92,252,0.02);
  animation: fadeSlideIn 0.3s ease;
}
.sc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 8px;
  font-size: 0.86rem;
}
.sc-header strong { color: var(--text); }
.sc-sub { font-size: 0.75rem; color: var(--text-faint); }
.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  padding: 0 20px 16px;
}
.sc-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}
.sc-card:hover { border-color: rgba(124,92,252,0.35); }
.sc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sc-platform {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sc-copy {
  background: rgba(124,92,252,0.12);
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: 6px;
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.sc-copy:hover { background: rgba(124,92,252,0.25); }
.sc-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.sc-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.sc-error {
  padding: 14px 20px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.social-clips-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 20px;
  text-align: center;
}
.sc-lock { font-size: 1.8rem; }
.social-clips-gate strong { font-size: 1rem; color: var(--text); }
.social-clips-gate p { font-size: 0.84rem; color: var(--text-muted); margin: 0; max-width: 340px; }

/* === NICHE REVENUE INSIGHTS === */
.niche-revenue {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(124,92,252,0.05);
  border: 1px solid rgba(124,92,252,0.2);
  border-radius: 10px;
  animation: fadeSlideIn 0.25s ease;
  margin-top: 2px;
}
.nr-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.nr-body { flex: 1; min-width: 0; }
.nr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.nr-cpm {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-light);
}
.nr-tier {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 1px 8px;
}
.nr-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 3px;
  line-height: 1.45;
}
.nr-channels {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin: 0;
}
.nr-channels em { font-style: normal; color: var(--text-muted); }

/* === QUALITY REPORT KEYWORDS === */
.quality-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 20px 12px;
  border-top: 1px solid var(--border);
  background: rgba(124,92,252,0.02);
  animation: fadeSlideIn 0.3s ease;
}
.kw-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}
.kw-chip {
  padding: 3px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: default;
  transition: border-color 0.2s, color 0.2s;
}
.kw-chip:hover {
  border-color: rgba(124,92,252,0.35);
  color: var(--primary-light);
}

/* === SCORE BREAKDOWN POPOVER === */
.quality-score.clickable {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.quality-score.clickable:hover { opacity: 0.8; }
.score-breakdown-pop {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 12px 20px 14px;
  animation: fadeSlideIn 0.2s ease;
}
.sbr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.sbr-header strong { color: var(--text); }
.sbr-close {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.sbr-close:hover { color: var(--text); }
.sbr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.sbr-row:last-child { margin-bottom: 0; }
.sbr-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  width: 90px;
  flex-shrink: 0;
}
.sbr-track {
  flex: 1;
  height: 5px;
  background: var(--bg3);
  border-radius: 100px;
  overflow: hidden;
}
.sbr-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.4s ease;
}
.sbr-fill.sbr-full { background: #22c55e; }
.sbr-fill.sbr-part { background: #f59e0b; }
.sbr-fill.sbr-zero { background: var(--bg3); }
.sbr-pts {
  font-size: 0.72rem;
  font-weight: 700;
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}
.sbr-pts.sbr-full { color: #22c55e; }
.sbr-pts.sbr-part { color: #f59e0b; }
.sbr-pts.sbr-zero { color: var(--text-faint); }

/* === VOICE PROFILE === */
.btn-voice-profile {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 2px 10px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  vertical-align: middle;
}
.btn-voice-profile:hover { border-color: rgba(124,92,252,0.4); color: var(--primary-light); }
.vp-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.vp-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  width: 100%;
  max-width: 440px;
  animation: fadeSlideIn 0.25s ease;
}
.vp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.vp-header strong { color: var(--text); }
.vp-close {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.15s;
}
.vp-close:hover { background: var(--bg3); color: var(--text); }
.vp-sub {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 0 0 18px;
}
.vp-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.vp-field { display: flex; flex-direction: column; gap: 5px; }
.vp-field label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.vp-field input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.2s;
}
.vp-field input:focus { border-color: var(--primary); }
.vp-footer { display: flex; gap: 8px; }
.vp-pro-note { font-size: 0.76rem; margin: 10px 0 0; }
.vp-pro-note a { color: var(--primary-light); text-decoration: underline; }

/* === PRODUCTION OUTLINE === */
.prod-outline {
  border-top: 1px solid var(--border);
  background: rgba(124,92,252,0.02);
  animation: fadeSlideIn 0.3s ease;
}
.po-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 8px;
  font-size: 0.86rem;
}
.po-header strong { color: var(--text); }
.po-meta { font-size: 0.75rem; color: var(--text-faint); margin-left: 10px; }
.po-scenes { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.po-scene {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.po-scene:hover { border-color: rgba(124,92,252,0.3); }
.po-scene-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.po-num {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-light);
  background: rgba(124,92,252,0.12);
  padding: 2px 8px;
  border-radius: 100px;
  flex-shrink: 0;
}
.po-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.po-tc {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.po-wc {
  font-size: 0.72rem;
  color: var(--text-faint);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 1px 7px;
  flex-shrink: 0;
}
.po-preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 6px;
  line-height: 1.4;
}
.po-broll {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.po-broll-item {
  font-size: 0.76rem;
  color: var(--text-faint);
  padding: 2px 0;
}
.po-empty {
  font-size: 0.84rem;
  color: var(--text-faint);
  text-align: center;
  padding: 20px 0;
}

/* === KEYBOARD SHORTCUTS MODAL === */
.shortcuts-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.shortcuts-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  width: 100%;
  max-width: 380px;
  animation: fadeSlideIn 0.2s ease;
}
.shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text);
}
.shortcuts-list { display: flex; flex-direction: column; gap: 10px; }
.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shortcut-keys { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.shortcut-keys kbd, .shortcuts-tip kbd {
  display: inline-block;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-family: inherit;
  font-weight: 600;
  padding: 2px 7px;
  color: var(--text-muted);
}
.shortcut-desc { font-size: 0.82rem; color: var(--text-muted); text-align: right; }
.shortcuts-tip {
  font-size: 0.74rem;
  color: var(--text-faint);
  text-align: center;
  margin: 14px 0 0;
}

/* === REVENUE CALCULATOR === */
.nr-calc { margin-top: 8px; }
.nr-calc-toggle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.nr-calc-toggle::-webkit-details-marker { display: none; }
.nr-calc-toggle::before { content: '▶ '; font-size: 0.65rem; }
details[open] .nr-calc-toggle::before { content: '▼ '; }
.nr-calc-body { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.nr-slider-row { display: flex; flex-direction: column; gap: 3px; }
.nr-slider-row label { font-size: 0.75rem; color: var(--text-muted); }
.nr-slider-row label strong { color: var(--text); }
.nr-slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}
.nr-result {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 8px 10px;
  background: rgba(124,92,252,0.07);
  border-radius: 8px;
  line-height: 1.5;
}
.nr-est-label { color: var(--text-faint); }
.nr-est-range { color: #22c55e; font-size: 0.88rem; }
.nr-est-note { color: var(--text-faint); font-size: 0.72rem; }

/* === HOOK A/B TESTER === */
.hook-ab {
  border-top: 1px solid var(--border);
  background: rgba(124,92,252,0.02);
  animation: fadeSlideIn 0.3s ease;
}
.hab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 8px;
  font-size: 0.86rem;
}
.hab-header strong { color: var(--text); }
.hab-sub { font-size: 0.75rem; color: var(--text-faint); }
.hab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  padding: 0 20px 16px;
}
.hab-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}
.hab-card:hover { border-color: rgba(124,92,252,0.35); }
.hab-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hab-type {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hab-use {
  background: rgba(124,92,252,0.12);
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: 6px;
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.hab-use:hover { background: rgba(124,92,252,0.25); }
.hab-preview {
  font-size: 0.81rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.hab-loading, .hab-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Script Translate Panel */
.translate-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0;
}
.tp-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.tp-title { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.tp-sub { font-size: 0.8rem; color: var(--text-muted); }
.tp-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.tp-lang-btn {
  background: var(--bg3, var(--bg));
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.tp-lang-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124,92,252,0.07);
}
.tp-lang-btn:disabled { opacity: 0.5; cursor: default; }
.tp-result {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.tp-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tp-result-header span {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  flex: 1;
}
.tp-result-pre {
  background: var(--bg3, var(--bg));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  max-height: 320px;
  overflow-y: auto;
}
.tp-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  text-align: center;
}
.tp-gate-icon { font-size: 1.8rem; }
.tp-gate strong { font-size: 1rem; color: var(--text); }
.tp-gate p { font-size: 0.84rem; color: var(--text-muted); margin: 0; max-width: 380px; }

/* Bulk Idea Generator */
.bulk-ideas-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
}
.bulk-ideas-btn {
  flex-shrink: 0;
}
.bulk-ideas-hint {
  font-size: 0.72rem;
  color: var(--text-faint);
}
.bulk-ideas-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}
.bi-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}
.bi-title { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.bi-sub { font-size: 0.76rem; color: var(--text-muted); }
.bi-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bi-chip {
  background: var(--bg3, var(--bg));
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.83rem;
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1.4;
}
.bi-chip:hover {
  border-color: var(--primary);
  background: rgba(124,92,252,0.07);
  color: var(--text);
}
.bi-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 0;
}
.bi-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 16px;
  text-align: center;
}
.bi-gate-icon { font-size: 1.6rem; }
.bi-gate strong { font-size: 0.95rem; color: var(--text); }
.bi-gate p { font-size: 0.82rem; color: var(--text-muted); margin: 0; max-width: 320px; }
.bi-error { font-size: 0.84rem; color: #f87171; padding: 6px 0; }

/* Quick-Start Presets Row */
.qs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(124,92,252,0.04);
  border: 1px solid rgba(124,92,252,0.12);
  border-radius: 10px;
}
.qs-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-right: 2px;
}
.qs-chip {
  background: var(--bg3, var(--bg));
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.76rem;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.qs-chip:hover {
  border-color: rgba(124,92,252,0.4);
  color: var(--text);
  background: rgba(124,92,252,0.07);
}
.qs-chip.qs-active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124,92,252,0.1);
}

/* === SCRIPT FORMAT TEMPLATES === */
.format-templates {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.ft-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 2px;
  flex-shrink: 0;
}
.ft-chip {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.18s;
}
.ft-chip:hover {
  background: rgba(124,92,252,0.1);
  border-color: rgba(124,92,252,0.35);
  color: var(--primary-light);
}
.ft-chip.ft-active {
  background: rgba(124,92,252,0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Niche Social Proof */
.niche-social-proof {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  margin-top: 8px;
  animation: nsp-in 0.3s ease;
}
@keyframes nsp-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nsp-result {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nsp-quote {
  font-size: 0.79rem;
  color: #ccc;
  font-style: italic;
  line-height: 1.4;
}
.nsp-who {
  font-size: 0.7rem;
  color: #888;
}

/* Viral Potential Score */
.viral-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.vs-label {
  font-size: 0.75rem;
  color: var(--text-faint);
  white-space: nowrap;
}
.vs-bars {
  display: flex;
  gap: 3px;
  align-items: center;
}
.vs-bar {
  width: 10px;
  height: 12px;
  border-radius: 2px;
  transition: background 0.2s;
}
.vs-empty { background: rgba(255,255,255,0.06); }
.vs-filled.vs-high  { background: #f59e0b; }
.vs-filled.vs-good  { background: #10b981; }
.vs-filled.vs-ok    { background: #6366f1; }
.vs-filled.vs-low   { background: #6b7280; }
.vs-grade {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.vs-grade.vs-high { color: #f59e0b; }
.vs-grade.vs-good { color: #10b981; }
.vs-grade.vs-ok   { color: #818cf8; }
.vs-grade.vs-low  { color: #9ca3af; }
.vs-tip {
  font-size: 0.72rem;
  color: #777;
  font-style: italic;
}

/* Hook Type Selector */
.hook-type-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.ht-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 2px;
  flex-shrink: 0;
}
.ht-chip {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 11px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.ht-chip:hover {
  background: rgba(124,92,252,0.1);
  border-color: rgba(124,92,252,0.35);
  color: var(--primary-light);
}
.ht-chip.ht-active {
  background: rgba(124,92,252,0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}
@media (max-width: 480px) {
  .hook-type-row { gap: 5px; }
  .ht-chip { font-size: 0.72rem; padding: 3px 9px; }
}

/* === MOBILE RESPONSIVE: NEW COMPONENTS === */
@media (max-width: 640px) {
  /* Niche revenue card stacks */
  .niche-revenue { flex-direction: column; gap: 8px; }
  .nr-body { width: 100%; }

  /* Social clips grid stacks */
  .sc-grid { grid-template-columns: 1fr; }

  /* Hook A/B cards stack */
  .hab-cards { grid-template-columns: 1fr; }

  /* Production outline scene head wraps */
  .po-scene-head { gap: 6px; }
  .po-label { width: 100%; order: -1; }

  /* Voice profile modal full-width on small screens */
  .vp-box { padding: 18px 16px; }

  /* Shortcuts modal */
  .shortcuts-box { padding: 18px 16px; }
  .shortcut-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .shortcut-desc { text-align: left; }

  /* Format templates wrap */
  .format-templates { gap: 5px; }
  .ft-chip { font-size: 0.72rem; padding: 3px 9px; }

  /* Word count bar compact */
  .wc-bar-track { max-width: 120px; }

  /* Output actions overflow */
  .output-actions { gap: 4px; }
  .output-actions-more { gap: 4px; }

  /* Section breakdown chips */
  .section-breakdown { gap: 4px; }
  .sec-chip { font-size: 0.72rem; padding: 2px 7px; }

  /* Keywords */
  .quality-keywords { gap: 4px; }
  .kw-chip { font-size: 0.72rem; padding: 2px 7px; }
}

/* === BLOG POST PANEL === */
.blog-post-panel {
  border-top: 1px solid var(--border);
  background: rgba(124,92,252,0.02);
  animation: fadeSlideIn 0.3s ease;
}
.bp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 8px;
  font-size: 0.86rem;
}
.bp-header strong { color: var(--text); }
.bp-actions { display: flex; gap: 8px; align-items: center; }
.bp-meta-row {
  padding: 6px 20px 8px;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border);
  background: rgba(34,197,94,0.05);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.bp-meta-label {
  font-weight: 700;
  color: #22c55e;
  flex-shrink: 0;
}
.bp-meta-text { color: var(--text-muted); line-height: 1.45; }
.bp-content {
  padding: 16px 24px 20px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-height: 480px;
  overflow-y: auto;
}
.bp-h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
}
.bp-h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 6px;
}
.bp-content p { margin: 0 0 10px; }
.bp-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.bp-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 20px;
  text-align: center;
}
.bp-gate-icon { font-size: 1.8rem; }
.bp-gate strong { font-size: 1rem; color: var(--text); }
.bp-gate p { font-size: 0.84rem; color: var(--text-muted); margin: 0; max-width: 340px; }

/* Chapter Timestamps Panel */
.chapter-ts {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0;
}
.chapter-ts-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.chapter-ts-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.chapter-ts-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.chapter-ts-body { margin-bottom: 12px; }
.chapter-ts-pre {
  background: var(--bg3, var(--bg));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.chapter-ts-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.chapter-ts-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* YouTube Studio Pack */
.studio-pack {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0;
}
.sp-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.sp-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.sp-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.sp-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.sp-section {
  background: var(--bg3, var(--bg));
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.sp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(124,92,252,0.06);
  border-bottom: 1px solid var(--border);
}
.sp-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sp-copy-btn {
  font-size: 0.72rem !important;
  padding: 2px 8px !important;
  height: auto !important;
}
.sp-section-body {
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.sp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.sp-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.sp-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  text-align: center;
}
.sp-gate-icon { font-size: 1.8rem; }
.sp-gate strong { font-size: 1rem; color: var(--text); }
.sp-gate p { font-size: 0.84rem; color: var(--text-muted); margin: 0; max-width: 360px; }

/* Email Capture Modal */
.ec-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.ec-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.ec-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.ec-close:hover { background: rgba(255,255,255,0.06); }
.ec-icon { font-size: 2.4rem; margin-bottom: 10px; }
.ec-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}
.ec-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.55;
}
.ec-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ec-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg3, var(--bg));
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.ec-input:focus { border-color: var(--primary); }
.ec-submit {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
}
.ec-fine {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 10px 0 0;
  opacity: 0.7;
}
@media (max-width: 480px) {
  .ec-box { padding: 28px 20px 22px; }
  .ec-title { font-size: 1.1rem; }
}

/* === THUMBNAIL TEXT GENERATOR === */
.thumbnail-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  animation: slideDown 0.2s ease;
}
.thumb-loading {
  text-align: center;
  padding: 28px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.thumb-error {
  text-align: center;
  padding: 18px;
  color: var(--text-muted);
  font-size: 14px;
}
.thumb-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.thumb-header strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 3px;
}
.thumb-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.thumb-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s;
}
.thumb-card:hover { transform: translateY(-2px); }
.thumb-preview {
  background: #111;
  border: 2px solid var(--tc, #7c5cfc);
  border-radius: 10px;
  padding: 20px 10px;
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.thumb-preview:hover { border-width: 3px; }
.thumb-text {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.15;
  text-transform: uppercase;
  word-break: break-word;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.thumb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.thumb-style {
  font-size: 11px;
  color: var(--text-muted);
  flex: 1;
}
.thumb-copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.thumb-copy-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.thumb-tip {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  line-height: 1.5;
}
@media (max-width: 480px) {
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .thumb-text { font-size: 14px; }
}

/* === READABILITY SCORE === */
.readability-score {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: 8px;
  margin-top: 6px;
  font-size: 13px;
}
.read-label {
  color: var(--text-muted);
  font-size: 12px;
  min-width: 78px;
  font-weight: 500;
}
.read-bar-wrap {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}
.read-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.7s ease;
}
.read-easy { background: #6ee7b7; color: #6ee7b7; }
.read-mid  { background: #fcd34d; color: #fcd34d; }
.read-hard { background: #f87171; color: #f87171; }
.read-pct {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 90px;
  text-align: right;
}
.read-grade {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.75;
  margin-left: 4px;
}

/* === NICHE QUIZ TRIGGER === */
.niche-quiz-trigger {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  margin-left: 8px;
  transition: color 0.15s;
}
.niche-quiz-trigger:hover { color: var(--primary); }

/* === NICHE PICKER QUIZ MODAL === */
.nq-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.nq-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 24px;
  width: min(100%, 480px);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.nq-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}
.nq-close:hover { color: var(--text); }
.nq-step {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.nq-progress {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  height: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}
.nq-prog-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.nq-question {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.35;
}
.nq-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nq-opt {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  line-height: 1.4;
}
.nq-opt:hover {
  background: rgba(124,92,252,0.1);
  border-color: rgba(124,92,252,0.4);
  color: var(--text);
  transform: translateX(3px);
}
.nq-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.nq-result-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.nq-top-badge {
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.nq-alt-badge {
  position: absolute;
  top: -8px;
  left: 12px;
  background: rgba(255,255,255,0.12);
  color: var(--text-muted);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.nq-rc-icon { font-size: 22px; margin-top: 6px; }
.nq-rc-name { font-size: 13px; font-weight: 700; color: var(--text); }
.nq-rc-cpm { font-size: 11px; color: var(--text-muted); }
.nq-rc-btn {
  margin-top: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.nq-rc-btn:hover { background: var(--primary-dark, #6340e8); }
.nq-retake {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  width: 100%;
}
.nq-retake:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 480px) {
  .nq-results { grid-template-columns: 1fr; }
  .nq-question { font-size: 15px; }
  .nq-opt { font-size: 13px; padding: 10px 12px; }
}

/* === 7-DAY CREATOR CHALLENGE WIDGET === */
.creator-challenge {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 750;
  width: 240px;
  background: var(--surface-2);
  border: 1px solid rgba(124,92,252,0.35);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: height 0.25s ease;
}
.creator-challenge.cc-mini .cc-body { display: none; }
.creator-challenge.cc-complete { border-color: rgba(16,185,129,0.4); }
.cc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(124,92,252,0.1);
  border-bottom: 1px solid rgba(124,92,252,0.15);
}
.cc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
  text-transform: uppercase;
}
.cc-header-btns { display: flex; gap: 4px; }
.cc-toggle, .cc-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.cc-toggle:hover, .cc-close:hover { color: var(--text); }
.cc-body { padding: 14px 14px 16px; }
.cc-progress {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
.cc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cc-dot.cc-done {
  background: var(--green, #10b981);
  border-color: var(--green, #10b981);
}
.cc-dot.cc-active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}
.cc-day-badge {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.cc-task-icon { font-size: 20px; margin-bottom: 4px; }
.cc-task {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.35;
}
.cc-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}
.cc-check-btn {
  width: 100%;
  background: rgba(124,92,252,0.15);
  border: 1px solid rgba(124,92,252,0.3);
  color: var(--primary);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.cc-check-btn:hover {
  background: var(--primary);
  color: #fff;
}
.cc-complete-icon { font-size: 28px; text-align: center; margin-bottom: 6px; }
.cc-complete-text { display: block; text-align: center; font-size: 14px; font-weight: 700; color: var(--green, #10b981); margin-bottom: 4px; }
.cc-complete-sub { font-size: 11px; color: var(--text-muted); text-align: center; margin-bottom: 12px; }
.cc-share-btn {
  width: 100%;
  background: var(--green, #10b981);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.cc-share-btn:hover { background: #059669; }
@media (max-width: 480px) {
  .creator-challenge {
    width: 200px;
    bottom: 70px;
    right: 12px;
  }
}

/* === RETURNING USER NUDGE (top bar) === */
.returning-nudge {
  position: fixed;
  top: -60px;
  left: 0;
  right: 0;
  z-index: 1200;
  background: linear-gradient(90deg, #1a1040, #0d1428);
  border-bottom: 1px solid rgba(124,92,252,0.3);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  transition: top 0.35s cubic-bezier(0.22,1,0.36,1);
}
.returning-nudge.rn-visible { top: 0; }
.returning-nudge span { color: var(--text-muted); }
.returning-nudge strong { color: var(--text); }
.returning-nudge a {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.returning-nudge a:hover { background: var(--primary-dark, #6340e8); }
.returning-nudge button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  position: absolute;
  right: 16px;
}
@media (max-width: 480px) {
  .returning-nudge { padding: 8px 14px; font-size: 12px; }
  .returning-nudge button { position: static; }
}
/* Upgrade-themed variant for paywalled returning users */
.returning-nudge.rn-upgrade {
  background: linear-gradient(135deg, rgba(124,92,252,0.18), rgba(236,72,153,0.12));
  border-bottom-color: rgba(124,92,252,0.3);
}
.returning-nudge.rn-upgrade span { color: var(--text); }
.returning-nudge.rn-upgrade a {
  background: var(--primary);
  font-weight: 700;
}

/* === PRO PREVIEW DRAWER === */
.pro-preview-drawer {
  position: fixed;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  width: min(92vw, 680px);
  transition: bottom 0.4s cubic-bezier(0.22,1,0.36,1);
}
.pro-preview-drawer.ppd-visible {
  bottom: 24px;
}
.ppd-inner {
  background: var(--surface-2);
  border: 1px solid rgba(124,92,252,0.4);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.ppd-icon { font-size: 20px; flex-shrink: 0; }
.ppd-content { flex: 1; min-width: 0; }
.ppd-content strong { font-size: 13px; color: var(--text); display: block; margin-bottom: 6px; }
.ppd-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ppd-chip {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}
.ppd-cta {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.ppd-cta:hover { background: var(--primary-dark, #6340e8); }
.ppd-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  line-height: 1;
}
.ppd-close:hover { color: var(--text); }
@media (max-width: 480px) {
  .ppd-chips { display: none; }
  .ppd-content strong { font-size: 12px; }
}

/* === COST SAVINGS NUDGE === */
.cost-savings-nudge {
  font-size: 12px;
  color: var(--green, #10b981);
  padding: 7px 12px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 8px;
  margin-bottom: 10px;
  animation: slideDown 0.3s ease;
}

/* === DAILY TOPIC BANNER === */
.daily-topic-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(124,92,252,0.12), rgba(6,182,212,0.08));
  border: 1px solid rgba(124,92,252,0.28);
  border-radius: 10px;
  margin-bottom: 14px;
  animation: slideDown 0.3s ease;
  transition: opacity 0.3s;
}
.daily-topic-banner.dt-applied {
  border-color: var(--green);
  background: rgba(16,185,129,0.08);
}
.dt-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
  text-transform: uppercase;
  white-space: nowrap;
}
.dt-text {
  font-size: 13px;
  color: var(--text);
  flex: 1;
  min-width: 180px;
  font-style: italic;
  line-height: 1.4;
}
.dt-niche {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.dt-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.dt-btn:hover {
  background: var(--primary-dark, #6340e8);
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .daily-topic-banner { gap: 6px 8px; padding: 8px 12px; }
  .dt-text { font-size: 12px; min-width: 140px; }
}

/* ===================================
   ROI CALCULATOR
   =================================== */
.roi-calc {
  margin: 32px auto 0;
  max-width: 740px;
}
.roi-inner {
  background: linear-gradient(135deg, rgba(124,92,252,0.08), rgba(6,182,212,0.06));
  border: 1px solid rgba(124,92,252,0.2);
  border-radius: 16px;
  padding: 28px 28px 22px;
}
.roi-head { text-align: center; margin-bottom: 22px; }
.roi-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e2e0ff;
  margin-bottom: 4px;
}
.roi-subtitle {
  font-size: 0.82rem;
  color: #888;
}
.roi-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.roi-control label {
  display: block;
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 6px;
}
.roi-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
#roi-videos {
  flex: 1;
  accent-color: #7c5cfc;
  height: 4px;
  cursor: pointer;
}
.roi-slider-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #c4b5fd;
  min-width: 24px;
  text-align: right;
}
#roi-niche-select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e2e2e2;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.83rem;
  font-family: inherit;
}
.roi-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.roi-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
}
.roi-stat-highlight {
  border-color: rgba(124,92,252,0.35);
  background: rgba(124,92,252,0.08);
}
.roi-stat-cost {
  border-color: rgba(16,185,129,0.25);
  background: rgba(16,185,129,0.05);
}
.roi-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #e2e0ff;
  margin-bottom: 3px;
}
.roi-stat-highlight .roi-num { color: #c4b5fd; }
.roi-stat-cost .roi-num { color: #6ee7b7; }
.roi-lbl {
  font-size: 0.68rem;
  color: #777;
  line-height: 1.3;
}
.roi-verdict {
  text-align: center;
  font-size: 0.82rem;
  color: #aaa;
  margin-bottom: 14px;
  line-height: 1.5;
}
.roi-verdict strong { color: #c4b5fd; }
.roi-cta-btn {
  display: block;
  text-align: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 12px;
  font-size: 0.9rem;
}
.roi-disclaimer {
  text-align: center;
  font-size: 0.68rem;
  color: #555;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .roi-controls { grid-template-columns: 1fr; }
  .roi-results { grid-template-columns: repeat(2, 1fr); }
  .roi-inner { padding: 20px 16px 16px; }
}

/* ===================================
   SCRIPT RATING WIDGET
   =================================== */
.script-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(124, 92, 252, 0.04);
  border-top: 1px solid rgba(124, 92, 252, 0.1);
  flex-wrap: wrap;
  border-radius: 0 0 10px 10px;
}
.sr-label {
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
}
.sr-stars {
  display: flex;
  gap: 1px;
}
.sr-star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.35rem;
  color: #444;
  padding: 1px 3px;
  transition: color 0.1s, transform 0.1s;
  line-height: 1;
}
.sr-star:hover,
.sr-star-lit {
  color: #f59e0b;
  transform: scale(1.2);
}
.sr-response {
  font-size: 0.8rem;
  color: #999;
  width: 100%;
  padding: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sr-response .btn {
  padding: 3px 9px;
  font-size: 0.77rem;
}
.sr-great { color: #10b981; }
.sr-good  { color: #6ee7b7; }
.sr-ok    { color: #f59e0b; }
.sr-low   { color: #f87171; }
.sr-cta {
  color: #9d82fd;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
}
.sr-cta:hover { text-decoration: underline; }
