/* =========================================================================
   aiCat — site styles.
   Single stylesheet, no build step, no framework. Light and dark both
   supported; dark follows the OS unless the user flips it.
   ========================================================================= */

:root {
  --amber: #F5A623;
  --amber-dark: #D4870C;
  --ink: #16161d;
  --ink-2: #3d3d4a;
  --muted: #6b6b7b;
  --line: #e7e5e0;
  --bg: #fffdf9;
  --bg-2: #f7f4ee;
  --card: #ffffff;
  --ok: #1f9d55;
  --warn: #d9822b;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 8px rgba(22,22,29,.06), 0 12px 32px rgba(22,22,29,.07);
  --shadow-lg: 0 8px 20px rgba(22,22,29,.08), 0 28px 64px rgba(22,22,29,.12);
  --max: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f1ee; --ink-2: #c9c8c4; --muted: #9a99a3;
    --line: #2b2b35; --bg: #101017; --bg-2: #16161f; --card: #1a1a24;
    --shadow: 0 2px 8px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
    --shadow-lg: 0 8px 20px rgba(0,0,0,.35), 0 28px 64px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
kbd {
  background: var(--bg-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 6px; font-size: .85em; white-space: nowrap;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 100; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 11px 22px;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #1b1b1f; box-shadow: 0 4px 14px rgba(245,166,35,.35); }
.btn-primary:hover { background: var(--amber-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--amber); }
.btn-link { background: none; border: none; color: var(--amber-dark); text-decoration: underline; padding: 4px; }
.btn-google { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-xl { padding: 18px 36px; font-size: 1.15rem; }
.btn-sm { padding: 7px 14px; font-size: .875rem; }
.btn-block { width: 100%; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40; backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -.02em; }
.logo b { color: var(--amber-dark); }
.nav { display: flex; gap: 22px; margin-left: 12px; flex: 1; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: .94rem; font-weight: 550; }
.nav a:hover { color: var(--amber-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--ink); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--amber);
  display: grid; place-items: center; font-weight: 750; color: #1b1b1f;
  text-decoration: none; overflow: hidden; font-size: .85rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 60px; height: 60px; font-size: 1.2rem; }

@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
         background: var(--card); padding: 16px 20px; border-bottom: 1px solid var(--line); }
  body.nav-open .nav { display: flex; }
  .burger { display: block; }
  .header-actions .btn-ghost { display: none; }
}

/* ------------------------------------------------------------------- hero */
.hero { padding: 56px 0 40px; background:
  radial-gradient(900px 380px at 12% -8%, rgba(245,166,35,.16), transparent 60%),
  radial-gradient(700px 320px at 95% 0%, rgba(120,180,255,.12), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 46px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 750; color: var(--amber-dark); margin-bottom: 12px; }
.hero h1 .hl { color: var(--amber-dark); }
.lede, .page-lede { font-size: 1.13rem; color: var(--ink-2); max-width: 56ch; }
.page-lede { margin-bottom: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.social-proof { font-size: .875rem; color: var(--muted); margin: 0 0 10px; }
.bonus { font-size: .95rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- demo */
.demo { border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-lg);
        border: 1px solid var(--line); overflow: hidden; }
.demo-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px;
               background: var(--bg-2); border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #d8d5cf; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.demo-app { margin-left: 10px; font-size: .8rem; color: var(--muted); }
.demo-body { position: relative; min-height: 330px; padding: 22px; }
.demo-text { font-size: 1rem; line-height: 1.75; margin: 0; }
.demo-text .sel { background: rgba(90,150,255,.32); border-radius: 3px; padding: 1px 0; }
.demo-float {
  position: absolute; left: 24px; top: 96px; background: var(--amber); color: #1b1b1f;
  border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .8rem;
  cursor: pointer; box-shadow: 0 4px 14px rgba(245,166,35,.4); animation: pop .18s ease;
}
.demo-key { position: absolute; right: 22px; top: 18px; animation: pop .18s ease; }
.demo-key kbd { font-size: 1rem; padding: 6px 12px; background: var(--ink); color: var(--bg); border-color: var(--ink); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.aicat-window {
  position: absolute; left: 16px; right: 16px; bottom: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; animation: slideup .22s ease;
}
@keyframes slideup { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.aw-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg-2);
          border-bottom: 1px solid var(--line); font-size: .8rem; }
.aw-grip { color: var(--muted); cursor: grab; }
.aw-title { font-weight: 700; }
.aw-badges { margin-left: auto; display: flex; gap: 6px; }
.badge { font-size: .68rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.badge.ai { background: rgba(90,150,255,.12); }
.badge.ok { background: rgba(31,157,85,.12); color: var(--ok); }
.aw-row { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.aw-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
            min-width: 62px; padding-top: 3px; }
.aw-row p { margin: 0; font-size: .92rem; }
.aw-result p { font-weight: 600; }
.aw-actions { display: flex; gap: 6px; padding: 10px 12px; flex-wrap: wrap; }
.aw-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px;
          padding: 5px 12px; font-size: .78rem; cursor: pointer; color: var(--ink); }
.aw-btn.primary { background: var(--amber); border-color: var(--amber); color: #1b1b1f; font-weight: 700; margin-left: auto; }
.demo-tabs { display: flex; gap: 4px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--bg-2); }
.demo-tab { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px;
            font-size: .8rem; cursor: pointer; color: var(--muted); }
.demo-tab.is-on { background: var(--card); color: var(--ink); font-weight: 650; box-shadow: var(--shadow); }
.demo-gif { width: 100%; border-radius: var(--radius); }

/* ------------------------------------------------------------------ strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
               padding: 14px 20px; font-size: .875rem; color: var(--ink-2); }
.strip-inner i { color: var(--line); font-style: normal; }

/* --------------------------------------------------------------- sections */
.section { padding: 62px 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.band-soft { background: var(--bg-2); border-radius: var(--radius-lg); padding: 40px 28px; }
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 62ch; margin: 0 auto 34px; }
.page-h1 { margin-bottom: 12px; }

.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
          background: var(--amber); color: #1b1b1f; font-weight: 800; margin-bottom: 12px; }

.guess-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guess-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.guess-when { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.guess-card h3 { color: var(--amber-dark); margin-top: 6px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.feature-card { display: block; background: var(--card); border: 1px solid var(--line);
                border-radius: var(--radius); padding: 22px; text-decoration: none;
                transition: transform .14s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--amber); }
.feature-card h3 { font-size: 1.02rem; }
.feature-card p { font-size: .92rem; color: var(--ink-2); }
.hk { display: inline-block; margin-bottom: 10px; background: var(--amber); border-color: var(--amber); color: #1b1b1f; font-weight: 700; }
.more { font-size: .85rem; color: var(--amber-dark); font-weight: 650; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.big { font-size: 1.1rem; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; }
.checks li { padding-left: 26px; position: relative; margin-bottom: 9px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.checks-neutral li::before { content: "•"; color: var(--muted); }

.coin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
             padding: 26px; text-align: center; box-shadow: var(--shadow); }
.coin { font-size: 3rem; }
.coin-eq { margin: 8px 0; font-size: .95rem; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.pane { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 22px; margin-bottom: 18px; }
.stat { font-size: 2rem; font-weight: 800; margin: 4px 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: .88rem;
        text-decoration: none; background: var(--card); }
.chip:hover { border-color: var(--amber); }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.article-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
                padding: 20px; text-decoration: none; }
.article-card:hover { border-color: var(--amber); }
.article-card h3 { font-size: 1rem; }
.article-card p { font-size: .88rem; color: var(--muted); margin: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

.final-cta { padding: 66px 0; text-align: center; background: var(--bg-2); border-top: 1px solid var(--line); }
.final-cta h2 { max-width: 22ch; margin: 0 auto 22px; }

/* --------------------------------------------------------------- pricing */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 28px; }
.billing-toggle .on { font-weight: 700; }
.save { font-style: normal; font-size: .74rem; background: var(--ok); color: #fff; padding: 2px 8px; border-radius: 999px; }
.switch { width: 50px; height: 28px; border-radius: 999px; background: var(--line); border: 0;
          position: relative; cursor: pointer; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
                background: #fff; transition: transform .16s ease; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.switch[aria-checked="true"] { background: var(--amber); }
.switch[aria-checked="true"] .knob { transform: translateX(22px); }

.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
        padding: 24px 20px; position: relative; }
.plan-featured { border-color: var(--amber); box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
             background: var(--amber); color: #1b1b1f; font-size: .7rem; font-weight: 750;
             padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.plan-price .amount { font-size: 2.2rem; font-weight: 800; }
.plan-price .was { text-decoration: line-through; color: var(--muted); font-size: 1rem; }
.plan-price .per { color: var(--muted); font-size: .85rem; }
.plan-off { background: var(--ok); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.plan-billed { font-size: .8rem; color: var(--muted); }
.plan-coins, .plan-limit, .plan-rate { font-size: .9rem; margin: 6px 0; }
.plan-features { list-style: none; padding: 0; margin: 14px 0 18px; font-size: .875rem; }
.plan-features li { padding-left: 20px; position: relative; margin-bottom: 7px; color: var(--ink-2); }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.plan-note { text-align: center; margin-top: 18px; }

.topup { max-width: 620px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
         border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.topup-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.topup-input { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line);
               border-radius: 10px; padding: 8px 12px; font-size: 1.3rem; font-weight: 700; flex: 1; }
.topup-input input { border: 0; background: none; font: inherit; width: 100%; color: inherit; outline: none; }
.topup-mult { background: var(--amber); color: #1b1b1f; font-weight: 800; padding: 8px 16px;
              border-radius: 10px; font-size: 1.2rem; }
.topup-slider { width: 100%; accent-color: var(--amber); }
.topup-marks { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-bottom: 18px; }
.topup-marks span { cursor: pointer; }
.topup-out { display: flex; justify-content: space-between; align-items: center; gap: 14px;
             background: var(--bg-2); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.topup-coins { font-size: 1.9rem; font-weight: 800; display: block; }
.topup-eq { text-align: right; font-size: .9rem; }

.crypto-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.crypto-item { display: flex; flex-direction: column; gap: 2px; background: var(--bg-2);
               border-radius: 10px; padding: 10px 12px; }
.crypto-name { font-size: .78rem; color: var(--muted); }
.crypto-addr { word-break: break-all; cursor: pointer; font-size: .82rem; }
.crypto-addr:hover { color: var(--amber-dark); }

.table-scroll { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.cmp th, .cmp td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cmp tbody tr:hover { background: var(--bg-2); }

/* -------------------------------------------------------------- download */
.download-hero { text-align: center; }
.dl-primary { margin: 26px 0; }
.dl-meta { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.dl-wrong { font-size: .9rem; }
.dl-all { display: none; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.dl-all.is-open { display: grid; }
.dl-card { display: flex; flex-direction: column; gap: 3px; background: var(--card); border: 1px solid var(--line);
           border-radius: var(--radius); padding: 16px; text-decoration: none; text-align: left; }
.dl-card:hover { border-color: var(--amber); }
.dl-card.is-detected { border-color: var(--amber); }
.dl-icon { font-size: 1.5rem; }
.dl-label { font-weight: 700; }
.dl-file { font-size: .78rem; color: var(--muted); }
.dl-go { font-size: .85rem; color: var(--amber-dark); font-weight: 650; margin-top: 4px; }
.install-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.install-col ol { padding-left: 20px; font-size: .93rem; }
.install-col li { margin-bottom: 9px; }

/* --------------------------------------------------------------- article */
.article { max-width: 800px; padding-top: 40px; padding-bottom: 60px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.article-meta { font-size: .8rem; color: var(--muted); }
.key-facts { background: var(--bg-2); border-left: 3px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0;
             padding: 20px 22px; margin: 26px 0; }
.key-facts h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.key-facts ul { margin: 0; padding-left: 20px; }
.key-facts li { margin-bottom: 8px; }
.blk { margin: 34px 0; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.mini h3 { font-size: .98rem; }
.mini p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.steps-list { counter-reset: s; list-style: none; padding: 0; }
.steps-list li { position: relative; padding-left: 42px; margin-bottom: 16px; }
.steps-list li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; background: var(--amber); color: #1b1b1f;
  display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.steps-list b { display: block; }
.steps-list span { color: var(--ink-2); }
.picks { display: flex; flex-direction: column; gap: 16px; }
.pick { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pick-verdict { color: var(--amber-dark); font-weight: 650; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px;
              background: var(--bg-2); border-radius: var(--radius-lg); padding: 26px; flex-wrap: wrap; }
.inline-cta h2 { margin-bottom: 4px; font-size: 1.3rem; }
.inline-cta p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------- profile */
.signin-card { max-width: 420px; margin: 30px auto; background: var(--card); border: 1px solid var(--line);
               border-radius: var(--radius-lg); padding: 32px; text-align: center; box-shadow: var(--shadow); }
.signin-card h1 { font-size: 1.6rem; }
.or { color: var(--muted); font-size: .82rem; margin: 14px 0; }
.field-row { display: flex; gap: 8px; }
.wrap-row { flex-wrap: wrap; }
.field-col { display: flex; flex-direction: column; gap: 9px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .85rem; font-weight: 650; margin-bottom: 5px; }
.field small { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=password],
select, textarea {
  font: inherit; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); width: 100%; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--amber); }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.check input { width: auto; }
.form-msg { font-size: .88rem; margin-top: 8px; }
.form-msg.err { color: #d33; }
.form-msg.ok { color: var(--ok); }

.profile-head { display: flex; justify-content: space-between; align-items: center; gap: 20px;
                flex-wrap: wrap; margin-bottom: 22px; }
.profile-id { display: flex; align-items: center; gap: 14px; }
.profile-id h1 { font-size: 1.5rem; margin: 0; }
.profile-coins { display: flex; align-items: center; gap: 10px; }
.coin-pill { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
             padding: 9px 18px; font: inherit; cursor: pointer; color: var(--ink); }

.low-balance { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
               background: rgba(217,130,43,.1); border: 1px solid var(--warn);
               border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.low-balance p { margin: 4px 0 0; font-size: .9rem; }
.lb-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { border: 0; background: none; padding: 11px 15px; font: inherit; cursor: pointer;
       color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.is-on { color: var(--ink); font-weight: 700; border-bottom-color: var(--amber); }
.tab-pane { display: none; }
.tab-pane.is-on { display: block; }

.progress { height: 12px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; background: var(--amber); width: 0; transition: width .4s ease; }
.usage-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.usage-head select { width: auto; }

.chart { display: flex; align-items: flex-end; gap: 3px; height: 130px; margin: 20px 0 8px;
         padding-top: 22px; position: relative; }
.chart::before { content: attr(data-title); position: absolute; top: 0; left: 0; font-size: .78rem; color: var(--muted); }
.chart .bar { flex: 1; background: var(--amber); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.chart .bar:hover { opacity: 1; }

.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ach { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; opacity: .45; }
.ach.on { opacity: 1; border-color: var(--amber); background: var(--bg-2); }
.ach .ico { font-size: 1.6rem; }
.ach h4 { margin: 6px 0 2px; font-size: .95rem; }
.ach p { font-size: .8rem; color: var(--muted); margin: 0; }
.ach .coins { font-size: .78rem; color: var(--amber-dark); font-weight: 700; }

.ledger-day { border-bottom: 1px solid var(--line); padding: 12px 0; }
.ledger-day h4 { margin: 0 0 6px; font-size: .85rem; color: var(--muted); }
.ledger-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; padding: 3px 0; }
.ledger-row .neg { color: #d33; } .ledger-row .pos { color: var(--ok); }

.funnel { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; }
.funnel-row { display: flex; align-items: center; gap: 12px; }
.funnel-label { min-width: 210px; font-size: .9rem; }
.funnel-bar { flex: 1; height: 26px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.funnel-bar span { display: block; height: 100%; background: var(--amber); }
.funnel-val { min-width: 90px; text-align: right; font-weight: 700; }
.confirm-box { background: var(--bg-2); border: 1px solid var(--warn); border-radius: var(--radius);
               padding: 16px; margin-top: 12px; }
.utm-help { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* ---------------------------------------------------------------- rating */
.page-rating { padding: 30px 20px 50px; }
.rating-card { max-width: 520px; margin: 0 auto; text-align: center; background: var(--card);
               border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.rating-q { font-weight: 650; margin-bottom: 8px; }
.stars { display: flex; gap: 4px; justify-content: center; }
.star { background: none; border: 0; font-size: 1.7rem; color: var(--line); cursor: pointer; line-height: 1; }
.star.on, .star:hover { color: var(--amber); }
.rating-more { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.rating-thanks { margin-top: 10px; color: var(--ok); font-weight: 650; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 46px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 26px; }
.footer-grid h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-grid a { font-size: .875rem; text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--amber-dark); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 26px; margin-top: 26px;
                 border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------------------------- consent */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 16px;
           align-items: center; justify-content: center; flex-wrap: wrap;
           background: var(--card); border-top: 1px solid var(--line); padding: 14px 20px;
           box-shadow: 0 -8px 30px rgba(0,0,0,.1); }
.consent p { margin: 0; font-size: .88rem; max-width: 780px; }

/* ---------------------------------------------------------------- modals */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(10,10,16,.6);
         display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); }
.modal[hidden] { display: none; }
.modal-card { background: var(--card); border-radius: var(--radius-lg); width: 100%; max-width: 460px;
              max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; justify-content: space-between;
              padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; }
.modal-x { background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body { padding: 22px; }
.pay-summary { text-align: center; margin-bottom: 18px; }
.pay-amount { display: block; font-size: 2.2rem; font-weight: 800; }
.pay-what { color: var(--muted); font-size: .9rem; }
.pay-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.pay-iframe { width: 100%; height: 300px; border: 0; display: block; }
.pay-loading { padding: 20px; text-align: center; color: var(--muted); font-size: .9rem; }
.pay-error { color: #d33; font-size: .88rem; }
.pay-secure { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 12px; }
.big-emoji { font-size: 3.4rem; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .steps-3, .guess-grid, .two-col, .cards-3, .install-grid, .mini-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .funnel-label { min-width: 120px; font-size: .8rem; }
  .section { padding: 44px 0; }
}
