/* COIN MINE — pixel-close to supplied UI sheet (dark + neon + gold) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg0: #06080f;
  --bg1: #0a0d18;
  --bg2: #12172a;
  --card: rgba(18, 22, 42, 0.92);
  --stroke: rgba(120, 140, 220, 0.18);
  --violet: #7c3aed;
  --violet2: #8b5cf6;
  --cyan: #22d3ee;
  --cyan2: #06b6d4;
  --green: #34d399;
  --green2: #10b981;
  --gold: #fbbf24;
  --gold2: #f59e0b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --r-xl: 22px;
  --r-lg: 16px;
  --font: "Inter", system-ui, sans-serif;
  --app-max: 390px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(100% 70% at 50% -10%, rgba(124, 58, 237, 0.28), transparent 55%),
    radial-gradient(80% 50% at 100% 30%, rgba(34, 211, 238, 0.08), transparent 50%),
    linear-gradient(180deg, #0b0f1c 0%, var(--bg0) 45%);
}
.app-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}

.app-shell {
  margin: 0 auto;
  padding: 0 0.9rem 5.75rem;
  max-width: 960px;
  position: relative;
}
.app-shell--app {
  max-width: var(--app-max);
  padding-top: 0.25rem;
}

/* ——— Top bar ——— */
.top-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0 0.65rem;
}
.top-nav--app {
  grid-template-rows: auto auto;
  row-gap: 0.35rem;
  padding: 0.55rem 0 0.5rem;
}
.top-nav--sticky {
  position: sticky;
  top: 0;
  z-index: 95;
  margin: 0 -0.9rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  background: linear-gradient(180deg, rgba(11, 14, 30, 0.97), rgba(6, 8, 15, 0.92));
  border-bottom: 1px solid rgba(120, 140, 220, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}
.top-nav--app .nav-links--desktop {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: center;
  padding-top: 0.15rem;
}
.top-nav-mid {
  min-width: 0;
  text-align: center;
  justify-self: stretch;
}
.top-nav-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand--header-desk {
  display: none;
  justify-content: center;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}
.nav-bell {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--gold);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-bell-ic {
  font-size: 1.05rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.45));
}
.nav-drawer-brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin: 0 0 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--stroke);
}
.site--app-hidden {
  display: none;
}
.nav-spacer {
  width: 1px;
}
.brand {
  justify-self: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.35);
}
.brand:hover {
  filter: brightness(1.1);
}

.nav-burger {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-links--desktop {
  display: none;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  justify-content: flex-end;
}
.nav-links--desktop a {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}
.nav-links--desktop a:hover {
  color: var(--text);
  background: rgba(139, 92, 246, 0.15);
}

@media (min-width: 720px) {
  .nav-burger {
    display: none;
  }
  .nav-links--desktop {
    display: flex;
    grid-column: 3;
  }
  .brand {
    grid-column: 1;
    justify-self: start;
  }
  .nav-spacer {
    display: none;
  }
  .top-nav:not(.top-nav--app) {
    grid-template-columns: 1fr auto;
  }
  .top-nav--app {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 0.75rem;
  }
  .top-nav--app .nav-bell {
    display: none;
  }
  .top-nav--app .top-nav-title {
    display: none;
  }
  .top-nav--app .brand--header-desk {
    display: inline-flex;
    justify-self: start;
  }
  .top-nav--app .top-nav-mid {
    grid-column: 1;
    text-align: left;
  }
  .top-nav--app .nav-links--desktop {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    padding-top: 0;
  }
}

.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.nav-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(280px, 86vw);
  height: 100%;
  background: linear-gradient(180deg, #141832, #0a0d18);
  border-left: 1px solid var(--stroke);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
}
.nav-drawer.is-open .nav-drawer-inner {
  transform: translateX(0);
}
.nav-drawer-inner a {
  color: var(--text);
  text-decoration: none;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-drawer-inner a:hover {
  background: rgba(139, 92, 246, 0.2);
}

/* ——— Design sheet preview (your PNG) ——— */
.design-preview {
  margin: 0.5rem auto 1rem;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow), 0 0 0 1px rgba(139, 92, 246, 0.12) inset;
  background: #05070f;
}
.design-preview img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.design-preview-caption {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.35rem 0.5rem 0.6rem;
  letter-spacing: 0.04em;
}

/* ——— Glass cards ——— */
.panel,
.glass,
.auth-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.page-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0.35rem 0 0.75rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, #c4b5fd 45%, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ——— Landing hero (matches first screen copy) ——— */
.landing-hero {
  text-align: center;
  padding: 0.25rem 0 1rem;
}
.hero-title-main {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.75rem 0 0.5rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-sub {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 22rem;
  margin: 0 auto 1rem;
}
.hero-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  max-width: 20rem;
  margin: 0 auto 1rem;
}
.stat-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin: 1rem 0;
}
.stat-icon-card {
  text-align: center;
  padding: 0.55rem 0.2rem;
  border-radius: var(--r-lg);
  background: rgba(10, 14, 30, 0.65);
  border: 1px solid var(--stroke);
}
.stat-icon-card .ic {
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.2rem;
}
.stat-icon-card .v {
  font-size: 0.68rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.2;
}
.stat-icon-card .l {
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.global-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.global-stat {
  text-align: center;
  padding: 0.65rem 0.35rem;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.18), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.global-stat .num {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
}
.global-stat .lbl {
  font-size: 0.55rem;
  color: var(--muted);
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(30, 35, 60, 0.8);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-block {
  width: 100%;
}
.btn-join {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet2) 40%, #6366f1 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
}
.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0d00;
  border: none;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(251, 191, 36, 0.35);
}
.btn-stop {
  background: linear-gradient(135deg, var(--cyan2), var(--violet));
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.25);
}
.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}
.btn-outline-admin {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(20, 25, 45, 0.6);
  color: var(--text);
}

/* ——— Dashboard balance card ——— */
.balance-hero {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
  position: relative;
}
.coin-stack {
  position: relative;
  height: 48px;
  margin: 0 auto 0.35rem;
  width: 72px;
}
.coin-stack span {
  position: absolute;
  left: 50%;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fde68a, var(--gold2), #b45309);
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.coin-stack span:nth-child(1) {
  transform: translateY(0) scale(0.92);
  opacity: 0.85;
}
.coin-stack span:nth-child(2) {
  transform: translateY(-8px) scale(0.96);
  opacity: 0.92;
}
.coin-stack span:nth-child(3) {
  transform: translateY(-16px);
}
.balance-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.balance-usdt {
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* ——— Mining ring ——— */
.mining-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.35rem 0 0.25rem;
}
.ring-wrap {
  position: relative;
  width: 188px;
  height: 188px;
}
.ring-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: rgba(100, 116, 180, 0.2);
  stroke-width: 11;
  stroke-linecap: round;
}
.ring-prog {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 11;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.55));
}
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding-top: 0.25rem;
}
.ring-time-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.ring-time-val {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  margin-top: 0.15rem;
}
.ring-pct-sm {
  font-size: 0.75rem;
  color: var(--gold);
  margin-top: 0.2rem;
  font-weight: 700;
}
.pickaxe-ic {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.15rem;
  filter: drop-shadow(0 2px 8px rgba(34, 211, 238, 0.35));
}
.ring-session-total {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.12rem;
  font-variant-numeric: tabular-nums;
}
.ring-total-val {
  color: #cbd5e1;
  font-weight: 600;
}
.js-mining-ring[data-active="0"] .ring-session-total,
.js-mining-ring[data-active="0"] .pickaxe-ic {
  display: none;
}
.mining-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.mining-active-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.mining-meta-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.85rem;
}
.mining-meta {
  text-align: center;
  padding: 0.45rem;
  border-radius: 12px;
  background: rgba(8, 10, 22, 0.55);
  border: 1px solid var(--stroke);
  font-size: 0.65rem;
}
.mining-meta strong {
  display: block;
  color: #fff;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

/* ——— Referral ——— */
.ref-box {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.ref-input {
  flex: 1;
  font-size: 0.72rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(5, 8, 18, 0.75);
  color: #c4b5fd;
  word-break: break-all;
  margin: 0;
}
.btn-copy {
  flex-shrink: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(124, 58, 237, 0.25);
  color: #e9d5ff;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}
.boost-card {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: var(--r-lg);
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.2);
}
.boost-card .big {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green);
}
.boost-card .lbl {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--stroke);
}
.team-row:last-child {
  border-bottom: none;
}
.team-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet2), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}
.team-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  flex-shrink: 0;
}
.team-dot.off {
  background: #64748b;
  box-shadow: none;
}

/* ——— Wallet ——— */
.wallet-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.5rem 0;
}
.wallet-card {
  padding: 0.85rem 0.6rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  text-align: center;
}
.wallet-card.locked {
  background: rgba(30, 35, 55, 0.85);
}
.wallet-card.free {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.18), rgba(8, 12, 24, 0.9));
  border-color: rgba(52, 211, 153, 0.35);
}
.wallet-card .t {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.wallet-card .v {
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 0.25rem;
  color: #fff;
}
.wallet-card.free .v {
  color: var(--green);
}
.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.75rem 0 0.25rem;
}
.tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--stroke);
  font-size: 0.82rem;
}
.tx-row:last-child {
  border-bottom: none;
}
.tx-pos {
  color: var(--green);
  font-weight: 700;
}

/* ——— Gift ——— */
.gift-visual {
  text-align: center;
  font-size: 3.5rem;
  line-height: 1;
  margin: 0.25rem 0 0.75rem;
  filter: drop-shadow(0 8px 24px rgba(124, 58, 237, 0.45));
}

/* ——— KYC ——— */
.kyc-shield {
  width: 88px;
  height: 88px;
  margin: 0.5rem auto 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.35), rgba(34, 211, 238, 0.1));
  border: 2px solid rgba(139, 92, 246, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.25);
}
.kyc-countdown {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: s;
}
.steps li {
  position: relative;
  padding: 0.65rem 0 0.65rem 2.25rem;
  border-bottom: 1px solid var(--stroke);
  font-size: 0.88rem;
  color: var(--muted);
}
.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.35);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ——— Tabs ——— */
.tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0.5rem 0 1rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(8, 10, 22, 0.75);
  border: 1px solid var(--stroke);
}
.tabs a {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tabs a.is-on {
  background: linear-gradient(135deg, var(--violet), var(--cyan2));
  color: #fff;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--stroke);
}
.task-row:last-child {
  border-bottom: none;
}
.task-reward {
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ——— Leaderboard podium ——— */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  height: 120px;
}
.podium-bar {
  width: 28%;
  border-radius: 12px 12px 4px 4px;
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}
.podium-bar.b2 {
  height: 55%;
  background: linear-gradient(180deg, #94a3b8, #475569);
}
.podium-bar.b1 {
  height: 85%;
  background: linear-gradient(180deg, #fcd34d, #d97706);
}
.podium-bar.b3 {
  height: 40%;
  background: linear-gradient(180deg, #fb923c, #c2410c);
}

/* ——— Auth ——— */
.auth-wrap {
  padding: 1.25rem 0 2rem;
}
.auth-card h1 {
  text-align: center;
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
  font-weight: 800;
}
.auth-card .sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* ——— Grid stats (generic) ——— */
.grid-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.stat-tile {
  text-align: center;
  padding: 0.75rem 0.35rem;
  border-radius: var(--r-lg);
  background: rgba(10, 14, 28, 0.65);
  border: 1px solid var(--stroke);
}
.stat-tile .label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.stat-tile .value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  margin-top: 0.2rem;
}
.stat-tile .sub {
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

/* ——— Flash ——— */
.flash {
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}
.flash-ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
.flash-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}
.flash a {
  color: var(--cyan);
  font-weight: 600;
}

/* ——— Tables ——— */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
table.data th,
table.data td {
  border-bottom: 1px solid var(--stroke);
  padding: 0.45rem 0.2rem;
  text-align: left;
}
table.data th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill,
.pill-live {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.pill {
  background: rgba(71, 85, 105, 0.35);
  color: var(--muted);
}
.pill-live {
  background: rgba(16, 185, 129, 0.2);
  color: var(--green);
}

.ref-link,
code {
  font-size: 0.75rem;
  color: #c4b5fd;
}

.link-row {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.65rem;
}
.link-row a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  margin: 0 0.15rem;
}

/* ——— Bottom dock ——— */
.nav-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  width: calc(100% - 1.2rem);
  max-width: var(--app-max);
  display: flex;
  justify-content: space-around;
  padding: 0.45rem 0.2rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  border-radius: 22px;
  background: rgba(10, 13, 28, 0.92);
  border: 1px solid rgba(124, 58, 237, 0.22);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 100;
}
.nav-dock a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  padding: 0.3rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 12px;
}
.nav-dock a .ic {
  font-size: 1.1rem;
}
.nav-dock a.active {
  color: var(--gold);
  background: rgba(124, 58, 237, 0.18);
}

@media (min-width: 900px) {
  .nav-dock {
    display: none;
  }
  .app-shell--app {
    max-width: 420px;
  }
}

.site {
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 1rem 0 0.25rem;
}

/* ——— ADMIN desktop ——— */
.admin-body {
  overflow-x: hidden;
}
.admin-root {
  display: flex;
  min-height: 100vh;
  position: relative;
}
.admin-side {
  width: 220px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0f1328, #080b14);
  border-right: 1px solid var(--stroke);
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.admin-side-brand {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold);
  padding: 0 0.5rem 1rem;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 0.5rem;
}
.admin-side-nav a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
}
.admin-side-nav a:hover,
.admin-side-nav a.is-active {
  background: rgba(124, 58, 237, 0.2);
  color: #fff;
}
.admin-side-out {
  margin-top: auto;
  padding: 0.75rem 0.65rem;
  color: var(--cyan);
  font-size: 0.82rem;
  text-decoration: none;
}
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--stroke);
  background: rgba(10, 14, 28, 0.85);
}
.admin-topbar-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.admin-scroll {
  padding: 1rem;
  flex: 1;
  overflow: auto;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.admin-kpi {
  padding: 0.85rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--card);
}
.admin-kpi .lbl {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.admin-kpi .num {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 0.2rem;
}
.admin-kpi .trend {
  font-size: 0.68rem;
  color: var(--green);
  margin-top: 0.25rem;
}

.chart-mock {
  height: 180px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(30, 40, 80, 0.4), rgba(8, 10, 20, 0.9));
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.chart-mock::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 18%;
  height: 45%;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 211, 238, 0.15) 20%,
    rgba(124, 58, 237, 0.25) 50%,
    rgba(34, 211, 238, 0.12) 80%,
    transparent
  );
  clip-path: polygon(0 80%, 8% 40%, 20% 55%, 35% 20%, 50% 45%, 65% 15%, 80% 35%, 92% 25%, 100% 50%, 100% 100%, 0 100%);
}
.chart-mock::after {
  content: "New users vs active miners (7d)";
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 860px) {
  .admin-root {
    flex-direction: column;
  }
  .admin-side {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.65rem;
    gap: 0.35rem;
  }
  .admin-side-brand {
    width: 100%;
    border: none;
    margin: 0;
    padding-bottom: 0.35rem;
  }
  .admin-side-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    width: 100%;
  }
  .admin-side-nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.72rem;
  }
  .admin-side-out {
    margin-top: 0;
    width: 100%;
    text-align: center;
  }
}
