/* ============================================================
   MINTORA MATRIX — 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);
}

.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); }

/* ── 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);
}

.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; }

.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.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-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: 22px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.03em;
}

.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-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;
}

.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: 42px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

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

/* ── 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; }

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

@media (max-width: 980px) {
  .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: 32px; }
}

@media (max-width: 420px) {
  .packs-grid         { grid-template-columns: 1fr; }
  .slot-grid          { grid-template-columns: repeat(2, 1fr); }
}