
@font-face {
  font-family: 'Prompt';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/prompt-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Prompt';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/prompt-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Prompt';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/prompt-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Prompt';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/prompt-700.woff2') format('woff2');
}

:root {
  --bg-body: #0D0F16;
  --bg-surface: #121622;
  --bg-card: #191E2B;
  --bg-elevated: #22293C;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(248, 183, 49, 0.42);
  --gold: #F8B731;
  --gold-soft: #FAC358;
  --gold-light: #FFD572;
  --green: #00A63E;
  --green-light: #22C55E;
  --red: #CE2A2D;
  --text: #F2F4F8;
  --muted: #A2A9B0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.48);
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-body); }
body {
  margin: 0;
  background: var(--bg-body);
  color: var(--text);
  font-family: 'Prompt', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 15, 22, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 18px;
}
.brand-link { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-link img { height: 34px; width: auto; }
@media (max-width: 520px) {
  .header-inner { gap: 6px; padding: 0 10px; height: 56px; }
  .header-left { gap: 8px; }
  .menu-btn { width: 32px; height: 32px; font-size: 16px; }
  .brand-link img { height: 24px; }
  .header-right { gap: 5px; }
  .hdr-search-btn { width: 32px; height: 32px; }
  .header-right .btn { padding: 6px 9px; font-size: 12px; }
  .cat-bar-wrap { top: 56px; }
}
.header-partner-pill {
  display: none;
  align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(206, 42, 45, 0.14);
  border: 1px solid rgba(206, 42, 45, 0.42);
  font-size: 12px; font-weight: 600; color: #FCA5A5;
  white-space: nowrap;
}
@media (min-width: 960px) { .header-partner-pill { display: inline-flex; } }
.header-partner-pill .dot-red {
  width: 7px; height: 7px; border-radius: 50%; background: #EF4444;
}

.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hdr-link-app {
  display: none; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--gold-light);
  white-space: nowrap;
}
.hdr-link-app:hover { border-color: var(--gold); }
@media (min-width: 768px) { .hdr-link-app { display: inline-flex; } }

.hdr-search-btn {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.hdr-search-btn:hover { color: var(--gold); border-color: var(--border-gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 8px; font-weight: 600; font-size: 13.5px;
  padding: 8px 16px; cursor: pointer; border: none; transition: transform .15s, opacity .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.94; transform: translateY(-1px); }
.btn-outline-gold {
  background: rgba(248, 183, 49, 0.08);
  border: 1px solid var(--gold);
  color: var(--gold-light);
}
.btn-gold {
  background: linear-gradient(180deg, #FFD572 0%, #F8B731 60%, #D9920B 100%);
  color: #0D0F16;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(248, 183, 49, 0.25);
}
.btn-green {
  background: linear-gradient(180deg, #16C759 0%, #00A63E 100%);
  color: #FFFFFF;
}
.btn-dark {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Header logged-in wallet pill */
.wallet-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border-gold);
  border-radius: 9px; padding: 4px 10px; font-size: 13px;
}
.wallet-bal { color: var(--gold-light); font-weight: 700; }

/* Mobile Drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72); z-index: 120;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 86vw;
  background: #111521; border-right: 1px solid var(--border);
  z-index: 130; transform: translateX(-100%); transition: transform .22s ease;
  display: flex; flex-direction: column; padding: 16px; overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.drawer-close {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 16px;
}
.drawer-group-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--muted); margin: 14px 4px 6px; font-weight: 600;
}
.drawer-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--text); margin-bottom: 2px;
}
.drawer-link:hover, .drawer-link.active { background: var(--bg-card); color: var(--gold); }
.drawer-link img { width: 20px; height: 20px; object-fit: contain; }

/* Hero Carousel */
.hero-wrap { position: relative; width: 100%; overflow: hidden; background: #090B11; }
.hero-track {
  display: flex; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%; width: 100%; display: block; position: relative;
}
.hero-slide img {
  width: 100%; max-height: 410px; object-fit: cover; object-position: center; margin: 0 auto;
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(13, 15, 22, 0.72); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 18px; cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { border-color: var(--gold); color: var(--gold); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
.hero-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 999px; border: none; padding: 0;
  background: rgba(255,255,255,0.38); cursor: pointer; transition: width .2s, background .2s;
}
.hero-dot.active { width: 24px; background: var(--gold); }

/* Marquee + Partner Strip */
.marquee-bar {
  background: #141926; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.marquee-inner {
  display: flex; align-items: center; gap: 12px;
}
.marquee-badge {
  flex-shrink: 0; padding: 3px 10px; border-radius: 6px;
  background: rgba(248,183,49,0.16); color: var(--gold); font-size: 12px; font-weight: 700;
}
.marquee-scroll {
  overflow: hidden; white-space: nowrap; flex: 1; position: relative;
}
.marquee-text {
  display: inline-block; padding-left: 0; font-size: 13px; color: #D5DCE8;
  animation: joyufa-marquee 28s linear infinite;
}
.marquee-scroll:hover .marquee-text { animation-play-state: paused; }
@keyframes joyufa-marquee { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }

.partner-ribbon {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  background: linear-gradient(90deg, #191E2B 0%, #241920 60%, #191E2B 100%);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 18px; margin: 14px auto;
}
.partner-ribbon-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.partner-tag-laliga {
  background: #CE2A2D; color: #fff; font-weight: 700; font-size: 12px;
  padding: 4px 10px; border-radius: 6px; letter-spacing: 1px;
}
.partner-ribbon-text { font-size: 13.5px; font-weight: 600; color: var(--text); }
.partner-ribbon-cta { font-size: 13px; font-weight: 600; color: var(--gold); white-space: nowrap; }

/* Sticky Category Bar */
.cat-bar-wrap {
  position: sticky; top: 64px; z-index: 45;
  background: rgba(13, 15, 22, 0.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.cat-bar {
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; padding: 10px 0; scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  background: var(--bg-card); border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; color: #C1C7CD; transition: all .15s;
}
.cat-tab img { width: 22px; height: 22px; object-fit: contain; }
.cat-tab:hover { color: var(--text); border-color: rgba(255,255,255,0.14); }
.cat-tab.active {
  background: linear-gradient(180deg, rgba(248,183,49,0.2) 0%, rgba(248,183,49,0.06) 100%);
  border-color: var(--gold); color: var(--gold-light);
}

/* Section Headers & Grids */
.section-block { margin: 26px 0; }
.sec-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.sec-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--text); margin: 0;
}
.sec-title .bar { width: 4px; height: 22px; border-radius: 99px; background: var(--gold); display: inline-block; }
.sec-more {
  padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--gold-light);
  white-space: nowrap;
}
.sec-more:hover { border-color: var(--gold); }

/* Jackpot Banner Ticker */
.jackpot-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 900px) { .jackpot-strip { grid-template-columns: repeat(2, 1fr); } }
.jackpot-box {
  background: linear-gradient(135deg, #1E2434 0%, #121723 100%);
  border: 1px solid var(--border-gold); border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 2px;
}
.jackpot-box small { font-size: 12px; color: var(--muted); }
.jackpot-val {
  font-size: 20px; font-weight: 700; color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

/* Game Grid & Cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1180px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .game-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 460px) { .game-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.game-row-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(175px, 195px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) transparent;
}
@media (max-width: 600px) { .game-row-scroll { grid-auto-columns: minmax(142px, 158px); } }

.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.game-thumb-wrap {
  position: relative; aspect-ratio: 623 / 467; overflow: hidden; background: #10141F;
}
.game-thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .3s;
}
.game-card:hover .game-thumb-wrap img { transform: scale(1.06); }
.game-badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  padding: 2px 8px; border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px;
}
.game-badge.hot { background: var(--red); color: #fff; }
.game-badge.new { background: var(--green); color: #fff; }
.game-badge.maint { background: #475569; color: #fff; }
.game-fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(13, 15, 22, 0.72); border: 1px solid rgba(255,255,255,0.18);
  color: #CBD5E1; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.game-fav-btn.is-fav { color: #FF4757; border-color: #FF4757; }
.game-jp-tag {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(13,15,22,0.92) 70%);
  padding: 14px 8px 5px; font-size: 11.5px; font-weight: 700; color: var(--gold-light);
  text-align: center;
}
.game-overlay {
  position: absolute; inset: 0; background: rgba(13, 15, 22, 0.74);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s; z-index: 2;
}
.game-card:hover .game-overlay { opacity: 1; }
.game-play-cta {
  background: linear-gradient(180deg, #FFD572, #F8B731);
  color: #0D0F16; font-weight: 700; font-size: 12.5px;
  padding: 8px 16px; border-radius: 999px; border: none; cursor: pointer;
}
.game-meta {
  padding: 9px 10px; display: flex; flex-direction: column; gap: 2px;
}
.game-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-prov { font-size: 11px; color: var(--muted); text-transform: uppercase; }

/* Sports Cards & Live Match Table */
.sports-cards-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
@media (max-width: 1024px) { .sports-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .sports-cards-grid { grid-template-columns: repeat(2, 1fr); } }
.sport-hall-card {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-card);
  transition: transform .18s, border-color .18s; cursor: pointer;
}
.sport-hall-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.sport-hall-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.sport-hall-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(13,15,22,0.95) 60%);
  padding: 26px 12px 12px;
}
.sport-hall-caption h3 { margin: 0; font-size: 15px; font-weight: 700; color: #fff; }
.sport-hall-caption p { margin: 2px 0 0; font-size: 12px; color: var(--gold-light); }

.match-board {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; margin-top: 16px;
}
.match-row {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr auto; gap: 10px;
  align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.match-row:last-child { border-bottom: none; }
@media (max-width: 820px) {
  .match-row { grid-template-columns: 1fr; gap: 8px; }
}
.match-league { font-size: 11.5px; color: var(--gold); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.badge-live { background: var(--red); color: #fff; font-size: 10.5px; padding: 1px 7px; border-radius: 4px; font-weight: 700; }
.match-teams { font-size: 14.5px; font-weight: 700; margin-top: 3px; }
.odds-btn {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 10px; text-align: center; cursor: pointer; color: var(--text);
  display: flex; flex-direction: column; gap: 1px; font-size: 12px;
}
.odds-btn:hover, .odds-btn.picked { border-color: var(--gold); background: rgba(248,183,49,0.14); }
.odds-btn b { color: var(--gold-light); font-size: 13.5px; }

/* Lobby Filter Bar */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 16px;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fpill {
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--bg-surface); border: 1px solid var(--border); color: var(--muted);
  cursor: pointer;
}
.fpill.active, .fpill:hover { background: var(--gold); color: #0D0F16; border-color: var(--gold); }
.search-input {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); padding: 8px 14px; font-size: 13.5px; min-width: 220px;
}
.search-input:focus { outline: none; border-color: var(--gold); }

/* App Showcase & Partner Showcase */
.split-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center;
  background: linear-gradient(135deg, #161B2A 0%, #10131C 100%);
  border: 1px solid var(--border); border-radius: 18px; padding: 28px;
}
@media (max-width: 860px) { .split-card { grid-template-columns: 1fr; padding: 20px; } }
.store-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 12px;
  background: var(--bg-elevated); border: 1px solid var(--border-gold);
  font-weight: 600; font-size: 14px;
}
.store-btn:hover { background: rgba(248,183,49,0.14); }

/* Promo Cards Hub */
.promo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 860px) { .promo-grid { grid-template-columns: 1fr; } }
.promo-card {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr;
  min-height: 200px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(90deg, #16185E 0%, #1B246D 100%);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .18s, border-color .18s;
}
.promo-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.promo-card-body { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; z-index: 2; }
.promo-status {
  display: inline-block; align-self: flex-start;
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.promo-status.live { background: var(--green); color: #fff; }
.promo-status.ended { background: #475569; color: #E2E8F0; }
.promo-card h3 { margin: 8px 0 6px; font-size: 17px; font-weight: 700; line-height: 1.3; color: #fff; }
.promo-card p { margin: 0; font-size: 13px; color: #D1D9EC; line-height: 1.45; }
.promo-more { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--gold-light); }
.promo-card-img { position: relative; overflow: hidden; }
.promo-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
@media (max-width: 500px) { .promo-card { grid-template-columns: 1fr; } .promo-card-img { height: 150px; } }

/* Tabs (Synchronized with ?tabSelected=) */
.tabs-bar {
  display: inline-flex; flex-wrap: wrap; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 6px; border-radius: 12px; margin-bottom: 18px;
}
.tab-btn {
  padding: 8px 18px; border-radius: 8px; border: none; background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer;
}
.tab-btn.active { background: var(--gold); color: #0D0F16; }

/* Breadcrumb & Detail Layout */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin: 16px 0 14px;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.5; }
.detail-hero-banner {
  width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  margin-bottom: 20px; background: #101420;
}
.detail-hero-banner img { width: 100%; max-height: 380px; object-fit: cover; }

.article-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px; margin-bottom: 24px;
}
.article-card h1, .article-card h2 { color: var(--gold-light); margin-top: 22px; margin-bottom: 10px; font-size: 20px; }
.article-card h1:first-child, .article-card h2:first-child { margin-top: 0; }
.article-card h3, .article-card h4 { color: #fff; margin-top: 16px; margin-bottom: 8px; font-size: 16.5px; }
.article-card p { color: #D5DCE8; margin: 8px 0; }
.article-card ul, .article-card ol { margin: 8px 0 14px 20px; color: #D5DCE8; }
.article-card li { margin: 6px 0; }

.table-scroll { overflow-x: auto; margin: 16px 0; border-radius: 12px; border: 1px solid var(--border); }
.rich-table { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--bg-surface); }
.rich-table th, .rich-table td {
  padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.rich-table th { background: var(--bg-elevated); color: var(--gold-light); font-weight: 700; }
.rich-table tr:last-child td { border-bottom: none; }

/* Help & Legal 2-col layout */
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; margin-top: 14px; }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; } }
.legal-sidebar {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px;
  position: sticky; top: 124px;
}
.legal-nav-item {
  display: block; padding: 10px 14px; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--muted); margin-bottom: 4px;
}
.legal-nav-item:hover, .legal-nav-item.active { background: var(--bg-elevated); color: var(--gold-light); }

/* VIP Page */
.vip-cards-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 24px;
}
@media (max-width: 1024px) { .vip-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .vip-cards-grid { grid-template-columns: repeat(2, 1fr); } }
.vip-tier-card {
  background: linear-gradient(155deg, #21283B 0%, #141824 100%);
  border: 1px solid var(--border-gold); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.vip-tier-top { display: flex; align-items: center; gap: 10px; }
.vip-tier-top img { width: 42px; height: 42px; object-fit: contain; }
.vip-tier-top h3 { margin: 0; font-size: 15.5px; color: var(--gold-light); }
.vip-kv { display: flex; justify-content: space-between; font-size: 12.5px; color: #CBD5E1; border-top: 1px solid var(--border); padding-top: 6px; }
.vip-kv b { color: #fff; }
.vip-matrix th:first-child, .vip-matrix td:first-child {
  position: sticky; left: 0; background: #1B2130; z-index: 2; font-weight: 700; min-width: 170px;
}

/* Lucky Spin Wheel */
.spin-stage {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center;
  background: radial-gradient(circle at 30% 45%, #3d270a 0%, #151926 60%, #0D0F16 100%);
  border: 1px solid var(--border-gold); border-radius: 20px; padding: 28px; margin-bottom: 24px;
}
@media (max-width: 900px) { .spin-stage { grid-template-columns: 1fr; padding: 18px; } }
.wheel-wrap { position: relative; width: 340px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; }
.wheel-pointer {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 34px; z-index: 10; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.7));
}
.wheel-disk {
  width: 100%; height: 100%; border-radius: 50%;
  border: 10px solid #F8B731;
  box-shadow: 0 0 0 4px #6b4606, 0 20px 50px rgba(0,0,0,0.75);
  background: conic-gradient(
    #B91C1C 0deg 40deg, #1E293B 40deg 80deg,
    #C2410C 80deg 120deg, #1E293B 120deg 160deg,
    #B91C1C 160deg 200deg, #1E293B 200deg 240deg,
    #D97706 240deg 280deg, #1E293B 280deg 320deg,
    #991B1B 320deg 360deg
  );
  position: relative;
  transition: transform 4.5s cubic-bezier(0.15, 0.85, 0.2, 1);
}
.wheel-slice-label {
  position: absolute; top: 50%; left: 50%; transform-origin: 0 0;
  width: 78px; text-align: center;
  font-size: 11.5px; font-weight: 700; color: #FFF8DC; text-shadow: 0 2px 4px rgba(0,0,0,0.95);
  pointer-events: none;
}
.wheel-center-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 82px; height: 82px; border-radius: 50%; z-index: 11; cursor: pointer;
  border: 3px solid #FFF2B2;
  background: radial-gradient(circle, #FFD572 0%, #F8B731 60%, #B45309 100%);
  color: #0D0F16; font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.65);
}
.wheel-center-btn:disabled { opacity: 0.6; cursor: wait; }

.prize-grid-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px;
}
@media (max-width: 600px) { .prize-grid-cards { grid-template-columns: repeat(2, 1fr); } }
.prize-tile {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.prize-tile img { width: 48px; height: 48px; object-fit: contain; }
.prize-tile span { font-size: 12.5px; font-weight: 600; color: var(--gold-light); }

/* World Cup Voting & Streak Prediction */
.vote-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
@media (max-width: 900px) { .vote-grid { grid-template-columns: repeat(2, 1fr); } }
.vote-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 8px;
}
.vote-bar-bg { height: 7px; border-radius: 99px; background: var(--bg-surface); overflow: hidden; }
.vote-bar-fill { height: 100%; background: linear-gradient(90deg, #F8B731, #00A63E); }

.pick-1x2 { display: inline-flex; gap: 6px; }
.pick-btn {
  width: 36px; height: 32px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--text); font-weight: 700; cursor: pointer;
}
.pick-btn.active { background: var(--gold); color: #0D0F16; border-color: var(--gold); }

/* Provider Strip & Footer */
.provider-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
}
@media (max-width: 1024px) { .provider-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 600px) { .provider-grid { grid-template-columns: repeat(3, 1fr); } }
.provider-tile {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px; display: flex; align-items: center; justify-content: center; height: 54px;
}
.provider-tile img { max-height: 30px; max-width: 100%; object-fit: contain; }

.site-footer {
  background: #0A0C12; border-top: 1px solid var(--border);
  padding: 36px 0 88px; margin-top: 40px;
}
@media (min-width: 768px) { .site-footer { padding-bottom: 36px; } }
.footer-top-links {
  display: flex; flex-wrap: wrap; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
  margin-bottom: 24px; font-size: 14px; font-weight: 600;
}
.footer-top-links a:hover { color: var(--gold); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { margin: 0 0 12px; font-size: 15px; color: var(--gold-light); }
.footer-col p, .footer-col a { font-size: 13px; color: var(--muted); line-height: 1.65; display: block; margin-bottom: 6px; }
.footer-col a:hover { color: var(--gold); }
.pay-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.pay-strip img { height: 26px; width: auto; background: rgba(255,255,255,0.06); padding: 4px 8px; border-radius: 6px; }
.footer-bottom {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: var(--muted);
}

/* Floating Right Quick Dock & Live Chat */
.quick-dock {
  position: fixed; right: 12px; top: 34%; z-index: 48;
  display: none; flex-direction: column; gap: 8px;
  background: rgba(25, 30, 43, 0.92); border: 1px solid var(--border-gold);
  border-radius: 14px; padding: 8px; backdrop-filter: blur(8px);
}
@media (min-width: 1024px) { .quick-dock { display: flex; } }
.quick-dock a {
  width: 44px; height: 44px; border-radius: 10px; background: var(--bg-surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--gold-light); text-align: center;
  border: 1px solid var(--border);
}
.quick-dock a:hover { border-color: var(--gold); background: rgba(248,183,49,0.16); }

.chat-fab {
  position: fixed; right: 18px; bottom: 82px; z-index: 75;
  height: 48px; padding: 0 18px; border-radius: 999px;
  background: linear-gradient(135deg, #F8B731, #D98A0C); color: #0D0F16;
  border: 2px solid #FFF2B2; font-weight: 700; font-size: 13.5px;
  cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  display: flex; align-items: center; gap: 8px;
}
@media (min-width: 768px) { .chat-fab { bottom: 22px; } }
.chat-drawer {
  position: fixed; right: 18px; bottom: 80px; width: 340px; max-width: calc(100vw - 32px);
  background: #141926; border: 1px solid var(--border-gold); border-radius: 16px;
  z-index: 95; box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden;
}
.chat-drawer.open { display: flex; }
.chat-head {
  background: var(--bg-elevated); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
}
.chat-body { padding: 14px; height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.chat-msg { padding: 9px 12px; border-radius: 12px; max-width: 86%; line-height: 1.45; }
.chat-msg.bot { background: var(--bg-card); align-self: flex-start; border: 1px solid var(--border); }
.chat-msg.user { background: var(--gold); color: #0D0F16; align-self: flex-end; font-weight: 600; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat-chip {
  padding: 5px 10px; border-radius: 999px; background: var(--bg-card);
  border: 1px solid var(--border-gold); color: var(--gold-light); font-size: 11.5px; cursor: pointer;
}
.chat-form { display: flex; border-top: 1px solid var(--border); padding: 8px; gap: 6px; }
.chat-form input {
  flex: 1; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px; color: var(--text); font-size: 13px;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(13, 15, 22, 0.97); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px;
}
@media (min-width: 768px) { .mobile-bottom-nav { display: none; } }
.mobile-bottom-nav a, .mobile-bottom-nav button {
  background: transparent; border: none; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 600; cursor: pointer; padding: 4px 2px;
}
.mobile-bottom-nav a.active { color: var(--gold); }

/* Modals */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.78); z-index: 150;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  width: 100%; max-width: 460px; background: #161B28;
  border: 1px solid var(--border-gold); border-radius: 18px;
  padding: 24px; position: relative; box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
}
.form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-field label { font-size: 13px; font-weight: 600; color: #CBD5E1; }
.form-field input, .form-field select {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 9px;
  padding: 10px 12px; color: var(--text); font-size: 14px;
}
.form-field input:focus { outline: none; border-color: var(--gold); }
.toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 180;
  background: #142B1E; border: 1px solid var(--green); color: #A7F3D0;
  padding: 10px 20px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg); display: none;
}
.toast.show { display: block; }
