/* ===================================================================
   ContentMate — design system
   Spacing scale: 4 / 8 / 12 / 16 / 20 / 24 / 32 / 48 / 64
   Quy tắc tương phản: nền đậm -> chữ sáng, nền nhạt -> chữ đậm.
   =================================================================== */

:root,
[data-theme='aurora'] {
  --primary: #7c3aed; --primary-light: #a78bfa; --primary-dark: #6d28d9; --primary-glow: #7c3aed40;
  --bg-page: #0f0b1a; --bg-card: #1a1430cc; --bg-card-solid: #1a1430; --bg-input: #ffffff0a;
  --bg-hover: #ffffff12; --bg-section: #ffffff05;
  --border-soft: #ffffff14; --border-medium: #a78bfa3d; --border-glow: #7c3aed55;
  --text-dark: #ffffff; --text-body: #e4e0f0; --text-muted: #a9a3c4; --text-light: #7d7799;
}
[data-theme='cyberpunk'] {
  --primary: #ff007f; --primary-light: #00ffff; --primary-dark: #cc0066; --primary-glow: #ff007f40;
  --bg-page: #050510; --bg-card: #140f1ecc; --bg-card-solid: #0d0a17; --bg-input: #00ffff0d;
  --bg-hover: #00ffff12; --bg-section: #ff007f0a;
  --border-soft: #00ffff33; --border-medium: #ff007f66; --border-glow: #00ffff66;
  --text-dark: #ffffff; --text-body: #e0e0ff; --text-muted: #9a9ac0; --text-light: #5c5c7a;
}
[data-theme='ocean'] {
  --primary: #0ea5e9; --primary-light: #38bdf8; --primary-dark: #0284c7; --primary-glow: #0ea5e933;
  --bg-page: #041421; --bg-card: #0a1e3ccc; --bg-card-solid: #0a1e35; --bg-input: #0ea5e90d;
  --bg-hover: #38bdf812; --bg-section: #0ea5e90a;
  --border-soft: #38bdf826; --border-medium: #38bdf855; --border-glow: #0ea5e966;
  --text-dark: #f0f9ff; --text-body: #cde9fb; --text-muted: #7dd3fc; --text-light: #4ba8d4;
}
[data-theme='forest'] {
  --primary: #10b981; --primary-light: #34d399; --primary-dark: #047857; --primary-glow: #10b98133;
  --bg-page: #0b1a14; --bg-card: #10281ecc; --bg-card-solid: #10261c; --bg-input: #10b9810d;
  --bg-hover: #34d39912; --bg-section: #10b9810a;
  --border-soft: #34d39926; --border-medium: #34d39955; --border-glow: #10b98166;
  --text-dark: #f0fdf4; --text-body: #c4f0d8; --text-muted: #6ee7b7; --text-light: #43b88a;
}
[data-theme='sunset'] {
  --primary: #f97316; --primary-light: #fdba74; --primary-dark: #c2410c; --primary-glow: #f9731633;
  --bg-page: #1a0d0a; --bg-card: #28140acc; --bg-card-solid: #21100c; --bg-input: #f973160d;
  --bg-hover: #fdba7412; --bg-section: #f973160a;
  --border-soft: #fdba7426; --border-medium: #fdba7455; --border-glow: #f9731666;
  --text-dark: #fff7ed; --text-body: #ffe6cf; --text-muted: #fdba74; --text-light: #d98a4a;
}
[data-theme='dracula'] {
  --primary: #ff79c6; --primary-light: #bd93f9; --primary-dark: #bf5fa0; --primary-glow: #ff79c633;
  --bg-page: #282a36; --bg-card: #44475aa6; --bg-card-solid: #383a48; --bg-input: #ff79c60d;
  --bg-hover: #bd93f912; --bg-section: #ff79c60a;
  --border-soft: #bd93f940; --border-medium: #ff79c666; --border-glow: #bd93f966;
  --text-dark: #f8f8f2; --text-body: #e6e6e6; --text-muted: #b8bdd8; --text-light: #8a90b0;
}
[data-theme='nord'] {
  --primary: #88c0d0; --primary-light: #8fbcbb; --primary-dark: #5e81ac; --primary-glow: #88c0d033;
  --bg-page: #2e3440; --bg-card: #3b4252cc; --bg-card-solid: #3b4252; --bg-input: #88c0d00d;
  --bg-hover: #88c0d012; --bg-section: #88c0d00a;
  --border-soft: #8fbcbb40; --border-medium: #88c0d066; --border-glow: #5e81ac88;
  --text-dark: #eceff4; --text-body: #e5e9f0; --text-muted: #c0c8d8; --text-light: #97a0b5;
}
/* Theme sáng: nền nhạt -> chữ đậm */
[data-theme='daylight'] {
  --primary: #7c3aed; --primary-light: #9061f0; --primary-dark: #6d28d9; --primary-glow: #7c3aed26;
  --bg-page: #f5f3fb; --bg-card: #ffffff; --bg-card-solid: #ffffff; --bg-input: #ffffff;
  --bg-hover: #7c3aed0a; --bg-section: #7c3aed06;
  --border-soft: #1a103014; --border-medium: #7c3aed33; --border-glow: #7c3aed40;
  --text-dark: #1a1228; --text-body: #3a3450; --text-muted: #6b6486; --text-light: #948daa;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
[x-cloak] { display: none !important; }

h1, h2, h3, h4 { color: var(--text-dark); line-height: 1.2; font-weight: 700; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Backdrop glow ---------- */
.glow-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.glow-bg::before, .glow-bg::after {
  content: ''; position: absolute; width: 50vw; height: 50vw; border-radius: 50%;
  background: var(--primary); opacity: .14; filter: blur(120px);
}
.glow-bg::before { top: -15vw; left: -10vw; }
.glow-bg::after { bottom: -20vw; right: -10vw; background: var(--primary-light); opacity: .1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  min-height: 44px; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 12px 32px var(--primary-glow); transform: translateY(-1px); }
.btn-ghost { background: var(--bg-card); color: var(--text-dark); border: 1px solid var(--border-soft); }
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--border-medium); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 16px; min-height: 52px; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px); background: var(--bg-page); border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text-dark); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; font-size: 18px;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a.nav-link { padding: 8px 14px; border-radius: 9px; color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-links a.nav-link:hover { color: var(--text-dark); background: var(--bg-hover); }
.nav-tools { display: flex; align-items: center; gap: 10px; }

/* ---------- Locale / theme switch ---------- */
.pill-switch { display: flex; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 999px; padding: 3px; }
.pill-switch a, .pill-switch button { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.pill-switch a.active { background: var(--primary); color: #fff; }

.theme-menu { position: relative; }
.theme-btn { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border-soft); display: grid; place-items: center; color: var(--text-dark); font-size: 17px; }
.theme-btn:hover { background: var(--bg-hover); }
.theme-pop {
  position: absolute; right: 0; top: 48px; width: 210px; padding: 8px;
  background: var(--bg-card-solid); border: 1px solid var(--border-medium); border-radius: 14px;
  box-shadow: 0 18px 50px #00000055; z-index: 60;
}
.theme-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; color: var(--text-body); font-size: 14px; font-weight: 500; }
.theme-row:hover { background: var(--bg-hover); }
.theme-row.active { color: var(--text-dark); background: var(--bg-hover); }
.theme-dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px var(--border-soft); }
.theme-row .check { margin-left: auto; color: var(--primary); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 48px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border-medium); color: var(--text-muted);
  font-size: 13px; font-weight: 600; margin-bottom: 28px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.hero h1 { font-size: clamp(34px, 5.5vw, 60px); letter-spacing: -1.5px; margin-bottom: 22px; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.sub { font-size: clamp(16px, 2vw, 20px); color: var(--text-muted); max-width: 680px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 28px; color: var(--text-light); font-size: 14px; }

.stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-top: 56px; }
.stat { text-align: center; }
.stat .num { font-size: 32px; font-weight: 800; color: var(--text-dark); }
.stat .lbl { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 40px); letter-spacing: -0.8px; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; }
.eyebrow { color: var(--primary-light); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }

/* ---------- Feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 18px; padding: 26px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-medium); box-shadow: 0 16px 40px #00000033; }
.card .ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 23px;
  background: var(--primary-glow); margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* ---------- Funnel section ---------- */
.funnel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.funnel-card {
  border-radius: 18px; padding: 28px; border: 1px solid var(--border-soft); background: var(--bg-card);
  position: relative; overflow: hidden;
}
.funnel-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.funnel-card.cold::before { background: #38bdf8; }
.funnel-card.warm::before { background: #f97316; }
.funnel-card.hot::before  { background: #ef4444; }
.funnel-card .stage-emoji { font-size: 34px; margin-bottom: 14px; }
.funnel-card h3 { font-size: 21px; margin-bottom: 8px; }
.funnel-card p { color: var(--text-muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 20px; padding: 30px;
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--primary); box-shadow: 0 16px 48px var(--primary-glow); position: relative; }
.price-tag-pop {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 18px; color: var(--text-muted); font-weight: 600; }
.price-amount { font-size: 42px; font-weight: 800; color: var(--text-dark); margin: 8px 0 2px; }
.price-amount .per { font-size: 15px; color: var(--text-muted); font-weight: 500; }
.price-features { list-style: none; margin: 22px 0; flex: 1; }
.price-features li { display: flex; gap: 10px; padding: 8px 0; color: var(--text-body); font-size: 15px; }
.price-features li::before { content: '✓'; color: var(--primary-light); font-weight: 800; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding: 40px 0; margin-top: 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer .muted { color: var(--text-light); font-size: 14px; }

/* ===================================================================
   WORKSPACE
   =================================================================== */
.ws { display: grid; grid-template-columns: 280px 1fr; height: 100vh; overflow: hidden; }

.ws-sidebar {
  background: var(--bg-card-solid); border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column; min-height: 0;
}
.ws-sidebar-head { padding: 18px 18px 12px; border-bottom: 1px solid var(--border-soft); }
.ws-sidebar-scroll { flex: 1; overflow-y: auto; padding: 12px; }
.ws-sidebar-foot { padding: 12px; border-top: 1px solid var(--border-soft); display: flex; gap: 8px; align-items: center; }

.proj { margin-bottom: 14px; }
.proj-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px; color: var(--text-muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.hist-item {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 10px; border-radius: 10px; cursor: pointer;
  color: var(--text-body); font-size: 14px; transition: background .15s ease;
}
.hist-item:hover { background: var(--bg-hover); }
.hist-item.active { background: var(--bg-hover); box-shadow: inset 2px 0 0 var(--primary); }
.hist-item .h-emoji { font-size: 16px; }
.hist-item .h-text { flex: 1; min-width: 0; }
.hist-item .h-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-dark); }
.hist-item .h-meta { font-size: 12px; color: var(--text-light); }
.hist-del { opacity: 0; color: var(--text-light); padding: 2px 6px; border-radius: 6px; font-size: 13px; }
.hist-item:hover .hist-del { opacity: 1; }
.hist-del:hover { color: #ef4444; background: var(--bg-hover); }

.ws-main { overflow-y: auto; min-height: 0; }
.ws-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: var(--bg-page); border-bottom: 1px solid var(--border-soft);
}
.ws-topbar .left { display: flex; align-items: center; gap: 12px; }
.ws-body { padding: 28px; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 980px) { .ws-body { grid-template-columns: 1fr; } }

.panel { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 18px; padding: 22px; }
.panel h2.step { font-size: 14px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; }

.quota-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border-soft); font-size: 13px; font-weight: 600; color: var(--text-muted); }
.quota-pill .qn { color: var(--primary-light); }

/* channel grid */
.chan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chan {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px;
  border: 1.5px solid var(--border-soft); background: var(--bg-input); text-align: left; transition: all .14s ease;
}
.chan:hover { border-color: var(--border-medium); background: var(--bg-hover); }
.chan.sel { border-color: var(--primary); background: var(--primary-glow); }
.chan .c-emoji { font-size: 22px; }
.chan .c-name { color: var(--text-dark); font-weight: 600; font-size: 14px; }
.chan .c-desc { color: var(--text-muted); font-size: 12px; }

/* funnel pills */
.funnel-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fpill { padding: 14px 10px; border-radius: 12px; border: 1.5px solid var(--border-soft); background: var(--bg-input); text-align: center; transition: all .14s ease; }
.fpill:hover { border-color: var(--border-medium); }
.fpill.sel { border-color: var(--primary); background: var(--primary-glow); }
.fpill .f-emoji { font-size: 24px; }
.fpill .f-label { color: var(--text-dark); font-weight: 700; font-size: 14px; margin-top: 4px; }
.fpill .f-hint { color: var(--text-muted); font-size: 11px; margin-top: 3px; line-height: 1.35; }

/* form */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-body); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 11px; font-size: 15px; font-family: inherit;
  background: var(--bg-input); border: 1.5px solid var(--border-soft); color: var(--text-dark); transition: border-color .15s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-light); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.field select option { background: var(--bg-card-solid); color: var(--text-dark); }

/* result */
.result-box { min-height: 320px; }
.result-empty { display: grid; place-items: center; min-height: 300px; text-align: center; color: var(--text-light); padding: 20px; }
.result-empty .big { font-size: 48px; margin-bottom: 12px; opacity: .6; }
.result-actions { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.result-actions .spacer { flex: 1; }
.result-content {
  background: var(--bg-input); border: 1px solid var(--border-soft); border-radius: 12px; padding: 18px;
  color: var(--text-body); font-size: 15px; line-height: 1.7; white-space: normal; word-wrap: break-word;
}
.result-content h2, .result-content h3, .result-content h4 { margin: 14px 0 6px; color: var(--text-dark); }
.result-content h2 { font-size: 19px; } .result-content h3 { font-size: 17px; } .result-content h4 { font-size: 15px; }
.result-content p { margin: 8px 0; }
.result-content ul, .result-content ol { margin: 8px 0 8px 22px; }
.result-content li { margin: 4px 0; }
.result-content strong { color: var(--text-dark); }
.result-content code { background: var(--bg-hover); padding: 2px 6px; border-radius: 5px; font-size: 13px; }
.result-content hr { border: none; border-top: 1px solid var(--border-soft); margin: 14px 0; }

.demo-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f9731622; color: #fb923c; font-size: 12px; font-weight: 700; }
.demo-hint { font-size: 12px; color: var(--text-light); margin-top: 10px; }

/* spinner */
.spinner { width: 18px; height: 18px; border: 2.5px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-card) 50%, var(--bg-hover) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--text-dark); color: var(--bg-page); padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 12px 32px #00000055; z-index: 90; }

/* ---------- Quiz overlay ---------- */
.quiz-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: var(--bg-page); }
.quiz-card { width: 100%; max-width: 560px; background: var(--bg-card-solid); border: 1px solid var(--border-medium); border-radius: 24px; padding: 40px; box-shadow: 0 30px 80px #00000066; }
.quiz-logo { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; font-size: 28px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; margin: 0 auto 22px; }
.quiz-card h1 { font-size: 27px; text-align: center; margin-bottom: 12px; }
.quiz-card h1 .accent { color: var(--primary-light); }
.quiz-desc { text-align: center; color: var(--text-muted); margin-bottom: 28px; }
.quiz-progress-track { height: 6px; background: var(--bg-hover); border-radius: 999px; margin-bottom: 8px; overflow: hidden; }
.quiz-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 999px; transition: width .4s ease; }
.quiz-progress-label { text-align: center; font-size: 13px; color: var(--text-light); margin-bottom: 22px; }
.quiz-q { font-size: 21px; text-align: center; margin-bottom: 24px; color: var(--text-dark); font-weight: 700; }
.quiz-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; margin-bottom: 12px; border-radius: 14px; border: 1.5px solid var(--border-soft); background: var(--bg-input); text-align: left; color: var(--text-body); font-size: 15px; transition: all .14s ease; }
.quiz-opt:hover { border-color: var(--primary); background: var(--bg-hover); transform: translateX(3px); }
.quiz-opt.picked { border-color: var(--primary); background: var(--primary-glow); }
.quiz-opt .o-emoji { font-size: 24px; }
.quiz-result { text-align: center; }
.quiz-result .r-emoji { font-size: 64px; margin-bottom: 16px; }
.quiz-result h2 { font-size: 26px; margin-bottom: 12px; }
.quiz-result p { color: var(--text-muted); margin-bottom: 28px; }
.quiz-skip { display: block; margin: 18px auto 0; color: var(--text-light); font-size: 14px; background: none; }
.quiz-skip:hover { color: var(--text-muted); }

.animate-in { animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .funnel-grid, .price-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .ws { grid-template-columns: 1fr; }
  .ws-sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .25s ease; }
  .ws-sidebar.open { transform: none; }
  .chan-grid { grid-template-columns: 1fr; }
}
@media (min-width: 861px) { .ws-burger { display: none; } }

/* ===================================================================
   PRO / SELLER FEATURES
   =================================================================== */
.pro-tag {
  display: inline-block; vertical-align: middle; font-size: 10px; font-weight: 800; letter-spacing: .5px;
  padding: 2px 7px; border-radius: 6px; margin-left: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff;
}

/* plan badge in topbar */
.plan-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.plan-badge.free { background: var(--bg-card); border: 1px solid var(--border-soft); color: var(--text-muted); }
.plan-badge.pro { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 4px 14px var(--primary-glow); }
.btn-upgrade { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 7px 14px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.btn-upgrade:hover { transform: translateY(-1px); }

/* segmented tabs (single/bulk, builder/calendar) */
.seg { display: inline-flex; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.seg button.active { background: var(--primary); color: #fff; }
.seg button .mini-pro { font-size: 9px; font-weight: 800; opacity: .9; }

/* brand voice selector */
.brand-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.brand-bar select { flex: 1; min-width: 160px; padding: 10px 12px; border-radius: 10px; background: var(--bg-input); border: 1.5px solid var(--border-soft); color: var(--text-dark); font-family: inherit; font-size: 14px; }
.brand-bar .manage-link { font-size: 13px; font-weight: 600; color: var(--primary-light); white-space: nowrap; }

/* bulk results table */
.bulk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bulk-table th { text-align: left; color: var(--text-muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border-soft); position: sticky; top: 0; background: var(--bg-card-solid); }
.bulk-table td { padding: 10px; border-bottom: 1px solid var(--border-soft); color: var(--text-body); vertical-align: top; }
.bulk-table td.prod { color: var(--text-dark); font-weight: 600; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.bulk-table td.out { white-space: pre-wrap; line-height: 1.5; max-height: 130px; overflow-y: auto; }
.bulk-scroll { max-height: 460px; overflow-y: auto; border: 1px solid var(--border-soft); border-radius: 12px; }
.bulk-row-copy { color: var(--text-light); padding: 4px 8px; border-radius: 6px; font-size: 12px; }
.bulk-row-copy:hover { color: var(--primary-light); background: var(--bg-hover); }

/* modal (paywall, brand manager, schedule) */
.modal-overlay { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: #000a; backdrop-filter: blur(4px); }
.modal { width: 100%; max-width: 520px; background: var(--bg-card-solid); border: 1px solid var(--border-medium); border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px #000a; max-height: 88vh; overflow-y: auto; }
.modal h2 { font-size: 22px; margin-bottom: 8px; }
.modal .modal-sub { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.modal-close { float: right; color: var(--text-light); font-size: 20px; line-height: 1; }

/* paywall feature list */
.paywall-list { list-style: none; margin: 4px 0 22px; }
.paywall-list li { display: flex; gap: 10px; padding: 9px 0; color: var(--text-body); font-size: 15px; }
.paywall-list li::before { content: '✨'; }
.paywall-note { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 12px; }

/* brand manager list */
.bv-item { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 12px; margin-bottom: 10px; }
.bv-item .bv-name { color: var(--text-dark); font-weight: 600; flex: 1; }
.bv-item .bv-meta { font-size: 12px; color: var(--text-muted); }
.bv-item button { color: var(--text-light); padding: 4px 8px; border-radius: 6px; font-size: 13px; }
.bv-item button:hover { background: var(--bg-hover); color: var(--text-dark); }

/* calendar / schedule list */
.cal-item { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border-soft); border-radius: 14px; margin-bottom: 12px; background: var(--bg-card); }
.cal-when { text-align: center; min-width: 64px; }
.cal-when .d { font-size: 24px; font-weight: 800; color: var(--text-dark); line-height: 1; }
.cal-when .m { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
.cal-when .t { font-size: 12px; color: var(--primary-light); font-weight: 600; margin-top: 2px; }
.cal-body { flex: 1; min-width: 0; }
.cal-body .cal-title { color: var(--text-dark); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-body .cal-meta { font-size: 12px; color: var(--text-muted); }
.status-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status-chip .dot { width: 7px; height: 7px; border-radius: 50%; }

/* schedule popover row */
.sched-row { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.sched-row input[type=datetime-local] { flex: 1; min-width: 180px; padding: 10px; border-radius: 10px; background: var(--bg-input); border: 1.5px solid var(--border-soft); color: var(--text-dark); font-family: inherit; }
