/* ═══════════════════════════════════════════════════════════════
   Sales Storm — Design System v2
   Dark theme · AI-driven video SaaS
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Montserrat:wght@500;600&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@500,600,700&display=swap');

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  /* Brand colors */
  --primary:        #6D5DFC;
  --primary-hover:  #7C72FF;
  --secondary:      #06B6D4;
  --accent:         #A855F7;
  --success:        #10B981;
  --warning:        #F59E0B;
  --error:          #EF4444;

  /* Neutral system */
  --bg1:    #080B14;
  --bg2:    #111827;
  --surface:#1E293B;
  --border: #334155;
  --hover:  #273549;

  /* Text */
  --text:       #F8FAFC;
  --text-muted: #94A3B8;
  --text-faint: #64748B;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #080B14 0%, #111827 50%, #1A1B4B 100%);
  --grad-ai:   linear-gradient(90deg, #06B6D4, #6D5DFC, #A855F7);
  --grad-cta:  linear-gradient(90deg, #6D5DFC, #A855F7);
  --grad-card: linear-gradient(145deg, #1E293B 0%, #162032 100%);

  /* Shadows */
  --shadow-sm: 0px 4px 8px rgba(0,0,0,.25);
  --shadow:    0px 8px 20px rgba(0,0,0,.35);
  --shadow-lg: 0px 20px 40px rgba(0,0,0,.45);
  --shadow-primary: 0px 8px 24px rgba(109,93,252,.35);

  /* Spacing (8pt grid) */
  --xs:   4px;
  --sm:   8px;
  --md:   16px;
  --lg:   24px;
  --xl:   32px;
  --xxl:  48px;
  --huge: 64px;

  /* Radius */
  --r-btn:   14px;
  --r-input: 12px;
  --r-card:  20px;
  --r-modal: 24px;
  --r-pill:  999px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg1);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { background: var(--grad-hero); background-attachment: fixed; }
a { color: var(--primary); text-decoration: none; }
.mono { font-family: 'JetBrains Mono', monospace; }
.satoshi { font-family: 'Satoshi', 'Inter', sans-serif; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: rgba(8,11,20,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--xl);
  display: flex;
  align-items: center;
  gap: var(--sm);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Logo ───────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  margin-right: var(--md);
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-primary);
  flex-shrink: 0;
}
.logo-word { color: var(--text); }
.logo-word em {
  font-style: normal;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Nav ────────────────────────────────────────────────────── */
.site-nav { display: flex; gap: var(--xs); margin-left: auto; }
.site-nav a {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { background: var(--hover); color: var(--text); }
.site-nav a.active {
  background: rgba(109,93,252,.15);
  color: var(--primary);
  border: 1px solid rgba(109,93,252,.3);
}

/* ── AI accent bar ──────────────────────────────────────────── */
.ai-bar {
  height: 2px;
  background: var(--grad-ai);
  opacity: 0.7;
}

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--xl);
  box-shadow: var(--shadow);
}

/* ── Section label ──────────────────────────────────────────── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--sm);
}

/* ── Headings ───────────────────────────────────────────────── */
h1, h2.display {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-family: 'Satoshi', 'Inter', sans-serif; font-size: 36px; font-weight: 600; line-height: 1.2; }
h3 { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 600; }

/* ── Form elements ──────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field input[type="text"],
.field textarea,
.field select,
.rf-input {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  padding: 0 16px;
  height: 48px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field textarea { height: auto; min-height: 100px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus, .field select:focus, .rf-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109,93,252,.2);
  outline: none;
}
.field select { appearance: none; cursor: pointer; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--md); }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* ── Color pickers ──────────────────────────────────────────── */
.color-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  padding: 8px 14px;
  height: 48px;
  transition: border-color 0.15s;
}
.color-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109,93,252,.2); }
.color-field input[type="color"] { width: 30px; height: 30px; border: 2px solid var(--border); border-radius: 50%; padding: 0; cursor: pointer; background: none; outline: none; flex-shrink: 0; }
.color-field input[type="text"] { flex: 1; border: none; background: transparent; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text); outline: none; padding: 0; }

/* ── Upload area ────────────────────────────────────────────── */
.upload-area {
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  padding: 28px var(--md);
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  background: rgba(17,24,39,.5);
}
.upload-area:hover { border-color: var(--primary); background: rgba(109,93,252,.06); }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-area .up-icon { font-size: 24px; margin-bottom: 8px; display: block; }
.upload-area .up-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.upload-area .up-text strong { color: var(--primary); font-weight: 600; }

/* ── Section separator ──────────────────────────────────────── */
.sep-row { display: flex; align-items: center; gap: 12px; }
.sep-row .sep-line { flex: 1; height: 1px; background: var(--border); }
.sep-row .sep-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-cta, button.primary {
  background: var(--grad-cta);
  color: #fff;
  border: none;
  border-radius: var(--r-btn);
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s, box-shadow 0.15s;
  box-shadow: var(--shadow-primary);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button.primary { width: 100%; padding: 16px 32px; }
.btn-cta:hover, button.primary:hover { opacity: 0.88; box-shadow: 0 10px 30px rgba(109,93,252,.45); transform: translateY(-1px); }
.btn-cta:active, button.primary:active { transform: translateY(0); opacity: 1; }
.btn-cta:disabled, button.primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { background: var(--hover); border-color: var(--text-faint); color: var(--text); }

.btn-ghost {
  background: none;
  color: var(--text-muted);
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,.05); color: var(--text); }

.btn-danger {
  background: transparent;
  color: var(--error);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--r-btn);
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-danger:hover { background: rgba(239,68,68,.1); }

.btn-success {
  background: linear-gradient(90deg, #059862, #10B981);
  color: #fff;
  border: none;
  border-radius: var(--r-btn);
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16,185,129,.3);
  transition: opacity 0.15s, transform 0.12s;
}
.btn-success:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Status pills ───────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pill-idle    { background: rgba(148,163,184,.08); color: var(--text-faint); border-color: var(--border); }
.pill-idle::before { background: var(--text-faint); }
.pill-active  { background: rgba(109,93,252,.12); color: var(--primary); border-color: rgba(109,93,252,.3); }
.pill-active::before { background: var(--primary); box-shadow: 0 0 0 2px rgba(109,93,252,.25); animation: dot-pulse 1.5s ease-in-out infinite; }
.pill-review  { background: rgba(245,158,11,.1); color: var(--warning); border-color: rgba(245,158,11,.3); }
.pill-review::before { background: var(--warning); }
.pill-done    { background: rgba(16,185,129,.1); color: var(--success); border-color: rgba(16,185,129,.3); }
.pill-done::before { background: var(--success); }
.pill-error   { background: rgba(239,68,68,.1); color: var(--error); border-color: rgba(239,68,68,.3); }
.pill-error::before { background: var(--error); }

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(109,93,252,.4); }
  50%       { box-shadow: 0 0 0 4px rgba(109,93,252,.0); }
}

/* ── Dashboard tabs ─────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 var(--xl);
  background: rgba(8,11,20,.6);
  backdrop-filter: blur(8px);
  gap: 4px;
}
.tab {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-faint);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: 'JetBrains Mono', monospace;
  transition: color 0.15s;
}
.tab:hover { color: var(--text-muted); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.pane { display: none; padding: var(--xl); }
.pane.active { display: block; }

/* ── Pipeline steps ─────────────────────────────────────────── */
.pipeline { display: flex; flex-direction: column; margin-bottom: var(--lg); }
.step { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: center; }
.step:last-child { border-bottom: none; }
.step .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex-shrink: 0; transition: background 0.2s; }
.step.done .dot { background: var(--success); }
.step.error .dot { background: var(--error); }
.step.active .dot {
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(109,93,252,.2);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(109,93,252,.2); }
  50%       { box-shadow: 0 0 0 8px rgba(109,93,252,.0); }
}
.step .label { flex: 1; font-size: 14px; color: var(--text-faint); transition: color 0.15s; }
.step.active .label, .step.done .label { color: var(--text); }
.step .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); }

/* ── Approval notice ────────────────────────────────────────── */
.approval-notice {
  background: rgba(245,158,11,.07);
  border: 1px solid rgba(245,158,11,.25);
  border-left: 3px solid var(--warning);
  border-radius: 14px;
  padding: var(--md) 18px;
  margin-bottom: var(--md);
}
.approval-notice .notice-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warning);
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.approval-notice .notice-body { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.55; }
.approval-notice a.notice-btn {
  display: inline-block;
  background: var(--grad-cta);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 10px;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: var(--shadow-primary);
}
.approval-notice a.notice-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Script preview ─────────────────────────────────────────── */
.script-preview { margin-bottom: var(--md); }
.script-title { font-family: 'Satoshi', 'Inter', sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.script-hook { color: var(--secondary); font-size: 13px; font-style: italic; margin-bottom: 12px; }
.scenes { display: flex; flex-direction: column; gap: 8px; }
.scene-card { background: rgba(17,24,39,.7); border: 1px solid var(--border); padding: 14px 16px; border-radius: 14px; }
.scene-card .scene-head { display: flex; justify-content: space-between; margin-bottom: 5px; }
.scene-card .scene-num { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--primary); letter-spacing: 0.08em; font-weight: 600; }
.scene-card .scene-mood { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-faint); text-transform: uppercase; }
.scene-card .scene-narration { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.scene-card .scene-visual { font-size: 12px; color: var(--text-faint); line-height: 1.45; }

/* ── Log box ────────────────────────────────────────────────── */
.logs {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
  max-height: 150px;
  overflow-y: auto;
  background: rgba(8,11,20,.6);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.7;
}
.logs .log-line:last-child { color: var(--secondary); }

/* ── Error box ──────────────────────────────────────────────── */
.error-box {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.3);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--error);
  border-radius: 12px;
  margin-top: 12px;
}

/* ── Final video ────────────────────────────────────────────── */
.final-video { margin-top: 14px; }
.final-video video { width: 100%; border-radius: 14px; background: #000; box-shadow: var(--shadow); }
.final-actions { display: flex; gap: 10px; margin-top: 12px; }
.final-actions a {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  border-radius: 12px;
  transition: opacity 0.15s, transform 0.1s;
}
.final-actions a.btn-outline { color: var(--primary); border: 1px solid rgba(109,93,252,.4); background: rgba(109,93,252,.08); }
.final-actions a.btn-outline:hover { background: rgba(109,93,252,.15); }
.final-actions a.btn-filled { background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-primary); }
.final-actions a.btn-filled:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Stat cards ─────────────────────────────────────────────── */
.stat-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--lg) var(--xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-card .label { font-size: 11px; font-weight: 600; color: var(--text-faint); letter-spacing: .08em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; margin-bottom: 10px; }
.stat-card .value { font-family: 'JetBrains Mono', monospace; font-size: 32px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.stat-card .sub { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

/* ── Chart card ─────────────────────────────────────────────── */
.chart-card { background: var(--grad-card); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--lg); box-shadow: var(--shadow-sm); }
.chart-card h3 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; margin-bottom: var(--md); }

/* ── Table ──────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th { font-size: 11px; font-weight: 600; color: var(--text-faint); letter-spacing: .07em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border); }
td { padding: 13px 16px; font-size: 14px; border-bottom: 1px solid rgba(51,65,85,.5); color: var(--text-muted); }
td:first-child { color: var(--text); font-weight: 500; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--hover); }

/* ── Trend cards ────────────────────────────────────────────── */
.trend-card { background: var(--grad-card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; box-shadow: var(--shadow-sm); }
.trend-card:hover { border-color: var(--primary); box-shadow: var(--shadow), 0 0 0 1px rgba(109,93,252,.2); transform: translateY(-4px); }
.trend-card .kw { font-size: 15px; color: var(--text); margin-bottom: 5px; font-weight: 500; }
.trend-card .score { font-size: 11px; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; }

/* ── Dashboard modals ───────────────────────────────────────── */
.preview-modal { display: none; position: fixed; inset: 0; background: rgba(8,11,20,.8); backdrop-filter: blur(8px); z-index: 200; align-items: center; justify-content: center; }
.preview-modal.open { display: flex; }
.preview-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-modal); padding: var(--xl); max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.preview-inner h3 { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: .07em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; margin-bottom: var(--md); }
.script-scene { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 10px; }
.script-scene .scene-num { font-size: 10px; font-weight: 700; color: var(--primary); font-family: 'JetBrains Mono', monospace; margin-bottom: 8px; letter-spacing: .06em; }
.script-scene textarea { width: 100%; background: transparent; border: none; color: var(--text); font-size: 14px; resize: vertical; outline: none; font-family: 'Inter', sans-serif; line-height: 1.5; }

/* ── Filters ────────────────────────────────────────────────── */
.filters { display: flex; gap: 10px; margin-bottom: var(--lg); align-items: center; }
.filters input, .filters select, #trendsKeywords {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--r-input);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .15s;
  height: 44px;
}
.filters input::placeholder, #trendsKeywords::placeholder { color: var(--text-faint); }
.filters input:focus, .filters select:focus, #trendsKeywords:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109,93,252,.15); }
#trendsKeywords { width: 320px; }

/* ── Old badge classes (dashboard) ─────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 11px; font-family: 'JetBrains Mono', monospace; letter-spacing:.04em; text-transform: uppercase; border: 1px solid transparent; }
.badge-pending { background: rgba(245,158,11,.1); color: var(--warning); border-color: rgba(245,158,11,.3); }
.badge-done    { background: rgba(16,185,129,.1);  color: var(--success); border-color: rgba(16,185,129,.3); }
.badge-error   { background: rgba(239,68,68,.1);   color: var(--error);   border-color: rgba(239,68,68,.3); }
.badge-review  { background: rgba(6,182,212,.1);   color: var(--secondary); border-color: rgba(6,182,212,.3); }
.badge-queued  { background: rgba(148,163,184,.06); color: var(--text-faint); border-color: var(--border); }

/* ── Dashboard btn classes ──────────────────────────────────── */
.btn { padding: 8px 18px; border-radius: var(--r-btn); border: none; cursor: pointer; font-family: 'Inter', monospace; font-size: 12px; font-weight: 600; transition: opacity .15s, transform .1s; letter-spacing: 0.02em; }
.btn-approve { background: linear-gradient(90deg, #059862, #10B981); color: #fff; box-shadow: 0 3px 12px rgba(16,185,129,.3); }
.btn-approve:hover { opacity: .88; transform: translateY(-1px); }
.btn-reject  { background: linear-gradient(90deg, #DC2626, #EF4444); color: #fff; box-shadow: 0 3px 12px rgba(239,68,68,.3); }
.btn-reject:hover  { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-ghost-dash { background: transparent; border: 1px solid var(--border); color: var(--text-muted); border-radius: var(--r-btn); }
.btn-ghost-dash:hover { background: var(--hover); color: var(--text); }

/* ── Toast ──────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  display: none;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}
#toast.ok  { background: rgba(30,41,59,.95); color: var(--text); }
#toast.err { background: rgba(239,68,68,.15); color: var(--error); border-color: rgba(239,68,68,.4); }
#toast.show { display: block; animation: toastIn .22s cubic-bezier(.22,1,.36,1); }
@keyframes toastIn { from { opacity:0; transform:translateY(12px) scale(.96); } to { opacity:1; transform:none; } }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
