:root {
  /* Surfaces — deep dark like METAFINX */
  --bg: #030508;
  --bg-soft: #0a1014;
  --bg-card: rgba(8, 16, 20, 0.72);
  --bg-card-alt: rgba(12, 24, 28, 0.65);
  --bg-glass: rgba(6, 12, 16, 0.82);

  /* Accents — neon teal / lime / cyan */
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --lime: #a3e635;
  --green: #34d399;
  --indigo: #818cf8;
  --violet: #a78bfa;
  --magenta: #e879f9;
  --orange: #fb923c;
  --accent: #34d399;
  --accent-bright: #6ee7b7;

  /* Borders */
  --border: rgba(52, 211, 153, 0.28);
  --border-light: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(34, 211, 238, 0.35);

  /* Text */
  --text: #f0fdf9;
  --text-secondary: #a7f3d0;
  --text-muted: #7da89a;

  /* Status */
  --success: #4ade80;
  --danger: #f87171;
  --warning: #fbbf24;

  /* Gradients — METAFINX-style neon */
  --gradient-primary: linear-gradient(135deg, #a3e635 0%, #34d399 38%, #22d3ee 72%, #2dd4bf 100%);
  --gradient-neon: linear-gradient(90deg, #bef264 0%, #34d399 45%, #22d3ee 100%);
  --gradient-green: linear-gradient(135deg, #84cc16 0%, #34d399 45%, #22d3ee 100%);
  --gradient-warm: linear-gradient(135deg, #a3e635 0%, #22d3ee 55%, #fb923c 100%);
  --gradient-card: linear-gradient(145deg, rgba(52, 211, 153, 0.1) 0%, rgba(34, 211, 238, 0.05) 50%, rgba(163, 230, 53, 0.04) 100%);
  --gradient-hero: radial-gradient(ellipse 80% 55% at 50% -5%, rgba(52, 211, 153, 0.28), transparent 58%);
  --gradient-orb-1: radial-gradient(circle at 20% 15%, rgba(163, 230, 53, 0.16), transparent 38%);
  --gradient-orb-2: radial-gradient(circle at 82% 68%, rgba(34, 211, 238, 0.18), transparent 42%);
  --gradient-orb-3: radial-gradient(circle at 50% 105%, rgba(52, 211, 153, 0.14), transparent 48%);
  --gradient-orb-4: radial-gradient(circle at 50% 35%, rgba(45, 212, 191, 0.08), transparent 55%);

  /* Layout */
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 16px 48px -12px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 48px -10px rgba(52, 211, 153, 0.55);
  --shadow-green: 0 4px 28px rgba(52, 211, 153, 0.45), 0 0 40px -8px rgba(34, 211, 238, 0.25);
  --shadow-green-hover: 0 8px 36px rgba(52, 211, 153, 0.55), 0 0 56px -6px rgba(34, 211, 238, 0.35);
  --glow-text: 0 0 40px rgba(52, 211, 153, 0.35), 0 0 80px rgba(34, 211, 238, 0.15);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    var(--gradient-orb-1),
    var(--gradient-orb-2),
    var(--gradient-orb-3),
    var(--gradient-orb-4),
    var(--gradient-hero);
  pointer-events: none;
  z-index: 0;
  animation: meshPulse 12s ease-in-out infinite alternate;
}

@keyframes meshPulse {
  0% { opacity: 0.92; }
  100% { opacity: 1; }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(3, 5, 8, 0.5) 100%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(52, 211, 153, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Nav ─── */
nav {
  position: relative;
  z-index: 50;
  padding: 12px 12px 0;
}

@media (min-width: 769px) {
  nav {
    position: sticky;
    top: 12px;
    padding: 0 16px;
  }
}

.nav-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(8, 18, 22, 0.92), rgba(6, 12, 16, 0.88));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.06) inset,
    0 8px 32px -8px rgba(0, 0, 0, 0.6),
    0 0 40px -12px rgba(52, 211, 153, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}

.brand:hover { opacity: 0.92; }

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              var(--gradient-neon) border-box;
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.4);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-accent {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(52, 211, 153, 0.35));
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.network-pill,
.pill {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.pill--ok,
.network-pill.pill--ok {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

/* ─── Main ─── */
.main {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── Hero ─── */
.hero {
  padding: 12px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 280px);
  gap: 32px 40px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

.hero-eyebrow-icon {
  font-size: 0.6rem;
  color: var(--lime);
}

.hero-title {
  font-family: var(--font-display);
  line-height: 1.08;
  margin-bottom: 16px;
}

.hero-title-line {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(var(--glow-text));
}

.hero-title-accent {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.1rem, 5.5vw, 3.15rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  text-transform: none;
  background: linear-gradient(90deg, #34d399 0%, #22d3ee 50%, #a3e635 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.3));
  margin-top: 4px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: var(--text-base);
  max-width: 480px;
  margin: 0 0 24px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-bottom: 20px;
}

.hero-cta {
  text-decoration: none;
  padding: 14px 28px;
  font-size: 1rem;
}

.hero-cta-link {
  color: var(--teal);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.hero-cta-link:hover {
  color: var(--lime);
  text-shadow: 0 0 16px rgba(163, 230, 53, 0.45);
}

.hero-disclaimer {
  font-size: 0.75rem;
  color: rgba(139, 156, 184, 0.75);
  max-width: 420px;
  line-height: 1.5;
  margin: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-ring::before {
  content: '';
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.4) 0%, rgba(34, 211, 238, 0.15) 40%, transparent 70%);
  filter: blur(10px);
  animation: heroGlow 4s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  width: clamp(160px, 22vw, 240px);
  height: clamp(160px, 22vw, 240px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              var(--gradient-neon) border-box;
  box-shadow:
    0 0 56px rgba(52, 211, 153, 0.55),
    0 0 120px rgba(34, 211, 238, 0.2);
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero--dashboard {
  padding: 20px 0 8px;
  text-align: center;
}

.hero-logo-ring--sm::before {
  inset: -12%;
}

.hero-logo--sm {
  width: 88px;
  height: 88px;
}

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

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-stat {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.06), transparent 60%);
  pointer-events: none;
}

.hero-stat:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 24px -8px rgba(129, 140, 248, 0.25);
}

.hero-stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.hero-stat-value.accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-sub {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Plan section ─── */
.plan-card { padding: 22px; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
}

@media (min-width: 600px) {
  .plan-grid { grid-template-columns: repeat(4, 1fr); }
}

.plan-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.plan-item-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.plan-ranks-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plan-ranks-note {
  font-size: 0.875rem;
  margin-bottom: 14px;
}

.plan-ranks-wrap {
  overflow-x: auto;
  border: 1px solid rgba(52, 211, 153, 0.16);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: inset 0 0 24px -12px rgba(34, 211, 238, 0.08);
}

.plan-ranks {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.plan-ranks th,
.plan-ranks td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.plan-ranks th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.1), rgba(8, 16, 20, 0.5));
}

.plan-ranks tr:last-child td { border-bottom: none; }

.plan-ranks td:last-child,
.plan-ranks th:last-child { text-align: right; }

.plan-rules {
  font-size: 0.875rem;
  line-height: 1.65;
  padding-left: 1.1rem;
  margin: 0;
}

.plan-rules li + li { margin-top: 6px; }

/* ─── Stat cards grid ─── */
.stat-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.stat-grid--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.stat-card {
  position: relative;
  text-align: center;
  background: linear-gradient(160deg, rgba(8, 20, 24, 0.9), rgba(6, 14, 18, 0.8));
  border: 1px solid rgba(52, 211, 153, 0.16);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), transparent 55%);
  pointer-events: none;
}

.stat-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 32px -8px rgba(52, 211, 153, 0.35);
  transform: translateY(-1px);
}

.stat-card--highlight {
  border-color: rgba(129, 140, 248, 0.25);
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.12), rgba(34, 211, 238, 0.06));
}

.stat-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.stat-card-value.accent {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(52, 211, 153, 0.3));
}

.stat-card-sub {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-card-value.stat-row__value--up,
.hero-stat-value.stat-row__value--up,
.stat-row__value--up { color: var(--success); -webkit-text-fill-color: var(--success); }
.stat-card-value.stat-row__value--down,
.hero-stat-value.stat-row__value--down,
.stat-row__value--down { color: var(--danger); -webkit-text-fill-color: var(--danger); }
.stat-card-value.stat-row__value--neutral,
.hero-stat-value.stat-row__value--neutral,
.stat-row__value--neutral { color: var(--text-secondary); -webkit-text-fill-color: var(--text-secondary); }

/* Card spacing helpers */
.card .btn-block + .btn-block { margin-top: 12px; }

.divider {
  height: 1px;
  background: var(--border-light);
  margin: 20px 0;
}

.ref-box label {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.profile-subsection {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.profile-subsection h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.profile-subsection .rank-list,
.profile-subsection .direct-list {
  margin-top: 14px;
}

/* Profile stats grid */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.profile-stat-value.accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-stat-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

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

/* Admin dashboard */
.admin-badge {
  background: rgba(232, 121, 249, 0.15);
  border-color: rgba(232, 121, 249, 0.35);
  color: #e879f9;
}

.admin-card .btn-block + .btn-block {
  margin-top: 0;
}

.admin-section-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

@media (min-width: 600px) {
  .admin-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.admin-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}

.admin-stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.admin-stat-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.admin-stat-value.ok { color: var(--success); }
.admin-stat-value.pending { color: var(--warning); }
.admin-stat-value.accent {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.section-header--compact {
  margin-bottom: 12px;
}

.section-header--compact h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

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

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(52, 211, 153, 0.25));
  margin-bottom: 4px;
}

.section-header p {
  font-size: var(--text-base);
  color: var(--text-muted);
}

.count-pill {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: var(--accent-bright);
  flex-shrink: 0;
}

/* ─── Cards ─── */
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(8, 20, 24, 0.85) 0%, rgba(6, 14, 18, 0.75) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(52, 211, 153, 0.14);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow:
    var(--shadow),
    0 0 32px -16px rgba(34, 211, 238, 0.12);
  margin-bottom: 8px;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(163, 230, 53, 0.6), rgba(34, 211, 238, 0.5), rgba(52, 211, 153, 0.4), transparent);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(52, 211, 153, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

/* Info grid */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.info-cell:last-child { border-bottom: none; padding-bottom: 0; }
.info-cell:first-child { padding-top: 0; }

.info-label {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-muted);
}

.info-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

/* ─── Forms ─── */
.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input, .select {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-lg);
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus, .select:focus {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12), 0 0 24px -4px rgba(34, 211, 238, 0.2);
}

.select { cursor: pointer; }

/* Account select — gradient frame + custom chevron */
.field--account-select {
  margin-bottom: 20px;
}

.account-select-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.account-select-label-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  color: #022c22;
  background: var(--gradient-green);
  box-shadow: 0 0 18px -4px rgba(52, 211, 153, 0.65);
}

.account-select-label-icon--sell {
  background: linear-gradient(135deg, #22d3ee 0%, #34d399 100%);
  box-shadow: 0 0 18px -4px rgba(34, 211, 238, 0.55);
}

.account-select-label-icon--ref {
  background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 55%, #34d399 100%);
  box-shadow: 0 0 18px -4px rgba(167, 139, 250, 0.45);
  font-size: 1rem;
}

.account-select-wrap {
  position: relative;
  border-radius: calc(var(--radius-sm) + 3px);
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(163, 230, 53, 0.75) 0%,
    rgba(52, 211, 153, 0.55) 42%,
    rgba(34, 211, 238, 0.65) 100%
  );
  box-shadow:
    0 0 28px -10px rgba(52, 211, 153, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.2s, transform 0.2s, filter 0.2s;
}

.account-select-wrap--sell {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.7) 0%, rgba(52, 211, 153, 0.6) 100%);
  box-shadow: 0 0 28px -10px rgba(34, 211, 238, 0.45);
}

.account-select-wrap--ref {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.65) 0%, rgba(34, 211, 238, 0.55) 55%, rgba(52, 211, 153, 0.5) 100%);
  box-shadow: 0 0 28px -10px rgba(167, 139, 250, 0.4);
}

.account-select-wrap:hover {
  filter: brightness(1.06);
}

.account-select-wrap:focus-within {
  box-shadow:
    0 0 36px -6px rgba(34, 211, 238, 0.55),
    0 0 0 1px rgba(52, 211, 153, 0.35);
  transform: translateY(-1px);
}

.account-select-wrap:has(.account-select:disabled) {
  opacity: 0.62;
  filter: grayscale(0.15);
  transform: none;
  box-shadow: none;
}

.account-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  border: none !important;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(5, 14, 18, 0.98) 0%, rgba(8, 22, 28, 0.96) 100%) !important;
  padding: 16px 54px 16px 18px !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background 0.2s, color 0.2s;
}

.account-select:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(52, 211, 153, 0.28) !important;
}

.account-select:disabled {
  cursor: not-allowed;
  color: var(--text-muted);
}

.account-select option {
  background: #071014;
  color: var(--text);
  font-weight: 600;
  padding: 12px;
}

.account-select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.32);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px -6px rgba(52, 211, 153, 0.45);
}

.account-select-wrap--sell .account-select-chevron {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow: 0 0 16px -6px rgba(34, 211, 238, 0.4);
}

.account-select-wrap--ref .account-select-chevron {
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.32);
  box-shadow: 0 0 16px -6px rgba(167, 139, 250, 0.35);
}

.account-select-chevron::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2.5px solid var(--accent-bright);
  border-bottom: 2.5px solid var(--accent-bright);
  transform: rotate(45deg) translate(-1px, -2px);
}

.account-select-wrap:focus-within .account-select-chevron::after {
  border-color: #6ee7b7;
}

@media (max-width: 480px) {
  .account-select {
    font-size: 1rem;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
}

/* ─── Chips ─── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.chip {
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: var(--text-base);
}

.chip span { color: var(--text-muted); margin-right: 6px; }
.chip strong {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* ─── Sell progress ─── */
.sell-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.sell-balance + .btn-block {
  margin-bottom: 10px;
}

.sell-balance-label {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-muted);
}

.sell-balance-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  background: var(--gradient-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sell-progress {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.sell-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: var(--text-base);
  margin-bottom: 10px;
}

.sell-progress-header span { color: var(--text-muted); font-weight: 600; }
.sell-progress-header strong { color: var(--accent-bright); }

.sell-progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.sell-progress-fill {
  height: 100%;
  background: var(--gradient-neon);
  border-radius: 999px;
  transition: width 0.4s ease;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.55);
}

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

.sell-cap-row {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
}

.sell-cap-row--active {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
}

.sell-cap-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.sell-cap-row-head span { color: var(--text-muted); font-weight: 600; }
.sell-cap-row-head strong { color: var(--accent-bright); font-size: 0.875rem; }

.sell-progress-bar--sm { height: 6px; }

/* ─── Action blocks ─── */
.action-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.action-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  transition: border-color 0.2s;
}

.action-block:hover {
  border-color: rgba(129, 140, 248, 0.2);
}

.action-block h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.ref-box { margin-top: 4px; }

.ref-box label {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

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

.ref-row .input { flex: 1; min-width: 180px; }

/* Claim stats grid */
.claim-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.claim-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}

.claim-stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.claim-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text);
}

.claim-stat-value.accent {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pending mint box */
.pending-mint-box {
  background: var(--gradient-card);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: var(--radius-sm);
  padding: 16px 16px 14px;
  margin: 12px 0 16px;
  box-shadow: var(--shadow-glow);
}

.pending-mint-box.needs-directs {
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 28px -10px rgba(251, 191, 36, 0.35);
}

.pending-mint-box.is-ready {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 32px -8px rgba(74, 222, 128, 0.45);
}

.pending-mint-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.pending-mint-col {
  flex: 1;
  text-align: center;
  padding: 4px 8px;
}

.pending-mint-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

.pending-mint-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.pending-mint-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pending-mint-value.is-met {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pending-mint-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin: 14px 0 10px;
}

.pending-mint-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  transition: width 0.35s ease;
}

.pending-mint-bar-fill.is-met {
  background: linear-gradient(90deg, #34d399, #22d3ee);
}

.pending-mint-status {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pending-mint-note {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Claim countdown box */
.claim-timer-box {
  text-align: center;
  background: var(--gradient-card);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: var(--radius-sm);
  padding: 20px 18px 18px;
  margin: 16px 0 18px;
  box-shadow: var(--shadow-glow);
}

.claim-timer-box.is-ready {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 32px -8px rgba(74, 222, 128, 0.45);
}

.claim-timer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.claim-timer-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.claim-timer-at {
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 4px 10px;
}

.claim-timer-countdown {
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 14px;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(52, 211, 153, 0.35));
}

.claim-timer-box.is-ready .claim-timer-countdown {
  background: linear-gradient(135deg, #4ade80 0%, #34d399 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.45));
}

.claim-timer-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.claim-timer-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-neon);
  border-radius: 999px;
  transition: width 1s linear;
}

.claim-timer-box.is-ready .claim-timer-progress-fill {
  background: linear-gradient(90deg, #4ade80 0%, #34d399 100%);
}

.claim-timer-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.claim-timer-box.is-ready .claim-timer-sub {
  color: var(--success);
  font-weight: 600;
}

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

  .claim-timer-top {
    flex-direction: column;
    align-items: center;
  }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-primary:not(:disabled),
.btn-secondary:not(:disabled),
.btn--gold:not(:disabled),
.btn--outline:not(:disabled) {
  background: var(--gradient-green);
  color: #022c22;
  border: none;
  box-shadow: var(--shadow-green);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled),
.btn--gold:hover:not(:disabled),
.btn--outline:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-green-hover);
  filter: brightness(1.06);
}

.btn-primary,
.btn--gold {
  color: #022c22;
}

.btn-secondary,
.btn--outline {
  background: rgba(52, 211, 153, 0.06);
  color: var(--accent-bright);
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 0 20px -8px rgba(34, 211, 238, 0.15);
}

.btn-secondary:hover:not(:disabled),
.btn--outline:hover:not(:disabled) {
  background: var(--gradient-green);
  color: #052e16;
  border: none;
}

.btn-ghost:not(:disabled) {
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.btn-ghost,
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.btn-ghost:hover:not(:disabled),
.btn--ghost:hover:not(:disabled) {
  background: var(--gradient-green);
  border-color: transparent;
  color: #052e16;
}

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

.btn.btn--loading {
  cursor: wait;
  opacity: 0.9;
}

/* ─── Rank ladder ─── */
.rank-list,
.rank-ladder {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}

.rank-item--active {
  border-color: rgba(129, 140, 248, 0.45);
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.15), rgba(34, 211, 238, 0.08));
  box-shadow: 0 0 24px -8px rgba(129, 140, 248, 0.3);
}

.rank-item__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
}

.rank-item__team {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-top: 2px;
}

.rank-item__mint {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: var(--text-lg);
  font-weight: 700;
  white-space: nowrap;
}

/* ─── Directs ─── */
.direct-list,
.directs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.direct-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.direct-item__id {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: var(--text-lg);
}

/* ─── Utilities ─── */
.muted {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.5;
}

.highlight,
.highlight-text {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: var(--text-lg);
  margin: 10px 0;
  filter: drop-shadow(0 0 12px rgba(52, 211, 153, 0.25));
}

.empty-msg,
.empty {
  text-align: center;
  padding: 20px;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.mt-3 { margin-top: 12px; }
.hidden { display: none !important; }

/* ─── Footer ─── */
footer,
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 20px 36px;
  color: var(--text-muted);
  font-size: var(--text-base);
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-contract {
  font-size: 0.8rem;
  opacity: 0.85;
}

footer a,
.footer__link {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover,
.footer__link:hover { opacity: 0.85; }

.visitor-map {
  max-width: 200px;
  margin: 16px auto 0;
  overflow: hidden;
  line-height: 0;
}

.visitor-map img,
.visitor-map iframe,
.visitor-map a,
#mapmyvisitors-widget {
  max-width: 200px !important;
  width: 100% !important;
  height: auto !important;
  display: inline-block;
}

/* ─── Toast & overlay ─── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 13, 31, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 1000;
  max-width: 92vw;
  font-size: var(--text-base);
  font-weight: 600;
}

.toast.hidden { display: none; }
.toast--error { border-color: rgba(248, 113, 113, 0.5); color: #fca5a5; }
.toast--success { border-color: rgba(52, 211, 153, 0.5); color: #6ee7b7; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 20, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  gap: 18px;
}

.overlay.hidden { display: none; }
.overlay p { font-size: var(--text-lg); font-weight: 600; }

.spinner-lg,
.spinner {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--cyan);
  border-right-color: var(--violet);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-content {
    text-align: center;
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-sub,
  .hero-disclaimer {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-logo {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius);
  }

  .nav-right { justify-content: space-between; }
  .nav-right .btn-primary { flex: 1; }
  .hero-stat-value { font-size: var(--text-xl); }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Unity team view — level-wise */
.team-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.team-total {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.18);
}
.team-total--green {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}
.team-total--red {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}
.team-total-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted, #8b9bb8);
  margin-bottom: 4px;
}
.team-total-value {
  font-size: 1.4rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}
.team-total--green .team-total-value { color: #34d399; }
.team-total--red .team-total-value { color: #f87171; }

.team-levels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.team-level {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0,0,0,0.12);
}
.team-level-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.team-level-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}
.team-level-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
}
.team-level-count {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
}
.team-level-count.green {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
}
.team-level-count.red {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
}
.team-level-count.muted { color: var(--muted, #8b9bb8); }
.team-level-empty {
  margin: 0;
  font-size: 0.85rem;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
}
.id-chip {
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: "JetBrains Mono", monospace;
  border: 1px solid transparent;
}
.id-chip.red {
  background: rgba(248, 113, 113, 0.14);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
}
.id-chip.green {
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
}

