/* =====================================================
   TREX MATRIX — Dark Web3 Theme
   ===================================================== */

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

:root {
  --bg:         #0a0a0f;
  --bg-alt:     #0e0e18;
  --card:       #12121a;
  --card-light: #1a1a2e;
  --border:     rgba(0, 212, 255, 0.12);
  --accent:     #00d4ff;
  --purple:     #7b2fff;
  --success:    #00ff88;
  --warning:    #ffaa00;
  --danger:     #ff4466;
  --text:       #e8e8f0;
  --text-muted: #7a7a9a;
  --mm-orange:  #f6851b;

  --gradient:        linear-gradient(135deg, var(--accent), var(--purple));
  --gradient-rev:    linear-gradient(135deg, var(--purple), var(--accent));
  --glow-cyan:       0 0 20px rgba(0, 212, 255, 0.35);
  --glow-purple:     0 0 20px rgba(123, 47, 255, 0.35);
  --glow-green:      0 0 20px rgba(0, 255, 136, 0.35);

  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple); }

img { max-width: 100%; display: block; }

ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

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

/* ── Containers ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; margin-top: 12px; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(0, 212, 255, 0.5); color: #fff; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: rgba(0, 212, 255, 0.1); transform: translateY(-2px); color: var(--accent); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }

.btn-metamask {
  background: transparent;
  border: 2px solid var(--mm-orange);
  color: var(--mm-orange);
  font-weight: 700;
}
.btn-metamask:hover {
  background: rgba(246, 133, 27, 0.12);
  box-shadow: 0 0 20px rgba(246, 133, 27, 0.35);
  color: var(--mm-orange);
  transform: translateY(-2px);
}
.btn-metamask.connected {
  border-color: var(--success);
  color: var(--success);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.btn-success { background: var(--success); color: #000; font-weight: 700; }
.btn-success:hover { box-shadow: var(--glow-green); transform: translateY(-2px); color: #000; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { box-shadow: 0 0 20px rgba(255, 68, 102, 0.4); transform: translateY(-2px); color: #fff; }

/* ── Glassmorphism Card ── */
.glass-card {
  background: rgba(18, 18, 26, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.glass-card:hover { border-color: rgba(0, 212, 255, 0.3); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.navbar.scrolled { padding: 12px 0; background: rgba(10, 10, 15, 0.97); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  letter-spacing: 0;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  font-family: 'Inter', sans-serif;
  color: #fff;
  box-shadow: var(--glow-cyan);
  flex-shrink: 0;
}
.nav-logo .logo-wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo .logo-trex {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.95);
}
.nav-logo .logo-mx {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.nav-logo:hover { color: var(--accent); }
.nav-logo:hover .logo-trex { color: var(--accent); }
.nav-logo-footer .logo-icon { width: 44px; height: 44px; font-size: 1.6rem; border-radius: 12px; }
.nav-logo-footer .logo-trex { font-size: 1.25rem; }
.nav-logo-footer .logo-mx { font-size: 0.7rem; letter-spacing: 4px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-muted); font-size: 1.05rem; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Particle Canvas */
#particleCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 212, 255, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(123, 47, 255, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 20% 70%, rgba(0, 255, 136, 0.06) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero h1 {
  margin-bottom: 20px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero p.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.hero-meta-item .icon { color: var(--accent); font-size: 1rem; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  overflow: hidden;
  position: relative;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.03), transparent);
  animation: shimmer 3s infinite;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 16px 24px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}
.stat-number {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }

/* ── How It Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 2px;
  background: var(--gradient);
  opacity: 0.4;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.step-card:hover { border-color: var(--accent); box-shadow: var(--glow-cyan); transform: translateY(-4px); }

.step-number {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800;
  color: #fff;
  box-shadow: var(--glow-cyan);
}

.step-icon {
  width: 72px; height: 72px;
  background: rgba(0, 212, 255, 0.08);
  border: 1.5px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  transition: all var(--transition);
}
.step-card:hover .step-icon { background: rgba(0, 212, 255, 0.15); border-color: var(--accent); box-shadow: var(--glow-cyan); }

.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ── Matrix Explanation ── */
.matrix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.matrix-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.matrix-card:hover { border-color: rgba(123, 47, 255, 0.4); box-shadow: var(--glow-purple); }
.matrix-card.accent-cyan:hover { border-color: rgba(0, 212, 255, 0.4); box-shadow: var(--glow-cyan); }

.matrix-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.badge-cyan { background: rgba(0, 212, 255, 0.12); border: 1px solid rgba(0, 212, 255, 0.3); color: var(--accent); }
.badge-purple { background: rgba(123, 47, 255, 0.12); border: 1px solid rgba(123, 47, 255, 0.3); color: var(--purple); }

.matrix-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.matrix-card > p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 28px; }

/* CSS Matrix Tree — x3 */
.tree-x3 { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.tree-row { display: flex; align-items: center; justify-content: center; gap: 16px; position: relative; }

.tree-node {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition);
}
.tree-node.root { width: 54px; height: 54px; font-size: 1.3rem; }

.tree-node.active {
  background: rgba(0, 255, 136, 0.15);
  border: 2px solid var(--success);
  box-shadow: var(--glow-green);
}
.tree-node.inactive {
  background: rgba(122, 122, 154, 0.1);
  border: 2px solid rgba(122, 122, 154, 0.25);
}
.tree-node.self {
  background: rgba(0, 212, 255, 0.15);
  border: 2px solid var(--accent);
  box-shadow: var(--glow-cyan);
}
.tree-node.purple {
  background: rgba(123, 47, 255, 0.15);
  border: 2px solid var(--purple);
  box-shadow: var(--glow-purple);
}

.tree-connector-v {
  width: 2px;
  height: 20px;
  background: var(--border);
  margin: 0 auto;
}

.tree-connector-h {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}
.tree-connector-h::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--border);
}

.tree-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tree-branch .branch-line {
  width: 2px;
  height: 20px;
  background: var(--border);
}

.x3-level-2 { display: flex; gap: 24px; position: relative; }
.x3-level-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22px; right: 22px;
  height: 2px;
  background: var(--border);
}

/* CSS Matrix Tree — x6 */
.tree-x6 { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.x6-level-1 { display: flex; gap: 36px; position: relative; }
.x6-level-1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22px; right: 22px;
  height: 2px;
  background: var(--border);
}
.x6-level-2 { display: flex; gap: 14px; position: relative; }
.x6-level-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22px; right: 22px;
  height: 2px;
  background: var(--border);
}

.matrix-info { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.info-row .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--success); box-shadow: 0 0 6px var(--success); }
.dot-grey { background: rgba(122, 122, 154, 0.4); }
.dot-cyan { background: var(--accent); box-shadow: 0 0 6px var(--accent); }

/* ── Levels Table ── */
.levels-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.levels-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}
.levels-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 212, 255, 0.04);
}
.levels-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
}
.levels-table tr:last-child td { border-bottom: none; }
.levels-table tr:hover td { background: rgba(0, 212, 255, 0.04); }

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}
.level-badge.starter { background: var(--gradient); color: #fff; box-shadow: var(--glow-cyan); }
.level-badge.locked { background: rgba(122, 122, 154, 0.12); color: var(--text-muted); border: 1.5px solid rgba(122, 122, 154, 0.2); }

.tag-starter {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient);
  color: #fff;
  margin-left: 8px;
}

.earnings-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.earnings-bar .bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.earnings-bar .bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
}

/* ── Level Journey Bagan ── */
.level-journey {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,212,255,0.3) transparent;
}
.level-journey::-webkit-scrollbar { height: 4px; }
.level-journey::-webkit-scrollbar-track { background: transparent; }
.level-journey::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); border-radius: 2px; }

.lj-card {
  flex: 0 0 auto;
  width: 128px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 10px 14px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lj-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(0,0,0,0.35); }

.lj-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  margin: 0 auto 8px;
  color: #fff;
}
.lj-card.lv1 .lj-num { background: linear-gradient(135deg,#00d4ff,#0095b5); box-shadow: 0 0 14px rgba(0,212,255,0.45); }
.lj-card.lv2 .lj-num { background: linear-gradient(135deg,#28b5ff,#1475cc); }
.lj-card.lv3 .lj-num { background: linear-gradient(135deg,#5595ff,#2a50cc); }
.lj-card.lv4 .lj-num { background: linear-gradient(135deg,#7b7fff,#4432cc); }
.lj-card.lv5 .lj-num { background: linear-gradient(135deg,#9b5fff,#7b2fff); box-shadow: 0 0 14px rgba(123,47,255,0.4); }
.lj-card.lv6 .lj-num { background: linear-gradient(135deg,#ffd700,#ff8c00); box-shadow: 0 0 18px rgba(255,215,0,0.5); color: #1a1200; }

.lj-card.lv1 { border-color: rgba(0,212,255,0.22); }
.lj-card.lv6 { border-color: rgba(255,215,0,0.22); }

.lj-label {
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 7px;
}
.lj-card.lv1 .lj-label { color: #00d4ff; }
.lj-card.lv6 .lj-label { color: #ffd700; }

.lj-cost {
  font-size: 0.8rem; font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 3px;
}
.lj-earn {
  font-size: 0.73rem; font-weight: 600;
  color: var(--accent);
  margin-bottom: 5px;
}
.lj-bonus { font-size: 0.65rem; color: rgba(255,255,255,0.3); }
.lj-bonus.active { color: #ffd700; font-weight: 700; }

.lj-arrow {
  flex: 0 0 auto;
  padding: 0 5px;
  color: rgba(255,255,255,0.18);
  font-size: 1.5rem;
  line-height: 1;
  display: flex; align-items: center;
}

.lj-card.free {
  background: linear-gradient(145deg, rgba(255,215,0,0.08), rgba(123,47,255,0.08));
  border: 1.5px solid rgba(255,215,0,0.38);
  box-shadow: 0 0 28px rgba(255,215,0,0.1);
  width: 128px;
}
.lj-free-icon { font-size: 1.9rem; margin-bottom: 6px; line-height: 1; }
.lj-free-badge {
  display: inline-block;
  padding: 3px 11px; border-radius: 100px;
  font-size: 0.76rem; font-weight: 800;
  background: linear-gradient(135deg,#ffd700,#ff8c00);
  color: #1a1200; margin-bottom: 7px;
}
.lj-free-earn { font-size: 0.76rem; font-weight: 700; color: #ffd700; margin-bottom: 4px; }
.lj-free-sub { font-size: 0.65rem; color: rgba(255,255,255,0.5); line-height: 1.55; }

/* ── Anim Level Progress ── */
.anim-level-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 10px;
  flex-wrap: nowrap;
}
.alp-dot {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700;
  color: rgba(255,255,255,0.25);
  transition: all 0.35s;
}
.alp-dot.alp-active {
  background: rgba(0,212,255,0.2);
  border-color: #00d4ff;
  color: #00d4ff;
  box-shadow: 0 0 10px rgba(0,212,255,0.4);
  transform: scale(1.2);
}
.alp-dot.alp-free { font-size: 0.75rem; }
.alp-dot.alp-free.alp-active {
  background: rgba(255,215,0,0.2);
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
}
.alp-line {
  flex: 1; height: 1px;
  background: rgba(255,255,255,0.08);
  max-width: 12px; min-width: 3px;
}
.alp-line.alp-gold { background: rgba(255,215,0,0.2); }
.anim-status.free { color: #ffd700; }

/* ── Why TREX ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { border-color: rgba(0, 212, 255, 0.25); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }

.feature-icon {
  width: 80px; height: 80px;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
  position: relative;
}
.feature-icon.cyan-icon { background: rgba(0, 212, 255, 0.1); border: 1.5px solid rgba(0, 212, 255, 0.2); }
.feature-icon.purple-icon { background: rgba(123, 47, 255, 0.1); border: 1.5px solid rgba(123, 47, 255, 0.2); }
.feature-icon.green-icon { background: rgba(0, 255, 136, 0.1); border: 1.5px solid rgba(0, 255, 136, 0.2); }

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ── Footer ── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin: 14px 0 20px; max-width: 300px; }
.footer h4 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer ul a:hover { color: var(--accent); }

.contract-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-top: 6px;
}
.contract-box code { font-size: 0.78rem; color: var(--accent); font-family: 'Courier New', monospace; word-break: break-all; }
.contract-copy { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 2px; transition: color var(--transition); flex-shrink: 0; }
.contract-copy:hover { color: var(--accent); }

.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition);
}
.social-link:hover { background: rgba(0, 212, 255, 0.1); border-color: var(--accent); color: var(--accent); box-shadow: var(--glow-cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* ── Dashboard Layout ── */
.dashboard-body { padding-top: 70px; min-height: 100vh; background: var(--bg); }

.dash-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 70px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dash-nav-left { display: flex; align-items: center; gap: 16px; }
.dash-nav-right { display: flex; align-items: center; gap: 12px; }

.wallet-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 500;
}
.wallet-chip .dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; animation: pulse-dot 2s infinite; }

.balance-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--text);
}
.balance-chip .sym { color: var(--text-muted); font-size: 0.75rem; }

.dash-content { padding: 32px 24px; max-width: 1280px; margin: 0 auto; }

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

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
}
.stat-card:hover { border-color: rgba(0, 212, 255, 0.25); transform: translateY(-2px); }

.stat-card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.icon-cyan { background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.2); }
.icon-purple { background: rgba(123, 47, 255, 0.1); border: 1px solid rgba(123, 47, 255, 0.2); }
.icon-green { background: rgba(0, 255, 136, 0.1); border: 1px solid rgba(0, 255, 136, 0.2); }
.icon-orange { background: rgba(246, 133, 27, 0.1); border: 1px solid rgba(246, 133, 27, 0.2); }

.stat-card-body { flex: 1; min-width: 0; }
.stat-card-value { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.stat-card-label { color: var(--text-muted); font-size: 0.82rem; margin-top: 4px; }
.stat-card-change { font-size: 0.78rem; color: var(--success); margin-top: 4px; }

/* ── Matrix Section ── */
.matrix-section { margin-bottom: 32px; }

.matrix-tabs {
  display: flex;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  width: fit-content;
  margin-bottom: 24px;
}
.matrix-tab {
  padding: 9px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  border: none;
  color: var(--text-muted);
}
.matrix-tab.active { background: var(--gradient); color: #fff; box-shadow: var(--glow-cyan); }

.matrix-panel { display: none; }
.matrix-panel.active { display: block; }

.matrix-viewer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.matrix-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.level-selector { display: flex; align-items: center; gap: 8px; }
.level-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}
.level-btn.active { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: var(--glow-cyan); }
.level-btn.locked { opacity: 0.4; cursor: not-allowed; }

.cycle-info { display: flex; align-items: center; gap: 16px; }
.cycle-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(123, 47, 255, 0.1);
  border: 1px solid rgba(123, 47, 255, 0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: var(--purple);
  font-weight: 600;
}

/* Dashboard matrix trees */
.dash-tree-x3 { display: inline-flex; flex-direction: column; align-items: center; gap: 0; }
.dash-tree-x6 { display: inline-flex; flex-direction: column; align-items: center; gap: 0; }

.dash-node {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.dash-node::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%; left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: var(--text);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 10;
}
.dash-node:hover::after { opacity: 1; }

.dash-node.node-active {
  background: rgba(0, 255, 136, 0.15);
  border: 2px solid var(--success);
  box-shadow: var(--glow-green);
}
.dash-node.node-inactive {
  background: rgba(122, 122, 154, 0.1);
  border: 2px dashed rgba(122, 122, 154, 0.3);
}
.dash-node.node-self {
  background: rgba(0, 212, 255, 0.15);
  border: 2px solid var(--accent);
  box-shadow: var(--glow-cyan);
  width: 66px; height: 66px;
  font-size: 1.6rem;
}

.v-line { width: 2px; height: 28px; background: rgba(255, 255, 255, 0.1); margin: 0 auto; }
.h-line { height: 2px; background: rgba(255, 255, 255, 0.1); }

.x3-row-2 { display: flex; gap: 32px; position: relative; margin-top: 0; }
.x3-row-2 .h-line-top { position: absolute; top: 0; left: 28px; right: 28px; height: 2px; background: rgba(255, 255, 255, 0.1); }

.x3-row-3 { display: flex; gap: 16px; margin-top: 0; position: relative; }

.x3-col { display: flex; flex-direction: column; align-items: center; }

.x6-row-1 { display: flex; gap: 52px; position: relative; }
.x6-row-1 .h-line-top { position: absolute; top: 0; left: 28px; right: 28px; height: 2px; background: rgba(255, 255, 255, 0.1); }
.x6-row-2 { display: flex; gap: 16px; position: relative; }
.x6-row-2 .h-line-top { position: absolute; top: 0; left: 28px; right: 28px; height: 2px; background: rgba(255, 255, 255, 0.1); }

.x3-col-group { display: flex; flex-direction: column; align-items: center; }

/* ── Level Upgrade Cards ── */
.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }

.level-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.level-card.active-level {
  border-color: rgba(0, 255, 136, 0.35);
  background: rgba(0, 255, 136, 0.03);
}
.level-card.active-level::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--success);
  box-shadow: var(--glow-green);
}
.level-card.locked-level { opacity: 0.7; }
.level-card:hover { transform: translateY(-2px); border-color: rgba(0, 212, 255, 0.25); }

.level-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.level-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-active { background: rgba(0, 255, 136, 0.12); border: 1px solid rgba(0, 255, 136, 0.3); color: var(--success); }
.badge-locked { background: rgba(122, 122, 154, 0.1); border: 1px solid rgba(122, 122, 154, 0.2); color: var(--text-muted); }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.level-price { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.level-bonus { font-size: 0.82rem; color: var(--accent); margin-bottom: 16px; }

.level-card-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.meta-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; }
.meta-row .key { color: var(--text-muted); }
.meta-row .val { font-weight: 600; }

/* ── Referral Section ── */
.referral-section { margin-bottom: 32px; }

.referral-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.ref-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ref-link-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--accent);
  font-size: 0.88rem;
  font-family: 'Courier New', monospace;
  min-width: 200px;
  cursor: text;
  outline: none;
}
.ref-link-input:focus { border-color: var(--accent); }

.qr-placeholder {
  width: 120px; height: 120px;
  background: #fff;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.qr-placeholder svg { width: 100px; height: 100px; }

.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.ref-stat {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.ref-stat-value { font-size: 1.3rem; font-weight: 800; }
.ref-stat-label { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }

/* ── Tables ── */
.data-table-wrapper { overflow-x: auto; border-radius: var(--radius); }
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.tx-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tx-join { background: rgba(0, 255, 136, 0.1); color: var(--success); }
.tx-upgrade { background: rgba(0, 212, 255, 0.1); color: var(--accent); }
.tx-earn { background: rgba(123, 47, 255, 0.1); color: var(--purple); }
.tx-reinvest { background: rgba(246, 133, 27, 0.1); color: var(--mm-orange); }

.address-truncated { font-family: 'Courier New', monospace; font-size: 0.8rem; color: var(--text-muted); }
.hash-link { font-family: 'Courier New', monospace; font-size: 0.78rem; color: var(--accent); }
.hash-link:hover { color: var(--purple); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--card-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 440px;
  transform: translateY(20px) scale(0.97);
  transition: all var(--transition);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.3rem; padding: 4px; transition: color var(--transition); }
.modal-close:hover { color: var(--text); }

.modal-level-preview {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.modal-level-num { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.modal-price { font-size: 2rem; font-weight: 800; }
.modal-price span { font-size: 1rem; color: var(--text-muted); }
.modal-trex { color: var(--accent); font-size: 0.9rem; margin-top: 6px; }

.modal-detail-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.modal-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.88rem; }
.modal-row .k { color: var(--text-muted); }
.modal-row .v { font-weight: 600; }
.modal-row .v.cyan { color: var(--accent); }
.modal-row .v.green { color: var(--success); }

.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; justify-content: center; }

/* ── Notifications ── */
.toast-container {
  position: fixed;
  top: 90px; right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.88rem;
  min-width: 260px;
  max-width: 360px;
  pointer-events: all;
  animation: slideInRight 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.toast.success { border-color: rgba(0, 255, 136, 0.3); }
.toast.error { border-color: rgba(255, 68, 102, 0.3); }
.toast.info { border-color: rgba(0, 212, 255, 0.3); }
.toast.warning { border-color: rgba(255, 170, 0, 0.3); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-msg { flex: 1; }
.toast.exiting { animation: slideOutRight 0.3s ease forwards; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(0, 212, 255, 0.3); }
  50%       { box-shadow: 0 0 32px rgba(0, 212, 255, 0.6); }
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(30px); }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes bounce-in {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.animate-fadeIn { animation: fadeIn 0.5s ease; }
.animate-fadeInUp { animation: fadeInUp 0.6s ease; }
.animate-float { animation: float 4s ease-in-out infinite; }
.pulse-glow { animation: pulse-glow 2.5s ease-in-out infinite; }

/* visible state for scroll-triggered */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Network Banner ── */
.network-banner {
  position: fixed;
  top: 70px; left: 0; right: 0;
  z-index: 998;
  background: rgba(255, 68, 102, 0.12);
  border-bottom: 1px solid rgba(255, 68, 102, 0.3);
  padding: 10px 24px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--danger);
  display: none;
}
.network-banner.show { display: block; }
.network-banner a { color: var(--danger); text-decoration: underline; font-weight: 600; }

/* ── Loading Spinner ── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rotate 0.7s linear infinite;
  display: inline-block;
}

/* ── Dashboard two-col layout ── */
.dash-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.dash-full { margin-bottom: 32px; }

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title-row h3 { font-size: 1rem; font-weight: 700; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 0.9rem; }

/* ── Progress bar ── */
.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient);
  transition: width 1s ease;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .matrix-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item:not(:last-child)::after { display: none; }
  .stat-item:not(:last-child) { border-bottom: 1px solid var(--border); }
  .dash-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-actions .btn:not(.btn-metamask) { display: none; }
  .hero { padding-top: 80px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-meta { justify-content: center; }
  .section { padding: 60px 0; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .levels-grid { grid-template-columns: 1fr; }
  .ref-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .dash-navbar { padding: 0 16px; }
  .dash-content { padding: 24px 16px; }
}
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .modal-box { padding: 24px 20px; }
}
