﻿/* ============================================================
   GEMHUNT — Master Stylesheet
   Color Palette: Black/Dark + Fire Orange/Red + Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800&family=Orbitron:wght@500;600;700;800&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary:    #080b0f;
  --bg-secondary:  #0d1117;
  --bg-card:       #111827;
  --bg-card2:      #1a2235;
  --combat-deep:   #060e04;
  --fire-red:      #e63000;
  --fire-orange:   #ff4500;
  --fire-amber:    #ff6b35;
  --gold:          #ffd700;
  --gold-dim:      #b8860b;
  --green:         #10b981;
  --cyan:          #06b6d4;
  --purple:        #8b5cf6;
  --red:           #ef4444;
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --border:        #1e293b;
  --border-fire:   var(--brand-40);
  --glow-fire:     0 0 20px var(--brand-50);
  --glow-gold:     0 0 20px rgba(255,215,0,0.4);
  --combat-camo:
    radial-gradient(ellipse 280px 200px at 8% 18%, rgba(40,68,10,0.6) 0%, transparent 65%),
    radial-gradient(ellipse 350px 230px at 85% 12%, rgba(58,85,15,0.5) 0%, transparent 60%),
    radial-gradient(ellipse 200px 280px at 4% 78%, rgba(32,58,8,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 280px 180px at 92% 72%, rgba(50,75,12,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 220px 160px at 55% 88%, rgba(44,68,10,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 160px 200px at 68% 35%, rgba(36,62,8,0.45) 0%, transparent 60%);
  --combat-scan:   repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.12) 3px, rgba(0,0,0,0.12) 6px);
  --hover-light:   #f8fafc;
  --radius:        8px;
  --transition:    0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Exo 2', 'Rajdhani', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.52;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fire-orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--fire-orange); border-radius: 3px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-game { font-family: 'Exo 2', 'Rajdhani', sans-serif; }
.font-mono { font-family: 'Share Tech Mono', monospace; }
h1,h2,h3,h4,h5 {
  font-family: 'Exo 2', 'Rajdhani', sans-serif;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.text-fire   { color: var(--fire-orange); }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-cyan   { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-muted  { color: var(--text-muted); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border: none; border-radius: var(--radius);
  font-family: 'Exo 2', 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all var(--transition); text-transform: uppercase;
  letter-spacing: 1px; position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.08); opacity: 0; transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-fire {
  background: linear-gradient(135deg, var(--fire-red), var(--fire-orange));
  color: #fff; box-shadow: var(--glow-fire);
}
.btn-fire:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--brand-70); color: #fff; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: #000; font-weight: 700;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--glow-gold); color: #000; }

.btn-outline {
  background: transparent; color: var(--fire-orange);
  border: 1px solid var(--fire-orange);
}
.btn-outline:hover { background: var(--fire-orange); color: #fff; }

.btn-ghost {
  background: rgba(255,255,255,0.05); color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--fire-orange); }

.btn-green  { background: linear-gradient(135deg, #059669, var(--green)); color: #fff; }
.btn-green:hover { box-shadow: 0 0 20px rgba(16,185,129,0.5); transform: translateY(-2px); color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-xl { padding: 18px 44px; font-size: 20px; }
.btn-block { width: 100%; display: flex; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.card-fire { border-color: var(--border-fire); }
.card-gold  { border-color: rgba(255,215,0,0.3); }

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.card-body    { padding: 24px; }
.card-footer  { padding: 16px 24px; border-top: 1px solid var(--border); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-secondary);
}
.form-control {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'Exo 2', 'Rajdhani', sans-serif; font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--fire-orange);
  box-shadow: 0 0 0 3px var(--brand-15);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: var(--bg-card); }
.form-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.input-group { position: relative; display: flex; }
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); flex: 1; }
.input-addon {
  display: flex; align-items: center; justify-content: center;
  padding: 0 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted); cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.input-addon:hover { color: var(--hover-light); background: var(--brand-08); }

/* ============================================================
   BADGES & PILLS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-fire    { background: var(--brand-20);  color: var(--fire-orange); border: 1px solid var(--brand-40); }
.badge-gold    { background: rgba(255,215,0,0.15); color: var(--gold); border: 1px solid rgba(255,215,0,0.3); }
.badge-green   { background: rgba(16,185,129,0.15);color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.badge-red     { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.badge-cyan    { background: rgba(6,182,212,0.15); color: var(--cyan); border: 1px solid rgba(6,182,212,0.3); }
.badge-purple  { background: rgba(139,92,246,0.15);color: var(--purple); border: 1px solid rgba(139,92,246,0.3); }
.badge-gray    { background: rgba(100,116,139,0.2);color: var(--text-secondary); border: 1px solid var(--border); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px;
  background:
    linear-gradient(rgba(8,11,15,0.92), rgba(8,11,15,0.96)),
    var(--combat-camo);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center;
  padding: 0 24px;
}
.navbar::after {
  content: ''; position: absolute;
  left: 24px; right: 24px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--fire-red) 12%, var(--fire-orange) 50%, transparent 100%);
  opacity: 0.9;
}
.navbar-brand {
  font-family: 'Orbitron', monospace;
  font-size: 21px; font-weight: 800;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
}
.navbar-brand .brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--fire-red), var(--fire-orange));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--glow-fire);
}
.navbar-brand span { color: var(--fire-orange); }

.navbar-nav {
  display: flex; align-items: center; gap: 4px;
  margin-left: 32px; list-style: none;
}
.navbar-nav a {
  padding: 8px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--text-secondary); transition: all var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--text-primary); background: var(--brand-12);
}
.navbar-nav a.active {
  color: var(--hover-light);
  background: linear-gradient(135deg, var(--brand-18), rgba(255,255,255,0.04));
  box-shadow: inset 0 0 0 1px var(--brand-30);
}

.navbar-right {
  margin-left: auto; display: flex; align-items: center; gap: 12px;
}
.wallet-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  font-size: 13px; font-weight: 600;
}
.wallet-badge .label { color: var(--text-muted); font-size: 11px; }
.wallet-badge .amount { color: var(--gold); }

.navbar-hamburger {
  display: none; flex-direction: column; gap: 4px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.navbar-hamburger span {
  display: block;
  width: 22px; height: 2px; background: var(--text-primary);
  transition: all var(--transition); border-radius: 2px;
}
.navbar-hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar-hamburger.is-open span:nth-child(2) { opacity: 0; }
.navbar-hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1098;
  background: rgba(0,0,0,0.45);
}

.mobile-nav-backdrop.open { display: block; }

.mobile-nav {
  display: block;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(84vw, 320px);
  z-index: 1099;
  padding: 16px 12px;
  background: linear-gradient(rgba(8,11,15,0.97), rgba(8,11,15,0.98));
  border-right: 1px solid rgba(255,255,255,0.08);
  transform: translateX(-104%);
  transition: transform .24s ease;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.mobile-nav-title {
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mobile-nav-links {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: left;
  padding: 9px 8px;
}

.mobile-nav a i {
  width: 16px;
  text-align: center;
  color: var(--fire-orange);
}

.mobile-nav a:hover {
  color: var(--text-primary);
  border-color: var(--brand-35);
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-wrapper { padding-top: 64px; min-height: 100vh; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 520px; }
.container-md { max-width: 780px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative; min-height: calc(100vh - 64px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--combat-scan);
  opacity: 0.28;
  animation: gridMove 20s linear infinite;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, var(--brand-18) 0%, transparent 32%),
    linear-gradient(135deg, rgba(8,11,15,0.7) 0%, rgba(6,14,4,0.32) 50%, rgba(8,11,15,0.9) 100%),
    var(--combat-camo),
    linear-gradient(180deg, var(--bg-primary) 0%, #0c0f15 100%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--brand-05) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 0 60px; }
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(6,14,4,0.82), rgba(17,24,39,0.7));
  border: 1px solid var(--brand-30);
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--hover-light); margin-bottom: 24px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 16px 40px rgba(0,0,0,0.25);
}
.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900; line-height: 1.05;
  margin-bottom: 24px;
}
.hero-title .line2 {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #d9f99d 28%, var(--fire-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 20px; color: var(--text-secondary);
  max-width: 560px; margin-bottom: 40px; font-family: 'Rajdhani', sans-serif;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap;
}
.hero-stat-item .stat-value {
  font-family: 'Orbitron', monospace;
  font-size: 30px; font-weight: 800;
  color: var(--hover-light);
  text-shadow: 0 0 18px var(--brand-35);
}
.hero-stat-item .stat-label {
  font-size: 12px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase;
}

/* ============================================================
   SECTION
   ============================================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 18px; max-width: 560px; margin: 0 auto; }
.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--hover-light); margin-bottom: 12px;
  text-shadow: 0 0 16px var(--brand-30);
}

/* Divider line */
.fire-line {
  height: 3px; width: 60px; margin: 0 auto 16px;
  background: linear-gradient(90deg, var(--fire-red), #d9f99d 52%, var(--gold));
  border-radius: 2px;
  box-shadow: 0 0 18px var(--brand-35);
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 32px; border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 45%),
    linear-gradient(135deg, rgba(6,14,4,0.68), rgba(17,24,39,0.94)),
    var(--combat-camo);
  border: 1px solid var(--brand-15);
  transition: all var(--transition);
  position: relative; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.22);
}
.feature-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--fire-red), var(--fire-orange));
  transform: scaleX(1); transform-origin: left; transition: opacity var(--transition), transform var(--transition);
  opacity: 0.45;
}
.feature-card:hover::before { transform: scaleX(1); opacity: 1; }
.feature-card:hover { border-color: var(--border-fire); transform: translateY(-4px); box-shadow: var(--glow-fire); }

.feature-icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
  background: var(--brand-10); border: 1px solid var(--brand-20);
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* ============================================================
   WEAPONS DISPLAY
   ============================================================ */
.weapons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.weapon-card {
  border-radius: 12px; padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0) 40%),
    linear-gradient(135deg, rgba(6,14,4,0.56), rgba(17,24,39,0.94));
  border: 1px solid var(--brand-12);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.weapon-card.owned {
  border-color: rgba(16,185,129,0.4);
  background: linear-gradient(135deg, var(--bg-card), rgba(16,185,129,0.05));
}
.weapon-card.equipped {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255,215,0,0.2);
}
.weapon-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-28);
  box-shadow: 0 20px 40px rgba(0,0,0,0.24), 0 0 24px var(--brand-18);
}

.weapon-icon-wrap {
  width: 80px; height: 80px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin-bottom: 16px;
  border: 2px solid;
}
.weapon-icon-wrap svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 12px currentColor);
  overflow: visible;
}
.weapon-name  { font-family: 'Orbitron', monospace; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.weapon-desc  { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.weapon-stats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.stat-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.stat-bar-label { width: 70px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--fire-red), var(--fire-orange)); }
.stat-bar-value { width: 28px; text-align: right; color: var(--text-secondary); font-family: 'Share Tech Mono', monospace; }
.weapon-ability {
  padding: 8px 12px; border-radius: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-secondary); margin-bottom: 16px;
}
.weapon-ability strong { color: var(--fire-orange); }
.weapon-price {
  font-family: 'Orbitron', monospace; font-size: 18px;
  font-weight: 700; color: var(--gold); margin-bottom: 16px;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}
.dash-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky; top: 64px; height: calc(100vh - 64px);
  overflow-y: auto;
}
.dash-sidebar-brand {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-user-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--fire-red), var(--fire-orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 10px;
  border: 2px solid var(--border-fire);
}
.sidebar-username {
  font-family: 'Orbitron', monospace; font-size: 14px; font-weight: 700;
}
.sidebar-role { font-size: 12px; color: var(--text-muted); }

.sidebar-nav { padding: 0 12px; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 8px;
  color: var(--text-secondary); font-size: 14px; font-weight: 600;
  letter-spacing: 0.3px; transition: all var(--transition);
  margin-bottom: 4px;
}
.sidebar-nav-item i { width: 18px; font-size: 15px; }
.sidebar-nav-item:hover  { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.sidebar-nav-item.active {
  color: var(--hover-light);
  background: linear-gradient(90deg, var(--brand-18), rgba(255,255,255,0.03));
  border-left: 3px solid var(--fire-orange);
  box-shadow: inset 0 0 0 1px var(--brand-20);
}
.sidebar-section-label {
  padding: 16px 14px 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
}

.dash-main { padding: 32px; background: var(--bg-primary); overflow-y: auto; }
.dash-header { margin-bottom: 32px; }
.dash-title { font-size: 26px; font-weight: 800; }
.dash-subtitle { color: var(--text-secondary); font-size: 15px; margin-top: 4px; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; margin-bottom: 32px;
}
.stat-card {
  padding: 22px; border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 42%),
    linear-gradient(135deg, rgba(6,14,4,0.6), rgba(17,24,39,0.94));
  border: 1px solid var(--brand-12);
  position: relative; overflow: hidden;
  transition: transform var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-24);
  box-shadow: 0 18px 36px rgba(0,0,0,0.2), 0 0 20px var(--brand-16);
}
.stat-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
}
.stat-card-fire::after  { background: linear-gradient(90deg, var(--fire-red), var(--fire-orange)); }
.stat-card-gold::after  { background: linear-gradient(90deg, var(--gold-dim), var(--gold)); }
.stat-card-green::after { background: linear-gradient(90deg, #059669, var(--green)); }
.stat-card-cyan::after  { background: linear-gradient(90deg, #0891b2, var(--cyan)); }
.stat-card-purple::after{ background: linear-gradient(90deg, #7c3aed, var(--purple)); }

.stat-card-icon {
  font-size: 28px; margin-bottom: 12px; line-height: 1;
}
.stat-card-value {
  font-family: 'Orbitron', monospace; font-size: 26px; font-weight: 800;
  margin-bottom: 4px; line-height: 1;
}
.stat-card-label { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); }
thead th {
  padding: 12px 16px; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody td { padding: 14px 16px; font-size: 14px; color: var(--text-secondary); }
tbody td strong { color: var(--text-primary); }
@media (max-width: 600px) {
  .table-wrap { border-radius: 8px; }
  .table-wrap table { min-width: 520px; }
  thead th { padding: 8px 10px; font-size: 11px; }
  tbody td { padding: 10px 10px; font-size: 13px; }
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  border-left: 4px solid; margin-bottom: 20px;
  font-size: 14px; display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(16,185,129,0.1); border-color: var(--green); color: #a7f3d0; }
.alert-danger   { background: rgba(239,68,68,0.1);  border-color: var(--red);   color: #fca5a5; }
.alert-warning  { background: rgba(255,215,0,0.1);  border-color: var(--gold);  color: var(--gold); }
.alert-info     { background: rgba(6,182,212,0.1);  border-color: var(--cyan);  color: #a5f3fc; }

/* ============================================================
   WALLET CARDS
   ============================================================ */
.wallet-card {
  border-radius: 16px; padding: 28px;
  position: relative; overflow: hidden; border: 1px solid var(--border);
}
.wallet-card-crip {
  background: linear-gradient(135deg, #1a0a00, #2d1400);
  border-color: var(--brand-35);
}
.wallet-card-usdt {
  background: linear-gradient(135deg, #001a0a, #002d14);
  border-color: rgba(16,185,129,0.35);
}
.wallet-card-bg {
  position: absolute; right: -20px; top: -20px;
  font-size: 120px; opacity: 0.05; pointer-events: none;
  line-height: 1;
}
.wallet-card-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.wallet-card-balance {
  font-family: 'Orbitron', monospace; font-size: 36px; font-weight: 800;
  line-height: 1; margin-bottom: 6px;
}
.wallet-card-crip .wallet-card-balance { color: var(--fire-orange); }
.wallet-card-usdt .wallet-card-balance { color: var(--green); }
.wallet-card-currency { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* ============================================================
   COMBAT / GAME
   ============================================================ */
.combat-arena {
  background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; position: relative;
}
#gameCanvas {
  display: block; cursor: crosshair;
  background: #0a0f0a;
}
.game-hud {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none; z-index: 10;
}
.hud-item {
  background: rgba(0,0,0,0.7); padding: 8px 14px;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
}
.hud-label { font-size: 10px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.hud-value { font-family: 'Orbitron', monospace; font-size: 18px; font-weight: 700; color: var(--text-primary); }

.hp-bar-wrap {
  width: 200px; height: 12px;
  background: rgba(255,255,255,0.1); border-radius: 6px; overflow: hidden;
  margin-top: 6px;
}
#hpBar {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--fire-red), var(--green));
  transition: width 0.3s ease;
}

/* overlay */
.game-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; z-index: 20;
}
.game-overlay.hidden { display: none; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 20px 40px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, var(--brand-12) 0%, transparent 60%),
    var(--bg-primary);
}
.auth-box {
  width: 100%; max-width: 480px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.auth-header {
  padding: 32px 32px 0; text-align: center;
}
.auth-logo {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--fire-red), var(--fire-orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 16px;
  box-shadow: var(--glow-fire);
}
.auth-header h1 { font-size: 24px; margin-bottom: 6px; }
.auth-header p  { color: var(--text-muted); font-size: 14px; }
.auth-body { padding: 28px 32px 32px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background:
    linear-gradient(180deg, rgba(6,14,4,0.45), rgba(13,17,23,0.98)),
    var(--combat-camo),
    var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 60px 0 30px;
  position: relative;
}
.footer::before {
  content: ''; position: absolute;
  top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--fire-red) 15%, #d9f99d 50%, transparent 100%);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-secondary); margin-top: 12px; font-size: 14px; max-width: 300px; }
.footer-col h4 {
  font-family: 'Orbitron', monospace; font-size: 13px;
  letter-spacing: 1px; color: var(--text-primary);
  margin-bottom: 16px; text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--text-secondary); }
.footer-col ul li a:hover { color: var(--hover-light); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 4px;
}

.cta-section .btn { white-space: nowrap; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 18px; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 20px; cursor: pointer; padding: 4px;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--hover-light); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; }

/* ============================================================
   PROGRESS BARS
   ============================================================ */
.progress { height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.progress-bar {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--fire-red), var(--fire-orange));
  transition: width 0.5s ease;
}
.progress-bar.green  { background: linear-gradient(90deg, #059669, var(--green)); }
.progress-bar.gold   { background: linear-gradient(90deg, var(--gold-dim), var(--gold)); }
.progress-bar.purple { background: linear-gradient(90deg, #7c3aed, var(--purple)); }

/* ============================================================
   UTILITIES
   ============================================================ */
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.p-4  { padding: 16px; }
.p-6  { padding: 24px; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: 12px; }
.rounded-full { border-radius: 50%; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-bold  { font-weight: 700; }
.font-black { font-weight: 900; }
.opacity-50 { opacity: 0.5; }
.cursor-pointer { cursor: pointer; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* Glow text */
.glow-fire { text-shadow: 0 0 20px var(--brand-60); }
.glow-gold { text-shadow: 0 0 20px rgba(255,215,0,0.5); }

/* Animated pulse */
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); display: inline-block;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.pulse-dot.fire {
  background: var(--fire-orange);
  animation: pulse-fire 2s infinite;
}
@keyframes pulse-fire {
  0%   { box-shadow: 0 0 0 0 var(--brand-70); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Range display */
.range-badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.range-short  { background: rgba(239,68,68,0.2);  color: var(--red); }
.range-medium { background: rgba(255,107,53,0.2); color: var(--fire-amber); }
.range-long   { background: rgba(139,92,246,0.2); color: var(--purple); }
.range-ultra  { background: rgba(255,215,0,0.2);  color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; height: auto; display: none; }
  .dash-sidebar.open { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 10px; }
  .navbar::after { left: 10px; right: 10px; }
  .navbar-brand { font-size: 17px; gap: 8px; max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .navbar-brand .brand-icon { width: 30px; height: 30px; }
  .navbar-nav, .navbar-right .wallet-badge { display: none; }
  .navbar-right { margin-left: auto; gap: 6px; }
  .navbar-right .btn { padding: 7px 10px; font-size: 11px; letter-spacing: 0.5px; }
  .navbar-hamburger { display: flex; margin-left: 12px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-title { font-size: 38px; }
  .hero-actions .btn-xl { padding: 12px 18px; font-size: 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 28px;
    margin-top: 32px;
  }
  .hero-stat-item {
    min-width: 110px;
    flex: 0 0 auto;
    text-align: center;
  }
  .hero-stat-item .stat-value { font-size: 24px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .auth-body { padding: 20px; }
  .auth-header { padding: 24px 20px 0; }
  .section { padding: 48px 0; }
  .dash-main { padding: 16px; }
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--fire-orange);
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TOASTS
   ============================================================ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 99999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  padding: 14px 20px; border-radius: 10px;
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 380px;
  backdrop-filter: blur(12px);
  animation: toastIn 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.toast.toast-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4); color: #a7f3d0; }
.toast.toast-error   { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.4);  color: #fca5a5; }
.toast.toast-info    { background: rgba(6,182,212,0.15);  border: 1px solid rgba(6,182,212,0.4);  color: #a5f3fc; }
.toast.toast-warn    { background: rgba(255,215,0,0.12);  border: 1px solid rgba(255,215,0,0.35); color: var(--gold); }
.toast-icon { font-size: 18px; }
.toast-msg  { font-size: 14px; font-weight: 600; flex: 1; }

/* Admin specific */
.admin-topbar {
  height: 56px; background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 24px;
  justify-content: space-between;
}
