:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1b2433;
  --muted: #7a869a;
  --line: #e8ecf3;
  --primary: #2f6bff;
  --primary-d: #1f55db;
  --primary-l: #eaf0ff;
  --pos: #12a150;
  --neg: #d6455d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 55, .04), 0 6px 20px rgba(20, 30, 55, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--primary); text-decoration: none; }
h1, h2 { margin: 0; }
h2 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.link { font-size: 13.5px; font-weight: 500; }


/* Layout */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; background: var(--card); border-right: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; position: fixed;
  top: 0; bottom: 0; left: 0; z-index: 30; overflow-y: auto;
}
.main { margin-left: 248px; flex: 1; min-width: 0; }
.content { padding: 24px; max-width: 1100px; margin: 0 auto; }

.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; padding: 4px 10px 20px; }
.brand--center { justify-content: center; padding-bottom: 8px; }
.brand__logo {
  width: 34px; height: 34px; border-radius: 10px; background: var(--primary-l);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav__link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--text); font-weight: 500;
}
.nav__link:hover { background: var(--bg); }
.nav__link.is-active { background: var(--primary-l); color: var(--primary); }
.nav__ico { width: 22px; text-align: center; }
.sidebar__foot { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }

.topbar {
  display: flex; align-items: center; gap: 12px; padding: 14px 24px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.topbar__title { font-size: 18px; font-weight: 700; flex: 1; }
.topbar__bal {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25;
  color: var(--text); padding: 6px 12px; border-radius: 10px; background: var(--bg);
}
.burger { display: none; border: 0; background: var(--bg); width: 40px; height: 40px; border-radius: 10px; font-size: 20px; cursor: pointer; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card__head h2 { display: flex; align-items: center; gap: 8px; }
.card__ico { display: inline-flex; color: var(--primary); }
.card__ico .ico { width: 18px; height: 18px; stroke-width: 2; }
.content > * + * { margin-top: 18px; }

.hero { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, #fff 0%, #f1f6ff 100%); }
.hero__sum { font-size: 38px; font-weight: 700; letter-spacing: -.5px; margin: 2px 0 16px; }
.hero__sum span { font-size: 18px; color: var(--muted); font-weight: 600; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.mini { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.mini strong { font-size: 18px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { display: flex; gap: 12px; align-items: center; padding: 16px; }
.stat__ico { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-l); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.stat__val { font-size: 19px; font-weight: 700; }
.stat__val small { font-size: 12px; color: var(--muted); font-weight: 600; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; transition: .15s;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-d); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--bg); }
.btn--block { width: 100%; }
.form { display: grid; gap: 14px; margin: 18px 0; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number] {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--text);
}
input:focus { outline: 2px solid var(--primary-l); border-color: var(--primary); }

/* Chart */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 190px; }
.chart__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.chart__bar { width: 100%; max-width: 38px; background: linear-gradient(180deg, #5b8cff, var(--primary)); border-radius: 8px 8px 3px 3px; min-height: 4px; }
.chart__val { height: 16px; white-space: nowrap; }

/* Miners */
.miner { padding: 12px 0; border-top: 1px solid var(--line); }
.miner:first-of-type { border-top: 0; padding-top: 0; }
.miner__top { display: flex; justify-content: space-between; gap: 8px; }
.progress { height: 6px; background: var(--line); border-radius: 6px; margin-top: 8px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: 6px; }
.empty { text-align: center; padding: 14px 0; }
.empty__ico { font-size: 34px; }
.empty p { color: var(--muted); margin: 6px 0 14px; }

.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.offer { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 6px; }
.offer__inc { font-weight: 600; margin-bottom: 6px; }

/* Transactions */
.tx { list-style: none; margin: 0; padding: 0; }
.tx li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.tx li:first-child { border-top: 0; padding-top: 0; }

.ref { display: flex; gap: 8px; margin: 12px 0; }
.ref input { min-width: 0; }

/* Auth */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 21px; text-align: center; margin-top: 8px; }
.alert { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; margin-top: 14px; }
.alert--err { background: #fdecef; color: #a52b40; }

/* Flash, select, misc */
.alert--ok { background: #e8f7ee; color: #0f7a3e; }
.alert { margin-top: 0; }
select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--text);
}
select:focus { outline: 2px solid var(--primary-l); border-color: var(--primary); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--lg { padding: 14px 26px; font-size: 16px; }
.r { text-align: right; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row2__full { grid-column: 1 / -1; }
.form__row { display: flex; gap: 10px; flex-wrap: wrap; }
.warn { background: #fff7e6; color: #8a5a00; border: 1px solid #ffe2a8; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-top: 4px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--muted); white-space: nowrap; }
.chip--ok { background: #e8f7ee; color: #0f7a3e; }
.chip--wait { background: #fff4de; color: #9a6200; }
.chip--err { background: #fdecef; color: #a52b40; }

/* Tables */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th.r, table.t td.r { text-align: right; }
table.t tr:last-child td { border-bottom: 0; }

/* Shop / miners */
.shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shop-intro { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.shop-intro__bal { font-size: 26px; font-weight: 700; }
.shop-intro__bal span { font-size: 15px; color: var(--muted); }
.pcard { display: flex; flex-direction: column; gap: 12px; }
.pcard__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcard__price { font-size: 28px; font-weight: 700; letter-spacing: -.3px; }
.pcard__price span { font-size: 14px; color: var(--muted); font-weight: 600; }
.pcard.is-hl { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-l); }
.pcard form { margin-top: auto; }
.pcard > .btn { margin-top: auto; }
.kv { display: grid; gap: 7px; }
.kv > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.pcard__head { display: flex; align-items: center; gap: 12px; }
.pcard__img { width: 128px; height: 128px; object-fit: cover; border-radius: 12px; flex: none; background: var(--bg); }

/* Live earnings */
.live { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, #fff 0%, #effaf3 100%); }
.live__num { font-size: 40px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; margin: 2px 0; }
.live__num small { font-size: 16px; color: var(--muted); font-weight: 600; }
.live__miner { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.live__miner small { font-size: 13px; color: var(--muted); font-weight: 600; }
[data-live-total] { font-variant-numeric: tabular-nums; }
.mini--live { background: #effaf3; border-color: #cdeedb; }

/* Deposit */
.addr { display: flex; gap: 8px; align-items: stretch; margin: 6px 0 4px; }
.addr code { flex: 1; word-break: break-all; background: var(--bg); padding: 10px 12px; border-radius: 10px; display: flex; align-items: center; }

/* History filters & pager */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.filters__item {
  flex: none; padding: 8px 14px; border-radius: 20px; background: var(--card);
  border: 1px solid var(--line); color: var(--text); font-weight: 500; font-size: 13.5px;
}
.filters__item:hover { background: var(--bg); }
.filters__item.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pager .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Referrals / settings */
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.kv--wide > div { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv--wide > div:first-child { border-top: 0; padding-top: 0; }




/* ===== Модальное окно (добавить в конец style.css) ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 30, 55, .5); backdrop-filter: blur(2px); }
.modal__box {
  position: relative; width: 100%; max-width: 520px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column; background: var(--card);
  border-radius: 18px; box-shadow: 0 20px 60px rgba(20, 30, 55, .25); overflow: hidden;
}
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal__x { border: 0; background: var(--bg); width: 34px; height: 34px; border-radius: 10px; font-size: 14px; cursor: pointer; color: var(--text); }
.modal__x:hover { background: var(--line); }
.modal__body { padding: 20px; overflow-y: auto; display: grid; gap: 14px; align-content: start; }
.modal__body .form { margin: 0; }
body.modal-open { overflow: hidden; }

.dep-list { display: grid; gap: 12px; }
.dep-list:empty { display: none; }
.dep-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.dep-item__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dep-item .form { margin: 4px 0 0; }




/* ===== Иконки навигации (добавить в конец style.css) ===== */
.ico { width: 20px; height: 20px; flex: none; display: block; }

.nav__ico { width: 22px; display: inline-flex; align-items: center; justify-content: center; }
.nav__link:not(.is-active) .ico { color: var(--muted); transition: color .15s; }
.nav__link:not(.is-active):hover .ico { color: var(--text); }
.nav__link.is-active .ico { stroke-width: 2; }

.tabbar__link span { display: flex; align-items: center; justify-content: center; height: 24px; }
.tabbar__link .ico { width: 22px; height: 22px; }
.tabbar__link.is-active .ico { stroke-width: 2; }

/* ===== Иконки на дашборде (добавить в конец style.css) ===== */
.stat__ico { color: var(--primary); }
.stat__ico .ico { width: 22px; height: 22px; }

.empty__ico { display: flex; justify-content: center; color: var(--primary); }
.empty__ico .ico { width: 40px; height: 40px; stroke-width: 1.5; }


/* ===== Модалка вывода (добавить в конец style.css, после modal.css) ===== */
.wd-bal { display: grid; gap: 2px; }
.wd-bal strong { font-size: 26px; font-weight: 700; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.wd-recv { min-height: 18px; margin-top: -6px; }
.modal__sub { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
#wdHistory:empty { display: none; }

/* Кнопка отмены в списке выводов */
.btn--sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.wd-side { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.wd-side form { margin: 0; }



/* ===== Логотип (добавить в конец style.css) ===== */
.brand__logo { background: none; width: 34px; height: 34px; }
.brand__svg { width: 34px; height: 34px; display: block; filter: drop-shadow(0 4px 10px rgba(47, 107, 255, .35)); }



/* Mobile tabbar */
.tabbar { display: none; }


/* ===== Окно подтверждения покупки (добавить в конец style.css, после modal.css) ===== */
.buy { display: grid; gap: 14px; }
.buy[hidden], .buy-done[hidden] { display: none; }
.buy-miner { display: flex; align-items: center; gap: 14px; }
.buy-miner strong { font-size: 18px; }
.buy-miner__img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--bg); flex: none; }

.buy-pay { display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; background: var(--primary-l); }
.buy-pay strong { font-size: 30px; font-weight: 700; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }

.buy-rows { margin: 0; }
.buy-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.buy-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

.buy-income { display: grid; gap: 12px; padding: 14px 18px; border-radius: 14px; background: #effaf3; border: 1px solid #cdeedb; }
.buy-income[hidden] { display: none; }
.buy-income__title { font-size: 13px; font-weight: 600; color: #0f7a3e; }
.buy-income__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.buy-income__row > div { text-align: right; }
.buy-income__row strong { font-size: 20px; color: var(--pos); font-variant-numeric: tabular-nums; }
.buy-income__sub { font-size: 12.5px; color: var(--muted); }

.buy-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }

.buy-done { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 10px 0; }
.buy-done p { margin: 0 0 8px; }
.buy-done strong { font-size: 19px; }
.buy-done__ico { width: 58px; height: 58px; border-radius: 50%; background: #e8f7ee; color: var(--pos); display: flex; align-items: center; justify-content: center; }
.buy-done__ico .ico { width: 28px; height: 28px; stroke-width: 2.4; }


/* ===== Серверное время в верхней панели (добавить в конец style.css) ===== */
.topbar__time {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25;
  padding: 6px 12px; border-radius: 10px; background: var(--bg); color: var(--text);
  white-space: nowrap;
}
.topbar__time strong { font-variant-numeric: tabular-nums; min-width: 5.2em; text-align: right; }
.topbar__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }



/* ===== Снятие дохода: окно результата и пауза (добавить в конец style.css, после modal.css) ===== */
.btn.is-cooldown { opacity: .55; cursor: not-allowed; }
.btn.is-cooldown:hover { background: var(--primary); }
.claim-cd { margin-top: 6px; color: #9a6200; }
.claim-cd[hidden], #claimNote[hidden] { display: none; }
.claim-cd strong { font-variant-numeric: tabular-nums; }
#claimNote { margin-top: 10px; text-align: left; }

.is-shake { animation: claim-shake .4s; }
@keyframes claim-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.claim-hero { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 4px 0 2px; }
.claim-hero__ico {
  width: 64px; height: 64px; border-radius: 50%; background: #e8f7ee; color: var(--pos);
  display: flex; align-items: center; justify-content: center;
  animation: claim-pop .5s cubic-bezier(.2, 1.4, .4, 1);
}
.claim-hero__ico .ico { width: 32px; height: 32px; stroke-width: 2.4; }
@keyframes claim-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.claim-hero strong { font-size: clamp(28px, 8vw, 40px); font-weight: 700; letter-spacing: -.5px; color: var(--pos); font-variant-numeric: tabular-nums; line-height: 1.15; }

.claim-sub { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.claim-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.claim-item { display: grid; gap: 6px; }
.claim-item .progress { margin-top: 0; }
.claim-item__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.claim-item__amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .claim-hero__ico, .is-shake { animation: none; }
}




/* ===== Чекбокс «Запомнить меня» (добавить в конец style.css) ===== */
.form label.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  user-select: none;
  margin-top: -4px;
}

.form label.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  padding: 0;
  flex: none;
  accent-color: var(--primary);
  cursor: pointer;
  border-radius: 5px;
}

.form label.checkbox span {
  color: var(--text);
  line-height: 1.3;
}

/* ===== Toast-уведомление ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .28);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  max-width: calc(100vw - 32px);
}
.toast[hidden] { display: none; }
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast__ico {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(34, 197, 94, .18);
  color: #4ade80;
  flex: none;
}
.toast__ico svg { width: 14px; height: 14px; display: block; }
.toast__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 600px) {
  .toast { bottom: 84px; font-size: 13.5px; }
}


/* ===== Иконки в фильтрах истории ===== */
.filters__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filters__ico {
  display: inline-flex;
  color: var(--muted);
  transition: color .15s;
}
.filters__ico .ico { width: 16px; height: 16px; }
.filters__item:hover .filters__ico { color: var(--text); }
.filters__item.is-active .filters__ico { color: #fff; }

/* ===== Иконка типа операции в строке таблицы ===== */
.tx-row { display: flex; align-items: center; gap: 10px; }
.tx-ico {
  width: 32px; height: 32px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--bg);
  color: var(--muted);
}
.tx-ico .ico { width: 16px; height: 16px; stroke-width: 2; }
.tx-ico--earning    { background: #e8f7ee; color: #0f7a3e; }
.tx-ico--deposit    { background: var(--primary-l); color: var(--primary); }
.tx-ico--purchase   { background: #fff4de; color: #9a6200; }
.tx-ico--withdrawal { background: #fdecef; color: #a52b40; }
.tx-ico--referral   { background: #f1e8ff; color: #6b3fd8; }
.tx-ico--bonus { background: #fff1e6; color: #c2410c; }


@media (max-width: 960px) {
  .shop { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .sidebar.is-open { transform: none; }
  .main { margin-left: 0; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .topbar { padding: 10px 14px; }
  .topbar__title { font-size: 16px; }
  .content { padding: 14px 14px 90px; }
  .hero__sum { font-size: 32px; }
  /* .hero__actions .btn { flex: 1; } */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar__link { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px 0; }
  .tabbar__link span { font-size: 19px; }
  .tabbar__link.is-active { color: var(--primary); font-weight: 600; }
}
@media (max-width: 600px) {
  .stats--3 { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .live__num { font-size: 32px; }
  .live form { width: 100%; }
  .live .btn { width: 100%; }
  .modal { padding: 0; }
  .modal__box { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; max-height: 92dvh; }
}
@media (max-width: 480px) {
  .stats { gap: 10px; }
  .addr { flex-direction: column; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .chart { gap: 4px; }
  .chart__val { display: none; }
  .ref { flex-direction: column; }
  .buy-actions { grid-template-columns: 1fr; }
  .buy-pay strong { font-size: 26px; }
  .topbar { gap: 8px; }
  .topbar__time { padding: 6px 10px; }
  /* .topbar__time .small { display: none; } */
}

