/* ─── VARIABLES ──────────────────────────────────── */
:root {
  --bg: #ffffff;
  --surface: #f9f9f9;
  --surface2: #f2f2f2;
  --border: #e5e5e5;
  --accent: #ff0000;
  --accent-hover: #cc0000;
  --accent-soft: #fff0f0;
  --text: #0f0f0f;
  --muted: #606060;
  --green: #1e8c45;
  --green-bg: #e6f4ea;
  --red: #cc0000;
  --red-bg: #fce8e6;
  --pro: #7c3aed;
  --pro-bg: #f5f3ff;
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── SHARED: LOGO ───────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-decoration: none;
  color: var(--text);
}

.logo-svg { transform: rotate(45deg) scale(1.75); overflow: visible; }

.logo-icon {
  background: var(--accent);
  color: white;
  border-radius: 6px;
  width: 32px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* ─── SHARED: BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface2); }
.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1px solid transparent;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 20px;
}
.btn-danger:hover { background: var(--red-bg); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ─── LANDING: HEADER ────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--text); background: var(--surface2); }
.nav-cta { background: var(--accent) !important; color: white !important; padding: 7px 18px !important; margin-left: 6px; }
.nav-cta:hover { background: var(--accent-hover) !important; }

/* ─── LANDING: SECTIONS ──────────────────────────── */
section { padding: 80px 32px; }
.section-alt { background: var(--surface); }
.container { max-width: 1080px; margin: 0 auto; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.65;
}

/* ─── LANDING: ABOVE FOLD VIDEO BG ──────────────── */
.above-fold {
  position: relative;
  overflow: hidden;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-bg-video.is-playing { opacity: 1; }
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  pointer-events: none;
}
.above-fold .site-header {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.above-fold .hero,
.above-fold .site-header,
.above-fold .container {
  position: relative;
  z-index: 1;
}

/* ─── LANDING: HERO ──────────────────────────────── */
.hero { padding: 80px 32px; }
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-left { text-align: left; min-width: 0; }
.hero-left .hero-actions { justify-content: flex-start; }
.hero-left .hero-trust { justify-content: flex-start; }
.hero-right { min-width: 0; }
.hero-right .code-wrap { max-width: none; margin: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #ffd0d0;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 22px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-trust span { display: flex; align-items: center; gap: 5px; }
.trust-dot { width: 5px; height: 5px; background: var(--green); border-radius: 50%; }

/* ─── LANDING: CODE BLOCK ────────────────────────── */
.code-section { padding: 0 32px 80px; }
.code-wrap {
  background: #0f0f0f;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  max-width: 820px;
  margin: 0 auto;
}
.code-tabs { display: flex; border-bottom: 1px solid #2a2a2a; padding: 0 20px; }
.code-tab {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}
.code-tab.active { color: #fff; border-bottom-color: var(--accent); }
.code-body { padding: 24px 28px; overflow-x: auto; display: none; scrollbar-width: none; }
.code-body::-webkit-scrollbar { display: none; }
.code-body.active { display: block; }
.code-body pre {
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #e0e0e0;
  margin: 0;
  white-space: pre;
  background: none;
  padding: 0;
}
.token-key { color: #79c0ff; }
.token-str { color: #a5d6ff; }
.token-num { color: #f2cc60; }
.token-bool { color: #ff7b72; }
.token-comment { color: #6e7681; font-style: italic; }
.token-method { color: #7ee787; font-weight: 700; }
.token-url { color: #d2a8ff; }

/* ─── LANDING: STEPS ─────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 52px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.step h3 { font-size: 16px; font-weight: 600; color: var(--text); }
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ─── LANDING: FEATURES ──────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}
.feature-icon { width: 28px; height: 28px; margin-bottom: 14px; display: block; }
.feature-card h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.badge-pro {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--pro-bg);
  color: var(--pro);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #ddd6fe;
}

/* ─── SHARED: HELP TIP ───────────────────────────── */
.help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: default;
  position: relative;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
}
.help-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  padding: 8px 12px;
  border-radius: 8px;
  width: 240px;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
}
.help-tip:hover::after { opacity: 1; }

/* ─── LANDING: USE CASES ─────────────────────────── */
.usecases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.usecase-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.usecase-icon { width: 28px; height: 28px; margin-bottom: 14px; display: block; }
.usecase-card h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.usecase-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 0; }
.usecase-card a.card-link { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 500; color: #FF0000; text-decoration: none; }
.usecase-card a.card-link:hover { text-decoration: underline; }

/* ─── LANDING: INTEGRATIONS ──────────────────────── */
.integrations-section { text-align: center; }
.integrations-section .section-title,
.integrations-section .section-sub { margin-left: auto; margin-right: auto; }
.integration-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px; }
.integration-pill {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.integrations-tagline { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* ─── LANDING: PRICING ───────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; align-items: start; }
.pricing-card { background: var(--bg); border: 1.5px solid var(--border); border-radius: 14px; padding: 28px 24px; }
.pricing-card.highlighted { border-color: var(--accent); position: relative; }
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 8px; }
.plan-price { font-size: 36px; font-weight: 700; color: var(--text); letter-spacing: -1px; line-height: 1; }
.plan-price span { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan-desc { font-size: 13px; color: var(--muted); margin: 10px 0 20px; line-height: 1.5; min-height: 38px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.plan-features li { font-size: 13px; color: var(--text); display: flex; align-items: flex-start; gap: 8px; }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.plan-features li.muted-feat::before { content: '✓'; color: var(--border); }
.plan-features li.muted-feat { color: var(--muted); }
.plan-cta {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--border);
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.plan-cta:hover { background: var(--surface2); }
.pricing-card.highlighted .plan-cta { background: var(--accent); color: white; border-color: var(--accent); }
.pricing-card.highlighted .plan-cta:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.pricing-footnote { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.pricing-footnote a { color: var(--text); }

/* ─── LANDING: FAQ ───────────────────────────────── */
.faq-list { margin-top: 48px; max-width: 720px; margin-left: auto; margin-right: auto; display: flex; flex-direction: column; gap: 4px; }
details { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
details + details { border-top: none; border-radius: 0; }
details:first-child { border-radius: 10px 10px 0 0; }
details:last-child { border-bottom: 1px solid var(--border); border-radius: 0 0 10px 10px; }
details[open] { background: var(--surface); }
summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--muted); flex-shrink: 0; transition: transform 0.2s; }
details[open] summary::after { content: '−'; }
.faq-answer { padding: 0 22px 18px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.faq-answer code { font-family: 'Roboto Mono', monospace; font-size: 12px; background: var(--surface2); padding: 1px 5px; border-radius: 4px; color: var(--text); }

/* ─── LANDING: FINAL CTA ─────────────────────────── */
.cta-section { text-align: center; background: var(--text); color: white; padding: 80px 32px; }
.cta-section .section-label { color: #ff6666; }
.cta-section h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.8px; color: white; margin-bottom: 14px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.2; }
.cta-section p { font-size: 17px; color: #aaa; margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-section .btn-primary { background: var(--accent); font-size: 16px; padding: 14px 32px; }
.cta-section .btn-ghost { color: white; border-color: #444; }
.cta-section .btn-ghost:hover { background: #222; }
.cta-trust { margin-top: 20px; font-size: 12px; color: #666; }

/* ─── LANDING: FOOTER ────────────────────────────── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 32px; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 260px; }
.footer-brand .logo { margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 8px; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1080px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; color: var(--muted); }

/* ─── DASHBOARD: HEADER ──────────────────────────── */
header {
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.header-right { display: flex; align-items: center; gap: 12px; }

.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.user-email { font-size: 12px; color: var(--muted); }

/* ─── DASHBOARD: LAYOUT ──────────────────────────── */
main { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.page-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 24px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; }
.stat-label { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 32px; font-weight: 700; color: var(--text); line-height: 1; }
.plan-badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 20px; background: var(--surface2); color: var(--muted); margin-top: 6px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.card-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 16px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 5px; }
label { font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,0.15); }
input::placeholder { color: #aaa; }
input[readonly] { background: var(--surface2); cursor: default; }
select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: auto;
}
select:focus { border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,0.15); }

/* ─── DASHBOARD: TABLE ───────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
  background: var(--bg);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface); }

/* ─── SUBSCRIPTIONS: CARD LIST ──────────────────── */
#subs-list { display: flex; flex-direction: column; gap: 10px; }
.sub-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  transition: border-color 0.15s;
}
.sub-card:hover { border-color: #c0c0c0; }
.sub-card.sub-paused { opacity: 0.5; filter: grayscale(60%); }
.sub-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.sub-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.sub-meta-dot { color: var(--border); font-size: 14px; line-height: 1; }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.sub-card-divider { height: 1px; background: var(--border); margin: 12px 0; }
.sub-card-latest { font-size: 13px; }
.sub-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sub-checked { font-family: monospace; font-size: 11px; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.badge-active { background: var(--green-bg); color: var(--green); }
.badge-paused { background: var(--surface2); color: var(--muted); }

.channel-name { font-weight: 500; color: var(--text); text-decoration: none; }
.channel-name:hover { color: var(--accent); }
.channel-id { font-family: monospace; font-size: 11px; color: var(--muted); margin-top: 2px; }

.webhook-url { font-family: monospace; font-size: 11px; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.actions { display: flex; gap: 6px; align-items: center; }

/* ─── DASHBOARD: TABLE EXTRACTED CLASSES ─────────── */
.sub-paused { opacity: 0.5; filter: grayscale(60%); }
.td-checked { font-family: monospace; font-size: 11px; color: var(--muted); }
.td-latest { padding: 6px 16px 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.latest-label { font-size: 11px; color: var(--muted); margin-right: 8px; }
.latest-link { font-size: 12px; font-weight: 500; color: var(--accent); text-decoration: none; }
.latest-link-btn { background: none; border: none; padding: 0; cursor: pointer; text-align: left; }
.latest-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.processed-at { font-size: 11px; color: var(--muted); font-family: monospace; white-space: nowrap; }
.past-video-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 5px; padding-left: 4px; border-left: 2px solid var(--border); }
.past-video-link { font-size: 11px; font-weight: 400; color: var(--muted); }
.past-videos-scroll { max-height: 90px; overflow-y: auto; }
.td-error { color: var(--red); font-size: 12px; padding: 20px; }
.muted-text { color: var(--muted); }

/* ─── DASHBOARD: EMPTY / LOADING ─────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }
.loading { color: var(--muted); font-size: 13px; padding: 20px 0; }

/* ─── DASHBOARD: DELIVERY LOG ────────────────────── */
.log-entry { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.log-entry:last-child { border-bottom: none; }
.log-time { font-family: monospace; font-size: 11px; color: var(--muted); white-space: nowrap; min-width: 150px; margin-top: 2px; }
.log-status { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 20px; min-width: 70px; text-align: center; }
.log-ok { background: var(--green-bg); color: var(--green); }
.log-fail { background: var(--red-bg); color: var(--red); }
.log-filtered { background: var(--surface2); color: var(--muted); }
.log-pull { background: #e8f0fe; color: #3b5bdb; }

/* ─── DASHBOARD: TOAST ───────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
  pointer-events: none;
}
#toast.show { opacity: 1; }
#toast.error { background: var(--red); color: white; }

/* ─── DASHBOARD: TABS ────────────────────────────── */
.tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.tab { font-size: 13px; font-weight: 500; padding: 10px 20px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab:hover:not(.active) { color: var(--text); background: var(--surface); border-radius: 4px 4px 0 0; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── DASHBOARD: API DOCS ────────────────────────── */
.api-endpoint { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.api-method { font-family: monospace; font-size: 12px; font-weight: 700; margin-right: 8px; }
.method-get { color: #1e8c45; }
.method-post { color: #1a73e8; }
.method-delete { color: var(--red); }
.api-path { font-family: monospace; font-size: 12px; color: var(--text); }
.api-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }
pre { font-size: 11px; color: var(--muted); background: var(--surface2); padding: 10px 12px; border-radius: 6px; margin-top: 8px; overflow-x: auto; font-family: monospace; }

/* ─── DASHBOARD: SETTINGS ────────────────────────── */
.key-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.key-row input { flex: 1; font-family: monospace; font-size: 13px; }

/* ─── DASHBOARD: FOOTER ──────────────────────────── */
.dash-footer { text-align: center; padding: 24px 16px 32px; border-top: 1px solid var(--border); margin-top: 40px; }
.dash-footer a { font-size: 12px; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.dash-footer a:hover { color: var(--text); }
.dash-footer-dot { font-size: 12px; color: var(--border); margin: 0 10px; }

/* ─── DASHBOARD: BILLING ─────────────────────────── */
.billing-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.billing-plan { background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.billing-plan-featured { border-color: var(--accent); }
.billing-plan .plan-name { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.billing-plan-featured .plan-name { color: var(--accent); }
.billing-plan .plan-price { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; line-height: 1.1; }
.billing-plan .plan-price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.billing-plan .plan-desc { font-size: 12px; color: var(--muted); margin-bottom: 8px; flex: 1; }
.billing-plan .btn { justify-content: center; }

/* ─── DASHBOARD: UPGRADE BANNER ──────────────────── */
.upgrade-banner { background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 12px 16px; font-size: 13px; color: #5f4b00; margin-bottom: 16px; display: none; }
.upgrade-banner.show { display: block; }
.upgrade-banner a { color: #e65100; font-weight: 500; text-decoration: none; }

/* ─── VS PAGE ────────────────────────────────────── */
.vs-hero {
  padding: 64px 32px 56px;
  text-align: center;
}

.vs-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 18px;
}

.vs-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.vs-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.vs-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  background: var(--bg);
  text-align: left;
}

.vs-card.highlight {
  border-color: var(--accent);
  background: #fff8f8;
}

.vs-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 8px;
}

.vs-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.vs-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.vs-card ul {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vs-card ul li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.vs-card ul li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.compare-table-wrap {
  overflow-x: auto;
  margin-top: 48px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  background: var(--surface);
}

.compare-table th:first-child {
  width: 40%;
}

.compare-table th.col-tr {
  color: var(--accent);
}

.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--surface); }

.compare-table .feature-group td {
  background: var(--surface2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 10px 20px;
}

.tick { color: var(--green); font-weight: 700; }
.cross { color: #ccc; }
.partial { color: #f59e0b; font-weight: 600; }

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.prose p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.prose p strong { color: var(--text); }

.prose code {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  background: var(--surface2);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text);
}

.callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

/* ─── LEGAL PAGES ────────────────────────────────── */
.legal-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
  display: flex;
  align-items: center;
}
.legal-logo-icon {
  background: var(--accent);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.legal-content {
  max-width: 680px;
  margin: 60px auto;
  padding: 0 24px 80px;
}
.legal-content h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.legal-content .effective { font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.legal-content h2 { font-size: 16px; font-weight: 700; margin: 32px 0 10px; }
.legal-content p { font-size: 15px; line-height: 1.7; color: #333; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; margin-bottom: 12px; }
.legal-content li { font-size: 15px; line-height: 1.7; color: #333; margin-bottom: 4px; }
.legal-content a { color: var(--accent); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; }
.legal-content th { text-align: left; padding: 8px 12px; background: #f5f5f5; font-weight: 600; border: 1px solid var(--border); }
.legal-content td { padding: 8px 12px; border: 1px solid var(--border); color: #333; vertical-align: top; }

/* ─── AUTH PAGES ─────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 400px; padding: 40px; border: 1px solid var(--border); border-radius: 16px; }
.auth-card--centered { text-align: center; }
.auth-card .field { margin-bottom: 16px; }
.auth-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 36px; justify-content: center; text-decoration: none; color: var(--text); }
.auth-logo .logo-text { font-size: 18px; font-weight: 700; }
.auth-logo .logo-icon { width: 26px; height: 26px; }
.auth-heading { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.auth-error { background: var(--red-bg); color: var(--red); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; display: none; }
.auth-error.show { display: block; }
.auth-form-footer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }
.auth-form-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-btn { width: 100%; margin-top: 8px; justify-content: center; }
.auth-success-icon { font-size: 40px; text-align: center; margin-bottom: 16px; }
.auth-success-note { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.6; }
.agree-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.agree-label { font-size: 13px; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; cursor: pointer; line-height: 1.5; }
.agree-label a { color: var(--accent); text-decoration: none; font-weight: 500; }
.resend-link { font-size: 13px; color: var(--accent); cursor: pointer; text-decoration: underline; background: none; border: none; padding: 0; font-family: inherit; }
.verify-icon { font-size: 44px; margin-bottom: 16px; }
.verify-message { font-size: 14px; color: var(--muted); line-height: 1.6; }
.auth-benefits { max-width: 400px; margin: 32px auto 0; padding: 0 8px; }
.auth-benefits-heading { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.auth-benefits-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.auth-benefits-list li { font-size: 13px; color: var(--muted); line-height: 1.5; padding-left: 18px; position: relative; }
.auth-benefits-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.auth-benefits-note { font-size: 12px; color: var(--muted); opacity: .7; margin: 0; }

/* ─── MARKETING: UTILITIES ───────────────────────── */
.section-title--center { text-align: center; }
.section-sub--mb { margin-bottom: 36px; }
.code-wrap--full { max-width: 100%; }
.features-grid--mt-sm { margin-top: 36px; }
.feature-card--pro { border-color: #ddd6fe; }
.section--compact { padding-top: 0; padding-bottom: 64px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.footer-minor-link { color: var(--muted); text-decoration: none; }
.footer-minor-link--gap { margin-right: 16px; }
.tick--muted { color: var(--muted); }

/* ─── RESPONSIVE: LANDING ────────────────────────── */
@media (max-width: 768px) {
  section { padding: 56px 20px; }
  .site-header { padding: 0 20px; }
  .hero { padding: 56px 20px 48px; }
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-left { text-align: center; }
  .hero-left .hero-actions { justify-content: center; }
  .hero-left .hero-trust { justify-content: center; }
  .nav a:not(.nav-cta) { display: none; }
  .steps,
  .features-grid,
  .usecases-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-cols { gap: 28px; }
  .hero h1 { letter-spacing: -0.8px; }
}

@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ─── DOCS PAGE ──────────────────────────────────── */
.docs-hero {
  padding: 64px 32px 56px;
  text-align: center;
}
.docs-hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 16px 0 12px;
  line-height: 1.15;
}
.docs-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
}
.docs-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.docs-toc a {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  transition: border-color 0.15s, color 0.15s;
}
.docs-toc a:hover { border-color: var(--accent); color: var(--accent); }

.docs-section { padding: 64px 32px; }
.docs-section-alt { background: var(--surface); }

.docs-layout { max-width: 780px; }

.docs-content h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}
.docs-content h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 28px 0 10px;
}
.docs-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.docs-content a { color: var(--accent); text-decoration: none; }
.docs-content a:hover { text-decoration: underline; }

.docs-endpoint {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 20px 0;
}
.docs-section-alt .docs-endpoint { background: var(--bg); }
.docs-endpoint-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.docs-endpoint-header .api-path { font-size: 14px; }

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 8px;
}
.docs-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--surface2);
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border);
}
.docs-section-alt .docs-table th { background: var(--surface); }
.docs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
  line-height: 1.5;
}
.docs-table tr:last-child td { border-bottom: none; }
.docs-table code {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  background: var(--surface2);
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.docs-method-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.docs-method-item { display: flex; flex-direction: column; gap: 4px; }
.docs-method-item pre { margin: 0; }
.docs-method-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--green); }

.docs-note {
  background: var(--surface2);
  border-left: 3px solid var(--border);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 13px !important;
  color: var(--muted) !important;
  margin: 16px 0 !important;
}

.docs-retry-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; }
.docs-retry-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text);
}
.docs-retry-n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── RESPONSIVE: VS PAGE ────────────────────────── */
@media (max-width: 640px) {
  .vs-summary { grid-template-columns: 1fr; }
  .vs-hero { padding: 48px 20px 40px; }
}

/* ─── SHARED: CHECKBOX WIDTH FIX ────────────────── */
input[type="checkbox"] { width: auto; }

/* ─── SHARED: INLINE CODE ────────────────────────── */
:not(pre) > code {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  background: var(--surface2);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--text);
}

/* ─── DASHBOARD: UTILITIES ───────────────────────── */
.card-desc { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.card-footnote { font-size: 12px; color: var(--muted); }
.link-accent { color: var(--accent); }
.btn-ghost.btn-danger-text { color: var(--red); }
.mono { font-family: monospace; }
.text-error { color: var(--red); }

/* ─── DASHBOARD: FORMS ───────────────────────────── */
.form-grid > .btn { grid-column: 1 / -1; justify-self: start; }
.inline-row { display: flex; gap: 8px; }
.inline-row--mb { display: flex; gap: 8px; margin-bottom: 4px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 20px; font-size: 13px; color: var(--text); }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.field--mb { margin-bottom: 12px; }

/* ─── DASHBOARD: API REFERENCE ───────────────────── */
.api-endpoints-list { display: flex; flex-direction: column; gap: 10px; }
.api-endpoint-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.api-endpoint-note { font-size: 11px; color: var(--muted); margin-top: 6px; }
.api-endpoint--mcp { border-left: 3px solid var(--pro); }
.api-endpoint-label--mcp { color: var(--pro); }
.api-endpoint--webhook { border-left: 3px solid var(--accent); }
.api-endpoint-label--webhook { color: var(--accent); }
.pre--mb { margin-bottom: 16px; }

/* ─── DASHBOARD: SETTINGS ────────────────────────── */
.account-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.account-email { font-size: 14px; font-weight: 500; }
.account-plan { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ─── DASHBOARD: MODALS ──────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay--dark { background: rgba(0, 0, 0, 0.55); padding: 16px; z-index: 400; }
.modal-overlay--mid { z-index: 300; }
.modal-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.modal-close { flex-shrink: 0; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; padding: 0; margin-top: -4px; }

/* Video modal */
.vm-dialog {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 720px;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vm-body { overflow-y: auto; padding: 28px 28px 24px; flex: 1; }
.vm-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.vm-thumb-wrap { flex-shrink: 0; }
.vm-thumb { border-radius: 8px; object-fit: cover; display: block; background: var(--surface); }
.vm-info { flex: 1; min-width: 0; }
.vm-title-el { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.35; }
.vm-meta-el { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.vm-section { display: none; margin-bottom: 20px; }
.vm-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 8px; }
.vm-text-body { font-size: 13px; color: var(--text); line-height: 1.6; }
.vm-takeaways-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; }
.vm-takeaway { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text); }
.vm-takeaway svg { flex-shrink: 0; margin-top: 2px; }
.vm-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-pill { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; font-size: 11px; color: var(--text); }
.transcript-box { font-size: 12px; color: var(--text); line-height: 1.7; max-height: 260px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px; white-space: pre-wrap; word-break: break-word; }
.vm-loading { text-align: center; padding: 40px 0; color: var(--muted); font-size: 13px; }
.vm-error { display: none; text-align: center; padding: 40px 0; color: var(--red); font-size: 13px; }

/* Upgrade modal */
.upgrade-modal-dialog {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  width: 480px;
  max-width: 90vw;
  text-align: center;
}
.upgrade-modal-brand { margin-bottom: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.upgrade-modal-logo { border-radius: 6px; display: block; }
.upgrade-modal-name { font-size: 17px; font-weight: 700; }
.upgrade-modal-icon { margin-bottom: 16px; }
.upgrade-modal-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.upgrade-modal-price { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.upgrade-modal-features-box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; text-align: left; margin-bottom: 28px; }
.upgrade-modal-features-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 12px; }
.upgrade-modal-features-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.upgrade-modal-feature-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text); }
.upgrade-modal-feature-item svg { flex-shrink: 0; margin-top: 1px; }
.btn--full { width: 100%; justify-content: center; }

/* Edit modal */
.edit-modal-dialog { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; width: 460px; max-width: 90vw; }

/* ─── DASHBOARD: QUICK PULL ──────────────────────── */
.qp-input-row { display: flex; gap: 8px; margin-bottom: 4px; }
.qp-result-inner { border-top: 1px solid var(--border); padding-top: 16px; }
.qp-result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.qp-result-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.qp-result-title a { color: var(--text); text-decoration: none; }
.qp-result-channel { font-size: 12px; color: var(--muted); }
.qp-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.transcript-unavailable { font-size: 13px; color: var(--muted); font-style: italic; }

/* ─── DASHBOARD: PULL HISTORY TABLE ─────────────── */
.pull-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pull-table thead tr { border-bottom: 1px solid var(--border); color: var(--muted); text-align: left; }
.pull-table th { padding: 6px 8px 8px 0; font-weight: 500; background: transparent; border-bottom: none; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); }
.pull-table td { padding: 8px; border-bottom: 1px solid var(--border); background: transparent; font-size: 13px; vertical-align: middle; }
.pull-table tr:last-child td { border-bottom: none; }
.pull-table tr:hover td { background: transparent; }
.pull-td-title { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pull-td-title a { color: var(--text); text-decoration: none; }
.pull-td-channel { color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 0 !important; }
.pull-td-transcript { padding-left: 0 !important; }
.pull-td-date { color: var(--muted); white-space: nowrap; padding-left: 0 !important; }
.pull-td-actions { text-align: right; white-space: nowrap; display: flex; gap: 6px; justify-content: flex-end; align-items: center; padding-left: 0 !important; }
.pull-td-expand { padding: 0 0 12px 0 !important; }
.transcript-available { color: #22c55e; font-size: 12px; }
.transcript-none { color: var(--muted); font-size: 12px; }
.transcript-row-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 6px; }
.btn-xs { font-size: 11px; padding: 3px 8px; }

/* ─── DASHBOARD: DELIVERY LOG ────────────────────── */
.log-content { flex: 1; }
.log-title { font-weight: 500; }
.log-detail { font-size: 11px; color: var(--muted); margin-top: 2px; }
.log-webhook-row { font-size: 11px; color: var(--muted); margin-top: 1px; font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.log-webhook-label { font-family: sans-serif; font-weight: 500; color: var(--text); }

/* ─── DASHBOARD: ALERTS ──────────────────────────── */
.alerts-add-row { display: flex; gap: 8px; margin-bottom: 24px; }
.alerts-desc { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.alert-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.alert-keyword { font-size: 13px; font-weight: 500; background: var(--accent-soft); color: var(--accent); border: 1px solid #ffd0d0; border-radius: 12px; padding: 3px 12px; }

/* ─── DASHBOARD: CREDITS ─────────────────────────── */
.credits-usage { font-size: 13px; color: var(--text); margin-bottom: 10px; }
.credits-bar-track { background: var(--surface); border-radius: 6px; height: 8px; overflow: hidden; margin-bottom: 8px; }
.credits-bar-fill { height: 100%; border-radius: 6px; transition: width 0.3s; }
.credits-reset { font-size: 12px; color: var(--muted); }

/* ─── DASHBOARD: BILLING CURRENT ─────────────────── */
.billing-current { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.billing-current-name { font-size: 14px; font-weight: 500; }
.billing-current-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ─── RESPONSIVE: DASHBOARD ──────────────────────── */
@media (max-width: 640px) {
  header { padding: 0 16px; }
  .status-pill { display: none; }
  .user-email { display: none; }
  main { padding: 20px 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }

  .sub-card-footer { flex-direction: column; align-items: flex-start; }

  .log-time { min-width: 0; font-size: 10px; }
  .log-entry { flex-wrap: wrap; gap: 8px; }
  .billing-plans { grid-template-columns: 1fr; }
}
