:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --surface2: #1e1e1e;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --muted: #888;
  --green: #22c55e;
  --orange: #f97316;
  --red: #ef4444;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 16px;
}

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

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* NAV */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 24px; }
nav ul a { color: var(--muted); font-size: 14px; transition: color 0.15s; }
nav ul a:hover { color: var(--text); }

/* HERO */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-green { background: var(--green); color: #000; }
.btn-green:hover { opacity: 0.9; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* CALCULATOR */
.calculator {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin: 0 auto;
  max-width: 600px;
}
.calculator h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.calculator .subtitle { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 500px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.calc-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface2);
  display: none;
}
.calc-result.visible { display: block; }
.ev-number { font-size: 36px; font-weight: 800; margin-bottom: 4px; }
.ev-number.green { color: var(--green); }
.ev-number.orange { color: var(--orange); }
.ev-number.red { color: var(--red); }
.ev-verdict { font-size: 15px; margin-bottom: 16px; }
.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.breakdown-grid span { color: var(--text); }
.calc-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ALERT SIGNUP */
.alert-signup {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 60px 0;
}
.alert-signup h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.alert-signup p { color: var(--muted); margin-bottom: 20px; }
.signup-form {
  display: flex;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.signup-form input {
  flex: 1;
  min-width: 200px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.signup-form input:focus { border-color: var(--accent); }
.signup-message { margin-top: 12px; font-size: 14px; }

/* CASINO GRID */
.casino-grid {
  display: grid;
  gap: 12px;
  margin: 32px 0;
}
.casino-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.15s;
}
.casino-card:hover { border-color: var(--accent); }
.casino-rank {
  font-size: 20px;
  font-weight: 800;
  color: var(--muted);
  min-width: 28px;
  text-align: center;
}
.casino-info { flex: 1; }
.casino-name { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.casino-bonus { font-size: 13px; color: var(--muted); }
.casino-rating {
  background: var(--surface2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.casino-actions { display: flex; gap: 8px; align-items: center; }

/* TRACKER PAGE */
.tracker-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tracker-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.stat { font-size: 14px; color: var(--muted); }
.stat strong { color: var(--green); font-size: 20px; display: block; }

.tracker-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: all 0.15s;
}
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.tracker-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.tracker-row.expiring { border-color: var(--orange); }
.tracker-row.claimed { opacity: 0.5; }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.unclaimed { background: var(--green); }
.status-dot.claimed { background: var(--muted); }
.status-dot.skipped { background: var(--border); }
.status-dot.expiring { background: var(--orange); }
.tracker-name { font-weight: 600; flex: 1; }
.tracker-bonus { font-size: 13px; color: var(--muted); }
.tracker-actions { display: flex; gap: 6px; }
.tracker-actions button {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.tracker-actions button:hover { opacity: 0.8; }
.btn-claim { background: var(--green); color: #000; }
.btn-skip { background: var(--surface2); color: var(--muted); border: 1px solid var(--border) !important; }

/* EXPIRY ALERT */
.expiry-alert {
  background: #1c1400;
  border: 1px solid #f97316;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}
.expiry-alert strong { color: var(--orange); }

/* SECTION */
.section { padding: 60px 0; }
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-sub { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

/* AUTH MODAL */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  display: none;
}
.auth-overlay.visible { display: flex; }
.auth-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.auth-modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.auth-modal p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer p { margin-bottom: 8px; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero { padding: 40px 0 32px; }
  .calculator { padding: 20px; }
  nav ul { gap: 14px; }
}
