/* Tercel Sales CRM — waybill-inspired, quiet UI with one loud element: the route tracker. */
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("fonts/plex-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("fonts/plex-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("fonts/plex-arabic-500.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("fonts/plex-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("fonts/plex-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("fonts/plex-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF; }
:root {
  --ink: #14213d;
  --ink-2: #1d3557;
  --paper: #f3f5f7;
  --surface: #ffffff;
  --line: #dbe1e7;
  --muted: #5a6a7b;
  --tape: #ffc93c;
  --tape-soft: #fff4d1;
  --go: #12775f;
  --go-soft: #e2f3ee;
  --stop: #b8352a;
  --stop-soft: #fbe9e7;
  --info-soft: #e7eef8;
  --r: 6px;
  --font: "Plex Arabic", "Segoe UI", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.6 var(--font); color: var(--ink); background: var(--paper); }
a { color: var(--ink-2); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.1rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 500; color: var(--muted); }
small, .muted { color: var(--muted); }
[dir="ltr"], .ltr { direction: ltr; unicode-bidi: embed; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }

/* ---------- shell ---------- */
.side { position: fixed; inset: 0 0 0 auto; width: 220px; background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 18px 12px; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; margin: 0 6px 24px; }
.brand small { color: #9fb0c4; font-weight: 400; font-size: .8rem; margin-inline-start: auto; }
.tape { width: 26px; height: 10px; background: var(--tape); transform: rotate(-8deg); border-radius: 1px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); color: #c8d3df; text-decoration: none; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a.on { background: var(--ink-2); color: #fff; box-shadow: inset -3px 0 0 var(--tape); }
.side svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.count { margin-inline-start: auto; background: var(--stop); color: #fff; font-size: .75rem; border-radius: 10px; padding: 0 7px; }
.me { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 12px 6px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.me a { color: #fff; text-decoration: none; display: flex; flex-direction: column; font-weight: 500; }
.me small { color: #9fb0c4; font-weight: 400; }
.me .link { color: #c8d3df; }
.main { margin-right: 220px; padding: 24px 28px 64px; max-width: 1280px; }

@media (max-width: 860px) {
  .side { inset: auto 0 0 0; width: auto; height: 62px; flex-direction: row; padding: 0 4px; }
  .brand, .me { display: none; }
  .side nav { flex-direction: row; width: 100%; justify-content: space-around; overflow-x: auto; }
  .side nav a { flex-direction: column; gap: 2px; font-size: .7rem; padding: 8px 4px; position: relative; }
  .side nav a.on { box-shadow: inset 0 -3px 0 var(--tape); }
  .side nav a span { white-space: nowrap; }
  .count { position: absolute; top: 2px; left: 2px; }
  .main { margin: 0; padding: 16px 16px 90px; }
}

/* ---------- page header ---------- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.head p { margin: 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r); font: 500 .92rem var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #b8c3ce; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--ink-2); }
.btn.go { background: var(--go); border-color: var(--go); color: #fff; }
.btn.danger { color: var(--stop); }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: .85rem; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
input, select, textarea { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: 15px var(--font); color: var(--ink); }
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(29,53,87,.15); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; padding: 0; accent-color: var(--ink-2); }
label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 500; }
label.inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 0; display: grid; gap: 12px; }
legend { padding: 0 6px; font-weight: 700; }
.form-grid { display: grid; gap: 14px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 14px; }
.filters label { flex: 1 1 150px; }
.filters .grow { flex: 3 1 240px; }

/* ---------- alerts ---------- */
.alert { padding: 10px 14px; border-radius: var(--r); margin-bottom: 14px; border: 1px solid; }
.alert.ok { background: var(--go-soft); border-color: #a9d8ca; }
.alert.bad { background: var(--stop-soft); border-color: #eab8b2; }
.alert.warn { background: var(--tape-soft); border-color: #f0d68a; }
.alert.info { background: var(--info-soft); border-color: #c4d3e8; }
.alert ul { margin: 4px 0 0; padding-inline-start: 18px; }

/* ---------- panels and tables ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.panel > h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .8rem; font-weight: 500; color: var(--muted); background: #f8fafb; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: left; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #fafbfc; }
.row-link { color: var(--ink); font-weight: 500; text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty h1 { color: var(--ink); }

/* ---------- chips ---------- */
.chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .78rem; background: #eef1f4; color: var(--ink); white-space: nowrap; border: 1px solid transparent; }
.chip.stage-new { background: #eef1f4; }
.chip.stage-contacted, .chip.stage-interested { background: var(--info-soft); }
.chip.stage-offer { background: var(--tape-soft); }
.chip.stage-contract, .chip.stage-account, .chip.stage-first_pickup, .chip.stage-active { background: var(--go-soft); color: #0b5443; }
.chip.stage-lost { background: var(--stop-soft); color: #8a271f; }
.chip.stage-nurture { background: #f1ecf8; color: #4e3a74; }
.due-over { color: var(--stop); font-weight: 700; }
.due-today { color: #8a6100; font-weight: 700; }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; border-radius: 4px; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.score.hi { background: var(--go-soft); color: #0b5443; }
.score.mid { background: var(--tape-soft); color: #7a5600; }
.score.lo { background: #eef1f4; color: var(--muted); }
.flag { color: var(--stop); font-size: .8rem; }

/* ---------- KPI strip ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 16px; }
.kpi { background: var(--surface); padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); }
.kpi.money b { font-size: 1.2rem; padding-top: .3rem; }
.kpi b { display: block; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: .85rem; }
.kpi.alarm b { color: var(--stop); }

/* ---------- bars (reports) ---------- */
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 150px 1fr 96px; gap: 10px; align-items: center; font-size: .88rem; }
.bar .track { height: 14px; background: #eef1f4; border-radius: 3px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--ink-2); min-width: 2px; }
.bar .fill.go { background: var(--go); }
.bar .fill.stop { background: var(--stop); }
.bar .fill.tape { background: var(--tape); }
.bar .v { white-space: nowrap; text-align: left; font-variant-numeric: tabular-nums; }
.funnel .bar .track { height: 22px; }
.funnel .drop { grid-column: 2 / 4; font-size: .76rem; color: var(--muted); margin-top: -6px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } .bar { grid-template-columns: 110px 1fr 86px; } }

/* ---------- the route tracker (memorable element) ---------- */
.route { display: grid; grid-template-columns: repeat(8, 1fr); margin: 6px 0 4px; position: relative; }
.route::before { content: ""; position: absolute; top: 11px; right: 6%; left: 6%; height: 3px; background: var(--line); }
.route .stop { position: relative; text-align: center; font-size: .74rem; color: var(--muted); padding-top: 28px; }
.route .stop::before { content: ""; position: absolute; top: 4px; right: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); z-index: 1; }
.route .stop.done { color: var(--ink); }
.route .stop.done::before { background: var(--ink-2); border-color: var(--ink-2); }
.route .stop.now { color: var(--ink); font-weight: 700; }
.route .stop.now::before { background: var(--tape); border-color: var(--ink); width: 24px; height: 24px; top: 1px; right: calc(50% - 12px); }
.route.off .stop.now::before { background: var(--stop); }
.route .seg { position: absolute; top: 11px; height: 3px; background: var(--ink-2); right: 6%; }
@media (max-width: 700px) { .route .stop span { display: none; } .route .stop.now span { display: block; position: absolute; top: 30px; width: 120px; right: calc(50% - 60px); } .route { margin-bottom: 26px; } }

/* ---------- merchant page ---------- */
.merchant-top { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.merchant-top h1 { margin: 0; }
.meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 18px; margin: 0; }
.meta div { display: flex; flex-direction: column; }
.meta dt { font-size: .78rem; color: var(--muted); }
.meta dd { margin: 0; font-weight: 500; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
@media (max-width: 1050px) { .layout-2 { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 22px 16px 0; border-right: 2px solid var(--line); margin-right: 6px; }
.timeline li::before { content: ""; position: absolute; right: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink-2); }
.timeline li.system::before { border-color: var(--muted); background: var(--paper); }
.timeline li.whatsapp::before { border-color: var(--go); }
.timeline .when { font-size: .78rem; color: var(--muted); }
.timeline .what { font-weight: 500; }
.timeline p { margin: 2px 0 0; white-space: pre-wrap; }
.sticky { position: sticky; top: 16px; }
.tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.tabs label { flex: 1; }
.tabs label { position: relative; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; padding: 0; inset: 0; }
.tabs span { display: block; text-align: center; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-weight: 500; }
.tabs input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs input:focus-visible + span { outline: 3px solid var(--tape); }
.wa-list { display: grid; gap: 6px; }

/* ---------- pipeline board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.col { background: #e9edf1; border-radius: var(--r); padding: 8px; min-height: 300px; }
.col h2 { font-size: .9rem; display: flex; justify-content: space-between; padding: 4px 4px 8px; margin: 0; }
.col.drop-over { outline: 2px dashed var(--ink-2); }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; margin-bottom: 6px; text-decoration: none; color: var(--ink); cursor: grab; }
.card b { display: block; font-weight: 500; }
.card small { display: flex; justify-content: space-between; gap: 6px; }
.card.dragging { opacity: .5; }

/* ---------- auth ---------- */
body.auth { display: grid; place-items: center; min-height: 100vh; padding: 16px; background: var(--ink); }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 10px; padding: 28px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { display: flex; align-items: center; gap: 10px; }
.checks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 2px; }
.checks .ok { color: var(--go); } .checks .bad { color: var(--stop); }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.pager a, .pager span { padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; }
.pager span { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .side, .actions, .filters, form { display: none !important; } .main { margin: 0; } }

@media (max-width: 700px) {
  .merchant-top { grid-template-columns: 1fr; }
  .merchant-top .actions .btn { flex: 1 1 auto; }
  .head .actions, .head form.actions { width: 100%; }
  .layout-2 > * { min-width: 0; }
}
@media (max-width: 1050px) { .layout-2 > aside { order: -1; } .sticky { position: static; } }

/* ---------- v2 ---------- */
.side-extra { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
.side-extra a { color: #c8d3df; text-decoration: none; padding: 6px 10px; border-radius: var(--r); font-size: .88rem; display: flex; gap: 6px; align-items: center; }
.side-extra a:hover, .side-extra a.on { background: rgba(255,255,255,.06); color: #fff; }
.side-extra .count { margin-inline-start: auto; }
.bell { position: fixed; top: 12px; left: 16px; z-index: 6; background: var(--stop); color: #fff; text-decoration: none; border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 700; display: none; }
@media (max-width: 860px) { .side-extra { display: none; } .bell { display: inline-block; } }
.inline-form { display: inline; }
.inline-form .link { font-size: .85rem; }
.hint code, .code { font-size: .8rem; background: #f1f4f6; padding: 1px 5px; border-radius: 3px; word-break: break-all; }
pre.code { display: block; padding: 10px; white-space: pre-wrap; text-align: left; }
.report-text { font: 15px/1.9 var(--font); white-space: pre-wrap; background: #f8fafb; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 0 0 12px; }
tr.unread td { background: #fffbea; }
tr.top td { background: var(--tape-soft); }
.meter { height: 8px; background: #eef1f4; border-radius: 4px; overflow: hidden; width: 120px; margin-bottom: 2px; }
.meter span { display: block; height: 100%; background: var(--go); }
.notes { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.notes li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.notes li:last-child { border-bottom: 0; }
.notes li.unread { background: #fffbea; font-weight: 500; }
.notes a { color: var(--ink); text-decoration: none; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.checklist li { display: flex; align-items: center; gap: 8px; }
.checklist li.done span { color: var(--muted); text-decoration: line-through; }
.checklist small { margin-inline-start: auto; }
.tick { width: 24px; height: 24px; border: 2px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-weight: 700; color: #fff; line-height: 1; padding: 0; }
.tick[aria-pressed="true"] { background: var(--go); border-color: var(--go); }
.docs { padding-inline-start: 18px; margin: 4px 0 10px; }
.portal-box { margin-top: 14px; padding: 12px; background: var(--info-soft); border-radius: var(--r); }
.portal-box p { margin: 0 0 6px; }
.chat { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.chat li { max-width: 80%; padding: 7px 11px; border-radius: 10px; }
.chat li p { margin: 0; white-space: pre-wrap; }
.chat li small { display: block; font-size: .72rem; }
.chat li.in { align-self: flex-start; background: #f1f4f6; }
.chat li.out { align-self: flex-end; background: var(--go-soft); }
.answers { padding-inline-start: 20px; margin: 0 0 8px; }
.answers li { margin-bottom: 8px; }
.answers p { margin: 0; }
.tpl-suggest { background: var(--go-soft); border-radius: var(--r); padding: 8px 10px; }
.ai-box { background: #f4f1fb; border-radius: var(--r); padding: 8px 10px; margin-bottom: 12px; }
.ai-box summary { cursor: pointer; font-weight: 500; color: #4e3a74; }
.ai-box textarea { margin: 8px 0; }
.review { color: #7a5600; font-size: .85rem; }
.review-form summary { cursor: pointer; font-size: .8rem; color: var(--muted); }
.qr { display: flex; justify-content: center; margin: 10px 0; }
.lead-total { font-size: 1.1rem; margin: 12px 0; }
details > summary { cursor: pointer; }

/* public pages (merchant portal, quote link) */
body.public { background: var(--paper); }
.public-head { background: var(--ink); color: #fff; padding: 14px 20px; display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.public-main { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
@media print { .public-head, form { display: none !important; } .panel { border: 0; } }
@media (max-width: 700px) {
  .route .stop:nth-child(-n+2).now span { right: 0; text-align: right; }
  .route .stop:nth-last-child(-n+2).now span { right: auto; left: 0; text-align: left; }
}
@media (max-width: 520px) {
  .quote-doc th, .quote-doc td { padding: 7px 6px; font-size: .84rem; }
  .quote-doc .table-wrap { overflow-x: visible; }
}

/* ---------- v3: setup, billing, platform ---------- */
.setup-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.setup-bar span { display: block; height: 100%; background: var(--go); }
.setup-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; counter-reset: st; }
.setup-steps li { counter-increment: st; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.setup-steps li::before { content: counter(st); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; }
.setup-steps li.done::before { content: "✓"; background: var(--go); }
.setup-steps li > div { flex: 1; display: flex; flex-direction: column; }
.setup-steps li form { margin: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.plan-card.current { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--tape); }
.plan-card .price { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-card .price small { font-size: .85rem; font-weight: 400; }
.plan-card ul { margin: 0; padding-inline-start: 18px; font-size: .9rem; }
.plan-card form { margin-top: auto; }
.sa-bar { position: sticky; top: 0; z-index: 4; }
.auth-foot { margin: 16px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.powered { text-align: center; font-size: .8rem; color: var(--muted); padding: 18px 0 8px; }
.powered b { color: var(--ink); }
.sa-side { background: #0b1326; }
.chip.st-trial { background: var(--tape-soft); color: #7a5600; }
.chip.st-active { background: var(--go-soft); color: #0b5443; }
.chip.st-suspended, .chip.st-cancelled { background: var(--stop-soft); color: #8a271f; }
.danger-zone { border-color: #eab8b2; }

/* v3.1: market benchmark, receipts, post-call prompt */
td.good { color: var(--go); font-weight: 700; }
td.bad { color: var(--stop); font-weight: 700; }
.bench td { vertical-align: top; }
.guarantee { margin-top: 16px; border-inline-start: 4px solid var(--tape); }
.small { font-size: .85rem; }
form.inline { display: inline; }
.call-back { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin-inline: auto; background: var(--ink); color: #fff; border-radius: var(--r); padding: 14px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.25); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.call-back b { flex: 1 1 200px; }
.call-back .btn { background: var(--tape); color: var(--ink); border-color: var(--tape); }
.call-back .link { color: #cfd8e3; }
.log-flash { outline: 3px solid var(--tape); outline-offset: 4px; transition: outline-color 1.5s; }
@media (max-width: 640px) {
  .bench thead { display: none; }
  .bench tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; padding: 12px; border-bottom: 1px solid var(--line); }
  .bench td { border: 0; padding: 0; }
  .bench td:first-child, .bench td.verdict { grid-column: 1 / -1; }
  .bench td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--muted); direction: rtl; }
  .bench td.num { text-align: start; }
}
