/* Equa — brand v1. Ink, paper, lime. No inline styles: the CSP is style-src 'self'. */
/* Fonts are optional: drop the .woff2 files in /static and they load; until then the system fallbacks are used. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/static/bricolage-grotesque-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/inter-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/jetbrains-mono-500.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #0E1411; --ink-2: #222A25; --ink-line: #2B342E;
  --paper: #F5F3EC; --white: #FFFFFF; --line: #E2DED2;
  --lime: #C6F24E; --green: #1E6B45;
  --text: #0E1411; --soft: #4A514C; --muted: #5A615C; --muted-d: #A3ACA6; --soft-d: #B8C0BA;
  --warn: #9A4A00;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 24px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--text); }
a:hover { color: var(--green); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.muted { color: var(--muted); }
.small, small { font-size: 13px; }
.mono { font-family: var(--mono); }
.lime { color: var(--lime); }
.muted-d { color: var(--muted-d); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------------------------------------------------------------- brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 28px/1 var(--display); letter-spacing: -0.06em;
  color: var(--text); text-decoration: none; }
.brand::before { content: ""; width: 34px; height: 34px; flex: none; background: url("/static/favicon.svg") center / contain no-repeat; }
.brand span { display: none; } /* old "equa." dot on the legal pages */
.brand-sm { font-size: 22px; }
.brand-sm::before { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- header */
.top .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; min-height: 76px; }
nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 15px; font-weight: 500; }
nav a, nav .link { color: var(--text); text-decoration: none; padding: 12px 14px; }
@media (max-width: 720px) { .top nav a[href^="#"] { display: none; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 11px 22px;
  font: 600 15px/1.2 var(--sans); cursor: pointer; text-decoration: none; }
.btn:hover { background: #26302A; color: var(--paper); }
.btn.big { padding: 18px 28px; font-size: 17px; }
.btn.wide { width: 100%; margin-top: 6px; }
.link { background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 0; min-height: 44px; }
.link:hover { color: var(--green); }

/* ---------------------------------------------------------------- hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 88px; }
.hero-copy { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--green); flex: none; }
h1 { margin: 0; font: 800 clamp(46px, 7vw, 96px)/1.08 var(--display); letter-spacing: -0.045em; }
h1 em { font-style: normal; background: linear-gradient(transparent 16%, var(--lime) 16%); padding: 0 0.12em; border-radius: 0.14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { margin: 0; max-width: 560px; font-size: 20px; line-height: 1.55; color: var(--soft); }
.lead strong { color: var(--text); }
.cta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.earn { margin: -8px 0 0; max-width: 560px; font-size: 16px; line-height: 1.5; color: var(--text); }
.hero-for { margin: -6px 0 0; max-width: 560px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.hero-guide { margin-top: -14px; font-size: 14px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.split { flex: 1 1 360px; min-width: 0; background: var(--ink); color: var(--paper); border-radius: 28px; padding: 32px;
  display: flex; flex-direction: column; gap: 10px; }
.split-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 14px; }
.tag { font: 500 13px var(--mono); background: var(--ink-2); color: var(--lime); padding: 6px 10px; border-radius: 8px; }
.split-num { font: 800 88px/1 var(--display); letter-spacing: -0.04em; color: var(--lime); margin-bottom: 14px; }
.bar { display: flex; gap: 4px; height: 18px; }
.bar span { border-radius: 9px; }
.bar-you { flex: 90 1 0; background: var(--lime); }
.bar-us { flex: 10 1 0; background: #4A544E; }
.split-legend { display: flex; justify-content: space-between; font-size: 14px; margin-top: 4px; }
.split-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--ink-line); padding-top: 18px;
  margin-top: 14px; font-size: 14px; color: var(--muted-d); }

/* ---------------------------------------------------------------- sections */
h2 { font-size: 22px; margin: 44px 0 14px; letter-spacing: -0.01em; }
.big-h { margin: 0; font: 800 clamp(36px, 4.5vw, 56px)/1 var(--display); letter-spacing: -0.035em; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; }
.sec-head p { margin: 0; max-width: 440px; font-size: 17px; line-height: 1.55; }
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 88px 0; }
.band .big-h { margin-bottom: 44px; }

.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--paper); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.ico { width: 52px; height: 52px; border-radius: 16px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.card h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--soft); line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font: 13px var(--mono); background: var(--white); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; }

/* tiers are rendered by app.js as .tier > b, strong, span.muted */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
@media (max-width: 960px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tier { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px;
  display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.tier b { font-size: 15px; font-weight: 600; }
.tier strong { margin-top: auto; font: 800 64px/1 var(--display); letter-spacing: -0.04em; }
.tier span { font: 13px var(--mono); }
.tier:nth-child(2) { min-height: 230px; }
.tier:nth-child(3) { min-height: 260px; }
.tier:last-child { min-height: 290px; background: var(--lime); border-color: var(--lime); }
.tier:last-child span { color: var(--ink); }
@media (max-width: 560px) { .tier, .tier:nth-child(n) { min-height: 0; } }

/* ---------------------------------------------------------------- open books (dark) */
.dark { background: var(--ink); color: var(--paper); }
.dark .muted { color: var(--soft-d); }
.dark a { color: var(--lime); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lime); margin-bottom: 16px; }
.live .dot { background: var(--lime); }
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--ink-line);
  border: 1px solid var(--ink-line); border-radius: 20px; overflow: hidden; margin-bottom: 20px; }
.ledger .stat { background: var(--ink); border: 0; border-radius: 0; padding: 26px; }
.ledger .stat span { color: var(--muted-d); font-size: 14px; margin-bottom: 10px; }
.ledger .stat strong { font: 500 30px var(--mono); color: var(--paper); }
.ledger .stat.main strong { color: var(--lime); }
.boxed { border: 1px solid var(--ink-line); border-radius: 20px; margin-bottom: 16px; }
.dark table { margin: 0; min-width: 480px; }
.dark th { color: var(--muted-d); font: 500 13px var(--mono); text-transform: uppercase; padding: 16px 22px; border-color: var(--ink-line); }
.dark td { padding: 14px 22px; border-color: var(--ink-line); }
.dark tr:last-child td { border-bottom: 0; }
.dark td.muted { text-align: center; padding: 36px 22px; }

/* ---------------------------------------------------------------- final CTA */
.final { background: var(--lime); border-radius: 32px; padding: clamp(32px, 6vw, 72px); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 32px; }
.final > div { flex: 1 1 420px; }
.final p { margin: 14px 0 0; font-size: 18px; color: #2A332D; }

/* ---------------------------------------------------------------- app: panels, forms, dashboard */
.panel, .stat { background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.panel { padding: 26px; }
.panel h2 { margin-top: 0; }
.narrow { max-width: 460px; margin: 40px auto 88px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 28px; }
.stats4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stat { padding: 18px 20px; }
.stat span { display: block; font-size: 13px; color: var(--muted); }
.stat strong { font: 500 26px var(--mono); font-variant-numeric: tabular-nums; }
.stats4 .stat.main { background: var(--ink); border-color: var(--ink); }
.stats4 .stat.main span { color: var(--muted-d); }
.stats4 .stat.main strong { color: var(--lime); }
.progress { margin: 12px 0 0; }
#dash.section { padding-top: 16px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { background: var(--paper); color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  min-height: 44px; padding: 8px 18px; font: 500 15px var(--sans); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.wall { background: var(--white); border: 1px solid var(--line); border-radius: 20px; min-height: 140px; padding: 4px; }
.wall p { padding: 20px; margin: 0; }
.wall iframe { width: 100%; height: 760px; border: 0; border-radius: 16px; background: #fff; }

form label { display: block; font-size: 14px; font-weight: 500; color: var(--soft); margin-bottom: 16px; }
form input:not([type=checkbox]), form select { display: block; width: 100%; margin-top: 6px; min-height: 48px; background: var(--paper);
  color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font: 16px var(--sans); }
form input:focus, form select:focus { outline: 2px solid var(--ink); outline-offset: 1px; background: var(--white); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ink); }
.err { color: var(--warn); min-height: 1.2em; font-size: 14px; margin: 0 0 6px; }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; background: var(--paper); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font: 14px var(--mono); }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; margin-top: 12px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 13px; }

.notice { background: #FFF6DE; border: 1px solid #E8D39A; border-radius: 20px; padding: 18px 20px; margin: 16px 0 22px; }
.notice p { margin: 0 0 10px; color: var(--text); }
p.notice { margin: 16px 0; }
.notice.ok { background: #EEF8D6; border-color: #B7D96A; }
.notice .err { margin: 8px 0 0; }

/* ---------------------------------------------------------------- legal pages */
.legal { max-width: 760px; padding-top: 24px; padding-bottom: 88px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin: 24px 0 12px; }
.legal h2 { font-size: 20px; }
.legal p, .legal li { color: var(--soft); }
.legal table.vs { min-width: 620px; font-size: 14px; }
.legal table.vs td, .legal table.vs tr > th:first-child { vertical-align: top; }
.legal table.vs tr:first-child th:nth-child(2), .legal table.vs td:nth-child(2) { font-weight: 600; color: var(--text); }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.foot .brand-sm { margin-bottom: 14px; }
.foot p { color: var(--soft); font-size: 14px; margin: 0 0 6px; }
@media (max-width: 560px) { .foot p a, .foot-social, .hero-guide { display: inline-block; padding: 10px 0; } .hero-guide { margin-top: -22px; } }
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 22px/1 var(--display); color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--soft); line-height: 1.6; }

/* dashboard: tier progress, activity chart, tips */
.tierbar { margin-top: 14px; }
.tierbar-track { height: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.tierbar-track span { display: block; height: 100%; width: 2%; background: var(--lime); border-right: 2px solid var(--green); border-radius: 99px; transition: width .6s ease; }
.tierbar .tier-next { margin: 10px 0 0; font-size: 14px; }
.mini3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.mini3 span { display: block; font-size: 13px; color: var(--muted); }
.mini3 strong { font: 500 20px var(--mono); font-variant-numeric: tabular-nums; }
.tips ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.tips li { color: var(--soft); line-height: 1.5; }
.tips b { color: var(--text); }
@media (max-width: 480px) { .mini3 { grid-template-columns: 1fr; } }

/* offers list */
.wall:has(.offers) { border: 0; padding: 0; background: none; min-height: 0; }
.offer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.offer-bar .tabs { margin: 0; }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 14px; }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.offer-head { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.offer-head img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--paper); }
.offer-title h3 { margin: 0 0 2px; font-size: 17px; line-height: 1.25; }
.offer-reward { text-align: right; }
.offer-reward span { display: block; }
.offer-reward strong { font: 500 19px var(--mono); color: var(--green); white-space: nowrap; }
.offer-more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--green); }
.offer-more p { margin: 8px 0 0; color: var(--soft); font-size: 14px; line-height: 1.5; }
.offer-steps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--soft); }
.offer-steps li span { margin-right: 8px; }
.offer-steps li b { color: var(--green); white-space: nowrap; }
.offer-foot { margin-top: auto; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.offer-foot .err { flex: 1; margin: 0; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.wall .offers p, .wall .offer-bar p { padding: 0; }

/* signup / profile: country + birth date */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.row2 select, .row3 select { width: 100%; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; } }

/* app shell: section navigation */
.app { padding-top: 24px; }
.appnav { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 6px; margin-bottom: 22px; background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; scrollbar-width: none; position: sticky; top: 8px; z-index: 5; }
.appnav::-webkit-scrollbar { display: none; }
.appnav a { flex: 0 0 auto; padding: 10px 18px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.appnav a:hover { background: var(--paper); color: var(--text); }
.appnav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.page { margin-top: 22px; }
.page > .panel, .page > .cols { margin-bottom: 16px; }
.page h2 { margin-top: 28px; }
.page .panel h2 { margin-top: 0; }
.tips summary { cursor: pointer; font-weight: 600; }
.tips[open] summary { margin-bottom: 12px; }
details.tips { margin-top: 16px; }
.tiers.mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; align-items: stretch; }
@media (max-width: 700px) { .tiers.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tiers.mini .tier, .tiers.mini .tier:nth-child(n) { padding: 14px; border-radius: 16px; min-height: 0; gap: 6px; }
.tiers.mini .tier strong { font-size: 28px; }
.tiers.mini .tier.current { outline: 2px solid var(--green); }
.mini3.two { grid-template-columns: repeat(2, 1fr); }
ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--soft); line-height: 1.5; }
ul.plain b { color: var(--text); }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 12px; }
dl.facts dt { color: var(--muted); font-size: 14px; }
dl.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.qrbox { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.qrbox img { border-radius: 12px; border: 1px solid var(--line); background: #fff; image-rendering: pixelated; }
.qrbox > div { flex: 1 1 220px; }
.plain-ol { margin: 0 0 10px; padding-left: 20px; color: var(--soft); display: grid; gap: 6px; }
code.secret { display: inline-block; font: 500 15px var(--mono); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; overflow-wrap: anywhere; }
ul.codes { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
ul.codes li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: center; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.panel.danger { border-color: #E9B4A8; }
.btn.danger-btn { background: #A23B2A; }
.btn.danger-btn:hover { background: #7E2C1F; }
/* tier cards on small phones: keep the big numbers inside the card */
@media (max-width: 480px) { .tier strong { font-size: clamp(40px, 13vw, 64px); } }

/* languages */
html.i18n-wait body { visibility: hidden; }
select.langpick { min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--text); font: inherit; font-size: 14px; }
.top nav select.langpick { margin-left: 4px; }
.foot-lang { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 14px; }
.foot-lang select.langpick { background: transparent; color: inherit; }

/* polish: footer row, phone header, reset links */
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.foot-top .brand-sm { margin: 0; }
.foot-top .foot-lang { margin: 0; color: var(--soft); }
@media (max-width: 600px) { .top nav select.langpick { display: none; } }
.forgot-link { display: block; margin: 12px auto 0; }
.notfound { text-align: center; padding: 96px 0 120px; }
.notfound .nf-code { font: 800 clamp(96px, 20vw, 180px)/1 var(--display); letter-spacing: -0.05em; margin: 0; }
.notfound .nf-code span { background: var(--lime); padding: 0 .12em; border-radius: .12em; }
.notfound p { color: var(--soft); font-size: 18px; margin: 16px 0 28px; }

/* withdrawal fee preview */
.wd-fee { margin: -4px 0 14px; color: var(--soft); }
.wd-fee.warn { color: #A23B2A; }

/* started offers: inline missing-credit form */
.claimform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.claimform input { flex: 1 1 180px; min-height: 38px; padding: 6px 10px; }
.claimform .err { flex-basis: 100%; margin: 0; }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 14px; }

/* connected devices */
.devices { list-style: none; padding: 0; margin: 0 0 14px; }
.devices li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.devices li div { display: flex; flex-direction: column; gap: 2px; }
.devices .tag { font-size: 12px; background: var(--lime); color: var(--ink); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

/* toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: min(360px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--paper); border-left: 4px solid var(--lime); border-radius: 14px; padding: 12px 16px;
  font: 500 14px/1.4 var(--sans); box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* offers: search, category, sort */
.offer-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.offer-filters input, .offer-filters select { min-height: 42px; }
@media (max-width: 640px) { .offer-filters { grid-template-columns: 1fr 1fr; } .offer-filters input { grid-column: 1 / -1; } }

/* footer: social link */
.foot-social { font-weight: 600; }

/* partner walls opened in their own tab */
.wall-external { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; text-align: center; }
.wall-external h3 { font: 800 24px/1.2 var(--display, inherit); margin: 0 0 8px; }
.wall-external p { max-width: 520px; margin: 0 auto 20px; }
.wall-hint { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.wall-hint span { flex: 1 1 320px; }
.wall-newtab { font-weight: 700; white-space: nowrap; }

/* offers in progress */
.offer-progress { margin: 0 0 22px; }
.offer-progress h3 { margin: 0 0 10px; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.progress-label { margin: -4px 0 0; color: var(--soft); }
.progress-card.is-done .progress span { background: var(--soft); }
.progress-steps li { display: grid; grid-template-columns: 18px 1fr auto; gap: 2px 8px; align-items: baseline; }
.progress-steps { list-style: none; padding-left: 0; }
.progress-steps small { grid-column: 2 / -1; }
.step-mark { font-style: normal; font-weight: 700; color: var(--green); }
.step-failed .step-mark { color: var(--warn); }
.step-done span { text-decoration: line-through; opacity: .75; }
.progress-old { margin-top: 12px; }
.progress-old summary { cursor: pointer; color: var(--soft); }
.progress-old .offers { margin-top: 10px; }
.csv-btn { margin: 0 0 12px; }

/* ---------------------------------------------------------------- my statistics (mystats.js) */
.kpis4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi > span { font-size: 13px; color: var(--muted); }
.kpi strong { font: 800 30px/1.15 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi small { color: var(--muted); font-size: 12.5px; }
.kpi small.up { color: var(--green); font-weight: 600; } .kpi small.down { color: #B4432F; font-weight: 600; }
.kpi.dark { background: var(--ink); border-color: var(--ink); }
.kpi.dark > span, .kpi.dark small { color: var(--muted-d); } .kpi.dark strong { color: var(--lime); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 6px; }
.panel-head h2 { margin: 0; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; font: 600 13.5px var(--sans); color: var(--soft); padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.st-sum { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 6px; }
.st-sum span { display: flex; flex-direction: column; }
.st-sum small { color: var(--muted); font-size: 12.5px; } .st-sum strong { font-size: 17px; font-weight: 500; }
.st-chart { position: relative; }
svg.bars { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
svg.bars text { font: 500 12px var(--mono); fill: var(--muted); }
svg.bars line.grid { stroke: #EEEBE2; stroke-dasharray: 3 4; } svg.bars line.axis { stroke: var(--line); }
svg.bars .bar rect:first-child { fill: var(--green); transition: opacity .15s; }
svg.bars .bar.zero rect:first-child { fill: var(--line); }
svg.bars .bar.hi rect:first-child { fill: var(--lime); stroke: var(--green); stroke-width: 1.5; }
svg.bars .bar.on rect:first-child { opacity: .72; }
.st-empty { position: absolute; inset: 30% 0 auto; text-align: center; margin: 0; }
.st-empty a { color: var(--green); font-weight: 600; }
.hbars { display: grid; gap: 16px; margin-top: 12px; }
.hbars > .st-empty { position: static; }
.hbar-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.hbar-head b { font-weight: 600; font-size: 14.5px; } .hbar-head strong { font-weight: 500; font-size: 14.5px; }
.hbar-track { height: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.hbar-track span { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .6s ease; }
.hbar small { display: block; margin-top: 5px; }
.st-cols { margin-top: 0; }
.chart-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--paper); border-radius: 10px;
  padding: 8px 11px; font-size: 12.5px; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.chart-tip b { font-weight: 600; } .chart-tip span:nth-child(2) { color: var(--lime); font-family: var(--mono); }

/* ---------------------------------------------------------------- notifications (notices.js) */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line); background: var(--white); border-radius: 999px; color: var(--text); cursor: pointer; margin-right: 4px; }
.bell:hover { border-color: var(--ink); }
.bell[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bell-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #D2402B;
  color: #fff; font: 700 11px/20px var(--sans); text-align: center; border: 2px solid var(--paper); }
.notif { position: fixed; z-index: 55; top: 80px; right: max(16px, calc((100vw - 1240px) / 2 + 24px)); width: min(400px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 100px)); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: 0 18px 50px rgba(14, 20, 17, .16); overflow: hidden; }
.notif[hidden] { display: none; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.notif-head h2 { margin: 0; font-size: 18px; }
.notif-list { overflow-y: auto; }
.notif-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #F0EDE4;
  color: var(--text); text-decoration: none; position: relative; }
a.notif-item:hover { background: var(--paper); color: var(--text); }
.notif-item.unread { background: #FBFDF3; }
.notif-item.unread::before { content: ""; position: absolute; left: 7px; top: 26px; width: 6px; height: 6px; border-radius: 3px; background: #D2402B; }
.notif-ico { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--lime); }
.notif-item.ok .notif-ico { background: #E4F3E9; color: var(--green); }
.notif-item.warn .notif-ico { background: #FBEDE5; color: #B4432F; }
.notif-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.notif-top b { font-weight: 600; font-size: 14.5px; line-height: 1.35; } .notif-top time { font-size: 12px; white-space: nowrap; }
.notif-main p { margin: 4px 0 0; color: var(--soft); font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.notif-from { display: block; margin-top: 6px; color: var(--green); font-weight: 600; font-size: 12px; }
.notif-empty { padding: 28px 18px; text-align: center; margin: 0; }
@media (max-width: 720px) { .notif { top: 70px; right: 16px; } }
