@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('/assets/fonts/line-seed-th/LINESeedSansTH-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('/assets/fonts/line-seed-th/LINESeedSansTH-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('/assets/fonts/line-seed-th/LINESeedSansTH-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0f19;
  --sidebar-bg: #111624;
  --surface: #131929;
  --surface-2: #182035;
  --surface-deep: #0b0f1b;
  --border: rgba(255, 255, 255, 0.08);
  --teal: #00959b;
  --teal-mid: #248583;
  --teal-bright: #2dd4bf;
  --emerald: #00959b;
  --emerald-bright: #2dd4bf;
  --gold: #f59e0b;
  --gold-soft: #fbbf24;
  --text: #ffffff;
  --muted: #8f9bb3;
  --danger: #ef4444;
  --radius: 14px;
  --sidebar-w: 232px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'LINE Seed Sans TH', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }

/* ===== SUNNY666 DESKTOP LEFT SIDEBAR SHELL ===== */
.s6-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.s6-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 20px;
  z-index: 65;
  overflow-y: auto;
}

.s6-sidebar-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 6px 16px;
}
.s6-sidebar-logo img {
  width: 126px;
  height: auto;
  object-fit: contain;
}

.s6-side-nav {
  display: flex;
  flex-direction: column;
}
.s6-side-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.s6-side-nav a:hover,
.s6-side-nav a.active {
  background: rgba(0, 149, 155, 0.14);
  color: #ffffff;
}
.s6-side-nav a.active svg {
  color: var(--teal-bright);
}
.s6-side-nav svg {
  width: 21px;
  height: 21px;
  color: #7b89a6;
  flex-shrink: 0;
}

/* ===== MAIN COLUMN + TOP BAR ===== */
.s6-main-col {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

/* Mobile Sticky Top Bar (Hidden on Desktop) */
.s6-mob-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 60;
  height: 60px;
  background: rgba(13, 17, 29, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 10px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.s6-mob-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.s6-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 12px;
  background: #0d1220;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.s6-top-pill-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.s6-top-pill-lbl {
  font-size: 10px;
  color: var(--muted);
}
.s6-top-pill-val {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
}
.s6-top-pill-val .dot-live {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2dd4bf;
  box-shadow: 0 0 8px #2dd4bf;
}

.s6-icon-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.s6-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #141c2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #5eead4;
  transition: transform 0.12s, border-color 0.15s;
}
.s6-icon-btn:hover { transform: translateY(-1px); border-color: var(--teal); }
.s6-icon-btn.gold-coin {
  background: radial-gradient(circle at 30% 30%, #fde047, #f59e0b 70%, #b45309);
  color: #451a03;
  border-color: rgba(253, 224, 71, 0.5);
}

/* Desktop Floating Top-Right Utility Bar */
.s6-desk-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 24px 0;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
.s6-desk-pill-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0d1220;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 16px;
}

/* Main Content Container */
.tbw-wrap {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 24px 64px;
}

/* ===== SUNNY666 WELCOME CARD (EXACT MATCH TO r1at333) ===== */
.s6-welcome-card {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(100deg, #131929 0%, #151c2f 52%, #101726 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 20px;
  margin-bottom: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 16px;
}
.s6-welcome-left {
  position: relative;
  z-index: 2;
}
.s6-welcome-greet {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
}
.s6-status-box {
  background: rgba(11, 15, 27, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.s6-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.s6-status-row span:first-child { color: var(--muted); font-weight: 700; }
.s6-status-row strong { color: #e2e8f0; font-weight: 800; text-align: right; }
.s6-status-row strong.teal { color: var(--teal-bright); }

.s6-welcome-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 128px;
}
.s6-welcome-art img {
  width: 100%;
  max-height: 158px;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 8px 22px rgba(0, 149, 155, 0.28));
}

/* ===== 2 SIGNATURE TEAL CTA BUTTONS ===== */
.s6-cta-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.s6-teal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(180deg, #56abae 0%, #2a8b89 52%, #1d6d6f 100%);
  border: 1px solid rgba(153, 246, 228, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px rgba(0, 149, 155, 0.25);
  transition: filter 0.15s, transform 0.12s;
}
.s6-teal-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ===== 3 OFFICIAL FEATURE BARS (CASHBACK / COMMISSION / REWARD) ===== */
.s6-perk-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
}
.s6-perk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s, background 0.15s;
}
.s6-perk-row:hover {
  border-color: rgba(0, 149, 155, 0.45);
  background: var(--surface-2);
}
.s6-perk-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.s6-perk-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.s6-perk-ico.blue { background: rgba(56, 189, 248, 0.14); color: #38bdf8; }
.s6-perk-ico.green { background: rgba(45, 212, 191, 0.14); color: #2dd4bf; }
.s6-perk-ico.gold { background: rgba(251, 191, 36, 0.16); color: #fbbf24; }
.s6-perk-title { font-size: 14px; font-weight: 800; color: #ffffff; line-height: 1.25; }
.s6-perk-sub { font-size: 12px; color: var(--muted); }
.s6-perk-right {
  text-align: right;
  flex-shrink: 0;
}
.s6-perk-val { font-size: 13px; font-weight: 800; color: var(--teal-bright); }
.s6-perk-unit { font-size: 11px; color: var(--muted); display: block; }

/* ===== 4 OFFICIAL SQUARE QUICK-ACTION PROMO CARDS ===== */
.s6-quick-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.s6-quick-tile {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 149, 155, 0.35);
  background: var(--surface);
  aspect-ratio: 1 / 1;
  transition: transform 0.16s, border-color 0.16s;
}
.s6-quick-tile:hover {
  transform: translateY(-3px);
  border-color: var(--teal-bright);
}
.s6-quick-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== OFFICIAL BANNER CAROUSEL ===== */
.tbw-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface);
  margin-bottom: 22px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.tbw-slides { display: flex; transition: transform 0.4s ease; }
.tbw-slide { min-width: 100%; aspect-ratio: 3 / 1; position: relative; background: #0a101c; }
.tbw-slide img { width: 100%; height: 100%; object-fit: cover; }
.tbw-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 15, 25, 0.72);
}
.tbw-dot { width: 8px; height: 8px; border-radius: 999px; border: none; background: rgba(255, 255, 255, 0.38); cursor: pointer; padding: 0; }
.tbw-dot.active { width: 22px; background: var(--teal-bright); }

/* ===== OFFICIAL SUNNY666 GAMES LOBBY & ICON CATEGORY BAR ===== */
.s6-games-head {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
}

.s6-cat-strip {
  display: flex;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  scrollbar-width: none;
}
.s6-cat-strip::-webkit-scrollbar { display: none; }

.s6-cat-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 60px;
  padding: 4px 4px 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}
.s6-cat-btn .s6-cat-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #141a2b;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  padding: 7px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.s6-cat-btn .s6-cat-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.s6-cat-btn:hover,
.s6-cat-btn.active {
  color: var(--teal-bright);
}
.s6-cat-btn.active .s6-cat-ico {
  border-color: var(--teal);
  box-shadow: 0 0 14px rgba(0, 149, 155, 0.45);
  background: rgba(0, 149, 155, 0.14);
}
.s6-cat-btn.active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
}

/* Official 4-Col Desktop / 3-Col Mobile Portrait Provider Grid */
.tbw-panel { display: none; }
.tbw-panel.active { display: block; }

.s6-provider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.s6-provider-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--teal);
  background: #0d1322;
  aspect-ratio: 5 / 8;
  transition: transform 0.16s, box-shadow 0.16s;
}
.s6-provider-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 149, 155, 0.32);
}
.s6-provider-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s6-provider-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(11, 15, 25, 0.82);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: #5eead4;
}

/* ===== BUTTONS (TEAL-UNIFIED FOR SUBPAGES & WIDGETS) ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(153, 246, 228, 0.3);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(180deg, #48a2a5 0%, #248583 55%, #19686a 100%);
  box-shadow: 0 4px 16px rgba(0, 149, 155, 0.28);
  transition: transform 0.12s, filter 0.15s;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: #1c1917;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.28);
  transition: transform 0.12s, filter 0.15s;
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 149, 155, 0.55);
  background: rgba(0, 149, 155, 0.12);
  color: #5eead4;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.btn-outline:hover { background: rgba(0, 149, 155, 0.22); }

/* ===== SEO/AEO CARDS, TOOLS, SIMULATOR, TABLES & FAQ (PRESERVED!) ===== */
.tbw-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.tbw-quick-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); transition: border-color 0.15s, transform 0.15s;
}
.tbw-quick-card:hover { border-color: rgba(45, 212, 191, 0.5); transform: translateY(-2px); }
.tbw-quick-ico {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(0, 149, 155, 0.15); border: 1px solid rgba(45, 212, 191, 0.35);
  display: grid; place-items: center; flex-shrink: 0; color: var(--teal-bright);
}
.tbw-quick-title { font-size: 14px; font-weight: 800; line-height: 1.25; }
.tbw-quick-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

.tbw-hero-box {
  background: linear-gradient(135deg, rgba(0, 149, 155, 0.14), rgba(19, 25, 41, 0.96) 50%, rgba(245, 158, 11, 0.06));
  border: 1px solid rgba(0, 149, 155, 0.28);
  border-radius: 16px;
  padding: 22px;
  margin: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.tbw-hero-box h1 { margin: 0 0 8px; font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; line-height: 1.3; }
.tbw-hero-box p { margin: 0; color: #cbd5e1; font-size: 14px; max-width: 720px; }
.tbw-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tbw-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: rgba(0, 149, 155, 0.16); border: 1px solid rgba(45, 212, 191, 0.4); color: #5eead4;
}
.tbw-badge-gold { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.35); color: var(--gold-soft); }

.tbw-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 14px; flex-wrap: wrap; }
.tbw-sec-head h2 { margin: 0; font-size: 19px; font-weight: 800; }
.tbw-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tbw-tab {
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: #cbd5e1; font-size: 13px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.tbw-tab.active { background: var(--teal); border-color: var(--teal-bright); color: #ffffff; }
.tbw-tab img { width: 18px; height: 18px; object-fit: contain; }

.tbw-game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tbw-provider-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tbw-game-card {
  background: var(--surface); border: 1.5px solid rgba(0, 149, 155, 0.45); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s, border-color 0.15s;
}
.tbw-game-card:hover { transform: translateY(-3px); border-color: var(--teal-bright); }
.tbw-game-thumb { position: relative; aspect-ratio: 3 / 4; background: #0a101c; overflow: hidden; }
.tbw-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tbw-rtp-pill {
  position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 800; background: rgba(11, 15, 25, 0.88);
  border: 1px solid rgba(45, 212, 191, 0.55); color: #5eead4;
}
.tbw-game-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.tbw-game-title { font-size: 14px; font-weight: 800; line-height: 1.25; }
.tbw-game-meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.tbw-game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.tbw-game-actions a, .tbw-game-actions button { padding: 7px 6px; border-radius: 8px; font-size: 12px; font-weight: 700; text-align: center; cursor: pointer; }
.tbw-provider-card { background: var(--surface); border: 1.5px solid var(--teal); border-radius: 14px; overflow: hidden; display: block; transition: transform 0.15s; }
.tbw-provider-card:hover { transform: translateY(-2px); }
.tbw-provider-card img { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; }

.tbw-sim-shell {
  background: linear-gradient(160deg, #121a2d, #0a0f1b);
  border: 1.5px solid rgba(0, 149, 155, 0.45);
  border-radius: 18px; padding: 18px; margin-bottom: 24px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}
.tbw-sim-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tbw-sim-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.tbw-stat-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.tbw-stat-label { font-size: 11px; color: var(--muted); }
.tbw-stat-val { font-size: 18px; font-weight: 800; color: var(--text); }
.tbw-stat-val.emerald { color: var(--teal-bright); }
.tbw-stat-val.gold { color: var(--gold-soft); }
.tbw-reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; background: #070b14; border: 1px solid rgba(0, 149, 155, 0.4); border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.tbw-reel-col { display: flex; flex-direction: column; gap: 6px; }
.tbw-cell {
  height: 62px; border-radius: 10px; background: linear-gradient(145deg, #141e33, #0c1322);
  border: 1px solid rgba(148, 163, 184, 0.16); display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-weight: 800; font-size: 15px; transition: transform 0.15s, border-color 0.15s;
}
.tbw-cell.wild { border-color: #f59e0b; color: #fcd34d; background: rgba(245, 158, 11, 0.16); }
.tbw-cell.scatter { border-color: #2dd4bf; color: #5eead4; background: rgba(0, 149, 155, 0.22); }
.tbw-cell.hit { border-color: #2dd4bf; box-shadow: 0 0 14px rgba(45, 212, 191, 0.45); transform: scale(1.03); }
.tbw-cell.spinning { opacity: 0.45; transform: translateY(3px); }
.tbw-cell small { font-size: 10px; font-weight: 700; opacity: 0.78; }
.tbw-sim-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tbw-bet-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tbw-bet-btn { padding: 7px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.tbw-bet-btn.active { border-color: var(--teal-bright); color: var(--teal-bright); background: rgba(0, 149, 155, 0.18); }
.tbw-sim-msg { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(0, 149, 155, 0.14); border: 1px solid rgba(45, 212, 191, 0.3); font-size: 13px; font-weight: 700; color: #ccfbf1; }

.tbw-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 18px; }
.tbw-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.tbw-field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.tbw-field input, .tbw-field select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: #0a101c; color: var(--text); font-size: 14px; font-weight: 700; }
.tbw-check-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 10px; cursor: pointer; }
.tbw-check-item input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }

.tbw-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.tbw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbw-table th, .tbw-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.tbw-table th { background: var(--surface-2); color: #5eead4; font-weight: 800; }
.tbw-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.tbw-faq summary { font-weight: 800; font-size: 14px; cursor: pointer; }
.tbw-faq p { margin: 10px 0 0; font-size: 13px; color: #cbd5e1; }
.tbw-code { background: #070b14; border: 1px solid var(--border); border-radius: 10px; padding: 14px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #99f6e4; }

.tbw-aeo-box {
  margin: 14px 0 0; padding: 14px 16px; border-radius: 14px;
  background: rgba(0, 149, 155, 0.12); border: 1px solid rgba(45, 212, 191, 0.38);
}
.tbw-aeo-label {
  display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 10px;
  border-radius: 999px; background: var(--teal); color: #ffffff; margin-bottom: 6px;
}
.tbw-aeo-box p { margin: 0; font-size: 14px; line-height: 1.65; color: #e2e8f0; }

/* Footer */
.tbw-footer {
  border-top: 1px solid var(--border);
  background: #080c15;
  padding: 24px 24px 40px;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: auto;
}
.tbw-footer-inner { max-width: 1132px; margin: 0 auto; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.tbw-footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.tbw-footer-links a:hover { color: var(--teal-bright); }

/* Floating SUNNY666 Circular Teal Chat FAB */
.s6-chat-fab {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 75;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3ba4a7, #1d7578);
  border: 1.5px solid rgba(153, 246, 228, 0.45);
  box-shadow: 0 8px 24px rgba(0, 149, 155, 0.45);
  display: grid;
  place-items: center;
  color: #ffffff;
  transition: transform 0.15s;
}
.s6-chat-fab:hover { transform: scale(1.06); }
.s6-chat-fab svg { width: 25px; height: 25px; }

/* Mobile Fixed 5-Tab Bottom Navigation Bar */
.tbw-mob-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: #111624;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
}
.tbw-mob-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #8f9bb3;
  padding: 2px;
}
.tbw-mob-nav a.active, .tbw-mob-nav a:hover { color: var(--teal-bright); }
.tbw-mob-nav svg { width: 21px; height: 21px; }

/* ===== RESPONSIVE MOBILE (MATCHES 390px r1at333 PIXEL-FOR-PIXEL) ===== */
@media (max-width: 960px) {
  .s6-sidebar, .s6-desk-topbar { display: none; }
  .s6-main-col { margin-left: 0; }
  .s6-mob-header { display: flex; }
  .tbw-wrap { padding: 12px 10px 88px; }
  .s6-welcome-card {
    grid-template-columns: 1fr;
    padding: 16px 14px;
    gap: 10px;
  }
  .s6-welcome-greet { text-align: center; font-size: 17px; }
  .s6-welcome-art {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    pointer-events: none;
    justify-content: center;
  }
  .s6-welcome-art img { max-height: 100%; object-fit: cover; }
  .s6-quick-4 {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .s6-quick-4::-webkit-scrollbar { display: none; }
  .s6-quick-tile { min-width: 162px; width: 162px; flex-shrink: 0; }
  .s6-provider-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tbw-provider-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tbw-game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tbw-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .tbw-sim-stats { grid-template-columns: repeat(2, 1fr); }
  .tbw-form-grid { grid-template-columns: repeat(2, 1fr); }
  .tbw-mob-nav { display: grid; }
  .s6-chat-fab { bottom: 76px; right: 12px; width: 52px; height: 52px; }
  .tbw-footer { padding: 20px 14px 92px; }
}
@media (max-width: 480px) {
  .s6-teal-btn { height: 50px; font-size: 15px; }
  .tbw-hero-box { padding: 16px; }
  .tbw-cell { height: 52px; font-size: 12px; }
  .tbw-reels { gap: 5px; padding: 8px; }
  .tbw-form-grid { grid-template-columns: 1fr; }
}
