/* assets/css/main.css */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;600;700&display=swap');

:root {
  --gold: #ffd700;
  --gold-dark: #b8960c;
  --red: #e63946;
  --green: #2dc653;
  --black: #111;
  --bg: #050508;
  --card: #0f0f1a;
  --card2: #15152a;
  --border: rgba(255,215,0,0.15);
  --text: #e8e8f0;
  --muted: #888;
}

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

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(255,215,0,.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(200,0,0,.04) 0%, transparent 60%);
}

/* ── TOPNAV ─────────────────────────────── */
.topnav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .75rem 1.5rem;
  background: rgba(10,10,20,.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
  flex-wrap: wrap;
}
.nav-brand {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 2px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: .5rem;
  flex: 1;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  padding: .4rem .8rem;
  border-radius: 4px;
  transition: all .2s;
  letter-spacing: .5px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: rgba(255,215,0,.08);
}
.nav-links a.nav-logout { color: #e63946; }
.nav-balance {
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
  background: rgba(255,215,0,.07);
  padding: .4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* ── AUTH PAGES ─────────────────────────── */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 60px rgba(255,215,0,.05);
}
.auth-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: .5rem;
  letter-spacing: 3px;
}
.auth-container h2 {
  text-align: center;
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}
.auth-switch { text-align: center; margin-top: 1.2rem; color: var(--muted); }
.auth-switch a { color: var(--gold); text-decoration: none; }

/* ── FORMS ──────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .3rem;
  letter-spacing: .5px;
}
.form-group input, .form-group select {
  width: 100%;
  padding: .65rem 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

/* ── BUTTONS ────────────────────────────── */
.btn-primary {
  width: 100%;
  padding: .8rem;
  background: linear-gradient(135deg, #b8960c 0%, #ffd700 50%, #b8960c 100%);
  border: none;
  border-radius: 6px;
  color: #000;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.2rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  display: block;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,215,0,.3); }
.btn-withdraw { background: linear-gradient(135deg, #1a6b3a 0%, #2dc653 50%, #1a6b3a 100%); }

/* ── ALERTS ─────────────────────────────── */
.alert {
  padding: .8rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.alert-error   { background: rgba(230,57,70,.15); border: 1px solid rgba(230,57,70,.4); color: #ff6b6b; }
.alert-success { background: rgba(45,198,83,.15); border: 1px solid rgba(45,198,83,.4); color: #2dc653; }

/* ── PAGE WRAP ──────────────────────────── */
.page-wrap { max-width: 1000px; margin: 2rem auto; padding: 0 1.5rem; }
.page-wrap h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.2rem;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
}

/* ── CARD ───────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}
.card h2 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

/* ── WALLET GRID ────────────────────────── */
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media(max-width:700px) { .wallet-grid { grid-template-columns: 1fr; } }

/* ── TABLES ─────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .9rem; }
.data-table th {
  padding: .6rem .8rem;
  text-align: left;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  letter-spacing: .5px;
}
.data-table td { padding: .5rem .8rem; border-bottom: 1px solid rgba(255,255,255,.04); }
.data-table tr:hover td { background: rgba(255,255,255,.02); }

.status-completed { color: var(--green); font-weight: 700; }
.status-pending   { color: var(--gold); }
.status-failed    { color: var(--red); }
.status-won       { color: var(--green); font-weight: 700; }
.status-lost      { color: var(--red); }

.win-text  { color: var(--green); font-weight: 700; }
.loss-text { color: var(--red); }

/* ── COLOR DOTS ─────────────────────────── */
.color-dot { display: inline-block; padding: .1rem .5rem; border-radius: 4px; font-weight: 700; font-size: .85rem; }
.color-red   .color-dot, .color-dot.color-red   { background: var(--red); color: #fff; }
.color-black .color-dot, .color-dot.color-black { background: #333; color: #fff; }
.color-green .color-dot, .color-dot.color-green { background: var(--green); color: #fff; }

/* ── REFERRAL ───────────────────────────── */
.ref-hero {
  text-align: center;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1.5rem;
}
.ref-pct {
  font-family: 'Bebas Neue', cursive;
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
}
.ref-card { margin-bottom: 1.5rem; }
.ref-link-box { display: flex; gap: .5rem; margin-bottom: .5rem; }
.ref-link-box input { flex: 1; padding: .6rem; background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text); border-radius: 6px; font-size: .9rem; }
.ref-link-box button { padding: .6rem 1rem; background: var(--card2); border: 1px solid var(--border); color: var(--gold); border-radius: 6px; cursor: pointer; white-space: nowrap; }
.ref-code { color: var(--muted); font-size: .9rem; }
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.2rem; text-align: center; }
.stat-val { font-size: 1.8rem; font-weight: 700; color: var(--gold); font-family: 'Bebas Neue', cursive; }
.stat-label { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

/* ── PAGINATION ─────────────────────────── */
.pagination { display: flex; gap: .5rem; margin-top: 1.5rem; justify-content: center; flex-wrap: wrap; }
.pagination a { padding: .4rem .8rem; background: var(--card); border: 1px solid var(--border); color: var(--text); text-decoration: none; border-radius: 4px; }
.pagination a.active { background: var(--gold); color: #000; font-weight: 700; }

/* ── DEPOSIT FORM ───────────────────────── */
.deposit-form input { padding: .6rem; background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text); border-radius: 6px; font-size: 1rem; margin-top: .3rem; width: 100%; }
