/* style.css — PredictPro: Dark Luxury Sports Aesthetic */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim: #7a6230;
  --bg: #0a0a0c;
  --bg2: #111116;
  --bg3: #18181f;
  --surface: #1e1e28;
  --surface2: #252532;
  --border: rgba(201, 168, 76, 0.15);
  --border2: rgba(255,255,255,0.06);
  --text: #f0ede6;
  --text-dim: #8a8799;
  --text-muted: #4a4860;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --glow: 0 0 30px rgba(201, 168, 76, 0.15);
  --shadow: 0 4px 24px rgba(0,0,0,0.6);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

/* ── Grid Noise Texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,12,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--gold);
  display: flex; align-items: center; gap: 8px;
}
.logo span { color: var(--text); }
.nav-links {
  display: flex; gap: 8px; align-items: center;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dim);
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--surface);
}
.nav-vip-btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: var(--bg) !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 100px !important;
}
.nav-vip-btn:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%) !important;
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow::before { content: '●'; font-size: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.3 } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 10vw, 96px);
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.hero h1 .gold { color: var(--gold); }
.hero p {
  max-width: 520px; margin: 0 auto 36px;
  color: var(--text-dim); font-size: 17px; font-weight: 300;
}
.hero-stats {
  display: flex; gap: 40px; justify-content: center;
  flex-wrap: wrap; margin-top: 40px;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 40px; color: var(--gold); line-height: 1;
}
.hero-stat .lbl { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: 32px; letter-spacing: 1px;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 12px;
}
.section-title .badge {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  background: var(--gold);
  color: var(--bg);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.section-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 28px; }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.card:hover { border-color: var(--border); transform: translateY(-2px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.card-league { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.card-date { font-size: 12px; color: var(--text-muted); }
.card-teams {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 0.5px;
  margin-bottom: 12px;
  line-height: 1.1;
}
.card-vs { color: var(--gold); margin: 0 8px; }
.card-meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.chip {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px; font-weight: 600;
  background: var(--bg3);
  border: 1px solid var(--border2);
}
.chip-gold { background: rgba(201,168,76,0.1); border-color: var(--border); color: var(--gold); }
.chip-green { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.2); color: var(--green); }
.chip-red { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); color: var(--red); }
.chip-amber { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.2); color: var(--amber); }
.chip-blue { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.2); color: var(--blue); }

.card-prediction {
  background: var(--bg2); border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.card-prediction .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.card-prediction .value { font-weight: 700; font-size: 15px; }
.card-odds { font-family: var(--font-display); font-size: 24px; color: var(--gold); }
.stake-stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }

/* Status bar */
.status-won  { border-left: 3px solid var(--green); }
.status-lost { border-left: 3px solid var(--red); }
.status-void { border-left: 3px solid var(--text-muted); }
.status-pending { border-left: 3px solid var(--gold-dim); }

/* ── LOCKED VIP CARD ── */
.card-locked {
  background: repeating-linear-gradient(
    45deg, var(--surface), var(--surface) 8px,
    rgba(201,168,76,0.03) 8px, rgba(201,168,76,0.03) 16px
  );
  cursor: pointer;
}
.locked-overlay {
  text-align: center; padding: 16px 0 4px;
}
.locked-overlay .lock-icon { font-size: 32px; margin-bottom: 8px; }
.locked-overlay p { color: var(--text-dim); font-size: 13px; }
.locked-overlay strong { color: var(--gold); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px;
  border: none; cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #a8892d 100%);
  color: var(--bg);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,168,76,0.3); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--surface); }
.btn-ghost { background: var(--surface2); color: var(--text-dim); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: var(--red); color: #fff; }

/* ── TABS ── */
.tabs { display: flex; gap: 4px; background: var(--surface); border-radius: var(--radius); padding: 4px; margin-bottom: 28px; }
.tab {
  flex: 1; padding: 10px; text-align: center; border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-dim); transition: all .2s;
}
.tab.active { background: var(--surface2); color: var(--text); }
.tab-vip.active { background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.1)); color: var(--gold); }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-bottom: 24px;
}
.filter-bar input[type="date"] {
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 9px 14px; font-size: 14px;
}
.filter-bar select {
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 9px 14px; font-size: 14px; cursor: pointer;
}

/* ── FORM ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input {
  width: 100%;
  background: var(--bg2); border: 1px solid var(--border2);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 15px;
  transition: border-color .2s;
}
.form-input:focus { outline: none; border-color: var(--gold-dim); }
.form-input::placeholder { color: var(--text-muted); }
.form-input select { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── ALERT ── */
.alert {
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 14px; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: var(--green); }
.alert-error   { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: var(--red); }
.alert-info    { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); color: var(--blue); }
.alert-gold    { background: rgba(201,168,76,0.1); border: 1px solid var(--border); color: var(--gold); }

/* ── MODAL ── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px);
  transition: transform .25s;
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-title { font-family: var(--font-display); font-size: 28px; margin-bottom: 20px; }
.modal-close { float: right; background: none; border: none; color: var(--text-dim); font-size: 22px; cursor: pointer; }

/* ── VIP BANNER ── */
.vip-banner {
  background: linear-gradient(135deg, rgba(201,168,76,0.12) 0%, rgba(201,168,76,0.04) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.vip-banner::before {
  content: '★';
  position: absolute; right: -20px; top: -20px;
  font-size: 120px; color: rgba(201,168,76,0.04); line-height: 1;
}
.vip-banner-text h2 { font-family: var(--font-display); font-size: 32px; color: var(--gold); }
.vip-banner-text p  { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.vip-status-badge {
  background: var(--gold);
  color: var(--bg);
  font-weight: 700; font-size: 12px;
  padding: 4px 12px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 1px;
  display: inline-block; margin-bottom: 6px;
}

/* ── PLANS ── */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.plan-card {
  background: var(--surface); border: 2px solid var(--border2);
  border-radius: var(--radius); padding: 24px; text-align: center;
  cursor: pointer; transition: all .2s;
}
.plan-card:hover { border-color: var(--border); }
.plan-card.selected { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.plan-card .plan-name { font-family: var(--font-display); font-size: 24px; margin-bottom: 4px; }
.plan-card .plan-price { font-size: 28px; font-weight: 700; color: var(--gold); }
.plan-card .plan-price span { font-size: 14px; font-weight: 400; color: var(--text-dim); }
.plan-card .plan-days { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

/* ── SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
.skeleton-card { height: 200px; border-radius: var(--radius); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { color: var(--text-dim); margin-bottom: 8px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border2);
  margin-top: 80px; padding: 40px 24px;
  text-align: center; color: var(--text-muted); font-size: 13px;
}
footer a { color: var(--text-dim); margin: 0 12px; }
footer a:hover { color: var(--gold); }
.footer-logo { font-family: var(--font-display); font-size: 24px; color: var(--gold); margin-bottom: 16px; }

/* ── ADMIN TABLE ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border2); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--surface); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border2); }
th { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); }
tr:hover td { background: rgba(255,255,255,0.02); }
tr:last-child td { border-bottom: none; }

/* ── STAT CARDS ── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); padding: 20px;
}
.stat-card .stat-val { font-family: var(--font-display); font-size: 36px; color: var(--gold); }
.stat-card .stat-lbl { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* ── PWA INSTALL PROMPT ── */
#install-prompt {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
  z-index: 99; transition: transform .4s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
}
#install-prompt.show { transform: translateX(-50%) translateY(0); }
#install-prompt button { margin-left: 8px; }

/* ── WIN RATE BAR ── */
.win-rate-bar {
  background: var(--surface); border-radius: var(--radius); padding: 20px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.rate-label { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; min-width: 80px; }
.rate-track { flex: 1; height: 8px; background: var(--bg3); border-radius: 100px; overflow: hidden; min-width: 120px; }
.rate-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); transition: width 1s ease; }
.rate-value { font-family: var(--font-display); font-size: 24px; color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links .hide-mobile { display: none; }
  .hero h1 { font-size: 52px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .tabs { flex-direction: column; }
  .plans-grid { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ── */
.fade-in { animation: fadeIn 0.4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.stagger > * { animation: fadeIn 0.4s ease both; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* Spin loader */
.loader { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border2); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; justify-content: center; align-items: center; padding: 60px; }
