/* =============================================================
   FAFABET88S — สไตล์เว็บพนันออนไลน์ของไทย
   โทน: ดำลึก + ทอง + แดง  /  Premium Thai gambling aesthetic
   inspired by mainstream Thai gaming portals (UFABET-class)
   ============================================================= */

/* ----- TOKEN ----- */
:root {
  --bg-0: #050507;
  --bg-1: #0d0d12;
  --bg-2: #14141c;
  --bg-3: #1c1d28;
  --bg-4: #262734;
  --line: rgba(255, 215, 0, 0.18);
  --line-2: rgba(255, 255, 255, 0.06);

  --gold-1: #FFE57F;
  --gold-2: #FFD700;
  --gold-3: #FFA500;
  --gold-4: #B8860B;

  --red:    #E63946;
  --red-2:  #FF1744;
  --crimson:#B71C1C;

  --green:  #00C853;
  --blue:   #2196F3;
  --line-green: #06C755;
  --tg:     #0088CC;

  --text:   #F5F5F5;
  --text-2: #B0B0B0;
  --text-3: #757575;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 215, 0, 0.10), transparent 60%),
    radial-gradient(1000px 600px at -10% 30%, rgba(230, 57, 70, 0.08), transparent 60%),
    var(--bg-1);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Prompt', 'Sukhumvit Set', 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  min-height: 100vh;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-1); }

img { display: block; max-width: 100%; }

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5 { font-family: 'Kanit', 'Prompt', sans-serif; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }

.gold-text {
  background: linear-gradient(135deg, #FFF8DC 0%, #FFE57F 18%, #FFD700 38%, #FFA500 60%, #FFD700 82%, #FFE57F 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  font-weight: 900;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.red-text  { color: var(--red); }
.dim       { color: var(--text-2); }
.dim-2     { color: var(--text-3); }
.mono      { font-family:'JetBrains Mono','Prompt','Courier New',monospace; }
.upper     { text-transform: uppercase; letter-spacing: 0.04em; }
.center    { text-align: center; }
.right     { text-align: right; }

/* ----- BUTTON ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  background: var(--bg-3);
  color: var(--text);
  cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(180deg, #FFE57F 0%, #FFD700 35%, #FFA500 70%, #B8860B 100%);
  color: #1a1208;
  border: 1px solid rgba(255,215,0,.6);
  box-shadow:
    0 6px 18px rgba(255, 165, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -2px 4px rgba(0,0,0,.18);
  font-weight: 700;
}
.btn-gold:hover {
  box-shadow:
    0 10px 24px rgba(255, 165, 0, 0.55),
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -2px 4px rgba(0,0,0,.18);
}

.btn-red {
  background: linear-gradient(180deg, #FF1744 0%, #E63946 50%, #B71C1C 100%);
  color: white;
  border: 1px solid rgba(255, 23, 68, 0.6);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.35), inset 0 1px 0 rgba(255,255,255,.18);
  font-weight: 700;
}

.btn-line {
  background: var(--line-green);
  color: white;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 6px 14px rgba(6, 199, 85, 0.35);
  font-weight: 700;
}

.btn-tg {
  background: var(--tg);
  color: white;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 6px 14px rgba(0, 136, 204, 0.35);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-2);
}
.btn-ghost:hover { background: rgba(255, 215, 0, 0.08); }

.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.btn-xl { padding: 16px 40px; font-size: 18px; border-radius: 14px; }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 8px; }

/* ----- LAYOUT ----- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.row  { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.col  { display: flex; flex-direction: column; gap: 12px; }
.between { justify-content: space-between; }
.spacer-s { height: 16px; }
.spacer   { height: 32px; }
.spacer-l { height: 64px; }

/* ----- HEADER : TOP STRIP ----- */
.topbar {
  background: linear-gradient(90deg, #0a0a0e 0%, #14141c 50%, #0a0a0e 100%);
  border-bottom: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--text-2);
}
.topbar .container { padding-top: 7px; padding-bottom: 7px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar .pulse-online {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green);
}
.pulse-online::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}
.topbar a { color: var(--text-2); }
.topbar a:hover { color: var(--gold-2); }
.topbar .sep { color: var(--text-3); }

/* ----- HEADER : MAIN ----- */
header.main {
  background: linear-gradient(180deg, rgba(13,13,18,.95), rgba(13,13,18,.85));
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(12px);
}
header.main .container { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 24px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Kanit', sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand .logo-mark {
  width: 44px; height: 44px;
  background: radial-gradient(circle at 30% 30%, #FFE57F, #FFA500 60%, #8B5A00);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  border: 2px solid #FFD700;
  box-shadow: 0 0 18px rgba(255, 165, 0, 0.45);
}
.brand-text { display: flex; flex-direction: column; }
.brand-text small {
  font-family: 'Prompt'; font-size: 10px; letter-spacing: 0.04em;
  color: var(--text-2); font-weight: 400;
  text-transform: uppercase; line-height: 1.2;
}

.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.header-cta .balance {
  display: none;
  font-family:'JetBrains Mono','Prompt',monospace;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--gold-2);
  font-weight: 700;
}

/* ----- NAV ----- */
nav.main-nav {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-bottom: 1px solid var(--line);
}
nav.main-nav .container {
  display: flex; gap: 4px; flex-wrap: wrap; padding-top: 0; padding-bottom: 0;
  align-items: stretch;
}
nav.main-nav a {
  position: relative;
  padding: 14px 18px;
  color: var(--text);
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s, background .15s, border-color .15s;
}
nav.main-nav a:hover {
  color: var(--gold-2);
  background: rgba(255, 215, 0, 0.05);
}
nav.main-nav a.active {
  color: var(--gold-2);
  border-bottom-color: var(--gold-2);
  background: linear-gradient(180deg, rgba(255,215,0,.08), transparent 80%);
}
nav.main-nav a .badge {
  font-family: 'Prompt';
  font-size: 9px;
  font-weight: 700;
  background: var(--red);
  color: white;
  padding: 2px 5px;
  border-radius: 8px;
  letter-spacing: 0;
  text-transform: uppercase;
  position: absolute;
  top: 6px; right: 4px;
  line-height: 1;
}

/* ----- PROMO RIBBON ----- */
.ribbon {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(230, 57, 70, .18) 0,
      rgba(230, 57, 70, .18) 18px,
      rgba(255, 215, 0, .12) 18px,
      rgba(255, 215, 0, .12) 36px
    ),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
}
.ribbon .pill {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  margin-right: 6px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* ----- MAIN ----- */
main { padding: 24px 0 80px; }
section[data-page] { display: none; }
section[data-page].show { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

h1.page-title {
  font-size: 38px;
  margin-bottom: 6px;
}
.page-sub { color: var(--text-2); margin-bottom: 24px; }

/* ----- HERO SLIDER ----- */
.hero-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  height: 360px;
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 40px 56px;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide.slide-1 {
  background:
    radial-gradient(circle at 70% 50%, rgba(255, 215, 0, 0.35), transparent 50%),
    linear-gradient(135deg, #2a1810 0%, #1a0e08 60%, #0a0608 100%);
}
.hero-slide.slide-2 {
  background:
    radial-gradient(circle at 30% 50%, rgba(230, 57, 70, 0.45), transparent 55%),
    linear-gradient(135deg, #2c0e10 0%, #170808 60%, #0a0408 100%);
}
.hero-slide.slide-3 {
  background:
    radial-gradient(circle at 50% 50%, rgba(33, 150, 243, 0.30), transparent 55%),
    linear-gradient(135deg, #07172e 0%, #050d1a 60%, #02060c 100%);
}
.hero-slide h2 {
  font-size: 56px;
  line-height: 1.05;
  margin-bottom: 12px;
  font-weight: 900;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero-slide p { font-size: 18px; max-width: 540px; margin-bottom: 24px; color: var(--text); }
.hero-slide .pct {
  font-family: 'Kanit'; font-weight: 900;
  font-size: 120px;
  line-height: 0.9;
  position: absolute;
  right: 50px; top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.hero-dots .dot {
  width: 28px; height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background .2s;
}
.hero-dots .dot.active { background: var(--gold-2); }

/* ----- STATS BAR ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.stat-card {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; gap: 14px; align-items: center;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  opacity: 0.7;
}
.stat-icon {
  width: 50px; height: 50px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.stat-icon.red { background: rgba(230, 57, 70, 0.12); border-color: rgba(230, 57, 70, 0.3); }
.stat-icon.green { background: rgba(0, 200, 83, 0.12); border-color: rgba(0, 200, 83, 0.3); }
.stat-icon.blue  { background: rgba(33, 150, 243, 0.12); border-color: rgba(33, 150, 243, 0.3); }
.stat-card .num { font-family: 'Kanit'; font-weight: 800; font-size: 24px; color: var(--gold-2); line-height: 1; }
.stat-card .label { color: var(--text-2); font-size: 12px; margin-top: 4px; }

/* ----- SECTION HEADER ----- */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.sec-head h2 {
  font-size: 26px;
  display: inline-flex; align-items: center; gap: 12px;
}
.sec-head h2::before {
  content: '';
  display: inline-block;
  width: 4px; height: 24px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--gold-3);
}
.sec-head .more { color: var(--gold-2); font-size: 13px; font-weight: 600; }

/* ----- CATEGORY GRID ----- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.cat-card {
  background: linear-gradient(160deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 14px 30px rgba(255, 165, 0, 0.18);
}
.cat-card .emoji {
  font-size: 44px;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
}
.cat-card h3 { font-size: 17px; color: var(--gold-2); margin-bottom: 4px; font-weight: 700; }
.cat-card p { color: var(--text-2); font-size: 12px; }
.cat-card .hot {
  position: absolute; top: 8px; right: 8px;
  background: var(--red);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ----- GAME CARD GRID ----- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.game-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.game-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.game-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.game-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform .2s, border-color .2s;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--line); }
.game-card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line-2);
  filter: brightness(0.95);
}
.game-card .body { padding: 10px 12px; }
.game-card h4 {
  font-family: 'Prompt';
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card .meta {
  color: var(--text-3);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.game-card .play-btn {
  width: 100%;
  padding: 7px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
  color: #1a1208;
  font-weight: 700;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Prompt';
}
.game-card .play-btn:hover { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); }
.game-card .tag {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--red);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 2;
}
.game-card .tag.gold { background: var(--gold-3); color: #1a1208; }
.game-card .tag.green { background: var(--green); }
.game-card .tag.blue { background: var(--blue); }
.game-card .provider-tag {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  color: var(--gold-2);
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ----- LIVE CASINO CARD ----- */
.live-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.live-card .thumb {
  width: 100%; height: 200px; object-fit: cover;
  filter: brightness(0.85) saturate(1.1);
}
.live-card .live-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--red);
  color: white;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.5);
}
.live-card .live-badge::before {
  content: ''; width: 7px; height: 7px;
  background: white; border-radius: 50%;
  animation: pulse 1s ease-in-out infinite;
}
.live-card .body { padding: 12px 14px; }
.live-card h4 { font-family: 'Kanit'; font-size: 16px; font-weight: 700; }
.live-card .info { color: var(--text-2); font-size: 12px; margin: 4px 0 10px; }
.live-card .info strong { color: var(--gold-2); }

/* ----- TABLE ----- */
table.tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
  margin-bottom: 24px;
}
table.tbl th, table.tbl td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
}
table.tbl th {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  color: var(--gold-2);
  font-family: 'Kanit';
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--line);
}
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tr:hover td { background: rgba(255, 215, 0, 0.03); }

.odds-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px;
  padding: 7px 10px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family:'JetBrains Mono','Prompt',monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-2);
  cursor: pointer;
  transition: all .15s;
  margin: 1px;
}
.odds-btn:hover {
  background: var(--gold-2);
  color: #1a1208;
  border-color: var(--gold-2);
  transform: translateY(-1px);
}
.odds-btn.selected {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.odds-btn small {
  display: block;
  font-family: 'Prompt';
  font-size: 9px;
  font-weight: 500;
  opacity: 0.65;
  text-transform: uppercase;
}

.team-cell { display: flex; flex-direction: column; gap: 2px; }
.team-cell strong { font-weight: 600; }

.live-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--red);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 6px;
  letter-spacing: 0.04em;
}
.live-tag::before {
  content: ''; width: 5px; height: 5px;
  background: white; border-radius: 50%;
  animation: pulse 1s ease-in-out infinite;
}

/* ----- LOTTERY CARD ----- */
.lotto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.lotto-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 215, 0, 0.15), transparent 50%),
    linear-gradient(160deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.lotto-card .flag {
  position: absolute; top: 14px; right: 14px;
  font-size: 26px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
.lotto-card h4 { font-family: 'Kanit'; font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.lotto-card .next { font-size: 12px; color: var(--text-2); margin-bottom: 12px; }
.lotto-card .countdown {
  display: flex; gap: 8px; margin: 10px 0 14px;
}
.lotto-card .countdown .unit {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 0;
  text-align: center;
  flex: 1;
}
.lotto-card .countdown .num {
  font-family:'JetBrains Mono','Prompt';
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-2);
  line-height: 1;
}
.lotto-card .countdown .lab {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
}
.lotto-card .last {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 12px;
}
.lotto-card .last .num {
  font-family:'JetBrains Mono','Prompt';
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--gold-2);
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ----- WITHDRAWAL TICKER ----- */
.withdraw-feed {
  background: linear-gradient(160deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 32px;
}
.withdraw-feed table { width: 100%; font-size: 13px; }
.withdraw-feed th, .withdraw-feed td { padding: 8px 0; text-align: left; }
.withdraw-feed th {
  color: var(--text-3);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-2);
}
.withdraw-feed td { border-bottom: 1px dashed var(--line-2); font-family:'JetBrains Mono','Prompt'; }
.withdraw-feed .amt { color: var(--green); font-weight: 700; }
.withdraw-feed .new-row { animation: highlight 1.2s ease; }
@keyframes highlight {
  0%   { background: rgba(255, 215, 0, 0.2); }
  100% { background: transparent; }
}

/* ----- PROVIDER WALL ----- */
.provider-wall {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.provider-tag {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  color: var(--gold-2);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Kanit';
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  transition: all .15s;
}
.provider-tag:hover { background: var(--gold-2); color: #1a1208; }

/* ----- BANK GRID (footer) ----- */
.bank-grid-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
}
.bank-grid-title::before {
  content: '🏦';
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(255, 165, 0, 0.4));
}
.bank-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}
.bank-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-height: 72px;
  overflow: hidden;
  transition: border-color .25s ease, transform .15s ease, box-shadow .25s ease;
  text-decoration: none;
}
.bank-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  transition: transform .25s ease;
}
.bank-card::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2), var(--gold-3));
  border-radius: 2px;
  transition: width .25s ease;
  box-shadow: 0 0 6px rgba(255, 165, 0, 0.6);
}
.bank-card:hover {
  border-color: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 165, 0, 0.18);
}
.bank-card:hover::after {
  width: 60%;
}
.bank-card:hover img {
  transform: scale(1.04);
}

/* ----- PROMO BOX ----- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.promo {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
}
.promo::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-3));
}
.promo.red::before { background: linear-gradient(90deg, var(--red), var(--crimson)); }
.promo.blue::before { background: linear-gradient(90deg, var(--blue), #0d47a1); }
.promo h3 { font-size: 20px; margin-bottom: 6px; }
.promo .pct {
  font-family: 'Kanit'; font-weight: 900;
  font-size: 80px;
  line-height: 0.85;
  margin-bottom: 8px;
}
.promo p { color: var(--text-2); font-size: 13px; margin-bottom: 14px; }
.promo .terms {
  font-family:'JetBrains Mono','Prompt';
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 14px;
}

/* ----- VIP TIER ----- */
.tier-row td:first-child {
  font-family: 'Kanit'; font-weight: 800; font-size: 15px;
}
.tier-row.bronze td:first-child   { color: #CD7F32; }
.tier-row.silver td:first-child   { color: #C0C0C0; }
.tier-row.gold td:first-child     { color: var(--gold-2); }
.tier-row.platinum td:first-child { color: #E5E4E2; }
.tier-row.diamond td:first-child {
  background: linear-gradient(135deg, #FFE57F, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----- WHY US ----- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.why-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 215, 0, 0.10), transparent 50%),
    linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.why-card .icon { font-size: 36px; margin-bottom: 10px; }
.why-card h4 { font-family: 'Kanit'; font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--gold-2); }
.why-card p { color: var(--text-2); font-size: 13px; }

/* ----- FORM ----- */
.form-card {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  max-width: 100%;
}
.form-card h3 { font-family: 'Kanit'; font-size: 22px; margin-bottom: 4px; }
.form-card .form-sub { color: var(--text-2); font-size: 13px; margin-bottom: 20px; }

label {
  display: block;
  font-family: 'Prompt';
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--text);
}
label .req { color: var(--red); }

input, select, textarea {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: 'Prompt';
  font-size: 14px;
  transition: border-color .15s, background .15s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold-2);
  background: rgba(255, 215, 0, 0.04);
}
input::placeholder { color: var(--text-3); }
.field-hint { font-size: 11px; color: var(--text-3); margin-top: 4px; }

.col-2-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ----- FAQ ----- */
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 8px;
}
.faq-item[open] { background: var(--bg-3); border-color: var(--line); }
.faq-item summary {
  font-family: 'Kanit';
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after {
  content: '＋';
  color: var(--gold-2);
  font-size: 18px;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: '－'; }
.faq-item p { margin-top: 12px; color: var(--text-2); font-size: 14px; }

/* ----- LINE FLOATING BUTTON ----- */
.line-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.line-fab a {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Kanit';
  font-weight: 800;
  font-size: 11px;
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  position: relative;
  transition: transform .15s;
}
.line-fab a:hover { transform: scale(1.08); }
.line-fab .line {
  background: var(--line-green);
  font-size: 13px;
  letter-spacing: 0.04em;
  animation: glow 2s ease-in-out infinite;
}
.line-fab .tg { background: var(--tg); font-size: 22px; }
.line-fab .top { background: var(--bg-3); border: 1px solid var(--line); color: var(--gold-2); }
@keyframes glow {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 0 rgba(6, 199, 85, 0.5); }
  50%      { box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 14px rgba(6, 199, 85, 0); }
}

/* ----- FOOTER ----- */
footer.site {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  margin-top: 60px;
}
footer.site .container:first-of-type {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
footer.site h5 {
  font-family: 'Kanit';
  font-size: 14px;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  font-weight: 700;
}
footer.site ul { list-style: none; }
footer.site li { padding: 4px 0; }
footer.site a { color: var(--text-2); font-size: 13px; }
footer.site a:hover { color: var(--gold-2); }
footer.site .about p { color: var(--text-2); font-size: 13px; margin-bottom: 14px; }
footer.site .about .brand { font-size: 22px; margin-bottom: 12px; }

.footer-bottom {
  border-top: 1px solid var(--line-2);
  margin-top: 36px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12px;
  color: var(--text-3);
}
/* ----- RESPONSIVE ----- */
@media (max-width: 1180px) {
  .cat-grid    { grid-template-columns: repeat(3, 1fr); }
  .game-grid   { grid-template-columns: repeat(3, 1fr); }
  .game-grid.cols-6 { grid-template-columns: repeat(4, 1fr); }
  .stats       { grid-template-columns: repeat(2, 1fr); }
  .lotto-grid  { grid-template-columns: repeat(2, 1fr); }
  .promo-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-grid    { grid-template-columns: repeat(2, 1fr); }
  .bank-grid   { grid-template-columns: repeat(7, 1fr); }
  footer.site .container:first-of-type { grid-template-columns: 1fr 1fr 1fr; }
  .col-2-form  { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .container { padding: 0 14px; }
  .hero-slider { height: 300px; }
  .hero-slide { padding: 24px; }
  .hero-slide h2 { font-size: 32px; }
  .hero-slide p { font-size: 14px; }
  .hero-slide .pct { font-size: 64px; right: 16px; opacity: 0.18; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid, .game-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .lotto-grid { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .why-grid   { grid-template-columns: 1fr 1fr; }
  .stats      { grid-template-columns: 1fr 1fr; }
  .bank-grid  { grid-template-columns: repeat(7, 1fr); gap: 8px; }
  .bank-card  { padding: 8px; min-height: 56px; border-radius: 10px; }
  footer.site .container:first-of-type { grid-template-columns: 1fr 1fr; }
  nav.main-nav a { padding: 12px 14px; font-size: 13px; }
  h1.page-title { font-size: 28px; }
  .line-fab a { width: 52px; height: 52px; }
  .header-cta .btn { padding: 8px 14px; font-size: 13px; }
  .header-cta .balance { display: none; }
  table.tbl { font-size: 12px; }
  table.tbl th, table.tbl td { padding: 8px 8px; }
  .odds-btn { min-width: 50px; padding: 6px; font-size: 12px; }
}
@media (max-width: 480px) {
  .brand { font-size: 18px; }
  .brand .logo-mark { width: 36px; height: 36px; font-size: 20px; }
  .brand-text small { display: none; }
  .topbar { font-size: 11px; }
  .topbar .container { gap: 10px; }
  .topbar .hide-xs { display: none; }
  .header-cta .btn-ghost { display: none; }
  .bank-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bank-card  { aspect-ratio: 5 / 3; min-height: 54px; padding: 10px; }
}
