/* ===== Design tokens ===== */
:root {
  --bg: #070b14;
  --bg-elevated: #0d1424;
  --bg-card: rgba(18, 28, 48, 0.72);
  --bg-card-solid: #121c30;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f5ff;
  --text-muted: #93a0b8;
  --text-dim: #6b7890;
  --primary: #2aabee;
  --primary-2: #229ed9;
  --accent: #ffb800;
  --accent-2: #ff8a00;
  --success: #22c55e;
  --danger: #ef4444;
  --gradient: linear-gradient(135deg, #2aabee 0%, #7c5cff 50%, #ff6bcb 100%);
  --gradient-gold: linear-gradient(135deg, #ffe566, #ffb800 50%, #ff8a00);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --radius-sm: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, 680px);
}

.container--form {
  width: min(100% - 2rem, 480px);
}

.container--pay {
  width: min(100% - 2rem, 560px);
}

/* ===== Cosmos background ===== */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(42, 171, 238, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(124, 92, 255, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(255, 107, 203, 0.08), transparent),
    var(--bg);
}

.stars-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 80px 120px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 160px 80px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 240px 200px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 320px 40px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 400px 160px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 480px 90px, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 560px 220px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 640px 50px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 720px 180px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 100px 280px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 300px 340px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 500px 300px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 700px 360px, rgba(255, 255, 255, 0.5), transparent);
  background-size: 800px 400px;
  animation: drift 80s linear infinite;
  opacity: 0.7;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-400px); }
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.glow-1 {
  width: 420px;
  height: 420px;
  top: -80px;
  right: 10%;
  background: rgba(42, 171, 238, 0.35);
  animation: float 12s ease-in-out infinite;
}

.glow-2 {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: -5%;
  background: rgba(124, 92, 255, 0.3);
  animation: float 16s ease-in-out infinite reverse;
}

.glow-3 {
  width: 280px;
  height: 280px;
  top: 45%;
  right: -40px;
  background: rgba(255, 184, 0, 0.15);
  animation: float 14s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: #070b14;
  border-bottom: 1px solid var(--border);
  /* relative нужен для выпадающего меню на мобиле */
  /* sticky уже создаёт containing block */
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  min-width: 0;
  flex-shrink: 0;
}

.logo__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.logo__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-left: auto;
  justify-content: flex-end;
}

.nav__link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.15rem;
}

.nav__link:hover {
  color: var(--text);
}

.nav__auth,
.nav__user {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.25rem;
}

.nav__auth[hidden],
.nav__user[hidden],
.header__auth-links[hidden],
#navAccount[hidden],
#navAdmin[hidden],
a[hidden],
.u-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.header__email {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header__auth-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.header__back {
  margin-left: auto;
  flex-shrink: 0;
}

/* Auth pages: only logo + back, no duplicate action buttons */
.page-plain .header__inner {
  justify-content: space-between;
}

.nav-backdrop {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

body.nav-open {
  overflow: hidden;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 28px rgba(42, 171, 238, 0.35);
}

.btn--primary:hover:not(:disabled) {
  box-shadow: 0 12px 36px rgba(124, 92, 255, 0.4);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Hero ===== */
.hero {
  padding: 4.5rem 0 3rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(42, 171, 238, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.25);
  color: #7dd3fc;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Hero visual */
.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
  min-height: 380px;
}

.star-orb {
  position: relative;
  width: 320px;
  height: 320px;
  display: grid;
  place-items: center;
}

.star-orb__core {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1a2744, #0a101c);
  border: 1px solid rgba(255, 184, 0, 0.25);
  box-shadow:
    0 0 60px rgba(255, 184, 0, 0.25),
    inset 0 0 40px rgba(42, 171, 238, 0.15);
  display: grid;
  place-items: center;
  animation: core-pulse 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 60px rgba(255, 184, 0, 0.25), inset 0 0 40px rgba(42, 171, 238, 0.15); }
  50% { box-shadow: 0 0 90px rgba(255, 184, 0, 0.4), inset 0 0 50px rgba(42, 171, 238, 0.25); }
}

.star-svg {
  width: 88px;
  height: 88px;
  animation: spin-slow 12s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255, 184, 0, 0.6));
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.star-orb__ring {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px dashed rgba(42, 171, 238, 0.35);
  animation: spin-slow 20s linear infinite reverse;
}

.star-orb__ring--2 {
  inset: 0;
  border-style: solid;
  border-color: rgba(124, 92, 255, 0.2);
  animation-duration: 28s;
  animation-direction: normal;
}

.float-chip {
  position: absolute;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
  z-index: 3;
}

.float-chip--1 { top: 18%; left: -10%; animation-delay: 0s; }
.float-chip--2 { top: 55%; right: -14%; animation-delay: 1s; }
.float-chip--3 { bottom: 8%; left: 5%; animation-delay: 0.5s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Sections ===== */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(18, 28, 48, 0.5), transparent);
}

.section__head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section__head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.section__head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== Topup form ===== */
.topup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.topup-card__head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.topup-card__icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 14px rgba(255, 184, 0, 0.55));
  margin-bottom: 0.5rem;
}

.topup-card__head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.topup-card__head p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.topup-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.field__input-wrap--plain .field__input--full {
  padding: 0.85rem 1rem;
  width: 100%;
}

.field__input--full {
  width: 100%;
}

/* hide number spinners */
.field__input[type='number'] {
  -moz-appearance: textfield;
}
.field__input[type='number']::-webkit-outer-spin-button,
.field__input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.chip {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.chip:hover {
  border-color: rgba(42, 171, 238, 0.45);
  color: var(--text);
}

.chip--active {
  border-color: transparent;
  background: var(--gradient);
  color: #fff;
}

.price-box {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.price-box--ok {
  border-color: rgba(42, 171, 238, 0.4);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.1);
}

.price-box__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.price-box__row strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-box__meta {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.topup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.topup-secure {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 480px) {
  .topup-actions {
    grid-template-columns: 1fr;
  }
}

.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.topup-offer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.topup-offer a,
.topup-secure a {
  color: #7dd3fc;
}

/* ===== Admin / account tables ===== */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.admin-tab {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.admin-tab--active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

.admin-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  min-width: 200px;
}

.admin-log {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 0.75rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  text-align: center;
}

.admin-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.admin-stat span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-toolbar h3 {
  margin-right: auto;
  font-size: 1.15rem;
}

.admin-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table th {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table code {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-actions {
  white-space: nowrap;
}

.admin-err {
  color: #fca5a5;
  font-size: 0.85rem;
  cursor: help;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.badge--fulfilled {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.badge--paid,
.badge--fulfilling {
  background: rgba(42, 171, 238, 0.15);
  color: #7dd3fc;
}

.badge--fulfill_failed,
.badge--cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.badge--pending {
  background: rgba(255, 184, 0, 0.12);
  color: #fbbf24;
}

@media (max-width: 960px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.topup-offer a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Product catalog ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(12px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 171, 238, 0.4);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.product-card__visual {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 184, 0, 0.2), transparent 60%),
    rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.product-card__emoji {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(255, 184, 0, 0.45));
}

.product-card__count {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-card__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.product-card__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  line-height: 1.5;
}

.product-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
}

.product-card__price strong {
  font-size: 1.45rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-card__price span {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.catalog-note {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 40rem;
  margin-inline: auto;
  line-height: 1.55;
}

/* ===== Delivery / info cards ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.info-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.info-card a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Contacts ===== */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contacts-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.contacts-card--wide {
  grid-column: 1 / -1;
}

.contacts-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contacts-dl {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contacts-dl div {
  display: grid;
  gap: 0.2rem;
}

.contacts-dl dt {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.contacts-dl dd {
  font-size: 1.05rem;
  font-weight: 600;
}

.contacts-dl a {
  color: #7dd3fc;
}

.contacts-dl a:hover {
  text-decoration: underline;
}

.contacts-docs {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.contacts-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contacts-hours {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ===== Legal pages ===== */
.legal-page {
  padding: 2rem 0 4rem;
}

.container--legal {
  width: min(100% - 2rem, 760px);
}

.legal-doc {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  line-height: 1.65;
}

.legal-doc h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.legal-doc__lead {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-doc h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  font-weight: 700;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.legal-doc ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-doc a {
  color: #7dd3fc;
}

.legal-doc strong {
  color: var(--text);
}

.legal-doc__back {
  margin-top: 2rem;
  text-align: center;
}

/* ===== Footer expanded ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__col h4 {
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.footer__col a:hover {
  color: var(--text);
}

.footer__about {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 16rem;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
}

.step__num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Benefits ===== */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.benefit {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.benefit__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.benefit h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.benefit p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 1.25rem;
  overflow: hidden;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}

.faq__item[open] summary::after {
  content: '−';
}

.faq__item p {
  color: var(--text-muted);
  padding-bottom: 1.15rem;
  font-size: 0.95rem;
}

/* ===== CTA ===== */
.cta__card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(42, 171, 238, 0.2), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.cta__card h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.cta__card > p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 32rem;
  margin-inline: auto;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  margin-top: 2rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.footer__copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 1.25rem;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--text);
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  width: min(100%, 440px);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal__close:hover {
  color: var(--text);
}

.modal__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal__star {
  font-size: 2.25rem;
  filter: drop-shadow(0 0 12px rgba(255, 184, 0, 0.5));
  margin-bottom: 0.5rem;
}

.modal__header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.modal__sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.field__input-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
  color-scheme: dark;
}

.field__input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.15);
}

.field__prefix {
  padding: 0.85rem 0 0.85rem 1rem;
  color: var(--text-dim);
  font-weight: 600;
  flex-shrink: 0;
}

.field__input {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  background-color: transparent !important;
  border: none;
  outline: none;
  padding: 0.85rem 1rem 0.85rem 0.25rem;
  font-size: 1rem;
  color: var(--text) !important;
  caret-color: var(--primary);
  -webkit-text-fill-color: var(--text);
  color-scheme: dark;
}

.field__input::placeholder {
  color: var(--text-dim);
  -webkit-text-fill-color: var(--text-dim);
  opacity: 1;
}

/* Chrome / Edge / Safari: белый фон при автозаполнении и вставке */
.field__input:-webkit-autofill,
.field__input:-webkit-autofill:hover,
.field__input:-webkit-autofill:focus,
.field__input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--primary);
  box-shadow: 0 0 0 1000px #0a101c inset !important;
  -webkit-box-shadow: 0 0 0 1000px #0a101c inset !important;
  transition: background-color 99999s ease-in-out 0s;
  background-color: transparent !important;
  border: none !important;
}

/* Firefox */
.field__input:autofill {
  background: #0a101c !important;
  color: var(--text) !important;
}

.field__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.order-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.order-summary__row--total {
  border-top: 1px solid var(--border);
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  color: var(--text);
  font-size: 1.05rem;
}

.order-summary__row--total strong {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.25rem;
}

.pay-mode {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.radio-card:has(input:checked) {
  border-color: rgba(42, 171, 238, 0.55);
  background: rgba(42, 171, 238, 0.08);
}

.radio-card input {
  margin-top: 0.2rem;
  accent-color: var(--primary);
}

.radio-card strong {
  display: block;
  font-size: 0.925rem;
}

.radio-card small {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.modal__secure {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.form-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 500;
}

.toast[hidden] {
  display: none;
}

/* ===== Result / Payment pages ===== */
.page-plain .header {
  position: relative;
  background: transparent;
  border: none;
}

.result-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 2rem 0 4rem;
}

.result-card,
.pay-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  width: 100%;
}

.result-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
  font-weight: 700;
}

.result-card__icon--ok {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.2);
}

.result-card h1,
.pay-card h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.result-card__lead {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.result-details {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.result-details__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.result-details__row strong {
  color: var(--text);
  word-break: break-all;
  text-align: right;
}

.result-card__note {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.result-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.pay-card__head {
  margin-bottom: 1.5rem;
}

.pay-card__head p {
  color: var(--text-muted);
}

.payment-form {
  min-height: 200px;
  margin-bottom: 1.25rem;
  text-align: left;
}

.pay-card__hint {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav {
    gap: 0.25rem 0.85rem;
  }

  .nav__link {
    font-size: 0.85rem;
  }
}

@media (max-width: 960px) {
  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .hero__lead {
    margin-inline: auto;
    font-size: 1rem;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__actions .btn {
    min-height: 48px;
  }

  .hero__stats {
    justify-content: center;
    gap: 1.25rem;
  }

  .hero__visual {
    min-height: 240px;
    order: -1;
  }

  .star-orb {
    width: 240px;
    height: 240px;
    transform: scale(0.92);
  }

  .float-chip {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Phone / small tablet ===== */
@media (max-width: 768px) {
  :root {
    --header-h: 56px;
    --radius: 14px;
  }

  /* Меньше лагов: без blur и тяжёлых анимаций */
  .cosmos .glow,
  .stars-layer {
    animation: none !important;
    filter: none !important;
    opacity: 0.35;
  }

  .star-svg,
  .star-orb__ring,
  .star-orb__ring--2,
  .star-orb__core,
  .float-chip {
    animation: none !important;
  }

  .glow {
    display: none;
  }

  .container {
    width: calc(100% - 1.5rem);
    max-width: none;
  }

  .container--form,
  .container--narrow,
  .container--pay {
    width: calc(100% - 1.5rem);
  }

  .header {
    position: sticky;
    top: 0;
    background: #070b14;
  }

  .burger {
    display: inline-flex;
  }

  /* Простое меню вниз от шапки */
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: #0b1220;
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    z-index: 101;
    max-height: min(70vh, 480px);
    overflow-y: auto;
  }

  .nav--open {
    display: flex !important;
  }

  .nav__link {
    display: block;
    padding: 0.85rem 0.75rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
  }

  /* hidden не должен перебиваться display:block */
  .nav__link[hidden],
  .nav__link.u-hidden,
  #navAdmin[hidden],
  #navAccount[hidden] {
    display: none !important;
  }

  .nav__link:active {
    background: rgba(42, 171, 238, 0.12);
  }

  .nav__auth,
  .nav__user {
    flex-direction: column;
    align-items: stretch;
    margin: 0.5rem 0 0;
    gap: 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
  }

  .nav__auth .btn,
  .nav__user .btn {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
  }

  .header__email {
    max-width: none;
    text-align: center;
    padding: 0.25rem 0;
  }

  .nav-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.5);
  }

  /* Hero compact */
  .hero {
    padding: 1.25rem 0 0.5rem;
  }

  .hero__title {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    margin-bottom: 0.85rem;
  }

  .badge-pill {
    font-size: 0.78rem;
    margin-bottom: 0.85rem;
  }

  .hero__visual {
    min-height: 200px;
  }

  .star-orb {
    width: 200px;
    height: 200px;
  }

  .star-orb__core {
    width: 120px;
    height: 120px;
  }

  .star-svg {
    width: 64px;
    height: 64px;
  }

  .float-chip--1 {
    top: 8%;
    left: 0;
  }
  .float-chip--2 {
    top: 50%;
    right: 0;
  }
  .float-chip--3 {
    bottom: 0;
    left: 12%;
  }

  .hero__stats {
    gap: 0.75rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .stat strong {
    font-size: 1rem;
  }

  .stat span {
    font-size: 0.72rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  /* Sections */
  .section {
    padding: 2.25rem 0;
  }

  .section__head {
    margin-bottom: 1.35rem;
  }

  .section__head h2 {
    font-size: 1.45rem;
  }

  .section__head p {
    font-size: 0.95rem;
  }

  /* Form card */
  .topup-card {
    padding: 1.25rem 1rem;
    border-radius: 18px;
  }

  .topup-card__head h2 {
    font-size: 1.25rem;
  }

  .topup-form {
    gap: 0.95rem;
  }

  .field__input,
  .field__prefix {
    font-size: 16px; /* no iOS zoom */
  }

  .field__input-wrap {
    min-height: 50px;
  }

  .quick-amounts {
    gap: 0.4rem;
  }

  .chip {
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
    min-height: 40px;
  }

  .price-box {
    padding: 0.95rem 1rem;
  }

  .price-box__row strong {
    font-size: 1.35rem;
  }

  .radio-card {
    padding: 0.85rem;
    gap: 0.65rem;
  }

  #payBtn {
    min-height: 52px;
    font-size: 1.05rem;
    margin-top: 0.15rem;
  }

  /* Catalog */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .product-card {
    padding: 1.15rem;
  }

  .product-card__count {
    font-size: 1.5rem;
  }

  /* Info / steps */
  .info-grid,
  .steps,
  .benefits {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .info-card,
  .step,
  .benefit {
    padding: 1.15rem;
  }

  .faq__item {
    padding: 0 1rem;
  }

  .faq__item summary {
    padding: 1rem 0;
    font-size: 0.95rem;
  }

  /* Footer */
  .footer {
    padding: 1.75rem 0 2.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }

  .footer__about {
    max-width: none;
    margin-inline: auto;
  }

  .footer__brand {
    justify-content: center;
  }

  .footer__col {
    align-items: center;
  }

  /* Auth / result pages */
  .result-page {
    padding: 1.25rem 0 2.5rem;
    align-items: flex-start;
  }

  .auth-card,
  .result-card,
  .pay-card {
    padding: 1.35rem 1.1rem;
  }

  /* Admin mobile */
  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }

  .admin-tab {
    flex-shrink: 0;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .admin-stat {
    padding: 0.85rem 0.65rem;
  }

  .admin-stat strong {
    font-size: 1.05rem;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar h3 {
    margin-right: 0;
  }

  .admin-input,
  .admin-select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .admin-table {
    font-size: 0.8rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.55rem 0.5rem;
  }

  .admin-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .admin-actions .btn {
    width: 100%;
  }

  .modal__dialog {
    width: min(100%, 100%);
    margin: 0.5rem;
    max-height: 90vh;
    padding: 1.15rem;
  }

  .toast {
    left: 0.75rem;
    right: 0.75rem;
    transform: none;
    bottom: max(1rem, env(safe-area-inset-bottom));
    text-align: center;
  }
}

@media (max-width: 380px) {
  .hero__stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border);
  }

  .float-chip {
    display: none;
  }
}
