/* DisputeShield · light theme
   Soft sage canvas, white rounded cards, lime accent, ink for emphasis. */
:root {
  --bg: #edf0ea;
  --bg-2: #f4f6f1;
  --surface: #ffffff;
  --surface-2: #f6f8f3;
  --surface-3: #eef1ea;
  --glass: rgba(255, 255, 255, .72);
  --ink: #121512;
  --ink-2: #353b35;
  --muted: #6c7469;
  --faint: #9aa197;
  --line: #e2e6de;
  --line-2: #eceee8;
  --lime: #d8f36a;
  --lime-2: #c4e83b;
  --lime-soft: #f1fad0;
  --lime-ink: #1d2600;
  --mint: #bfe9c9;
  --sky: #bfdcf5;
  --rose: #f5bcc3;
  --lav: #d9cff5;
  --sand: #f2deb2;
  --good: #1a9a52;
  --good-soft: #e3f6ea;
  --bad: #e0454b;
  --bad-soft: #fdeceb;
  --warn: #c27c00;
  --warn-soft: #fdf3dc;
  --info: #2f6fed;
  --info-soft: #e8f0fe;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-1: 0 1px 2px rgba(18, 21, 18, .04), 0 8px 24px -14px rgba(18, 21, 18, .14);
  --shadow-2: 0 2px 6px rgba(18, 21, 18, .05), 0 22px 48px -20px rgba(18, 21, 18, .22);
  --shadow-3: 0 30px 80px -24px rgba(18, 21, 18, .35);
  --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --side-w: 248px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
img, svg { display: block; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12px; }
.m0 { margin: 0; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mb10 { margin-bottom: 10px; } .mb12 { margin-bottom: 12px; } .fw4 { font-weight: 400; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; border-radius: 10px; }

/* boot */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 54px; height: 54px; animation: breathe 1.4s var(--ease) infinite; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform .18s var(--ease), background .18s, box-shadow .18s, border-color .18s, color .18s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(18, 21, 18, .6); }
.btn-ink:hover:not(:disabled) { background: #000; }
.btn-lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 26px -12px rgba(150, 190, 20, .8); }
.btn-lime:hover:not(:disabled) { background: var(--lime-2); }
.btn-white { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-white:hover:not(:disabled) { border-color: #cfd5c9; box-shadow: var(--shadow-1); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: rgba(18, 21, 18, .05); }
.btn-good { background: var(--good); color: #fff; }
.btn-danger { background: var(--surface); border-color: #f2c3c3; color: var(--bad); }
.btn-danger:hover:not(:disabled) { background: var(--bad-soft); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 22px; line-height: 1; color: var(--ink-2); cursor: pointer; transition: transform .18s var(--ease), background .18s, box-shadow .18s; text-decoration: none; }
.icon-btn:hover { box-shadow: var(--shadow-1); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.sm { width: 32px; height: 32px; font-size: 18px; }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; background: none; border: 0; padding: 0; }

/* ---------- inputs ---------- */
.input, select.input, textarea.input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.input:focus { border-color: #b9c4ad; box-shadow: 0 0 0 4px rgba(196, 232, 59, .35); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.span-2 { grid-column: span 2; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.search .input { padding-left: 40px; border-radius: 999px; background: var(--glass); }

/* ---------- chips, pills, tags ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.good { background: var(--good); box-shadow: 0 0 0 3px rgba(26, 154, 82, .15); }
.dot.warn { background: #f0a400; box-shadow: 0 0 0 3px rgba(240, 164, 0, .15); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px rgba(224, 69, 75, .15); }
.dot.pulse { animation: pulse 2s infinite; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.respond { background: var(--warn-soft); color: var(--warn); }
.pill.review { background: var(--info-soft); color: var(--info); }
.pill.open { background: var(--lime-soft); color: #5a7300; }
.pill.won { background: var(--good-soft); color: var(--good); }
.pill.lost { background: var(--bad-soft); color: var(--bad); }
.pill.neutral { background: var(--surface-3); color: var(--ink-2); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }
.tag.FIGHT { background: var(--lime); color: var(--lime-ink); }
.tag.REFUND { background: var(--warn-soft); color: var(--warn); }
.tag.NEED_INFO { background: var(--surface-3); color: var(--ink-2); }
.trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--good); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid rgba(226, 230, 222, .8); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.card-title .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); }
.card-title .ico svg { width: 16px; height: 16px; }
.card-body { padding: 16px 22px 22px; }
.card.lime { background: linear-gradient(160deg, #e9f8b1, #d8f36a 70%); border-color: transparent; }
.card.ink { background: var(--ink); color: #fff; border-color: transparent; }
.card.glass { background: var(--glass); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.card.hover { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.side-inner { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-1); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; }
.brand .mark { width: 36px; height: 36px; flex: none; }
.brand b { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: -2px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 12px 12px 6px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 14px; color: var(--ink-2); text-decoration: none; font-weight: 500; transition: background .18s, color .18s; }
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--ink); color: #fff; box-shadow: 0 12px 24px -14px rgba(18, 21, 18, .7); }
.nav a.active svg { color: var(--lime); }
.nav a .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.nav a.active .count { background: var(--lime); }
.side-foot { margin-top: auto; }
.promo { border-radius: 20px; padding: 16px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.promo::after { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -50px; top: -60px; background: radial-gradient(circle, rgba(216, 243, 106, .55), transparent 65%); }
.promo b { display: block; font-size: 14px; font-weight: 600; }
.promo p { font-size: 12px; color: rgba(255, 255, 255, .7); margin: 4px 0 12px; }
.promo .btn { position: relative; z-index: 1; }

.main { min-width: 0; padding: 18px 28px 48px 12px; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; background: linear-gradient(var(--bg) 70%, rgba(237, 240, 234, 0)); }
.topbar .search { flex: 1; max-width: 420px; }
.topbar .spacer { flex: 1; }
.sync { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); cursor: pointer; transition: box-shadow .18s; }
.sync:hover { box-shadow: var(--shadow-1); }
.sync svg { width: 16px; height: 16px; }
.sync.spinning svg { animation: spin 1s linear infinite; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); font-weight: 700; font-size: 14px; border: 2px solid #fff; box-shadow: var(--shadow-1); }
.menu-btn { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 640px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

/* mobile bottom nav */
.tabbar { display: none; }

/* ---------- page transitions & reveal ---------- */
.view { animation: viewIn .45s var(--ease) both; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- dashboard ---------- */
.grid-dash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; grid-auto-flow: row dense; }
.col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; } .col-3 { grid-column: span 3; }
.hello { position: relative; overflow: hidden; padding: 24px; min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.hello h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.hello p { color: rgba(29, 38, 0, .72); margin-top: 6px; max-width: 360px; }
.hello .orb { position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0, rgba(255, 255, 255, .0) 60%), conic-gradient(from 120deg, #c4e83b, #9ad0ff, #f5bcc3, #c4e83b); filter: blur(2px); opacity: .55; animation: spin 22s linear infinite; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpis.two { grid-template-columns: repeat(2, 1fr); position: relative; }
.kpi .of { font-size: 16px; color: var(--muted); font-weight: 500; }
.overview-card { overflow: hidden; position: relative; }
.hello-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.donut-wrap.col { flex-direction: column; align-items: stretch; }
.donut-wrap.col .donut { margin: 0 auto; }
.grid-host .amt { font-weight: 600; }
.center-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.case-hero .meta b { font-weight: 600; }
.landing .blob.b1 { width: 520px; height: 520px; left: -160px; top: -120px; background: #e4f5a8; }
.landing .blob.b2 { width: 480px; height: 480px; right: -140px; top: 120px; background: #cfe4fa; animation-delay: -6s; }
.landing .blob.b3 { width: 380px; height: 380px; left: 30%; top: 520px; background: #f7d6dc; animation-delay: -11s; }
.sparkle { position: absolute; color: var(--ink); animation: twinkle 3s ease-in-out infinite; }
.sparkle svg { width: 100%; height: 100%; }
.sparkle.s1 { left: 4%; top: 4%; width: 22px; height: 22px; }
.sparkle.s2 { right: 6%; bottom: 26%; width: 16px; height: 16px; animation-delay: -1.5s; }
.sparkle.s3 { left: 46%; top: 0; width: 12px; height: 12px; animation-delay: -.8s; }
.rotor { right: clamp(16px, 4vw, 40px); top: -10px; }
.queue-card { overflow: hidden; }
.kpi { position: relative; border-radius: 20px; padding: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.kpi.hl { background: var(--lime); border-color: transparent; }
.kpi .lbl { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi.hl .lbl { color: rgba(29, 38, 0, .7); }
.kpi .val { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.kpi.hl .foot { color: rgba(29, 38, 0, .7); }
.kpi.alert .val { color: var(--bad); }

.list { display: flex; flex-direction: column; gap: 8px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--surface-2); text-decoration: none; color: inherit; transition: background .18s, transform .18s var(--ease); cursor: pointer; border: 0; width: 100%; text-align: left; }
.list-row:hover { background: var(--lime-soft); transform: translateX(3px); }
.list-row b { font-weight: 500; }
.list-row .sub { font-size: 12px; color: var(--muted); }
.list-row .right { text-align: right; flex: none; }
.empty-mini { padding: 22px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.empty-mini svg { width: 36px; height: 36px; margin: 0 auto 8px; color: var(--faint); }

/* charts */
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { position: relative; width: 180px; height: 180px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 18; stroke-linecap: round; transition: stroke-dasharray 1.1s var(--ease), stroke-dashoffset 1.1s var(--ease); }
.donut .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut .center b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.donut .center span { font-size: 12px; color: var(--muted); }
.legend { display: flex; flex-direction: column; gap: 10px; min-width: 150px; flex: 1; }
.legend div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.legend i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.legend b { margin-left: auto; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 18px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar .col { width: 100%; max-width: 46px; border-radius: 16px 16px 12px 12px; background: linear-gradient(180deg, #dfe6d8, #cfd8c6); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); transition-delay: var(--d, 0ms); position: relative; min-height: 8px; }
.bar .col.hl { background: repeating-linear-gradient(135deg, var(--lime) 0 6px, var(--lime-2) 6px 12px); }
.bar .col.grown { transform: scaleY(1); }
.bar .col .bubble { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.bar span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.area { width: 100%; height: 190px; }
.area .grid-line { stroke: var(--line); stroke-dasharray: 3 5; }
.area .axis { font-size: 11px; fill: var(--faint); }
.area .stroke { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease); }
.area.drawn .stroke { stroke-dashoffset: 0; }
.area .fill { opacity: 0; transition: opacity 1.2s .4s var(--ease); }
.area.drawn .fill { opacity: 1; }
.area .pt { fill: var(--lime); stroke: var(--ink); stroke-width: 2; }

.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feed li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 13px; align-items: start; }
.feed .fi { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.feed .fi svg { width: 14px; height: 14px; }
.feed .fi.ai { background: var(--lav); border-color: transparent; }
.feed .fi.success { background: var(--mint); border-color: transparent; }
.feed .fi.warn { background: var(--sand); border-color: transparent; }
.feed time { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.feed a { color: inherit; text-decoration: none; }
.feed a:hover b { text-decoration: underline; }

.health { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.health div { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); font-size: 13px; }
.health b { font-weight: 500; display: block; }
.health span { font-size: 12px; color: var(--muted); }

/* ---------- disputes page ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-3); gap: 2px; overflow-x: auto; max-width: 100%; }
.seg button { border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.seg button.active { background: var(--ink); color: #fff; }
.seg button .n { margin-left: 6px; font-size: 11px; opacity: .7; }
.toolbar .search { width: 280px; max-width: 100%; }
.grid-host { width: 100%; overflow-x: auto; border-top: 1px solid var(--line-2); }
.grid-host .ag-cell { display: flex; align-items: center; }
.grid-host .ag-cell-wrapper { width: 100%; }
.grid-host .ag-layout-auto-height .ag-center-cols-viewport,
.grid-host .ag-layout-auto-height .ag-center-cols-container { min-height: 64px !important; }
.grid-host .ag-row { cursor: pointer; }
.cell-case { display: flex; flex-direction: column; justify-content: center; line-height: 1.3; }
.cell-case b { font-weight: 500; color: var(--ink); }
.cell-case span { font-size: 12px; color: var(--muted); }
.due { font-weight: 600; }
.due.urgent { color: var(--bad); }
.due.soon { color: var(--warn); }
.ai-cell { display: flex; align-items: center; gap: 10px; }
.meter { width: 60px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; flex: none; }
.meter > i { display: block; height: 100%; border-radius: 99px; }
.link-cta { color: var(--ink); font-weight: 600; font-size: 12.5px; text-decoration: underline; text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fallback-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.fallback-table th, .fallback-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
.fallback-table th { font-size: 12px; color: var(--muted); font-weight: 500; background: var(--surface-2); }
.fallback-table tr[data-id] { cursor: pointer; }
.fallback-table tbody tr:hover { background: var(--lime-soft); }

/* ---------- empty states ---------- */
.empty { padding: 44px 24px; text-align: center; }
.empty .art { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 26px; display: grid; place-items: center; background: var(--lime-soft); }
.empty .art svg { width: 38px; height: 38px; }
.empty h3 { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.empty p { margin: 0 auto 18px; max-width: 520px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 860px; margin: 0 auto 22px; text-align: left; }
.step { border-radius: 18px; padding: 16px; background: var(--surface-2); border: 1px solid var(--line-2); }
.step b { display: block; margin: 8px 0 4px; font-weight: 500; }
.step .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 700; }

/* ---------- banners & toasts ---------- */
.banner { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; margin-bottom: 16px; border: 1px solid; animation: viewIn .4s var(--ease) both; }
.banner.good { background: var(--good-soft); border-color: #bfe6cd; }
.banner.bad { background: var(--bad-soft); border-color: #f3c6c6; }
.banner.info { background: var(--info-soft); border-color: #cddcfb; }
.banner.lime { background: var(--lime-soft); border-color: #e2f3a3; }
.banner .grow { flex: 1; min-width: 0; }
.banner b { display: block; margin-bottom: 2px; font-weight: 600; }
.banner.compact { margin-bottom: 12px; padding: 11px 13px; font-size: 13px; border-radius: 14px; }
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(560px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 16px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-3); animation: toastIn .35s var(--ease) both; max-width: 100%; pointer-events: auto; display: flex; gap: 10px; align-items: center; }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.toast.bad::before { background: #ff8a8e; }
.toast.out { animation: toastOut .3s var(--ease) both; }

/* ---------- case page ---------- */
.case-hero { padding: 22px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; position: relative; overflow: hidden; }
.case-hero .amount { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.case-hero .meta { display: flex; gap: 10px 18px; flex-wrap: wrap; margin-top: 12px; color: var(--ink-2); font-size: 13.5px; }
.case-hero .meta > span { display: block; min-width: 0; overflow-wrap: anywhere; }
.case-hero .deadline { text-align: right; }
.case-hero .deadline .big { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; margin-top: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.section { padding: 20px 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-head h4 { font-size: 15.5px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.section-head h4 .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 700; }
.quote .q-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; font-style: normal; }
.quote { margin: 0 0 8px; padding: 12px 16px; background: var(--surface-2); border-left: 3px solid var(--lime-2); border-radius: 0 14px 14px 0; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 9px 14px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.subhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 12px; padding-top: 16px; border-top: 1px dashed var(--line); }
.subhead h5 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ai-loading { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: linear-gradient(110deg, var(--lime-soft) 30%, #fbfdf2 50%, var(--lime-soft) 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; color: var(--lime-ink); font-weight: 500; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(18, 21, 18, .15); border-top-color: var(--ink); animation: spin .8s linear infinite; flex: none; }
.btn-ink .spinner, .btn-good .spinner { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
.btn .spinner { width: 15px; height: 15px; border-width: 2px; }
.verdict { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; margin-bottom: 14px; }
.verdict.FIGHT { background: var(--lime-soft); }
.verdict.REFUND { background: var(--warn-soft); }
.verdict.NEED_INFO { background: var(--surface-2); }
.score-ring { --p: 50; --c: var(--good); width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(18, 21, 18, .08) 0); flex: none; animation: ringIn 1s var(--ease) both; }
.score-ring > div { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.verdict-text b { display: block; font-size: 16px; font-weight: 600; }
.verdict-text p { margin-top: 3px; color: var(--ink-2); font-size: 13.5px; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.list-box h5 { margin: 0 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; }
.list-box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.list-box li { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); }
.list-box li::before { content: ''; flex: none; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 10px; }
.list-box.good li::before { background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.2 7.3 8 3' fill='none' stroke='%231d2600' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.list-box.bad li::before { background-color: var(--sand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 2.5v3M5 7.4v.1' fill='none' stroke='%237a4f00' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E"); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.engine { font-size: 12px; color: var(--muted); margin-top: 12px; }
.notes-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.respond-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.respond-row .btn-ink { flex: 1; }
.msg-box { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--surface-2); }
.msg-box summary { cursor: pointer; font-weight: 500; font-size: 13.5px; }
.msg-box textarea { margin-top: 10px; }
.msg-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.sandbox-box { border-style: dashed; background: var(--surface-2); }
.sandbox-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.timeline li { position: relative; display: grid; grid-template-columns: 12px 1fr; gap: 12px; font-size: 13px; }
.timeline .tdot { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: #cfd5c9; border: 2px solid var(--surface); position: relative; z-index: 1; }
.timeline .tdot.success { background: var(--good); } .timeline .tdot.ai { background: #8b74e8; } .timeline .tdot.warn { background: #f0a400; }
.timeline time { display: block; font-size: 11.5px; color: var(--muted); }
.outcome { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; font-weight: 600; }
.outcome.won { background: var(--lime); color: var(--lime-ink); }
.outcome.lost { background: var(--bad-soft); color: var(--bad); }
.outcome svg { width: 22px; height: 22px; flex: none; }

/* ---------- payments page ---------- */
.pay-list { display: flex; flex-direction: column; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line-2); transition: background .18s; }
.pay-row:hover { background: var(--surface-2); }
.pay-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pay-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.pay-ico svg { width: 20px; height: 20px; }
.pay-main b { font-weight: 500; display: block; }
.pay-main .mono { color: var(--muted); overflow-wrap: anywhere; }
.pay-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pay-amount { font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }

.how-test { padding: 18px 22px; margin-bottom: 16px; background: linear-gradient(120deg, var(--lime-soft), var(--surface) 60%); }
.how-test ol { margin: 12px 0 0; padding-left: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; font-size: 13.5px; color: var(--ink-2); }
.how-test b { font-weight: 600; color: var(--ink); }
.live-sec { padding-top: clamp(48px, 6vw, 80px); }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 32px; }
.stat-card { padding: 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-card .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); margin-bottom: 10px; }
.stat-card .ico svg { width: 18px; height: 18px; }
.stat-card.lime .ico { background: rgba(255, 255, 255, .55); }
.stat-card b { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-card span:last-child { font-size: 12.5px; color: var(--muted); }
.stat-card.lime span:last-child { color: rgba(29, 38, 0, .72); }
.live-feed { margin-top: 16px; }
@media (max-width: 1180px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .how-test ol { grid-template-columns: 1fr; } .stat-card b { font-size: 24px; } }

/* ---------- settings ---------- */
.conn { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.conn:first-child { border-top: 0; padding-top: 0; }
.conn .logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); flex: none; font-weight: 700; }
.conn .logo svg { width: 22px; height: 22px; }
.conn .grow { flex: 1; min-width: 0; }
.conn b { font-weight: 500; }
.conn p { font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.chain { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chain span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); }
.chain span.good { background: var(--lime-soft); border-color: #e2f3a3; }
.chain span.rest { background: var(--warn-soft); border-color: #f3dfaa; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(18, 21, 18, .38); backdrop-filter: blur(4px); animation: fade .2s ease; }
.modal-card { width: min(580px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-3); animation: pop .35s var(--ease) both; display: flex; flex-direction: column; gap: 14px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.modal-head h3 { font-size: 22px; font-weight: 500; margin-top: 4px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* ---------- landing ---------- */
.landing { position: relative; overflow: hidden; background: var(--bg-2); }
.landing .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.lnav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: rgba(244, 246, 241, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(226, 230, 222, .7); }
.lnav .links { display: flex; gap: 6px; }
.lnav .links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; transition: background .18s; }
.lnav .links a:hover { background: rgba(18, 21, 18, .05); }
.lnav .right { display: flex; gap: 8px; align-items: center; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); position: relative; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: clamp(36px, 7vw, 84px); padding-bottom: clamp(30px, 5vw, 60px); }
.hero h1 { position: relative; z-index: 0; font-size: clamp(40px, 5.6vw, 76px); line-height: .98; letter-spacing: -0.05em; font-weight: 700; }
.hero h1 .soft { color: #9aa18f; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .32em; background: var(--lime); z-index: -1; border-radius: 6px; transform-origin: left; animation: underline 1s .6s var(--ease) both; }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); margin: 22px 0 28px; max-width: 540px; line-height: 1.55; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .live { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow-1); }
.hero .live .badge { background: var(--ink); color: var(--lime); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12px; }
.proof { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.proof div b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.proof div b span { font-size: inherit; color: inherit; }
.proof div > span { font-size: 12.5px; color: var(--muted); }

/* hero background: grid with a soft fade, a sharper grid and a lime glow that follow the cursor */
.hero-bg { position: absolute; left: 0; right: 0; top: 0; height: min(1000px, 100vh + 200px); pointer-events: none; z-index: 0; --mx: 72%; --my: 46%; }
.hero-bg .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(18, 21, 18, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 21, 18, .055) 1px, transparent 1px); background-size: 46px 46px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 35%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 75% 65% at 55% 35%, #000 25%, transparent 78%); }
.hero-bg .grid.hi { background-image: linear-gradient(rgba(18, 21, 18, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 21, 18, .16) 1px, transparent 1px); opacity: 0; transition: opacity .5s; -webkit-mask-image: radial-gradient(240px circle at var(--mx) var(--my), #000, transparent 72%); mask-image: radial-gradient(240px circle at var(--mx) var(--my), #000, transparent 72%); }
.hero-bg .spot { position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(216, 243, 106, .42), transparent 62%); transition: opacity .5s; }
.hero-bg.lit .grid.hi { opacity: 1; }
.landing .hero { position: relative; z-index: 1; }

/* announcement pill with a travelling light on its border */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.hero .live { position: relative; isolation: isolate; text-decoration: none; transition: box-shadow .2s, transform .2s var(--ease); }
.hero .live:hover { box-shadow: var(--shadow-2); }
.hero .live::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--ang), transparent 0 64%, var(--lime-2) 76%, #6f9d00 84%, transparent 94%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spinAng 4.5s linear infinite; pointer-events: none; }
.hero .live .badge { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex: none; }
.hero .live #liveLine { min-width: 0; }
.hero .live .chev { color: var(--muted); transition: transform .2s var(--ease); }
.hero .live:hover .chev { transform: translateX(3px); color: var(--ink); }
.ping { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none; display: inline-block; }
.ping::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }

/* rotating reason */
.rotline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: clamp(15px, 1.4vw, 17px); color: var(--ink-2); font-weight: 500; }
.rot { position: relative; display: inline-block; height: 1.9em; box-sizing: content-box; padding: 0 12px; border-radius: 10px; background: var(--ink); color: var(--lime); overflow: hidden; vertical-align: middle; transition: width .45s var(--ease); box-shadow: 0 10px 22px -12px rgba(18, 21, 18, .7); }
.rot .w { position: absolute; left: 12px; top: 0; line-height: 1.9em; white-space: nowrap; opacity: 0; transform: translateY(105%); transition: transform .5s var(--ease), opacity .4s; }
.rot .w.in { opacity: 1; transform: none; }
.rot .w.out { opacity: 0; transform: translateY(-105%); }
.hero .lead { margin-top: 18px; }

/* magnetic buttons with a shine sweep */
.btn.magnet { transition: transform .18s var(--ease), translate .35s var(--ease), background .18s, box-shadow .18s, border-color .18s; }
.btn.shine { overflow: hidden; isolation: isolate; }
.btn.shine::after { content: ''; position: absolute; top: -10%; bottom: -10%; left: -45%; width: 32%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16) 35%, rgba(216, 243, 106, .42) 50%, rgba(255, 255, 255, .16) 65%, transparent); transform: skewX(-22deg); animation: shineSweep 4.2s 1.2s ease-in-out infinite; pointer-events: none; z-index: -1; }
.btn.shine > * { position: relative; }

/* stage: tilts with the cursor, layers move at their own depth */
.stage { position: relative; height: 624px; perspective: 1400px; }
.stage-3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(var(--py, 0) * -4deg)) rotateY(calc(var(--px, 0) * 6deg)); }
.stage .disc { position: absolute; inset: 44px 24px 44px 54px; border-radius: 48px; background: linear-gradient(150deg, #e6efd9, #dbe7f3 60%, #f3e4ea); transform: rotate(-8deg) translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -10px), 0); overflow: hidden; }
.stage .disc::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(18, 21, 18, .16) 1.1px, transparent 1.6px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%); mask-image: linear-gradient(160deg, #000, transparent 70%); }
.layer { --d: 14; --rot: 0deg; transform: translate3d(calc(var(--px, 0) * var(--d) * 1px), calc(var(--py, 0) * var(--d) * 1px), 0) rotate(var(--rot)); }
.float-card { position: absolute; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-3); padding: 16px 18px; border: 1px solid rgba(226, 230, 222, .8); animation: floaty 6s ease-in-out infinite; }

/* orbits of the services DisputeShield talks to */
.orbit { --size: 360px; position: absolute; left: 50%; top: 52%; width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); border-radius: 50%; border: 1.5px dashed rgba(18, 21, 18, .13); animation: spin 46s linear infinite; }
.orbit.o2 { --size: 520px; animation-duration: 70s; animation-direction: reverse; border-style: solid; border-color: rgba(18, 21, 18, .07); }
.orbit .node { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px; transform: rotate(var(--a)) translateX(calc(var(--size) / 2)) rotate(calc(var(--a) * -1)); }
.orbit .node i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); animation: spin 46s linear infinite reverse; color: var(--ink); }
.orbit.o2 .node i { animation-duration: 70s; animation-direction: normal; }
.orbit .node svg { width: 19px; height: 19px; }
.orbit .node.pp i { background: #e8f0fe; color: #1e4fbf; }
.orbit .node.gm i { background: var(--lime); color: var(--lime-ink); }
.orbit .node.wh i { background: var(--sand); }
.orbit .node.pdf i { background: var(--rose); }
.orbit .node.sh i { background: var(--ink); color: var(--lime); border-color: transparent; }

/* the live queue window */
.win { --d: 10; --rot: -1.5deg; left: 0; top: 78px; width: 84%; padding: 0; overflow: hidden; border-radius: 20px; animation-delay: -1s; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, var(--shadow-3), 0 30px 70px -30px rgba(140, 180, 20, .45); }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f2b4b0; }
.win-bar i:nth-child(2) { background: #f3d58a; }
.win-bar i:nth-child(3) { background: #b9e3a5; }
.win-bar .url { margin-left: 10px; flex: 1; min-width: 0; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { position: relative; padding: 12px 12px 10px; overflow: hidden; }
.win-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 8px; }
.win-head b { font-size: 14px; font-weight: 600; }
.win-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.win-rows { display: grid; gap: 4px; }
.wr { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 12px; text-decoration: none; color: inherit; animation: rowIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + .2s); transition: background .2s; }
.wr:hover { background: var(--surface-2); }
.wr .st { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.wr .st.respond { background: var(--warn); box-shadow: 0 0 0 3px rgba(194, 124, 0, .15); }
.wr .st.review { background: var(--info); box-shadow: 0 0 0 3px rgba(47, 111, 237, .14); }
.wr .st.open { background: #8bb300; box-shadow: 0 0 0 3px rgba(139, 179, 0, .16); }
.wr .st.won { background: var(--good); box-shadow: 0 0 0 3px rgba(26, 154, 82, .14); }
.wr .st.lost { background: var(--bad); box-shadow: 0 0 0 3px rgba(224, 69, 75, .14); }
.wr-main { flex: 1; min-width: 0; display: grid; }
.wr-main b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-main small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-amt { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.wr .pill { height: 22px; padding: 0 9px; font-size: 11px; }
.wr.sk-row { animation: none; }
.wr .sk { border-radius: 6px; }
.wr .s-dot { width: 8px; height: 8px; border-radius: 50%; }
.wr .s-line { flex: 1; height: 26px; }
.wr .s-amt { width: 56px; height: 14px; }
.wr-empty { display: flex; align-items: center; gap: 10px; padding: 18px 10px; font-size: 13px; color: var(--muted); }
.wr-empty svg { width: 18px; height: 18px; color: var(--good); flex: none; }
.win-foot { margin-top: 8px; padding: 10px 8px 4px; border-top: 1px dashed var(--line); }
.win-foot .split { display: flex; gap: 3px; height: 8px; border-radius: 99px; overflow: hidden; }
.win-foot .split i { display: block; border-radius: 99px; transform-origin: left; animation: splitIn 1s .5s var(--ease) both; }
.win-foot .split i.won { background: var(--good); }
.win-foot .split i.lost { background: var(--bad); }
.win-foot .split i.open { background: var(--warn); }
.win-foot .split i.neutral { background: var(--surface-3); }
.win-foot .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.win-foot .nums small { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.win-foot .nums b { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.win-foot .s-foot { display: block; height: 40px; border-radius: 10px; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 70px; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(216, 243, 106, .28) 80%, rgba(176, 214, 40, .9) 98%, transparent); mix-blend-mode: multiply; animation: scan 4.8s cubic-bezier(.45, 0, .55, 1) infinite; opacity: .8; }

/* Gemini verdict card with a beam running around its border */
.fc-verdict { --d: 26; --rot: 4deg; right: 0; bottom: 22px; width: 240px; animation-delay: -3s; background: var(--ink); color: #fff; border-color: transparent; }
.fc-verdict .score { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.fc-verdict .score b { font-weight: 600; }
.fc-verdict .ring { --p: 0; width: 58px; height: 58px; flex: none; border-radius: 50%; background: conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(255, 255, 255, .14) 0); display: grid; place-items: center; animation: ringFill 1.6s .5s var(--ease) both; }
.fc-verdict .ring div { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font-weight: 700; color: var(--lime); }
.fc-verdict small { color: rgba(255, 255, 255, .62); }
.fc-verdict small .mono { font-size: 10.5px; color: rgba(255, 255, 255, .8); }
.beam { isolation: isolate; }
.beam::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--ang), transparent 0 58%, rgba(216, 243, 106, .15) 66%, var(--lime) 82%, #fff 86%, transparent 92%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spinAng 3.6s linear infinite; pointer-events: none; }
.beam::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 80% at 100% 0, rgba(216, 243, 106, .16), transparent 60%); pointer-events: none; z-index: -1; }

/* live activity toast */
.fc-toast { --d: 34; --rot: 2deg; right: -6px; top: 0; width: 266px; padding: 12px 14px; animation-delay: -4s; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.toast-head { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toast-head .ping { background: var(--good); }
.toast-body { display: flex; align-items: flex-start; gap: 10px; transition: opacity .3s, transform .3s var(--ease); }
.toast-body.out { opacity: 0; transform: translateY(-6px); }
.toast-body .ti { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--sky); flex: none; }
.toast-body .ti.ai { background: var(--lime); }
.toast-body .ti.success { background: var(--mint); }
.toast-body .ti svg { width: 16px; height: 16px; }
.toast-body .tt { display: grid; gap: 2px; min-width: 0; }
.toast-body .tt b { font-size: 12.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toast-body .tt small { font-size: 11px; color: var(--muted); }

/* respond-by countdown chip */
.fc-chip { padding: 10px 14px; border-radius: 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.fc-chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lime); flex: none; }
.fc-chip .ic svg { width: 16px; height: 16px; }
.fc-deadline { --d: 22; --rot: -3deg; left: 1%; bottom: 6px; max-width: 46%; animation-delay: -5s; }
.fc-deadline .ic { background: var(--rose); }
.fc-deadline .dl { display: grid; line-height: 1.25; }
.fc-deadline .dl small { font-size: 11px; color: var(--muted); }
.fc-deadline .dl b { font-size: 15px; font-weight: 600; }
.fc-deadline .cd { font-family: var(--mono); font-size: 15px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.marquee { position: relative; overflow: hidden; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.marquee .track { display: flex; gap: 14px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .item { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 500; white-space: nowrap; }
.marquee .item .star { color: var(--lime-2); font-size: 16px; }
.lsec { padding: clamp(56px, 8vw, 100px) 0; position: relative; }
.lsec .kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; }
.lsec h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.04em; line-height: 1.04; font-weight: 600; margin: 14px 0 12px; max-width: 760px; }
.lsec .sub { color: var(--muted); font-size: 17px; max-width: 620px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; position: relative; }
.flow .fstep { padding: 22px; position: relative; }
.flow .fstep .no { font-size: 13px; font-weight: 600; color: var(--muted); }
.flow .fstep .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--lime); margin: 14px 0 16px; }
.flow .fstep:nth-child(2) .ic { background: var(--sky); }
.flow .fstep:nth-child(3) .ic { background: var(--lav); }
.flow .fstep:nth-child(4) .ic { background: var(--mint); }
.flow .fstep .ic svg { width: 24px; height: 24px; }
.flow .fstep h3 { font-size: 18px; font-weight: 500; }
.flow .fstep p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 40px; }
.bento .card { padding: 26px; position: relative; overflow: hidden; }
.bento .b-a { grid-column: span 4; min-height: 260px; }
.bento .b-b { grid-column: span 2; }
.bento .b-c { grid-column: span 2; }
.bento .b-d { grid-column: span 2; }
.bento .b-e { grid-column: span 2; }
.bento h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.bento p { color: var(--muted); margin-top: 8px; max-width: 460px; }
.bento .card.ink p { color: rgba(255, 255, 255, .7); }
.bento .card.lime p { color: rgba(29, 38, 0, .72); }
.api-list { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 16px; }
.api-list span { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-family: var(--mono); overflow-wrap: anywhere; }
.api-list span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none; }
.mini-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.rotor { position: absolute; width: 132px; height: 132px; display: grid; place-items: center; }
.rotor svg.text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.rotor .core { width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-size: 22px; text-decoration: none; transition: transform .2s var(--ease); }
.rotor .core:hover { transform: scale(1.06); }
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 500; font-size: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; transition: transform .25s var(--ease), background .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }
.cta-band { border-radius: 36px; padding: clamp(32px, 5vw, 56px); background: var(--ink); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(216, 243, 106, .45), transparent 65%); }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255, 255, 255, .7); margin-top: 12px; }
.cta-band .ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; position: relative; }
.lfoot { padding: 36px 0 44px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lfoot a { color: var(--muted); }

/* ---------- login / setup ---------- */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.setup-card { width: min(520px, 100%); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.setup-card h2 { font-size: 26px; font-weight: 500; }
.setup-card ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- skeleton ---------- */
.sk { border-radius: 14px; background: linear-gradient(110deg, var(--surface-3) 30%, #f7f9f4 50%, var(--surface-3) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* ---------- keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(26, 154, 82, .45); } 70% { box-shadow: 0 0 0 8px rgba(26, 154, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(26, 154, 82, 0); } }
@keyframes breathe { 50% { transform: scale(.9); opacity: .6; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .5; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
@keyframes underline { from { transform: scaleX(0); } }
@keyframes grow { from { width: 0; } }
@keyframes spinAng { to { --ang: 360deg; } }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes shineSweep { 0% { left: -45%; } 40%, 100% { left: 135%; } }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes scan { from { top: -30%; } to { top: 105%; } }
@keyframes ringFill { from { --p: 0; } }
@keyframes splitIn { from { transform: scaleX(0); } }
@keyframes ringIn { from { transform: rotate(-90deg) scale(.7); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .col-3, .col-4, .col-5, .col-7 { grid-column: span 6; }
  .col-7.wide, .col-8 { grid-column: span 12; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  :root { --side-w: 0px; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; transform: translateX(-105%); transition: transform .3s var(--ease); }
  .side.open { transform: none; }
  .side-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(18, 21, 18, .3); animation: fade .2s ease; }
  .main { padding: 12px 18px 100px; }
  .menu-btn { display: inline-grid; }
  .hero { grid-template-columns: 1fr; }
  .stage { width: min(100%, 600px); margin: 8px auto 0; height: 624px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .bento .b-a, .bento .b-b, .bento .b-c, .bento .b-d, .bento .b-e { grid-column: span 3; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .ctas { justify-content: flex-start; }
  .tabbar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50; display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(18, 21, 18, .92); backdrop-filter: blur(12px); box-shadow: var(--shadow-3); }
  .tabbar a { display: grid; place-items: center; gap: 2px; width: 64px; height: 52px; border-radius: 999px; color: rgba(255, 255, 255, .65); text-decoration: none; font-size: 10.5px; font-weight: 500; transition: background .2s, color .2s; }
  .tabbar a svg { width: 19px; height: 19px; }
  .tabbar a.active { background: var(--lime); color: var(--lime-ink); }
}
@media (max-width: 760px) {
  .col-4, .col-5, .col-6, .col-7, .col-3 { grid-column: span 12; }
  .lnav .links { display: none; }
  .rotor { display: none; }
  .proof { gap: 16px; }
  .proof div b { font-size: 22px; }
  .page-head h1 { font-size: 28px; }
  .topbar .search { display: none; }
  .steps { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .b-a, .bento .b-b, .bento .b-c, .bento .b-d, .bento .b-e { grid-column: auto; }
  .api-list { grid-template-columns: 1fr; }
  .stage { height: 632px; }
  .win { width: 100%; top: 72px; --rot: 0deg; }
  .fc-toast { width: min(250px, 74%); right: 0; }
  .fc-verdict { width: min(240px, 68%); bottom: 80px; padding: 14px 16px; }
  .fc-verdict .score { margin-top: 8px; }
  .fc-verdict .score > div:last-child br, .fc-verdict .score > div:last-child small { display: none; }
  .fc-verdict .ring { width: 50px; height: 50px; }
  .fc-verdict .ring div { width: 38px; height: 38px; }
  .fc-deadline { left: 0; bottom: 0; max-width: 80%; }
  .orbit { --size: 300px; }
  .orbit.o2 { --size: 440px; }
  .rotline > span:first-child { flex-basis: 100%; }
  .lists, .form-grid, .health { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .pay-row { flex-direction: column; align-items: stretch; padding: 16px; }
  .pay-actions { justify-content: flex-start; }
  .toolbar .search { width: 100%; }
  .case-hero .deadline { text-align: left; }
  .donut { width: 150px; height: 150px; }
}
@media (max-width: 420px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .val { font-size: 22px; }
  .tabbar a { width: 56px; }
  .hero .ctas { flex-direction: column; align-items: stretch; }
  .hero .ctas .btn { width: 100%; }
  .hero .live { border-radius: 18px; font-size: 12.5px; align-items: flex-start; }
  .hero .live .chev { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .bar .col { transform: none; }
  .scan, .hero-bg .grid.hi, .btn.shine::after { display: none; }
}
