/* ============================================================
   8XBET – THỂ THAO ĐIỆN TỬ (ESPORTS) PAGE STYLES
   ============================================================ */

:root {
  --es-purple: #7c3aed;
  --es-violet: #a855f7;
  --es-dark:   #0d0618;
  --es-mid:    #1a0533;
  --es-light:  #f3e8ff;
  --es-gold:   #f5c518;
  --es-red:    #e53935;
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #0d0618 0%, #1a0533 50%, #2d1065 100%);
  padding: 60px 32px 56px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(124,58,237,.15) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(168,85,247,.10) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero::after {
  content: '🎮 🎮 🎮 🎮 🎮';
  position: absolute; bottom: -8px; left: 0; right: 0;
  font-size: 2rem; letter-spacing: 70px;
  opacity: .05; pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,.18); border: 1px solid rgba(168,85,247,.4);
  color: var(--es-violet); font-size: .78rem; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(2rem,4vw,3rem); font-weight: 900;
  color: #fff; line-height: 1.2; margin-bottom: 18px;
}
.page-hero h1 .hl { color: var(--es-violet); }
.page-hero p {
  color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.75;
  max-width: 560px; margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-hero-primary {
  background: linear-gradient(90deg, var(--es-mid), var(--es-purple));
  color: #fff; padding: 14px 30px; border-radius: 8px;
  font-weight: 800; font-size: .9rem; letter-spacing: .4px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 22px rgba(124,58,237,.45);
  transition: filter .2s, transform .2s;
}
.btn-hero-primary:hover { filter: brightness(1.12); transform: translateY(-2px); text-decoration: none; }
.btn-hero-secondary {
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.3);
  color: #fff; padding: 14px 28px; border-radius: 8px;
  font-weight: 700; font-size: .9rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9); font-size: .78rem; font-weight: 600;
  padding: 6px 14px; border-radius: 20px;
}
.pill i { color: var(--es-violet); }

/* Hero match board */
.hero-match-board {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: 20px; overflow: hidden;
  backdrop-filter: blur(10px);
}
.hmb-header {
  background: linear-gradient(90deg, var(--es-mid), var(--es-purple));
  padding: 13px 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; font-weight: 700; color: #fff;
}
.live-badge {
  background: var(--es-red); color: #fff; font-size: .68rem; font-weight: 800;
  letter-spacing: .6px; padding: 3px 9px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 5px;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;}50%{opacity:.65;} }
.hmb-match {
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.hmb-match:last-child { border-bottom: none; }
.hmb-league { font-size: .66rem; color: rgba(255,255,255,.4); margin-bottom: 7px; }
.hmb-league span { color: var(--es-violet); font-weight: 700; }
.hmb-teams { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.hmb-team { font-size: .84rem; font-weight: 700; color: #fff; }
.hmb-score {
  background: rgba(245,197,24,.15); border: 1px solid rgba(245,197,24,.3);
  color: var(--es-gold); font-size: 1rem; font-weight: 900;
  padding: 3px 12px; border-radius: 7px;
}
.hmb-time { font-size: .62rem; color: var(--es-red); font-weight: 700; display: block; text-align: center; margin-top: 2px; }
.hmb-odds { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.odd-btn {
  background: rgba(124,58,237,.15); border: 1px solid rgba(168,85,247,.2);
  border-radius: 7px; padding: 7px 5px; text-align: center; cursor: pointer;
  transition: all .2s;
}
.odd-btn:hover, .odd-btn.sel { background: rgba(124,58,237,.38); border-color: var(--es-violet); }
.ob-lbl { font-size: .6rem; color: rgba(255,255,255,.4); display: block; }
.ob-val { font-size: .9rem; font-weight: 800; color: var(--es-violet); display: block; }
.hmb-view-all {
  display: block; text-align: center; padding: 11px;
  color: var(--es-violet); font-size: .8rem; font-weight: 700;
  text-decoration: none; border-top: 1px solid rgba(255,255,255,.07);
  transition: background .2s;
}
.hmb-view-all:hover { background: rgba(255,255,255,.04); text-decoration: none; }

/* ════════════════════════════════════════
   STATS BANNER
   ════════════════════════════════════════ */
.stats-banner {
  background: linear-gradient(90deg, var(--es-mid), var(--es-purple));
  padding: 28px 32px;
}
.stats-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5,1fr); gap: 20px;
}
.stat-item { text-align: center; }
.s-num { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.s-lbl { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 4px; font-weight: 600; }

/* ════════════════════════════════════════
   SECTION WRAPPERS
   ════════════════════════════════════════ */
.section      { padding: 64px 32px; }
.section-alt  { background: var(--es-light); }
.section-dark { background: var(--es-dark); }
.container    { max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--es-light); color: var(--es-purple);
  font-size: .75rem; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
.section-dark .section-head .eyebrow { background: rgba(168,85,247,.15); color: var(--es-violet); }
.section-head h2 {
  font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 900;
  color: var(--es-dark); line-height: 1.25;
}
.section-dark .section-head h2 { color: #fff; }
.section-head p { color: #666; font-size: 1rem; margin-top: 12px; max-width: 640px; margin-left:auto; margin-right:auto; }
.section-dark .section-head p { color: rgba(255,255,255,.55); }
.hl-purple { color: var(--es-purple); }
.hl-violet { color: var(--es-violet); }

/* ════════════════════════════════════════
   GAME CARDS GRID
   ════════════════════════════════════════ */
.games-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 22px;
}
.game-card {
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,.2);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  background: #1a0533;
  border: 1px solid rgba(168,85,247,.15);
  padding: 28px 22px; text-align: center;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(124,58,237,.3);
  border-color: rgba(168,85,247,.5);
}
.game-card-icon {
  font-size: 2.8rem; margin-bottom: 14px; display: block;
}
.game-card h3 {
  font-size: .92rem; font-weight: 800; color: #fff; margin-bottom: 6px;
}
.game-card p {
  font-size: .78rem; color: rgba(255,255,255,.5); line-height: 1.55;
}
.game-markets {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(124,58,237,.2); border: 1px solid rgba(168,85,247,.3);
  color: var(--es-violet); font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 5px; margin-top: 10px;
}

/* ════════════════════════════════════════
   BET TYPES TABLE
   ════════════════════════════════════════ */
.keo-table-wrap {
  overflow-x: auto; border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.keo-table {
  width: 100%; border-collapse: collapse; background: #fff;
}
.keo-table thead th {
  background: linear-gradient(90deg, var(--es-mid), var(--es-purple));
  color: #fff; padding: 15px 20px;
  font-size: .82rem; font-weight: 800; text-align: left;
  letter-spacing: .4px;
}
.keo-table tbody tr { border-bottom: 1px solid rgba(124,58,237,.1); }
.keo-table tbody tr:last-child { border-bottom: none; }
.keo-table tbody tr:hover { background: rgba(124,58,237,.04); }
.keo-table td {
  padding: 14px 20px; font-size: .87rem; color: #444; vertical-align: middle;
}
.keo-table td:first-child { font-weight: 800; color: var(--es-purple); }
.keo-tag {
  display: inline-flex; align-items: center;
  background: var(--es-light); color: var(--es-purple);
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 5px;
}

/* ════════════════════════════════════════
   TOURNAMENT CARDS
   ════════════════════════════════════════ */
.tournament-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.tournament-card {
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #1a0533, #2d1065 60%, #3b0e8c);
  border: 1px solid rgba(168,85,247,.18);
  padding: 26px 22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.tournament-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(124,58,237,.25);
  border-color: rgba(168,85,247,.4);
}
.tc-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.tc-title { font-size: .95rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.tc-meta { font-size: .78rem; color: rgba(255,255,255,.5); margin-bottom: 10px; line-height: 1.6; }
.tc-prize {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(245,197,24,.12); border: 1px solid rgba(245,197,24,.3);
  color: var(--es-gold); font-size: .75rem; font-weight: 800;
  padding: 4px 10px; border-radius: 5px;
}

/* ════════════════════════════════════════
   HOW TO BET STEPS
   ════════════════════════════════════════ */
.steps-list { display: flex; flex-direction: column; gap: 18px; }
.step-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 22px; background: #fff;
  border-radius: 14px; box-shadow: 0 2px 14px rgba(0,0,0,.06);
  border-left: 4px solid var(--es-purple);
}
.si-num {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--es-mid), var(--es-purple));
  color: #fff; font-size: 1.1rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.step-item h4 { font-size: .92rem; font-weight: 800; color: var(--es-dark); margin-bottom: 5px; }
.step-item p  { font-size: .84rem; color: #666; line-height: 1.65; margin: 0; }

/* ════════════════════════════════════════
   UU DIEM – LIVE FEATURES GRID (DARK)
   ════════════════════════════════════════ */
.live-features-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.lf-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(168,85,247,.12);
  border-radius: 16px; padding: 26px 22px;
  transition: background .2s, transform .2s, border-color .2s;
}
.lf-card:hover {
  background: rgba(124,58,237,.12); border-color: rgba(168,85,247,.35);
  transform: translateY(-4px);
}
.lf-icon {
  width: 58px; height: 58px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--es-mid), var(--es-purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
}
.lf-card h3 { font-size: .95rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.lf-card p  { font-size: .84rem; color: rgba(255,255,255,.5); line-height: 1.7; }

/* ════════════════════════════════════════
   PROMO BANNER
   ════════════════════════════════════════ */
.promo-banner {
  background: linear-gradient(135deg, #0d0618 0%, #1a0533 55%, #2d1065 100%);
  border-radius: 20px; padding: 48px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.promo-text h2 { font-size: clamp(1.5rem,2.5vw,2rem); font-weight: 900; color: #fff; margin-bottom: 10px; }
.promo-text p  { color: rgba(255,255,255,.7); font-size: .95rem; max-width: 560px; }
.promo-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-promo-main {
  background: linear-gradient(90deg, var(--es-purple), var(--es-violet));
  color: #fff; padding: 14px 28px; border-radius: 8px;
  font-weight: 900; font-size: .9rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 22px rgba(168,85,247,.4); transition: filter .2s, transform .2s;
}
.btn-promo-main:hover { filter: brightness(1.1); transform: translateY(-2px); text-decoration: none; }
.btn-promo-sec {
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.3);
  color: #fff; padding: 14px 24px; border-radius: 8px;
  font-weight: 700; font-size: .9rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: background .2s;
}
.btn-promo-sec:hover { background: rgba(255,255,255,.18); text-decoration: none; }

/* ════════════════════════════════════════
   FAQ
   ════════════════════════════════════════ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid rgba(168,85,247,.3); border-radius: 12px;
  overflow: hidden; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer;
  font-weight: 700; font-size: .95rem; color: var(--es-dark);
  background: transparent; border: none; text-align: left;
  transition: background .2s; gap: 12px;
}
.faq-q:hover { background: var(--es-light); }
.faq-q i { color: var(--es-purple); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 22px; color: #555; font-size: .9rem; line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 320px; padding: 0 22px 18px; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .games-grid        { grid-template-columns: repeat(2,1fr); }
  .tournament-grid   { grid-template-columns: 1fr 1fr; }
  .live-features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner        { grid-template-columns: 1fr; }
  .hero-match-board  { display: none; }
  .stats-grid        { grid-template-columns: repeat(3,1fr); }
  .games-grid        { grid-template-columns: 1fr 1fr; }
  .tournament-grid   { grid-template-columns: 1fr; }
  .live-features-grid { grid-template-columns: 1fr; }
  .section           { padding: 44px 20px; }
  .promo-banner      { padding: 32px 24px; text-align: center; justify-content: center; }
}
@media (max-width: 480px) {
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .games-grid  { grid-template-columns: 1fr; }
}
