/* XPGFUN.COM — Mobile-First Design System */
:root {
  --sky: #00a6ff;
  --sky-dark: #0077d4;
  --sky-deep: #0058a3;
  --sky-soft: #e6f6ff;
  --green: #16c172;
  --green-dark: #0e9f5c;
  --gold: #ffc313;
  --gold-deep: #e09600;
  --hot: #ff7a00;
  --red: #eb2121;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --text: #182230;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 14px 36px rgba(15, 23, 42, 0.14);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Kanit', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: clip;
  padding-bottom: 88px;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
button { cursor: pointer; touch-action: manipulation; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 12px; }
@media (min-width: 768px) { .container { padding: 0 18px; } }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

/* === TOP HEADER (2-TIER) === */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, #00a6ff 0%, #008ee6 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 120, 212, 0.28);
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; min-height: 66px; padding: 8px 0;
}
.header-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.menu-toggle {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.34); background: rgba(255,255,255,0.16);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.55rem;
}
.brand-logo { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.brand-logo img, .brand-logo svg { height: 32px; width: auto; }
@media (min-width: 768px) { .brand-logo img, .brand-logo svg { height: 38px; } }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.btn-hdr {
  height: 42px; padding: 0 13px; border-radius: 10px; font-size: 0.92rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  white-space: nowrap; border: none; transition: transform 0.15s, filter 0.15s;
}
@media (max-width: 430px) {
  .brand-logo img, .brand-logo svg { height: 28px; }
  .btn-hdr { height: 40px; padding: 0 10px; font-size: 0.86rem; }
}
@media (max-width: 380px) {
  .menu-toggle { width: 42px; height: 42px; font-size: 1.42rem; }
  .header-left { gap: 6px; }
  .brand-logo img, .brand-logo svg { height: 25px; }
  .header-actions { gap: 4px; }
  .btn-hdr { height: 39px; padding: 0 8px; font-size: 0.81rem; }
}
.btn-hdr:active { transform: scale(0.97); }
.btn-login { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.45); }
.btn-register { background: linear-gradient(180deg, #25d366 0%, var(--green-dark) 100%); color: #fff; box-shadow: 0 3px 10px rgba(14,159,92,0.35); }
.btn-icon {
  width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.26); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
@media (max-width: 429px) { .header-cs-btn { display: none; } }
.wallet-pill {
  background: rgba(8, 34, 70, 0.45); border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px; padding: 4px 10px; font-size: 0.8rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; color: #fff;
}
.wallet-pill b { color: var(--gold); }

/* Tier-2 Navigation Strip */
.header-nav-wrap {
  border-top: 1px solid rgba(255,255,255,0.16);
  background: rgba(0, 88, 163, 0.24);
}
.header-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 11px 0 9px;
}
.header-nav::-webkit-scrollbar { display: none; }
.nav-group { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-link {
  position: relative; min-height: 44px; padding: 9px 15px; border-radius: 10px;
  font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.95);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}
@media (min-width: 1024px) {
  .header-nav { padding: 7px 0; }
  .nav-link { min-height: 38px; padding: 7px 12px; font-size: 0.9rem; }
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.2); color: #fff; font-weight: 600; }
.nav-badge-hot {
  position: absolute; top: -3px; right: 2px;
  background: linear-gradient(135deg, #ff9900, #eb2121); color: #fff;
  font-size: 0.56rem; font-weight: 800; padding: 0 4px; border-radius: 4px; line-height: 1.3;
}
.nav-rewards {
  background: linear-gradient(135deg, #ffe14d 0%, #ff9900 100%);
  color: #1c1917 !important; font-weight: 800 !important;
  border: 1.5px solid #fff3c4; box-shadow: 0 2px 10px rgba(255,195,19,0.45);
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* === HERO CAROUSEL === */
.hero-section { padding: 12px 0 6px; }
.hero-carousel {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #0a2463;
}
.hero-track { display: flex; transition: transform 0.45s cubic-bezier(.22,.8,.22,1); }
.hero-slide {
  min-width: 100%; position: relative; min-height: 210px;
  display: flex; align-items: center; background-size: cover; background-position: center;
}
@media (min-width: 768px) { .hero-slide { min-height: 300px; } }
@media (min-width: 1024px) { .hero-slide { min-height: 350px; } }
.hero-overlay { position: absolute; inset: 0; }
.hero-content {
  position: relative; z-index: 2; padding: 20px 18px; max-width: 580px; color: #fff;
}
@media (min-width: 768px) { .hero-content { padding: 34px 42px; } }
.hero-pill {
  display: inline-block; background: rgba(255,255,255,0.2); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35); border-radius: 999px;
  padding: 3px 12px; font-size: 0.76rem; font-weight: 600; margin-bottom: 8px;
}
.hero-content h1, .hero-content h2 {
  margin: 0 0 6px; font-size: 1.38rem; line-height: 1.22; font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
@media (min-width: 768px) { .hero-content h1, .hero-content h2 { font-size: 2.15rem; } }
.hero-content p { margin: 0 0 14px; font-size: 0.88rem; color: rgba(255,255,255,0.92); }
@media (min-width: 768px) { .hero-content p { font-size: 1.04rem; } }
.hero-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-cta-gold {
  background: linear-gradient(180deg, #ffd73b 0%, #ff9500 100%);
  color: #1c1917; font-weight: 800; padding: 9px 16px; border-radius: 10px;
  font-size: 0.88rem; border: none; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 18px rgba(255, 149, 0, 0.42);
}
.btn-cta-glass {
  background: rgba(255,255,255,0.18); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.5); color: #fff; font-weight: 600;
  padding: 9px 15px; border-radius: 10px; font-size: 0.88rem; display: inline-flex; align-items: center;
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(15, 23, 42, 0.45); color: #fff; font-size: 1.1rem;
  display: none; align-items: center; justify-content: center;
}
@media (min-width: 768px) { .hero-arrow { display: flex; } }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 4;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 999px; border: none; padding: 0;
  background: rgba(255,255,255,0.45); transition: width 0.2s, background 0.2s;
}
.hero-dot.active { width: 24px; background: #fff; }

/* === SECTION HEADERS & SWIMLANES === */
.band { margin: 18px 0; }
.band-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
}
.band-title {
  margin: 0; font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 7px;
}
@media (min-width: 768px) { .band-title { font-size: 1.18rem; } }
.count-pill {
  background: var(--sky-soft); color: var(--sky-dark); font-size: 0.74rem;
  font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.band-more {
  font-size: 0.82rem; font-weight: 600; color: var(--sky-dark);
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
}

.swimlane {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.swimlane::-webkit-scrollbar { display: none; }

/* Lobby Provider Banner Cards (Sports blue / Casino red / Esports violet) */
.lobby-card {
  flex: 0 0 74%; min-width: 228px; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden; padding: 15px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 132px;
  position: relative; box-shadow: var(--shadow); transition: transform 0.16s;
  background-size: cover; background-position: center;
}
.lobby-card > * { position: relative; z-index: 2; }
.lobby-card:hover { transform: translateY(-2px); }
@media (min-width: 640px) { .lobby-card { flex: 0 0 42%; } }
@media (min-width: 1024px) { .lobby-card { flex: 0 0 24%; min-height: 142px; } }
.lobby-card-sports {
  background-image: linear-gradient(125deg, rgba(0,46,120,0.92) 0%, rgba(0,115,220,0.78) 65%, rgba(0,180,255,0.58) 100%), url('/media/hero-sports.webp');
}
.lobby-card-casino {
  background-image: linear-gradient(125deg, rgba(112,10,20,0.92) 0%, rgba(190,24,42,0.78) 65%, rgba(245,92,40,0.58) 100%), url('/media/hero-casino.webp');
}
.lobby-card-esports {
  background-image: linear-gradient(125deg, rgba(38,12,88,0.92) 0%, rgba(102,36,204,0.78) 65%, rgba(168,85,247,0.58) 100%), url('/media/cat-esports.webp');
}
.lobby-logo-box {
  background: rgba(255,255,255,0.96); border-radius: 10px; padding: 5px 10px;
  height: 44px; display: inline-flex; align-items: center; align-self: flex-start;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}
.lobby-logo-box img { max-height: 32px; max-width: 132px; width: auto; height: auto; object-fit: contain; }
.lobby-name { font-size: 1.12rem; font-weight: 800; margin-top: 10px; text-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.lobby-sub { font-size: 0.78rem; color: rgba(255,255,255,0.92); }
.lobby-card-art { padding: 0; aspect-ratio: 16 / 9; min-height: 132px; background: #0b162a; }
.lobby-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Popular Game Type Icons Row */
.type-chip {
  flex: 0 0 auto; min-width: 92px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: 0 2px 6px rgba(15,23,42,0.03); transition: border-color 0.15s, transform 0.15s;
}
.type-chip:hover { border-color: var(--sky); transform: translateY(-2px); }
.type-ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--sky-soft);
  padding: 5px; display: flex; align-items: center; justify-content: center;
}
.type-ico img { width: 100%; height: 100%; object-fit: contain; }
.type-chip span { font-size: 0.82rem; font-weight: 700; white-space: nowrap; }

/* Featured Rewards Mid Banner */
.mid-rewards-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(110deg, #092c7a 0%, #0077d4 52%, #00a6ff 100%);
  box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.mid-rewards-banner h3 { margin: 0 0 2px; font-size: 1.1rem; font-weight: 800; color: #ffe14d; }
.mid-rewards-banner p { margin: 0; font-size: 0.84rem; color: rgba(255,255,255,0.92); }

/* Provider Logo Grid & Filter Chips */
.provider-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
@media (min-width: 480px) { .provider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .provider-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) { .provider-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } }
.provider-tile {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 8px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 92px; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.provider-tile:hover { border-color: var(--sky); box-shadow: var(--shadow); transform: translateY(-2px); }
.provider-logo-wrap {
  width: 100%; height: 48px; display: flex; align-items: center; justify-content: center;
}
.provider-logo {
  max-width: 100%; max-height: 46px; width: auto; height: auto; object-fit: contain;
}
.provider-tile small { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.prov-filter-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; min-height: 44px;
  border-radius: 12px; border: 1.5px solid var(--border); background: #fff;
  font-size: 0.84rem; font-weight: 700; color: var(--text); white-space: nowrap; flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.prov-filter-chip img { height: 26px; max-width: 78px; width: auto; object-fit: contain; }
.prov-filter-chip.active, .prov-filter-chip:hover {
  border-color: var(--sky); background: var(--sky-soft); color: var(--sky-dark);
  box-shadow: 0 0 0 2px rgba(0,166,255,0.18);
}
.badge-corner {
  position: absolute; top: 6px; right: 6px; z-index: 3; font-size: 0.62rem; font-weight: 800;
  padding: 2px 6px; border-radius: 5px; color: #fff; background: var(--hot); box-shadow: 0 2px 6px rgba(0,0,0,0.28);
}
.badge-corner.new { background: var(--green-dark); }
.badge-corner.exclusive { background: linear-gradient(135deg, #7c3aed, #db2777); }
.badge-corner.vip { background: linear-gradient(135deg, #d97706, #fbbf24); color: #1c1917; }

/* Game Cards */
.games-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
@media (min-width: 640px) { .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) { .games-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } }
.swimlane .game-card { flex: 0 0 46%; min-width: 152px; scroll-snap-align: start; }
@media (min-width: 640px) { .swimlane .game-card { flex: 0 0 28%; } }
@media (min-width: 1024px) { .swimlane .game-card { flex: 0 0 18.5%; } }

.game-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.16s, box-shadow 0.16s;
}
.game-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--sky); }
.game-thumb {
  position: relative; aspect-ratio: 16 / 10; padding: 0;
  overflow: hidden; background: #0f172a;
}
.game-thumb-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.25s ease;
}
.game-card:hover .game-thumb-img { transform: scale(1.06); }
.game-thumb-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,23,42,0.04) 45%, rgba(15,23,42,0.62) 100%);
  display: flex; align-items: flex-end; justify-content: space-between; padding: 6px;
}
.game-thumb-code {
  font-size: 0.62rem; font-weight: 800; color: #fff; letter-spacing: 0.6px;
  text-transform: uppercase; background: rgba(15,23,42,0.72); backdrop-filter: blur(4px);
  padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.22);
}
.game-play-pill {
  width: 24px; height: 24px; border-radius: 50%; background: var(--sky);
  color: #fff; font-size: 0.68rem; font-weight: 900; display: inline-flex;
  align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.game-info { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.game-title { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; color: var(--muted); }
.rtp-tag { color: var(--green-dark); font-weight: 700; }

/* Bento Grid 2+3 (Other Game Categories) */
.bento-top { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
@media (min-width: 640px) { .bento-top { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.bento-bot { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .bento-bot { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.bento-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  min-height: 136px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
  background-size: cover; background-position: center; box-shadow: var(--shadow);
}
@media (min-width: 768px) { .bento-top .bento-card { min-height: 170px; } .bento-bot .bento-card { min-height: 152px; } }
.bento-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(10,18,40,0.82) 0%, rgba(10,18,40,0.28) 70%, transparent 100%);
}
.bento-card > * { position: relative; z-index: 2; }
.bento-card h3 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; }
.bento-card p { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.9); max-width: 62%; }
.bento-btn {
  align-self: flex-start; margin-top: 10px; background: rgba(255,255,255,0.22);
  backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.45);
  padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
}

/* Native App Download Strip */
.app-banner {
  border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  background: linear-gradient(120deg, #04327d 0%, #007be5 55%, #00a6ff 100%);
  padding: 20px; display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) { .app-banner { grid-template-columns: 1.3fr 0.7fr; padding: 26px 32px; } }
.app-qr-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.qr-box { background: #fff; padding: 6px; border-radius: 10px; width: 88px; height: 88px; flex-shrink: 0; }
.app-visual img { border-radius: 14px; max-height: 220px; width: 100%; object-fit: cover; }

/* Sponsorship & Info Cards */
.cards-3 { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.sponsor-mini {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 8px rgba(15,23,42,0.03);
}
.sponsor-avatar {
  width: 54px; height: 54px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sponsor-img {
  width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border); background: #0f172a;
}
.sponsor-mini h4 { margin: 0 0 2px; font-size: 0.94rem; }
.sponsor-mini p { margin: 0; font-size: 0.76rem; color: var(--muted); }

/* Expandable SEO Block */
.seo-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin: 18px 0;
}
.seo-box h2 { margin: 0 0 8px; font-size: 1rem; font-weight: 700; }
.seo-body { font-size: 0.86rem; color: var(--muted); max-height: 76px; overflow: hidden; transition: max-height 0.3s ease; }
.seo-body.open { max-height: 2000px; }
.seo-toggle {
  margin: 10px auto 0; display: block; padding: 7px 18px; border-radius: 8px;
  border: 1px solid var(--sky); background: #fff; color: var(--sky-dark);
  font-size: 0.84rem; font-weight: 600;
}

/* === FOOTER === */
.site-footer { background: #fff; border-top: 1px solid var(--border); margin-top: 24px; padding: 20px 0 28px; }
.partner-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px;
  padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border);
}
.partner-logo-item {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 10px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
}
.partner-logo-item img { max-height: 26px; max-width: 96px; width: auto; object-fit: contain; }
.pay-logo-chip {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 8px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
}
.pay-logo-chip img { max-height: 22px; width: auto; object-fit: contain; }
.footer-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.footer-col h4 { margin: 0 0 8px; font-size: 0.88rem; font-weight: 700; color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.footer-col li a { font-size: 0.8rem; color: var(--muted); }
.footer-col li a:hover { color: var(--sky-dark); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pay-badge {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 8px; font-size: 0.7rem; font-weight: 700; color: #334155;
}
.social-row { display: flex; gap: 8px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 50%; background: transparent; padding: 0; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
}
.social-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer-legal {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px; font-size: 0.76rem; color: var(--muted);
}
@media (min-width: 768px) { .footer-legal { flex-direction: row; justify-content: space-between; align-items: center; } }

/* === FILTER BAR & TOOLBARS (Catalog / Promo / Blog) === */
.toolbar {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; margin: 12px 0;
}
@media (min-width: 768px) { .toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.pill-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tab {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-size: 0.82rem; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.pill-tab.active, .pill-tab:hover { background: var(--sky); color: #fff; border-color: var(--sky); }
.search-sort { display: flex; gap: 8px; flex-shrink: 0; }
.inp, .sel {
  height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-size: 16px; min-width: 0;
}
.inp:focus, .sel:focus { outline: none; border-color: var(--sky); }

/* === PROMOTIONS LAYOUT === */
.promo-shell { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
@media (min-width: 1024px) { .promo-shell { grid-template-columns: 230px 1fr; } }
.promo-sidebar {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px;
}
@media (min-width: 1024px) { .promo-sidebar { flex-direction: column; align-self: start; } }
.promo-cat {
  padding: 8px 12px; border-radius: 8px; font-size: 0.84rem; font-weight: 600;
  color: var(--text); white-space: nowrap; display: flex; align-items: center; justify-content: space-between;
}
.promo-cat-l { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.promo-cat-ico { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; flex-shrink: 0; }
.promo-cat.active, .promo-cat:hover { background: var(--sky-soft); color: var(--sky-dark); }
.promo-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .promo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .promo-grid { grid-template-columns: repeat(3, 1fr); } }
.promo-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.promo-card img { width: 100%; height: 136px; object-fit: cover; }
.promo-card-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.promo-card-body h3 { margin: 0; font-size: 0.94rem; line-height: 1.35; }
.promo-card-body p { margin: 0; font-size: 0.8rem; color: var(--muted); flex: 1; }

/* === THEMED SECTIONS (VIP DARK & USDT NAVY) === */
.theme-vip { background: #141518; color: #f8fafc; }
.theme-vip .seo-box, .theme-vip .vip-card { background: #1e2026; border-color: #323540; color: #f8fafc; }
.theme-vip .seo-body { color: #cbd5e1; }
.vip-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid #323540; margin: 12px 0; }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.84rem; }
.data-table th, .data-table td { padding: 11px 12px; text-align: center; border-bottom: 1px solid rgba(148,163,184,0.18); }
.data-table th:first-child, .data-table td:first-child { text-align: left; font-weight: 700; }
.vip-gold { color: #fbbf24; font-weight: 700; }

.theme-usdt { background: #070d26; color: #f1f5f9; }
.theme-usdt .usdt-card { background: rgba(18, 32, 74, 0.85); border: 1px solid rgba(56, 189, 248, 0.28); border-radius: var(--radius); padding: 16px; }
.usdt-ico { width: 52px; height: 52px; margin-bottom: 10px; display: block; }
.theme-usdt .seo-box { background: #0d163a; border-color: #1e2f6b; color: #f1f5f9; }

/* === GAME DETAIL STAGE & DEMO SIMULATOR === */
.game-stage {
  background: #0b1220; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid #1e293b; color: #fff; margin: 12px 0;
}
.game-canvas {
  min-height: 290px; padding: 24px 16px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(0,166,255,0.28), #0b1220 75%);
}
.game-bar {
  background: #fff; color: var(--text); padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.reel-box { display: flex; gap: 10px; justify-content: center; margin: 14px 0; }
.reel-cell {
  width: 68px; height: 68px; border-radius: 12px; background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,195,19,0.65); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; box-shadow: inset 0 0 18px rgba(0,0,0,0.45);
}

/* === SPORTS BETTING MATCHES & BET SLIP === */
.match-row {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 768px) { .match-row { grid-template-columns: 1.4fr 1.6fr; align-items: center; } }
.odds-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.odd-btn {
  padding: 8px 6px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; font-size: 0.76rem;
}
.odd-btn b { color: var(--sky-dark); font-size: 0.9rem; }
.odd-btn.picked { background: var(--sky); border-color: var(--sky); color: #fff; }
.odd-btn.picked b { color: #ffe14d; }

/* Sports & Esports Artwork Selector Grid */
.sport-visual-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
@media (min-width: 640px) { .sport-visual-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sport-visual-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sport-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s, border-color 0.15s;
}
.sport-card:hover, .sport-card.active {
  border-color: var(--sky); box-shadow: 0 0 0 2px rgba(0,166,255,0.2); transform: translateY(-2px);
}
.sport-card-art {
  width: 100%; height: 68px; object-fit: cover; display: block;
  background: linear-gradient(120deg, #0b2d6b, #1d4ed8);
}
.sport-card-fallback {
  width: 100%; height: 68px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; background: linear-gradient(120deg, #0b2d6b, #0284c7); color: #fff;
}
.sport-card-lbl {
  padding: 8px 10px; font-size: 0.82rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
}
.sport-card-lbl small { color: var(--muted); font-weight: 600; font-size: 0.72rem; white-space: nowrap; }

/* === AUTH MODAL & DRAWERS === */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(4px);
  z-index: 90; display: none; align-items: center; justify-content: center; padding: 14px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  width: 100%; max-width: 760px; max-height: 92vh; overflow-y: auto;
  background: #fff; color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-split { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .modal-split { grid-template-columns: 0.95fr 1.05fr; } }
.modal-art {
  padding: 20px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 140px; background-size: cover; background-position: center;
}
.modal-body { padding: 20px; }
.modal-close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(15,23,42,0.12); color: var(--text); font-weight: 800; font-size: 1rem;
}
.form-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.btn-primary {
  height: 44px; border-radius: 10px; border: none;
  background: linear-gradient(180deg, #00a6ff 0%, #0077d4 100%);
  color: #fff; font-weight: 700; font-size: 0.96rem; width: 100%;
}

/* Mobile Slide Drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.55); z-index: 80; display: none;
}
.drawer-backdrop.open { display: block; }
.mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 88%; max-width: 350px;
  background: #fff; z-index: 85; transform: translateX(-100%); transition: transform 0.24s ease;
  padding: 18px 16px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.drawer-close {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 1.35rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-cta-btn {
  min-height: 46px; border-radius: 10px; font-size: 0.98rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer-section-title {
  font-size: 0.82rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin: 8px 4px 2px;
}
.drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 50px; padding: 12px 16px; border-radius: 12px;
  font-size: 1.06rem; font-weight: 700; background: var(--surface-2); color: var(--text);
}
.drawer-link:hover, .drawer-link:active { background: var(--sky-soft); color: var(--sky-dark); }
.drawer-link-left { display: inline-flex; align-items: center; gap: 10px; }

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 65;
  background: #fff; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  height: calc(74px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(15,23,42,0.08);
}
@media (min-width: 1024px) { .mobile-bottom-nav { display: none; } }
.mb-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 0.8rem; font-weight: 700; color: var(--muted); border: none; background: none; padding: 6px 2px;
}
.mb-ico { font-size: 1.45rem; line-height: 1; }
.mb-item.active { color: var(--sky-dark); }
.mb-item-center {
  margin-top: -26px; width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, #ffe14d 0%, #ff9900 100%); color: #1c1917;
  box-shadow: 0 6px 16px rgba(255,153,0,0.45); border: 3px solid #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; line-height: 1.15;
}

/* Floating Live Chat Button + Drawer */
.fab-chat {
  position: fixed; right: 14px; bottom: 88px; z-index: 62;
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff;
  background: linear-gradient(135deg, #00a6ff, #0066cc); color: #fff;
  box-shadow: var(--shadow-lg); font-size: 1.35rem; display: flex; align-items: center; justify-content: center;
}
@media (min-width: 1024px) { .fab-chat { bottom: 20px; right: 20px; width: 54px; height: 54px; } }
.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 120;
  background: #0f172a; color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 0.84rem; font-weight: 600; box-shadow: var(--shadow-lg); display: none;
}
.toast.show { display: block; }
