/* ═══════════════════════════════════════════════════════════════
   CRYPTOMINE PRO — DARK NEUMORPHISM STYLESHEET
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ───────────────────────────────────────────────
   Add this in <head>:
   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
*/

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
  --bg:          #07111F;
  --bg2:         #0B1628;
  --bg3:         #0E1C35;
  --card:        #0D1A2E;
  --card-raised: #0F1F38;
  --border:      #162340;
  --cyan:        #00E5FF;
  --teal:        #00FFC6;
  --red:         #FF4D6D;
  --yellow:      #FFD60A;
  --text:        #FFFFFF;
  --text-sec:    #8BA0C0;
  --text-dim:    #4A6080;
  --metal:       #1E2B3F;

  /* Neumorphic shadows */
  --shadow-out:  8px 8px 20px #020810, -4px -4px 12px #162340;
  --shadow-in:   inset 4px 4px 12px #020810, inset -4px -4px 10px #162340;
  --shadow-card: 12px 12px 30px #020810, -6px -6px 18px #132030;
  --shadow-btn:  4px 4px 12px #020810, -2px -2px 8px #162340;
  --shadow-btn-press: inset 4px 4px 10px #020810, inset -2px -2px 6px #162340;

  /* Glows */
  --glow-cyan:  0 0 20px rgba(0,229,255,0.35), 0 0 60px rgba(0,229,255,0.12);
  --glow-teal:  0 0 20px rgba(0,255,198,0.35), 0 0 60px rgba(0,255,198,0.12);
  --glow-red:   0 0 20px rgba(255,77,109,0.40), 0 0 40px rgba(255,77,109,0.15);

  --radius:     16px;
  --radius-sm:  10px;
  --radius-lg:  24px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--teal); }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, select { font-family: inherit; outline: none; }

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--metal); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ── Typography ────────────────────────────────────────────────── */
.font-orbitron { font-family: 'Orbitron', monospace; }

h1,h2,h3,h4 { font-family: 'Orbitron', monospace; line-height: 1.2; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  color: var(--text-sec);
  font-size: 1rem;
  margin-bottom: 3rem;
}

/* ── Container ────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── Section spacing ─────────────────────────────────────────── */
section { padding: 80px 0; }

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7,17,31,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(7,17,31,0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--glow-cyan);
}
.logo-text {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-sec);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--cyan); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.chain-badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chain-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
#connectBtn {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: var(--bg);
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 12px;
  box-shadow: var(--glow-cyan);
  transition: var(--transition);
  white-space: nowrap;
}
#connectBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,229,255,0.5), 0 0 80px rgba(0,229,255,0.2);
}
#connectBtn.connected {
  background: var(--card);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  box-shadow: none;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}
#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(0,229,255,0.1);
}
.hero-badge .dot { width:8px;height:8px;border-radius:50%;background:var(--cyan);box-shadow:0 0 8px var(--cyan);animation:pulse-dot 1.5s infinite; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-title .line1 { color: var(--text); display: block; }
.hero-title .line2 {
  display: block;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0,229,255,0.4));
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-sec);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: var(--bg);
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 14px;
  box-shadow: var(--glow-cyan);
  transition: var(--transition);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(0,229,255,0.55), 0 0 100px rgba(0,229,255,0.2);
}
.btn-secondary {
  background: var(--card);
  color: var(--text);
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-btn);
  transition: var(--transition);
}
.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,229,255,0.2);
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat .value {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════
   LIVE STATS BAR
   ═══════════════════════════════════════════════════════════════ */
#stats-bar {
  padding: 24px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.stats-track::-webkit-scrollbar { display: none; }
.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-out);
}
.stat-text .num {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
}
.stat-text .lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   CARDS / NEUMORPHIC BASE
   ═══════════════════════════════════════════════════════════════ */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(0,229,255,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(0,229,255,0.06);
}
.inset-panel {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-in);
  padding: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   MINING PLANS
   ═══════════════════════════════════════════════════════════════ */
#plans { background: var(--bg); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 1rem;
}
.plan-card {
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: var(--transition);
}
.plan-card:hover::before { opacity: 1; }
.plan-card.featured { border-color: rgba(0,229,255,0.4); }
.plan-card.featured::before { opacity: 1; }
.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(0,229,255,0.08);
}
.plan-card.plan-1 .plan-accent { background: linear-gradient(135deg, #00E5FF, #0090A0); }
.plan-card.plan-2 .plan-accent { background: linear-gradient(135deg, #00FFC6, #00A870); }
.plan-card.plan-3 .plan-accent { background: linear-gradient(135deg, #FFD60A, #FF8800); }

/* Mining rig SVG area */
.rig-area {
  height: 180px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.rig-area::after {
  content: '';
  position: absolute;
  bottom: -20px;
  width: 200px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(0,229,255,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.plan-card.plan-2 .rig-area::after { background: radial-gradient(ellipse, rgba(0,255,198,0.25) 0%, transparent 70%); }
.plan-card.plan-3 .rig-area::after { background: radial-gradient(ellipse, rgba(255,214,10,0.25) 0%, transparent 70%); }

.rig-svg { width: 130px; height: 130px; }

.plan-body { padding: 24px; }
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.plan-1 .plan-badge { background: rgba(0,229,255,0.12); color: var(--cyan); border:1px solid rgba(0,229,255,0.3); }
.plan-2 .plan-badge { background: rgba(0,255,198,0.12); color: var(--teal); border:1px solid rgba(0,255,198,0.3); }
.plan-3 .plan-badge { background: rgba(255,214,10,0.12); color: var(--yellow); border:1px solid rgba(255,214,10,0.3); }

.plan-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.plan-range {
  font-size: 0.85rem;
  color: var(--text-sec);
  margin-bottom: 20px;
}
.plan-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.plan-stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-in);
}
.plan-stat .ps-val {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 700;
}
.plan-1 .plan-stat .ps-val { color: var(--cyan); }
.plan-2 .plan-stat .ps-val { color: var(--teal); }
.plan-3 .plan-stat .ps-val { color: var(--yellow); }
.plan-stat .ps-lbl { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

.plan-roi {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.plan-roi .lbl { font-size: 0.82rem; color: var(--text-sec); }
.plan-roi .val {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
}
.plan-1 .plan-roi .val { color: var(--cyan); }
.plan-2 .plan-roi .val { color: var(--teal); }
.plan-3 .plan-roi .val { color: var(--yellow); }

.btn-plan {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition);
  box-shadow: var(--shadow-btn);
}
.plan-1 .btn-plan { background: linear-gradient(135deg, var(--cyan), #0095A8); color: var(--bg); box-shadow: var(--glow-cyan); }
.plan-2 .btn-plan { background: linear-gradient(135deg, var(--teal), #00A870); color: var(--bg); box-shadow: var(--glow-teal); }
.plan-3 .btn-plan { background: linear-gradient(135deg, var(--yellow), #FF8800); color: var(--bg); }
.btn-plan:hover { transform: translateY(-2px); filter: brightness(1.15); }
.btn-plan:active { transform: translateY(0); box-shadow: var(--shadow-btn-press); }

/* ═══════════════════════════════════════════════════════════════
   CALCULATOR
   ═══════════════════════════════════════════════════════════════ */
#calculator { background: var(--bg2); }
.calc-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 40px;
}
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-sec);
  font-weight: 600;
}
.input-group input, .input-group select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--text);
  box-shadow: var(--shadow-in);
  transition: var(--transition);
}
.input-group input:focus, .input-group select:focus {
  border-color: var(--cyan);
  box-shadow: var(--shadow-in), 0 0 0 3px rgba(0,229,255,0.1);
}
.input-group input::placeholder { color: var(--text-dim); }
.input-group select option { background: var(--card); }

.calc-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.calc-result-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-in);
  transition: var(--transition);
}
.calc-result-card.highlight {
  border-color: rgba(0,229,255,0.35);
  box-shadow: var(--shadow-in), 0 0 20px rgba(0,229,255,0.08);
}
.calc-result-card .cr-val {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 4px;
}
.calc-result-card .cr-lbl {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.calc-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD (wallet-gated)
   ═══════════════════════════════════════════════════════════════ */
#dashboard { background: var(--bg); }
.dashboard-connect-msg {
  text-align: center;
  padding: 60px 20px;
}
.dashboard-connect-msg .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}
.dashboard-connect-msg h3 {
  font-size: 1.4rem;
  color: var(--text-sec);
  margin-bottom: 1rem;
}
.dashboard-panel { display: none; }
.dashboard-panel.active { display: block; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}
.dash-card:hover { transform: translateY(-4px); border-color: rgba(0,229,255,0.2); }
.dash-card .dc-icon { font-size: 1.8rem; }
.dash-card .dc-val {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
}
.dash-card .dc-lbl { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.dash-card .dc-change { font-size: 0.8rem; color: var(--teal); }

.dash-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.btn-action {
  flex: 1;
  min-width: 120px;
  padding: 14px 20px;
  border-radius: 14px;
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-btn);
  transition: var(--transition);
}
.btn-action:hover { transform: translateY(-2px); }
.btn-claim { background: linear-gradient(135deg, var(--cyan), #0090A8); color: var(--bg); box-shadow: var(--glow-cyan); }
.btn-compound { background: linear-gradient(135deg, var(--teal), #00A870); color: var(--bg); box-shadow: var(--glow-teal); }
.btn-withdraw { background: var(--card); border: 1px solid var(--border); color: var(--text); }
.btn-withdraw:hover { border-color: var(--cyan); color: var(--cyan); }

.deposits-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.table-header h3 { font-size: 1rem; font-family: 'Orbitron', monospace; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { border-bottom: 1px solid var(--border); }
th {
  padding: 14px 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-align: left;
  white-space: nowrap;
}
td {
  padding: 16px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(22,35,64,0.5);
}
tbody tr:hover { background: rgba(14,28,53,0.6); }
tbody tr:last-child td { border-bottom: none; }
.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-active { background: rgba(0,255,198,0.12); color: var(--teal); border: 1px solid rgba(0,255,198,0.3); }
.badge-expired { background: rgba(74,96,128,0.2); color: var(--text-dim); border: 1px solid rgba(74,96,128,0.3); }

/* Progress bar */
.progress-bar {
  height: 6px;
  background: var(--bg2);
  border-radius: 3px;
  overflow: hidden;
  min-width: 80px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* ═══════════════════════════════════════════════════════════════
   REFERRAL
   ═══════════════════════════════════════════════════════════════ */
#referral { background: var(--bg2); }
.referral-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.ref-link-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.ref-link-card h3 { font-size: 1rem; margin-bottom: 6px; font-family: 'Orbitron', monospace; color: var(--cyan); }
.ref-link-card p { font-size: 0.85rem; color: var(--text-sec); margin-bottom: 16px; }
.ref-link-box {
  display: flex;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-in);
  align-items: center;
}
.ref-link-box input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-sec);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-copy {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: var(--bg);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
}
.btn-copy:hover { filter: brightness(1.1); transform: translateY(-1px); }

.ref-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.ref-mini-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-in);
}
.ref-mini-card .v { font-family: 'Orbitron', monospace; font-size: 1.2rem; font-weight: 700; color: var(--cyan); }
.ref-mini-card .l { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }

/* Referral levels table */
.ref-levels-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.ref-levels-card .table-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.level-row td:first-child { font-family: 'Orbitron', monospace; font-weight: 600; }
.level-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg2);
  border: 1px solid var(--border);
}
.level-1 .level-num { background: rgba(0,229,255,0.15); border-color: rgba(0,229,255,0.4); color: var(--cyan); }
.level-2 .level-num { background: rgba(0,255,198,0.15); border-color: rgba(0,255,198,0.4); color: var(--teal); }

/* ═══════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════ */
#faq { background: var(--bg); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.faq-item.open { border-color: rgba(0,229,255,0.25); }
.faq-q {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.faq-q:hover { color: var(--cyan); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { background: rgba(0,229,255,0.1); border-color: var(--cyan); color: var(--cyan); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }
.faq-a p { font-size: 0.9rem; color: var(--text-sec); line-height: 1.8; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.88rem; color: var(--text-sec); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-family: 'Orbitron', monospace; font-size: 0.85rem; color: var(--text); margin-bottom: 16px; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--text-sec); transition: var(--transition); }
.footer-col a:hover { color: var(--cyan); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: gap 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-dim); }
.footer-warning {
  font-size: 0.78rem;
  color: var(--red);
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,8,16,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 60px rgba(0,229,255,0.08);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.modal-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal-close {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-sec);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,77,109,0.1); border-color: var(--red); color: var(--red); }

/* Wallet options */
.wallet-options { display: flex; flex-direction: column; gap: 12px; }
.wallet-opt {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-out);
}
.wallet-opt:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,229,255,0.12);
  transform: translateX(4px);
}
.wallet-opt-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.wallet-opt-info { flex: 1; }
.wallet-opt-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.wallet-opt-sub { font-size: 0.78rem; color: var(--text-sec); }
.wallet-opt-arrow { color: var(--text-dim); transition: var(--transition); }
.wallet-opt:hover .wallet-opt-arrow { color: var(--cyan); transform: translateX(4px); }

/* Deposit modal */
.deposit-form { display: flex; flex-direction: column; gap: 16px; }
.plan-selector { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.plan-sel-btn {
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-sec);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.plan-sel-btn.active {
  border-color: var(--cyan);
  background: rgba(0,229,255,0.1);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,229,255,0.15);
}
.amount-input-wrap { position: relative; }
.amount-input-wrap input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 70px 16px 18px;
  font-size: 1.1rem;
  color: var(--text);
  box-shadow: var(--shadow-in);
  transition: var(--transition);
}
.amount-input-wrap input:focus { border-color: var(--cyan); }
.amount-suffix {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
}
.referrer-input {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text);
  box-shadow: var(--shadow-in);
  width: 100%;
  transition: var(--transition);
}
.referrer-input:focus { border-color: var(--cyan); }

/* TX Status Modal */
.tx-status { text-align: center; padding: 10px 0; }
.tx-spinner {
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tx-icon { font-size: 3.5rem; margin-bottom: 16px; }
.tx-title { font-family: 'Orbitron', monospace; font-size: 1.1rem; margin-bottom: 8px; }
.tx-msg { font-size: 0.88rem; color: var(--text-sec); }
.tx-hash {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  word-break: break-all;
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  min-width: 280px;
  max-width: 380px;
  animation: toast-in 0.4s cubic-bezier(0.4,0,0.2,1);
  pointer-events: auto;
}
.toast.success { border-left: 3px solid var(--teal); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--cyan); }
.toast.warning { border-left: 3px solid var(--yellow); }
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-msg { font-size: 0.88rem; color: var(--text-sec); }
.toast-out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in  { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
@keyframes toast-out { to   { opacity:0; transform:translateX(30px); } }

/* ═══════════════════════════════════════════════════════════════
   MISC UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.text-cyan  { color: var(--cyan); }
.text-teal  { color: var(--teal); }
.text-red   { color: var(--red); }
.text-sec   { color: var(--text-sec); }
.font-mono  { font-family: monospace; }
.glow-cyan  { text-shadow: 0 0 20px rgba(0,229,255,0.5); }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--bg3) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dim);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.3; }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes glow-pulse {
  0%,100% { box-shadow: var(--glow-cyan); }
  50%     { box-shadow: 0 0 40px rgba(0,229,255,0.6), 0 0 100px rgba(0,229,255,0.2); }
}
.float { animation: float 4s ease-in-out infinite; }
.glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }

/* Fade in on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .referral-top { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(7,17,31,0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-stats { gap: 1.2rem; }
  .hero-stat .value { font-size: 1.4rem; }
  .modal { padding: 28px 20px; }
  .calc-wrap { padding: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { text-align: center; }
  .dash-grid { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: 1fr 1fr; }
  .dash-actions { flex-direction: column; }
  .stats-track { justify-content: flex-start; padding-left: 16px; }
  .plan-stats { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE-FIRST ENHANCEMENTS — Web3 Wallet Optimized
   ═══════════════════════════════════════════════════════════════ */

/* Safe-area support for notched phones */
:root {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top:    env(safe-area-inset-top, 0px);
}

/* ── Touch improvements ──────────────────────────────────────── */
button, a, .wallet-opt, .faq-item, .plan-card .btn-plan, .btn-action {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Minimum touch target: 48px */
.wallet-opt       { min-height: 68px; }
.btn-plan         { min-height: 52px; }
.btn-action       { min-height: 52px; }
#connectBtn       { min-height: 44px; }
.faq-q            { min-height: 52px; }

/* ── Enhanced Wallet Modal ───────────────────────────────────── */
.wallet-chain-info {
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wallet-chain-info .chain-badge-lg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
}
.wallet-chain-info .chain-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse-dot 1.5s infinite;
  flex-shrink: 0;
}

.wallet-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.wallet-opt:hover, .wallet-opt:active {
  border-color: var(--cyan);
  background: rgba(0,229,255,0.05);
  transform: translateX(4px);
}
.wallet-opt-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.wallet-opt-info { flex: 1; min-width: 0; }
.wallet-opt-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 2px;
}
.wallet-opt-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.wallet-opt-arrow {
  font-size: 1.4rem;
  color: var(--text-dim);
  flex-shrink: 0;
}
.wallet-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.wallet-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.wallet-recommended {
  display: none;
  align-items: center;
  gap: 4px;
  background: rgba(0,255,198,0.12);
  border: 1px solid rgba(0,255,198,0.3);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
}

.wallet-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
  margin: 8px 0 4px;
  padding-left: 4px;
}

/* ── Mobile Bottom Sheet Modal ───────────────────────────────── */
@media (max-width: 640px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-overlay .modal {
    border-radius: 28px 28px 0 0;
    max-width: 100vw;
    width: 100vw;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 16px;
    padding-bottom: max(20px, var(--safe-bottom));
    /* Sheet drag indicator */
    position: relative;
  }
  .modal-overlay .modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: -8px auto 20px;
  }
  .modal-header {
    margin-bottom: 16px;
  }
  /* TX modal stays centered on mobile */
  #txModal.modal-overlay {
    align-items: center;
    padding: 20px;
  }
  #txModal .modal {
    border-radius: 20px;
    max-width: calc(100vw - 40px);
    width: 100%;
  }
  #txModal .modal::before { display: none; }
}

/* ── Mobile Fixed Connect Bar ────────────────────────────────── */
#mobileConnectBar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: rgba(7,17,31,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  padding-bottom: max(12px, var(--safe-bottom));
  gap: 10px;
  align-items: center;
}
#mobileConnectBar.hidden { display: none !important; }

@media (max-width: 860px) {
  #mobileConnectBar {
    display: flex;
  }
  #mobileConnectBtn {
    flex: 1;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    color: var(--bg);
    font-family: 'Orbitron', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 14px;
    border-radius: 14px;
    box-shadow: var(--glow-cyan);
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  #mobileConnectBtn.connected {
    background: var(--card);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    box-shadow: none;
  }
  .mobile-bsc-badge {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    white-space: nowrap;
    flex-shrink: 0;
  }
  /* Make space for the sticky bar */
  body { padding-bottom: calc(76px + var(--safe-bottom)); }
}

/* ── Responsive Navbar ───────────────────────────────────────── */
@media (max-width: 860px) {
  /* Hide connect btn in nav on mobile (using bottom bar instead) */
  #connectBtn { display: none; }
  .chain-badge { display: none; }
}

/* ── Mobile Hero ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  #hero { min-height: 100dvh; padding-top: 80px; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-sub   { font-size: 0.95rem; }
  .hero-stats { gap: 1rem; }
  .hero-stat .value { font-size: 1.3rem; }
  .hero-cta { gap: 12px; }
  .btn-primary, .btn-secondary {
    font-size: 0.85rem;
    padding: 14px 20px;
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
  }
}

/* ── Plans Grid Mobile ───────────────────────────────────────── */
@media (max-width: 860px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}
@media (max-width: 480px) {
  .plans-grid { max-width: 100%; }
  .rig-area   { height: 150px; }
  .plan-body  { padding: 18px; }
  .plan-name  { font-size: 1.25rem; }
  .plan-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .plan-stat  { padding: 10px; }
  .plan-stat .ps-val { font-size: 1rem; }
}

/* ── Stats Bar Mobile ────────────────────────────────────────── */
@media (max-width: 640px) {
  .stats-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
  }
  .stat-divider { display: none; }
  .stat-item { padding: 4px 8px; }
}

/* ── Calculator Mobile ───────────────────────────────────────── */
@media (max-width: 640px) {
  .calc-wrap    { padding: 20px 16px; border-radius: 20px; }
  .calc-inputs  { grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; }
  .calc-results { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 380px) {
  .calc-results { grid-template-columns: 1fr; }
}

/* ── Dashboard Mobile ────────────────────────────────────────── */
@media (max-width: 640px) {
  .dash-grid    { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-card    { padding: 16px 12px; }
  .dc-val       { font-size: 1rem; }
  .dc-icon      { font-size: 1.4rem; }
  .dash-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn-action   { font-size: 0.78rem; padding: 14px 10px; }
}
@media (max-width: 380px) {
  .dash-grid    { grid-template-columns: 1fr; }
  .dash-actions { grid-template-columns: 1fr; }
}

/* ── Deposits Table → Card View on Mobile ────────────────────── */
@media (max-width: 700px) {
  .deposits-table-wrap .table-wrap {
    overflow-x: visible;
  }
  .deposits-table-wrap table { min-width: unset; width: 100%; }
  .deposits-table-wrap thead { display: none; }

  .deposits-table-wrap tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
  }
  .deposits-table-wrap tbody tr:last-child { margin-bottom: 0; }

  .deposits-table-wrap tbody td {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none !important;
    background: none !important;
  }
  .deposits-table-wrap tbody td::before {
    content: attr(data-label);
    font-size: 0.68rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
  }
  /* Span progress bar full width */
  .deposits-table-wrap tbody td:nth-child(6) {
    grid-column: 1 / -1;
  }
}

/* ── Referral Table → Card View ──────────────────────────────── */
@media (max-width: 600px) {
  .ref-levels-card .table-wrap { overflow-x: auto; }
  .ref-levels-card table { min-width: 380px; }
}

/* ── Referral section ────────────────────────────────────────── */
@media (max-width: 640px) {
  .referral-top      { grid-template-columns: 1fr; gap: 16px; }
  .ref-link-box      { flex-direction: column; gap: 8px; }
  .ref-link-box input { border-radius: 12px; }
  .ref-link-box .btn-copy { width: 100%; padding: 12px; border-radius: 12px; font-size: 0.9rem; min-height: 46px; }
  .ref-stats-mini    { grid-template-columns: 1fr 1fr; }
}

/* ── Deposit Modal Mobile ────────────────────────────────────── */
@media (max-width: 640px) {
  .deposit-form { gap: 16px; }
  .plan-selector { gap: 8px; }
  .plan-sel-btn {
    padding: 12px 6px;
    font-size: 0.8rem;
    border-radius: 12px;
    min-height: 60px;
  }
  .inset-panel { padding: 14px; }
  .amount-input-wrap input { font-size: 1rem; padding: 14px 60px 14px 16px; }
  /* Stack approve+deposit buttons */
  .deposit-form > div:last-of-type { flex-direction: column; }
}

/* ── Footer Mobile ───────────────────────────────────────────── */
@media (max-width: 640px) {
  footer { padding: 40px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-warning { font-size: 0.75rem; }
}

/* ── FAQ Mobile ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .faq-q  { font-size: 0.92rem; padding: 16px 0; }
  .faq-a p { font-size: 0.88rem; }
}

/* ── Section spacing mobile ──────────────────────────────────── */
@media (max-width: 640px) {
  section         { padding: 56px 0; }
  .section-title  { font-size: clamp(1.4rem, 5vw, 2rem); }
  .section-sub    { font-size: 0.9rem; margin-bottom: 2rem; }
  .container      { padding: 0 14px; }
}

/* ── Input focus — no zoom on iOS ────────────────────────────── */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: max(16px, 1em) !important; /* prevents iOS zoom */
  }
}

/* ── Progress bar ────────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
  min-width: 60px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ── Dashboard panel ─────────────────────────────────────────── */
#dashPanel { display: none; }
#dashPanel.active { display: block; }

/* ── Referral layout ─────────────────────────────────────────── */
.referral-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 860px) {
  .referral-top { grid-template-columns: 1fr; }
}

.ref-link-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.ref-link-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}
.ref-link-card p {
  font-size: 0.85rem;
  color: var(--text-sec);
  margin-bottom: 16px;
}
.ref-link-box {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.ref-link-box input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--text-sec);
  min-width: 0;
}
.ref-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ref-mini-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.ref-mini-card .v {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
}
.ref-mini-card .l {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ── Dashboard cards ─────────────────────────────────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 860px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
}
.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.dash-card:hover {
  border-color: rgba(0,229,255,0.25);
  transform: translateY(-3px);
}
.dc-icon  { font-size: 1.8rem; margin-bottom: 8px; }
.dc-val   {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 4px;
}
.dc-lbl   { font-size: 0.78rem; color: var(--text-sec); font-weight: 600; }
.dc-change { font-size: 0.72rem; color: var(--text-dim); margin-top: 4px; }

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.btn-action {
  flex: 1;
  min-width: 120px;
  padding: 14px 16px;
  border-radius: 14px;
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: var(--transition);
  box-shadow: var(--shadow-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-claim    { background: linear-gradient(135deg, var(--cyan), var(--teal)); color: var(--bg); box-shadow: var(--glow-cyan); }
.btn-compound { background: linear-gradient(135deg, #7B2FBE, #5A21A3); color: #fff; }
.btn-withdraw { background: var(--card); border: 1px solid var(--border); color: var(--text); }
.btn-action:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* ── Deposits table ──────────────────────────────────────────── */
.deposits-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.table-header h3 {
  font-size: 0.95rem;
  font-family: 'Orbitron', monospace;
}
.btn-copy {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-sec);
  cursor: pointer;
  transition: var(--transition);
}
.btn-copy:hover { border-color: var(--cyan); color: var(--cyan); }

.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 600px; }
.table-wrap th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(22,35,64,0.5);
  font-size: 0.88rem;
  vertical-align: middle;
}
.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap tbody tr:hover td { background: rgba(0,229,255,0.03); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-active  { background: rgba(0,255,198,0.12); color: var(--teal); border: 1px solid rgba(0,255,198,0.3); }
.badge-expired { background: rgba(255,77,109,0.12); color: var(--red); border: 1px solid rgba(255,77,109,0.3); }

/* ── Ref levels card ─────────────────────────────────────────── */
.ref-levels-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.level-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ── Dashboard connect msg ───────────────────────────────────── */
.dashboard-connect-msg {
  text-align: center;
  padding: 60px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.dashboard-connect-msg .icon { font-size: 3.5rem; margin-bottom: 16px; }
.dashboard-connect-msg h3 { font-size: 1.1rem; margin-bottom: 20px; color: var(--text-sec); font-family: 'Orbitron', monospace; }

/* ── Deposit form layout ─────────────────────────────────────── */
.deposit-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.plan-selector {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.plan-sel-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 10px;
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sec);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.plan-sel-btn small { display: block; font-size: 0.68rem; margin-top: 2px; font-family: 'Inter', sans-serif; color: var(--text-dim); }
.plan-sel-btn.active { border-color: var(--cyan); background: rgba(0,229,255,0.1); color: var(--cyan); }

/* ── Input groups ────────────────────────────────────────────── */
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-sec);
  font-weight: 600;
}
.input-group input, .input-group select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--text);
  box-shadow: var(--shadow-in);
  transition: var(--transition);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.input-group input:focus, .input-group select:focus { border-color: var(--cyan); }
.input-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A6080' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }

