/* ============================================================
   MintX World — PRO DESIGN SYSTEM
   ============================================================ */

:root {
  --bg-base:       #040d18;
  --bg-surface:    rgba(8, 18, 36, 0.92);
  --bg-card:       rgba(10, 22, 42, 0.88);
  --bg-hover:      rgba(255, 255, 255, 0.04);

  --border:        rgba(255, 255, 255, 0.07);
  --border-accent: rgba(245, 200, 66, 0.30);
  --border-teal:   rgba(45, 212, 191, 0.25);

  --gold:          #f5c842;
  --gold-light:    #ffe175;
  --orange:        #f97316;
  --teal:          #2dd4bf;
  --blue:          #60a5fa;
  --red:           #f87171;
  --green:         #4ade80;

  --text-primary:  #eef4ff;
  --text-secondary:#a8bfd4;
  --text-muted:    #5f7a95;

  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --radius-xl:  28px;

  --shadow-sm:  0 4px 16px rgba(0,0,0,0.25);
  --shadow-md:  0 12px 40px rgba(0,0,0,0.38);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.50);
  --glow-gold:  0 0 40px rgba(245,200,66,0.18);
  --glow-teal:  0 0 40px rgba(45,212,191,0.15);

  --sidebar-w: 280px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 50% at -10% -10%, rgba(245,200,66,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 110%  10%, rgba(45,212,191,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at  50% 110%, rgba(96,165,250,0.06) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ── App Shell ──────────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  background: linear-gradient(180deg,
    rgba(6,14,28,0.96) 0%,
    rgba(4,10,22,0.98) 100%);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  backdrop-filter: blur(24px);
  z-index: 100;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #111;
  box-shadow: 0 8px 24px rgba(249,115,22,0.40), var(--glow-gold);
  flex-shrink: 0;
  position: relative;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  z-index: -1;
  opacity: 0.3;
  filter: blur(8px);
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* Nav */
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  border: 1px solid transparent;
  position: relative;
}

.nav-link .nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}

.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(245,200,66,0.12), rgba(249,115,22,0.08));
  color: var(--gold);
  border-color: var(--border-accent);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--orange));
  border-radius: 99px;
}

/* Wallet card in sidebar */
.wallet-card {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.wallet-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.wallet-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.4;
  margin-bottom: 14px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.wallet-copy-btn {
  margin-bottom: 8px;
}

.connect-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.status-dot.live {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Main Content ───────────────────────────────────────────── */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  overflow-x: hidden;
}

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-header .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}

.page-header h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.header-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

/* ── Pill / Badge ───────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.pill.gold  { background: rgba(245,200,66,0.12); border-color: var(--border-accent); color: var(--gold); }
.pill.teal  { background: rgba(45,212,191,0.10); border-color: var(--border-teal);   color: var(--teal); }
.pill.green { background: rgba(74,222,128,0.10); border-color: rgba(74,222,128,0.25); color: var(--green); }
.pill.red   { background: rgba(248,113,113,0.10); border-color: rgba(248,113,113,0.25); color: var(--red); }

a.pill {
  text-decoration: none;
}

.contract-link:hover {
  color: var(--gold);
  border-color: var(--border-accent);
  background: rgba(245,200,66,0.10);
}

/* ── Buttons ────────────────────────────────────────────────── */
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
  color: #0f1218;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(249,115,22,0.30);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(249,115,22,0.45);
  filter: brightness(1.05);
}

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

.primary-btn.full { width: 100%; }

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.secondary-btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.14);
}

.secondary-btn.full { width: 100%; }

.header-logout {
  min-height: 34px;
  padding: 7px 14px;
  font-size: 12px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.10);
  color: var(--text-primary);
}

/* ── Panels ─────────────────────────────────────────────────── */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}

.panel:hover { border-color: rgba(255,255,255,0.11); }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.panel-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.panel.accent-gold {
  background: linear-gradient(135deg,
    rgba(245,200,66,0.08) 0%,
    rgba(249,115,22,0.05) 50%,
    var(--bg-card) 100%);
  border-color: rgba(245,200,66,0.14);
}

.panel.accent-teal {
  background: linear-gradient(135deg,
    rgba(45,212,191,0.08) 0%,
    var(--bg-card) 60%);
  border-color: rgba(45,212,191,0.14);
}

.panel.notice {
  background: linear-gradient(135deg,
    rgba(249,115,22,0.10) 0%,
    var(--bg-card) 60%);
  border-color: rgba(249,115,22,0.22);
}

/* ── Stat Cards ─────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card:hover::before { opacity: 1; }

.stat-card.teal-accent::before  { background: linear-gradient(90deg, transparent, var(--teal), transparent); }
.stat-card.blue-accent::before  { background: linear-gradient(90deg, transparent, var(--blue), transparent); }
.stat-card.green-accent::before { background: linear-gradient(90deg, transparent, var(--green), transparent); }

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
  line-height: 1;
}

.stat-value.gold  { color: var(--gold); }
.stat-value.teal  { color: var(--teal); }
.stat-value.blue  { color: var(--blue); }
.stat-value.green { color: var(--green); }

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Hero Grid (Entry Section) ──────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.hero-card.accent {
  background:
    radial-gradient(circle at 0% 0%, rgba(245,200,66,0.14) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(249,115,22,0.08) 0%, transparent 50%),
    var(--bg-card);
  border-color: rgba(245,200,66,0.18);
}

.hero-card.status-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(45,212,191,0.12) 0%, transparent 50%),
    var(--bg-card);
  border-color: rgba(45,212,191,0.14);
}

.eyebrow-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.eyebrow-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(245,200,66,0.12);
  border: 1px solid rgba(245,200,66,0.22);
  color: var(--gold);
  letter-spacing: 0.03em;
}

.eyebrow-pill.soft {
  background: rgba(45,212,191,0.10);
  border-color: rgba(45,212,191,0.20);
  color: var(--teal);
}

.hero-card h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.hero-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 18px; line-height: 1.6; }

.earning-highlight {
  margin: 8px 0 14px;
}

.earning-highlight span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.earning-highlight strong {
  display: block;
  color: var(--gold);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.hero-referral-box {
  margin: 0 0 16px;
  flex-wrap: wrap;
}

.hero-referral-box span {
  min-width: min(100%, 220px);
}

.hero-income-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.hero-income-split div {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--border);
}

.hero-income-split span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
}

.hero-income-split strong {
  display: block;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-form { margin-bottom: 20px; }

.entry-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.info-list .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  font-size: 13px;
}

.info-list .info-row span { color: var(--text-muted); }
.info-list .info-row strong { color: var(--text-primary); font-weight: 700; }

/* ── Packs Grid ─────────────────────────────────────────────── */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.pack-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(245,200,66,0.06) 0%, transparent 40%),
    var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.pack-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245,200,66,0.20);
}

.pack-card.owned {
  border-color: rgba(245,200,66,0.35);
  background:
    radial-gradient(circle at 100% 0%, rgba(245,200,66,0.14) 0%, transparent 50%),
    var(--bg-card);
}

.pack-card.locked {
  opacity: 0.72;
  border-color: rgba(248,113,113,0.18);
  background: rgba(255,255,255,0.025);
}

.pack-card.locked:hover {
  transform: none;
  box-shadow: none;
}

.pack-card.owned::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #111;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.pack-card.owned::after {
  display: none;
}

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

.pack-tree-inline {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.source-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 18px;
}

.source-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.045);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
}

.source-legend span::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.source-legend .source-direct { color: #2dd4bf; }
.source-legend .source-direct-spillover { color: #60a5fa; }
.source-legend .source-upline-spillover { color: #f5c842; }
.source-legend .source-recycle { color: #fb7185; }

.pack-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.pack-next-note {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.pack-tree-level {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
}

.pack-tree-level span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.pack-tree-slots {
  display: grid;
  gap: 5px;
}

.pack-tree-slots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pack-tree-slots.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pack-tree-slots.eight { grid-template-columns: repeat(8, minmax(0, 1fr)); }

.pack-tree-slots i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  border-radius: 7px;
  background: rgba(45,212,191,0.10);
  border: 1px solid rgba(45,212,191,0.18);
  color: var(--text-secondary);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
}

.pack-card.owned .pack-tree-slots i {
  background: rgba(245,200,66,0.16);
  border-color: rgba(245,200,66,0.26);
}

.pack-card.owned .pack-tree-slots i.filled {
  background: linear-gradient(135deg, rgba(45,212,191,0.28), rgba(96,165,250,0.18));
  border-color: rgba(45,212,191,0.38);
  color: var(--text-primary);
}

.pack-card.owned .pack-tree-slots i.filled.source-direct {
  background: linear-gradient(135deg, rgba(45,212,191,0.30), rgba(45,212,191,0.12));
  border-color: rgba(45,212,191,0.56);
  box-shadow: 0 0 14px rgba(45,212,191,0.14);
}

.pack-card.owned .pack-tree-slots i.filled.source-direct-spillover {
  background: linear-gradient(135deg, rgba(96,165,250,0.32), rgba(96,165,250,0.12));
  border-color: rgba(96,165,250,0.58);
  box-shadow: 0 0 14px rgba(96,165,250,0.14);
}

.pack-card.owned .pack-tree-slots i.filled.source-upline-spillover {
  background: linear-gradient(135deg, rgba(245,200,66,0.34), rgba(245,200,66,0.12));
  border-color: rgba(245,200,66,0.60);
  box-shadow: 0 0 14px rgba(245,200,66,0.14);
}

.pack-card.owned .pack-tree-slots i.filled.source-recycle {
  background: linear-gradient(135deg, rgba(251,113,133,0.34), rgba(251,113,133,0.12));
  border-color: rgba(251,113,133,0.60);
  box-shadow: 0 0 14px rgba(251,113,133,0.14);
}

.pack-tree-slot .recycle-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: rgba(251,113,133,0.72);
  box-shadow: 0 0 12px rgba(251,113,133,0.34);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.pack-card.locked .pack-tree-slots i {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.07);
}

.pack-live-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pack-live-stats div {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--border);
}

.pack-live-stats span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pack-live-stats strong {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 900;
}

.tree-board.compact {
  padding: 14px;
  gap: 12px;
}

.tree-board.compact .tree-root {
  width: min(100%, 220px);
  padding: 10px 14px;
}

.tree-board.compact .tree-slot {
  min-height: 68px;
}

.tree-bottom-stats.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pack-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pack-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.pack-amount {
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.pack-claim {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 12px;
}

.pack-bars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.pack-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  transition: background var(--transition);
}

.pack-bar.live {
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.pack-card p.muted {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #0f1218;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(249,115,22,0.25);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.buy-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(249,115,22,0.40);
}

.buy-btn:disabled {
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ── Owned Strip ────────────────────────────────────────────── */
.owned-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.owned-pill {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(245,200,66,0.08);
  border: 1px solid rgba(245,200,66,0.20);
  min-width: 130px;
}

.owned-pill span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.owned-pill strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--gold);
}

/* ── Matrix Tree ────────────────────────────────────────────── */
.matrix-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.matrix-stat {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  text-align: center;
}

.matrix-stat span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.matrix-stat strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.tree-grid {
  display: grid;
  gap: 16px;
}

.tree-board {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
}

.tree-root {
  width: min(100%, 260px);
  justify-self: center;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(245,200,66,0.16), rgba(249,115,22,0.10));
  border: 1px solid rgba(245,200,66,0.26);
  text-align: center;
}

.tree-root span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tree-root strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 15px;
  word-break: break-all;
}

.tree-row {
  display: grid;
  gap: 10px;
}

.tree-row.row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tree-row.row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tree-row.row-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }

.tree-slot {
  min-height: 86px;
  justify-content: center;
  text-align: center;
}

.tree-slot.empty {
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.025);
  border-style: dashed;
}

.empty-dots {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  gap: 7px;
  place-content: center;
}

.empty-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 10px currentColor;
}

.empty-dots i:nth-child(1) { background: var(--gold); color: var(--gold); }
.empty-dots i:nth-child(2) { background: var(--teal); color: var(--teal); }
.empty-dots i:nth-child(3) { background: var(--blue); color: var(--blue); }
.empty-dots i:nth-child(4) { background: var(--green); color: var(--green); }

.tree-bottom-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tree-level h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tree-level h4::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.tree-level:nth-child(2) h4::before { background: var(--teal); }
.tree-level:nth-child(3) h4::before { background: var(--blue); }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.slot {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  min-height: 76px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition);
}

.slot.filled {
  background: linear-gradient(135deg,
    rgba(45,212,191,0.14),
    rgba(96,165,250,0.10));
  border-color: rgba(45,212,191,0.28);
  box-shadow: 0 0 16px rgba(45,212,191,0.08);
}

.slot span {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
}

.slot.filled span { color: var(--teal); }

.slot small {
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.4;
}

.slot.filled small { color: var(--text-secondary); }

.inline-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-controls select {
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-width: 140px;
}

.inline-controls select option { background: #0c1a30; }

/* ── Claim Section ──────────────────────────────────────────── */
.claim-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0% 50%, rgba(45,212,191,0.12) 0%, transparent 50%),
    var(--bg-card);
  border: 1px solid rgba(45,212,191,0.18);
  margin-bottom: 16px;
}

.claim-amount-display {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.claim-amount-display .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  font-weight: 700;
}

.claim-amount-display .value {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
  color: var(--text-primary);
  line-height: 1.08;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.claim-amount-display .unit {
  font-size: 16px;
  color: var(--teal);
  font-weight: 700;
}

.claim-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.claim-actions .primary-btn,
.claim-actions .secondary-btn {
  min-width: 170px;
}

.claim-stats-grid {
  margin-top: 16px;
}

.claim-stats-grid .stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.claim-stats-grid .stat-card span,
.claim-stats-grid .stat-card strong {
  margin: 0;
}

/* ── Referral ───────────────────────────────────────────────── */
.referral-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  margin-top: 16px;
}

.referral-link-box span {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  word-break: break-all;
  line-height: 1.4;
}

.copy-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(245,200,66,0.12);
  border: 1px solid rgba(245,200,66,0.22);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.copy-btn:hover {
  background: rgba(245,200,66,0.20);
}

.copy-btn.copied {
  background: rgba(74,222,128,0.12);
  border-color: rgba(74,222,128,0.22);
  color: var(--green);
}

/* ── Forms ──────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.field input,
.form-grid input,
.entry-form input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.form-grid input:focus,
.entry-form input:focus {
  border-color: rgba(245,200,66,0.40);
  box-shadow: 0 0 0 3px rgba(245,200,66,0.08);
}

.field input::placeholder,
.form-grid input::placeholder,
.entry-form input::placeholder { color: var(--text-muted); }

.form-grid { display: grid; gap: 14px; margin: 18px 0; }

.form-grid label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.modal.hidden { display: none; }

.modal-card {
  width: min(100%, 540px);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg,
    rgba(12, 24, 48, 0.98) 0%,
    rgba(8, 16, 32, 0.98) 100%);
  border: 1px solid rgba(245,200,66,0.18);
  padding: 28px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.60), var(--glow-gold);
  animation: modal-in 0.22s cubic-bezier(.4,0,.2,1);
}

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

.modal-card .panel-header {
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── Notice / Callout ───────────────────────────────────────── */
.notice-panel {
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
    rgba(249,115,22,0.10) 0%,
    var(--bg-card) 60%);
  border: 1px solid rgba(249,115,22,0.22);
  margin-bottom: 20px;
}

.notice-panel h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.notice-panel p  { font-size: 13px; color: var(--text-muted); }

/* ── Section Divider ────────────────────────────────────────── */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-title .section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── Spotlight panel ────────────────────────────────────────── */
.spotlight-panel {
  background: linear-gradient(135deg,
    rgba(245,200,66,0.06) 0%,
    var(--bg-card) 50%);
  border-color: rgba(245,200,66,0.12);
}

/* ── Utility ─────────────────────────────────────────────────── */
.muted       { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.text-gold   { color: var(--gold); }
.text-teal   { color: var(--teal); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.fw-800      { font-weight: 800; }
.mt-4        { margin-top: 4px; }
.mt-8        { margin-top: 8px; }
.mt-16       { margin-top: 16px; }

/* Auth */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.auth-panel,
.auth-side {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 32px;
}

.auth-panel {
  background:
    radial-gradient(circle at 0% 0%, rgba(245,200,66,0.12) 0%, transparent 48%),
    var(--bg-card);
}

.auth-side {
  background:
    radial-gradient(circle at 100% 0%, rgba(45,212,191,0.14) 0%, transparent 48%),
    var(--bg-card);
}

.auth-brand {
  margin-bottom: 28px;
  padding-bottom: 22px;
}

.auth-panel h1,
.auth-side h2 {
  font-size: 32px;
  line-height: 1.18;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.auth-panel .primary-btn {
  margin-top: 22px;
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.signup-shell {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.signup-panel,
.signup-side {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 32px;
}

.signup-panel {
  background:
    radial-gradient(circle at 0% 0%, rgba(245,200,66,0.14) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(249,115,22,0.08) 0%, transparent 50%),
    var(--bg-card);
}

.signup-side {
  background:
    radial-gradient(circle at 100% 0%, rgba(45,212,191,0.14) 0%, transparent 50%),
    var(--bg-card);
}

.signup-panel h1,
.signup-side h2 {
  font-size: 32px;
  line-height: 1.18;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.signup-panel .entry-form {
  margin-top: 22px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-row          { grid-template-columns: repeat(2, 1fr); }
  .matrix-summary     { grid-template-columns: repeat(2, 1fr); }
  .tree-row.row-8     { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tree-bottom-stats  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .auth-shell         { grid-template-columns: 1fr; }
  .signup-shell       { grid-template-columns: 1fr; }
  .app-shell          { flex-direction: column; }
  .sidebar            {
    width: 100%;
    height: auto;
    min-height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
  }
  .brand              { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
  .nav                { flex-direction: row; flex: 1; flex-wrap: wrap; gap: 6px; }
  .nav-link           { padding: 8px 12px; font-size: 13px; }
  .wallet-card        { margin-top: 0; width: 100%; }
  .main-content       { padding: 20px; }
  .hero-grid          { grid-template-columns: 1fr; }
  .page-header        { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .stats-row          { grid-template-columns: repeat(2, 1fr); }
  .matrix-summary     { grid-template-columns: repeat(2, 1fr); }
  .packs-grid         { grid-template-columns: repeat(2, 1fr); }
  .main-content       { padding: 16px; }
  .page-header h1     { font-size: 24px; }
  .stat-value         { font-size: 20px; }
  .claim-amount-display .value { font-size: clamp(24px, 9vw, 32px); }
  .tree-row.row-4,
  .tree-row.row-8     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tree-bottom-stats  { grid-template-columns: 1fr; }
  .claim-hero         { flex-direction: column; align-items: stretch; padding: 20px; }
  .claim-actions      { justify-content: stretch; }
  .claim-actions .primary-btn,
  .claim-actions .secondary-btn { width: 100%; }
}

@media (max-width: 420px) {
  .packs-grid         { grid-template-columns: 1fr; }
  .slot-grid          { grid-template-columns: repeat(2, 1fr); }
}
/* Upgraded contract dashboard details */
.level-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.level-team-grid > div {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.035);
}
.level-team-grid span, .level-team-grid strong { display: block; }
.level-team-grid span { color: var(--text-muted); font-size: 12px; margin-bottom: 5px; }
.level-team-grid strong { color: var(--gold); font-size: 20px; }
.direct-users-block { margin-top: 20px; }
.direct-users-block h4 { margin: 0 0 10px; }
.address-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.address-list code { padding: 10px 12px; overflow: hidden; text-overflow: ellipsis; border-radius: 10px; background: rgba(255,255,255,0.035); color: var(--teal); }
.activity-list { display: grid; gap: 8px; }
.activity-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255,255,255,0.03); color: var(--text-primary); text-decoration: none; transition: all var(--transition); }
.activity-row:hover { border-color: rgba(45,212,191,0.4); background: rgba(45,212,191,0.05); transform: translateY(-1px); }
.activity-row > span:last-child { text-align: right; }
.activity-row strong, .activity-row small { display: block; }
.activity-row small { color: var(--text-muted); margin-top: 4px; font-size: 11px; }
@media (max-width: 640px) { .activity-row { align-items: flex-start; } .address-list { grid-template-columns: 1fr; } }
.team-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.team-total-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245,200,66,0.35);
  background: linear-gradient(135deg, rgba(245,200,66,0.14), rgba(249,115,22,0.06));
}
.team-total-card.direct {
  border-color: rgba(45,212,191,0.35);
  background: linear-gradient(135deg, rgba(45,212,191,0.14), rgba(96,165,250,0.06));
}
.team-total-card span, .team-total-card strong { display: block; }
.team-total-card span { color: var(--text-muted); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.team-total-card strong { color: var(--text-primary); font-size: clamp(26px, 4vw, 38px); line-height: 1; }
.income-overview-grid .stat-card:first-child { border-color: rgba(245,200,66,0.35); }
@media (max-width: 640px) { .team-summary-grid { grid-template-columns: 1fr 1fr; } }
.income-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.income-overview-grid .stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 108px;
  overflow: visible;
}
.income-overview-grid .stat-card span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.income-overview-grid .stat-card strong {
  color: var(--text-primary);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.income-overview-grid .platform-total-card {
  border-color: rgba(245,200,66,0.42);
  background: linear-gradient(135deg, rgba(245,200,66,0.14), rgba(249,115,22,0.06));
}
.income-overview-grid .platform-total-card strong {
  color: var(--gold);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 900;
}
.income-overview-grid .royalty-cap-card {
  border-color: rgba(245,200,66,0.35);
  background: linear-gradient(135deg, rgba(245,200,66,0.10), rgba(249,115,22,0.04));
}
@media (max-width: 520px) {
  .income-overview-grid { grid-template-columns: 1fr; }
  .income-overview-grid .stat-card { min-height: 92px; }
}
.status-card .info-row strong {
  max-width: 58%;
  text-align: right;
  overflow-wrap: anywhere;
}
.login-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-muted); font-size: 11px; font-weight: 800; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.user-id-login { margin-top: 0; }
.login-note { margin: 0; font-size: 11px; line-height: 1.5; }
.form-error { margin: 0; padding: 10px 12px; border: 1px solid rgba(251,113,133,0.35); border-radius: 10px; background: rgba(251,113,133,0.08); color: var(--red); font-size: 12px; }
.status-card .info-row a { color: var(--gold); text-decoration: none; }
.status-card .info-row a:hover { text-decoration: underline; }

.app-notice { position:fixed; bottom:20px; right:20px; left:20px; max-width:850px; margin:auto; z-index:10000; padding:18px; border:1px solid #ef6666; border-radius:12px; background:#281c22; color:#fff; box-shadow:0 8px 35px #0008; overflow-wrap:anywhere; max-height:35vh; overflow:auto; }
.app-notice.info { border-color:#55aaff; background:#172b40; }
.app-notice.success { border-color:#3dcb9a; background:#143328; }
.contract-warning { border:1px solid #e5ac49; }

/* Claim balances: labels above values prevent cramped mobile rows. */
.claim-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.claim-stats-grid .stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 18px;
}
.claim-stats-grid .stat-card > span {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
  text-align: left;
}
.claim-stats-grid .stat-card > strong {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: clamp(20px, 4vw, 26px);
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  overflow-x: auto;
}
@media (max-width: 520px) {
  .claim-stats-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Matrix viewer: compact neon board used on desktop and mobile. */
.matrix-viewer-panel {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(36, 126, 224, 0.72);
  background:
    radial-gradient(circle at 100% 0%, rgba(17, 108, 194, 0.13), transparent 38%),
    linear-gradient(145deg, rgba(5, 25, 45, 0.98), rgba(3, 18, 34, 0.98));
  box-shadow: inset 0 0 0 1px rgba(33, 103, 173, 0.08), 0 18px 50px rgba(0, 0, 0, 0.2);
}

.matrix-viewer-panel:hover { border-color: rgba(36, 126, 224, 0.9); }

.matrix-viewer-header {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(170px, 1.1fr);
  align-items: start;
  gap: clamp(16px, 4vw, 44px);
  margin-bottom: clamp(22px, 4vw, 38px);
}

.matrix-viewer-header h3 {
  max-width: 250px;
  font-size: clamp(29px, 5vw, 48px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.matrix-viewer-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.matrix-viewer-controls select {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid rgba(75, 125, 186, 0.62);
  border-radius: 20px;
  background: rgba(15, 39, 69, 0.86);
  font-size: clamp(17px, 2.8vw, 23px);
  font-weight: 800;
}

.matrix-viewer-controls .matrix-load-btn {
  min-width: 130px;
  min-height: 50px;
  align-self: flex-start;
  padding: 12px 30px;
  border: 1px solid rgba(16, 221, 213, 0.9);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(4, 172, 151, 0.92), rgba(26, 98, 220, 0.94));
  box-shadow: 0 0 20px rgba(21, 191, 214, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: clamp(16px, 2.5vw, 21px);
  font-weight: 900;
}

.matrix-viewer-controls .matrix-load-btn:hover {
  border-color: #39f4e8;
  background: linear-gradient(135deg, #08b69f, #2471e5);
  transform: translateY(-1px);
}

.matrix-viewer-panel .matrix-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2.3vw, 24px);
  margin-bottom: clamp(24px, 4vw, 42px);
}

.matrix-stat-card {
  min-width: 0;
  min-height: clamp(112px, 18vw, 168px);
  padding: clamp(15px, 2.6vw, 25px);
  display: flex;
  align-items: flex-start;
  gap: clamp(11px, 2vw, 20px);
  border: 1px solid rgba(35, 126, 217, 0.72);
  border-radius: clamp(18px, 3vw, 28px);
  background: linear-gradient(145deg, rgba(8, 30, 52, 0.92), rgba(4, 23, 42, 0.92));
  box-shadow: inset 0 0 18px rgba(17, 86, 153, 0.08);
}

.matrix-stat-icon {
  width: clamp(43px, 7vw, 64px);
  height: clamp(43px, 7vw, 64px);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.matrix-stat-icon svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.matrix-stat-reinvest .matrix-stat-icon { color: #17e4c2; background: rgba(3, 152, 132, 0.34); }
.matrix-stat-filled .matrix-stat-icon   { color: #21c8ff; background: rgba(0, 102, 199, 0.38); }
.matrix-stat-volume .matrix-stat-icon   { color: #a66dff; background: rgba(68, 32, 177, 0.38); }
.matrix-stat-created .matrix-stat-icon  { color: #ffc22b; background: rgba(162, 98, 0, 0.4); }

.matrix-stat-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.matrix-stat-copy span {
  color: #c0cfe3;
  font-size: clamp(15px, 2.6vw, 21px);
  font-weight: 700;
  line-height: 1.25;
}

.matrix-stat-copy strong {
  color: #fff;
  font-size: clamp(21px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.matrix-stat-created .matrix-stat-copy strong { font-size: clamp(15px, 2.8vw, 23px); }

.matrix-viewer-panel .tree-level h4 {
  margin-bottom: 16px;
  color: #8ca4bf;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 900;
}

.matrix-viewer-panel .tree-level h4::before {
  width: 13px;
  height: 13px;
  box-shadow: 0 0 13px rgba(245, 200, 66, 0.45);
}

.matrix-viewer-panel .slot-grid { gap: clamp(10px, 2vw, 20px); }

.matrix-viewer-panel .slot {
  min-height: 105px;
  padding: clamp(16px, 2.4vw, 24px);
  justify-content: center;
  gap: 12px;
  border-radius: clamp(17px, 2.8vw, 25px);
  border-color: rgba(33, 198, 184, 0.58);
  background: linear-gradient(145deg, rgba(8, 52, 68, 0.84), rgba(6, 31, 55, 0.9));
}

.matrix-viewer-panel .slot.filled {
  border-color: rgba(34, 223, 202, 0.78);
  box-shadow: inset 0 0 20px rgba(34, 223, 202, 0.06), 0 0 18px rgba(34, 223, 202, 0.06);
}

.matrix-viewer-panel .slot span { font-size: clamp(14px, 2.4vw, 20px); }
.matrix-viewer-panel .slot small { font-size: clamp(12px, 2vw, 16px); }

@media (max-width: 520px) {
  .matrix-viewer-panel { padding: 20px 16px; }
  .matrix-viewer-header { grid-template-columns: minmax(105px, 0.75fr) minmax(150px, 1.25fr); gap: 14px; }
  .matrix-viewer-header h3 { font-size: clamp(25px, 8vw, 32px); }
  .matrix-viewer-controls select { min-height: 48px; border-radius: 16px; }
  .matrix-viewer-controls .matrix-load-btn { min-width: 110px; min-height: 46px; padding: 10px 24px; border-radius: 16px; }
  .matrix-viewer-panel .matrix-summary { gap: 10px; }
  .matrix-stat-card { min-height: 118px; padding: 14px 12px; gap: 9px; border-radius: 18px; }
  .matrix-stat-icon { width: 40px; height: 40px; }
  .matrix-stat-copy span { font-size: 14px; }
  .matrix-stat-copy strong { font-size: 21px; }
  .matrix-stat-created .matrix-stat-copy strong { font-size: 13px; line-height: 1.35; }
  .matrix-viewer-panel .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix-viewer-panel .slot { min-height: 100px; padding: 15px; }
}

/* Wallet income cards: gold-led accents with readable mobile values. */
.dashboard-overview .hero-card.accent {
  border-color: rgba(245, 200, 66, 0.32);
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 200, 66, 0.16), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(28, 117, 190, 0.1), transparent 42%),
    var(--bg-card);
  box-shadow: inset 0 0 0 1px rgba(245, 200, 66, 0.035), var(--shadow-sm);
}

.dashboard-overview .hero-income-split {
  gap: 12px;
  margin-top: 20px;
}

.dashboard-overview .hero-income-split .income-mini-card {
  --income-rgb: 245, 200, 66;
  position: relative;
  min-width: 0;
  min-height: 112px;
  padding: 17px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(var(--income-rgb), 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--income-rgb), 0.12), transparent 52%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 20px rgba(var(--income-rgb), 0.035);
}

.dashboard-overview .hero-income-split .income-mini-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(var(--income-rgb)), transparent);
  opacity: 0.8;
}

.dashboard-overview .hero-income-split .income-teal { --income-rgb: 45, 212, 191; }
.dashboard-overview .hero-income-split .income-blue { --income-rgb: 72, 151, 255; }

.dashboard-overview .hero-income-split .income-mini-card span {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  color: rgb(var(--income-rgb));
  font-size: clamp(12px, 1.8vw, 14px);
  font-weight: 800;
  line-height: 1.35;
}

.dashboard-overview .hero-income-split .income-mini-card span::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 50%;
  background: rgb(var(--income-rgb));
  box-shadow: 0 0 10px rgba(var(--income-rgb), 0.7);
}

.dashboard-overview .hero-income-split .income-mini-card strong {
  display: block;
  max-width: 100%;
  color: #f8fbff;
  font-size: clamp(17px, 2.5vw, 23px);
  font-weight: 900;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: normal;
  word-break: normal;
}

.dashboard-overview .hero-income-split .income-gold strong { color: #ffe074; }

.dashboard-overview .hero-income-split .income-mini-card small {
  display: block;
  color: #94a6bb;
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-overview .hero-income-split .income-cap strong {
  font-size: clamp(16px, 2.3vw, 21px);
}

@media (max-width: 520px) {
  .dashboard-overview .hero-card.accent { padding: 22px 16px; }
  .dashboard-overview .hero-income-split { gap: 10px; }
  .dashboard-overview .hero-income-split .income-mini-card {
    min-height: 116px;
    padding: 15px 12px;
    border-radius: 17px;
  }
  .dashboard-overview .hero-income-split .income-mini-card span { font-size: 12px; }
  .dashboard-overview .hero-income-split .income-mini-card strong { font-size: clamp(15px, 4.2vw, 18px); }
  .dashboard-overview .hero-income-split .income-cap strong { font-size: 15px; }
}

/* Wallet status: connected-state card matching the gold/neon dashboard. */
.dashboard-overview .status-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(245, 200, 66, 0.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.16), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(245, 200, 66, 0.1), transparent 42%),
    var(--bg-card);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.025), var(--shadow-sm);
}

.dashboard-overview .status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.9;
}

.dashboard-overview .status-card .card-kicker {
  color: var(--gold);
  letter-spacing: 0.11em;
}

.wallet-state-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.wallet-state-title h3 {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.25;
}

.wallet-state-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.1), 0 0 16px rgba(45, 212, 191, 0.8);
}

.wallet-state-title.is-demo .wallet-state-dot {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(245, 200, 66, 0.1), 0 0 16px rgba(245, 200, 66, 0.75);
}

.dashboard-overview .status-card .wallet-state-message {
  margin: 0 0 18px;
  padding: 11px 13px;
  border-left: 3px solid rgba(245, 200, 66, 0.72);
  border-radius: 0 10px 10px 0;
  background: rgba(245, 200, 66, 0.055);
  font-size: 12px;
  line-height: 1.5;
}

.dashboard-overview .status-card .info-list {
  gap: 9px;
  margin-top: 0;
}

.dashboard-overview .status-card .info-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(105px, 1.15fr);
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 11px 13px;
  border-color: rgba(45, 212, 191, 0.16);
  border-radius: 13px;
  background: linear-gradient(100deg, rgba(45, 212, 191, 0.055), rgba(255, 255, 255, 0.025));
}

.dashboard-overview .status-card .info-row:nth-child(3n + 1) {
  border-color: rgba(245, 200, 66, 0.23);
  background: linear-gradient(100deg, rgba(245, 200, 66, 0.07), rgba(255, 255, 255, 0.025));
}

.dashboard-overview .status-card .info-row span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9eb0c6;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.dashboard-overview .status-card .info-row span::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(245, 200, 66, 0.55);
}

.dashboard-overview .status-card .info-row strong {
  width: 100%;
  max-width: 100%;
  color: #f8fbff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
  text-align: right;
  overflow-wrap: anywhere;
}

.dashboard-overview .status-card .info-row:nth-child(2) strong,
.dashboard-overview .status-card .info-row:nth-child(3) strong,
.dashboard-overview .status-card .info-row a {
  color: #ffe074;
}

@media (max-width: 520px) {
  .dashboard-overview .status-card { padding: 22px 16px; }
  .dashboard-overview .status-card .info-row {
    grid-template-columns: minmax(0, 0.9fr) minmax(105px, 1.1fr);
    gap: 8px;
    padding: 10px 11px;
  }
  .dashboard-overview .status-card .info-row span { font-size: 11px; }
  .dashboard-overview .status-card .info-row strong { font-size: 12px; }
}

/* Team overview: gold totals, teal directs and compact level cards. */
.team-overview-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px);
  border-color: rgba(245, 200, 66, 0.3);
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 200, 66, 0.11), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(45, 212, 191, 0.08), transparent 38%),
    var(--bg-card);
}

.team-overview-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.team-overview-panel .panel-header { margin-bottom: 22px; }
.team-overview-panel .panel-header h3 { color: #fff; font-size: clamp(21px, 3vw, 28px); font-weight: 900; }
.team-overview-panel .panel-header p { max-width: 580px; line-height: 1.5; }

.team-overview-panel .team-summary-grid {
  gap: clamp(10px, 2vw, 16px);
  margin-bottom: 22px;
}

.team-overview-panel .team-total-card {
  min-width: 0;
  min-height: 126px;
  padding: clamp(16px, 2.5vw, 24px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  border-color: rgba(245, 200, 66, 0.48);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 200, 66, 0.17), transparent 52%),
    linear-gradient(140deg, rgba(245, 200, 66, 0.11), rgba(249, 115, 22, 0.035));
  box-shadow: inset 0 0 22px rgba(245, 200, 66, 0.035);
}

.team-overview-panel .team-total-card.direct {
  border-color: rgba(45, 212, 191, 0.48);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.17), transparent 52%),
    linear-gradient(140deg, rgba(45, 212, 191, 0.1), rgba(59, 130, 246, 0.04));
}

.team-total-icon {
  width: clamp(46px, 7vw, 64px);
  height: clamp(46px, 7vw, 64px);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(245, 200, 66, 0.14);
  box-shadow: 0 0 18px rgba(245, 200, 66, 0.12);
}

.team-total-card.direct .team-total-icon {
  color: var(--teal);
  background: rgba(45, 212, 191, 0.14);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.12);
}

.team-total-icon svg {
  width: 55%;
  height: 55%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-total-copy { min-width: 0; }
.team-overview-panel .team-total-copy span {
  margin-bottom: 8px;
  color: #c4d0df;
  font-size: clamp(13px, 2vw, 17px);
  font-weight: 800;
}
.team-overview-panel .team-total-copy strong {
  color: #ffe074;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 900;
}
.team-overview-panel .direct .team-total-copy strong { color: #42e7cf; }

.team-overview-panel .level-team-grid {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 11px;
  margin-top: 0;
}

.team-overview-panel .team-level-card {
  min-width: 0;
  min-height: 82px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-color: rgba(69, 132, 205, 0.28);
  border-radius: 15px;
  background: linear-gradient(140deg, rgba(13, 49, 78, 0.72), rgba(255, 255, 255, 0.025));
}

.team-overview-panel .team-level-card:nth-child(3n + 1) { border-color: rgba(245, 200, 66, 0.27); }
.team-overview-panel .team-level-card:nth-child(3n + 2) { border-color: rgba(45, 212, 191, 0.27); }

.team-level-badge {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  border-radius: 12px;
  color: #ffd95c !important;
  background: rgba(245, 200, 66, 0.12);
  font-size: 12px !important;
  font-weight: 900;
}

.team-level-card > div { min-width: 0; }
.team-overview-panel .team-level-card small {
  display: block;
  margin-bottom: 4px;
  color: #8fa4bc;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.team-overview-panel .team-level-card strong { color: #fff; font-size: 22px; font-weight: 900; line-height: 1; }

.team-overview-panel .direct-users-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 200, 66, 0.14);
}

.direct-users-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.team-overview-panel .direct-users-heading h4 { margin: 0; color: #fff; font-size: 16px; }
.direct-users-heading > span {
  padding: 5px 10px;
  border: 1px solid rgba(245, 200, 66, 0.25);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(245, 200, 66, 0.08);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.team-overview-panel .address-list code {
  position: relative;
  padding: 12px 14px 12px 31px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  background: rgba(45, 212, 191, 0.045);
  color: #7de8d8;
}
.team-overview-panel .address-list code::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 9px rgba(45, 212, 191, 0.65);
  transform: translateY(-50%);
}

@media (max-width: 520px) {
  .team-overview-panel { padding: 22px 16px; }
  .team-overview-panel .team-summary-grid { gap: 10px; }
  .team-overview-panel .team-total-card { min-height: 116px; padding: 14px 11px; gap: 9px; border-radius: 18px; }
  .team-total-icon { width: 39px; height: 39px; }
  .team-overview-panel .team-total-copy span { font-size: 12px; }
  .team-overview-panel .team-total-copy strong { font-size: 29px; }
  .team-overview-panel .level-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .team-overview-panel .team-level-card { min-height: 76px; padding: 10px; gap: 8px; }
  .team-level-badge { width: 34px; height: 34px; }
}

/* Login onboarding: gold-led steps matching the dashboard theme. */
.auth-onboarding {
  position: relative;
  overflow: hidden;
  border-color: rgba(245, 200, 66, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 200, 66, 0.18), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(45, 212, 191, 0.09), transparent 45%),
    var(--bg-card);
  box-shadow: inset 0 0 0 1px rgba(245, 200, 66, 0.025), var(--shadow-md);
}

.auth-onboarding::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.95;
}

.auth-onboarding > .pill {
  padding: 7px 14px;
  border-color: rgba(245, 200, 66, 0.4);
  box-shadow: 0 0 18px rgba(245, 200, 66, 0.08);
  font-weight: 800;
}

.auth-onboarding h2 {
  margin: 16px 0 24px;
  color: #fff;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.14;
}

.auth-onboarding h2 > span {
  color: #ffe074;
  text-shadow: 0 0 24px rgba(245, 200, 66, 0.11);
}

.auth-onboarding .auth-steps {
  gap: 12px;
  margin-top: 0;
}

.auth-onboarding .auth-steps .info-row {
  min-height: 76px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  justify-content: initial;
  gap: 14px;
  border-color: rgba(245, 200, 66, 0.3);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 50%, rgba(245, 200, 66, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.auth-onboarding .auth-steps .info-row:nth-child(2) {
  border-color: rgba(45, 212, 191, 0.3);
  background:
    radial-gradient(circle at 0% 50%, rgba(45, 212, 191, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.auth-onboarding .auth-step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 200, 66, 0.38);
  border-radius: 13px;
  color: #ffe074;
  background: rgba(245, 200, 66, 0.12);
  box-shadow: 0 0 16px rgba(245, 200, 66, 0.09);
  font-size: 13px;
  font-weight: 900;
}

.auth-onboarding .auth-steps .info-row:nth-child(2) .auth-step-number {
  border-color: rgba(45, 212, 191, 0.38);
  color: #49e4cf;
  background: rgba(45, 212, 191, 0.12);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.09);
}

.auth-onboarding .auth-steps strong {
  min-width: 0;
  color: #f8fbff;
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 850;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .auth-page { padding: 16px; }
  .auth-onboarding { padding: 25px 20px; }
  .auth-onboarding h2 { margin-bottom: 21px; font-size: clamp(31px, 10vw, 40px); }
  .auth-onboarding .auth-steps .info-row { min-height: 72px; padding: 12px; grid-template-columns: 40px minmax(0, 1fr); gap: 11px; }
  .auth-onboarding .auth-step-number { width: 38px; height: 38px; border-radius: 11px; }
  .auth-onboarding .auth-steps strong { font-size: 15px; }
}

/* Full-site maintenance gate. */
.maintenance-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(245, 200, 66, 0.13), transparent 34%),
    radial-gradient(circle at 85% 85%, rgba(45, 212, 191, 0.1), transparent 38%),
    #030b15;
}

.maintenance-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.maintenance-card {
  position: relative;
  width: min(100%, 720px);
  overflow: hidden;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(245, 200, 66, 0.4);
  border-radius: clamp(24px, 4vw, 38px);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.13), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(245, 200, 66, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(9, 28, 49, 0.98), rgba(5, 18, 34, 0.99));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.maintenance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--teal), transparent);
}

.maintenance-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: clamp(28px, 5vw, 46px);
}
.maintenance-brand .brand-mark { width: 52px; height: 52px; font-size: 24px; }
.maintenance-brand strong,
.maintenance-brand span { display: block; }
.maintenance-brand strong { color: #fff; font-size: 18px; font-weight: 900; }
.maintenance-brand span { margin-top: 3px; color: #8da1b9; font-size: 12px; font-weight: 650; }

.maintenance-badge {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 13px;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 999px;
  color: #5cebd6;
  background: rgba(45, 212, 191, 0.09);
  font-size: 12px;
  font-weight: 800;
}
.maintenance-badge i,
.maintenance-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.8);
}

.maintenance-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.maintenance-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 8vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.maintenance-card h1 span { color: #ffe074; }

.maintenance-copy {
  max-width: 600px;
  margin: 22px 0 28px;
  color: #a7b7ca;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.7;
}

.maintenance-progress {
  height: 9px;
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid rgba(245, 200, 66, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}
.maintenance-progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--teal));
  box-shadow: 0 0 18px rgba(245, 200, 66, 0.24);
  animation: maintenancePulse 2.2s ease-in-out infinite alternate;
}
@keyframes maintenancePulse { from { opacity: 0.7; } to { opacity: 1; filter: brightness(1.12); } }

.maintenance-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.maintenance-meta > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(245, 200, 66, 0.22);
  border-radius: 16px;
  background: rgba(245, 200, 66, 0.05);
}
.maintenance-meta > div:last-child { border-color: rgba(45, 212, 191, 0.22); background: rgba(45, 212, 191, 0.05); }
.maintenance-meta small,
.maintenance-meta strong { display: block; }
.maintenance-meta small { margin-bottom: 7px; color: #7f93ab; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.maintenance-meta strong { color: #ffe074; font-size: clamp(16px, 3vw, 21px); font-weight: 900; }
.maintenance-meta .maintenance-live { display: flex; align-items: center; gap: 8px; color: #58e8d3; }

.maintenance-note {
  margin: 22px 0 0;
  color: #71859c;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 520px) {
  .maintenance-shell { padding: 16px; }
  .maintenance-card { padding: 27px 20px; border-radius: 25px; }
  .maintenance-brand { margin-bottom: 29px; }
  .maintenance-brand .brand-mark { width: 46px; height: 46px; }
  .maintenance-card h1 { font-size: clamp(37px, 11.5vw, 50px); }
  .maintenance-copy { margin: 18px 0 24px; }
  .maintenance-meta { gap: 9px; }
  .maintenance-meta > div { padding: 13px 11px; border-radius: 14px; }
  .maintenance-meta strong { font-size: 15px; }
}
