:root {
  --ground: #f7f4ec;
  --card: #fffdf8;
  --ink: #14231c;
  --muted: #5b675f;
  --line: #e7e1d3;
  --soft-line: #f0ebe0;
  --accent: #0f6b4c;
  --accent-2: #12855f;
  --deep: #0b3d2c;
  --accent-soft: #dcefe4;
  --amber: #f2b33d;
  --amber-soft: #fbecc9;
  --lav: #4b3a92;
  --lav-soft: #e9e4f6;
  --danger: #b3412f;
  --danger-soft: #f6ddd7;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 1px 0 rgba(20, 35, 28, .03);
  --shadow-lift: 0 1px 0 rgba(20, 35, 28, .05), 0 24px 56px rgba(20, 35, 28, .13);
  --font: "Inter", system-ui, sans-serif;
  --font-brand: "EB Garamond", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; }
.serif { font-family: var(--font-brand); font-weight: 600; font-style: italic; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; padding: 2px 10px 22px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand b { font-family: var(--font-brand); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.tabs { display: flex; flex-direction: column; gap: 2px; }
.tabs a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
.tabs a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs a:hover { background: #efe9da; color: var(--ink); }
.tabs a.active { background: var(--ink); color: #fff; }
.tabs .count { margin-left: auto; background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.plan { margin-top: auto; padding: 16px; border-radius: 18px; background: var(--deep); color: #f3efe3; font-size: 13px; line-height: 1.45; }
.plan b { display: block; font-size: 15px; }
.plan .meter { height: 6px; background: rgba(255,255,255,.15); border-radius: 999px; margin: 10px 0 6px; overflow: hidden; }
.plan .meter span { display: block; height: 100%; background: var(--amber); border-radius: inherit; transform-origin: left; animation: growx 1.2s .4s var(--ease) both; }
.content { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 18px 34px 0; }
.chip-loc { font-size: 13px; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.acct { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
main { width: 100%; max-width: 1360px; padding: 14px 34px 40px; }
.foot { max-width: 1360px; padding: 0 34px 30px; color: var(--muted); font-size: 12.5px; margin-top: auto; }

/* ---------- page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.page-head h1 { font-size: 34px; letter-spacing: -.03em; margin: 0; font-weight: 800; line-height: 1.1; }
.page-head h1 .serif { color: var(--accent); }
.page-head p { margin: 7px 0 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); animation: pulse 2s infinite; flex: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn { height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(20,35,28,.08); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--deep); border-color: var(--deep); box-shadow: 0 12px 28px rgba(11,61,44,.25); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn[disabled], .btn.btn-locked { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn:focus-visible, .tabs a:focus-visible, input:focus-visible, select:focus-visible, .seg button:focus-visible { outline: 3px solid rgba(15,107,76,.35); outline-offset: 2px; }

/* ---------- cards & bento ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow); position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h2, .card h3 { font-size: 14px; color: var(--muted); font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; letter-spacing: 0; }
.card .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.grid { display: grid; gap: 18px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.rows-2 { grid-row: span 2; }
.two { grid-template-columns: 1.5fr 1fr; margin-bottom: 18px; }
.rise, main .card { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0s); }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }

/* kpi */
.kpi { min-height: 150px; display: flex; flex-direction: column; overflow: hidden; }
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .value { font-size: 44px; font-weight: 800; letter-spacing: -.035em; margin-top: auto; line-height: 1; }
.kpi .value small { font-size: 18px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.kpi .hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.kpi.hero { background: var(--deep); border-color: var(--deep); color: #f3efe3; }
.kpi.hero .label, .kpi.hero .hint, .kpi.hero .value small { color: rgba(243,239,227,.74); }
.kpi .ring { position: absolute; right: 18px; top: 18px; }
.kpi .ring circle.track { stroke: rgba(255,255,255,.14); }
.kpi .ring circle.fill { stroke: var(--amber); transition: stroke-dashoffset 1.6s var(--ease) .4s; }

.pill, .chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #f0ebe0; color: var(--muted); white-space: nowrap; }
.pill.green, .chip.green { background: var(--accent-soft); color: var(--deep); }
.pill.amber, .chip.amber { background: var(--amber-soft); color: #6b4a0b; }
.pill.red, .chip.red { background: var(--danger-soft); color: #7d2a1d; }
.pill.lav, .chip.lav { background: var(--lav-soft); color: var(--lav); }
.pill.solid { background: var(--ink); color: #fff; }

/* ---------- chart ---------- */
.chart-top { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.chart-top .big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; }
.seg { margin-left: auto; display: flex; gap: 4px; padding: 4px; background: #f1ecdf; border-radius: 999px; max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(20,35,28,.1); }
.chart-wrap { position: relative; margin-top: 8px; }
.chart { width: 100%; height: 250px; display: block; overflow: visible; }
.chart .gridline { stroke: #ece6d6; stroke-dasharray: 3 5; }
.chart .axis { fill: #8b9388; font-size: 11px; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#areaFill); transition: opacity .9s ease .7s; }
.chart .mk { transition: opacity .4s ease; }
.chart .dot { fill: var(--card); stroke: var(--accent); stroke-width: 2.5; }
.chart .hit { fill: transparent; cursor: pointer; }
.tip { position: absolute; background: #fffdf8; color: var(--ink); border: 1px solid rgba(20, 40, 30, .10); border-radius: 10px; padding: 6px 10px; font-size: 12px; line-height: 1.4; pointer-events: none; white-space: nowrap; box-shadow: 0 4px 14px rgba(20, 40, 30, .10); opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .15s; z-index: 2; }
.tip.below { transform: translate(-50%, 12px); }
.tip b { display: block; font-size: 13px; }
.tip .tip-was { display: block; opacity: .7; }
.tip .tip-when { display: block; opacity: .6; font-size: 11px; }
.tip.show { opacity: 1; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--amber); margin-right: 6px; vertical-align: -1px; }

/* bars */
.bars { display: flex; align-items: flex-end; gap: 18px; height: 160px; margin-top: 12px; padding: 0 4px; }
.bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars .b { width: 100%; max-width: 64px; border-radius: 14px 14px 6px 6px; background: linear-gradient(180deg, #1c8a63, var(--deep)); transform-origin: bottom; animation: growy 1s var(--ease) both; animation-delay: var(--d, .6s); min-height: 6px; }
.bars .b.amber { background: linear-gradient(180deg, #f6c766, #d99a22); }
.bars .b.lav { background: linear-gradient(180deg, #8c7ad1, var(--lav)); }
.bars em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.bars strong { font-size: 18px; }

/* feed */
.feed { list-style: none; margin: 4px 0 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--soft-line); animation: slide .6s var(--ease) both; animation-delay: var(--d, 0s); }
.feed li:first-child { border-top: 0; }
.feed a { text-decoration: none; }
.feed .n { font-weight: 650; font-size: 14px; line-height: 1.3; }
.feed .d { color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.feed .d b { color: var(--ink); font-weight: 650; }
.feed .t { color: #9aa196; font-size: 12px; margin-top: 4px; }

/* ---------- alerts & lists ---------- */
.alerts-list { display: flex; flex-direction: column; }
.alert-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 8px; border-top: 1px solid var(--soft-line); text-decoration: none; border-radius: 12px; transition: background .2s; animation: slide .5s var(--ease) both; animation-delay: var(--d, 0s); }
.alert-row:first-child { border-top: 0; }
.alert-row:hover { background: #f8f3e8; }
.alert-ico, .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.ico-price { background: var(--amber-soft); color: #6b4a0b; }
.ico-seller { background: var(--accent-soft); color: var(--deep); }
.ico-count { background: var(--lav-soft); color: var(--lav); }
.ico-oos { background: var(--danger-soft); color: var(--danger); }
.alert-row .t { font-weight: 650; font-size: 14px; }
.alert-row .m { font-size: 13px; color: var(--muted); margin-top: 2px; }
.alert-row .when { font-size: 12px; color: #9aa196; text-align: right; white-space: nowrap; }
.hot { list-style: none; margin: 8px 0 0; padding: 0; }
.hot li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--soft-line); }
.hot li:first-child { border-top: 0; }
.hot a { text-decoration: none; display: flex; gap: 12px; align-items: center; }
.hot .badge { min-width: 54px; text-align: center; background: var(--amber-soft); color: #6b4a0b; font-weight: 800; font-size: 13px; padding: 6px 8px; border-radius: 10px; }
.hot .n { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.hot .s { font-size: 12.5px; color: var(--muted); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--soft-line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { animation: fadein .5s ease both; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #f8f3e8; }
.mono { font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: 12.5px; }
.price { font-weight: 800; font-size: 16px; }
.was { color: var(--muted); text-decoration: line-through; font-size: 12px; margin-left: 6px; }
.delta-up { color: var(--danger); font-weight: 700; font-size: 12px; }
.delta-down { color: var(--accent); font-weight: 700; font-size: 12px; }
.name { font-weight: 600; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.spark { display: block; }

/* ---------- forms ---------- */
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.input, select.select { height: 46px; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-md); padding: 0 14px; min-width: 200px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.input:focus, select.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(15,107,76,.12); }
.input.err { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(179,65,47,.10); }
.input.wide { flex: 1; min-width: 260px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; position: relative; }
.field label { font-weight: 600; font-size: 13px; }
.field .help, .help { font-size: 12.5px; color: var(--muted); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); }
details.card summary { list-style: none; }

/* ---------- states ---------- */
.state { padding: 36px 20px; text-align: center; color: var(--muted); }
.state b { color: var(--ink); display: block; font-size: 16px; margin-bottom: 6px; }
.error-line { background: var(--danger-soft); color: #7d2a1d; border-radius: var(--radius-md); padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-weight: 600; font-size: 14px; animation: rise .35s var(--ease) both; }
.note { background: var(--amber-soft); color: #6b4a0b; border-radius: var(--radius-md); padding: 11px 14px; font-size: 13.5px; animation: rise .35s var(--ease) both; }
.note.ok { background: var(--accent-soft); color: var(--deep); }
.skeleton { background: linear-gradient(100deg, #f1ecdf 20%, #faf7f0 50%, #f1ecdf 80%); background-size: 200% 100%; animation: shimmer 1.1s infinite linear; border-radius: 12px; height: 18px; }
.skel-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.skel-grid .sk { border-radius: var(--radius-lg); background: linear-gradient(100deg, #f1ecdf 20%, #faf7f0 50%, #f1ecdf 80%); background-size: 200% 100%; animation: shimmer 1.1s infinite linear; }

/* ---------- item page ---------- */
.item-head { display: grid; grid-template-columns: 112px 1fr auto; gap: 22px; align-items: center; margin-bottom: 18px; }
.thumb { width: 112px; height: 112px; border-radius: 22px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb .ph { font-family: var(--font-brand); font-size: 40px; color: #c9c0ad; }
.item-head h1 { font-size: 26px; margin: 4px 0 0; letter-spacing: -.025em; line-height: 1.2; }
.facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- competitors ---------- */
.catalog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prod { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; transition: transform .3s var(--ease), box-shadow .3s; }
.prod:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.prod img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #fff; }
.prod .n { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.progress { height: 8px; background: #efe9dc; border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; transform-origin: left; animation: growx 1.1s .3s var(--ease) both; }

/* ---------- auth (split screen) ---------- */
body.auth-mode .shell { grid-template-columns: 1fr; }
body.auth-mode .side, body.auth-mode .topbar, body.auth-mode .foot { display: none; }
body.auth-mode main { max-width: none; padding: 0; }
.auth { display: grid; grid-template-columns: minmax(420px, 46%) 1fr; min-height: 100vh; }
.auth-form { display: flex; flex-direction: column; padding: 34px clamp(24px, 5vw, 72px); }
.auth-form .brand { padding: 0; }
.auth-box { margin: auto 0; width: 100%; max-width: 400px; padding: 40px 0; animation: rise .8s var(--ease) both; }
.auth-box h1 { font-size: 40px; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 10px; font-weight: 700; }
.auth-box h1 .serif { color: var(--accent); }
.auth-box .lede { color: var(--muted); margin: 0 0 28px; font-size: 16px; }
.auth-box .input { width: 100%; height: 50px; }
.auth-box .btn.primary { height: 52px; font-size: 16px; }
.reveal { position: absolute; right: 8px; bottom: 7px; height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.reveal:hover { background: var(--accent-soft); color: var(--accent); }
.auth-row { display: flex; justify-content: flex-end; margin: -4px 0 20px; font-size: 14px; }
.auth-row a, .switch-line a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-row a:hover, .switch-line a:hover { text-decoration: underline; }
.switch-line { margin-top: 24px; color: var(--muted); font-size: 14px; text-align: center; }
.auth-msg { margin-bottom: 16px; }
.auth-msg:empty { display: none; }
.auth-foot { font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }

.showcase { position: relative; overflow: hidden; margin: 14px; border-radius: 32px; background: radial-gradient(120% 90% at 20% 10%, #15845e 0%, #0f6b4c 38%, #0b3d2c 100%); color: #f3efe3; isolation: isolate; min-height: 640px; }
.showcase::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%; background: url(hills.jpg) center bottom / cover no-repeat; opacity: .22; mix-blend-mode: soft-light; z-index: -1; }
.show-copy { position: absolute; left: 56px; right: 56px; top: 54px; animation: rise .9s .1s var(--ease) both; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12.5px; font-weight: 600; }
.eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse-amber 2s infinite; }
.showcase h2 { font-size: 46px; line-height: 1.04; letter-spacing: -.025em; margin: 18px 0 12px; font-weight: 700; max-width: 560px; }
.showcase h2 .serif { color: var(--amber); }
.showcase p { margin: 0; max-width: 470px; color: rgba(243,239,227,.78); font-size: 16px; line-height: 1.5; }
.stage { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; }
.fcard { position: absolute; background: rgba(255,253,248,.97); color: var(--ink); border-radius: 22px; box-shadow: 0 30px 70px rgba(4,25,17,.38); padding: 18px 20px; animation: pop .9s var(--ease) both, float 7s ease-in-out infinite; }
.fcard small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.fcard .title { font-weight: 700; font-size: 15px; margin: 6px 0 10px; }
.fcard .swap { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.fcard .who { padding: 5px 10px; border-radius: 999px; background: #efeadc; font-weight: 600; font-size: 13px; }
.fcard .who.win { background: var(--accent-soft); color: var(--deep); }
.fcard .price-row { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; }
.fcard .price-row s { color: var(--muted); font-size: 14px; }
.fcard .price-row b { font-size: 26px; letter-spacing: -.02em; }
.fcard .down { color: var(--deep); font-weight: 700; font-size: 13px; background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; }
.fcard svg { display: block; width: 100%; height: 88px; margin-top: 8px; }
.fcard .draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s .9s var(--ease) forwards; }
.fcard .late { opacity: 0; animation: fadein 1s 1.8s ease forwards; }
.f-alert { left: 6%; top: 12%; width: 330px; z-index: 2; animation-delay: .35s, 1.3s; }
.f-chart { right: 5%; top: -4%; width: 310px; animation-delay: .55s, 0s; animation-duration: .9s, 8s; }
.f-stat { left: 14%; bottom: 9%; width: 250px; animation-delay: .75s, .6s; animation-duration: .9s, 6.5s; }
.f-stat .big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.f-stat .meter { height: 8px; border-radius: 999px; background: #ece6d6; margin-top: 10px; overflow: hidden; }
.f-stat .meter span { display: block; height: 100%; width: 96.7%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; animation: growx 1.4s 1.2s var(--ease) both; }
.f-hot { right: 12%; bottom: 13%; width: 270px; animation-delay: .95s, 1.9s; animation-duration: .9s, 7.5s; }
.f-hot .row { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 13.5px; line-height: 1.3; }
.f-hot .badge { background: var(--amber-soft); color: #6b4a0b; font-weight: 800; font-size: 13px; padding: 6px 9px; border-radius: 10px; }
.example-tag { position: absolute; right: 22px; bottom: 16px; font-size: 11.5px; color: rgba(243,239,227,.6); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes slide { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes growy { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18,133,95,.55); } 70% { box-shadow: 0 0 0 9px rgba(18,133,95,0); } 100% { box-shadow: 0 0 0 0 rgba(18,133,95,0); } }
@keyframes pulse-amber { 0% { box-shadow: 0 0 0 0 rgba(242,179,61,.7); } 70% { box-shadow: 0 0 0 10px rgba(242,179,61,0); } 100% { box-shadow: 0 0 0 0 rgba(242,179,61,0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .span-3 { grid-column: span 6; }
  .span-8, .span-4, .span-5, .span-7 { grid-column: span 12; }
  .rows-2 { grid-row: auto; }
  .two { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .showcase { display: none; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; z-index: 10; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(247,244,236,.92); backdrop-filter: blur(10px); border-right: 0; border-bottom: 1px solid var(--line); }
  .side .brand { padding: 0 4px 0 0; }
  .side .brand b { display: none; }
  .tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .tabs a { padding: 9px 12px; white-space: nowrap; }
  .tabs a svg { display: none; }
  .plan { display: none; }
  .topbar { padding: 12px 14px 0; justify-content: space-between; flex-wrap: wrap; }
  main { padding: 12px 14px 28px; }
  .foot { padding: 0 14px 24px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head h1 { font-size: 28px; }
  .span-3 { grid-column: span 12; }
  .kpis { grid-template-columns: 1fr; }
  .kpi { min-height: 128px; }
  .kpi .value { font-size: 38px; }
  .item-head { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr 1fr; }
  .input.wide { min-width: 0; width: 100%; }
  .form-row > .input, .form-row > select.select { flex: 1 1 100%; min-width: 0; }
  .auth-form { padding: 24px 20px; }
  .auth-box h1 { font-size: 32px; }
  .auth-foot { flex-direction: column; }
}

.span-8 .name { max-width: 250px; }

/* public v3: demo + waitlist */
.demo-bar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--amber-soft, #fbecc9); border: 1px solid #f2d48f; color: #3a2a06; padding: 10px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; font-size: 14px; }
.demo-try { margin-top: 16px; display: grid; gap: 8px; text-align: center; }
.demo-try > span { color: var(--muted); font-size: 13px; }
