:root {
  --bg: #F1F3EA;
  --surface: #FBFBF6;
  --surface-2: #FFFFFF;
  --ink: #1C231D;
  --ink-soft: #5C6754;
  --ink-faint: #8B9482;
  --line: #D9E0CB;
  --line-strong: #C7D0BC;
  --accent-gold: #B9873B;
  --accent-gold-strong: #8F6323;
  --accent-teal: #2E6F5C;
  --accent-teal-soft: #E1EDE7;
  --danger: #A5453A;
  --circle-empty: #FFFFFF;
  --coin-fill: #F1DFB6;
  --coin-fill-border: #E0C68C;
  --coin-fill-text: #7A5D2E;
  --shadow-sm: 0 1px 2px rgba(28,35,29,.06);
  --shadow-md: 0 8px 24px rgba(28,35,29,.10);
  /* Единая система скруглений для кнопок — чтобы все контролы на сайте
     выглядели как одна согласованная система, а не набор случайных значений. */
  --radius-chip: 8px;   /* компактные переключатели: preset, settings-toggle, cookie-ok-btn, reset-btn */
  --radius-btn: 10px;   /* обычные кнопки: primary/secondary/ghost/danger, инпуты, селекты */
  --radius-pill: 999px; /* маркетинговые кнопки лендинга — намеренно другой, более заметный стиль */
}

/* Тёмная тема: по умолчанию следует системной настройке устройства,
   но переключатель (assets/theme.js) может явно задать <html data-theme="dark|light">,
   и тогда явный выбор побеждает системный. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101410;
    --surface: #171C15;
    --surface-2: #1D2419;
    --ink: #EDEEE3;
    --ink-soft: #A6B199;
    --ink-faint: #6E7864;
    --line: #2B3324;
    --line-strong: #38422F;
    --accent-gold: #E3AE5C;
    --accent-gold-strong: #F0C783;
    --accent-teal: #5FB498;
    --accent-teal-soft: #1C2E25;
    --danger: #E28073;
    --circle-empty: #1B2216;
    --coin-fill: #5C4E2E;
    --coin-fill-border: #7C6A3D;
    --coin-fill-text: #F1DFB6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  --bg: #101410;
  --surface: #171C15;
  --surface-2: #1D2419;
  --ink: #EDEEE3;
  --ink-soft: #A6B199;
  --ink-faint: #6E7864;
  --line: #2B3324;
  --line-strong: #38422F;
  --accent-gold: #E3AE5C;
  --accent-gold-strong: #F0C783;
  --accent-teal: #5FB498;
  --accent-teal-soft: #1C2E25;
  --danger: #E28073;
  --circle-empty: #1B2216;
  --coin-fill: #5C4E2E;
  --coin-fill-border: #7C6A3D;
  --coin-fill-text: #F1DFB6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
}

body { transition: background .2s ease, color .2s ease; }

/* ---------- Переключатель темы ---------- */
.theme-toggle {
  font-size: 15px; line-height: 1; width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2);
  color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.theme-toggle:hover { border-color: var(--accent-teal); color: var(--ink); transform: rotate(12deg); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 2px; }
.theme-toggle-fixed { position: absolute; top: 18px; right: 18px; z-index: 5; }
.auth-page, .policy-page { position: relative; }

* { box-sizing: border-box; }
html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Golos Text', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: 'Unbounded', 'Segoe UI', system-ui, sans-serif; margin: 0; text-wrap: balance; }

a { color: var(--accent-teal); }

/* ---------- Современные текстовые ссылки: без подчёркивания по умолчанию,
   линия появляется и вытягивается слева направо при наведении/фокусе ---------- */
.auth-switch a,
.field-hint a,
.cookie-banner-text a,
.policy-card p a,
.free-section a[href^="mailto"] {
  position: relative;
  color: var(--accent-teal);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 1px;
  transition: color .18s ease;
}
.auth-switch a::after,
.field-hint a::after,
.cookie-banner-text a::after,
.policy-card p a::after,
.free-section a[href^="mailto"]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width .22s ease;
}
.auth-switch a:hover, .auth-switch a:focus-visible,
.field-hint a:hover, .field-hint a:focus-visible,
.cookie-banner-text a:hover, .cookie-banner-text a:focus-visible,
.policy-card p a:hover, .policy-card p a:focus-visible,
.free-section a[href^="mailto"]:hover, .free-section a[href^="mailto"]:focus-visible {
  color: var(--accent-gold-strong);
}
.auth-switch a:hover::after, .auth-switch a:focus-visible::after,
.field-hint a:hover::after, .field-hint a:focus-visible::after,
.cookie-banner-text a:hover::after, .cookie-banner-text a:focus-visible::after,
.policy-card p a:hover::after, .policy-card p a:focus-visible::after,
.free-section a[href^="mailto"]:hover::after, .free-section a[href^="mailto"]:focus-visible::after {
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .auth-switch a::after, .field-hint a::after, .cookie-banner-text a::after,
  .policy-card p a::after, .free-section a[href^="mailto"]::after { transition: none; }
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 20px 20px 64px; }

/* ---------- Верхняя панель приложения ---------- */

.top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}
.top-actions { position: absolute; top: 24px; right: 24px; display: flex; align-items: center; gap: 8px; z-index: 5; }
@media (max-width: 560px) { .top-actions { top: 14px; right: 14px; } }

.brand { display: flex; align-items: center; gap: 18px; flex: 1 1 260px; min-width: max-content; }

.ring {
  --deg: 0deg;
  width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--accent-gold) var(--deg), var(--line) var(--deg));
  display: flex; align-items: center; justify-content: center;
  transition: background .5s ease;
}
.ring-inner {
  width: 76%; height: 76%; border-radius: 50%; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.ring-pct { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 19px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ring-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }

.brand-text h1 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -0.01em; }
.brand-text h1 .accent { color: var(--accent-gold-strong); }
.tagline { margin: 6px 0 0; color: var(--ink-soft); font-size: 13.5px; max-width: 34ch; }

.stats { display: flex; gap: 22px; flex: 1 1 320px; align-items: center; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; min-width: 96px; }
.stat-label { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); }
.stat-value { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: clamp(15px, 2.4vw, 21px); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-value small { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 13px; color: var(--ink-soft); }

.controls { display: flex; flex-direction: column; gap: 10px; flex: 1 1 260px; min-width: 220px; justify-content: center; }
.mult-label { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); display: block; margin-bottom: 6px; }
.mult-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mult-input {
  width: 96px; padding: 8px 10px; border-radius: var(--radius-btn); border: 1.5px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink); font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mult-input:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 1px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.preset {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; padding: 7px 10px; border-radius: var(--radius-chip);
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-soft); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.preset:hover { border-color: var(--accent-teal); color: var(--ink); }
.preset.active { background: var(--accent-teal); border-color: var(--accent-teal); color: #fff; }
.preset:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 1px; }

.controls-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.save-status { font-size: 12px; color: var(--ink-faint); font-family: 'JetBrains Mono', monospace; }
.reset-btn, .logout-btn {
  font-family: 'Golos Text', sans-serif; font-size: 12.5px; font-weight: 500; background: transparent;
  border: 1px solid transparent; padding: 6px 4px; cursor: pointer; border-radius: var(--radius-chip); transition: background .15s ease;
}
.reset-btn { color: var(--danger); }
.reset-btn:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.reset-btn:focus-visible { outline: 2px solid var(--danger); outline-offset: 1px; }

.settings-toggle {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; padding: 7px 12px; border-radius: var(--radius-chip);
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-soft); cursor: pointer;
  white-space: nowrap; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.settings-toggle:hover { border-color: var(--accent-teal); color: var(--ink); }
.settings-toggle.active { background: var(--accent-teal); border-color: var(--accent-teal); color: #fff; }
.settings-toggle:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 1px; }
.settings-toggle-icon {
  width: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; white-space: normal;
}

.settings-block { display: flex; flex-direction: column; gap: 8px; }
.settings-block-title {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-faint);
}
.settings-hint { font-size: 12px; color: var(--ink-faint); line-height: 1.5; margin: 0; max-width: 52ch; }
.settings-hint strong { color: var(--ink-soft); }

/* ---------- Подсказки (ⓘ) по требованию — вместо длинных абзацев ---------- */
.settings-block-title-row { display: flex; align-items: center; gap: 6px; }
.info-tip-btn {
  width: 18px; height: 18px; padding: 0; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.info-tip-btn:hover, .info-tip-btn[aria-expanded="true"] {
  border-color: var(--accent-teal); color: var(--accent-teal); background: var(--accent-teal-soft);
}
.info-tip-btn:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 2px; }
.info-tip-panel {
  margin: 8px 0 0; padding: 10px 12px; border-radius: var(--radius-chip); max-width: 52ch;
  background: var(--accent-teal-soft); border: 1px solid var(--line);
}
.info-tip-panel[hidden] { display: none; }
.info-tip-panel p { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin: 0; }

.currency-row { display: flex; flex-wrap: wrap; gap: 8px; }
.currency-select, .coin-mode-select {
  padding: 8px 10px; border-radius: var(--radius-btn); border: 1.5px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink); font-family: 'Golos Text', sans-serif; font-size: 13.5px;
  cursor: pointer;
}
.currency-select:focus-visible, .coin-mode-select:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 1px; }

.segmented { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: var(--radius-btn); overflow: hidden; width: fit-content; }
.segmented button {
  font-family: 'Golos Text', sans-serif; font-size: 12.5px; font-weight: 500; padding: 8px 14px;
  border: none; background: var(--surface-2); color: var(--ink-soft); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.segmented button + button { border-left: 1.5px solid var(--line-strong); }
.segmented button.active { background: var(--accent-teal); color: #fff; }
.segmented button:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: -2px; }

.check-row {
  display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer;
  user-select: none;
}
.check-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent-teal); cursor: pointer; }

/* ---------- Переключатель (тумблер) для настроек в модалке ---------- */
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; user-select: none;
}
.switch-row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.switch-row-desc { font-size: 12px; color: var(--ink-faint); line-height: 1.45; font-weight: 400; }
.switch { position: relative; flex-shrink: 0; width: 40px; height: 24px; }
.switch input {
  position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer;
}
.switch-track {
  position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong);
  transition: background .18s ease;
}
.switch-track::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface-2); box-shadow: var(--shadow-sm); transition: transform .18s ease;
}
.switch input:checked + .switch-track { background: var(--accent-teal); }
.switch input:checked + .switch-track::before { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent-teal); outline-offset: 2px; }

.password-change-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.password-change-status { font-size: 12px; color: var(--ink-faint); font-family: 'JetBrains Mono', monospace; }
.settings-desc { font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; margin: 0; max-width: 52ch; }
.btn-secondary {
  font-family: 'Golos Text', sans-serif; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: var(--radius-btn);
  border: 1.5px solid var(--line-strong); background: var(--surface-2); color: var(--ink); cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.btn-secondary:hover { border-color: var(--accent-teal); transform: translateY(-1px); }
.btn-secondary:disabled { opacity: .6; cursor: default; }
.btn-secondary:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 2px; }

.account-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; color: var(--ink-faint); }
.account-identity { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.account-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.app-logo {
  font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 15px; color: var(--ink);
  white-space: nowrap;
}
.app-logo .accent { color: var(--accent-gold-strong); }
.account-row .email { color: var(--ink-soft); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.logout-btn { color: var(--ink-soft); text-decoration: none; border: 1px solid var(--line-strong); padding: 5px 12px; border-radius: var(--radius-btn); }
.logout-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Сетка монет ---------- */

.board { display: flex; flex-direction: column; gap: 26px; }
.block-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; padding-left: 2px; }
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }

.coin {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--circle-empty);
  color: var(--ink-soft); /* ink-faint давал ~3:1 к фону — маловато для мелких цифр, ink-soft ~6:1 */
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: clamp(11px, 2.4vw, 13px);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0 2px;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, background .25s ease, border-color .25s ease, color .2s ease;
}
/* Режим «сумма» с крупным номиналом даёт длинные подписи (например «12.3К») —
   уменьшаем шрифт и трекинг, чтобы влезало в кружок. */
.coin.coin-compact { font-size: clamp(8px, 1.9vw, 10.5px); letter-spacing: -.02em; }
.coin:hover { border-color: var(--accent-teal); color: var(--ink); transform: translateY(-1px); }
.coin:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 2px; }
.coin.filled {
  background: var(--coin-fill);
  border-color: var(--coin-fill-border);
  color: var(--coin-fill-text);
  font-weight: 700;
}
.coin.filled:hover { border-color: var(--coin-fill-text); }
.coin.pop { animation: coinPop .38s ease; }
@keyframes coinPop { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 60% { transform: scale(.93); } 100% { transform: scale(1); } }

.note { margin-top: 36px; text-align: center; color: var(--ink-faint); font-size: 12.5px; max-width: 52ch; margin-left: auto; margin-right: auto; }

body.readonly .coin { cursor: default; }
body.readonly .coin:hover { border-color: var(--line-strong); color: var(--ink-soft); transform: none; }
body.readonly .coin.filled:hover { border-color: var(--coin-fill-border); }

/* ---------- Полоса прогресса ---------- */

.bar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.bar-fill {
  position: absolute; inset: 0;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--coin-fill-border), var(--accent-gold));
  border-radius: inherit;
  transition: width .5s ease;
}
@media (prefers-reduced-motion: reduce) { .bar-fill { transition: none; } }

.top-bar {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.top-bar .bar-track { flex: 1; }
.bar-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  white-space: nowrap;
}

.friends-bars {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.friends-bars-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-faint);
}

/* Спойлер, когда прогресс друзей спрятан по настройке */
details.friends-bars-details {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
}
details.friends-bars-details summary {
  cursor: pointer; list-style: none; font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint);
  display: flex; align-items: center; gap: 6px; user-select: none;
}
details.friends-bars-details summary::-webkit-details-marker { display: none; }
details.friends-bars-details summary::before { content: '▸'; font-size: 11px; transition: transform .15s ease; }
details.friends-bars-details[open] summary::before { transform: rotate(90deg); }
details.friends-bars-details .friends-bars { border-top: none; margin-top: 12px; padding-top: 0; }
.friend-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  padding: 6px 6px;
  border-radius: 8px;
  transition: background .15s ease;
}
.friend-bar-row:hover { background: var(--bg); }
.friend-bar-row:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 2px; }
.friend-bar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.friend-bar-name {
  min-width: 0; max-width: 55%;
  font-size: 13px; font-weight: 500; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.friend-bar-stats {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--ink-soft);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.friend-bar-bottom { display: flex; align-items: center; gap: 10px; }
.friend-bar-bottom .bar-track { flex: 1; }
.friend-bar-more {
  align-self: flex-start;
  font-size: 12.5px; color: var(--accent-teal); text-decoration: none;
}
.friend-bar-more:hover { text-decoration: underline; }

/* ---------- Страница «Друзья» ---------- */

.flash-notice {
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}

.friends-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.section-title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.section-title-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 9px; background: var(--accent-teal-soft); color: var(--accent-teal); font-size: 15px; flex-shrink: 0;
}
.section-hint { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 18px; max-width: 60ch; line-height: 1.55; }

.invite-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.invite-row { display: flex; gap: 8px; align-items: center; }
.invite-link-input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--radius-btn); border: 1.5px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink-soft); font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
}
.invite-copy-btn {
  flex-shrink: 0; font-family: 'Golos Text', sans-serif; font-size: 12.5px; font-weight: 600;
  padding: 9px 14px; border-radius: var(--radius-btn); border: 1.5px solid var(--line-strong);
  background: var(--surface-2); color: var(--accent-teal); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease;
  white-space: nowrap;
}
.invite-copy-btn:hover { border-color: var(--accent-teal); transform: translateY(-1px); }
.invite-copy-btn.copied { background: var(--accent-teal); border-color: var(--accent-teal); color: #fff; }
.invite-copy-btn:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 2px; }

.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 28px 16px; color: var(--ink-faint);
}
.empty-state-icon { font-size: 26px; margin-bottom: 4px; }
.empty-state p { margin: 0; font-size: 13.5px; max-width: 40ch; }

.friend-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.friend-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--surface-2);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.friend-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.friend-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.friend-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.friend-avatar {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 13px; color: #fff;
}
.friend-email { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.friend-card-link { display: block; text-decoration: none; }
.friend-card-stats {
  display: flex; justify-content: space-between; margin-top: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-soft);
}
.friend-card-pct {
  font-weight: 700; color: var(--accent-gold-strong);
}

@media (prefers-reduced-motion: reduce) {
  .coin, .ring { transition: background .2s ease, border-color .2s ease, color .2s ease; }
  .coin:hover { transform: none; }
  .coin.pop { animation: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 14px 12px 48px; }
  .top { padding: 18px; border-radius: 16px; }
  .coins { grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; }
  /* На узких экранах кнопки настроек/темы больше не абсолютные поверх заголовка
     (иначе текст копилки заезжает под них) — уходят на свою строку сверху. */
  .top-actions { position: static; width: 100%; justify-content: flex-end; margin-bottom: 10px; }
  .brand { min-width: 0; flex-basis: 100%; }
}

/* ---------- Модалка сброса ---------- */

.modal-overlay {
  position: fixed; inset: 0; background: rgba(16,20,16,.45); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 20;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--surface-2); border-radius: 16px; padding: 24px; max-width: 340px; width: 100%;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.modal h2 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.modal p { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-ghost, .btn-danger {
  font-family: 'Golos Text', sans-serif; font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: var(--radius-btn); cursor: pointer; border: 1px solid transparent;
}
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.06); }
.btn-ghost:focus-visible, .btn-danger:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 2px; }

/* ---------- Модалка настроек ---------- */

.settings-modal {
  max-width: 480px; max-height: min(640px, 88vh); overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px;
}
.settings-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; top: 0; margin: -24px -24px 0; padding: 20px 24px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--line); z-index: 1;
}
.settings-modal-head h2 { font-size: 18px; font-weight: 800; margin: 0; }
.modal-close-btn {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink-soft); font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.modal-close-btn:hover { border-color: var(--accent-teal); color: var(--ink); }
.modal-close-btn:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 2px; }

.settings-danger-zone {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  padding-top: 16px; border-top: 1px dashed var(--line);
}
.settings-danger-zone .settings-block-title { color: var(--danger); }
.btn-danger-outline {
  font-family: 'Golos Text', sans-serif; font-size: 13px; font-weight: 600; padding: 9px 16px;
  border-radius: var(--radius-btn); border: 1.5px solid color-mix(in srgb, var(--danger) 45%, transparent);
  background: transparent; color: var(--danger); cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-danger-outline:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: var(--danger); transform: translateY(-1px); }
.btn-danger-outline:focus-visible { outline: 2px solid var(--danger); outline-offset: 2px; }

@media (max-width: 560px) {
  .settings-modal { max-width: 100%; }
}

/* ---------- Вход и регистрация ---------- */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.auth-ring {
  width: 48px; height: 48px; border-radius: 50%; margin-bottom: 16px;
  background: conic-gradient(var(--accent-gold) 40%, var(--line) 0);
}

.auth-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.auth-card h1 .accent { color: var(--accent-gold-strong); }
.auth-sub { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 24px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); }
.field input {
  padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink); font-family: 'Golos Text', sans-serif; font-size: 15px;
}
.field input:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 1px; }
.field-hint { font-size: 12px; color: var(--ink-faint); }
.field.has-error input { border-color: var(--danger); }
.field.has-error input:focus-visible { outline-color: var(--danger); }
.field-error { font-size: 12px; color: var(--danger); }

/* ---------- Показать/скрыть пароль ---------- */
.password-input-wrap { position: relative; display: flex; }
.password-input-wrap input { width: 100%; padding-right: 44px; }
.pw-toggle-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: none; background: transparent; color: var(--ink-faint);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  transition: background .15s ease, color .15s ease;
}
.pw-toggle-btn:hover { background: var(--bg); color: var(--ink-soft); }
.pw-toggle-btn:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 2px; }
.pw-toggle-btn svg { width: 18px; height: 18px; display: block; }

.btn-primary {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-btn); border: none; cursor: pointer;
  background: var(--accent-teal); color: #fff; font-family: 'Golos Text', sans-serif; font-weight: 600; font-size: 15px;
  transition: filter .15s ease, transform .15s ease;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 2px solid var(--accent-gold-strong); outline-offset: 2px; }

.auth-switch { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--ink-soft); }

.error-list {
  list-style: none; margin: 0 0 18px; padding: 12px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-size: 13.5px;
}
.error-list li + li { margin-top: 4px; }

/* ---------- Куки-баннер ---------- */

.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  max-width: 420px; margin: 0 auto;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-soft); flex: 1 1 200px; }
.cookie-banner-text a { color: var(--accent-teal); }
.cookie-ok-btn {
  font-family: 'Golos Text', sans-serif; font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-chip);
  border: none; cursor: pointer; background: var(--accent-teal); color: #fff; flex-shrink: 0;
  transition: filter .15s ease, transform .15s ease;
}
.cookie-ok-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.cookie-ok-btn:focus-visible { outline: 2px solid var(--accent-gold-strong); outline-offset: 2px; }

/* ---------- Страница про куки ---------- */

.policy-page { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; }
.policy-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 36px 32px; box-shadow: var(--shadow-sm);
}
.policy-back { display: inline-block; margin-bottom: 18px; font-size: 13px; color: var(--ink-soft); text-decoration: none; }
.policy-back:hover { color: var(--accent-teal); }
.policy-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.policy-card h1 .accent { color: var(--accent-gold-strong); }
.policy-card h2 { font-size: 16px; font-weight: 700; margin: 26px 0 8px; }
.policy-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0; }
.policy-card p a { color: var(--accent-teal); }

/* ---------- Лендинг ---------- */

.landing-body { overflow-x: hidden; }

.landing-nav-wrap { max-width: 1080px; margin: 0 auto; padding: 20px 20px 0; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.landing-logo { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 19px; color: var(--ink); }
.landing-logo .accent { color: var(--accent-gold-strong); }
.landing-nav-actions { display: flex; align-items: center; gap: 18px; }
.landing-nav-link { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; }
.landing-nav-link:hover { color: var(--ink); }
.landing-nav-cta, .landing-ghost-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Golos Text', sans-serif; font-weight: 600; font-size: 14.5px;
  padding: 11px 20px; border-radius: var(--radius-pill); text-decoration: none; white-space: nowrap;
  transition: filter .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}
.landing-nav-cta { background: var(--accent-teal); color: #fff; border: 1px solid var(--accent-teal); }
.landing-nav-cta:hover { filter: brightness(1.07); transform: translateY(-1px); }
.landing-ghost-btn { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.landing-ghost-btn:hover { border-color: var(--accent-teal); color: var(--accent-teal); transform: translateY(-1px); }

/* .hero сам на всю ширину (overflow:hidden тут же, без max-width) — иначе
   декоративные пятна обрезаются жёсткой границей 1080px и виден шов
   на широких экранах. Ширину контента ограничивает .hero-inner. */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero-inner::before, .hero-inner::after {
  content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px);
  opacity: .35; animation: heroFloat 16s ease-in-out infinite alternate;
}
.hero-inner::before {
  width: 380px; height: 380px; top: -140px; right: -80px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
}
.hero-inner::after {
  width: 320px; height: 320px; bottom: -160px; left: -60px;
  background: radial-gradient(circle, var(--accent-teal) 0%, transparent 70%);
  animation-delay: -8s;
}
@keyframes heroFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-24px, 26px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .hero-inner::before, .hero-inner::after { animation: none; } }

.hero-inner { position: relative; display: flex; align-items: center; gap: 48px; flex-wrap: wrap; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hero-text { flex: 1 1 420px; min-width: 280px; }
.hero-kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent-teal); margin: 0 0 14px; font-weight: 600;
}
.hero-title {
  font-family: 'Unbounded', sans-serif; font-weight: 900; letter-spacing: -0.01em;
  font-size: clamp(40px, 7vw, 72px); line-height: 1.02; margin: 0 0 20px;
}
.hero-title .accent { color: var(--accent-gold-strong); }
.hero-sub { font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); max-width: 46ch; margin: 0 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}

.hero-visual { flex: 0 1 320px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-coins {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; width: 100%; max-width: 320px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px;
  box-shadow: var(--shadow-sm); transform: rotate(1.2deg);
}
.coin-mini { aspect-ratio: 1 / 1; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--circle-empty); }
.coin-mini.filled { background: var(--coin-fill); border-color: var(--coin-fill-border); }
.hero-visual-caption {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-faint);
  letter-spacing: .04em;
}

.marquee-wrap {
  background: var(--accent-teal); color: #fff; overflow: hidden; white-space: nowrap;
  padding: 12px 0; transform: rotate(-1deg); margin: 12px 0 0;
}
.marquee-track { display: inline-flex; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  padding-right: 0;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

.landing-main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.landing-section { padding: 64px 0; }
.section-heading {
  font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 28px;
}

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 14px; font-size: 21px;
  background: linear-gradient(135deg, var(--accent-teal-soft), var(--surface-2));
  border: 1px solid var(--line);
}
.step-num {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700;
  color: var(--accent-gold-strong); letter-spacing: .04em;
}
.step-card h3 { font-family: 'Unbounded', sans-serif; font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.step-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin: 0; }

/* ---------- Появление секций при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.reveal-visible { opacity: 1; transform: none; }
body:not(.js-ready) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.friends-preview-section { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.friends-preview-text { flex: 1 1 340px; min-width: 260px; }
.friends-preview-text .section-heading { margin-bottom: 12px; }
.friends-preview-text p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; max-width: 44ch; margin: 0; }
.friends-preview-card {
  flex: 0 1 320px; width: 100%; max-width: 320px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
}
.friends-preview-title {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-faint);
}
.friends-preview-row { display: flex; flex-direction: column; gap: 6px; }
.friends-preview-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--ink); }
.friends-preview-top span:last-child { font-family: 'JetBrains Mono', monospace; color: var(--ink-soft); font-weight: 400; }

/* ---------- Демо «как копится сумма» ---------- */
.demo-section { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.demo-text { flex: 1 1 380px; min-width: 260px; }
.demo-text .section-heading { margin-bottom: 14px; }
.demo-text p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; max-width: 50ch; margin: 0 0 14px; }
.demo-caption {
  display: inline-block; font-family: 'JetBrains Mono', monospace !important; font-size: 12.5px !important;
  color: var(--ink-faint) !important; background: var(--accent-teal-soft); padding: 7px 12px; border-radius: 8px;
}

.demo-card {
  flex: 0 1 360px; width: 100%; max-width: 360px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.demo-ring {
  --deg: 0deg; width: 118px; height: 118px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--accent-gold) var(--deg), var(--line) var(--deg));
  display: flex; align-items: center; justify-content: center;
  transition: background .25s linear;
}
.demo-ring-inner {
  width: 78%; height: 78%; border-radius: 50%; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.demo-ring-value { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-ring-unit { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

.demo-coins { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; width: 100%; }
.demo-coin {
  aspect-ratio: 1 / 1; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: var(--circle-empty);
  transition: background .3s ease, border-color .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.demo-coin.filled { background: var(--coin-fill); border-color: var(--coin-fill-border); transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .demo-coin, .demo-ring { transition: none; } }

.free-section {
  background: var(--accent-teal-soft); border-radius: 24px; padding: 48px 36px; text-align: center;
  margin-bottom: 64px;
}
.free-section .section-heading { margin-bottom: 14px; }
.free-section p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; max-width: 56ch; margin: 0 auto 26px; }
.free-section a[href^="mailto"] { color: var(--accent-teal); font-weight: 600; }

.landing-footer { border-top: 1px solid var(--line); padding: 32px 20px 100px; }
.landing-footer-inner {
  max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.landing-footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.landing-footer-links a { font-size: 13px; color: var(--ink-soft); text-decoration: none; }
.landing-footer-links a:hover { color: var(--accent-teal); }

@media (max-width: 560px) {
  .hero { padding: 40px 0 28px; }
  .hero-inner { padding: 0 16px; }
  .hero-text { min-width: 0; }
  .landing-section { padding: 44px 0; }
  .free-section { padding: 36px 22px; }
  .demo-card { padding: 20px; }
  .demo-coins { grid-template-columns: repeat(8, 1fr); }
}
