:root {
  --bg: #070b12;
  --bg-card: rgba(14, 20, 33, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf5;
  --text-muted: #8b9cb3;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.15);
  --accent-glow: rgba(0, 229, 160, 0.35);
  --warning: #ffb020;
  --danger: #ff5c7a;
  --info: #4dabf7;
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Outfit', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 { width: 500px; height: 500px; background: rgba(0, 229, 160, 0.12); top: -150px; right: -100px; }
.bg-glow-2 { width: 400px; height: 400px; background: rgba(77, 171, 247, 0.08); bottom: -100px; left: -100px; }

.header, .main, .footer { position: relative; z-index: 1; }

.header {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 18, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  padding-top: calc(0.75rem + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .header-inner { padding: 1rem 1.5rem; padding-top: calc(1rem + env(safe-area-inset-top)); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.35rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}

.brand-icon { color: var(--accent); font-size: 1.5rem; }
.accent { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .header-actions { gap: 0.75rem; }
}

.network-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 160, 0.25);
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  padding-bottom: calc(3rem + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .main { padding: 2rem 1.5rem 4rem; }
}

.hidden { display: none !important; }

/* Hero */
.hero { text-align: center; padding: 1.25rem 0 3rem; }
.hero-content { max-width: 920px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 160, 0.25);
  background: rgba(0, 230, 160, 0.06);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.accent-gold { color: #ffb020; }

.hero-lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

.hero-footnote {
  margin-top: 1.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.hero-earn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  text-align: left;
  margin-top: 0.5rem;
}

.earn-card {
  position: relative;
  padding: 1.35rem 1.35rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.earn-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.earn-roi {
  border-color: rgba(0, 230, 160, 0.28);
  box-shadow: 0 8px 40px rgba(0, 230, 160, 0.08);
}

.earn-roi::before {
  background: radial-gradient(ellipse at top right, rgba(0, 230, 160, 0.12), transparent 55%);
}

.earn-team {
  border-color: rgba(255, 176, 32, 0.28);
  box-shadow: 0 8px 40px rgba(255, 176, 32, 0.08);
}

.earn-team::before {
  background: radial-gradient(ellipse at top right, rgba(255, 176, 32, 0.12), transparent 55%);
}

.earn-card:hover {
  transform: translateY(-3px);
}

.earn-roi:hover { box-shadow: 0 12px 48px rgba(0, 230, 160, 0.14); }
.earn-team:hover { box-shadow: 0 12px 48px rgba(255, 176, 32, 0.14); }

.earn-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  position: relative;
}

.earn-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.earn-roi .earn-icon { color: var(--accent); }
.earn-team .earn-icon { color: #ffb020; }

.earn-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(0, 230, 160, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 230, 160, 0.2);
}

.earn-badge-gold {
  background: rgba(255, 176, 32, 0.12);
  color: #ffb020;
  border-color: rgba(255, 176, 32, 0.25);
}

.earn-headline {
  position: relative;
  margin: 0 0 0.5rem;
  line-height: 1;
}

.earn-pct {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.earn-dollar {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffb020;
  letter-spacing: -0.03em;
}

.earn-period {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.15rem;
}

.earn-sub {
  position: relative;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1rem;
}

.earn-sub strong { color: var(--text); font-weight: 600; }

.earn-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.earn-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.45;
}

.earn-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-size: 0.72rem;
  font-weight: 700;
}

.earn-roi .earn-list li::before { color: var(--accent); }
.earn-team .earn-list li::before { color: #ffb020; }

.earn-list strong { color: var(--text); font-weight: 600; }

.hero-desc { color: var(--text-muted); font-size: 1.1rem; max-width: 540px; margin: 0 auto 2.5rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.hero-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  min-width: 120px;
}
.hero-stat .label { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-stat .value { font-size: 1.5rem; font-weight: 700; color: var(--accent); }

.home-join-wrap {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.home-join-top {
  margin-top: 0;
  margin-bottom: 2.5rem;
}

.hero-content {
  margin-top: 0;
}

.home-stats-bar {
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.home-stats-bar .dashboard-stat-box {
  min-height: auto;
}

.platform-stats {
  margin-top: 2rem;
}

.home-join-wrap .alerts { margin-bottom: 1rem; }

.home-join { text-align: left; }

.join-wallet-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.join-wallet-hint strong { color: var(--accent); }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.dashboard-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.1rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  min-height: 88px;
}

.dashboard-stat-box.highlight {
  border-color: rgba(0, 230, 160, 0.35);
  background: linear-gradient(180deg, rgba(0, 230, 160, 0.1) 0%, rgba(0, 230, 160, 0.03) 100%);
  box-shadow: 0 0 24px rgba(0, 230, 160, 0.08);
}

.dashboard-stat-box .label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.dashboard-stat-box .value {
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--text);
}

.dashboard-stat-box .value.accent {
  color: var(--accent);
  font-size: 1.45rem;
}

.wallet-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.wallet-info .label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.wallet-info .value, .wallet-info .mono { font-weight: 600; font-size: 1rem; }
.wallet-info .value.accent { color: var(--accent); font-size: 1.15rem; font-weight: 700; }
.wallet-bar .wallet-info { text-align: center; flex: 1; }
.mono { font-family: var(--mono); font-size: 0.85rem !important; }

/* Dashboard income strip (compact hero summary) */
.dash-income-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.dash-income-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.dash-income-roi {
  border-color: rgba(0, 230, 160, 0.22);
  background: linear-gradient(135deg, rgba(0, 230, 160, 0.07) 0%, transparent 100%);
}

.dash-income-team {
  border-color: rgba(255, 176, 32, 0.22);
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.07) 0%, transparent 100%);
}

.dash-income-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.dash-income-roi .dash-income-badge { color: var(--accent); }
.dash-income-team .dash-income-badge { color: #ffb020; }

.dash-income-main {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.dash-income-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.dash-income-num.gold { color: #ffb020; }

.dash-income-suffix {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dash-income-line {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Alerts */
.alerts { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: 1px solid;
}
.alert-info { background: rgba(77, 171, 247, 0.1); border-color: rgba(77, 171, 247, 0.3); color: #9ecef5; }
.alert-warn { background: rgba(255, 176, 32, 0.1); border-color: rgba(255, 176, 32, 0.3); color: #ffd080; }
.alert-success { background: var(--accent-dim); border-color: rgba(0, 229, 160, 0.3); color: var(--accent); }
.alert-danger { background: rgba(255, 92, 122, 0.1); border-color: rgba(255, 92, 122, 0.3); color: #ff9aad; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card { display: flex; gap: 1rem; align-items: flex-start; }
.stat-card .stat-body { flex: 1; min-width: 0; }
.stat-card .accrual-timer-box { width: 100%; }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.stat-icon.roi { background: var(--accent-dim); color: var(--accent); }
.stat-icon.cycle { background: rgba(77, 171, 247, 0.15); color: var(--info); }
.stat-icon.team { background: rgba(255, 176, 32, 0.15); color: var(--warning); }
.stat-icon.directs { background: rgba(180, 130, 255, 0.15); color: #c4a0ff; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); display: block; }
.stat-value { font-size: 1.4rem; font-weight: 700; display: block; margin: 0.15rem 0; }
.stat-sub { font-size: 0.78rem; color: var(--text-muted); }

.accrual-timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(77, 171, 247, 0.3);
  background: linear-gradient(180deg, rgba(77, 171, 247, 0.14) 0%, rgba(77, 171, 247, 0.04) 100%);
  box-shadow: 0 0 20px rgba(77, 171, 247, 0.08);
  min-width: 140px;
}

.accrual-timer-box.counting {
  border-color: rgba(77, 171, 247, 0.45);
  box-shadow: 0 0 28px rgba(77, 171, 247, 0.12);
}

.accrual-timer-box.ready {
  border-color: rgba(0, 230, 160, 0.5);
  background: linear-gradient(180deg, rgba(0, 230, 160, 0.16) 0%, rgba(0, 230, 160, 0.05) 100%);
  box-shadow: 0 0 28px rgba(0, 230, 160, 0.14);
}

.accrual-timer-box.waiting {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.accrual-timer-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.accrual-timer-value {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: #4dabf7;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.accrual-timer-box.ready .accrual-timer-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.accrual-timer-box.waiting .accrual-timer-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #4dabf7);
  border-radius: 999px;
  transition: width 0.4s ease;
  width: 0%;
}

/* Actions */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.action-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.action-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }

.amount-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto 1rem;
  padding: 1.1rem 1.25rem;
  max-width: 220px;
  border-radius: 14px;
  border: 1px solid rgba(0, 230, 160, 0.35);
  background: linear-gradient(180deg, rgba(0, 230, 160, 0.12) 0%, rgba(0, 230, 160, 0.04) 100%);
  box-shadow: 0 0 24px rgba(0, 230, 160, 0.08);
}

.amount-highlight-team {
  border-color: rgba(255, 176, 32, 0.35);
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.12) 0%, rgba(255, 176, 32, 0.04) 100%);
  box-shadow: 0 0 24px rgba(255, 176, 32, 0.08);
}

.amount-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.amount-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.amount-highlight-team .amount-value {
  color: var(--warning);
}

.amount-highlight.has-balance {
  border-color: rgba(0, 230, 160, 0.55);
  box-shadow: 0 0 32px rgba(0, 230, 160, 0.15);
}

.amount-highlight-team.has-balance {
  border-color: rgba(255, 176, 32, 0.55);
  box-shadow: 0 0 32px rgba(255, 176, 32, 0.15);
}

.conditions {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.condition {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}
.condition.met { border-color: rgba(0, 229, 160, 0.25); color: #b8f5df; }
.condition.unmet { border-color: rgba(255, 92, 122, 0.2); color: #c8b8bc; }
.condition-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.condition.met .condition-icon { background: var(--accent-dim); color: var(--accent); }
.condition.unmet .condition-icon { background: rgba(255, 92, 122, 0.15); color: var(--danger); }

.input-group { margin-bottom: 1rem; }
.input-group label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.input-group input, .ref-link-row input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9rem;
}
.input-group input:focus, .ref-link-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-row .btn { flex: 1; min-width: 120px; }

.btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .btn { font-size: 0.9rem; padding: 0.75rem 1.25rem; }
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00c484);
  color: #041510;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-warning {
  background: linear-gradient(135deg, var(--warning), #e69500);
  color: #1a1000;
}

.referral-card { margin-bottom: 1.5rem; }
.referral-card h3 { margin-bottom: 0.5rem; }
.ref-link-row { display: flex; gap: 0.75rem; margin-top: 1rem; }
.ref-link-row input { flex: 1; }

/* Sections */
.section-card { margin-bottom: 1.5rem; }
.section-header { margin-bottom: 1.25rem; }
.section-header h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.section-header p { font-size: 0.85rem; color: var(--text-muted); }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.direct-cards { display: none; }

.direct-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.direct-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
}

.direct-card-row .dc-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font);
  flex-shrink: 0;
}

.direct-card-row .dc-value {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-align: right;
  word-break: break-all;
}

.direct-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.direct-card-header .dc-id {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}

.direct-cards {
  flex-direction: column;
  gap: 0.75rem;
}

.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--mono);
  font-size: 0.82rem;
}
.data-table .empty { text-align: center; color: var(--text-muted); font-family: var(--font); }
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font);
}
.badge-success { background: var(--accent-dim); color: var(--accent); }
.badge-danger { background: rgba(255, 92, 122, 0.15); color: var(--danger); }
.badge-muted { background: rgba(255,255,255,0.06); color: var(--text-muted); }

/* Matrix team — professional tree view */
.team-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .team-stats { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
}

.team-stat-pill {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  text-align: center;
}

.team-stat-pill .ts-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.team-stat-pill .ts-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.matrix-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.matrix-search-bar input {
  flex: 1 1 160px;
  min-width: 0;
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  font-family: var(--font);
  appearance: none;
  -webkit-appearance: none;
}

.matrix-search-bar input:focus {
  outline: none;
  border-color: rgba(0, 229, 160, 0.45);
  box-shadow: 0 0 0 2px rgba(0, 229, 160, 0.12);
}

.matrix-search-bar .btn {
  flex: 0 0 auto;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.matrix-view-label {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(77, 171, 247, 0.1);
  border: 1px solid rgba(77, 171, 247, 0.25);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.tree-node--root.tree-node--searched {
  border-color: rgba(77, 171, 247, 0.45);
  box-shadow: 0 4px 24px rgba(77, 171, 247, 0.12);
}

.matrix-tree {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

/* Binary tree diagram */
.tree-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tree-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tree-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.tree-dot.qualified { background: var(--accent); box-shadow: 0 0 8px rgba(0, 229, 160, 0.5); }
.tree-dot.pending { background: var(--warning); }
.tree-dot.inactive { background: var(--danger); }
.tree-dot.vacant { background: rgba(255, 255, 255, 0.15); border: 1px dashed var(--border); }

.binary-tree-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}

.binary-tree {
  display: inline-block;
  min-width: min(100%, 480px);
  width: max-content;
  margin: 0 auto;
  padding: 0 1rem;
}

.binary-tree,
.binary-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.binary-tree > ul {
  display: flex;
  justify-content: center;
}

.binary-tree ul ul {
  display: flex;
  justify-content: center;
  padding-top: 18px;
  position: relative;
}

.binary-tree li.tree-branch {
  position: relative;
  text-align: center;
  padding: 18px 2px 0;
  flex: 1 1 auto;
}

.binary-tree li.tree-branch::before,
.binary-tree li.tree-branch::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 18px;
  border-top: 2px solid rgba(0, 229, 160, 0.28);
}

.binary-tree li.tree-branch::before {
  right: 50%;
  border-right: 2px solid rgba(0, 229, 160, 0.28);
  border-radius: 0 8px 0 0;
}

.binary-tree li.tree-branch::after {
  left: 50%;
  border-left: 2px solid rgba(0, 229, 160, 0.28);
  border-radius: 8px 0 0 0;
}

.binary-tree li.tree-branch:first-child::before,
.binary-tree li.tree-branch:last-child::after {
  border: none;
}

.binary-tree > ul > li.tree-branch::before,
.binary-tree > ul > li.tree-branch::after {
  border: none;
}

.binary-tree ul ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 18px;
  border-left: 2px solid rgba(0, 229, 160, 0.28);
  transform: translateX(-50%);
}

.tree-node {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 46px;
  max-width: 54px;
  padding: 0.3rem 0.2rem 0.28rem;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  border-radius: 8px;
  vertical-align: top;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tree-node--root {
  min-width: 64px;
  max-width: 72px;
  padding: 0.4rem 0.35rem;
}

.tree-node--root.tree-node--qualified {
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.14), rgba(0, 229, 160, 0.05));
  border-color: rgba(0, 229, 160, 0.45);
  box-shadow: 0 4px 16px rgba(0, 229, 160, 0.12);
}

.tree-node--root.tree-node--pending {
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.14), rgba(255, 176, 32, 0.05));
  border-color: rgba(255, 176, 32, 0.45);
  box-shadow: 0 4px 16px rgba(255, 176, 32, 0.1);
}

.tree-node--root.tree-node--inactive {
  background: linear-gradient(135deg, rgba(255, 92, 122, 0.14), rgba(255, 92, 122, 0.05));
  border-color: rgba(255, 92, 122, 0.45);
  box-shadow: 0 4px 16px rgba(255, 92, 122, 0.1);
}

.tree-node--qualified {
  border-color: rgba(0, 229, 160, 0.5);
  box-shadow: 0 0 12px rgba(0, 229, 160, 0.1);
}

.tree-node--pending {
  border-color: rgba(255, 176, 32, 0.45);
  box-shadow: 0 0 12px rgba(255, 176, 32, 0.08);
}

.tree-node--inactive {
  border-color: rgba(255, 92, 122, 0.45);
  box-shadow: 0 0 12px rgba(255, 92, 122, 0.08);
  opacity: 0.92;
}

.tree-node--empty {
  border-style: dashed;
  opacity: 0.45;
  background: transparent;
}

.tree-node--d4 {
  min-width: 40px;
  max-width: 48px;
  padding: 0.25rem 0.15rem;
}

.tn-level {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.48rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.75;
  line-height: 1;
}

.tree-node--root .tn-level { display: none; }

.tn-id {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.tree-node--root .tn-id { font-size: 0.78rem; }

.tree-node--qualified .tn-id { color: var(--accent); }
.tree-node--pending .tn-id { color: var(--warning); }
.tree-node--inactive .tn-id { color: var(--danger); }
.tree-node--empty .tn-id { color: var(--text-muted); font-size: 0.62rem; }

.tn-status {
  font-size: 0.48rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.28rem;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}

.tn-status.qualified { background: var(--accent-dim); color: var(--accent); }
.tn-status.pending { background: rgba(255, 176, 32, 0.15); color: var(--warning); }
.tn-status.inactive { background: rgba(255, 92, 122, 0.12); color: var(--danger); }
.tn-status.vacant { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

.tree-scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
  letter-spacing: 0.02em;
}

@media (min-width: 900px) {
  .binary-tree {
    min-width: 520px;
  }

  .tree-node--d3,
  .tree-node--d4 {
    min-width: 42px;
    max-width: 50px;
  }
}

@media (max-width: 768px) {
  .tree-scroll-hint {
    display: block;
  }

  #matrixSection .section-header p {
    font-size: 0.82rem;
  }

  .binary-tree-scroll {
    margin: 0 -0.5rem;
    padding: 0.25rem 0 0.85rem;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 160, 0.35) transparent;
    mask-image: linear-gradient(
      90deg,
      transparent,
      #000 16px,
      #000 calc(100% - 16px),
      transparent
    );
  }

  .binary-tree-scroll::-webkit-scrollbar {
    height: 4px;
  }

  .binary-tree-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 160, 0.35);
    border-radius: 999px;
  }

  .binary-tree {
    min-width: 420px;
    padding: 0 0.35rem;
  }

  .binary-tree ul ul {
    padding-top: 14px;
  }

  .binary-tree li.tree-branch {
    padding: 14px 1px 0;
  }

  .binary-tree li.tree-branch::before,
  .binary-tree li.tree-branch::after {
    height: 14px;
  }

  .binary-tree ul ul::before {
    height: 14px;
  }

  .tree-node {
    min-width: 42px;
    max-width: 50px;
    padding: 0.28rem 0.18rem 0.25rem;
    border-radius: 7px;
  }

  .tree-node--root {
    min-width: 58px;
    max-width: 66px;
    padding: 0.35rem 0.3rem;
  }

  .tree-node--d4 {
    min-width: 36px;
    max-width: 44px;
  }

  .tn-id {
    font-size: 0.64rem;
  }

  .tn-status {
    font-size: 0.44rem;
    padding: 0.08rem 0.22rem;
  }

  .tree-legend {
    gap: 0.5rem 0.85rem;
    font-size: 0.68rem;
  }

  .team-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .matrix-search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .matrix-search-bar input {
    flex: 0 0 auto;
    width: 100%;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
  }

  .matrix-search-bar .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .binary-tree {
    min-width: 380px;
  }

  .tree-node--d4 {
    min-width: 34px;
    max-width: 40px;
  }
}

.matrix-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem;
}

.matrix-root-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.12), rgba(77, 171, 247, 0.08));
  border: 1px solid rgba(0, 229, 160, 0.35);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 229, 160, 0.1);
}

.matrix-root-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.matrix-root-info .root-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.matrix-root-info .root-id {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.matrix-connector {
  width: 2px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(0, 229, 160, 0.5), rgba(255, 255, 255, 0.1));
  border-radius: 2px;
}

.matrix-level-row {
  width: 100%;
  position: relative;
  padding: 1.25rem 0 1.5rem;
}

.matrix-level-row:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.level-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 0.5rem;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.level-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  flex: 1;
  min-width: 100px;
}

.level-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}

.level-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.level-tag.income { color: var(--warning); border-color: rgba(255, 176, 32, 0.25); }

.matrix-members {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.matrix-members.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 360px;
}

.matrix-members.cols-4 {
  grid-template-columns: repeat(2, 1fr);
}

.matrix-members.cols-8,
.matrix-members.cols-16 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 520px) {
  .matrix-members.cols-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 640px;
  }
  .matrix-members.cols-8 {
    grid-template-columns: repeat(4, 1fr);
  }
  .matrix-members.cols-16 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .matrix-members.cols-8 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 640px;
  }
  .matrix-members.cols-16 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 640px;
  }
}

.member-card {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0.75rem 0.65rem;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.member-card.active {
  border-color: rgba(0, 229, 160, 0.45);
  box-shadow: 0 0 20px rgba(0, 229, 160, 0.08);
}

.member-card.inactive {
  border-color: rgba(255, 176, 32, 0.25);
  opacity: 0.85;
}

.member-card.empty {
  border-style: dashed;
  opacity: 0.4;
  background: transparent;
}

.member-slot {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
}

.member-avatar {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.member-card.active .member-avatar {
  background: var(--accent-dim);
  color: var(--accent);
}

.member-card.inactive .member-avatar {
  background: rgba(255, 176, 32, 0.12);
  color: var(--warning);
}

.member-id {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.member-addr {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.3;
}

.member-status {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.member-status.on { background: var(--accent-dim); color: var(--accent); }
.member-status.off { background: rgba(255, 92, 122, 0.12); color: var(--danger); }
.member-status.vacant { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

@media (max-width: 519px) {
  .matrix-level-row { padding: 1rem 0 1.15rem; }
  .level-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .level-meta { margin-left: 0; width: 100%; }
  .member-card { padding: 0.65rem 0.5rem; }
  .member-avatar { width: 32px; height: 32px; font-size: 0.65rem; }
  .member-id { font-size: 0.78rem; }
  .member-addr { font-size: 0.6rem; }
}

.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
.footer a { color: var(--accent); text-decoration: none; }

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}
.toast {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
}
.toast.success { border-left: 3px solid var(--accent); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── Mobile (< 640px) ─── */
@media (max-width: 639px) {
  .brand { font-size: 1.15rem; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-icon { font-size: 1.25rem; }
  .network-badge { display: none; }
  #connectBtn {
    font-size: 0.8rem;
    padding: 0.6rem 0.85rem;
    min-height: 40px;
  }

  .hero { padding: 2rem 0 2.5rem; }
  .hero-earn-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .earn-pct, .earn-dollar { font-size: 2rem; }
  .hero-lead { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .hero-footnote { margin-top: 1.25rem; font-size: 0.72rem; }
  .hero-desc { font-size: 0.95rem; margin-bottom: 1.5rem; padding: 0 0.25rem; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    width: 100%;
  }
  .hero-stat {
    min-width: 0;
    padding: 0.85rem 1rem;
  }
  .hero-stat .value { font-size: 1.25rem; }

  .card { padding: 1.1rem; border-radius: 14px; }
  .dashboard-stats-bar {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .dashboard-stat-box {
    padding: 0.85rem 1rem;
    min-height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .dashboard-stat-box .label {
    margin-bottom: 0.35rem;
    text-align: center;
  }
  .dashboard-stat-box .value {
    text-align: center;
    font-size: 1.25rem;
  }
  .dashboard-stat-box .value.accent { font-size: 1.35rem; }
  .dash-income-strip { grid-template-columns: 1fr; gap: 0.55rem; }
  .dash-income-num { font-size: 1.1rem; }
  .wallet-bar { flex-direction: column; gap: 0.85rem; }
  .wallet-info { width: 100%; }
  .wallet-info .mono { word-break: break-all; font-size: 0.78rem !important; }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .stat-card { padding: 0; }
  .stat-value { font-size: 1.25rem; }

  .actions-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .action-card h3 { font-size: 1rem; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; min-width: 0; }

  .ref-link-row { flex-direction: column; }
  .ref-link-row .btn { width: 100%; }
  .ref-link-row input { font-size: 0.78rem; }

  .table-wrap.has-mobile-cards { overflow: visible; margin: 0; padding: 0; }
  .table-wrap.has-mobile-cards .data-table { display: none; }
  .table-wrap.has-mobile-cards .direct-cards { display: flex; }

  .section-header h3 { font-size: 1.05rem; }

  .footer {
    padding: 1.5rem 1rem;
    font-size: 0.8rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
  .footer a { word-break: break-all; }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    max-width: none;
  }

  .condition { font-size: 0.78rem; }
  .alert { font-size: 0.85rem; }
}

/* ─── Small phones (< 380px) ─── */
@media (max-width: 379px) {
  .header-inner { flex-wrap: wrap; }
  .header-actions { width: 100%; }
  #connectBtn { width: 100%; }
  .hero h1 { font-size: 1.85rem; }
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.05em; }
}

/* ─── Tablet (640px – 1023px) ─── */
@media (min-width: 640px) and (max-width: 1023px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .actions-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 0.85rem; }
}

/* ─── Desktop ─── */
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .actions-grid { grid-template-columns: repeat(2, 1fr); }
}
