/* Treackly v6 — "Agent" design system. One stylesheet; replaces the v0.2–v0.5 layers. */
@font-face { font-family: Manrope; src: url("assets/fonts/manrope-variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f2f1ec; --bg-2: #e9e7e0; --surface: #ffffff; --surface-2: #f6f5f1; --surface-3: #efede7;
  --ink: #121318; --ink-2: #2c2e36; --muted: #696c75; --faint: #a2a4ac; --line: #e7e5de; --line-2: #d8d5cc;
  --lime: #d6f25a; --lime-2: #eaf9a8; --lime-ink: #1d2600;
  --violet: #6b5be6; --violet-2: #9a8fff; --lilac: #ece8ff; --peach: #ffb497; --peach-2: #fff0e8; --mint: #d6f5e3; --sky: #dcecff;
  --good: #1b8f59; --good-bg: #e2f6ea; --bad: #cf4436; --bad-bg: #fde8e5; --warn-bg: #fff4dc; --warn: #9a6400;
  --on-ink: #ffffff;
  --glass: rgba(255,255,255,.78); --glass-line: rgba(18,19,24,.08);
  --r-xl: 30px; --r-l: 24px; --r: 18px; --r-s: 13px; --r-xs: 10px;
  --sh-1: 0 1px 2px rgba(18,19,24,.05), 0 6px 18px rgba(18,19,24,.05);
  --sh-2: 0 14px 40px rgba(18,19,24,.12);
  --sh-3: 0 30px 80px rgba(18,19,24,.18);
  --ease: cubic-bezier(.22,1,.36,1); --ease-in: cubic-bezier(.55,0,.75,.2); --spring: cubic-bezier(.34,1.5,.64,1);
  --orb: conic-gradient(from var(--orb-angle, 0deg), #7b6bff, #b6a8ff, #d6f25a, #ffb497, #7b6bff);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c0f; --bg-2: #101115; --surface: #16171c; --surface-2: #1c1d23; --surface-3: #23242b;
  --ink: #f3f3f0; --ink-2: #d6d7dc; --muted: #989ba5; --faint: #61646e; --line: #25262d; --line-2: #32333b;
  --lime: #d6f25a; --lime-2: #2b3311; --violet: #9a8fff; --violet-2: #b9b1ff; --lilac: #221f3a; --peach-2: #2c1d17; --mint: #12281d; --sky: #142233;
  --good: #4fd394; --good-bg: #10261b; --bad: #ff7a6b; --bad-bg: #2d1613; --warn-bg: #2a2111; --warn: #f2c063;
  --on-ink: #0b0c0f;
  --glass: rgba(22,23,28,.78); --glass-line: rgba(255,255,255,.08);
  --sh-1: 0 1px 2px rgba(0,0,0,.4); --sh-2: 0 14px 40px rgba(0,0,0,.45); --sh-3: 0 30px 80px rgba(0,0,0,.6);
}
@property --orb-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 500 15px/1.45 Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg-2); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sr-only, .assistant-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 2px; border-radius: 10px; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Desktop presentation ---------- */
.layout { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); min-height: 100dvh; }
.intro { position: sticky; top: 0; height: 100dvh; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; background: #111216; color: #f4f4f0; overflow: hidden; isolation: isolate; }
.intro::before { content: ""; position: absolute; inset: auto -30% -25% -30%; height: 70%; background: radial-gradient(closest-side, rgba(123,107,255,.55), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(214,242,90,.35), transparent 70%); filter: blur(30px); z-index: -1; animation: drift 14s var(--ease) infinite alternate; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; }
.intro-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.intro-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(214,242,90,.2); animation: pulse 2s infinite; }
.intro h1 { margin: 22px 0 18px; font-size: clamp(40px, 4vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -.06em; }
.intro h1 em { font-style: normal; background: linear-gradient(90deg, #b9b0ff, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro p { color: #b9bac2; max-width: 330px; line-height: 1.6; }
.intro-features { display: grid; gap: 10px; margin-top: 30px; }
.intro-feature { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); font-size: 13px; color: #e4e4ea; }
.intro-feature span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(214,242,90,.14); color: var(--lime); }
.intro-bottom { display: flex; justify-content: space-between; font-size: 11px; color: #7e808a; }
.stage { display: grid; place-items: center; padding: 32px; min-width: 0; background: radial-gradient(1200px 600px at 60% 0%, var(--bg), var(--bg-2)); }
.phone { position: relative; width: 402px; height: min(874px, calc(100dvh - 64px)); min-height: 640px; border-radius: 54px; background: var(--bg); box-shadow: 0 0 0 10px #18191d, 0 0 0 11px #3a3c43, var(--sh-3); overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.tg-bar { flex: none; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; height: 58px; padding: 10px 22px 0; font-size: 13px; font-weight: 700; background: var(--bg); position: relative; z-index: 5; }
.tg-bar .tg-title { text-align: center; line-height: 1.1; }
.tg-bar .tg-title small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.tg-bar .tg-dots { justify-self: end; letter-spacing: 1px; }
.app { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; background: var(--bg); view-transition-name: screen; }
.app::-webkit-scrollbar { display: none; }
.app:focus { outline: none; }

/* ---------- Primitives ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-weight: 750; font-size: 15px; letter-spacing: -.01em; transition: transform .25s var(--spring), background .2s, box-shadow .2s, opacity .2s; text-decoration: none; white-space: nowrap; }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn:disabled { opacity: .4; }
.btn.block { width: 100%; }
.btn.lime { background: var(--lime); color: var(--lime-ink); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.soft { background: var(--surface-3); color: var(--ink); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--spring), background .2s; flex: none; }
.icon-btn:active { transform: scale(.9); }
.icon-btn.glass { background: var(--glass); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--glass-line); }
.text-btn { color: var(--violet); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; font-size: 13.5px; white-space: nowrap; transition: background .2s, color .2s, transform .25s var(--spring); }
.chip:active { transform: scale(.95); }
.chip.active, .chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px; scroll-padding: 20px; }
.chips::-webkit-scrollbar { display: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 750; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.badge.sample { background: var(--warn-bg); color: var(--warn); }
.badge.own { background: var(--lilac); color: var(--violet); }
.pill-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pill-status .icon { width: 14px; height: 14px; }
.pill-status.good { color: var(--good); }
.delta { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 8px; font-size: 12px; font-weight: 800; background: var(--good-bg); color: var(--good); }
.delta.up { background: var(--bad-bg); color: var(--bad); }
.segmented { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 16px; background: var(--surface-3); }
.segmented button { position: relative; z-index: 1; height: 40px; border-radius: 12px; font-weight: 700; font-size: 13.5px; color: var(--muted); transition: color .2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.segmented button[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: var(--sh-1); }
.segmented .icon { width: 17px; height: 17px; }

/* ---------- Screen scaffolding ---------- */
.screen { padding: 8px 20px 120px; min-height: 100%; }
.screen.detail { padding-bottom: 0; }
.screen.form-screen { padding-bottom: 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 18px; }
.topbar .eyebrow { font-size: 13px; color: var(--muted); font-weight: 650; }
.title-xl { font-size: 34px; line-height: 1.02; font-weight: 800; letter-spacing: -.05em; }
.title-l { font-size: 26px; line-height: 1.08; font-weight: 800; letter-spacing: -.045em; }
.title-m { font-size: 19px; line-height: 1.2; font-weight: 780; letter-spacing: -.03em; }
.lead { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.section-head small { display: block; font-size: 11px; font-weight: 750; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; margin-bottom: 3px; }
.nav-head { display: flex; align-items: center; gap: 12px; padding: 6px 0 16px; }
.nav-head h1 { font-size: 20px; font-weight: 800; letter-spacing: -.03em; flex: 1; }
.card { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--sh-1); }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 13px 14px; border-radius: 16px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.note .icon { width: 17px; height: 17px; margin-top: 1px; color: var(--faint); }
.help { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 8px; }
.screen.is-entering.stagger > *, .screen.is-entering .stagger > * { animation: rise .6s var(--ease) both; animation-delay: calc(min(var(--i, 0), 10) * 45ms); }
.screen .action-bar, .screen.is-entering .action-bar { animation: bar-in .5s .15s var(--ease) both; }

/* ---------- Product art ---------- */
.art { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: var(--tone, var(--lilac)); isolation: isolate; flex: none; }
.art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 30% 0%, rgba(255,255,255,.55), transparent 55%); pointer-events: none; z-index: 1; mix-blend-mode: soft-light; }
.art img.cutout { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0,0,0,.18)); }
.art img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art .mono { font-size: 30px; font-weight: 800; letter-spacing: -.06em; color: rgba(18,19,24,.78); }
.art .mono-icon { position: absolute; right: 9px; bottom: 9px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.55); color: rgba(18,19,24,.75); }
.art .mono-icon .icon { width: 15px; height: 15px; }
:root[data-theme="dark"] .art .mono { color: rgba(255,255,255,.88); }
:root[data-theme="dark"] .art .mono-icon { background: rgba(0,0,0,.25); color: #fff; }
.tone-0 { --tone: #ece8ff; } .tone-1 { --tone: #ffe9df; } .tone-2 { --tone: #dcf4e6; } .tone-3 { --tone: #dceaff; } .tone-4 { --tone: #f1f8c9; } .tone-5 { --tone: #f6e2f2; }
:root[data-theme="dark"] .tone-0 { --tone: #25223f; } :root[data-theme="dark"] .tone-1 { --tone: #33231c; } :root[data-theme="dark"] .tone-2 { --tone: #142c21; } :root[data-theme="dark"] .tone-3 { --tone: #172638; } :root[data-theme="dark"] .tone-4 { --tone: #2a3014; } :root[data-theme="dark"] .tone-5 { --tone: #321f30; }

/* ---------- Product cards ---------- */
.row-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px; margin-bottom: 10px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); text-align: left; transition: transform .3s var(--spring), box-shadow .2s; }
.row-card:active { transform: scale(.98); }
.row-card .art { width: 76px; height: 76px; }
.row-card .art .mono { font-size: 24px; }
.row-card .info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.row-card .info h3 { font-size: 15px; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row-card .meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); font-weight: 650; }
.row-card .price { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.row-card .spark { width: 56px; height: 30px; color: var(--good); flex: none; margin-right: 4px; }
.row-card .spark.rising { color: var(--bad); }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile-card { display: flex; flex-direction: column; width: 100%; padding: 8px 8px 14px; border-radius: 24px; background: var(--surface); box-shadow: var(--sh-1); text-align: left; transition: transform .3s var(--spring); min-width: 0; }
.tile-card:active { transform: scale(.97); }
.tile-card .art { width: 100%; aspect-ratio: 1 / 1.02; border-radius: 18px; }
.tile-card .art .badge { position: absolute; left: 8px; top: 8px; z-index: 2; }
.tile-card .body { padding: 10px 6px 0; display: grid; gap: 4px; }
.tile-card h3 { font-size: 14px; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-card .price { font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.progress { position: relative; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--violet), var(--violet-2)); border-radius: inherit; transition: transform .9s var(--ease); }
.progress.done > span { background: linear-gradient(90deg, #39c27f, var(--lime)); }
.add-tile { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 220px; border-radius: 24px; border: 1.5px dashed var(--line-2); color: var(--muted); font-weight: 700; font-size: 13.5px; text-align: center; padding: 16px; transition: background .2s, transform .3s var(--spring); }
.add-tile:active { transform: scale(.97); }
.add-tile span.plus { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); }

/* ---------- Bottom navigation ---------- */
.bottom-nav { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: 70px; padding: 0 6px; border-radius: 28px; background: var(--glass); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--glass-line), var(--sh-2); transition: transform .45s var(--ease), opacity .3s; view-transition-name: nav; }
.bottom-nav.is-hidden { transform: translateY(130%); opacity: 0; pointer-events: none; }
.nav-item { position: relative; z-index: 1; display: grid; justify-items: center; gap: 3px; height: 58px; align-content: center; border-radius: 20px; font-size: 10.5px; font-weight: 700; color: var(--muted); transition: color .25s; }
.nav-item .icon { width: 23px; height: 23px; transition: transform .35s var(--spring); }
.nav-item.active { color: var(--ink); }
.nav-item.active .icon { transform: translateY(-1px) scale(1.06); }
.nav-item:active .icon { transform: scale(.85); }
.nav-pill { position: absolute; top: 6px; left: 6px; width: calc((100% - 12px) / 5); height: 58px; border-radius: 22px; background: var(--surface-3); transform: translateX(calc(var(--x, 0) * 100%)); transition: transform .5s var(--spring), opacity .2s; view-transition-name: nav-pill; }
.bottom-nav[data-agent="true"] .nav-pill { opacity: 0; }
.nav-agent { position: relative; z-index: 2; justify-self: center; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; margin-top: -26px; background: #121318; box-shadow: 0 10px 26px rgba(107,91,230,.45), 0 0 0 5px var(--bg); transition: transform .35s var(--spring); }
.nav-agent:active { transform: scale(.9); }
.nav-agent .orb { width: 40px; height: 40px; }
.nav-agent.active { box-shadow: 0 10px 30px rgba(107,91,230,.65), 0 0 0 5px var(--bg), 0 0 0 7px var(--violet); }

/* ---------- The agent orb ---------- */
.orb { position: relative; display: block; border-radius: 50%; background: var(--orb); animation: orb-spin 6s linear infinite; filter: saturate(1.2); }
.orb::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, rgba(255,255,255,.75) 18%, transparent 60%); mix-blend-mode: soft-light; }
.orb::after { content: ""; position: absolute; inset: -18%; border-radius: 50%; background: inherit; filter: blur(14px); opacity: .55; z-index: -1; }
.orb.thinking { animation: orb-spin 1.4s linear infinite, orb-breathe 1.2s var(--ease) infinite alternate; }

/* ---------- Home ---------- */
.home-top { display: flex; align-items: center; gap: 12px; padding: 4px 0 18px; }
.home-top .who { flex: 1; min-width: 0; }
.home-top .who small { display: block; color: var(--muted); font-size: 13px; font-weight: 650; }
.home-top .who strong { font-size: 26px; font-weight: 800; letter-spacing: -.05em; line-height: 1.1; }
.ask-bar { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border-radius: 24px; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.ask-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 2px; text-align: left; border-radius: 18px; transition: transform .3s var(--spring); }
.ask-main:active { transform: scale(.98); }
.ask-cam { transition: transform .3s var(--spring); }
.ask-cam:active { transform: scale(.9); }
.ask-bar .orb { width: 38px; height: 38px; flex: none; }
.ask-bar .ask-copy { flex: 1; min-width: 0; }
.ask-bar .ask-copy strong { display: block; font-size: 14.5px; font-weight: 750; }
.ask-bar .ask-copy span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-bar .ask-cam { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; background: var(--ink); color: var(--on-ink); flex: none; }
.ask-prompts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px -20px 0; padding: 0 20px; }
.ask-prompts::-webkit-scrollbar { display: none; }
.ask-prompts button { flex: none; height: 34px; padding: 0 13px; border-radius: 99px; background: var(--surface-3); font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.ask-prompts .icon { width: 15px; height: 15px; color: var(--violet); }
.hero { position: relative; display: block; width: 100%; margin-top: 18px; padding: 22px; min-height: 236px; border-radius: var(--r-xl); background: #15161b; color: #fff; overflow: hidden; text-align: left; isolation: isolate; transition: transform .35s var(--spring); }
.hero:active { transform: scale(.985); }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(123,107,255,.75), transparent); filter: blur(10px); z-index: -1; animation: drift 9s var(--ease) infinite alternate; }
.hero::after { content: ""; position: absolute; inset: auto auto -50% -20%; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(214,242,90,.35), transparent); z-index: -1; }
.hero.reached::before { background: radial-gradient(closest-side, rgba(214,242,90,.7), transparent); }
.hero .hero-kicker { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.hero .hero-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.hero .hero-label { display: block; margin-top: 18px; color: #a9abb5; font-size: 13px; font-weight: 650; }
.hero .hero-amount { display: block; margin-top: 2px; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.055em; }
.hero .hero-name { display: block; margin-top: 8px; max-width: 54%; font-size: 14px; font-weight: 700; color: #e6e6ea; line-height: 1.3; }
.hero .hero-art { position: absolute; right: 8px; top: 30px; width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; }
.hero .hero-art .art { width: 132px; height: 132px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero .hero-art .art::after { display: none; }
.hero .hero-art .art .mono { color: #fff; }
.hero .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.hero .ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.hero .ring .track { stroke: rgba(255,255,255,.1); }
.hero .ring .value { stroke: var(--lime); stroke-dasharray: 100 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transition: stroke-dashoffset 1.2s var(--ease); }
.hero .hero-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; font-weight: 650; color: #cfd0d6; }
.hero .hero-foot b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.metric { display: grid; gap: 2px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); text-align: left; transition: transform .3s var(--spring); }
.metric:active { transform: scale(.96); }
.metric strong { font-size: 26px; font-weight: 800; letter-spacing: -.05em; line-height: 1.05; }
.metric span { font-size: 11.5px; font-weight: 650; color: var(--muted); }
.metric .icon { width: 18px; height: 18px; color: var(--violet); margin-bottom: 6px; }
.metric.good .icon { color: var(--good); }
.shortcut { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 12px; padding: 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); text-align: left; transition: transform .3s var(--spring); }
.shortcut:active { transform: scale(.98); }
.shortcut .sc-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--lilac); color: var(--violet); flex: none; }
.shortcut .sc-icon.lime { background: var(--lime-2); color: var(--lime-ink); }
:root[data-theme="dark"] .shortcut .sc-icon.lime { color: var(--lime); }
.shortcut .sc-copy { flex: 1; min-width: 0; }
.shortcut strong { display: block; font-size: 15px; font-weight: 750; }
.shortcut small { display: block; font-size: 12.5px; color: var(--muted); }
.shortcut > .icon { color: var(--faint); }
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 34px 20px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-1); }
.empty .empty-art { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; background: var(--lilac); color: var(--violet); margin-bottom: 6px; }
.empty .empty-art .icon { width: 34px; height: 34px; }
.empty h3 { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.empty p { color: var(--muted); font-size: 14px; max-width: 280px; }
.empty .btn { margin-top: 8px; }
.onboard { position: relative; margin-top: 18px; padding: 24px 22px; border-radius: var(--r-xl); background: #15161b; color: #fff; overflow: hidden; isolation: isolate; }
.onboard::before { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(123,107,255,.7), transparent); z-index: -1; }
.onboard h2 { font-size: 28px; font-weight: 800; letter-spacing: -.05em; line-height: 1.05; }
.onboard p { color: #b6b8c1; margin-top: 10px; font-size: 14px; }
.onboard ol { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; counter-reset: s; }
.onboard li { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: #e4e4ea; counter-increment: s; }
.onboard li::before { content: "0" counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 11px; font-weight: 800; color: var(--lime); }
.onboard .btns { display: flex; gap: 8px; margin-top: 22px; }

/* ---------- Watch ---------- */
.search { position: sticky; top: 0; z-index: 4; margin: 0 -20px; padding: 6px 20px 12px; background: linear-gradient(var(--bg) 78%, transparent); }
.search-field { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.search-field:focus-within { box-shadow: inset 0 0 0 2px var(--violet); }
.search-field .icon { color: var(--faint); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-weight: 600; }
.search-field input::placeholder { color: var(--faint); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 12px; }
.toolbar .count { font-size: 13px; color: var(--muted); font-weight: 650; }
.toolbar .right { display: flex; gap: 8px; align-items: center; }
.select { appearance: none; height: 36px; padding: 0 30px 0 12px; border-radius: 12px; border: 0; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; font-size: 13px; }
.view-toggle { display: flex; padding: 3px; border-radius: 12px; background: var(--surface-3); }
.view-toggle button { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 9px; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.view-toggle .icon { width: 17px; height: 17px; }
.fab { position: absolute; right: 20px; bottom: 100px; z-index: 15; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 20px; background: var(--lime); color: var(--lime-ink); box-shadow: 0 12px 30px rgba(140,170,20,.35); transition: transform .35s var(--spring); }
.fab:active { transform: scale(.9) rotate(90deg); }
.fab .icon { width: 26px; height: 26px; stroke-width: 2.4; }

/* ---------- Product detail ---------- */
.p-hero { position: relative; margin: -8px -20px 0; height: 340px; display: grid; place-items: center; overflow: hidden; }
.p-hero .art { position: absolute; inset: 0; border-radius: 0; }
.p-hero .art img.cutout { width: 72%; height: 72%; animation: float 6s ease-in-out infinite; }
.p-hero .art .mono { font-size: 96px; }
.p-hero .art .mono-icon { display: none; }
.p-hero .p-hero-bar { position: absolute; top: 10px; left: 16px; right: 16px; z-index: 3; display: flex; justify-content: space-between; }
.p-hero .badge { position: absolute; left: 20px; bottom: 44px; z-index: 3; }
.p-body { position: relative; z-index: 2; margin: -30px -20px 0; padding: 24px 20px 0; border-radius: 30px 30px 0 0; background: var(--bg); }
.p-cat { font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.p-name { margin-top: 6px; font-size: 26px; line-height: 1.12; font-weight: 800; letter-spacing: -.045em; }
.p-price { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 16px; }
.p-price small { display: block; font-size: 12px; color: var(--muted); font-weight: 650; }
.p-price strong { display: block; font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -.055em; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.p-meta span, .p-meta a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.p-meta a { color: var(--violet); font-weight: 700; }
.p-meta .icon { width: 15px; height: 15px; }
.goal-card { display: block; width: 100%; margin-top: 18px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); text-align: left; transition: transform .3s var(--spring); }
.goal-card:active { transform: scale(.985); }
.goal-card .gc-top { display: flex; align-items: center; gap: 12px; }
.goal-card .gc-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--lilac); color: var(--violet); flex: none; }
.goal-card.reached .gc-icon { background: var(--good-bg); color: var(--good); }
.goal-card .gc-copy { flex: 1; min-width: 0; }
.goal-card strong { display: block; font-size: 15px; font-weight: 750; }
.goal-card small { display: block; font-size: 12.5px; color: var(--muted); }
.goal-card .progress { margin-top: 14px; }
.goal-card > .gc-top > .icon { color: var(--faint); }
.chart-card { margin-top: 12px; padding: 16px 16px 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chart-head h3 { font-size: 15px; font-weight: 750; }
.range { display: flex; padding: 3px; border-radius: 11px; background: var(--surface-3); }
.range button { height: 28px; padding: 0 9px; border-radius: 8px; font-size: 12px; font-weight: 750; color: var(--muted); }
.range button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.chart-wrap { position: relative; margin-top: 12px; touch-action: pan-y; }
.chart { display: block; width: 100%; height: 150px; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 5; }
.chart .area { fill: url(#chartFill); }
.chart .line { fill: none; stroke: var(--violet); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chart .dot { fill: var(--surface); stroke: var(--violet); stroke-width: 2.2; }
.chart .dot.last { fill: var(--violet); }
.chart .target-line { stroke: var(--good); stroke-width: 1.5; stroke-dasharray: 5 5; }
.chart .guide { stroke: var(--ink); stroke-width: 1; opacity: 0; transition: opacity .15s; }
.chart .cursor { fill: var(--ink); stroke: var(--surface); stroke-width: 3; opacity: 0; transition: opacity .15s; }
.chart-wrap.scrubbing .guide, .chart-wrap.scrubbing .cursor { opacity: 1; }
.chart-tip { position: absolute; top: -6px; transform: translateX(-50%); padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 750; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.chart-tip small { display: block; font-size: 10.5px; font-weight: 600; opacity: .7; }
.chart-wrap.scrubbing .chart-tip { opacity: 1; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--faint); font-weight: 650; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stats div { padding: 10px; border-radius: 14px; background: var(--surface-2); }
.stats small { display: block; font-size: 11px; color: var(--muted); font-weight: 650; }
.stats b { font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.chart-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 10px 14px; text-align: center; color: var(--muted); font-size: 13px; }
.chart-empty .icon { width: 28px; height: 28px; color: var(--faint); }
.chart-empty strong { color: var(--ink); font-size: 14.5px; }
.offers { display: grid; gap: 8px; }
.offer { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); }
.offer.best { box-shadow: inset 0 0 0 2px var(--lime), var(--sh-1); }
.offer .o-rank { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--surface-3); font-size: 12px; font-weight: 800; flex: none; }
.offer.best .o-rank { background: var(--lime); color: var(--lime-ink); }
.offer .o-main { flex: 1; min-width: 0; }
.offer .o-main strong { display: block; font-size: 14.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer .o-main small { display: block; font-size: 12px; color: var(--muted); }
.offer .o-main a { font-size: 12px; font-weight: 700; color: var(--violet); text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.offer .o-main a .icon { width: 13px; height: 13px; }
.offer .o-total { text-align: right; }
.offer .o-total b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.offer .o-total small { font-size: 11px; color: var(--muted); }
.offer .icon-btn { width: 34px; height: 34px; box-shadow: none; background: var(--surface-3); }
.offer .icon-btn .icon { width: 16px; height: 16px; }
.history { margin-top: 12px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.history summary { display: flex; align-items: center; justify-content: space-between; padding: 16px; font-weight: 750; cursor: pointer; list-style: none; }
.history summary::-webkit-details-marker { display: none; }
.history summary span { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 9px; background: var(--surface-3); font-size: 12px; }
.history .h-row { display: flex; justify-content: space-between; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.history .h-row span { color: var(--muted); }
.agent-cta { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 12px; padding: 16px; border-radius: 22px; background: #15161b; color: #fff; text-align: left; overflow: hidden; isolation: isolate; transition: transform .3s var(--spring); }
.agent-cta::before { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(123,107,255,.6), transparent); z-index: -1; }
.agent-cta:active { transform: scale(.985); }
.agent-cta .orb { width: 42px; height: 42px; flex: none; }
.agent-cta strong { display: block; font-size: 15px; font-weight: 750; }
.agent-cta small { display: block; font-size: 12.5px; color: #b6b8c1; }
.agent-cta > div { flex: 1; }
.list-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; transition: background .2s; }
.list-btn + .list-btn { border-top: 1px solid var(--line); }
.list-btn .lb-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-3); flex: none; }
.list-btn .lb-icon.danger { background: var(--bad-bg); color: var(--bad); }
.list-btn .lb-copy { flex: 1; min-width: 0; }
.list-btn strong { display: block; font-size: 14.5px; font-weight: 700; }
.list-btn small { display: block; font-size: 12.5px; color: var(--muted); }
.list-btn > .icon { color: var(--faint); }
.list-card { border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.action-bar { position: sticky; bottom: 0; z-index: 18; display: flex; gap: 10px; margin: 18px -20px 0; padding: 18px 16px max(20px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 34%); animation: bar-in .5s var(--ease) both; }
.action-bar .btn { flex: 1; }
.action-bar .btn.soft { flex: 0 0 auto; }

/* ---------- Forms ---------- */
.form-hero { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); margin-bottom: 18px; }
.form-hero .art { width: 64px; height: 64px; border-radius: 16px; }
.form-hero .art .mono { font-size: 20px; }
.form-hero .art .mono-icon { display: none; }
.form-hero strong { display: block; font-size: 15px; font-weight: 750; line-height: 1.25; }
.form-hero small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.form-intro { margin-bottom: 20px; }
.form-intro .title-l { margin-bottom: 6px; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 6px; }
.form-label { font-size: 12.5px; font-weight: 750; color: var(--muted); padding-left: 4px; }
.field { width: 100%; height: 54px; padding: 0 16px; border-radius: 16px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; font-size: 16px; outline: 0; transition: box-shadow .2s; appearance: none; }
select.field { background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field:focus { box-shadow: inset 0 0 0 2px var(--violet); }
.field::placeholder { color: var(--faint); font-weight: 600; }
.field[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--bad); animation: shake .4s var(--ease); }
.field-error { color: var(--bad); font-size: 12.5px; font-weight: 650; padding-left: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.money-field { position: relative; }
.money-field .field { padding-right: 36px; }
.money-field::after { content: "₴"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); font-weight: 750; pointer-events: none; }
.big-amount { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 24px 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--sh-1); }
.big-amount .field, .big-amount input { width: 100%; height: auto; padding: 0; border: 0; outline: 0; box-shadow: none; background: none; text-align: center; font-size: 46px; font-weight: 800; letter-spacing: -.055em; border-radius: 0; }
.big-amount:focus-within { box-shadow: inset 0 0 0 2px var(--violet), var(--sh-1); }
.big-amount:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--bad); animation: shake .4s var(--ease); }
.big-amount input::placeholder { color: var(--line-2); }
.big-amount span { position: absolute; right: 18px; top: 18px; font-size: 13px; font-weight: 750; color: var(--faint); }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.presets button { flex: 1; min-width: 88px; display: grid; gap: 1px; padding: 10px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 800; font-size: 14px; transition: transform .25s var(--spring), background .2s; }
.presets button span { font-size: 11.5px; font-weight: 650; color: var(--muted); }
.presets button:active { transform: scale(.95); }
.presets button.active { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.presets button.active span { color: inherit; opacity: .7; }
.slider { width: 100%; accent-color: var(--violet); height: 28px; }
.preview { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); font-size: 13.5px; font-weight: 700; color: var(--muted); transition: background .25s, color .25s; }
.preview .icon { width: 18px; height: 18px; }
.preview.good { background: var(--good-bg); color: var(--good); }
.preview.bad { background: var(--bad-bg); color: var(--bad); }
.disclose { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.disclose summary { padding: 15px 16px; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.disclose summary::-webkit-details-marker { display: none; }
.disclose summary .icon { transition: transform .3s var(--ease); color: var(--faint); }
.disclose[open] summary .icon { transform: rotate(90deg); }
.disclose > div { padding: 0 14px 14px; }
.photo-field { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-field .pf-btn { display: grid; justify-items: center; gap: 8px; padding: 18px 10px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 750; transition: transform .25s var(--spring); }
.photo-field .pf-btn:active { transform: scale(.96); }
.photo-field .pf-btn span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: var(--lilac); color: var(--violet); }
.photo-field .pf-btn.primary span { background: var(--ink); color: var(--on-ink); }
.photo-preview { position: relative; grid-column: 1 / -1; height: 210px; border-radius: 22px; overflow: hidden; background: var(--surface-3); animation: pop .45s var(--spring); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview .pp-actions { position: absolute; right: 10px; top: 10px; display: flex; gap: 8px; }
.agent-hint { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-radius: 16px; background: var(--lilac); color: var(--ink-2); font-size: 13px; line-height: 1.45; margin-bottom: 16px; }
.agent-hint .orb { width: 22px; height: 22px; flex: none; }

/* ---------- Compare ---------- */
.pick-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 4px 20px 6px; scroll-snap-type: x proximity; scroll-padding: 0 20px; }
.pick-row::-webkit-scrollbar { display: none; }
.pick { position: relative; flex: 0 0 132px; scroll-snap-align: start; padding: 8px 8px 12px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); cursor: pointer; transition: transform .3s var(--spring), box-shadow .2s; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .art { width: 100%; aspect-ratio: 1; border-radius: 16px; }
.pick .art .mono { font-size: 24px; }
.pick strong { display: block; margin-top: 8px; padding: 0 4px; font-size: 13px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick small { display: block; padding: 0 4px; font-size: 12px; color: var(--muted); font-weight: 650; }
.pick .check { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.12); color: transparent; transition: background .2s, transform .3s var(--spring); }
.pick .check .icon { width: 15px; height: 15px; stroke-width: 3; }
.pick.selected { box-shadow: inset 0 0 0 2.5px var(--ink), var(--sh-1); }
.pick.selected .check { background: var(--ink); color: var(--on-ink); transform: scale(1.08); box-shadow: none; }
.pick:active { transform: scale(.96); }
.cmp-summary { position: relative; margin-top: 18px; padding: 20px; border-radius: 26px; background: #15161b; color: #fff; overflow: hidden; isolation: isolate; }
.cmp-summary::before { content: ""; position: absolute; right: -50px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(214,242,90,.45), transparent); z-index: -1; }
.cmp-summary small { font-size: 11px; font-weight: 750; letter-spacing: .08em; color: #a9abb5; }
.cmp-summary strong { display: block; margin-top: 6px; font-size: 34px; font-weight: 800; letter-spacing: -.05em; }
.cmp-summary p { color: #c3c4cb; font-size: 13px; margin-top: 4px; }
.cmp-list { display: grid; gap: 10px; margin-top: 12px; }
.cmp-item { padding: 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); }
.cmp-item.win { box-shadow: inset 0 0 0 2px var(--lime), var(--sh-1); }
.cmp-item .ci-head { display: flex; align-items: center; gap: 12px; }
.cmp-item .ci-rank { font-size: 12px; font-weight: 800; color: var(--faint); width: 22px; }
.cmp-item.win .ci-rank { color: var(--good); }
.cmp-item .art { width: 46px; height: 46px; border-radius: 14px; }
.cmp-item .art .mono { font-size: 16px; }
.cmp-item .art .mono-icon { display: none; }
.cmp-item .ci-name { flex: 1; min-width: 0; }
.cmp-item .ci-name strong { display: block; font-size: 14.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-item .ci-name small { font-size: 12px; color: var(--muted); }
.cmp-item .ci-total { text-align: right; }
.cmp-item .ci-total b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.cmp-item .ci-total small { font-size: 11px; color: var(--muted); }
.bar { display: flex; height: 10px; margin-top: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.bar .b-product { background: var(--violet); transform-origin: left; animation: grow .9s var(--ease) both; }
.bar .b-ship { background: var(--peach); transform-origin: left; animation: grow .9s .15s var(--ease) both; }
.bar.unknown { background: repeating-linear-gradient(45deg, var(--surface-3) 0 6px, var(--line) 6px 12px); }
.legend { display: flex; gap: 14px; margin-top: 10px; font-size: 11.5px; color: var(--muted); font-weight: 650; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; background: var(--violet); }
.legend i.ship { background: var(--peach); }
.hint-card { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 16px; border-radius: 20px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; font-weight: 650; }

/* ---------- Profile ---------- */
.profile-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 26px; background: #15161b; color: #fff; overflow: hidden; isolation: isolate; }
.profile-card::before { content: ""; position: absolute; left: -40px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(123,107,255,.6), transparent); z-index: -1; }
.avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 20px; background: linear-gradient(135deg, var(--violet), #b6a8ff); color: #fff; font-size: 24px; font-weight: 800; flex: none; }
.profile-card strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.profile-card small { display: block; color: #b6b8c1; font-size: 13px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.profile-stats div { padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); }
.profile-stats strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.profile-stats span { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.ai-status { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); }
.ai-status .orb { width: 40px; height: 40px; flex: none; }
.ai-status .ai-copy { flex: 1; min-width: 0; }
.ai-status strong { display: block; font-size: 14.5px; font-weight: 750; }
.ai-status small { display: block; font-size: 12.5px; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-right: 6px; vertical-align: 1px; }
.dot.on { background: var(--good); box-shadow: 0 0 0 4px var(--good-bg); }
.version { text-align: center; margin-top: 26px; font-size: 12px; color: var(--faint); font-weight: 650; }

/* ---------- Agent chat ---------- */
.agent-screen { display: flex; flex-direction: column; min-height: 100%; padding: 0 0 var(--nav-space); }
:root { --nav-space: 96px; }
.agent-head { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 8px 16px 10px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.agent-head .orb { width: 34px; height: 34px; flex: none; }
.agent-head .ah-copy { flex: 1; min-width: 0; }
.agent-head strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.agent-head small { display: flex; align-items: center; font-size: 12px; color: var(--muted); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-head .icon-btn { width: 38px; height: 38px; }
.agent-head .credit-chip { height: 34px; }
.att-card.paywall { box-shadow: inset 0 0 0 1.5px var(--violet), var(--sh-1); }
.att-card.paywall .ac-head strong { display: inline-flex; align-items: center; gap: 6px; }
.att-card.paywall .ac-head .icon { width: 17px; height: 17px; color: var(--violet); }
.att-card .btn.small { width: 100%; }
.agent-head .icon-btn .icon { width: 18px; height: 18px; }
.agent-body { flex: 1; padding: 0 16px; }
.agent-welcome { display: grid; justify-items: center; text-align: center; padding: 26px 4px 6px; }
.agent-welcome .orb { width: 92px; height: 92px; margin-bottom: 22px; }
.agent-welcome h1 { font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -.055em; }
.agent-welcome p { margin-top: 10px; color: var(--muted); font-size: 14.5px; max-width: 300px; }
.starter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; width: 100%; text-align: left; }
.starter { display: grid; gap: 10px; align-content: space-between; min-height: 112px; padding: 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); font-size: 13.5px; font-weight: 700; line-height: 1.3; transition: transform .3s var(--spring); animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
.starter:active { transform: scale(.96); }
.starter .s-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--lilac); color: var(--violet); }
.starter .s-icon .icon { width: 18px; height: 18px; }
.starter.wide { grid-column: 1 / -1; min-height: 0; grid-template-columns: auto 1fr auto; align-items: center; background: #15161b; color: #fff; }
.starter.wide .s-icon { background: var(--lime); color: var(--lime-ink); }
.starter.wide small { display: block; color: #a9abb5; font-weight: 600; font-size: 12px; }
.mode-banner { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); font-size: 12.5px; color: var(--muted); line-height: 1.45; text-align: left; }
.mode-banner .icon { width: 17px; height: 17px; margin-top: 1px; color: var(--violet); }
.mode-banner code { font-size: 11.5px; padding: 1px 5px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); }
.messages { display: grid; gap: 18px; padding: 6px 0 10px; }
.msg { display: grid; gap: 10px; animation: msg-in .45s var(--ease) both; }
.msg.user { justify-items: end; }
.bubble { max-width: 84%; padding: 11px 15px; border-radius: 22px 22px 6px 22px; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.msg-photo { width: 190px; max-width: 70%; aspect-ratio: 1; border-radius: 20px 20px 6px 20px; overflow: hidden; box-shadow: var(--sh-2); }
.msg-photo img { width: 100%; height: 100%; object-fit: cover; }
.msg.agent .agent-line { display: flex; gap: 10px; align-items: flex-start; }
.msg.agent .agent-line .orb { width: 26px; height: 26px; flex: none; margin-top: 1px; }
.msg-text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.55; font-weight: 550; word-break: break-word; }
.msg-text strong { font-weight: 800; }
.msg-text ul { margin: 6px 0; padding-left: 18px; }
.msg-text li { margin: 3px 0; }
.msg-text .w { opacity: 0; filter: blur(4px); animation: word-in .5s var(--ease) forwards; animation-delay: calc(var(--w) * 22ms); }
.steps { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 36px; }
.steps span { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--surface-3); font-size: 11px; font-weight: 700; color: var(--muted); }
.steps .icon { width: 12px; height: 12px; stroke-width: 2.6; color: var(--good); }
.att { padding-left: 36px; display: grid; gap: 8px; animation: rise .6s var(--ease) both; animation-delay: var(--d, .15s); }
.att-title { font-size: 12px; font-weight: 750; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; }
.carousel { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 0 -52px; padding: 2px 16px 6px 52px; scroll-snap-type: x mandatory; scroll-padding-left: 52px; }
.carousel::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 158px; scroll-snap-align: start; display: flex; flex-direction: column; padding: 7px 7px 12px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); text-align: left; transition: transform .3s var(--spring); }
.pcard:active { transform: scale(.96); }
.pcard .art { width: 100%; aspect-ratio: 1.1; border-radius: 16px; }
.pcard .art .mono { font-size: 26px; }
.pcard .art .badge { position: absolute; left: 7px; top: 7px; z-index: 2; height: 20px; font-size: 10px; }
.pcard .pc-body { padding: 9px 5px 0; display: grid; gap: 3px; }
.pcard strong { font-size: 13.5px; font-weight: 750; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 34px; }
.pcard .pc-price { font-size: 16px; font-weight: 800; letter-spacing: -.03em; }
.pcard .pill-status { font-size: 11px; }
.idea { flex: 0 0 236px; scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 24px; background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.idea .idea-top { position: relative; height: 112px; display: grid; place-items: center; background: var(--tone); overflow: hidden; }
.idea .idea-top .mono { font-size: 34px; font-weight: 800; letter-spacing: -.06em; color: rgba(18,19,24,.78); }
:root[data-theme="dark"] .idea .idea-top .mono { color: #fff; }
.idea .idea-top .badge { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.75); color: #121318; }
.idea .idea-top .rank { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: #121318; color: #fff; font-size: 12px; font-weight: 800; }
.idea .idea-body { display: grid; gap: 6px; padding: 12px 14px 14px; flex: 1; align-content: start; }
.idea strong { font-size: 15px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.idea .idea-price { font-size: 14px; font-weight: 800; color: var(--violet); }
.idea .idea-price small { font-size: 11px; color: var(--faint); font-weight: 650; }
.idea p { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.idea .idea-actions { display: flex; gap: 8px; padding: 0 12px 12px; }
.idea .idea-actions a, .idea .idea-actions button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 38px; border-radius: 13px; font-size: 12.5px; font-weight: 750; text-decoration: none; }
.idea .idea-actions a { background: var(--surface-3); }
.idea .idea-actions button { background: var(--ink); color: var(--on-ink); }
.idea .idea-actions .icon { width: 15px; height: 15px; }
.att-caveat { font-size: 11.5px; color: var(--faint); font-weight: 600; }
.att-card { padding: 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); display: grid; gap: 10px; }
.att-card .ac-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.att-card .ac-head strong { font-size: 14.5px; font-weight: 800; }
.att-card .ac-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 650; }
.att-card .ac-row .n { font-size: 11px; font-weight: 800; color: var(--faint); }
.att-card .ac-row.win .n { color: var(--good); }
.att-card .ac-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-card .ac-row b { font-weight: 800; }
.att-card .mini-bar { grid-column: 2 / -1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: -4px; }
.att-card .mini-bar span { display: block; height: 100%; border-radius: inherit; background: var(--violet); transform-origin: left; animation: grow .9s var(--ease) both; }
.att-card .ac-row.win .mini-bar span { background: linear-gradient(90deg, #39c27f, var(--lime)); }
.budget-ring { display: flex; align-items: center; gap: 14px; }
.budget-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); flex: none; }
.budget-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.budget-ring .track { stroke: var(--surface-3); }
.budget-ring .value { stroke: var(--violet); stroke-dasharray: 100 100; stroke-dashoffset: calc(100 - var(--p) * 100); animation: ring-in 1.1s var(--ease) both; }
.budget-ring strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.budget-ring small { font-size: 12.5px; color: var(--muted); }
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.store-link { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); text-decoration: none; font-size: 13.5px; font-weight: 750; transition: transform .25s var(--spring); }
.store-link:active { transform: scale(.96); }
.store-link i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-style: normal; font-size: 13px; font-weight: 800; color: #fff; flex: none; }
.store-link .icon { width: 14px; height: 14px; margin-left: auto; color: var(--faint); }
.proposal { padding: 14px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--violet), var(--sh-1); display: grid; gap: 8px; }
.proposal.applied { box-shadow: inset 0 0 0 1.5px var(--good), var(--sh-1); }
.proposal .pr-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.proposal.applied .pr-eyebrow { color: var(--good); }
.proposal .pr-eyebrow .icon { width: 14px; height: 14px; }
.proposal strong { font-size: 15px; font-weight: 800; }
.proposal p { font-size: 13px; color: var(--muted); line-height: 1.45; }
.proposal .btn { justify-self: start; }
.proposal.unavailable { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.suggestions { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 2px 52px; animation: rise .6s .3s var(--ease) both; }
.suggestions::-webkit-scrollbar { display: none; }
.suggestions button { flex: none; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 700; transition: transform .25s var(--spring), background .2s; }
.suggestions button:active { transform: scale(.95); }
.thinking { display: flex; gap: 10px; align-items: center; animation: msg-in .4s var(--ease) both; }
.thinking .orb { width: 26px; height: 26px; }
.thinking .t-copy { font-size: 14px; font-weight: 700; background: linear-gradient(90deg, var(--muted) 0%, var(--ink) 40%, var(--muted) 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
.thinking button { margin-left: auto; font-size: 12.5px; font-weight: 750; color: var(--muted); padding: 6px 10px; border-radius: 10px; background: var(--surface-3); }
.req-error { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 16px; background: var(--bad-bg); color: var(--bad); font-size: 13px; font-weight: 650; }
.req-error button { flex: none; font-weight: 800; color: var(--bad); text-decoration: underline; }
.composer-wrap { position: sticky; bottom: var(--nav-space); z-index: 8; padding: 14px 12px 8px; margin-top: auto; background: linear-gradient(transparent, var(--bg) 22px); }
.composer-wrap::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(var(--nav-space) + 2px); background: var(--bg); }
.context-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 0 0 8px 4px; padding: 5px 6px 5px 10px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 700; animation: pop .35s var(--spring); }
.context-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.context-chip button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); }
.context-chip button .icon { width: 12px; height: 12px; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 7px; border-radius: 28px; background: var(--surface); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); transition: box-shadow .25s; }
.composer:focus-within { box-shadow: var(--sh-2), inset 0 0 0 2px var(--violet); }
.composer textarea { flex: 1; min-width: 0; min-height: 42px; max-height: 140px; padding: 10px 4px; border: 0; outline: 0; resize: none; background: none; font-weight: 600; font-size: 15px; line-height: 1.4; }
.composer textarea::placeholder { color: var(--faint); }
.composer .c-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-3); color: var(--ink); flex: none; transition: transform .3s var(--spring), background .2s; }
.composer .c-btn:active { transform: scale(.88); }
.composer .c-send { background: var(--ink); color: var(--on-ink); }
.composer .c-send:disabled { background: var(--surface-3); color: var(--faint); }
.composer .c-send .icon { width: 19px; height: 19px; stroke-width: 2.4; }
.attach-preview { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 6px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); animation: pop .4s var(--spring); }
.attach-preview img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.attach-preview div { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; }
.attach-preview div small { display: block; color: var(--muted); font-weight: 600; }
.attach-preview .icon-btn { width: 32px; height: 32px; box-shadow: none; background: var(--surface-3); }
.attach-preview .icon-btn .icon { width: 15px; height: 15px; }
.privacy { padding: 8px 8px 0; font-size: 11px; line-height: 1.4; color: var(--faint); text-align: center; }

/* ---------- Camera ---------- */
.camera { position: absolute; inset: 0; z-index: 60; background: #000; color: #fff; display: grid; grid-template-rows: auto 1fr auto; animation: cam-in .45s var(--ease) both; overflow: hidden; }
.camera.closing { animation: cam-out .3s var(--ease-in) both; }
.camera video, .camera .cam-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera .cam-still { z-index: 1; }
.camera .cam-top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 30px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.camera .cam-top strong { font-size: 15px; font-weight: 750; }
.camera .icon-btn { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.camera .cam-frame { position: relative; z-index: 2; align-self: center; justify-self: center; width: 72%; aspect-ratio: 1; }
.camera .cam-frame i { position: absolute; width: 38px; height: 38px; border: 3.5px solid #fff; border-radius: 4px; animation: frame-breathe 2.4s ease-in-out infinite; }
.camera .cam-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 22px; }
.camera .cam-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 22px; }
.camera .cam-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 22px; }
.camera .cam-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 22px; }
.camera .cam-frame .scan { position: absolute; left: 6%; right: 6%; height: 2px; top: 10%; background: linear-gradient(90deg, transparent, var(--lime), transparent); box-shadow: 0 0 18px var(--lime); animation: scan 2.2s ease-in-out infinite alternate; }
.camera .cam-hint { position: relative; z-index: 3; text-align: center; font-size: 13px; font-weight: 650; color: rgba(255,255,255,.85); margin-bottom: 18px; }
.camera .cam-bottom { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px 26px 34px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.camera .shutter { width: 76px; height: 76px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.3); transition: transform .2s var(--spring); }
.camera .shutter:active { transform: scale(.88); }
.camera .cam-side { justify-self: start; }
.camera .cam-side.right { justify-self: end; }
.camera .cam-error { position: relative; z-index: 3; align-self: center; justify-self: center; display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 280px; padding: 20px; font-size: 14px; color: #ddd; }
.camera .cam-confirm { display: flex; gap: 10px; grid-column: 1 / -1; }
.camera .cam-confirm .btn { flex: 1; }
.camera .flash { position: absolute; inset: 0; z-index: 10; background: #fff; pointer-events: none; animation: flash .45s ease-out both; }

/* ---------- Sheet & toast ---------- */
.sheet-backdrop { position: absolute; inset: 0; z-index: 50; background: rgba(8,9,12,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade-in .3s var(--ease) both; }
.sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 51; padding: 10px 20px 22px; border-radius: 32px; background: var(--surface); box-shadow: var(--sh-3); animation: sheet-in .5s var(--ease) both; }
.sheet.closing { animation: sheet-out .25s var(--ease-in) both; }
.sheet-backdrop.closing { animation: fade-out .25s both; }
.sheet .grabber { width: 40px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 0 auto 18px; }
.sheet .sh-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 20px; background: var(--bad-bg); color: var(--bad); margin-bottom: 14px; }
.sheet .sh-icon .icon { width: 26px; height: 26px; }
.sheet h3 { font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.sheet p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.sheet .sh-actions { display: grid; gap: 8px; margin-top: 20px; }
#toast { position: absolute; left: 50%; bottom: 100px; z-index: 70; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 12px 12px 12px 16px; border-radius: 18px; background: var(--ink); color: var(--on-ink); font-size: 13.5px; font-weight: 650; box-shadow: var(--sh-2); transform: translate(-50%, 30px) scale(.94); opacity: 0; pointer-events: none; transition: transform .45s var(--spring), opacity .25s; }
#toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
#toast:empty { display: none; }
#toast .toast-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); flex: none; }
#toast .toast-ic .icon { width: 15px; height: 15px; stroke-width: 2.8; }
#toast .toast-action { color: var(--lime); font-weight: 800; padding: 4px 8px; }
:root[data-theme="dark"] #toast .toast-action { color: var(--violet); }
.storage-warning { display: flex; gap: 10px; align-items: flex-start; margin: 8px 20px 0; padding: 12px 14px; border-radius: 16px; background: var(--bad-bg); color: var(--bad); font-size: 12.5px; font-weight: 650; }


/* ---------- Credits, subscription, referrals ---------- */
.credit-chip { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px 0 9px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-weight: 800; font-size: 13.5px; flex: none; transition: transform .3s var(--spring); }
.credit-chip .icon { width: 16px; height: 16px; color: var(--lime); fill: var(--lime); stroke-width: 1.4; }
:root[data-theme="dark"] .credit-chip .icon { color: #5b6a00; fill: #5b6a00; }
.credit-chip em { font-style: normal; font-size: 9.5px; letter-spacing: .06em; padding: 2px 5px; margin-left: 2px; border-radius: 6px; background: var(--lime); color: var(--lime-ink); }
.credit-chip:active { transform: scale(.92); }
.nav-head .credit-chip { margin-left: auto; }
.pro-hero { position: relative; padding: 24px 22px 22px; border-radius: 30px; background: #121318; color: #fff; overflow: hidden; isolation: isolate; }
.pro-hero::before { content: ""; position: absolute; right: -90px; top: -110px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(123,107,255,.85), transparent); z-index: -1; animation: drift 10s var(--ease) infinite alternate; }
.pro-hero::after { content: ""; position: absolute; left: -80px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(214,242,90,.35), transparent); z-index: -1; }
.pro-hero > .orb { position: absolute; right: 22px; top: 22px; width: 64px; height: 64px; }
.pro-badge { display: inline-flex; height: 26px; align-items: center; padding: 0 10px; border-radius: 99px; background: rgba(214,242,90,.16); color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.pro-hero h2 { margin-top: 16px; font-size: 28px; line-height: 1.05; font-weight: 800; letter-spacing: -.05em; }
.pro-price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.pro-price strong { font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.06em; }
.pro-price span { color: #b6b8c1; font-weight: 700; }
.pro-hero > small { display: block; margin-top: 6px; color: #a2a4ad; font-size: 12.5px; font-weight: 600; }
.pro-perks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.pro-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; color: #e7e7ec; }
.pro-perks .icon { width: 18px; height: 18px; color: var(--lime); }
.pro-perks b { color: #fff; }
.pro-status { display: flex; gap: 8px; align-items: center; margin-top: 18px; padding: 11px 13px; border-radius: 14px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 700; color: #e7e7ec; }
.pro-status .icon { width: 17px; height: 17px; color: var(--lime); }
.plan-table { border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.pt-row { display: grid; grid-template-columns: 1fr 64px 72px; align-items: center; min-height: 48px; padding: 0 14px; font-size: 13.5px; font-weight: 650; border-top: 1px solid var(--line); }
.pt-row span:not(:first-child) { text-align: center; font-weight: 800; display: grid; place-items: center; }
.pt-row .icon { width: 18px; height: 18px; color: var(--good); stroke-width: 2.6; }
.pt-row .pro-col { align-self: stretch; background: var(--lilac); color: var(--violet); }
.pt-head { border-top: 0; min-height: 44px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.pt-head .pro-col { color: var(--violet); border-radius: 0; }
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pack { position: relative; display: grid; justify-items: start; gap: 2px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); text-align: left; transition: transform .3s var(--spring); }
.pack:active { transform: scale(.96); }
.pack.best { box-shadow: inset 0 0 0 2px var(--violet), var(--sh-1); }
.pack-tag { position: absolute; top: -9px; right: 12px; height: 20px; padding: 0 8px; border-radius: 99px; background: var(--violet); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.pack-credits { display: flex; align-items: center; gap: 4px; font-size: 28px; font-weight: 800; letter-spacing: -.05em; }
.pack-credits .icon { width: 22px; height: 22px; color: var(--violet); }
.pack-label { font-size: 12px; color: var(--muted); font-weight: 650; }
.pack strong { margin-top: 10px; font-size: 18px; font-weight: 800; }
.pack small { font-size: 11px; color: var(--faint); font-weight: 650; }
.faq { display: grid; gap: 8px; margin-top: 18px; }
.credit-hero { position: relative; padding: 22px; border-radius: 30px; background: linear-gradient(145deg, #6b5be6, #9a8fff 55%, #c6bdff); color: #fff; overflow: hidden; isolation: isolate; }
.credit-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(214,242,90,.6), transparent); z-index: -1; }
.ch-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; opacity: .9; }
.plan-badge { height: 24px; padding: 0 10px; border-radius: 99px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.plan-badge.pro { background: var(--lime); color: var(--lime-ink); }
.ch-total { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.ch-total strong { font-size: 64px; line-height: .95; font-weight: 800; letter-spacing: -.06em; }
.ch-total span { font-weight: 700; opacity: .85; }
.ch-split { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0 10px; font-size: 13px; font-weight: 650; }
.ch-split i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #fff; }
.ch-split i.b { background: var(--lime); }
.credit-hero > small { display: block; margin-top: 10px; font-size: 12px; opacity: .85; font-weight: 600; }
.progress.light { background: rgba(255,255,255,.25); }
.progress.light > span { background: #fff; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.quick-actions button { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); font-size: 12.5px; font-weight: 750; transition: transform .3s var(--spring); }
.quick-actions button:active { transform: scale(.95); }
.qa-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--lilac); color: var(--violet); }
.qa-icon.lime { background: var(--lime); color: var(--lime-ink); }
.qa-icon.peach { background: var(--peach-2); color: #e0673f; }
.cost-row, .tx { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 13.5px; font-weight: 650; }
.cost-row + .cost-row, .tx + .tx { border-top: 1px solid var(--line); }
.cost-row span:nth-child(2) { flex: 1; }
.cost-row b { min-width: 34px; height: 28px; display: grid; place-items: center; border-radius: 10px; background: var(--lilac); color: var(--violet); font-weight: 800; }
.cost-row b.free { background: var(--good-bg); color: var(--good); }
.tx .lb-icon, .cost-row .lb-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--surface-3); flex: none; }
.tx .lb-icon .icon, .cost-row .lb-icon .icon { width: 17px; height: 17px; }
.tx .lb-icon.plus { background: var(--good-bg); color: var(--good); }
.tx-copy { flex: 1; min-width: 0; }
.tx-copy strong { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-copy small { font-size: 11.5px; color: var(--faint); }
.tx > b { font-weight: 800; font-size: 14.5px; }
.tx > b.plus { color: var(--good); }
.tx > b.minus { color: var(--ink-2); }
.friend-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tone); font-size: 13px; font-weight: 800; flex: none; }
.invite-hero { display: grid; justify-items: center; text-align: center; padding: 10px 0 4px; }
.gift-art { position: relative; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 36px; background: linear-gradient(145deg, #ffb497, #ff8a6b); color: #fff; box-shadow: 0 18px 40px rgba(255,138,107,.35); animation: float 5s ease-in-out infinite; margin-bottom: 18px; }
.gift-art .icon { width: 52px; height: 52px; stroke-width: 1.6; }
.gift-art i { position: absolute; width: 10px; height: 10px; border-radius: 3px; background: var(--lime); animation: twinkle 2.4s ease-in-out infinite; }
.gift-art i:nth-of-type(1) { left: -14px; top: 12px; }
.gift-art i:nth-of-type(2) { right: -10px; top: -8px; background: var(--violet); animation-delay: .6s; }
.gift-art i:nth-of-type(3) { right: -18px; bottom: 16px; width: 7px; height: 7px; animation-delay: 1.2s; }
.invite-hero h2 { font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -.05em; }
.invite-hero p { margin-top: 10px; color: var(--muted); font-size: 14.5px; max-width: 300px; }
.code-card { margin-top: 20px; padding: 20px; border-radius: 26px; background: var(--surface); box-shadow: var(--sh-1); display: grid; justify-items: center; gap: 10px; text-align: center; border: 1.5px dashed var(--line-2); }
.code-card > small { font-size: 12px; font-weight: 700; color: var(--muted); }
.code { display: flex; gap: 6px; }
.code span { display: grid; place-items: center; width: 40px; height: 50px; border-radius: 13px; background: var(--surface-3); font-size: 24px; font-weight: 800; animation: pop .5s var(--spring) both; }
.code span:nth-child(2) { animation-delay: .05s; } .code span:nth-child(3) { animation-delay: .1s; } .code span:nth-child(4) { animation-delay: .15s; } .code span:nth-child(5) { animation-delay: .2s; } .code span:nth-child(6) { animation-delay: .25s; }
.code-link { font-size: 12px; color: var(--faint); font-weight: 650; word-break: break-all; }
.code-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 4px; }
.code-btns .btn { min-height: 46px; padding: 0 12px; font-size: 14px; }
.invite-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.invite-stats div { padding: 14px 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); text-align: center; }
.invite-stats strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.invite-stats span { font-size: 11px; color: var(--muted); font-weight: 650; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: h; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.how li { position: relative; display: grid; gap: 2px; padding: 14px 14px 14px 58px; counter-increment: h; }
.how li + li { border-top: 1px solid var(--line); }
.how li::before { content: counter(h); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--lime); color: var(--lime-ink); font-weight: 800; font-size: 13px; }
.how b { font-size: 14px; font-weight: 750; }
.how span { font-size: 12.5px; color: var(--muted); }
.ref-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ref-form .field { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.ref-form .btn { min-height: 54px; }
.ref-form .field-error, .ref-form .preview { grid-column: 1 / -1; }
.demo-box { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px; border-radius: 20px; border: 1.5px dashed var(--line-2); }
.demo-box div { flex: 1; }
.demo-box strong { display: block; font-size: 13.5px; font-weight: 800; }
.demo-box small { display: block; font-size: 12px; color: var(--muted); }
.profile-card { width: 100%; text-align: left; transition: transform .3s var(--spring); }
.profile-card:active { transform: scale(.985); }
.profile-card .pc-copy { flex: 1; min-width: 0; }
.pc-credits { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 99px; background: rgba(255,255,255,.1); font-weight: 800; }
.pc-credits .icon { width: 16px; height: 16px; color: var(--lime); fill: var(--lime); stroke-width: 1.2; }
.upsell { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px; border-radius: 22px; background: var(--lime); color: var(--lime-ink); text-align: left; overflow: hidden; transition: transform .3s var(--spring); }
.upsell:active { transform: scale(.985); }
.upsell .orb { width: 40px; height: 40px; flex: none; }
.upsell > span:nth-child(2) { flex: 1; }
.upsell strong { display: block; font-size: 15px; font-weight: 800; }
.upsell small { display: block; font-size: 12px; font-weight: 650; opacity: .75; }
.sh-icon.checkout { background: var(--lime); color: var(--lime-ink); }
.receipt { display: grid; gap: 0; margin-top: 16px; border-radius: 18px; background: var(--surface-2); overflow: hidden; }
.receipt div { display: flex; justify-content: space-between; padding: 12px 14px; font-size: 13.5px; }
.receipt div + div { border-top: 1px solid var(--line); }
.receipt span { color: var(--muted); font-weight: 650; }
.receipt b { font-weight: 800; }
.demo-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px !important; padding: 10px 12px; border-radius: 14px; background: var(--warn-bg); color: var(--warn) !important; font-size: 12.5px !important; font-weight: 650; }
.demo-note .icon { width: 16px; height: 16px; margin-top: 1px; }
.success { display: grid; justify-items: center; text-align: center; padding: 8px 0 0; }
.success-ring { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); margin-bottom: 16px; animation: pop .6s var(--spring) both; box-shadow: 0 0 0 10px rgba(214,242,90,.25); }
.success-ring .icon { width: 42px; height: 42px; stroke-width: 2.8; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .25s var(--ease) forwards; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.confetti { position: absolute; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 14px; border-radius: 2px; background: var(--c); transform: scale(var(--s)); animation: confetti 2.2s var(--d) cubic-bezier(.25,.6,.4,1) forwards; }
@keyframes confetti { 0% { transform: translateY(0) rotate(0) scale(var(--s)); opacity: 1; } 100% { transform: translateY(105vh) rotate(var(--r)) scale(var(--s)); opacity: .2; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 50% { transform: scale(.5) rotate(45deg); opacity: .5; } }


/* ---------- Products & compare v6.1 ---------- */
.watch-summary { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; margin-bottom: 4px; }
.ws-main { padding: 16px; border-radius: 24px; background: #15161b; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.ws-main::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(123,107,255,.7), transparent); z-index: -1; }
.ws-main small { display: block; font-size: 12px; color: #a9abb5; font-weight: 650; }
.ws-main strong { display: block; margin-top: 4px; font-size: 24px; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.ws-main span { font-size: 12px; color: #c9cad1; font-weight: 650; }
.ws-side { display: grid; gap: 10px; }
.ws-side div { padding: 11px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-1); }
.ws-side small { display: block; font-size: 11px; color: var(--muted); font-weight: 650; }
.ws-side b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.ws-side .good b { color: var(--good); }
.chip-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 800; }
.chip.active .chip-count { background: rgba(255,255,255,.18); color: inherit; }
:root[data-theme="dark"] .chip.active .chip-count { background: rgba(0,0,0,.12); }
.chip .icon { width: 15px; height: 15px; }
.group-head { display: flex; align-items: center; gap: 8px; margin: 18px 4px 10px; font-size: 13px; font-weight: 800; letter-spacing: -.01em; color: var(--ink-2); }
.group-head:first-child { margin-top: 4px; }
.group-head .icon { width: 17px; height: 17px; color: var(--violet); }
.group-head.good .icon { color: var(--good); }
.group-head.muted .icon { color: var(--faint); }
.group-head b { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-3); font-size: 11.5px; color: var(--muted); }
.row-card .progress { height: 5px; margin: 2px 0 1px; max-width: 170px; }
.cmp-summary.has-winner { padding-right: 120px; }
.cmp-summary p { display: flex; align-items: center; gap: 6px; }
.cmp-summary p .icon { width: 16px; height: 16px; color: var(--lime); flex: none; }
.cmp-winner-art { position: absolute; right: 16px; top: 50%; transform: translateY(-50%) rotate(6deg); width: 92px; height: 92px; animation: pop .6s .2s var(--spring) both; }
.cmp-winner-art .art { width: 100%; height: 100%; border-radius: 24px; box-shadow: 0 0 0 3px var(--lime); }
.cmp-winner-art .art .mono-icon { display: none; }
.cmp-table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.cmp-table-wrap::-webkit-scrollbar { display: none; }
.cmp-table { border-collapse: separate; border-spacing: 0; min-width: 100%; background: var(--surface); border-radius: 22px; box-shadow: var(--sh-1); overflow: hidden; font-size: 13px; }
.cmp-table th, .cmp-table td { padding: 11px 10px; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
.cmp-table thead th { border-top: 0; vertical-align: top; min-width: 112px; }
.cmp-table thead th .art { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 6px; }
.cmp-table thead th .art .mono { font-size: 15px; } .cmp-table thead th .art .mono-icon { display: none; }
.cmp-table thead th span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 750; line-height: 1.25; }
.cmp-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cmp-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 92px; }
.cmp-table td { font-weight: 700; white-space: nowrap; }
.cmp-table td.best { background: var(--good-bg); color: var(--good); }
.cmp-table td.best strong { color: var(--good); }
.cmp-table .unknown { color: var(--faint); font-weight: 600; }
.cmp-table .ok { color: var(--good); } .cmp-table .bad { color: var(--bad); }
.compare .agent-cta { margin-top: 14px; }
.cmp-empty { display: grid; justify-items: center; text-align: center; gap: 8px; margin-top: 18px; padding: 26px 18px; border-radius: 26px; background: var(--surface); box-shadow: var(--sh-1); }
.ce-slots { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ce-slots > span { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; border: 1.5px dashed var(--line-2); color: var(--faint); overflow: hidden; }
.ce-slots > span.filled { border: 0; animation: pop .45s var(--spring); }
.ce-slots > span .art { width: 100%; height: 100%; border-radius: 22px; }
.ce-slots > span .art .mono-icon { display: none; }
.ce-slots i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--faint); }
.cmp-empty strong { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.cmp-empty p { color: var(--muted); font-size: 13.5px; max-width: 280px; }


/* ---------- v0.7: URL lookup, deals, monobank ---------- */
.found-card { grid-template-columns: 76px 1fr; align-items: center; }
.found-card .btn { grid-column: 1 / -1; }
.found-card:not(:has(.found-img)) { grid-template-columns: 1fr; }
.found-img { width: 76px; height: 76px; border-radius: 16px; overflow: hidden; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.found-img img { width: 100%; height: 100%; object-fit: contain; }
.found-copy { display: grid; gap: 3px; min-width: 0; }
.found-copy strong { font-size: 14.5px; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.found-host { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--violet); }
.found-host .icon { width: 13px; height: 13px; }
.found-price { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.deals { display: grid; gap: 8px; }
.deal { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); animation: rise .5s var(--ease) both; }
.deal:nth-child(2) { animation-delay: .06s; } .deal:nth-child(3) { animation-delay: .12s; } .deal:nth-child(4) { animation-delay: .18s; }
.deal-badge { display: grid; place-items: center; min-width: 58px; height: 58px; padding: 0 8px; border-radius: 16px; background: linear-gradient(145deg, #ff8a6b, #ffb497); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.02em; text-align: center; line-height: 1.05; }
.deal-body { min-width: 0; display: grid; gap: 2px; }
.deal-body strong { font-size: 13.5px; font-weight: 800; line-height: 1.25; }
.deal-body p { font-size: 12px; color: var(--muted); line-height: 1.35; }
.deal-meta { font-size: 11px; color: var(--faint); font-weight: 700; }
.deal-actions { display: grid; gap: 6px; justify-items: end; }
.deal-actions a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--surface-3); }
.deal-actions a .icon { width: 15px; height: 15px; }
.deal-code { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border-radius: 10px; border: 1.5px dashed var(--violet); color: var(--violet); font-size: 12px; font-weight: 800; letter-spacing: .04em; transition: background .2s, color .2s; }
.deal-code .icon { width: 13px; height: 13px; }
.deal-code.copied { background: var(--good-bg); border-color: var(--good); color: var(--good); }
.att-card .store-link { box-shadow: inset 0 0 0 1px var(--line); }
.url-magic { display: grid; gap: 8px; padding: 12px; margin: 0 -4px; border-radius: 22px; background: linear-gradient(145deg, var(--lilac), var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }
.lookup-status { display: flex; align-items: center; gap: 8px; min-height: 20px; padding: 0 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.lookup-status .icon { width: 16px; height: 16px; flex: none; color: var(--violet); }
.lookup-status .spinner { width: 15px; height: 15px; color: var(--violet); flex: none; }
.lookup-status.done { color: var(--good); } .lookup-status.done .icon { color: var(--good); }
.lookup-status.error { color: var(--warn); } .lookup-status.error .icon { color: var(--warn); }
.mono-pay { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.mono-pay i { font-style: normal; display: inline-grid; place-items: center; height: 20px; padding: 0 6px; border-radius: 6px; background: #000; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: -.02em; }
:root[data-theme="dark"] .mono-pay i { background: #fff; color: #000; }
.secure-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px !important; padding: 10px 12px; border-radius: 14px; background: var(--good-bg); color: var(--good) !important; font-size: 12.5px !important; font-weight: 650; }
.secure-note .icon { width: 16px; height: 16px; margin-top: 1px; }
.pay-wait { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--lilac); color: var(--violet); margin-bottom: 16px; }
.pay-wait .spinner { width: 34px; height: 34px; border-width: 3.5px; }
a.btn { text-decoration: none; }


/* ---------- v0.7.1 polish ---------- */
.p-sticky { position: sticky; top: 0; z-index: 25; height: 0; margin: 0 -20px; }
.p-sticky-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 1px 0 var(--line); transform: translateY(-110%); opacity: 0; transition: transform .4s var(--ease), opacity .25s; }
.p-sticky-bar.show { transform: none; opacity: 1; }
.p-sticky-bar .icon-btn { width: 38px; height: 38px; }
.p-sticky-bar .icon-btn:last-child { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.p-sticky-copy { flex: 1; min-width: 0; display: grid; }
.p-sticky-copy strong { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sticky-copy small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.p-hero .art { will-change: transform, opacity; }
.bottom-nav.is-tucked { transform: translateY(calc(100% + 28px)); }
.insight { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px; border-radius: 22px; text-align: left; background: linear-gradient(120deg, var(--lilac), var(--surface) 70%); box-shadow: var(--sh-1), inset 0 0 0 1px color-mix(in srgb, var(--violet) 22%, transparent); transition: transform .3s var(--spring); }
.insight:active { transform: scale(.985); }
.insight .orb { width: 36px; height: 36px; flex: none; }
.insight-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.insight-copy small { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--violet); }
.insight-copy small .icon { width: 13px; height: 13px; }
.insight-copy strong { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.insight > .icon { color: var(--violet); flex: none; }
.chips, .ask-prompts, .pick-row, .carousel, .suggestions { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 30px), transparent); }
.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.presets button { min-width: 0; padding: 10px 4px; }
.big-amount { align-items: baseline; }
@supports (field-sizing: content) {
  .big-amount .field, .big-amount input { field-sizing: content; width: auto; min-width: 2ch; max-width: 82%; text-align: center; }
  .big-amount span { position: static; font-size: 30px; font-weight: 800; color: var(--faint); letter-spacing: -.03em; }
}
@media (max-height: 820px) {
  .agent-welcome { padding-top: 12px; }
  .agent-welcome .orb { width: 68px; height: 68px; margin-bottom: 14px; }
  .agent-welcome h1 { font-size: 26px; }
  .agent-welcome p { font-size: 13.5px; }
  .starter-grid { margin-top: 16px; gap: 8px; }
  .starter { min-height: 86px; padding: 12px; gap: 8px; }
}

/* ---------- View transitions ---------- */
::view-transition-group(root) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-group(screen) { animation-duration: .5s; }
::view-transition-old(screen), ::view-transition-new(screen) { mix-blend-mode: normal; height: 100%; overflow: clip; }
html[data-vt="forward"]::view-transition-old(screen) { animation: vt-out-left .42s var(--ease) both; }
html[data-vt="forward"]::view-transition-new(screen) { animation: vt-in-right .5s var(--ease) both; }
html[data-vt="back"]::view-transition-old(screen) { animation: vt-out-right .4s var(--ease) both; }
html[data-vt="back"]::view-transition-new(screen) { animation: vt-in-left .5s var(--ease) both; }
html[data-vt="tab"]::view-transition-old(screen) { animation: vt-fade-out .2s ease both; }
html[data-vt="tab"]::view-transition-new(screen) { animation: vt-tab-in .45s var(--ease) both; }
::view-transition-group(hero-art) { animation-duration: .55s; animation-timing-function: var(--ease); z-index: 5; }
::view-transition-old(hero-art), ::view-transition-new(hero-art) { animation-duration: .55s; height: 100%; object-fit: cover; }
::view-transition-group(nav), ::view-transition-group(nav-pill) { animation-duration: .5s; animation-timing-function: var(--ease); }

@keyframes vt-in-right { from { transform: translateX(28%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes vt-out-left { to { transform: translateX(-12%); opacity: 0; filter: brightness(.9); } }
@keyframes vt-in-left { from { transform: translateX(-16%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes vt-out-right { to { transform: translateX(26%); opacity: 0; } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-tab-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes word-in { to { opacity: 1; filter: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes ring-in { from { stroke-dashoffset: 100; } }
@keyframes orb-spin { to { --orb-angle: 360deg; } }
@keyframes orb-breathe { from { transform: scale(.92); } to { transform: scale(1.06); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-30px, 20px) scale(1.12); } }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(214,242,90,0); } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes bar-in { from { transform: translateY(100%); } }
@keyframes sheet-in { from { transform: translateY(110%); } }
@keyframes sheet-out { to { transform: translateY(110%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes cam-in { from { opacity: 0; transform: scale(1.06); } }
@keyframes cam-out { to { opacity: 0; transform: scale(1.04); } }
@keyframes flash { from { opacity: .95; } to { opacity: 0; } }
@keyframes scan { to { top: 88%; } }
@keyframes frame-breathe { 50% { transform: scale(.94); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .layout { grid-template-columns: 340px 1fr; } .intro { padding: 30px; } }
@media (max-width: 860px) { .layout { display: block; } .intro { display: none; } }
@media (max-width: 520px) {
  body { background: var(--bg); }
  .stage { display: block; padding: 0; background: var(--bg); }
  .phone { width: 100%; height: 100dvh; min-height: 0; border-radius: 0; box-shadow: none; }
  .tg-bar { display: none; }
  .app { padding-top: env(safe-area-inset-top); }
  .bottom-nav { bottom: max(12px, env(safe-area-inset-bottom)); }
  :root { --nav-space: calc(96px + max(0px, env(safe-area-inset-bottom) - 12px)); }
}
@media (max-width: 360px) {
  .screen { padding-left: 16px; padding-right: 16px; }
  .title-xl { font-size: 30px; }
  .hero .hero-amount { font-size: 34px; }
  .hero .hero-art { width: 130px; height: 130px; } .hero .hero-art .art { width: 104px; height: 104px; }
  .metrics { gap: 8px; } .metric { padding: 12px 10px; } .metric strong { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .row-card .spark { display: none; }
  .starter { min-height: 100px; }
  .nav-item span { font-size: 9.5px; }
}
@media (hover: hover) {
  .row-card:hover, .tile-card:hover, .pcard:hover, .metric:hover, .shortcut:hover, .starter:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
  .chip:not(.active):hover, .suggestions button:hover { background: var(--surface-3); }
  .list-btn:hover { background: var(--surface-2); }
  .btn:not(:disabled):hover { filter: brightness(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .msg-text .w { opacity: 1; filter: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media (prefers-contrast: more) { :root { --line: #8b8d95; --muted: #3e4048; } }

.store-link i .icon { margin: 0; color: #fff; width: 15px; height: 15px; }

/* ===== v7.2 · Monetization pass (paywall, credits, referral) ===== */
.pw-hero { padding-bottom: 20px; }
.pw-hero h2 { padding-right: 60px; font-size: 28px; }
.pw-personal { margin-top: 12px; color: #c9cad2; font-size: 14px; line-height: 1.45; font-weight: 600; }
.pw-personal b { color: #fff; font-weight: 800; white-space: nowrap; }
.pw-roi { margin-top: 16px; padding: 13px 14px; border-radius: 18px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pw-roi-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; font-weight: 700; color: #c9cad2; }
.pw-roi-top b { color: var(--lime); font-size: 13px; white-space: nowrap; }
.pw-roi-bar { position: relative; display: block; height: 6px; margin-top: 10px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.pw-roi-bar > span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p)); border-radius: inherit; background: linear-gradient(90deg, var(--lime), #9cf27a); animation: pw-grow 1.1s .25s var(--ease) both; }
@keyframes pw-grow { from { transform: scaleX(0); } }

.pw-plans { display: grid; gap: 10px; margin-top: 14px; }
.pw-plan { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 76px; padding: 16px 16px 16px 14px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line), var(--sh-1); text-align: left; transition: box-shadow .25s var(--ease), transform .3s var(--spring), background .25s var(--ease); }
.pw-plan:active { transform: scale(.98); }
.pw-plan.on { background: color-mix(in oklab, var(--surface) 88%, var(--violet)); box-shadow: inset 0 0 0 2px var(--violet), 0 10px 30px color-mix(in oklab, var(--violet) 22%, transparent); }
.pw-plan:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 2px; }
.pw-badge { position: absolute; top: -10px; right: 14px; height: 21px; padding: 0 9px; border-radius: 99px; background: var(--lime); color: var(--lime-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; letter-spacing: .01em; }
.pw-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); transition: box-shadow .25s var(--ease); }
.pw-plan.on .pw-radio { box-shadow: inset 0 0 0 7px var(--violet); }
.pw-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pw-copy strong { font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; }
.pw-copy small, .pw-price small { font-size: 12px; color: var(--muted); font-weight: 650; }
.pw-price { display: grid; justify-items: end; gap: 2px; text-align: right; }
.pw-price b { font-size: 19px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pw-price small { white-space: nowrap; }
.pw-more { display: inline-flex; align-items: center; justify-self: center; gap: 2px; min-height: 44px; padding: 0 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pw-more .icon { width: 16px; height: 16px; }

.pw-steps { list-style: none; margin: 0; padding: 4px 0 0; display: grid; gap: 0; }
.pw-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.pw-steps li:last-child { padding-bottom: 0; }
.pw-steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; border-radius: 2px; background: linear-gradient(var(--violet), var(--line)); }
.pw-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); color: var(--violet); }
.pw-steps li:first-child .pw-dot { background: var(--lime); color: var(--lime-ink); }
.pw-dot .icon { width: 18px; height: 18px; }
.pw-steps b { display: block; font-size: 14.5px; font-weight: 800; padding-top: 7px; }
.pw-steps small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.4; }
.plans .faq { display: grid; gap: 8px; margin-top: 22px; }

.pw-bar { flex-direction: column; align-items: stretch; gap: 8px; }
.pw-bar .btn { flex: none; }
.pw-terms { display: block; text-align: center; color: var(--muted); font-size: 11.5px; font-weight: 650; }
.pw-terms:empty { display: none; }

.credit-chip.low { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--warn) 40%, transparent); }
.credit-chip.low .icon { color: var(--warn); fill: var(--warn); }
.credit-hero > small + small { margin-top: 2px; }
.low-balance { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: 20px; background: var(--warn-bg); color: var(--ink); text-align: left; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--warn) 30%, transparent); }
.low-balance .lb-icon { background: var(--lime); color: var(--lime-ink); }
.low-balance > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.low-balance strong { font-size: 14.5px; font-weight: 800; }
.low-balance small { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.low-balance > .icon { color: var(--warn); }

.ref-ladder { margin-top: 12px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); }
.rl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rl-top b { color: var(--ink); font-size: 15px; font-weight: 800; white-space: nowrap; }
.rl-steps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 12px 0 10px; }
.rl-steps i { height: 8px; border-radius: 99px; background: var(--surface-3); }
.rl-steps i.on { background: linear-gradient(90deg, #ffb497, #e0673f); }
.ref-ladder small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.4; }

@media (prefers-reduced-motion: reduce) { .pw-roi-bar > span { animation: none; } }

/* ===== v7.3 · Appllama pass (credits store, referral flow) ===== */
/* Top-up store on the balance screen — Pixelcut pay_jevys, SNOW oth_gxxpz, Hype AI pay_zdp6o */
.topup { margin-top: 0; }
.tu-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px 12px 14px; text-align: left; }
.tu-row + .tu-row { border-top: 1px solid var(--line); }
.tu-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tu-copy strong { font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.tu-copy strong em { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 99px; background: var(--lime); color: var(--lime-ink); }
.tu-copy small { font-size: 12px; color: var(--muted); font-weight: 650; }
.tu-buy { flex: none; min-width: 78px; min-height: 44px; display: grid; justify-items: center; align-content: center; gap: 0; padding: 6px 12px; border-radius: 14px; background: var(--ink); color: var(--on-ink); transition: transform .3s var(--spring); }
.tu-buy b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tu-buy small { font-size: 10.5px; font-weight: 700; opacity: .7; }
.tu-buy:active { transform: scale(.94); }
.tu-pro { background: color-mix(in oklab, var(--surface) 90%, var(--violet)); }
.tu-pro .lb-icon { background: var(--violet); color: #fff; }
.tu-pro .tu-buy { background: var(--violet); color: #fff; }
.tu-pro:active .tu-buy { transform: scale(.94); }

/* Referral flow: You → Friend → reward — Beatron oth_4x0ix */
.ref-flow { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin: 4px 0 20px; }
.ref-flow > i { width: 34px; height: 2px; margin-top: 27px; border-radius: 2px; background: linear-gradient(90deg, var(--line-2), var(--peach)); }
.rf-node { display: grid; justify-items: center; gap: 6px; width: 64px; }
.rf-node > span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2), var(--sh-1); color: var(--muted); }
.rf-node > span .icon { width: 24px; height: 24px; }
.rf-node small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.rf-node:first-child > span { box-shadow: inset 0 0 0 2px var(--violet), var(--sh-1); color: var(--violet); }
.rf-node.earn > span { background: linear-gradient(145deg, #ffb497, #ff8a6b); color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.03em; box-shadow: 0 12px 28px rgba(255,138,107,.35); animation: float 5s ease-in-out infinite; }
.rf-node.earn small { color: #e0673f; }
.rl-next { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; padding: 9px 12px; border-radius: 12px; background: var(--peach-2); color: var(--ink); font-size: 13px; font-weight: 700; }
.rl-next .icon { width: 17px; height: 17px; color: #e0673f; flex: none; }
.rl-next b { color: #e0673f; }
.invite .pw-steps { padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); }
.invite .pw-dot { background: var(--peach-2); color: #e0673f; }
.invite .pw-steps li:first-child .pw-dot { background: var(--lime); color: var(--lime-ink); }
.invite .pw-steps li:not(:last-child)::before { background: linear-gradient(#ffb497, var(--line)); }
@media (prefers-reduced-motion: reduce) { .rf-node.earn > span { animation: none; } }
.topup .tu-row:not(.tu-pro) .lb-icon { background: var(--lilac); color: var(--violet); }

/* ===== v8 · Telegram Mini App shell ===== */
/* Inside Telegram there is no desktop intro or fake phone frame at any width; Telegram draws its own header. */
html.tma body { background: var(--bg); }
html.tma .layout { display: block; }
html.tma .intro, html.tma .tg-bar { display: none; }
html.tma .stage { display: block; padding: 0; background: var(--bg); }
html.tma .phone { width: 100%; height: var(--tg-viewport-stable-height, 100dvh); min-height: 0; border-radius: 0; box-shadow: none; }
html.tma .app { padding-top: max(var(--tg-content-safe-area-inset-top, 0px), env(safe-area-inset-top)); }
html.tma .bottom-nav { bottom: max(12px, var(--tg-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom)); }

/* ===== v8.1 · Product cut-out (background removal) ===== */
.photo-preview.is-cutout { background: radial-gradient(120% 90% at 30% 10%, var(--surface), var(--lilac) 70%); }
.photo-preview img.cutout { object-fit: contain; padding: 18px 18px 46px; filter: drop-shadow(0 14px 18px rgba(18,19,24,.18)); animation: cut-in .5s var(--spring) both; }
@keyframes cut-in { from { opacity: 0; transform: scale(.94); } }
.photo-preview.is-working::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%); background-size: 260% 100%; animation: cut-scan 1.4s linear infinite; pointer-events: none; }
@keyframes cut-scan { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.pp-chip { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: 99px; background: var(--glass); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--glass-line); font-size: 12.5px; font-weight: 750; z-index: 2; }
.pp-chip .icon { width: 15px; height: 15px; color: var(--violet); }
.pp-chip .spinner { width: 14px; height: 14px; }
.pp-toggle { position: absolute; left: 10px; bottom: 10px; display: inline-flex; padding: 3px; border-radius: 99px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--glass-line); z-index: 2; }
.pp-toggle button { min-height: 32px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 750; color: var(--muted); transition: background .2s var(--ease), color .2s var(--ease); }
.pp-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
/* Real-photo samples: slightly larger than the old illustrations, soft contact shadow. */
.art img.cutout { filter: drop-shadow(0 14px 16px rgba(0,0,0,.22)); }
@media (prefers-reduced-motion: reduce) { .photo-preview.is-working::after, .photo-preview img.cutout { animation: none; } }

/* ===== v8.2 · Language switch & voice input ===== */
.lang-switch { grid-template-columns: .8fr 1.25fr 1fr 1fr; }
.lang-switch button { font-size: 12.5px; padding-inline: 4px; }
/* Voice sheet */
.voice-layer { position: absolute; inset: 0; z-index: 80; display: grid; align-items: end; }
.voice-backdrop { position: absolute; inset: 0; background: rgba(8,9,12,.42); opacity: 0; transition: opacity .25s var(--ease); }
.voice-sheet { position: relative; display: grid; justify-items: center; gap: 8px; margin: 0 10px max(10px, env(safe-area-inset-bottom)); padding: 26px 20px 18px; border-radius: 30px; background: var(--surface); box-shadow: var(--sh-3); transform: translateY(110%); transition: transform .35s var(--spring); text-align: center; }
.voice-layer.in .voice-backdrop { opacity: 1; }
.voice-layer.in .voice-sheet { transform: none; }
.voice-orb { --level: 0; position: relative; width: 104px; height: 104px; display: grid; place-items: center; margin-bottom: 6px; }
.voice-orb > span { position: absolute; inset: 0; border-radius: 50%; background: var(--orb); filter: saturate(1.1); transform: scale(calc(.82 + var(--level) * .35)); transition: transform .08s linear; box-shadow: 0 0 calc(18px + var(--level) * 40px) rgba(123,107,255,.55); animation: orb-spin 6s linear infinite; }
.voice-orb > .icon { position: relative; width: 34px; height: 34px; color: #fff; stroke-width: 2; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
@keyframes orb-spin { to { --orb-angle: 360deg; } }
.voice-layer.busy .voice-orb > span { animation: orb-spin 1.2s linear infinite; transform: scale(.9); }
.voice-title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.voice-hint { color: var(--muted); font-size: 13px; }
.voice-time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; font-size: 13px; }
.voice-actions { display: grid; grid-template-columns: 52px 1fr; gap: 10px; width: 100%; margin-top: 10px; }
.voice-actions .btn.soft { padding: 0; }
.voice-layer.busy .voice-actions { opacity: .45; pointer-events: none; }
.c-mic { color: var(--violet); }
.ask-mic { color: var(--violet); }
.search-field { position: relative; }
.search-mic { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; border-radius: 12px; color: var(--violet); flex: none; }
.search-mic .icon { width: 19px; height: 19px; }
@media (prefers-reduced-motion: reduce) { .voice-orb > span { animation: none; transition: none; } }
.ask-bar .ask-cam.ask-mic { background: var(--lilac); color: var(--violet); }
.composer .c-btn.c-mic { background: var(--lilac); color: var(--violet); }

/* 3D icons (assets/icons-3d) in large slots; line icons stay in compact UI */
.icon.icon-3d { stroke: none; fill: none; object-fit: contain; display: block; -webkit-user-drag: none; user-select: none; }
.empty .empty-art:has(.icon-3d) { width: 112px; height: 112px; background: none; border-radius: 0; margin-bottom: 2px; }
.empty .empty-art .icon-3d { width: 112px; height: 112px; filter: drop-shadow(0 10px 18px rgba(107,91,230,.18)); }
.chart-empty .icon-3d { width: 56px; height: 56px; }
.sheet .sh-icon:has(.icon-3d) { width: 72px; height: 72px; background: none; }
.sheet .sh-icon .icon-3d { width: 72px; height: 72px; }

.metric .icon-3d { width: 36px; height: 36px; margin: -6px 0 2px -6px; }
.lb-icon:has(.icon-3d) { background: none !important; }
.lb-icon .icon-3d, .cost-row .lb-icon .icon-3d { width: 38px; height: 38px; }
.starter .s-icon:has(.icon-3d) { background: none; }
.starter .s-icon .icon-3d { width: 36px; height: 36px; }
.pw-dot:has(.icon-3d) { background: none; box-shadow: none; }
.pw-dot .icon-3d { width: 34px; height: 34px; }
.rf-node > span:has(.icon-3d) { background: none; }
.rf-node > span .icon-3d { width: 44px; height: 44px; }
.intro-feature span:has(.icon-3d) { background: none; }
.intro-feature .icon-3d { width: 34px; height: 34px; }

.sc-icon:has(.icon-3d), .qa-icon:has(.icon-3d) { background: none; }
.sc-icon .icon-3d { width: 46px; height: 46px; }
.qa-icon .icon-3d { width: 42px; height: 42px; }
.hint-card .icon-3d { width: 40px; height: 40px; flex: none; }
.note .icon-3d, .mode-banner .icon-3d { width: 28px; height: 28px; margin-top: -4px; flex: none; }
.secure-note .icon-3d { width: 24px; height: 24px; margin-top: -3px; flex: none; }
.preview .icon-3d { width: 28px; height: 28px; margin: -4px 0; flex: none; }

.avatar:has(.icon-3d) { background: none; }
.avatar .icon-3d { width: 58px; height: 58px; }
.pc-credits .icon-3d { width: 22px; height: 22px; margin-left: -4px; }
.gc-icon:has(.icon-3d) { background: none; }
.gc-icon .icon-3d { width: 42px; height: 42px; }
.o-rank:has(.icon-3d) { background: none !important; box-shadow: none !important; }
.o-rank .icon-3d { width: 36px; height: 36px; }
.action-bar .btn .icon-3d { width: 38px; height: 38px; margin: -9px; }

/* 3D everywhere (v8.4) */
.nav-item .icon-3d { width: 30px; height: 30px; margin: -3px 0; }
.icon-btn .icon-3d { width: 28px; height: 28px; }
.fab .icon-3d { width: 34px; height: 34px; }
.btn .icon-3d { width: 24px; height: 24px; margin: -3px 0; }
.c-btn .icon-3d { width: 28px; height: 28px; }
.search-field .icon-3d { width: 24px; height: 24px; }
.segmented .icon-3d { width: 20px; height: 20px; }
.sc-copy + .icon-3d, .list-btn > .icon-3d:last-child { width: 20px; height: 20px; opacity: .85; }

/* lightning (credits) is always 3D, even in compact chips */
img.icon-3d[data-i="bolt"] { min-width: 18px; min-height: 18px; }
.credit-chip .icon-3d { width: 22px; height: 22px; margin: -3px -2px -3px -5px; }

/* v8.5: 3D icons everywhere, including compact slots */
img.icon-3d { min-width: 16px; min-height: 16px; }
.success-ring .icon-3d { width: 56px; height: 56px; animation: pop3d .5s .2s var(--spring) both; }
@keyframes pop3d { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.voice-orb .icon-3d { width: 40px; height: 40px; position: relative; }
.chip .icon-3d, .pill-status .icon-3d, .p-meta .icon-3d, .found-host .icon-3d, .context-chip .icon-3d, .deal-code .icon-3d { width: 18px; height: 18px; }
#toast .toast-ic .icon-3d { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .success-ring .icon-3d { animation: none; } }

/* v8.5.2: notifications on top, wider */
#toast { top: calc(env(safe-area-inset-top, 0px) + 12px); bottom: auto; width: calc(100% - 24px); max-width: 560px; min-height: 60px; padding: 12px 14px 12px 12px; border-radius: 22px; font-size: 14.5px; transform: translate(-50%, -24px) scale(.96); }
#toast.show { transform: translate(-50%, 0) scale(1); }
#toast .toast-ic { width: 36px; height: 36px; background: none; }
#toast .toast-ic .icon-3d { width: 36px; height: 36px; }
#toast .toast-action { margin-left: auto; }
