/* ============================================================
   StreamAlert — theme is driven by [data-platform] on <html>
   ============================================================ */

:root {
  --brand: #9146ff;
  --brand-2: #c9a7ff;
  --brand-soft: rgba(145, 70, 255, 0.16);
  --brand-line: rgba(145, 70, 255, 0.42);

  --bg: #06070c;
  --bg-2: #0a0c14;
  --text: #eef1f8;
  --muted: #96a0b8;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: Vazirmatn, "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
}

[data-platform="twitch"] {
  --brand: #9146ff;
  --brand-2: #c9a7ff;
  --brand-soft: rgba(145, 70, 255, 0.16);
  --brand-line: rgba(145, 70, 255, 0.45);
}
[data-platform="kick"] {
  --brand: #53fc18;
  --brand-2: #c9ffb4;
  --brand-soft: rgba(83, 252, 24, 0.12);
  --brand-line: rgba(83, 252, 24, 0.38);
}
[data-platform="youtube"] {
  --brand: #ff1f3d;
  --brand-2: #ff9aa8;
  --brand-soft: rgba(255, 31, 61, 0.14);
  --brand-line: rgba(255, 31, 61, 0.42);
}
[data-platform="aparat"] {
  --brand: #ed145b;
  --brand-2: #ff9ab5;
  --brand-soft: rgba(237, 20, 91, 0.15);
  --brand-line: rgba(237, 20, 91, 0.42);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--muted); }

a { color: inherit; text-decoration: none; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  direction: ltr;
  display: inline-block;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 1px 7px;
  font-size: 0.9em;
}

::selection { background: var(--brand); color: #fff; }

/* ---------------- animated background ---------------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, var(--brand-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 45%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  transition: background 0.6s ease;
}
.b1 { width: 46vmax; height: 46vmax; background: var(--brand); top: -18vmax; right: -10vmax; opacity: 0.28; }
.b2 { width: 34vmax; height: 34vmax; background: var(--brand-2); bottom: -16vmax; left: -8vmax; opacity: 0.14; }
.b3 { width: 26vmax; height: 26vmax; background: var(--brand); top: 40%; left: 45%; opacity: 0.1; }

.mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
  opacity: 0.55;
}

/* ---------------- top bar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(14px, 4vw, 40px);
  background: rgba(8, 9, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
}
.brand b { color: var(--brand); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  color: #08080c;
  font-size: 1rem;
  box-shadow: 0 8px 22px var(--brand-soft);
  transition: background 0.4s ease;
}
.brand-mark.small { width: 24px; height: 24px; border-radius: 8px; font-size: 0.8rem; }

.platform-tabs {
  display: flex;
  gap: 6px;
  margin-inline-start: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.ptab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.ptab .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #888;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.ptab[data-platform="twitch"] .dot { background: #9146ff; }
.ptab[data-platform="kick"] .dot { background: #53fc18; }
.ptab[data-platform="youtube"] .dot { background: #ff1f3d; }
.ptab[data-platform="aparat"] .dot { background: #ed145b; }

.ptab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.ptab.active {
  color: #fff;
  background: var(--brand-soft);
  border-color: var(--brand-line);
  box-shadow: 0 0 22px var(--brand-soft);
}
.ptab.active .dot { box-shadow: 0 0 0 4px var(--brand-soft); }

.top-actions { display: flex; gap: 8px; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.08); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }

.btn.primary {
  border-color: transparent;
  color: #0a0a10;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px var(--brand-soft), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.primary:hover { box-shadow: 0 16px 38px var(--brand-soft); }

.btn.ghost { background: transparent; }
.btn.big { padding: 14px 26px; font-size: 1rem; border-radius: 15px; }
.btn.full { width: 100%; }
.btn.tiny { padding: 7px 12px; font-size: 0.8rem; border-radius: 10px; }
.btn.danger { border-color: rgba(255, 90, 90, 0.4); color: #ff9b9b; }

/* ---------------- layout ---------------- */

main { padding: 0 clamp(14px, 4vw, 40px) 60px; max-width: 1180px; margin: 0 auto; }

.section { padding: clamp(38px, 7vw, 76px) 0 0; scroll-margin-top: 90px; }
.section-head { max-width: 620px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.section-head p { font-size: 0.98rem; }

.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.grid { display: grid; gap: 16px; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------------- hero ---------------- */

.hero { padding: clamp(46px, 9vw, 96px) 0 10px; text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 var(--brand);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--brand-line); }
  70% { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.hero h1 {
  font-size: clamp(2rem, 6.4vw, 3.6rem);
  line-height: 1.25;
  margin-bottom: 18px;
}
.grad {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 640px;
  margin: 0 auto 26px;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  color: #b6c0d4;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
}
.hero-stats li {
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.hero-stats b { display: block; font-size: 1.25rem; color: var(--brand-2); }
.hero-stats span { font-size: 0.76rem; color: var(--muted); }

/* ---------------- id tool ---------------- */

.tool-card { display: grid; gap: 14px; }
.tool-row { display: flex; gap: 10px; }
.tool-row input { flex: 1; }

input[type="text"],
input[type="password"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 7, 12, 0.6);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.94rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
input::placeholder { color: #5f6880; }
input[dir="ltr"], code, .ltr { direction: ltr; text-align: left; }

.tool-hints { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  color: var(--text);
}
.chip.muted { color: var(--muted); background: transparent; }
.chip.ok { border-color: var(--brand-line); background: var(--brand-soft); }
.chip.bad { border-color: rgba(255, 90, 90, 0.4); background: rgba(255, 90, 90, 0.1); color: #ffb3b3; }

.tool-result {
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 8px;
}
.tool-result .row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; }
.tool-result .row span { color: var(--muted); }
.tool-result .big-id { font-size: 1.15rem; font-weight: 700; color: var(--brand-2); }

/* ---------------- features ---------------- */

.feature { display: grid; gap: 6px; }
.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 1.15rem;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  margin-bottom: 4px;
}
.feature h3 { font-size: 1rem; margin-bottom: 2px; }
.feature p { font-size: 0.86rem; margin: 0; }

/* ---------------- alert preview ---------------- */

.preview-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.preview-controls { display: grid; gap: 18px; }
.control-label { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 8px; }

.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}
.seg button {
  flex: 1;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.seg button:hover { color: var(--text); }
.seg button.active {
  color: #fff;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand-line);
}

.phone {
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #10131c, #0a0c13);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.phone-top small { color: var(--muted); display: block; font-size: 0.72rem; }
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}
.phone-body {
  padding: 16px;
  min-height: 300px;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), transparent 40%),
    radial-gradient(circle at 80% 70%, var(--brand-soft), transparent 45%);
}
.bubble {
  position: relative;
  background: #141a26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px 16px 16px 6px;
  padding: 14px 16px;
  font-size: 0.84rem;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
.bubble b { color: #fff; }
.bubble .bar { color: var(--brand); letter-spacing: -1px; }
.bubble .u { color: #7fc4ff; }
.bubble .cta {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cfe4ff;
  font-weight: 600;
}

/* ---------------- pricing ---------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.plan:hover { transform: translateY(-4px); border-color: var(--brand-line); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5); }
.plan.featured {
  border-color: var(--brand-line);
  background: linear-gradient(170deg, var(--brand-soft), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 1px var(--brand-line), 0 26px 60px var(--brand-soft);
}
.plan-badge {
  position: absolute;
  top: -11px;
  inset-inline-start: 18px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #06070c;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.plan h3 { font-size: 1.05rem; margin: 4px 0 0; }
.plan .tagline { font-size: 0.78rem; color: var(--muted); margin: 0; }
.plan .price { font-size: 1.5rem; font-weight: 800; color: var(--brand-2); line-height: 1.4; }
.plan .price small { font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.plan .old {
  font-size: 0.8rem;
  color: #6f7891;
  text-decoration: line-through;
}
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.82rem; }
.plan li { display: flex; gap: 8px; align-items: flex-start; color: #c3cbdc; }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 800; }
.plan .btn { width: 100%; }

.pricing-note { text-align: center; font-size: 0.82rem; margin-top: 16px; }

/* ---------------- faq ---------------- */

.faq { display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.94rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: left; color: var(--brand); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 16px; font-size: 0.86rem; margin: 0; }

/* ---------------- footer ---------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(14px, 4vw, 40px);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer b { color: var(--brand-2); }
.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: var(--brand-2); }

/* ---------------- modal ---------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 5, 9, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, #12141d, #0a0c12);
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 12px;
  inset-inline-start: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.modal h3 { font-size: 1.15rem; margin-bottom: 18px; }
.auth-tabs { margin-bottom: 18px; }
.modal form { display: grid; gap: 14px; }
.modal label { display: grid; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.modal-foot { font-size: 0.76rem; margin: 14px 0 0; text-align: center; }

/* ---------------- toast ---------------- */

.toast {
  position: fixed;
  z-index: 120;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #10131c;
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(520px, calc(100vw - 32px));
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: var(--brand-line); }
.toast.bad { border-color: rgba(255, 90, 90, 0.5); color: #ffc0c0; }

/* ---------------- dashboard ---------------- */

.dash { padding-top: 30px; display: grid; gap: 18px; }
.dash-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--brand-soft), rgba(255, 255, 255, 0.02));
}
.dash-head h2 { margin: 0; font-size: 1.25rem; }
.dash-head p { margin: 2px 0 0; font-size: 0.84rem; }
.dash-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}
.status-pill.active { border-color: var(--brand-line); background: var(--brand-soft); color: #fff; }
.status-pill.off { border-color: rgba(255, 90, 90, 0.35); color: #ffb3b3; }

.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { display: grid; gap: 14px; align-content: start; }
.panel h3 {
  font-size: 0.98rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.panel .hint { font-size: 0.78rem; color: var(--muted); margin: 0; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 0.8rem; color: var(--muted); }
.inline { display: flex; gap: 8px; align-items: center; }
.inline input { flex: 1; }

.id-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px dashed var(--line-strong);
  font-size: 0.8rem;
  min-height: 38px;
}
.id-line code { background: transparent; padding: 0; color: var(--brand-2); }

.switch { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; color: #c3cbdc; }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); }

.dash-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.saved-note { font-size: 0.78rem; color: var(--muted); }

/* ---------------- admin ---------------- */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
th, td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.log-line {
  font-size: 0.76rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.log-line.error { border-color: rgba(255, 90, 90, 0.35); }
.log-line.sent { border-color: var(--brand-line); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}
.stat b { display: block; font-size: 1.4rem; color: var(--brand-2); }
.stat span { font-size: 0.74rem; color: var(--muted); }

.demo-banner {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px dashed var(--brand-line);
  background: var(--brand-soft);
  font-size: 0.82rem;
  color: #dfe6f4;
}

/* ---------------- responsive ---------------- */

@media (max-width: 980px) {
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-wrap { grid-template-columns: minmax(0, 1fr); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .platform-tabs { order: 3; width: 100%; margin: 0; justify-content: space-between; overflow-x: auto; }
  .ptab { padding: 6px 10px; font-size: 0.78rem; }
  .top-actions { margin-inline-start: auto; }
  .top-actions .btn { padding: 8px 14px; font-size: 0.84rem; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.four, .pricing-grid, .grid.two { grid-template-columns: minmax(0, 1fr); }
  .tool-row { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
