/* ============================================================
   VegasBet — Base CSS  (v2 — no blue, pure dark)
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  /* Backgrounds — black base, elevated panels */
  --bg-primary:    #0d0d0d;
  --bg-secondary:  #1c1c1f;
  --bg-card:       #1e1e23;
  --bg-card-hover: #25252a;
  --bg-elevated:   #222228;
  --bg-input:      #1a1a1f;
  --bg-match:      #1a1a1f;

  /* Purple palette */
  --purple:        #7c3aed;
  --purple-light:  #9d5df5;
  --purple-glow:   rgba(124, 58, 237, 0.35);
  --purple-dim:    rgba(124, 58, 237, 0.12);
  --accent:        #a855f7;
  --purple-dark:   #5b21b6;

  /* Status */
  --gold:   #f59e0b;
  --green:  #10b981;
  --red:    #ef4444;
  --orange: #f97316;

  /* Text */
  --text-primary:   #f0eeff;
  --text-secondary: #8884aa;
  --text-muted:     #524e6e;

  /* Borders */
  --border:        rgba(124, 58, 237, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card:   rgba(255, 255, 255, 0.07);

  /* Header sizing */
  --header-height: 64px;
  --tabs-height:   44px;
  --header-total:  136px;

  /* Layout */
  --sidebar-sport:  280px;
  --floating-bar-h: 48px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  /* Transitions */
  --transition: 0.18s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 15px; scroll-behavior: smooth; }
body  {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: clip;
  line-height: 1.5;
}
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }

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

/* ── Page wrapper ───────────────────────────────────────────── */
.page-wrapper {
  padding-top: var(--header-height);
  padding-bottom: calc(var(--floating-bar-h) + 8px);
  padding-left: 14px; padding-right: 14px;
  position: relative; z-index: 1;
}
.has-sport-tabs .page-wrapper {
  padding-top: var(--header-total);
}
.container { width: 100%; padding: 0 14px; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: 'Inter', sans-serif; font-weight: 700; line-height: 1.2; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: 0.03em;
  text-transform: uppercase; white-space: nowrap; cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost   { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--purple-dim); border-color: var(--purple); color: var(--accent); }
.btn-primary { background: var(--purple); color: #fff; border: 1px solid transparent; box-shadow: 0 0 16px var(--purple-glow); }
.btn-primary:hover { background: var(--purple-light); box-shadow: 0 0 24px var(--purple-glow); transform: translateY(-1px); }
.btn-green   { background: var(--green); color: #fff; border: 1px solid transparent; }
.btn-green:hover { background: #0ea371; transform: translateY(-1px); }
.btn-sm   { padding: 5px 12px; font-size: 0.78rem; }
.btn-lg   { padding: 11px 26px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.form-input {
  background: var(--bg-input); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 10px 13px;
  color: var(--text-primary); font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-dim); }
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: var(--red); }
.form-error { font-size: 0.75rem; color: var(--red); }
.form-hint  { font-size: 0.75rem; color: var(--text-muted); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 20px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-live  { background: var(--red); color: #fff; }
.badge-count { background: var(--purple-dim); color: var(--accent); border: 1px solid var(--border); }
.badge-green { background: rgba(16,185,129,.15); color: var(--green); border: 1px solid rgba(16,185,129,.3); }

/* ── Utilities ──────────────────────────────────────────────── */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--accent); }
.text-gold      { color: var(--gold); }
.text-green     { color: var(--green); }
.text-red       { color: var(--red); }
.font-condensed { font-family: 'Inter', sans-serif; }
.hidden         { display: none !important; }
.truncate       { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider        { height: 1px; background: var(--border-subtle); margin: 14px 0; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(.8); } }
@keyframes fade-in   { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@keyframes slide-up  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.animate-fade-in { animation: fade-in 0.25s ease forwards; }

/* ── Alert ──────────────────────────────────────────────────── */
.alert         { padding: 9px 13px; border-radius: var(--radius-md); font-size: 0.83rem; font-weight: 500; }
.alert-error   { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }

/* ── Live dot ───────────────────────────────────────────────── */
.live-indicator { display: inline-flex; align-items: center; gap: 5px; }
.live-dot { display: inline-block; width: 7px; height: 7px; background: var(--red); border-radius: 50%; animation: pulse-dot 1.2s ease-in-out infinite; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); margin-top: 32px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 36px 0 28px; }
.footer-brand-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-top: 10px; max-width: 240px; }
.footer-col-title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding: 12px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-copyright { font-size: 0.75rem; color: var(--text-muted); }
.badge-18 { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--text-muted); color: var(--text-muted); font-family: 'Inter', sans-serif; font-weight: 800; font-size: 0.68rem; }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Mobile: floating pill fixed bottom center ──────────────── */
@media (max-width: 768px) {
  .floating-pill {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    max-width: 90vw;
    right: auto;
  }

  /* Hide bottom bar on pages where it's not relevant */
  body.page-main-news .floating-pill,
  body.page-main-promotions .floating-pill,
  body.page-main-about .floating-pill,
  body.page-main-vip .floating-pill,
  body.page-main-feedback .floating-pill {
    display: none;
  }
}

/* ── Promo Success Modal — "Reward Received" (table 1) ──────────
   Shared by the bonuses page and the post-registration hand-off. One look for
   both promo types; only the icon, copy and amount differ (set by main.js). */
.promo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: promoOverlayIn 0.25s ease both;
}
.promo-modal-overlay:not([hidden]) {
  display: flex;
}

.promo-modal-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(38, 26, 64, 0.96), rgba(20, 15, 34, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 26px;
  padding: 52px 44px 46px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: promoModalIn 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
}

/* top-lit halo */
.promo-modal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 50% -8%, rgba(168, 85, 247, 0.28), transparent 70%);
  pointer-events: none;
}

/* slow sheen sweeping across the card */
.promo-modal-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  animation: promoSheen 4.5s ease-in-out 1s infinite;
  pointer-events: none;
}

.promo-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  cursor: pointer;
  color: #b8afce;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  z-index: 3;
  transition: color 0.2s, background 0.2s;
}

.promo-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.promo-modal-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ── Animated gift badge ─────────────────────────────────────── */
.promo-modal-badge {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* two expanding rings */
.promo-modal-badge::before,
.promo-modal-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(168, 85, 247, 0.5);
  animation: promoRing 2.6s ease-out infinite;
}
.promo-modal-badge::after {
  border-color: rgba(168, 85, 247, 0.4);
  animation-delay: 0.8s;
}

.promo-modal-spark {
  position: absolute;
  border-radius: 50%;
  animation: promoSpark 2.4s ease-out infinite;
}
.promo-modal-spark--1 { left: 18px; top: 6px;  width: 5px; height: 5px; background: #c084fc; animation-delay: 0.2s; }
.promo-modal-spark--2 { right: 14px; top: 14px; width: 6px; height: 6px; background: #a855f7; animation-delay: 0.9s; }
.promo-modal-spark--3 { left: 34px; top: 2px;  width: 4px; height: 4px; background: #e9d5ff; animation-delay: 1.5s; }

.promo-modal-disc {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #7c3aed, #5b21b6);
  border: 1px solid rgba(192, 132, 252, 0.55);
  animation: promoBadgePop 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.4) both,
             promoGlow 2.8s ease-in-out 0.8s infinite;
}

.promo-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: promoFloat 3.2s ease-in-out 0.8s infinite;
}

.promo-modal-icon svg {
  width: 46px;
  height: 46px;
}

/* ── Copy ────────────────────────────────────────────────────── */
.promo-modal-eyebrow {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #c084fc;
  text-transform: uppercase;
  margin-bottom: 12px;
  animation: promoRise 0.6s ease-out 0.35s both;
}

.promo-modal-title {
  position: relative;
  z-index: 2;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  margin: 0 0 12px;
  line-height: 1.2;
  animation: promoRise 0.6s ease-out 0.45s both;
}

.promo-modal-body {
  position: relative;
  z-index: 2;
  font-size: 16px;
  font-weight: 500;
  color: #b0a6c8;
  line-height: 1.5;
  margin: 0 0 8px;
  animation: promoRise 0.6s ease-out 0.55s both;
}

.promo-modal-amount {
  position: relative;
  z-index: 2;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
  margin-bottom: 34px;
  animation: promoRise 0.6s ease-out 0.6s both;
}

.promo-modal-amount[hidden] { display: none; }

.promo-modal-amount-main { color: #7ce7b0; }
.promo-modal-amount-sub  { color: #9a90b4; font-size: 26px; }

/* the amount carries the bottom spacing; without it the body does */
.promo-modal-amount[hidden] + .promo-modal-cta { margin-top: 26px; }

.promo-modal-cta {
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 17px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: promoRise 0.6s ease-out 0.7s both;
}

.promo-modal-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: promoSheen 3.5s ease-in-out 1.4s infinite;
  pointer-events: none;
}

.promo-modal-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(168, 85, 247, 0.65);
}

@keyframes promoOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes promoModalIn {
  0%   { opacity: 0; transform: translateY(26px) scale(0.94); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes promoBadgePop {
  0%   { opacity: 0; transform: scale(0) rotate(-30deg); }
  55%  { opacity: 1; transform: scale(1.14) rotate(6deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes promoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes promoRing  { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes promoGlow {
  0%, 100% { box-shadow: 0 0 26px rgba(168, 85, 247, 0.4), 0 10px 30px rgba(124, 58, 237, 0.35); }
  50%      { box-shadow: 0 0 44px rgba(168, 85, 247, 0.7), 0 14px 38px rgba(124, 58, 237, 0.55); }
}
@keyframes promoSheen {
  0%   { transform: translateX(-140%) skewX(-18deg); }
  100% { transform: translateX(240%) skewX(-18deg); }
}
@keyframes promoRise { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes promoSpark {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-58px) scale(1); }
}

@media (max-width: 480px) {
  .promo-modal-card    { padding: 40px 24px 30px; border-radius: 20px; }
  .promo-modal-badge   { width: 92px; height: 92px; margin-bottom: 22px; }
  .promo-modal-disc    { width: 82px; height: 82px; }
  .promo-modal-icon svg { width: 38px; height: 38px; }
  .promo-modal-title   { font-size: 24px; }
  .promo-modal-body    { font-size: 14px; }
  .promo-modal-amount  { font-size: 34px; margin-bottom: 26px; }
  .promo-modal-amount-sub { font-size: 20px; }
  .promo-modal-cta     { font-size: 15px; padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-modal-overlay,
  .promo-modal-card,
  .promo-modal-card::after,
  .promo-modal-badge::before,
  .promo-modal-badge::after,
  .promo-modal-spark,
  .promo-modal-disc,
  .promo-modal-icon,
  .promo-modal-eyebrow,
  .promo-modal-title,
  .promo-modal-body,
  .promo-modal-amount,
  .promo-modal-cta,
  .promo-modal-cta::before { animation: none !important; }
}
