/* ============================================================
   WoAgency — design system (light theme, tech palette)
   ============================================================ */
:root {
  --bg: #F6F8FC;
  --bg-soft: #EEF3FA;
  --card: #FFFFFF;
  --line: #E3E9F2;
  --line-strong: #CBD5E4;
  --ink: #0B1526;
  --ink-2: #46556E;
  --ink-3: #5D6B81;                      /* was #64748B — 4.27:1 on --bg-soft, under AA; now 4.85 */
  --primary: #2563EB;
  --primary-2: #1D4ED8;
  --cyan: #06B6D4;
  --violet: #7C3AED;
  --ok: #047857;                         /* badge text was 3.34:1 on --ok-bg; now 4.86 */
  --ok-bg: #DEF7EC;
  --warn: #92400E;                       /* badge text was 4.51:1 on --warn-bg; now 6.37 */
  --warn-bg: #FEF3C7;
  --bad: #B91C1C;                        /* badge text was 3.95:1 on --bad-bg; now 5.30 */
  --bad-bg: #FEE2E2;
  --grad: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);   /* decoration only — the cyan end is 2.44:1 */
  --grad-ink: linear-gradient(135deg, #2563EB 0%, #0E7490 100%); /* safe behind white text */
  --grad-soft: linear-gradient(135deg, rgba(37,99,235,.09), rgba(6,182,212,.09));
  --shadow: 0 1px 2px rgba(11,21,38,.05), 0 8px 24px -12px rgba(11,21,38,.12);
  --shadow-lg: 0 24px 60px -24px rgba(11,21,38,.25);
  --r: 14px;
  --r-sm: 10px;
  font-size: 16px;
}
* { box-sizing: border-box; }
/* Any rule with an explicit `display` beats the UA stylesheet's [hidden]{display:none},
   which is how the cookie bar stayed on screen after it was dismissed. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
h1 { line-height: var(--lh-head); }
h2 { line-height: var(--lh-title); }
h3 { line-height: var(--lh-title); }
h1, h2, h3 { margin: 0 0 .4rem; }
h1 { font-size: var(--t-28); font-weight: 800; }
h2 { font-size: var(--t-20); font-weight: 700; }
h3 { font-size: var(--t-xl); font-weight: 700; }   /* 18px: 1.2x body. Was 16px = 1.09x, which reads as no hierarchy. */
p { margin: .3rem 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .85em; background: var(--bg-soft); padding: .15em .45em; border-radius: var(--r-2xs); }
code.mini { font-size: var(--t-xs); }
.muted { color: var(--ink-3); }
small { color: var(--ink-3); }
.ic { vertical-align: -0.22em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.grad { background: none; color: var(--primary); -webkit-text-fill-color: currentColor; }

/* ---------------- logo ---------------- */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.logo b { font-size: calc(var(--lh, 28px) * .72); font-weight: 800; }
.logo .logo-thin { font-weight: 500; color: var(--ink-2); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-pill); cursor: pointer;
  font: 600 .92rem/1 "Inter", sans-serif; padding: 11px 20px;
  transition: all .18s ease; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--grad-ink); color: #fff; box-shadow: var(--e-brand); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-outline { background: var(--card); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-white { background: #fff; color: var(--primary-2); }
.btn-white:hover { transform: translateY(-1px); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-danger { background: #fff; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { padding: 7px 14px; font-size: var(--t-sm); }
.btn-lg { padding: 14px 26px; font-size: var(--t-lg); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-pair { display: inline-flex; gap: 8px; }
.btn-pair form { display: inline; }

/* ---------------- cards / layout bits ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow);
}
.card-title { font-weight: 700; margin-bottom: 14px; font-size: var(--t-lg); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 14px 0; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 14px 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 14px 0; }
.col-stack { display: grid; gap: 18px; }
.empty { color: var(--ink-3); text-align: center; padding: 26px 10px; font-size: var(--t-body); }
.empty.big { padding: 60px 10px; font-size: var(--t-lg); font-weight: 600; color: var(--ink-2); }
.empty.big small { font-weight: 400; }

/* ---------------- flashes ---------------- */
.flashes { margin-bottom: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); font-size: var(--t-md); font-weight: 500; border: 1px solid; }
.flash-success { background: var(--ok-bg); color: #065F46; border-color: #A7F3D0; }
.flash-error { background: var(--bad-bg); color: #991B1B; border-color: #FECACA; }

.banner-warn {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--warn-bg); border: 1px solid #FDE68A; color: #78350F;
  border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 16px; font-size: var(--t-md);
}
.banner-warn .ic { color: var(--warn); flex-shrink: 0; }
.banner-warn span { flex: 1; min-width: 220px; }
.banner-warn form { margin: 0; }

/* ---------------- badges ---------------- */
.badge { display: inline-block; padding: 3px 11px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 600; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-off { background: #EDF1F7; color: var(--ink-3); }

/* ============================================================
   PUBLIC SITE
   ============================================================ */
body.site { background: #fff; }
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: var(--t-body); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; }
.site-burger { display: none; }

.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 480px at 85% -10%, rgba(6,182,212,.14), transparent 60%),
  radial-gradient(700px 420px at 8% 8%, rgba(37,99,235,.12), transparent 55%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 84px 24px 90px; }
.pill { display: inline-flex; align-items: center; gap: 7px; background: var(--grad-soft); color: var(--primary-2);
  border: 1px solid rgba(37,99,235,.22); padding: 7px 14px; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 600; margin-bottom: 18px; }
.hero-copy h1 { font-size: var(--t-h1); font-weight: 800; margin-bottom: 14px; }
.hero-copy p { font-size: var(--t-xl); color: var(--ink-2); max-width: 34rem; }
.hero-cta { display: flex; gap: 12px; margin: 26px 0 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; }
.hero-stats b { font-size: var(--t-22); font-weight: 800; display: block; }
.hero-stats small { color: var(--ink-3); }

.hero-visual { position: relative; }
.hero-glow { position: absolute; inset: 10% -6% -4% 6%; background: var(--grad); filter: blur(70px); opacity: .17; border-radius: 40px; z-index: 0; }
.mock { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-head { display: flex; gap: 6px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.mock-dot { width: 10px; height: 10px; border-radius: var(--r-circle); background: var(--line-strong); }
.mock-body { padding: 18px; }
.mock-row { display: flex; gap: 12px; }
.mock-card { flex: 1; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.mock-card small { display: block; font-size: var(--t-xs); }
.mock-card b { font-size: var(--t-xl); }
.mock-chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin: 16px 4px; }
.mock-chart i { flex: 1; background: var(--grad); border-radius: var(--r-2xs) var(--r-2xs) 3px 3px; opacity: .9; animation: rise .8s cubic-bezier(.2,.8,.3,1) backwards; }
@keyframes rise { from { transform: scaleY(0); transform-origin: bottom; } }
.mock-platforms { border-top: 1px solid var(--line); padding-top: 13px; }
.mock-platforms span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }

.section { padding: var(--s) 0; }
.section-alt { background: var(--bg-soft); }        /* the tone change separates; a rule as well doubled up */
.section-alt + .section-alt { padding-top: 0; }
.sec-head { text-align: center; max-width: 34rem; margin: 0 auto 40px; }   /* 95 chars/line -> ~70 */
.sec-head.sec-left { text-align: left; margin: 0 0 24px; }
.sec-head h2 { font-size: var(--t-30); font-weight: 800; }
.sec-head p { color: var(--ink-2); font-size: var(--t-lg); }

.plat-card { text-align: left; }
.plat-logo { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--r); background: var(--bg-soft); margin-bottom: 14px; }
.plat-card p { color: var(--ink-2); font-size: var(--t-body); min-height: 3.4em; }
.ticks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 9px; align-items: flex-start; font-size: var(--t-md); color: var(--ink-2); }
.ticks .ic { color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.fee-note { display: inline-block; background: var(--grad-soft); color: var(--primary-2); font-weight: 600; padding: 4px 12px; border-radius: var(--r-pill); }

.steps .step { position: relative; }
.step-n { position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; border-radius: var(--r-sm); box-shadow: var(--e-brand); }
.step h3 { margin-top: 10px; }
.step p { color: var(--ink-2); font-size: var(--t-body); }

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 14px 0; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan-hot { border-color: rgba(37,99,235,.45); box-shadow: var(--e-brand-lg); }
.plan-flag { position: absolute; top: -12px; right: 18px; background: var(--grad); color: #fff; font-size: var(--t-xs); font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); }
.plan-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.plan-top h3 { margin: 0; }
.plan-price { margin: 4px 0 10px; }
.plan-price b { font-size: var(--t-30); font-weight: 800; }
.plan-price span { color: var(--ink-3); font-size: var(--t-md); }
.plan-blurb { color: var(--ink-2); font-size: var(--t-md); min-height: 4.2em; }
.plan .ticks { flex: 1; }
.plan form { margin-top: auto; }

.pay-card { text-align: left; }
.pay-ic { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 14px; }
.pay-card p { color: var(--ink-2); font-size: var(--t-md); }

.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 18px; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 12px 0; font-size: var(--t-body); list-style: none; position: relative; padding-right: 26px; }
.faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 10px; font-size: var(--t-20); color: var(--primary); font-weight: 500; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--ink-2); font-size: var(--t-md); padding-bottom: 14px; margin: 0; }

.quote-card { align-self: start; position: sticky; top: 96px; }
.stars { color: #F59E0B; letter-spacing: 3px; font-size: var(--t-lg); margin-bottom: 10px; }
blockquote { margin: 0 0 16px; font-size: var(--t-lg); color: var(--ink); font-weight: 500; }
.quote-by { display: flex; align-items: center; gap: 12px; }
.quote-by small { display: block; }
.avatar { width: 40px; height: 40px; border-radius: var(--r-circle); display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; border: none; cursor: pointer; font-size: var(--t-body); }

.cta-band { background: linear-gradient(120deg, #1D4ED8 0%, #2563EB 55%, #0E7490 100%); color: #fff; padding: 58px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: var(--t-28); font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.92); }   /* opacity dimmed the whole subtree */

.site-foot { border-top: 1px solid var(--line); padding: 44px 0; background: #fff; }
.foot-row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-cols { display: flex; gap: 60px; }
.foot-cols b { display: block; margin-bottom: 10px; font-size: var(--t-md); }
.foot-cols a { display: block; color: var(--ink-2); font-size: var(--t-md); margin: 6px 0; }
.legal { padding: 60px 24px; max-width: 46rem; }

.err-page { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 10px; }
.err-page h1 { font-size: var(--t-display); }

/* ============================================================
   AUTH
   ============================================================ */
body.auth { background: #fff; }
.auth-grid { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 100vh; }
.auth-brand { background:
  radial-gradient(700px 420px at 90% 0%, rgba(6,182,212,.22), transparent 55%),
  radial-gradient(600px 500px at 0% 100%, rgba(124,58,237,.16), transparent 55%),
  linear-gradient(160deg, #0E2A5C, #123B82);
  color: #fff; padding: 48px 54px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-brand .logo, .auth-brand .logo b, .auth-brand .logo .logo-thin { color: #fff; }
.auth-quote h2 { font-size: var(--t-28); font-weight: 800; margin-bottom: 20px; max-width: 22rem; }
.auth-quote blockquote { color: rgba(255,255,255,.82); font-weight: 400; max-width: 26rem; }
.quote-by.light small { color: rgba(255,255,255,.6); }
.auth-badges { display: flex; gap: 18px; flex-wrap: wrap; }
.auth-badges span { display: inline-flex; gap: 7px; align-items: center; font-size: var(--t-sm); color: rgba(255,255,255,.75); }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: var(--t-24); margin-bottom: 20px; }
.auth-alt { text-align: center; font-size: var(--t-md); color: var(--ink-2); margin-top: 18px; }
.auth-legal { font-size: var(--t-xs); color: var(--ink-3); text-align: center; margin-top: 14px; }
.demo-creds { margin-top: 20px; background: var(--grad-soft); border: 1px dashed rgba(37,99,235,.4); border-radius: var(--r-sm); padding: 13px 16px; font-size: var(--t-sm); }
.demo-creds b { display: block; margin-bottom: 6px; color: var(--primary-2); }
.demo-creds div { margin: 3px 0; color: var(--ink-2); }

/* ---------------- forms ---------------- */
label { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); margin: 0 0 14px; }
input, select, textarea {
  width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); font: 400 .93rem "Inter", sans-serif; color: var(--ink);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
input[disabled] { background: var(--bg-soft); color: var(--ink-3); }
textarea { resize: vertical; }

/* ============================================================
   PANEL SHELL
   ============================================================ */
body.panel { background: var(--bg); }
.shell { display: flex; min-height: 100vh; }
.side {
  width: 264px; flex-shrink: 0; background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-top { padding: 6px 10px 18px; }
.side-nav { display: grid; gap: 3px; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 600; font-size: var(--t-body); transition: background .14s, color .14s;
}
.side-link:hover { background: var(--bg-soft); color: var(--ink); }
.side-link.on { background: var(--grad-soft); color: var(--primary-2); }
.side-link.on .ic { color: var(--primary); }
.tier-card { margin-top: auto; display: flex; gap: 12px; align-items: center; background: var(--bg-soft); border-radius: var(--r-md); padding: 13px; }
.tier-ring { --p: 0; width: 46px; height: 46px; border-radius: var(--r-circle); display: grid; place-items: center; flex-shrink: 0;
  background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--line) 0); position: relative; }
.tier-ring::before { content: ""; position: absolute; inset: 5px; background: var(--bg-soft); border-radius: var(--r-circle); }
.tier-ring span { position: relative; font-size: var(--t-2xs); font-weight: 700; color: var(--primary-2); }
.tier-info b { font-size: var(--t-sm); display: block; }
.tier-info small { font-size: var(--t-xs); line-height: 1.3; display: block; }
.side-co { display: flex; gap: 11px; align-items: center; border-top: 1px solid var(--line); margin-top: 14px; padding: 14px 6px 4px; }
.side-co-avatar { width: 38px; height: 38px; border-radius: var(--r-sm); background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; }
.side-co-meta b { font-size: var(--t-md); display: block; }
.side-co-meta small { font-size: var(--t-xs); }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
}
.topbar-note { color: var(--ink-2); font-size: var(--t-md); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.iconbtn { position: relative; border: 1px solid var(--line); background: var(--card); width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.iconbtn:hover { border-color: var(--line-strong); color: var(--ink); }
.dot { position: absolute; top: -6px; right: -6px; background: var(--bad); color: #fff; font-size: var(--t-2xs); font-style: normal; font-weight: 700; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--r-pill); display: grid; place-items: center; }
.hamb { display: none; }

.dd { position: relative; }
.dd-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 320px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 8px; display: none; z-index: 60; max-height: 70vh; overflow-y: auto;
}
.dd.open .dd-menu { display: block; }
.dd-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dd-head b { display: block; font-size: var(--t-md); }
.dd-head small { font-size: var(--t-xs); }
.dd-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; font-size: var(--t-md); }
.dd-item:hover { background: var(--bg-soft); color: var(--ink); }
.dd-empty { padding: 22px; text-align: center; color: var(--ink-3); font-size: var(--t-md); }
.notif { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: none; }
.notif b { font-size: var(--t-md); }
.notif p { font-size: var(--t-sm); color: var(--ink-2); margin: 3px 0; }
.notif small { font-size: var(--t-xs); }

.content { padding: 28px; max-width: 1200px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 2px 0 0; }
.head-actions { display: flex; gap: 10px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; gap: 12px; flex-wrap: wrap; }
.sec-row h2 { margin: 0; font-size: var(--t-xl); }

.bal-row .bal small { font-size: var(--t-sm); display: block; margin-bottom: 4px; }
.bal b { font-size: var(--t-26); font-weight: 800; }

.stat { display: flex; gap: 14px; align-items: flex-start; }
.stat-ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--grad-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.stat small { display: block; font-size: var(--t-xs); margin-bottom: 2px; }
.stat b { font-size: var(--t-20); font-weight: 800; }
.stat .hint { display: block; font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; }

/* ---------------- tables ---------------- */
.table-card { padding: 6px 0 2px; overflow-x: auto; }
.tbl-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--t-md); }
.tbl th {
  text-align: left; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #FAFCFF; }
.tbl .r { text-align: right; }
.tbl .pos { color: var(--ok); }
.tbl .neg { color: var(--bad); }
.wrapcell { max-width: 340px; }
.kv { width: 100%; font-size: var(--t-md); border-collapse: collapse; }
.kv th { text-align: left; color: var(--ink-3); font-weight: 500; padding: 7px 14px 7px 0; white-space: nowrap; vertical-align: top; width: 1%; }
.kv td { padding: 7px 0; font-weight: 600; word-break: break-all; }

.copy-btn { border: none; background: transparent; color: var(--ink-3); cursor: pointer; padding: 2px; vertical-align: -2px; }
.copy-btn:hover { color: var(--primary); }
.copy-btn.copied { color: var(--ok); }
.copy-btn.copy-fail { color: var(--bad); }
.icon-link { color: var(--ink-3); padding: 2px; vertical-align: -2px; text-decoration: none; display: inline-flex; }
.icon-link:hover { color: var(--primary); }

/* ---------------- charts ---------------- */
.chart { display: block; }
.ch-lbl { font: 600 11px "Inter", sans-serif; fill: var(--ink-3); }
.ch-val { font: 700 11px "Inter", sans-serif; fill: var(--ink-2); }

/* ---------------- platform tabs ---------------- */
.plat-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.plat-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2); font-weight: 600; font-size: var(--t-md);
}
.plat-tab i { font-style: normal; background: var(--bg-soft); border-radius: var(--r-pill); padding: 1px 8px; font-size: var(--t-xs); }
.plat-tab.on { border-color: var(--primary); color: var(--primary-2); background: var(--grad-soft); }
.plat-head { display: flex; gap: 16px; align-items: center; }

/* ---------------- modals ---------------- */
.modal { position: fixed; inset: 0; background: rgba(11,21,38,.5); backdrop-filter: blur(3px); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal.open { display: grid; }
.modal-box {
  background: var(--card); border-radius: var(--r-lg); width: 100%; max-width: 460px; padding: 30px;
  position: relative; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto;
  animation: pop .22s cubic-bezier(.2,.9,.3,1.2);
}
.modal-wide { max-width: 560px; }
@keyframes pop { from { transform: scale(.94) translateY(8px); opacity: 0; } }
.modal-x { position: sticky; top: 0; float: right; z-index: 3;
  display: grid; place-items: center; width: 40px; height: 40px;   /* 44px touch target */
  margin: -14px -14px 0 0; padding: 0; border: none; border-radius: var(--r-pill); cursor: pointer;
  color: var(--ink-3);
  background: var(--card); box-shadow: var(--mask-card); }   /* opaque: content must not scroll through the glyph */
.modal-x:hover { color: var(--ink); }
.modal-x:hover { color: var(--ink); }
.modal-ic { width: 52px; height: 52px; border-radius: var(--r); background: var(--grad-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 12px; }
.modal-box h2 { font-size: var(--t-20); }
.modal-box > p { margin-bottom: 18px; }

.amount-row { display: flex; gap: 10px; }
.amount-row input { flex: 1; }
.amount-row select { width: 108px; }
.dep-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.method {
  border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 13px 10px; text-align: center;
  cursor: pointer; margin: 0; transition: all .15s; font-weight: 500;
}
.method { position: relative; }
.method input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.method:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.method b { display: block; font-size: var(--t-sm); margin-top: 6px; }
.method small { font-size: var(--t-2xs); }
.method .ic { color: var(--ink-2); }
.method.on { border-color: var(--primary); background: var(--grad-soft); box-shadow: var(--ring-1); }
.method.on .ic, .method.on b { color: var(--primary-2); }
.dep-pane.hidden { display: none; }
.note-box {
  display: flex; gap: 10px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 14px; font-size: var(--t-sm); color: var(--ink-2); margin: 12px 0 16px;
}
.note-box .ic { color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.bank-detail.hidden { display: none; }
.usdt-nets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.net { border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 11px 14px; cursor: pointer; margin: 0; }
.net { position: relative; }
.net input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.net:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.net b { display: block; font-size: var(--t-md); }
.net.on { border-color: var(--primary); background: var(--grad-soft); }
.wallet-addr {
  display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 14px; margin-bottom: 14px; flex-wrap: wrap;
}
.wallet-addr small { width: 100%; font-size: var(--t-xs); }
.wallet-addr code { background: transparent; padding: 0; font-size: var(--t-sm); word-break: break-all; flex: 1; }
.wallet-addr.hidden { display: none; }
.card-mock { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; background: var(--bg-soft); margin-bottom: 4px; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.conv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fee-preview { font-size: var(--t-sm); margin: -6px 0 14px; }

/* ---------------- ads manager ---------------- */
.am-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.am-select { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 6px 8px 6px 16px; margin: 0; }
.am-select select { border: none; margin: 0; width: auto; max-width: 420px; font-weight: 600; background: transparent; }
.am-select select:focus { box-shadow: none; }
.am-tbl th, .am-tbl td { white-space: nowrap; }
.switch { width: 40px; height: 22px; border-radius: var(--r-pill); border: none; background: var(--line-strong); position: relative; cursor: pointer; transition: background .18s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: var(--r-circle); transition: left .18s; box-shadow: var(--e-knob); }
.switch.on { background: var(--ok); }
.switch.on i { left: 21px; }

/* ---------------- affiliate ---------------- */
.aff-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, #fff 55%, rgba(6,182,212,.09)); }
.aff-badge { text-align: center; background: var(--grad); color: #fff; border-radius: var(--r-lg); padding: 22px 30px; font-size: var(--t-32); font-weight: 800; box-shadow: var(--e-brand-lg); }
.aff-badge small { display: block; font-size: var(--t-xs); font-weight: 500; opacity: .85; }

/* ---------------- admin ---------------- */
.co-card { margin-bottom: 18px; }
.co-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.co-stats { display: flex; gap: 20px; font-size: var(--t-sm); color: var(--ink-3); flex-wrap: wrap; }
.co-stats b { color: var(--ink); }
.integ-grid { align-items: stretch; }
.integ-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.price-input { width: 110px; text-align: right; margin: 0; padding: 7px 10px; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }

/* ---------------- landing: news + partners + about ---------------- */
.news-band { background: var(--bg); border-block: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 16px 24px; }
.news-item { display: flex; gap: 12px; align-items: baseline; font-size: var(--t-sm); }
.news-item small { color: var(--primary-2); font-weight: 700; white-space: nowrap; font-size: var(--t-xs); }
.news-item span { color: var(--ink-2); }

.partner-band { padding: 40px 24px 8px; text-align: center; }
.partner-note { color: var(--ink-3); font-size: var(--t-sm); text-transform: uppercase; letter-spacing: var(--tr-caps); font-weight: 600; margin-bottom: 18px; }
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
.partner-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); font-size: var(--t-body); }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-h { font-size: var(--t-30); font-weight: 800; margin: 14px 0; }
.about-p { color: var(--ink-2); font-size: var(--t-lg); margin-bottom: 22px; }
.stats-band { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-big { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow); }
.stat-big b { display: block; font-size: 2.1rem; font-weight: 800; color: var(--ink); }
.stat-big small { color: var(--ink-2); font-size: var(--t-md); }

.sol-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 14px 0; }
.sol-card h3 { font-size: var(--t-body); }
.sol-card p { color: var(--ink-2); font-size: var(--t-sm); }
.sol-card .pay-ic { width: 44px; height: 44px; border-radius: var(--r-md); margin-bottom: 12px; }

.svc-grid { align-items: stretch; }
.svc-card h3 { font-size: var(--t-lg); margin-top: 12px; }
.svc-card p { color: var(--ink-2); font-size: var(--t-md); }

/* ---------------- landing: dark panel showcase ---------------- */
.section-dark { background:
  radial-gradient(700px 420px at 90% 0%, rgba(6,182,212,.2), transparent 55%),
  radial-gradient(600px 500px at 0% 100%, rgba(124,58,237,.14), transparent 55%),
  linear-gradient(160deg, #0E2A5C, #123B82);
  color: #fff; padding: 74px 0; }
.panel-show { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.panel-show h2 { font-size: var(--t-30); font-weight: 800; }
.panel-show > div > p { color: rgba(255,255,255,.8); font-size: var(--t-lg); margin-bottom: 22px; }
.pill-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.panel-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.panel-feat b { display: flex; gap: 8px; align-items: center; font-size: var(--t-body); margin-bottom: 4px; }
.panel-feat .ic { color: #6EE7B7; }
.panel-feat small { color: rgba(255,255,255,.66); font-size: var(--t-sm); display: block; }
.mock-dark { background: #0F2249; border-color: rgba(255,255,255,.14); }
.mock-dark .mock-head { border-color: rgba(255,255,255,.1); }
.mock-dark .mock-card { border-color: rgba(255,255,255,.14); color: #fff; }
.mock-dark .mock-card small { color: rgba(255,255,255,.55); }
.mock-dark .mock-platforms { border-color: rgba(255,255,255,.1); }
.mock-dark .mock-platforms span { color: rgba(255,255,255,.75); background: rgba(255,255,255,.9); border-radius: var(--r-xs); padding: 5px 0; margin: 0 3px; }

.case-card { display: flex; flex-direction: column; }
.case-tag { color: var(--primary-2); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tr-caps); font-size: var(--t-2xs); }
.case-card h3 { margin-top: 8px; }
.case-card p { color: var(--ink-2); font-size: var(--t-md); flex: 1; }
.case-kpi { display: inline-flex; gap: 7px; align-items: center; margin-top: 14px; background: var(--grad-soft); color: var(--primary-2); font-weight: 700; font-size: var(--t-sm); padding: 7px 14px; border-radius: var(--r-pill); align-self: flex-start; }
.case-kpi .ic { color: var(--primary); }

.foot-brand { max-width: 300px; }

/* ---------------- platform extras (landing) ---------------- */
.plat-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.plat-chip { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; box-shadow: var(--shadow); }
.plat-chip b { font-size: var(--t-md); display: block; }
.plat-chip small { font-size: var(--t-xs); }

/* ---------------- loyalty tiers ---------------- */
.tier-grid { align-items: stretch; }
.tier-plan { text-align: center; position: relative; }
.tier-top { border-color: rgba(37,99,235,.45); box-shadow: var(--e-brand-lg); }
.tier-medal { width: 40px; height: 40px; margin: 0 auto 10px; border-radius: var(--r-circle); display: grid; place-items: center; font-weight: 800; color: #fff; }
.tier-medal.t0 { background: #94A3B8; }
.tier-medal.t1 { background: #B45309; }
.tier-medal.t2 { background: #64748B; }
.tier-medal.t3 { background: linear-gradient(135deg, #F59E0B, #D97706); }
.tier-cb { margin-top: 10px; display: inline-block; background: var(--grad-soft); color: var(--primary-2); font-weight: 700; font-size: var(--t-sm); padding: 6px 14px; border-radius: var(--r-pill); }

/* ---------------- accounts by platform (panel home) ---------------- */
.plat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.plat-cell { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink); }
.plat-cell:hover { border-color: var(--primary); }
.plat-cell b { font-size: var(--t-md); display: block; }
.plat-cell small { font-size: var(--t-xs); color: var(--ink-3); display: block; }
.plat-cell.dim { opacity: .62; }
.plat-cell-n { margin-left: auto; background: var(--bg-soft); border-radius: var(--r-pill); min-width: 26px; height: 26px; display: grid; place-items: center; font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); padding: 0 8px; }

/* ---------------- AI suggestions ---------------- */
.ai-grid { margin-top: 6px; }
.ai-card { border-left: 4px solid var(--line-strong); padding: 16px 18px; }
.ai-card b { font-size: var(--t-body); }
.ai-card p { font-size: var(--t-md); color: var(--ink-2); margin: 5px 0 0; }
.ai-ok { border-left-color: var(--ok); }
.ai-warn { border-left-color: var(--warn); }
.ai-info { border-left-color: var(--primary); }

/* ---------------- AI suite ---------------- */
.ai-score { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.ai-score .tier-ring { width: 62px; height: 62px; }
.ai-score .tier-ring::before { background: var(--card); }
.ai-score .tier-ring span { font-size: var(--t-body); }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps-check { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; }
.ps-check b { display: flex; gap: 7px; align-items: center; font-size: var(--t-md); }
.ps-check small { color: var(--ink-2); font-size: var(--t-xs); display: block; margin-top: 3px; }
.ps-check.ok b .ic { color: var(--ok); }
.ps-check.bad { background: #FEF7F7; border-color: #FECACA; }
.ps-check.bad b .ic { color: var(--bad); }
.ai-sec { display: block; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: var(--tr-caps); color: var(--ink-3); margin: 16px 0 8px; }
.ai-sec:first-of-type { margin-top: 8px; }
.ai-line { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 9px 12px; background: var(--bg-soft); border-radius: var(--r-sm); margin-bottom: 6px; font-size: var(--t-md); }
.ai-flow { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow); }
.ai-flow > b { color: var(--ink-3); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: var(--tr-caps); }
.ai-step { display: inline-flex; gap: 8px; align-items: baseline; }
.ai-step i { font-style: normal; background: var(--grad); color: #fff; width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: var(--r-2xs); font-size: var(--t-xs); font-weight: 700; }
.ai-step b { font-size: var(--t-md); }
.ai-step small { color: var(--ink-3); font-size: var(--t-xs); }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.det-chip { display: inline-block; background: var(--bg-soft); border-radius: var(--r-2xs); padding: 1px 7px; font-size: var(--t-xs); margin-top: 3px; }
.det-chip b { color: var(--ink-3); font-weight: 600; }

/* ---------------- loyalty page ---------------- */
.loyal-hero { display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(120deg, #fff 55%, rgba(37,99,235,.07)); }
.loyal-left { display: flex; gap: 20px; align-items: center; }
.tier-ring.big { width: 84px; height: 84px; }
.tier-ring.big::before { inset: 7px; background: #fff; }
.tier-ring.big span { font-size: var(--t-lg); }
.loyal-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.loyal-stats small { display: block; font-size: var(--t-xs); color: var(--ink-3); }
.loyal-stats b { font-size: var(--t-22); font-weight: 800; }
.loyal-stats .pos { color: var(--ok); }
.tier-track { display: flex; align-items: center; gap: 0; margin: 22px 0; padding: 18px 10px; overflow-x: auto; }
.tt-step { display: grid; justify-items: center; gap: 3px; min-width: 92px; text-align: center; }
.tt-step i { width: 34px; height: 34px; border-radius: var(--r-circle); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: var(--t-sm);
  background: var(--bg-soft); color: var(--ink-3); border: 2px solid var(--line-strong); }
.tt-step.done i { background: var(--c, var(--primary)); color: #fff; border-color: transparent; }
.tt-step.now b { color: var(--primary-2); }
.tt-step b { font-size: var(--t-sm); }
.tt-step small { font-size: var(--t-xs); }
.tt-line { flex: 1; height: 3px; min-width: 30px; background: var(--line); border-radius: var(--r-pill); margin: 0 4px 34px; }
.tt-line.done { background: var(--grad); }
a.tier-card { text-decoration: none; color: inherit; transition: background .15s; }
a.tier-card:hover { background: var(--grad-soft); }

/* ---------------- support center ---------------- */
.sup-layout { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.sup-thread { display: block; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink); }
.sup-thread b { font-size: var(--t-md); display: block; }
.sup-thread small { font-size: var(--t-xs); color: var(--ink-3); }
.sup-thread:hover { background: var(--bg-soft); }
.sup-thread.on { background: var(--grad-soft); }
.sup-chat { display: flex; flex-direction: column; min-height: 480px; padding: 0; }
.sup-chat-head { display: flex; gap: 10px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sup-msgs { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 55vh; }
.sup-msg { max-width: 78%; border-radius: var(--r); padding: 10px 14px; }
.sup-msg small { display: block; font-size: var(--t-2xs); margin-bottom: 3px; opacity: .75; }
.sup-msg p { margin: 0; font-size: var(--t-md); }
.sup-msg.from-user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.sup-msg.from-user small { color: rgba(255,255,255,.8); }
.sup-msg.from-ai { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sup-msg.from-ai small { color: var(--violet); font-weight: 700; }
.sup-msg.from-admin { align-self: flex-start; background: var(--ok-bg); border: 1px solid #A7F3D0; border-bottom-left-radius: 4px; }
.sup-msg.from-admin small { color: var(--ok); font-weight: 700; }
.msg-sub { display: block; margin-top: 5px; padding-top: 5px; border-top: 1px dashed rgba(0,0,0,.12); font-size: var(--t-xs); opacity: .7; }
.from-user .msg-sub { border-top-color: rgba(255,255,255,.3); }
.sup-xlate-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; background: var(--grad-soft); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-2); flex-wrap: wrap; }
.sup-xlate-bar .ic { color: var(--primary); vertical-align: -2px; }
.xlate-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin: 0; cursor: pointer; }
.xlate-toggle input { width: auto; margin: 0; }
.chat-acts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.chat-act { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--primary); color: var(--primary-2);
  border-radius: var(--r-pill); padding: 6px 13px; font-size: var(--t-sm); font-weight: 600; transition: all .15s; }
.chat-act:hover { background: var(--grad); color: #fff; border-color: transparent; }
.chat-act .ic { flex-shrink: 0; }
.from-user .chat-acts .chat-act { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.6); color: #fff; }
.from-user .chat-acts .chat-act:hover { background: #fff; color: var(--primary-2); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.chat-chip { background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 7px 13px;
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.chat-chip:hover { border-color: var(--primary); color: var(--primary-2); background: var(--grad-soft); }
.sup-replybar { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.sup-replybar input { margin: 0; flex: 1; }
.admin .sup-msg.from-user { align-self: flex-start; background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }

.nav-badge { font-style: normal; background: var(--bad); color: #fff; border-radius: var(--r-pill); font-size: var(--t-2xs); font-weight: 700; padding: 1px 7px; margin-left: 6px; }
.live-dot { color: var(--ok); font-size: var(--t-2xs); margin-left: 4px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.sup-msg.pending { opacity: .6; }

/* ---------------- floating support bubble ---------------- */
.sup-bubble { position: fixed; right: 26px; bottom: calc(26px + var(--cookie-h, 0px)); z-index: 120; transition: bottom .18s ease; }
.sup-btn { width: 58px; height: 58px; border-radius: var(--r-circle); border: none; cursor: pointer;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: var(--e-brand-lg); transition: transform .16s; }
.sup-btn:hover { transform: scale(1.07); }
.sup-menu { bottom: calc(100% + 12px); top: auto; right: 0; width: 280px; }
.sup-ic { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.sup-wa { background: #25D366; }
.sup-tg { background: #229ED9; }
.sup-ic.sup-cc { background: var(--grad); }

/* ---------------- comparison table (why us) ---------------- */
.cmp-wrap { overflow-x: auto; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th { padding: 16px 22px; text-align: left; font-size: var(--t-sm); text-transform: uppercase; letter-spacing: var(--tr-caps); color: var(--ink-3); border-bottom: 1px solid var(--line); }
.cmp th.cmp-us-h { background: var(--grad-ink); color: #fff; font-size: var(--t-body); text-transform: none; letter-spacing: 0; border-radius: 0; }
.cmp td { padding: 15px 22px; border-bottom: 1px solid var(--line); font-size: var(--t-body); vertical-align: middle; }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp .cmp-dim { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cmp .cmp-us { background: rgba(37,99,235,.055); font-weight: 600; }
.cmp .cmp-trad { color: var(--ink-2); }
/* the tier ramp must read as a progression; Bronze in warn-brown looked like an error state */
.tier-medal.t0 { background: #CBD5E4; color: var(--ink-2); }
.tier-medal.t1 { background: #93A3B8; color: #fff; }
.tier-medal.t2 { background: #475569; color: #fff; }
.tier-medal.t3 { background: var(--grad-ink); color: #fff; }
.cmp-yes, .cmp-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-circle); vertical-align: -5px; margin-right: 6px; }
.cmp-yes { background: var(--ok-bg); color: var(--ok); }
.cmp-no { background: var(--bad-bg); color: var(--bad); }

/* ---------------- language selector ---------------- */
.lang-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--card); border-radius: var(--r-pill); padding: 8px 14px; cursor: pointer; font: 600 .82rem "Inter", sans-serif; color: var(--ink-2); }
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-menu { width: 180px; }
.lang-menu .dd-item.on { background: var(--grad-soft); color: var(--primary-2); font-weight: 700; }
.lang-menu .dd-item small { margin-left: auto; }

/* ---------------- cookie bar ---------------- */
.cookie-bar { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 96; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 14px 20px; box-shadow: var(--shadow-lg); font-size: var(--t-md); color: var(--ink-2); max-width: 860px; margin: 0 auto; }
.cookie-btns { display: flex; gap: 8px; }

/* ---------------- footer biz ---------------- */
.biz-block { font-size: var(--t-sm); line-height: var(--lh-prose); }

/* ---------------- 2FA setup ---------------- */
.totp-grid { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.totp-qr-box { text-align: center; }
#totp-qr { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; margin: 10px 0 6px; }
#totp-qr img, #totp-qr canvas { display: block; }
.totp-step { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: var(--t-md); margin-bottom: 8px; }
.totp-step i { font-style: normal; background: var(--grad); color: #fff; width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: var(--r-2xs); font-size: var(--t-xs); flex-shrink: 0; }
.totp-confirm { display: flex; gap: 10px; align-items: center; }
.totp-code { width: 140px; margin: 0; text-align: center; font-size: var(--t-20); letter-spacing: .35em; font-weight: 700; }
@media (max-width: 640px) { .totp-grid { grid-template-columns: 1fr; } }

/* ---------------- sales boosters ---------------- */
.promo-bar { background: linear-gradient(120deg, #1D4ED8, #06B6D4); color: #fff; font-size: var(--t-md); }
.promo-row { display: flex; align-items: center; gap: 16px; padding: 9px 24px; }
.promo-row > span { flex: 1; font-weight: 600; }
.promo-cta { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.promo-x { background: transparent; border: none; color: rgba(255,255,255,.8); cursor: pointer; font-size: var(--t-body); padding: 2px 6px; }
.promo-x:hover { color: #fff; }
.reassure { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink-2); font-size: var(--t-sm); font-weight: 600; margin: -18px 0 26px; }
.reassure .ic { color: var(--ok); }
.reassure.center { justify-content: center; margin: 22px 0 0; }

/* ---------------- RTL (Arabic) ---------------- */
[dir="rtl"] body, [dir="rtl"] { text-align: right; }
[dir="rtl"] .tbl th, [dir="rtl"] .cmp th, [dir="rtl"] .cmp td { text-align: right; }
[dir="rtl"] .tbl .r { text-align: left; }
[dir="rtl"] .side { border-right: none; border-left: 1px solid var(--line); }
[dir="rtl"] .cmp-yes, [dir="rtl"] .cmp-no { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .dd-menu { right: auto; left: 0; }
[dir="rtl"] .sup-bubble { right: auto; left: 26px; }
[dir="rtl"] .ai-card { border-left: 1px solid var(--line); border-right: 4px solid var(--line-strong); }

.banner-low { background: #FEE2E2; border-color: #FECACA; color: #991B1B; }
.banner-low .ic { color: var(--bad); }

/* ---------------- free tools & guides (public) ---------------- */
.tool-card, .guide-card { display: block; color: inherit; transition: border-color .15s, transform .15s; }
.tool-card:hover, .guide-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.tool-card p, .guide-card p { color: var(--ink-2); font-size: var(--t-md); }
.tool-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--primary-2); font-weight: 700; font-size: var(--t-md); }
.guide-meta { color: var(--ink-3); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: var(--tr-caps); }
.tool-wrap, .guide-wrap { max-width: 760px; margin: 0 auto; padding: 34px 24px 60px; }
.crumbs { font-size: var(--t-sm); color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--primary); }
.tool-wrap h1, .guide-wrap h1 { font-size: var(--t-32); margin-bottom: 10px; }
.tool-lead, .guide-intro { font-size: var(--t-lg); color: var(--ink-2); margin-bottom: 22px; }
.calc { margin-bottom: 26px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-out { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.calc-cell { flex: 1 1 130px; background: var(--bg-soft); border-radius: var(--r-sm); padding: 12px 14px; }
.calc-cell small { display: block; font-size: var(--t-xs); color: var(--ink-3); margin-bottom: 2px; }
.calc-cell b { font-size: var(--t-20); font-weight: 800; }
.calc-cell.good b { color: var(--ok); }
.calc-cell.bad b { color: var(--bad); }
.calc-verdict { flex: 1 1 100%; font-weight: 700; font-size: var(--t-md); padding: 9px 14px; border-radius: var(--r-sm); }
.calc-verdict.good { background: var(--ok-bg); color: #065F46; }
.calc-verdict.bad { background: var(--bad-bg); color: #991B1B; }
.calc-note { font-size: var(--t-xs); color: var(--ink-3); margin-top: 12px; }
.utm-result { display: flex; gap: 10px; align-items: center; background: var(--bg-soft); border-radius: var(--r-sm); padding: 12px 14px; margin-top: 14px; }
.utm-result code { background: transparent; word-break: break-all; font-size: var(--t-sm); flex: 1; }
.copy-out { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.tool-explain h2, .guide-wrap h2 { font-size: var(--t-20); margin: 28px 0 8px; }
.tool-explain p, .guide-wrap p { color: var(--ink-2); line-height: var(--lh-prose); }
.tool-faq-h { margin-top: 30px; }
.tool-more { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; }
.tool-more-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.guide-sub { display: flex; gap: 16px; color: var(--ink-3); font-size: var(--t-sm); margin-bottom: 18px; }
.guide-toc { background: var(--bg-soft); border-radius: var(--r-md); padding: 16px 20px; margin: 22px 0; }
.guide-toc b { font-size: var(--t-sm); text-transform: uppercase; letter-spacing: var(--tr-caps); color: var(--ink-3); }
.guide-toc ol { margin: 8px 0 0; padding-left: 20px; }
.guide-toc li { margin: 4px 0; font-size: var(--t-md); }
.guide-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.guide-list li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); font-size: var(--t-body); }
.guide-list .ic { color: var(--ok); flex-shrink: 0; margin-top: 3px; }
.guide-cta { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--grad-soft); border: 1px solid rgba(37,99,235,.25); border-radius: var(--r); padding: 20px 24px; margin: 32px 0; }
.guide-cta b { font-size: var(--t-lg); }
.guide-cta p { margin: 3px 0 0; font-size: var(--t-md); }
@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; } }

/* ---------------- reports ---------------- */
.rng-bar { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 4px 0 16px; }
.rng-chip { border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 6px 13px; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.rng-chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.rng-custom { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; }
.rng-custom input { margin: 0; padding: 6px 10px; width: auto; }

/* ---------------- CRM tags + notes ---------------- */
.crm-tag { display: inline-block; border-radius: var(--r-pill); padding: 2px 10px; font-size: var(--t-xs); font-weight: 700; margin: 0 4px 0 0; border: 1px solid transparent; }
.tag-vip { background: #FEF3C7; color: #92400E; } .tag-watch { background: #DBEAFE; color: #1E40AF; }
.tag-risk { background: #FEE2E2; color: #991B1B; } .tag-new { background: #DEF7EC; color: #065F46; } .tag-whale { background: #EDE9FE; color: #5B21B6; }
.crm-tag-edit { display: flex; flex-wrap: wrap; gap: 8px; }
.crm-tag-edit form { margin: 0; }
.crm-tag-edit .crm-tag { cursor: pointer; font-size: var(--t-sm); padding: 6px 13px; }
.crm-tag-edit .crm-tag.off { background: var(--bg-soft); color: var(--ink-3); border-color: var(--line-strong); }
.crm-note-form { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.crm-note-form textarea { margin: 0; flex: 1; }
.crm-notes { display: grid; gap: 8px; max-height: 240px; overflow-y: auto; }
.crm-note { background: var(--bg-soft); border-radius: var(--r-sm); padding: 9px 12px; }
.crm-note p { margin: 0 0 3px; font-size: var(--t-md); }

/* ---------------- client leaderboard ---------------- */
.lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 8px 0 20px; }
.lead-card { display: flex; gap: 12px; align-items: center; color: inherit; }
.lead-card:hover { border-color: var(--primary); }
.lead-1 { border-color: #F59E0B; background: linear-gradient(120deg, #fff 60%, rgba(245,158,11,.1)); }
.lead-rank { font-size: var(--t-26); width: 40px; text-align: center; flex-shrink: 0; }
.lead-body b { display: block; font-size: var(--t-body); }
.lead-body small { color: var(--ink-3); font-size: var(--t-xs); }
.lead-amt { font-size: var(--t-xl); font-weight: 800; color: var(--primary-2); margin-top: 4px; }
.lead-amt span { display: block; font-size: var(--t-2xs); font-weight: 500; color: var(--ink-3); }
.sec-row a.on { color: var(--primary-2); font-weight: 700; text-decoration: underline; }

/* ---------------- balance summary ---------------- */
.bs-cell small { display: block; font-size: var(--t-xs); color: var(--ink-3); margin-bottom: 4px; }
.bs-cell b { font-size: var(--t-24); font-weight: 800; }
.bs-cell b.warn { color: var(--warn); }
.bs-cell b.neg { color: var(--bad); }
.bs-cell .bs-sub { display: inline-block; margin-left: 8px; font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; }
.bs-avail { border: 1px solid var(--primary); background: var(--grad-soft); }
.bs-avail b { color: var(--primary-2); }

/* ---------------- invoice ---------------- */
body.invoice { background: var(--bg); }
.inv-wrap { max-width: 820px; margin: 24px auto; padding: 0 16px; }
.inv-toolbar { display: flex; justify-content: space-between; margin-bottom: 16px; }
.inv-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 40px; box-shadow: var(--shadow); }
.inv-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 2px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
.inv-issuer { font-size: var(--t-sm); color: var(--ink-2); line-height: var(--lh-body); margin-top: 8px; }
.inv-meta { text-align: right; }
.inv-meta h1 { font-size: var(--t-26); letter-spacing: .08em; color: var(--ink-3); margin-bottom: 10px; }
.inv-meta table { font-size: var(--t-sm); }
.inv-meta th { text-align: right; color: var(--ink-3); font-weight: 500; padding: 2px 10px 2px 0; }
.inv-meta td { text-align: right; font-weight: 600; }
.inv-bill { font-size: var(--t-md); margin-bottom: 24px; line-height: var(--lh-prose); }
.inv-bill b { color: var(--ink-3); font-weight: 600; text-transform: uppercase; font-size: var(--t-xs); letter-spacing: var(--tr-caps); }
.inv-lines { width: 100%; border-collapse: collapse; font-size: var(--t-md); }
.inv-lines th { text-align: left; background: var(--bg-soft); padding: 10px 14px; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.inv-lines td { padding: 14px; border-bottom: 1px solid var(--line); }
.inv-lines .r { text-align: right; }
.inv-lines tfoot th { background: transparent; font-size: var(--t-lg); color: var(--ink); padding: 14px; }
.inv-foot { font-size: var(--t-xs); color: var(--ink-3); margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
@media print {
  body.invoice { background: #fff; }
  .inv-toolbar, .sup-bubble { display: none !important; }
  .inv-doc { border: none; box-shadow: none; padding: 0; }
  .inv-wrap { margin: 0; max-width: 100%; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; padding-top: 54px; }
  .hero-visual { max-width: 480px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .panel-show { grid-template-columns: 1fr; gap: 30px; }
  .news-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .plat-more, .plat-grid, .sol-grid, .panel-feats, .ps-grid, .form-2col, .sup-layout { grid-template-columns: 1fr; }
  .sup-bubble { right: 14px; bottom: calc(14px + var(--cookie-h, 0px)); }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .nav-links { display: none; }
  .site-burger { display: inline-flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 11px 9px; cursor: pointer; order: 3;
    flex: none; }                      /* never absorb the header's overflow */
  .nav-row .logo b { display: none; }  /* 146px wordmark -> 31px mark, so the row fits */
  body.nav-open .nav-links .nav-mobile-login { display: block; font-weight: 700; color: var(--primary-2);
    border-top: 1px solid var(--line); padding-top: 12px; }
  .nav-row { gap: 8px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 9px 13px; font-size: var(--t-sm); }
  .lang-btn { padding: 8px 10px; }
  .lang-btn b { display: none; }
  .promo-row { flex-wrap: wrap; gap: 8px; padding: 9px 16px; }
  .hero-grid { padding-top: 44px; padding-bottom: 54px; }
  /* superseded by the unconditional `html, body { overflow-x: clip }` in the v2.17
     block below — `hidden` would make body a scroll container and kill the sticky
     header. Kept here only as a note; the later rule wins on source order. */
  .site-burger span { width: 18px; height: 2px; background: var(--ink-2); border-radius: var(--r-pill); }
  body.nav-open .nav-links { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px 18px; gap: 14px; box-shadow: var(--shadow-lg); }
  .nav-cta .btn-ghost { display: none; }
  .side { position: fixed; z-index: 90; transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  body.side-open .side { transform: none; }
  .hamb { display: inline-flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 11px 9px; cursor: pointer; }
  .hamb span { width: 18px; height: 2px; background: var(--ink-2); border-radius: var(--r-pill); }
  .topbar { padding: 12px 16px; }
  .topbar-note { display: none; }
  .content { padding: 18px 14px; }
  .cta-row { justify-content: center; text-align: center; }
}

/* browser-language auto-detect notice */
.lang-auto{background:linear-gradient(90deg,rgba(37,99,235,.08),rgba(14,165,233,.08));border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.lang-auto-row{display:flex;align-items:center;gap:8px;padding:7px 0;font-size:var(--t-sm);color:var(--ink-2)}
.lang-auto-row svg{flex:none;color:var(--primary)}
.lang-auto-row span{flex:1;min-width:0}
.lang-auto-row a{color:var(--primary);font-weight:600;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.lang-auto-row a:hover{text-decoration:underline}

/* ---------------------------------------------------- v2.8 ------------- */
/* small status tags */
.tag{display:inline-block;padding:2px 8px;border-radius:var(--r-pill);font-size:var(--t-2xs);font-weight:700;letter-spacing:var(--tr-caps);vertical-align:middle}
.tag-ok{background:var(--ok-bg);color:var(--ok)}
.tag-err{background:var(--bad-bg);color:var(--bad)}
.notif-body .tag-new,.card .tag-new{background:var(--grad-soft);color:var(--primary);border:1px solid rgba(37,99,235,.25)}
.crm-tag.tag-new{background:#DEF7EC;color:#065F46;border-color:transparent}

/* simple vertical timeline */
.tl{list-style:none;margin:0;padding:4px 0 0}
.tl li{position:relative;display:flex;gap:12px;padding:0 0 14px;padding-inline-start:4px}
.tl li:not(:last-child)::before{content:"";position:absolute;inset-inline-start:8px;top:16px;bottom:0;width:2px;background:var(--line)}
.tl-dot{flex:none;width:10px;height:10px;margin-top:5px;border-radius:var(--r-circle);background:var(--primary);box-shadow:var(--ring)}
.tl li div{min-width:0;font-size:var(--t-sm);line-height:var(--lh-body)}

/* onboarding checklist */
.ob-card{border:1px solid rgba(37,99,235,.22);background:linear-gradient(180deg,rgba(37,99,235,.05),transparent 60%)}
.ob-head{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.ob-head p{margin:2px 0 0}
.ob-prog{display:flex;align-items:center;gap:10px;flex:none}
.ob-prog b{font-size:var(--t-md);color:var(--ink-2)}
.ob-bar{display:block;width:120px;height:7px;border-radius:var(--r-pill);background:var(--bg-soft);overflow:hidden}
.ob-bar i{display:block;height:100%;border-radius:var(--r-pill);background:var(--grad)}
.ob-steps{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px}
.ob-step{display:flex;align-items:center;gap:12px;padding:11px 13px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--card)}
.ob-step.on{opacity:.6;border-style:dashed}
.ob-mark{flex:none;width:26px;height:26px;border-radius:var(--r-circle);display:grid;place-items:center;font-size:var(--t-xs);font-weight:700;background:var(--bg-soft);color:var(--ink-3)}
.ob-step.on .ob-mark{background:var(--ok-bg);color:var(--ok)}
.ob-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.ob-txt b{font-size:var(--t-md)}
.ob-txt small{color:var(--ink-3);font-size:var(--t-xs)}
.ob-step.on .ob-txt b{text-decoration:line-through;text-decoration-color:var(--ink-3)}

/* notifications page */
.notif-feed{display:grid;gap:10px}
.notif-item{display:flex;gap:14px;align-items:flex-start}
.notif-item.is-new{border-color:rgba(37,99,235,.3)}
.notif-ic{flex:none;width:36px;height:36px;border-radius:var(--r-sm);display:grid;place-items:center;background:var(--grad-soft);color:var(--primary)}
.notif-body{min-width:0}
.notif-body p{margin:4px 0 6px;color:var(--ink-2);font-size:var(--t-md);line-height:var(--lh-body)}
.notif-new{background:linear-gradient(90deg,rgba(37,99,235,.06),transparent)}
[dir="rtl"] .notif-new{background:linear-gradient(270deg,rgba(37,99,235,.06),transparent)}
.dd-all{border-top:1px solid var(--line);font-weight:600;color:var(--primary)}

/* view-as banner */
.banner-viewas{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px;padding:11px 14px;border-radius:var(--r-md);
  background:#0B1526;color:#fff;box-shadow:var(--shadow)}
.banner-viewas span{flex:1;min-width:200px;font-size:var(--t-sm)}
.banner-viewas .btn{border-color:rgba(255,255,255,.4);color:#fff}
.banner-viewas .btn:hover{background:rgba(255,255,255,.12)}

/* admin ops queue */
.ops-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.ops-cell{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--card);text-decoration:none;color:inherit;transition:.15s}
.ops-cell:hover{border-color:var(--primary);transform:translateY(-1px);box-shadow:var(--shadow)}
.ops-cell.hot{border-color:rgba(220,38,38,.35);background:linear-gradient(180deg,rgba(220,38,38,.05),transparent)}
.ops-n{flex:none;min-width:38px;height:38px;padding:0 8px;border-radius:var(--r-sm);display:grid;place-items:center;font-size:var(--t-lg);font-weight:800;background:var(--bg-soft);color:var(--ink-3)}
.ops-cell.hot .ops-n{background:var(--bad-bg);color:var(--bad)}
.ops-cell > span:last-child{min-width:0;overflow-wrap:anywhere}
.ops-cell b{display:block;font-size:var(--t-sm)}
.ops-cell small{color:var(--ink-3);font-size:var(--t-xs)}

/* admin search */
.asearch{display:flex;gap:8px;margin-bottom:8px;align-items:stretch}
.asearch input{flex:1;margin-top:0}
.sr-group{margin-top:18px}
.sr-group h3{margin:0 0 8px;font-size:var(--t-md);color:var(--ink-2)}
@media (max-width:640px){.ob-prog{width:100%}.ob-bar{flex:1}}
.hr{border:0;border-top:1px solid var(--line);margin:20px 0 14px}
.grid-2-tight{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
@media (max-width:560px){.grid-2-tight{grid-template-columns:1fr}}
/* account-request fulfilment cell */
.req-decide{display:flex;flex-direction:column;gap:6px;align-items:flex-end;min-width:210px}
.req-decide .inp-sm{width:100%;margin-top:0;padding:6px 9px;font-size:var(--t-xs);border:1px solid var(--line);border-radius:var(--r-xs);background:var(--card);color:var(--ink)}
.req-decide .inp-sm::placeholder{color:var(--ink-3)}
.req-decide .btn-pair{display:flex;gap:6px}

/* --- v2.10 review fixes ------------------------------------------------- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.dd-notifs{width:min(320px,calc(100vw - 24px))}
@media (max-width:860px){
  /* the burger panel is positioned against the sticky header, which now also
     contains the browser-language notice — anchor it to the header's full height */
  body.nav-open .nav-links{top:100%}
}

/* --- v2.11: mobile header + dismissible layers ---------------------------- */
.nav-mobile-login { display: none; }         /* drawer-only; shown inside the 860px block */
@media (max-width: 520px) {
  .nav-cta .btn-primary .ic { display: none; }   /* the arrow is the first thing to go */
}
@media (max-width: 480px) {
  .modal { padding: 28px 24px; }                 /* a wider tap-out strip around the box */
}

/* --- payment / trust band ------------------------------------------------- */
.trust-band { background: var(--bg-soft); padding: 26px 0; border-block: 1px solid var(--line); }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 4px; }
.pay-row figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pay-row figcaption { font-size: var(--t-2xs); color: var(--ink-3); letter-spacing: var(--tr-caps); white-space: nowrap; }
.pay-row svg { display: block; }
.pay-note { text-align: center; font-size: var(--t-xs); color: var(--ink-3); margin: 12px 0 0; }
.pay-note a { color: var(--primary); }
[dir="rtl"] .pay-row { direction: ltr; }   /* the marks and chain labels stay LTR */

/* --- v2.11 design pass ---------------------------------------------------- */
:root { --s: 88px; --s-lg: 120px; --s-sm: 56px;
  --t-h1: clamp(2.25rem, 1.4rem + 3.2vw, 3.4rem);
  --t-h2: clamp(1.6rem, 1.15rem + 1.5vw, 2.15rem);
  --t-body: .9375rem; --t-sm: .8125rem; }

/* one heading size for every section title — there were four within 0.2rem */
.sec-head h2, .about-h, .panel-show h2, .cta-band h2 { font-size: var(--t-h2); font-weight: 700; }
.hero-copy h1 { font-size: var(--t-h1); }
/* and one body size inside cards, instead of seven that differed by hundredths */
.card p, .card li, .sol-card p, .svc-card p, .plan-blurb, .case-card p, .ticks li, .faq-item p, .plat-card p, .step p {
  font-size: var(--t-body);
}

/* these shorthands reset font-family, so buttons and inputs fell back to a
   different face than the body — badly visible in ar / zh / hi */
.btn, input, select, textarea, .lang-btn { font-family: inherit; }

/* mobile: 4-up grids left ~111px of content width for strings like "$250,000+" */
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .grid-4, .tier-grid, .svc-grid, .stats-band, .plat-more { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .sec-head { margin-bottom: 26px; }
  .card { padding: 18px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
}

/* RTL / script-aware typography: letter-spacing breaks joined Arabic script */
[dir="rtl"] .step-n { left: auto; right: 20px; }
[dir="rtl"] .plan-flag { right: auto; left: 18px; }
[dir="rtl"] .faq-item summary { padding-right: 0; padding-left: 26px; }
[dir="rtl"] .faq-item summary::after { right: auto; left: 2px; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: normal; }
html:lang(hi) h1, html:lang(hi) h2 { letter-spacing: normal; }
html:lang(ar) .partner-note, html:lang(ar) .case-tag, html:lang(ar) .cmp th { text-transform: none; letter-spacing: 0; }

/* the showcase chips were near-white text on a near-white pill */
.mock-dark .mock-platforms span { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
  border-radius: var(--r-xs); padding: 6px 0; margin: 0 3px; }

/* the legal identity block is a compliance statement, not a caption */
.foot-legal-id { font-size: var(--t-sm); color: var(--ink-2); line-height: var(--lh-prose);
  border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.partner-disc { text-align: center; font-size: var(--t-xs); color: var(--ink-3); margin: 8px 0 0; }
/* admin toggle rows (matches the inline style the MorPOS sandbox switch already used) */
.chk { display: flex; gap: 9px; align-items: center; margin: 10px 0; font-size: var(--t-body); cursor: pointer; }
.chk input[type="checkbox"] { width: auto; margin: 0; flex: none; }

/* --- v2.17 responsive repair ------------------------------------------------
   Audited in-browser at 360px across all 21 pages. Every public page scrolled
   sideways (111px) and four panel pages pushed a table past the viewport.
   Root cause in each case was the same: a flex/grid child defaults to
   min-width:auto, so an overflow-x wrapper cannot shrink below its content and
   the content escapes the wrapper instead of scrolling inside it. */

/* clip, not hidden — `hidden` would make body a scroll container and kill the
   sticky header; `clip` does not. Verified: header stays position:sticky. */
html, body { overflow-x: clip; }

/* let the scroll containers actually be narrower than what they hold */
.cmp-wrap, .tbl-scroll, .tier-track { min-width: 0; max-width: 100%; overflow-x: auto; }
.card, .grid-2, .grid-3, .grid-4, .main-col, .content, .shell { min-width: 0; }
.tier-track { padding-bottom: 6px; }
.tt-step { flex: none; }

/* safety net: a table that was never given a .tbl-scroll wrapper would now be
   clipped and unreachable, so make its card the scroll container instead */
.card:has(> table.tbl) { overflow-x: auto; }

/* the footer link columns were a 4-up flex row with a 60px gap — 453px minimum
   on a 360px screen, which is what pushed every public page sideways */
.foot-cols { flex-wrap: wrap; gap: 28px 40px; }
@media (max-width: 700px) {
  .foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; width: 100%; }
  .foot-row { gap: 26px; }
}

/* data tables keep a readable width and scroll within their box */
@media (max-width: 860px) {
  .tbl { min-width: 560px; }
  .am-tbl { min-width: 900px; }
}

/* the ads-manager filter bar put a 415px select on a 360px screen */
.am-bar { flex-wrap: wrap; }
.am-bar label, .am-select { max-width: 100%; min-width: 0; }
.am-bar select, .am-bar input { max-width: 100%; }

/* tap targets: these were 16x20 and 16x16 hit areas */
.copy-btn, .icon-link { min-width: 36px; min-height: 36px; display: inline-grid;
  place-items: center; padding: 0; vertical-align: middle; }

/* long unbreakable tokens — wallet addresses, API keys, TOTP secrets — were the
   only thing still pushing past a card edge at 1024px */
.wallet-addr, .wallet-addr code, .totp-step code, .key-val, code.mono {
  overflow-wrap: anywhere; word-break: break-word; min-width: 0;
}

/* 320px: the panel top bar ran 3px past the edge */
@media (max-width: 340px) {
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn { padding: 8px 10px; font-size: var(--t-xs); }
}

/* --- v2.17 visual pass ------------------------------------------------------
   Section headings and the plain-text cards were unbroken walls of prose. These
   give each block an anchor the eye can land on, using the existing icon set —
   no new assets, no external requests. Inert until the markup emits them. */

/* icon chip above a section heading */
.sec-ico {
  width: 48px; height: 48px; border-radius: var(--r); margin: 0 auto 16px;
  display: grid; place-items: center; color: var(--primary);
  background: linear-gradient(145deg, rgba(37,99,235,.14), rgba(6,182,212,.07));
  border: 1px solid rgba(37,99,235,.18);
  box-shadow: var(--e-brand);
}
.sec-head.sec-left .sec-ico { margin-left: 0; margin-right: 0; }

/* smaller chip inside a card */
.ico-chip {
  width: 40px; height: 40px; border-radius: var(--r-md); margin-bottom: 13px;
  display: grid; place-items: center; color: var(--primary);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.ico-chip.chip-ok   { color: var(--ok);   background: var(--ok-bg);   border-color: transparent; }
.ico-chip.chip-warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }

/* the three how-it-works steps carried a bare number; pair it with an icon so
   the card reads at a glance instead of only after the heading */
.step-ico { color: var(--primary); opacity: .9; margin-bottom: 6px; display: inline-flex; }
.steps .step h3 { margin-top: 4px; }

/* cards lift slightly on hover — the grid felt static next to the rest of the page */
.card.hoverable, .plat-card, .step, .faq-item {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card.hoverable:hover, .plat-card:hover, .step:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-strong);
}
@media (prefers-reduced-motion: reduce) {
  .card.hoverable, .plat-card, .step, .faq-item { transition: none; }
  .card.hoverable:hover, .plat-card:hover, .step:hover { transform: none; }
}

/* FAQ: a real affordance instead of a bare caret */
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq-item[open] summary { color: var(--primary-2); }

/* dropdowns must stay on screen. The language menu is right-anchored to a 38px
   button sitting 107px from the left, so at 375px it hung 35px past the edge.
   Before v2.17 that scrolled the page sideways; with overflow-x:clip it would be
   cut off instead — either way the top option was unreachable. */
.dd-menu { max-width: calc(100vw - 20px); }
@media (max-width: 620px) {
  .nav-row .lang-dd .dd-menu { right: auto; left: 0; }
}

/* --- v2.19 design tokens ------------------------------------------------ */
/* ============================================================
   WoAgency design tokens — v2.18 consolidation
   Four scales, one place to look. Every type step is a whole
   pixel at the 16px root; radius and elevation are closed sets.
   No colour is changed here — every pair still passes AA.

   TYPE   11 12 13 14 15 16 18 | 20 22 24 26 28 30 32 | 48 | 2 clamps
   SPACE  4px grid: 4 8 12 16 20 24 32 40 48 64 80 (+ 56/88/120 sections)
   RADIUS 6 8 10 12 14 18 | pill | circle
   ELEV   4 neutral levels (contact + ambient) | 2 brand | rings

   TRAP: never add a token named --lh. src/views.php sets --lh
   inline on .logo and `.logo b` reads calc(var(--lh, 28px) * .72);
   a :root --lh would make that calc resolve to a unitless number.
   ============================================================ */
:root {
  /* ---- type ---------------------------------------------------------- */
  --t-2xs:   .6875rem;  /* 11px — count badges, chart labels, .tag */
  --t-xs:    .75rem;    /* 12px — micro labels, captions, figcaptions */
  --t-sm:    .8125rem;  /* 13px — UNCHANGED — dense UI, chips, table heads */
  --t-md:    .875rem;   /* 14px — secondary copy, small controls */
  --t-body:  .9375rem;  /* 15px — UNCHANGED — body / card copy */
  --t-lg:    1rem;      /* 16px — lead paragraphs, large buttons */
  --t-xl:    1.125rem;  /* 18px — sub-headings, inline mock numbers */
  --t-20:    1.25rem;   /* 20px — modal titles, code input, calc cells */
  --t-22:    1.375rem;  /* 22px — inline stat numbers */
  --t-24:    1.5rem;    /* 24px — auth h1, balance summary */
  --t-26:    1.625rem;  /* 26px — invoice wordmark, wallet balance */
  --t-28:    1.75rem;   /* 28px — default h1, band headings */
  --t-30:    1.875rem;  /* 30px — prices, big display numbers */
  --t-32:    2rem;      /* 32px — tool/guide h1, affiliate badge */
  --t-display: 3rem;    /* 48px — error pages */
  --t-h2: clamp(1.6rem, 1.15rem + 1.5vw, 2.15rem);  /* UNCHANGED */
  --t-h1: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);  /* 36->60px. Was 54.4px = 3.63x body, bottom of the peer range. */

  /* ---- leading: a function of the size band, not a per-rule choice ---- */
  --lh-display: 1.08;   /* 48px+ hero */
  --lh-head:    1.18;   /* 26-34px section headings */
  --lh-title:   1.3;    /* 16-20px h3 / card titles */
  --lh-body:    1.55;   /* UNCHANGED — body default */
  --lh-prose:   1.7;    /* legal / long-form */

  /* ---- space: 4px grid ----------------------------------------------- */
  --sp-1:  4px;  --sp-2:  8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px; --sp-20: 80px;
  --s: 88px; --s-lg: 120px; --s-sm: 56px;   /* UNCHANGED section rhythm */

  /* ---- radius: tiered by the element's shortest side ------------------ */
  --r-2xs:    6px;   /* inline code, 20px number chips */
  --r-xs:     8px;   /* <32px shapes, small inputs */
  --r-sm:    10px;   /* UNCHANGED — 32-44px chips, nav rows, panes */
  --r-md:    12px;   /* 44-56px tiles, cells, small cards */
  --r:       14px;   /* UNCHANGED — standard card surface */
  --r-lg:    18px;   /* modals, wide wrappers, hero mock */
  --r-pill: 999px;   /* capsules and any bar under ~8px tall */
  --r-circle: 50%;   /* avatars, rings, dots */

  /* ---- elevation: contact layer + ambient layer, tinted toward --ink -- */
  --e-1: 0 1px 2px rgba(11,21,38,.05), 0 2px 6px -3px rgba(11,21,38,.08);
  --e-2: 0 1px 2px rgba(11,21,38,.05), 0 8px 24px -12px rgba(11,21,38,.12);
  --e-3: 0 2px 4px -2px rgba(11,21,38,.07), 0 14px 36px -16px rgba(11,21,38,.18);
  --e-4: 0 4px 8px -4px rgba(11,21,38,.09), 0 24px 60px -24px rgba(11,21,38,.25);
  --shadow:    var(--e-2);   /* UNCHANGED value, now an alias */
  --shadow-lg: var(--e-4);   /* was single-layer; gains the contact layer */

  /* brand glows: neutral geometry, colour swapped, alpha pulled back from
     .5-.6 (roughly double every published system) to ~.35 */
  --e-brand:    0 1px 2px rgba(37,99,235,.10), 0 8px 20px -8px rgba(37,99,235,.38);
  --e-brand-lg: 0 2px 6px -2px rgba(37,99,235,.12), 0 16px 40px -16px rgba(37,99,235,.34);

  /* not elevation: a knob, a focus ring, a scroll mask */
  --e-knob:    0 1px 3px rgba(11,21,38,.28);
  --ring:      0 0 0 3px rgba(37,99,235,.15);
  --ring-1:    0 0 0 1px var(--primary);
  --mask-card: 0 0 0 6px var(--card);
}

/* --- v2.19 craft pass ---------------------------------------------------- */
/* ============================================================
   v2.18 craft pass — appended, so every rule here wins on source
   order at equal-or-higher specificity. No layout containers are
   touched, no min-width is introduced, no external asset is used,
   and no colour pair drops below AA (several rise above it).
   ============================================================ */

/* --- 1. leading -------------------------------------------------------
   `h1,h2,h3 { line-height:1.2 }` was simultaneously too loose for a 54px
   hero (an 11px gap that reads as two separate lines) and too tight for a
   16px h3. Bind leading to the size band instead. */
.hero-copy h1 { line-height: var(--lh-display); }
.sec-head h2, .panel-show h2, .about-h, .cta-band h2, .auth-quote h2,
.tool-wrap h1, .guide-wrap h1, .err-page h1, .modal-box h2 { line-height: var(--lh-head); }
h3, .card-title, .sec-row h2 { line-height: var(--lh-title); }
.legal, .biz-block, .foot-legal-id, .inv-bill { line-height: var(--lh-prose); }

/* --- 2. line breaking -------------------------------------------------
   The hero h1 computes text-wrap:wrap, so a 54px headline can drop a single
   orphan word. Both properties only affect breaking inside an existing box,
   so neither can reintroduce the horizontal overflow fixed in v2.17, and
   both fall back silently where unsupported. */
h1, h2, h3, .sec-head h2, .hero-copy h1, .card-title, .plan-top h3 { text-wrap: balance; }
p, .plan-blurb, .tool-lead, .guide-intro, .about-p, .sec-head p { text-wrap: pretty; }

/* --- 3. section header composition ------------------------------------
   The h2's own 6.4px bottom margin (collapsed against the deck's 4.8px top)
   welded the heading to its deck while the block ended 40px above the
   content — a 6:1 ratio that reads as one lump. One deliberate 12px gap. */
.sec-head > h2 { margin-bottom: var(--sp-3); }
.sec-head > p  { margin: 0; }

/* --- 4. elevation discipline ------------------------------------------
   A resting card was carrying three separation cues at once: a 1px border,
   a white fill on an already-tinted section, and a full --shadow. Drop the
   resting surfaces one level and keep the border as the primary edge. */
.card, .plat-chip, .stat-big, .ai-flow, .cmp-wrap, .ops-cell { box-shadow: var(--e-1); }
/* .inv-doc deliberately excluded: @media print already resets its shadow, and an
   appended rule of equal specificity would win there and print a grey smear. */

/* hover lifts one level rather than jumping from 0 to 4 — the largest
   single elevation delta in the file — so the shadow also interpolates
   between two shadows of the same geometry instead of morphing. */
.card.hoverable:hover, .plat-card:hover, .step:hover, .ops-cell:hover { box-shadow: var(--shadow); }
.tool-card:hover, .guide-card:hover, .lead-card:hover, .plat-cell:hover { box-shadow: var(--shadow); }

/* an expanded accordion is inline content, not a floating layer */
.faq-item[open] { box-shadow: var(--e-1); }

/* --- 5. focus ---------------------------------------------------------
   `input:focus { outline:none }` plus a box-shadow ring leaves a focused
   field with NO indicator in forced-colors / Windows High Contrast, where
   box-shadow is dropped. rgba(37,99,235,.15) over white is also only ~1.2:1
   against the unfocused state; solid --primary is 5.17:1 (WCAG 2.2 SC
   2.4.13). Outline has respected border-radius in all three engines since
   2023, so the pill buttons are safe. The translucent ring is kept as the
   inner half of a two-tone treatment. */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.copy-btn:focus-visible, .icon-link:focus-visible, .lang-btn:focus-visible,
.iconbtn:focus-visible, .switch:focus-visible, .plat-tab:focus-visible,
.chat-chip:focus-visible, .chat-act:focus-visible, .rng-chip:focus-visible,
.crm-tag:focus-visible, .side-link:focus-visible, .dd-item:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
/* on the navy and gradient surfaces the brand blue ring is too close to the
   ground it sits on */
.section-dark a:focus-visible, .auth-brand a:focus-visible,
.cta-band a:focus-visible, .cta-band .btn:focus-visible,
.btn-white:focus-visible { outline-color: #fff; }
/* the user's own chat bubble IS --primary (section 6 below), so a --primary ring
   disappears into it — and it replaces the UA's two-tone ring, leaving nothing */
.sup-msg.from-user a:focus-visible,
.sup-msg.from-user .chat-act:focus-visible { outline-color: #fff; }
/* .promo-bar is a #1D4ED8 -> #06B6D4 wash; its controls sit at the cyan end where
   --primary measures 1.93:1. Go dark instead of white — the band is light there. */
.promo-bar a:focus-visible,
.promo-bar button:focus-visible { outline-color: var(--ink); }

/* --- 6. gradient discipline -------------------------------------------
   --grad ends on #06B6D4, which is 2.44:1 behind white text — a real AA
   failure on every element below, and on small UI a saturated two-stop
   gradient is the single most reliable template tell. Solid --primary is
   5.17:1 on white. Page-scale washes (.hero-glow, .cta-band, .section-dark,
   .auth-brand, .promo-bar, --grad-soft tints) are deliberately untouched. */
.step-n, .plan-flag, .pay-ic, .avatar, .side-co-avatar, .ai-step i, .totp-step i,
.sup-ic.sup-cc, .rng-chip.on, .tt-line.done, .ob-bar i, .sup-btn, .aff-badge,
.tier-medal.t3 { background: var(--primary); }
.sup-msg.from-user { background: var(--primary); }   /* long chat bubbles carried white text on the cyan end */
.chat-act:hover    { background: var(--primary); }
.btn-primary       { background: var(--primary); }   /* --grad-ink's #0E7490 end is 4.63:1; solid is 5.17:1 */
.cmp th.cmp-us-h   { background: var(--primary); }

/* --- 7. the featured tier earns weight structurally --------------------
   A coloured blur adds no structure. Border strength and corner treatment
   do. `* { box-sizing:border-box }` is already set, so 1px -> 2px cannot
   change the card's outer size or reflow the grid. */
.plan-hot, .tier-top { border-width: 2px; border-color: var(--primary); }

/* --- 8. the section chip stacked three decorations on a 48px shape -----
   (145deg gradient + translucent blue border + blue glow). One flat tint. */
.sec-ico { background: rgba(37,99,235,.10); border-color: transparent; box-shadow: none; }

/* --- 9. one tracking value for uppercase micro-labels -------------------
   .05 / .06 / .07 / .1em were four values doing one job, all within half a
   pixel of each other at 12-13px. The html:lang(ar) resets are more
   specific and still win, so joined Arabic script stays unbroken. */
.partner-note, .case-tag, .ai-sec, .ai-flow > b, .guide-meta, .guide-toc b,
.inv-bill b, .inv-lines th, .tbl th, .cmp th { letter-spacing: var(--tr-caps); }

/* --- 10. figures ------------------------------------------------------
   Inter's proportional digits change width between 1 and 8, so stacked
   balances and money columns jitter line to line. Every table already
   scrolls inside its own wrapper, so a wider figure cannot escape. */
.kv td, .tbl td, .tbl th, .inv-lines td, .inv-meta td, .stat b, .stat-big b,
.plan-price b, .bal b, .bs-cell b, .lead-amt, .ops-n, .hero-stats b,
.loyal-stats b, .calc-cell b, .tier-ring span { font-variant-numeric: tabular-nums; }

/* --- 11. leading guard for non-Latin scripts ---------------------------
   Inter covers neither Devanagari nor Arabic, so hi and ar fall back to system
   faces whose ink extent runs ~1.3-1.5em against Inter's ~1.0. The hero h1 is
   translated copy and wraps to 2-3 lines in both; at --lh-display 1.08 the
   matras and tashkeel of one line touch the next. Same pattern as the
   html:lang(hi) letter-spacing reset already in this file. */
html:lang(hi), html:lang(ar) { --lh-display: 1.3; --lh-head: 1.3; }

/* --- 12. line measure --------------------------------------------------
   Three prose blocks sit in full-width containers and ran to 139-185
   characters per line at 1280px; comfortable reading is 45-75 and the
   .sec-head deck is already capped at 34rem for exactly this reason.
   `ch` is the width of "0" in the current font, so the cap follows the
   type scale instead of being a magic pixel number. margin-inline keeps
   it centred in both LTR and RTL. */
.faq-item p        { max-width: 68ch; }
.partner-disc      { max-width: 62ch; margin-inline: auto; }
.cta-band p        { max-width: 56ch; margin-inline: auto; }
.legal p, .legal li { max-width: 74ch; }

/* --- 13. tracking is a function of size, not one taste value ------------
   `h1,h2,h3 { letter-spacing: -0.015em }` set one value for 28px, 20px and
   18px text, and the per-rule values drifted the same way the sizes did:
   .logo b at 20px carried -.03em, the same squeeze as the 60px hero, while
   .mock-card b at 18px carried -.02em where measured practice is ~0.
   Stripe runs 16px:0, 22-26px:-.01, 32-48px:-.02, 10px:+.01; Carbon uses
   positive tracking below 16px and 0 from 16px up. Bind it to the band. */
:root {
  --tr-display: -.022em;   /* 48px and above */
  --tr-head:    -.018em;   /* 28-40px */
  --tr-title:   -.010em;   /* 20-26px */
  --tr-body:     0;        /* 16-19px — tightening here only hurts legibility */
  --tr-caps:  .06em;       /* 11-13px uppercase micro-labels */
}
.hero-copy h1 { letter-spacing: var(--tr-display); }
h1, .sec-head h2, .panel-show h2, .about-h, .tool-wrap h1, .guide-wrap h1,
.cta-band h2, .auth-quote h2, .err-page h1, .plan-price b, .stat-big b {
  letter-spacing: var(--tr-head);
}
h2, .hero-stats b, .bal b, .bs-cell b, .loyal-stats b, .stat b, .calc-cell b,
.tool-explain h2, .guide-wrap h2, .logo b {
  letter-spacing: var(--tr-title);
}
h3, .card-title, .mock-card b, .sec-row h2 { letter-spacing: var(--tr-body); }

/* Re-assert the script guards. They sit at lines 1055-1056, i.e. BEFORE the
   rules above, so at equal specificity they would now lose on source order.
   The html[...] prefix puts them a level higher instead of relying on order.
   Joined Arabic script breaks under tracking and Devanagari matras detach. */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] .hero-copy h1, html[dir="rtl"] .sec-head h2,
html[dir="rtl"] .panel-show h2, html[dir="rtl"] .about-h,
html[dir="rtl"] b, html[dir="rtl"] .card-title,
html:lang(hi) h1, html:lang(hi) h2, html:lang(hi) h3,
html:lang(hi) .hero-copy h1, html:lang(hi) .sec-head h2,
html:lang(hi) .panel-show h2, html:lang(hi) .about-h,
html:lang(hi) b, html:lang(hi) .card-title { letter-spacing: normal; }
