/* ============================================================
   Qwick - дизайн-система
   Глубокий изумрудный + шампанское золото + слоновая кость.
   Все цвета собраны здесь, чтобы их было легко менять.
   ============================================================ */
:root {
  --bg: #0A1311;
  --bg-2: #0E1A17;
  --surface: #121F1B;
  --surface-2: #172824;
  --surface-3: #1E332D;
  --line: rgba(236, 224, 199, 0.08);
  --line-strong: rgba(236, 224, 199, 0.16);

  --text: #F4EFE4;
  --text-2: #A9B5AE;
  --text-3: #84928B; /* было #6F7E77: не проходило проверку читаемости (WCAG AA) */

  --emerald: #13865F;
  --emerald-hi: #3FD39A;
  --emerald-deep: #0C3B2E;

  --gold: #DDB86F;
  --gold-hi: #F0D497;
  --gold-deep: #B0853C;
  --on-gold: #1E1608;

  --coral: #EC7A64;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;

  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.65);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
.ic { display: block; flex: none; }
.num { font-variant-numeric: tabular-nums; }

/* Мягкое свечение фона */
.glow { position: fixed; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: 0; }
.glow-a { width: 520px; height: 520px; left: -220px; top: -240px; background: radial-gradient(circle, rgba(19, 134, 95, .45), transparent 70%); }
.glow-b { width: 460px; height: 460px; right: -220px; bottom: -200px; background: radial-gradient(circle, rgba(221, 184, 111, .18), transparent 70%); }

.shell { position: relative; z-index: 1; max-width: 460px; margin: 0 auto; min-height: 100dvh; }
.app { padding: 18px 16px 120px; }
.view { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Шапка ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; min-height: 44px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold-hi), var(--gold-deep));
  color: var(--on-gold); font-weight: 700; font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.brand-dot { color: var(--gold); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  transition: background .2s, color .2s, transform .15s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn:active { transform: scale(.95); }
.page-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.nick-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 14px;
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--emerald-deep); color: var(--gold-hi); font-weight: 600; font-size: 13px;
  border: 1px solid rgba(221, 184, 111, .35);
}

/* ---------- Карта баланса ---------- */
.card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px 22px 18px;
  background: linear-gradient(150deg, #11493A 0%, #0C3027 52%, #09231D 100%);
  border: 1px solid rgba(221, 184, 111, .26);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.card-pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.card-row { position: relative; display: flex; align-items: center; justify-content: space-between; }
.card-label { color: rgba(240, 212, 151, .78); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.card-amount { position: relative; margin: 10px 0 4px; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.card-meta { position: relative; color: var(--text-2); font-size: 13px; min-height: 19px; }
.card-foot { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.card-eye { color: rgba(244, 239, 228, .7); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; }
.card-eye:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.card-chip {
  width: 34px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep));
  box-shadow: inset 0 0 0 1px rgba(30, 22, 8, .25);
  position: relative;
}
.card-chip::after { content: ''; position: absolute; inset: 7px 9px; border: 1px solid rgba(30, 22, 8, .3); border-radius: 3px; }

/* Переключатель валют */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .06); }
.seg button { padding: 6px 11px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: background .2s, color .2s; }
.seg button.on { background: rgba(240, 212, 151, .16); color: var(--gold-hi); }

/* ---------- Быстрые действия ---------- */
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 26px; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--text); transition: transform .15s, background .2s, border-color .2s;
  position: relative;
}
.action:hover { background: var(--surface-2); border-color: var(--line-strong); }
.action:active { transform: scale(.97); }
.action-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--gold-hi); }
.action.primary .action-ic { background: linear-gradient(150deg, var(--gold-hi), var(--gold-deep)); color: var(--on-gold); }
.soon { position: absolute; top: 8px; right: 8px; font-size: 10px; padding: 2px 6px; border-radius: 6px; background: rgba(240, 212, 151, .12); color: var(--gold); }

/* ---------- Секции и списки ---------- */
.section { margin-bottom: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 10px; }
.section-title { font-size: 16px; font-weight: 600; margin: 0; }
.section-link { color: var(--gold); font-size: 14px; font-weight: 500; }
.section-link:hover { color: var(--gold-hi); }

.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; width: 100%; text-align: left; transition: background .2s; }
.row + .row { border-top: 1px solid var(--line); }
button.row:hover, a.row:hover { background: var(--surface-2); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--text-3); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.row-end { text-align: right; }
.row-end .row-title { font-weight: 600; }
.row-chev { color: var(--text-3); }

.coin {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0;
  background: color-mix(in srgb, var(--c) 18%, var(--surface-2));
  color: color-mix(in srgb, var(--c) 85%, white);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.net-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); display: inline-block; }
.wallet-ic {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: var(--surface-3); color: var(--text-2); position: relative;
}
.wallet-ic .net-dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border: 2px solid var(--surface); }

/* ---------- Пустое состояние ---------- */
.welcome {
  border-radius: var(--r-lg); padding: 26px 22px; background: var(--surface); border: 1px solid var(--line);
  text-align: left;
}
.welcome h2 { margin: 14px 0 8px; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.welcome p { margin: 0 0 20px; color: var(--text-2); }
.welcome-badge { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--emerald-deep); color: var(--gold-hi); border: 1px solid rgba(221, 184, 111, .3); }
.stack { display: grid; gap: 10px; }
.points { display: grid; gap: 12px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.point { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 14px; }
.point .ic { color: var(--emerald-hi); margin-top: 1px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  height: 52px; padding: 0 20px; border-radius: 16px; font-weight: 600; font-size: 15.5px;
  transition: transform .15s, filter .2s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: linear-gradient(150deg, var(--gold-hi), var(--gold) 45%, var(--gold-deep)); color: var(--on-gold); box-shadow: 0 10px 30px -14px rgba(221, 184, 111, .7), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-soft { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); }
.btn-soft:hover { background: var(--surface-3); }
.btn-danger { background: rgba(236, 122, 100, .1); color: var(--coral); border: 1px solid rgba(236, 122, 100, .25); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-sm { height: 40px; width: auto; font-size: 14px; border-radius: 12px; padding: 0 14px; }

/* ---------- Формы ---------- */
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field-label { font-size: 13.5px; color: var(--text-2); padding-left: 4px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 16px; outline: none;
  background: var(--surface); border: 1px solid var(--line-strong);
  transition: border-color .2s, box-shadow .2s; font-size: 16px;
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: rgba(221, 184, 111, .6); box-shadow: 0 0 0 4px rgba(221, 184, 111, .12); }
.input.big { height: 72px; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.input.with-prefix { padding-left: 42px; }
.input-prefix { position: absolute; left: 16px; color: var(--gold); pointer-events: none; }
.input-suffix { position: absolute; right: 10px; }
.hint { font-size: 13px; color: var(--text-3); padding-left: 4px; display: flex; align-items: center; gap: 6px; min-height: 18px; }
.hint.ok { color: var(--emerald-hi); }
.hint.bad { color: var(--coral); }
.net-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: color-mix(in srgb, var(--c) 80%, white);
  font-size: 12.5px; font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 14px; color: var(--text-2); transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.chip-btn.on { border-color: rgba(221, 184, 111, .6); color: var(--text); background: rgba(221, 184, 111, .08); }

/* ---------- Плашки ---------- */
.note {
  display: flex; gap: 12px; padding: 14px; border-radius: var(--r-md);
  background: rgba(19, 134, 95, .1); border: 1px solid rgba(63, 211, 154, .18); color: var(--text-2); font-size: 14px;
}
.note .ic { color: var(--emerald-hi); margin-top: 1px; }
.note.gold { background: rgba(221, 184, 111, .07); border-color: rgba(221, 184, 111, .2); }
.note.gold .ic { color: var(--gold); }
.note b { color: var(--text); font-weight: 600; }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 16px; margin: 18px 0; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 14.5px; }
.summary-row + .summary-row { border-top: 1px solid var(--line); }
.summary-row span:first-child { color: var(--text-2); }
.summary-row.total span:last-child { font-weight: 600; color: var(--gold-hi); }

.address-box {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 14px; word-break: break-all;
  padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px dashed var(--line-strong); color: var(--text);
}

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; }
.toggle-row + .toggle-row { border-top: 1px solid var(--line); }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-2); transition: transform .25s var(--ease), background .2s; }
.switch.on { background: var(--emerald); }
.switch.on::after { transform: translateX(18px); background: #fff; }

.muted { color: var(--text-2); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 18px; }
.hero-amount { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; margin: 6px 0 2px; }

.skeleton { display: inline-block; height: 14px; width: 70px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Нижняя панель ---------- */
.tabbar {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(428px, calc(100% - 32px)); display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px; border-radius: 22px; z-index: 5;
  background: rgba(18, 31, 27, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 6px; border-radius: 16px; color: var(--text-3); font-size: 11.5px; font-weight: 500; transition: color .2s, background .2s; }
.tab:hover { color: var(--text-2); }
.tab.on { color: var(--gold-hi); background: rgba(240, 212, 151, .08); }

/* ---------- Нижний лист (подтверждение) ---------- */
.sheet-back { position: fixed; inset: 0; background: rgba(4, 8, 7, .6); backdrop-filter: blur(4px); z-index: 20; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { width: min(460px, 100%); background: var(--bg-2); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .32s var(--ease); }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0 auto 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* ---------- Уведомление ---------- */
.toast {
  position: fixed; left: 50%; top: 18px; transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  padding: 11px 16px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); font-size: 14px; z-index: 30; transition: all .3s var(--ease); max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 720px) {
  .app { padding-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Шаг 2: подключение кошелька и переводы ---------- */
.seg-wide { display: grid; grid-template-columns: 1fr 1fr; width: 100%; background: var(--surface); border-color: var(--line); padding: 4px; border-radius: 14px; }
.seg-wide button { padding: 10px 8px; font-size: 14px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.soon-inline { font-size: 10px; padding: 1px 6px; border-radius: 6px; background: rgba(240, 212, 151, .12); color: var(--gold); }
.connect-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; margin-bottom: 18px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-strong);
}
.connect-card .wallet-ic .net-dot { border-color: var(--surface); }
.note.warn { background: rgba(236, 122, 100, .07); border-color: rgba(236, 122, 100, .22); }
.note.warn .ic { color: var(--coral); }
.input.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 14.5px; }
.tx-ic {
  width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 0; display: grid; place-items: center;
  background: rgba(221, 184, 111, .1); color: var(--gold-hi); border: 1px solid rgba(221, 184, 111, .3);
}
.tx-ic .ic { margin: auto; }
.tx-ic .spin { display: grid; }
.tx-ic.ok { background: rgba(63, 211, 154, .12); color: var(--emerald-hi); border-color: rgba(63, 211, 154, .35); }
.tx-ic.bad { background: rgba(236, 122, 100, .1); color: var(--coral); border-color: rgba(236, 122, 100, .3); }

/* ---------- Вход через Telegram и профиль ---------- */
.profile-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-strong); }
.avatar.big { width: 48px; height: 48px; font-size: 19px; }
.wallet-ic.tg, .tx-ic.tg-ic { color: #5DB8F0; background: rgba(93, 184, 240, .1); border: 1px solid rgba(93, 184, 240, .25); }

/* ---------- Выбор валюты и языка ---------- */
.cur-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 8px; border-radius: 12px;
  background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .08); color: var(--gold-hi);
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em; transition: background .2s;
}
.cur-btn:hover { background: rgba(0, 0, 0, .32); }
.cur-sign { min-width: 22px; height: 22px; padding: 0 5px; border-radius: 7px; display: grid; place-items: center; background: rgba(240, 212, 151, .14); font-size: 12px; }
.cur-chev { transform: rotate(90deg); opacity: .7; display: grid; }
.pick-list { max-height: min(62vh, 520px); overflow-y: auto; }
.pick-row { gap: 14px; }
.pick-row.on { background: rgba(221, 184, 111, .07); }
.pick-sign {
  min-width: 40px; height: 40px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--surface-3); color: var(--gold-hi); font-weight: 600; font-size: 14px;
}
.pick-check { color: var(--gold-hi); }
.pick-value { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; text-align: right; }
.pick-value .ic { color: var(--text-3); }
.toggle-row .row-title + .pick-value { margin-left: auto; }
.card-amount.long { font-size: 30px; }

/* ---------- Помощь для новичков ---------- */
.btn-ghost { background: transparent; color: var(--text-2); border: 1px dashed var(--line-strong); }
.btn-ghost:hover { color: var(--text); border-color: rgba(221, 184, 111, .4); }

.q-btn {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; vertical-align: 1px;
  margin-left: 4px; font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer; user-select: none;
  color: var(--gold-hi); background: rgba(221, 184, 111, .12); border: 1px solid rgba(221, 184, 111, .3);
  transition: background .2s;
}
.q-btn:hover, .q-btn:focus-visible { background: rgba(221, 184, 111, .24); outline: none; }
.q-btn.static { width: 40px; height: 40px; font-size: 16px; margin: 0; flex: none; cursor: inherit; }
.explain-ic { width: 56px; height: 56px; border-radius: 18px; margin: 4px auto 0; display: grid; place-items: center; background: rgba(221, 184, 111, .1); color: var(--gold-hi); border: 1px solid rgba(221, 184, 111, .28); }
.explain-text { color: var(--text-2); font-size: 15.5px; line-height: 1.55; margin: 10px 4px 20px; text-align: center; }

.progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--emerald), var(--emerald-hi)); transition: width .4s var(--ease); }

.checklist { background: var(--surface); border: 1px solid rgba(221, 184, 111, .22); border-radius: var(--r-lg); padding: 16px 16px 8px; margin-bottom: 26px; }
.checklist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.checklist .progress { margin-bottom: 8px; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; color: var(--text); font-size: 14.5px; border-top: 1px solid var(--line); }
.check-row:first-of-type { border-top: 0; }
.check-row .ic { color: var(--text-3); }
.check-row.done { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(169, 181, 174, .4); }
.check-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1.5px solid var(--line-strong); }
.check-row.done .check-dot { background: var(--emerald); border-color: var(--emerald); }
.check-row.done .check-dot .ic { color: #fff; }

.onb { padding-bottom: 20px; }
.onb-count { color: var(--text-2); font-size: 14px; font-weight: 500; }
.onb-progress { margin: -4px 0 28px; }
.onb-ic { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 18px; background: var(--emerald-deep); color: var(--gold-hi); border: 1px solid rgba(221, 184, 111, .3); }
.onb-ic.gold { background: linear-gradient(150deg, var(--gold-hi), var(--gold-deep)); color: var(--on-gold); border: 0; }
.onb-title { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
.onb-text { color: var(--text-2); font-size: 15.5px; line-height: 1.55; margin: 0 0 18px; }
.onb-actions { margin-top: 24px; }
.onb-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.onb-steps li { counter-increment: s; position: relative; padding: 14px 14px 14px 52px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; }
.onb-steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(221, 184, 111, .14); color: var(--gold-hi); font-weight: 700; font-size: 13px; }
.onb-steps b, .onb-block b { color: var(--text); }
.onb-block { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; color: var(--text-2); font-size: 14.5px; }
.onb-block p { margin: 8px 0 0; }
.onb-block ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.onb-block-title { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.onb-block-title .ic { color: var(--gold); }
.onb-block.warn { background: rgba(236, 122, 100, .06); border-color: rgba(236, 122, 100, .25); }
.onb-block.warn .onb-block-title .ic { color: var(--coral); }
.onb-ok { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(63, 211, 154, .1); border: 1px solid rgba(63, 211, 154, .3); color: var(--emerald-hi); font-weight: 500; }
.choice-list { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-strong); text-align: left; transition: border-color .2s, background .2s; }
.choice:hover { border-color: rgba(221, 184, 111, .5); background: var(--surface-2); }
.choice.on { border-color: rgba(221, 184, 111, .7); background: rgba(221, 184, 111, .06); }
.choice .ic { color: var(--gold-hi); }
.choice b { display: block; font-weight: 600; }
.choice small { display: block; color: var(--text-3); font-size: 13px; margin-top: 2px; }
.ack { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); font-size: 14.5px; margin-top: 6px; }
.ack.on { border-color: rgba(63, 211, 154, .45); }
.ack-box { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--line-strong); margin-top: 1px; }
.ack.on .ack-box { background: var(--emerald); border-color: var(--emerald); color: #fff; }

.help-card { margin-bottom: 0; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { color: var(--text-3); transition: transform .2s; }
.faq-item[open] summary .ic { transform: rotate(90deg); }
.faq-item p { margin: 0; padding: 0 14px 16px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- История переводов ---------- */
.hist-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.hist-ic.out { background: var(--surface-3); color: var(--gold-hi); }
.hist-ic.in { background: rgba(63, 211, 154, .12); color: var(--emerald-hi); }
.row-title.plus { color: var(--emerald-hi); }
.hist-day { margin: 18px 4px 8px; font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.hist-settings { padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.seg-4 { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; background: var(--surface-2); border-color: var(--line); }
.seg-4 button { padding: 9px 4px; font-size: 13px; }

/* ---------- Установка на телефон ---------- */
.install-card { padding: 16px; border-radius: var(--r-md); background: linear-gradient(150deg, rgba(19, 134, 95, .14), rgba(221, 184, 111, .06)); border: 1px solid rgba(221, 184, 111, .25); }
.install-head { display: flex; align-items: center; gap: 14px; }
.install-icon { width: 48px; height: 48px; border-radius: 13px; flex: none; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6); }
.install-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-3); }
.install-note .ic { flex: none; margin-top: 2px; color: var(--gold); }
/* Запуск с главного экрана: отступ под вырез экрана и строку состояния */
.standalone .app { padding-top: calc(18px + env(safe-area-inset-top)); }
.standalone .toast { top: calc(18px + env(safe-area-inset-top)); }

/* ---------- 0.8: простой перевод ---------- */
.home-send { margin: 18px 0 12px; }
.actions.two { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.link-btn { background: none; border: 0; padding: 6px 4px; color: var(--text-2); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); cursor: pointer; }
.link-btn:hover { color: var(--text); }
.review-amount { text-align: center; font-size: 38px; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 14px; color: var(--text); }
.review-amount span { font-size: 18px; color: var(--gold); font-weight: 500; }
.how-n { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(221, 184, 111, .1); color: var(--gold); font-weight: 600; font-size: 14px; }
.list.how .row { align-items: flex-start; }

/* ---------- 0.9: подключение кошелька ---------- */
.connect-card.col { flex-direction: column; align-items: stretch; gap: 14px; }
.connect-head { display: flex; align-items: center; gap: 14px; }
.connect-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.connect-opts .btn { padding-left: 10px; padding-right: 10px; }
@media (max-width: 360px) { .connect-opts { grid-template-columns: 1fr; } }

/* ---------- Пошаговая установка кошелька ---------- */
.guide { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 12px; }
.guide-step { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.guide-step.warn { background: rgba(236, 122, 100, .06); border-color: rgba(236, 122, 100, .25); }
.guide-n { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(221, 184, 111, .12); color: var(--gold); font-weight: 600; font-size: 14px; }
.guide-step.warn .guide-n { background: rgba(236, 122, 100, .14); color: var(--coral); }
.guide-body { min-width: 0; flex: 1; }
.guide-title { font-weight: 600; color: var(--text); margin-top: 4px; }
.guide-text { color: var(--text-2); font-size: 14.5px; margin-top: 6px; line-height: 1.5; }
.guide-text b { color: var(--text); font-weight: 600; }
.guide-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.guide-btns .btn { width: auto; }
.link-btn.center { display: block; text-align: center; margin: 2px auto 0; }
.seg-wide.seg-3 { grid-template-columns: repeat(3, 1fr); display: grid; }

/* 0.13: обмен */
.ex-widget { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.ex-widget iframe { display: block; width: 100%; height: 380px; border: 0; }
.ex-btns { display: grid; gap: 10px; }
.ex-btns .btn + .btn { margin-top: 0; }
