:root {
  --black: #0a0a0a;
  --black2: #121212;
  --gold: #d4a017;
  --gold2: #f0c14b;
  --gold-soft: #e8c56a;
  --cream: #fff8e7;
  --yellow: #f5c842;
  --yellow-bg: #f0c93a;
  --text: #1a1a1a;
  --muted: #8a8a8a;
  --line: #e8e8e8;
  --card: #ffffff;
  --ok: #2d9b4f;
  --bad: #d64545;
  --radius: 20px;
  --header-h: 56px;
  --bottom-nav-h: 64px;
  --footer-h: 44px;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--black);
}
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* Full-height shell: header + content + footer pinned to bottom */
.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ─── Header (black bar) ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(1.05);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.nav-link:hover { color: #fff; }
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-badge {
  display: inline-block;
  margin-left: 6px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: 0;
  text-transform: none;
}
.nav-badge.hidden,
.hidden { display: none !important; }
.skin-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}
.silhouette-wrap.has-skin {
  background: linear-gradient(180deg, #fafafa, #ececec);
}
.char-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
}
.char-slot .slot-skin {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.65;
  letter-spacing: 0.02em;
}
.char-slot.active .slot-skin { opacity: 0.9; }
.demo-banner {
  margin: 18px auto 0;
  max-width: 720px;
  padding: 16px 18px;
  background: #fff8e7;
  border: 1px solid #e8d5a0;
  border-radius: 16px;
  color: #3a2e00;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.demo-banner p {
  margin: 0;
  flex: 1 1 100%;
  font-size: 14px;
  line-height: 1.4;
}

/* Exp / donate */
.exp-bar-wrap {
  margin: 4px 0 12px;
  padding: 0 2px;
}
.exp-bar {
  height: 8px;
  border-radius: 999px;
  background: #ececec;
  overflow: hidden;
}
.exp-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4a017, #f0c14b);
  transition: width 0.35s ease;
}
.exp-bar-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}
.exp-bar-meta.muted { color: #aaa; font-style: italic; }

.donate-block .donate-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}
.donate-block .donate-ico { font-size: 22px; }
.donate-block .donate-val {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}
.donate-block .donate-lbl {
  font-size: 13px;
  color: #8a8a8a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.donate-block .donate-empty {
  margin: 10px 0 0;
  font-size: 13px;
  color: #999;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(80,50,0,0.1);
  transition: border-color 0.15s, transform 0.1s;
}
.product-card:hover { border-color: rgba(212,160,23,0.5); }
.product-card.active {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(212,160,23,0.25);
}
.product-card img {
  width: 64px; height: 64px; object-fit: contain; margin: 0 auto 8px;
}
.product-card .pn { font-weight: 800; font-size: 14px; }
.product-card .pp { color: #888; font-size: 13px; margin-top: 4px; font-weight: 700; }
.product-card .pb { color: var(--ok); font-size: 11px; font-weight: 700; margin-top: 2px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pay-method {
  border: 1.5px solid #e5e5e5;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pay-method.active { border-color: var(--gold); background: #fffbeb; }
.pay-method img { width: 28px; height: 20px; object-fit: contain; }
#googleBtnHost { min-height: 44px; margin: 8px 0; display: flex; justify-content: center; }
.auth-note {
  background: #fff8e7;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: #5a4200;
  line-height: 1.45;
  margin-top: 12px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-pill {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-pill.account {
  background: #f2f2f2;
  color: #111;
}
.btn-pill.ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
}
.btn-pill.dark {
  background: #111;
  color: #fff;
}
.btn-pill.gold {
  background: linear-gradient(180deg, #f0c14b, #d4a017);
  color: #1a1200;
  box-shadow: 0 6px 18px rgba(212, 160, 23, 0.35);
}

/* ─── Page background (yellow + kremlin vibe) ──────────────────────────────── */
.page-bg {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 220, 100, 0.12) 0%, transparent 42%),
    linear-gradient(145deg, #f7d76e 0%, #e8b82e 48%, #c99218 100%);
  position: relative;
  overflow-x: hidden;
  min-height: 0;
}
.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 85% 15%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 50% at 70% 95%, rgba(180, 80, 20, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 15% 100%, rgba(120, 40, 10, 0.18), transparent);
  pointer-events: none;
}
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  flex: 1 1 auto;
}

.page-title {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: #1a1200;
}

/* ─── Home (minimal) ───────────────────────────────────────────────────────── */
.home-hero {
  margin-bottom: 28px;
  max-width: 640px;
}
.home-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26, 18, 0, 0.45);
}
.home-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1200;
  line-height: 1.15;
}
.home-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(26, 18, 0, 0.62);
  max-width: 480px;
}

.home-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 820px) {
  .home-tiles { grid-template-columns: 1fr; }
}

.home-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 0;
  cursor: pointer;
  background: #fff;
  border-radius: 20px;
  padding: 18px 18px 18px 16px;
  box-shadow: 0 16px 40px rgba(80, 50, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  color: inherit;
}
.home-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(80, 50, 0, 0.16);
}
.home-tile-gold {
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #fff;
}
.home-tile-gold .home-tile-sub { color: rgba(255, 255, 255, 0.55); }
.home-tile-gold .home-tile-arrow { color: var(--gold2); }
.home-tile-gold .home-tile-ico {
  background: rgba(240, 193, 75, 0.16);
  color: var(--gold2);
}
.home-tile-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f6f1e4;
  color: #1a1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tile-ico { width: 22px; height: 22px; display: block; }
.home-tile-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.home-tile-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.home-tile-sub {
  font-size: 13px;
  color: #8a8a8a;
  font-weight: 500;
}
.home-tile-arrow {
  font-size: 18px;
  font-weight: 700;
  color: #c9a227;
  flex-shrink: 0;
}

.home-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 16px 40px rgba(80, 50, 0, 0.1);
  backdrop-filter: blur(8px);
}
.home-panel-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}

/* ─── Auth screen (centered, TG-friendly) ─────────────────────────────────── */
.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(70vh, 640px);
  padding: 8px 0 16px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 28px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 60px rgba(80, 50, 0, 0.18);
}
.auth-card-top {
  text-align: center;
  margin-bottom: 20px;
}
.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: #111;
  color: var(--gold2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.auth-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
}
.auth-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #8a8a8a;
}
.auth-features {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.auth-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f7f5ef;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.auth-feat span:first-child {
  font-size: 18px;
  width: 28px;
  text-align: center;
}
.auth-steps {
  margin: 0 0 18px;
  padding: 14px 14px 14px 32px;
  background: #f7f5ef;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #444;
}
.auth-steps li + li { margin-top: 6px; }
.auth-steps a { color: #1c8ec4; font-weight: 700; }
.auth-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 8px;
}
.auth-input {
  width: 100%;
  border: 1.5px solid #e5e5e5;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  font-family: inherit;
  margin-bottom: 12px;
  outline: none;
  background: #fafafa;
}
.auth-input:focus {
  border-color: var(--gold);
  background: #fff;
}
.auth-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  font-size: 15px;
  margin-top: 4px;
}
.auth-btn-ghost {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  background: #f0f0f0;
  color: #444;
  padding: 12px 16px;
}
.auth-bot-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #1c8ec4;
}
.auth-foot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: #aaa;
}

/* ─── White cabinet card ───────────────────────────────────────────────────── */
.cabinet-card {
  background: var(--card);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(80, 50, 0, 0.18);
  padding: 28px;
  display: grid;
  grid-template-columns: 200px 1fr 260px;
  gap: 28px;
  min-height: 480px;
}
@media (max-width: 900px) {
  .cabinet-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .site-nav { display: none; }
  .silhouette-wrap { max-width: 180px; margin: 0 auto; }
}

/* Silhouette */
.silhouette-wrap {
  background: linear-gradient(180deg, #f4f4f4, #eaeaea);
  border-radius: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 360px;
  overflow: hidden;
  position: relative;
}
.silhouette-wrap svg {
  width: 85%;
  height: auto;
  opacity: 0.55;
}
.slot-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(180deg, #f0c14b, #d4a017);
  color: #1a1200;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Center column */
.cab-center { min-width: 0; }
.cab-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.label-up {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 8px;
}
.server-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.server-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  background: #e8e8e8;
  color: #666;
}
.server-pill.active {
  background: #111;
  color: #fff;
}
.server-pill:hover:not(.active) { background: #ddd; }

.user-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-line .name {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Character slots */
.char-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.char-slot {
  border: 1.5px solid #e0e0e0;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
  cursor: pointer;
}
.char-slot.active {
  border-color: transparent;
  background: linear-gradient(180deg, #f0c14b, #d4a017);
  color: #1a1200;
  box-shadow: 0 4px 14px rgba(212, 160, 23, 0.35);
}
.char-slot.free:hover { border-color: #ccc; color: #555; }

/* Dotted field rows (as official site) */
.fields { margin-top: 4px; }
.field-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.field-row .fk {
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-row .dots {
  flex: 1;
  border-bottom: 1px dotted #ccc;
  min-width: 24px;
  transform: translateY(-4px);
}
.field-row .fv {
  flex-shrink: 0;
  font-weight: 600;
  color: #555;
  text-align: right;
  max-width: 50%;
  word-break: break-word;
}
.field-row .fv.strong { color: #111; font-weight: 700; }
.field-row .ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #f3f3f3;
}
.field-row .ico.cash { background: #e8f7ee; }
.field-row .ico.bank { background: #e8eefc; }
.field-row .ico.house { background: #fff3e0; }
.field-row .ico.flat { background: #f3e8ff; }
.field-row .ico.biz { background: #e8f5e9; }

.section-h {
  margin: 20px 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}

/* Right column */
.cab-right { min-width: 0; }
.side-block {
  background: #f6f6f6;
  border-radius: 16px;
  padding: 18px;
  min-height: 100px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.side-block h4 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}
.side-block p {
  margin: 0;
  font-size: 13px;
  color: #aaa;
  text-align: center;
  line-height: 1.4;
}
.side-block .list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #444;
}
.side-block .list li {
  padding: 6px 0;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.side-block .list li:last-child { border-bottom: 0; }

/* Auth / cards */
.white-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(80, 50, 0, 0.15);
  max-width: 480px;
  width: 100%;
}
.white-card.wide { max-width: 720px; }
.white-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}
.white-card .sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.auth-grid .btn-pill { justify-content: center; width: 100%; }

input, select {
  width: 100%;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 10px;
  outline: none;
  background: #fafafa;
}
input:focus { border-color: var(--gold); background: #fff; }
label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  margin: 4px 0 6px;
}
.stack > * + * { margin-top: 8px; }
.hint {
  font-size: 12px;
  color: #999;
  line-height: 1.45;
  margin-top: 12px;
}
.hint a { color: var(--gold); font-weight: 700; }

/* Servers monitor */
.server-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.server-row {
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 28px rgba(80, 50, 0, 0.1);
}
.server-row .nm { font-weight: 800; font-size: 15px; }
.server-row .meta { font-size: 12px; color: #888; margin-top: 2px; }
.server-row .onl {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  color: #1a1200;
  white-space: nowrap;
}
.server-row .onl small {
  font-weight: 600;
  color: #999;
  font-size: 12px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 6px;
}
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(45,155,79,0.2); }
.dot.off { background: var(--bad); }
.bar {
  height: 5px;
  border-radius: 99px;
  background: #eee;
  margin-top: 10px;
  overflow: hidden;
  width: 100%;
}
.bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--ok));
  border-radius: 99px;
}

.loading, .empty {
  text-align: center;
  padding: 48px 16px;
  color: #5a4200;
  font-weight: 600;
}
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.stat-pill {
  background: rgba(255,255,255,0.55);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #3a2a00;
}

/* Toast (above sticky footer) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  z-index: 100;
  max-width: 90%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.toast.hidden { display: none; }
.toast.err { background: #8b1e1e; }
.toast.ok { background: #1b5e32; }

.nav-badge.off {
  opacity: 0.55;
  background: #666;
}

.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 12px;
  border-radius: 999px;
  background: #111;
  color: #f0c14b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #333;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.link-chip:hover {
  background: #222;
  border-color: var(--gold);
  transform: translateY(-1px);
}
.link-chip .chip-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}
/* Telegram-style blue chips */
.link-chip.tg {
  background: linear-gradient(135deg, #229ed9 0%, #1c8ec4 100%);
  color: #fff;
  border-color: #1a7eaf;
}
.link-chip.tg:hover {
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  border-color: #2aabee;
}
.link-chip.apk {
  background: #1b5e32;
  color: #c8f0d4;
  border-color: #154a28;
}
.link-chip.apk:hover {
  background: #247a40;
  border-color: #2d9a50;
}
.link-chip.play {
  background: #0f1720;
  color: #a8d5ff;
  border-color: #2a3a4a;
}
.link-chip.play:hover {
  background: #1a2836;
  border-color: #4a90d9;
}
.link-chip.store {
  background: #1a1a2e;
  color: #f0c14b;
  border-color: #333355;
}
.link-chip.store:hover {
  background: #252545;
  border-color: var(--gold);
}
.link-chip.muted {
  background: #eee;
  color: #888;
  border-color: #ddd;
  cursor: default;
  transform: none;
}
.link-chip.muted:hover {
  background: #eee;
  border-color: #ddd;
  transform: none;
}

/* Sticky global footer */
.site-footer {
  flex-shrink: 0;
  margin: 0;
  padding: 10px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 30;
}
.site-footer p { margin: 0; }

.nav-link.nav-topup {
  color: rgba(240, 193, 75, 0.9);
}
.nav-link.nav-topup:hover {
  color: #fff;
  background: rgba(240, 193, 75, 0.12);
}

/* ─── Bottom nav (phone / Telegram WebApp) ────────────────────────────────── */
.bottom-nav {
  display: none;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 45;
  height: calc(var(--bottom-nav-h) + var(--safe-b));
  padding: 0 4px var(--safe-b);
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
}
.bnav-item {
  position: relative;
  flex: 1;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  cursor: pointer;
  font-family: inherit;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.bnav-item.active {
  color: #fff;
}
.bnav-item.bnav-topup {
  color: rgba(240, 193, 75, 0.85);
}
.bnav-item.bnav-topup:active,
.bnav-item:active {
  opacity: 0.75;
}
.bnav-ico {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bnav-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}
.bnav-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.bnav-item.active .bnav-lbl {
  color: var(--gold2);
}
.bnav-dot {
  position: absolute;
  top: 6px;
  right: calc(50% - 22px);
  background: #e53935;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 999px;
  line-height: 1.2;
}

/* Desktop: top nav; phone/TG: bottom nav */
@media (max-width: 860px) {
  .desktop-nav { display: none !important; }
  .desktop-only { display: none !important; }
  .bottom-nav { display: flex; }
  .site-footer {
    /* footer sits above bottom nav visually when both in shell — hide on phone to save space */
    display: none;
  }
  .page {
    padding: 18px 14px 20px;
  }
  .page-title { font-size: 20px; }
  .home-title { font-size: 26px; }
  .cabinet-card { border-radius: 20px; min-height: 0; }
  .field-row { font-size: 13px; }
  .home-panel { padding: 18px 16px; }
  .auth-screen { min-height: calc(100dvh - var(--header-h) - var(--bottom-nav-h) - 24px); }
  .toast { bottom: calc(var(--bottom-nav-h) + 12px + var(--safe-b)); }
}

@media (min-width: 861px) {
  .bottom-nav { display: none !important; }
}

/* Very small phones */
@media (max-width: 380px) {
  .bnav-lbl { font-size: 9px; }
  .auth-card { padding: 22px 16px 18px; border-radius: 22px; }
}
