/* ============================================================
   ДРУЖИНА — SOC Platform landing
   Стиль: «продукт как интерфейс»
   Тёмная тема по умолчанию · #0A0E14 → #0D1117
   Акценты: cyber-cyan #00D9FF (защита), red (угрозы),
            green #00E599 (актив/OK), amber #FFB020 (алерт)
   ============================================================ */

:root {
  --bg: #0A0E14;
  --bg-2: #0D1117;
  --bg-3: #11161F;
  --panel: rgba(17, 22, 31, 0.72);
  --panel-solid: #0F141D;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #E8EEF6;
  --text-2: #A6B1C2;
  --text-3: #8594AC;

  --cyan: #00D9FF;
  --green: #00E599;
  --red: #FF3B4E;
  --amber: #FFB020;

  --font-head: 'Unbounded', 'Inter Tight', system-ui, sans-serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 64px;

  --grid-line: rgba(0, 217, 255, 0.04);
}

[data-theme="light"] {
  --bg: #F4F6F9;
  --bg-2: #FFFFFF;
  --bg-3: #E9EDF2;
  --panel: rgba(255, 255, 255, 0.85);
  --panel-solid: #FFFFFF;
  --line: rgba(15, 25, 40, 0.10);
  --line-strong: rgba(15, 25, 40, 0.20);
  --text: #0F1B2D;
  --text-2: #3A495C;
  --text-3: #5B6B80;
  --grid-line: rgba(0, 110, 150, 0.05);
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* --- Утилиты --- */
.mono { font-family: var(--font-mono); }
a { color: inherit; text-decoration: none; }
code {
  font-family: var(--font-mono);
  font-size: .85em;
  color: var(--cyan);
  background: rgba(0,217,255,.08);
  padding: .1em .35em;
  border-radius: 4px;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  max-width: 24ch;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-no { color: var(--text-3); }
.sub { color: var(--text-2); max-width: 60ch; margin-bottom: 40px; }

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cyan);
  color: #04121a;
}
.btn-primary:hover { background: #3be2ff; box-shadow: 0 0 24px rgba(0,217,255,.35); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* --- Хедер --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.brand-mark {
  width: 14px; height: 14px;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  box-shadow: 0 0 12px rgba(0,217,255,.6);
}
.brand-tag { font-family: var(--font-mono); font-size: .7rem; color: var(--text-3); letter-spacing: .1em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--text-2); font-size: .92rem; transition: color .15s ease; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all .15s ease;
}
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); }
[data-theme="light"] .theme-icon::before { content: '☀'; }
[data-theme="dark"] .theme-icon::before { content: '☾'; }

/* ============================================================
   00 / HERO
   ============================================================ */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  max-width: 15ch;
}
.lead { color: var(--text-2); font-size: 1.1rem; max-width: 46ch; margin-bottom: 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.cta-row.center { justify-content: center; }
.hero-points { list-style: none; }
.hero-points li { display: flex; gap: 10px; color: var(--text-2); margin-bottom: 8px; font-size: .95rem; }
.ok { color: var(--green); font-weight: 700; }

/* --- Окно дашборда --- */
.dashboard-window {
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow: 0 24px 70px rgba(0,0,0,.5), 0 0 40px rgba(0,217,255,.06);
  overflow: hidden;
}
.win-top {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #141A24, #0F141D);
  border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: var(--red); }
.dot.y { background: var(--amber); }
.dot.g { background: var(--green); }
.win-title {
  font-family: var(--font-mono); font-size: .78rem; color: var(--text-2);
  margin-left: 8px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win-status { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; color: var(--text-3); text-transform: uppercase; }
.win-status.ok { color: var(--green); }

.dash-body { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.dash-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.stat-value { font-family: var(--font-mono); font-weight: 700; font-size: 1.55rem; color: var(--text); line-height: 1.1; }
.stat-value em { font-size: .55em; font-style: normal; color: var(--text-3); }
.stat-value.good { color: var(--green); }
.stat-value.danger { color: var(--red); }
.stat-value.warn { color: var(--amber); }
.stat-unit { font-family: var(--font-mono); font-size: .68rem; color: var(--text-3); }
.spark { width: 100%; height: 26px; margin-top: 4px; }
.spark polyline { stroke: var(--cyan); stroke-width: 2; fill: none; }

.dash-chart { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-sm); padding: 14px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: .85rem; color: var(--text-2); }
.badge-alert {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em;
  color: var(--amber); background: rgba(255,176,32,.1);
  border: 1px solid rgba(255,176,32,.3);
  padding: 3px 8px; border-radius: 4px;
}
.chart { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.bar {
  flex: 1; height: var(--h); background: var(--cyan);
  opacity: .5; border-radius: 2px 2px 0 0;
  animation: breathe 2.4s ease-in-out infinite;
}
.bar.danger { background: var(--red); opacity: .85; }
@keyframes breathe { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.82); } }

.dash-stream { list-style: none; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-sm); overflow: hidden; }
.dash-stream li {
  font-family: var(--font-mono); font-size: .78rem;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 10px; align-items: center;
  color: var(--text-2);
  animation: slideIn .3s ease;
  white-space: nowrap;
}
.dash-stream li > span { white-space: nowrap; }
.dash-stream li:last-child { border-bottom: none; }
.dash-stream .ts { color: var(--text-3); }
.dash-stream .ip { color: var(--text); }
.dash-stream .st-ok { color: var(--green); margin-left: auto; }
.dash-stream .st-block { color: var(--red); margin-left: auto; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   01 / LIVE-АТАКА
   ============================================================ */
.section.live { background: linear-gradient(180deg, transparent, var(--bg-2)); }
.live-console {
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  overflow: hidden;
}
.attack-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.attack-stats > div { padding: 14px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.attack-stats > div:last-child { border-right: none; }
.attack-stats span { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.attack-stats strong { font-family: var(--font-mono); font-size: 1.5rem; }
.attack-stats strong.danger { color: var(--red); }
.attack-stats strong.good { color: var(--green); }
.attack-stats strong.warn { color: var(--amber); }

.stream { min-height: 300px; max-height: 420px; overflow: hidden; padding: 12px 0; display: flex; flex-direction: column; }
.stream-line {
  font-family: var(--font-mono); font-size: .8rem;
  display: flex; gap: 12px; align-items: center;
  padding: 5px 20px;
  color: var(--text-2);
  animation: slideIn .3s ease;
  white-space: nowrap;
}
.stream-line .t { color: var(--text-3); flex-shrink: 0; }
.stream-line .m { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.stream-line .code { margin-left: auto; flex-shrink: 0; font-weight: 700; }
.stream-line.block { border-left: 2px solid var(--red); background: linear-gradient(90deg, rgba(255,59,78,.07), transparent); }
.stream-line.block .m { color: var(--red); }
.stream-line.block .code { color: var(--red); }
.stream-line.pass .code { color: var(--green); }
.stream-line.susp { border-left: 2px solid var(--amber); }
.stream-line.susp .m { color: var(--amber); }

.live-footer {
  display: flex; gap: 24px; align-items: center;
  padding: 12px 20px; border-top: 1px solid var(--line);
  font-size: .72rem; color: var(--text-3); background: #0B0F16;
}

/* ============================================================
   02 / ВОЗМОЖНОСТИ
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.card-no { font-weight: 700; color: var(--cyan); letter-spacing: .1em; }
.card-tag { font-family: var(--font-mono); font-size: .66rem; color: var(--text-3); }
.card h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.card p { color: var(--text-2); font-size: .95rem; }
.mini-console {
  background: #0B0F16;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .76rem;
  display: flex; flex-direction: column; gap: 6px;
  margin-top: auto;
}
.mline { color: var(--text-2); }
.mline.danger { color: var(--red); }
.mline.good { color: var(--green); }
.mline.warn { color: var(--amber); }

/* ============================================================
   03 / МЕТРИКИ
   ============================================================ */
.section.metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.metric { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.metric-value { font-family: var(--font-mono); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--cyan); }
.metric-value.good { color: var(--green); }
.metric-label { color: var(--text-2); font-size: .95rem; }

/* ============================================================
   04 / ДЕМО-ДАШБОРДЫ
   ============================================================ */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  font-family: var(--font-mono); font-size: .85rem;
  padding: 10px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-2); cursor: pointer;
  transition: all .15s ease;
}
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab.active { color: var(--cyan); border-color: var(--cyan); background: rgba(0,217,255,.06); }

.tab-views { position: relative; }
.tab-view { display: none; }
.tab-view.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.demo-window {
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
}
.demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.demo-title { font-family: var(--font-mono); font-size: .85rem; color: var(--text-2); }
.chart-lg { height: 220px; position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.area { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,217,255,0.25), rgba(0,217,255,0) 70%);
}
.area-fill { position: absolute; inset: 0;
  clip-path: polygon(0 75%, 6% 70%, 12% 72%, 20% 60%, 28% 65%, 36% 40%, 44% 50%, 52% 30%, 60% 38%, 70% 22%, 80% 28%, 90% 15%, 100% 20%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(0,217,255,.35), rgba(0,217,255,.05));
}
.grid-h { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 44px); }
.demo-legend { display: flex; gap: 20px; margin-top: 14px; font-family: var(--font-mono); font-size: .78rem; color: var(--text-2); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.sw.good { background: var(--green); }
.sw.danger { background: var(--red); }

.alert-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.alert-table th { text-align: left; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.alert-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.alert-table tr:last-child td { border-bottom: none; }
.lv { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.lv.high { color: var(--red); background: rgba(255,59,78,.12); }
.lv.med { color: var(--amber); background: rgba(255,176,32,.12); }

.incident-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.inc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.inc-ip { color: var(--text-2); font-size: .85rem; margin-bottom: 18px; }
.inc-steps { display: flex; flex-direction: column; gap: 4px; }
.step {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text-2); font-size: .9rem;
}
.step .mono { color: var(--text-3); }
.step.done { border-color: var(--line); }
.step.done .mono { color: var(--green); }
.step.active { border-color: var(--cyan); color: var(--text); background: rgba(0,217,255,.05); }
.step.active .mono { color: var(--cyan); }

/* ============================================================
   05 / СТЕК
   ============================================================ */
.stack-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.stack-chip {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all .15s ease;
}
.stack-chip:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.stack-chip .mono { font-size: .95rem; }

/* ============================================================
   06 / CTA + FOOTER
   ============================================================ */
.section.cta { text-align: center; padding-bottom: 80px; }
.section.cta .eyebrow { justify-content: center; }
.section.cta h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.section.cta .sub { margin-left: auto; margin-right: auto; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--text-3); }

/* ============================================================
   REVEAL-анимации
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Адаптивность --- */
@media (max-width: 900px) {
  .hero-grid, .cards { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-cols { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .attack-stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 0 72px; }
}

/* ===== Чат-виджет (ловушка) ===== */
.chat-launcher {
  position: fixed; right: 18px; bottom: 18px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent, #2f7dff); color: #fff; font-size: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: opacity .2s;
}
.chat-launcher.hidden { opacity: 0; pointer-events: none; }
.chat-widget {
  position: fixed; right: 18px; bottom: 18px; z-index: 999;
  width: 320px; max-height: 420px; display: flex; flex-direction: column;
  background: var(--card-bg, #fff); color: var(--text, #111);
  border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.3);
  overflow: hidden; transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: transform .2s, opacity .2s;
}
.chat-widget.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--accent, #2f7dff); color: #fff; font-weight: 600;
}
.chat-close { cursor: pointer; font-size: 20px; line-height: 1; }
.chat-body { display: flex; flex-direction: column; height: 300px; }
.chat-log { flex: 1; overflow-y: auto; padding: 10px; list-style: none; margin: 0; font-size: 13px; }
.chat-log li { margin-bottom: 6px; word-break: break-word; }
.chat-ts { color: #888; margin-right: 6px; }
.chat-who { font-weight: 600; margin-right: 6px; }
.chat-form { display: flex; border-top: 1px solid rgba(0,0,0,.12); }
.chat-form input {
  flex: 1; border: none; outline: none; padding: 10px 12px; font-size: 14px;
  background: transparent; color: inherit;
}
.chat-send { border: none; background: var(--accent, #2f7dff); color: #fff; padding: 0 16px; cursor: pointer; font-size: 15px; }
[data-theme="dark"] .chat-widget { --card-bg: #1f2430; --text: #e6e9ef; --accent: #4c9aff; }
[data-theme="dark"] .chat-form { border-top-color: rgba(255,255,255,.15); }
[data-theme="dark"] .chat-ts { color: #9aa0ac; }

/* ===== Капча чата ===== */
.chat-captcha {
  padding: 8px 10px; margin: 6px 0; border: 1px solid rgba(0,0,0,.15); border-radius: 8px;
  background: rgba(0,0,0,.03); font-size: 13px;
}
.chat-captcha-q { margin-bottom: 6px; font-weight: 600; }
.chat-captcha-input {
  width: 100%; box-sizing: border-box; padding: 6px 8px; margin-bottom: 6px;
  border: 1px solid rgba(0,0,0,.2); border-radius: 6px; font-size: 13px;
  background: transparent; color: inherit;
}
.chat-captcha-row { display: flex; gap: 6px; }
.chat-captcha-row button {
  flex: 1; padding: 6px 0; border: none; border-radius: 6px; cursor: pointer; font-size: 13px;
  background: var(--accent, #2f7dff); color: #fff;
}
.chat-captcha-cancel { background: #9aa0ac !important; }
[data-theme="dark"] .chat-captcha { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); }
[data-theme="dark"] .chat-captcha-input { border-color: rgba(255,255,255,.3); }