/* =====================================================
   bandagame.vip — Main Stylesheet
   ===================================================== */
:root {
  --bg:        #080812;
  --bg2:       #0f0f22;
  --bg3:       #16163a;
  --card:      #141428;
  --card2:     #1c1c3a;
  --red:       #c8102e;
  --red2:      #ff1a3a;
  --gold:      #f0c040;
  --gold2:     #ffd966;
  --green:     #00c853;
  --text:      #ffffff;
  --muted:     #8899bb;
  --border:    rgba(240,192,64,.15);
  --shadow:    0 4px 32px rgba(0,0,0,.6);
  --radius:    12px;
  --font:      'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ──────────────── SCROLLBAR ──────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ──────────────── HEADER ──────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(8,8,18,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo-wrap img { height: 40px; width: auto; }

.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s, background .2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--text);
  background: var(--bg3);
}
.main-nav a.active { color: var(--gold); }
.main-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover { background: var(--red2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,16,46,.4); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0a00;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(240,192,64,.45); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 6px; }

/* ──────────────── HAMBURGER ──────────────── */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ──────────────── WINS TICKER ──────────────── */
.wins-ticker {
  background: linear-gradient(90deg, #0a0a1e, #12123a, #0a0a1e);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: tickerMove 60s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}
.ticker-item .winner-name { color: var(--text); font-weight: 600; }
.ticker-item .winner-amount { color: var(--green); font-weight: 700; }
.ticker-item .ticker-sep { color: var(--red); }
@keyframes tickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ──────────────── TOAST NOTIFICATIONS ──────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card2);
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 260px;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,200,83,.25);
  animation: toastIn .3s ease;
  pointer-events: auto;
}
.toast.removing { animation: toastOut .3s ease forwards; }
.toast-icon { font-size: 22px; flex-shrink: 0; }
.toast-body { flex: 1; }
.toast-title { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.toast-name { font-weight: 700; font-size: 14px; }
.toast-detail { font-size: 12px; color: var(--muted); margin-top: 1px; }
.toast-amount { font-size: 16px; font-weight: 800; color: var(--green); white-space: nowrap; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-20px); }
}

/* ──────────────── HERO ──────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,8,18,.9) 40%, rgba(8,8,18,.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,16,46,.2);
  border: 1px solid rgba(200,16,46,.4);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--red2);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 28px; font-weight: 800; color: var(--gold); }
.hero-stat .label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ──────────────── SECTION ──────────────── */
.section { padding: 60px 0; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
  flex-wrap: wrap;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
}
.section-title .icon { font-size: 24px; }
.section-title span { color: var(--gold); }

/* ──────────────── GAME CARDS ──────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  aspect-ratio: 3/4;
}
.game-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 40px rgba(0,0,0,.7); }
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.game-card:hover img { transform: scale(1.06); }
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity .25s;
}
.game-card:hover .game-card-overlay { opacity: 1; }
.game-card-name { font-size: 12px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.game-card-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  padding: 7px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  width: 100%;
  transition: background .2s;
}
.game-card-play:hover { background: var(--red2); }
.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}
.game-badge.hot { background: #ff6b00; }
.game-badge.new { background: var(--green); }

/* ──────────────── PROMO BANNERS ──────────────── */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.promo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .2s, box-shadow .2s;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(0,0,0,.5); }
.promo-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.promo-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,8,18,.92) 0%, rgba(8,8,18,.3) 100%);
}
.promo-card-body {
  position: relative;
  z-index: 1;
  padding: 20px;
}
.promo-card-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.promo-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; line-height: 1.3; }
.promo-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* ──────────────── LIVE GAMES ──────────────── */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.live-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.live-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.live-card-img {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}
.live-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}
.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.85); }
}
.live-players {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.7);
  color: var(--muted);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}
.live-card-info { padding: 14px; }
.live-card-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.live-card-info p { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.live-limits { display: flex; gap: 8px; margin-bottom: 12px; }
.live-limit { background: var(--bg3); border-radius: 5px; padding: 3px 8px; font-size: 11px; color: var(--muted); }

/* ──────────────── BONUS CARDS ──────────────── */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.bonus-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.bonus-card:hover { border-color: var(--gold); box-shadow: 0 8px 32px rgba(240,192,64,.1); }
.bonus-card-head {
  padding: 24px;
  background: var(--card2);
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.bonus-icon { font-size: 36px; }
.bonus-card-head h3 { font-size: 17px; font-weight: 800; }
.bonus-card-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bonus-amount {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  padding: 16px 24px 0;
}
.bonus-amount small { font-size: 14px; color: var(--muted); font-weight: 400; display: block; margin-top: 2px; }
.bonus-features { padding: 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.bonus-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.bonus-feature .check { color: var(--green); font-size: 15px; flex-shrink: 0; }
.bonus-card-foot { padding: 16px 24px 24px; }

/* ──────────────── FAQ ──────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: rgba(240,192,64,.3); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  user-select: none;
  gap: 12px;
}
.faq-q:hover { color: var(--gold); }
.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform .3s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--gold); color: #1a0a00; }
.faq-a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 18px; }

/* ──────────────── PAGE HERO (inner pages) ──────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 { font-size: 36px; font-weight: 900; margin-bottom: 8px; }
.page-hero h1 span { color: var(--gold); }
.page-hero p { color: var(--muted); font-size: 16px; }

/* ──────────────── FILTER BAR ──────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--bg3);
  border-color: var(--gold);
  color: var(--gold);
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  gap: 8px;
  flex: 1;
  max-width: 300px;
}
.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  width: 100%;
}
.search-box input::placeholder { color: var(--muted); }

/* ──────────────── FOOTER ──────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 36px; }
.footer-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.footer-col h5 { font-size: 13px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pay-icon {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 12px; color: var(--muted); }
.footer-stamp { display: flex; align-items: center; gap: 14px; }
.footer-stamp img { height: 36px; opacity: .7; }
.age-badge {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 900;
  color: var(--muted);
}

/* ──────────────── UTILS ──────────────── */
.text-gold { color: var(--gold) !important; }
.text-red { color: var(--red2) !important; }
.text-green { color: var(--green) !important; }
.text-muted { color: var(--muted) !important; }
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-red { background: rgba(200,16,46,.2); color: var(--red2); border: 1px solid rgba(200,16,46,.3); }
.badge-gold { background: rgba(240,192,64,.15); color: var(--gold); border: 1px solid rgba(240,192,64,.25); }
.badge-green { background: rgba(0,200,83,.15); color: var(--green); border: 1px solid rgba(0,200,83,.25); }

/* ──────────────── SEO TEXT SECTION ──────────────── */
.seo-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.seo-article {
  max-width: 800px;
}
.seo-heading {
  font-size: 20px;
  font-weight: 800;
  margin: 36px 0 12px;
  color: var(--text);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}
.seo-article h2:first-child,
.seo-heading:first-child {
  margin-top: 0;
}
.seo-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 720px;
}
.seo-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.seo-link:hover { color: var(--gold2); }
.seo-faq { margin-top: 8px; }
.seo-nav { margin-top: 36px; }
.seo-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 12px;
}
.seo-nav-list li::before {
  content: '→ ';
  color: var(--gold);
}
.seo-nav-list a {
  font-size: 14px;
  color: var(--muted);
  transition: color .2s;
}
.seo-nav-list a:hover { color: var(--text); }

/* ──────────────── MOBILE ──────────────── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    z-index: 800;
  }
  .burger { display: flex; }
  .header-inner { position: relative; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .live-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .promo-grid { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 20px; }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .toast { min-width: 240px; }
  .section { padding: 40px 0; }
}
