/* ============================================================
   BX66 · Onyx Hex Lattice — site #31
   Premium black + violet + cyan + silver · Hex pattern aesthetic
   Typography: Space Grotesk (heading) + IBM Plex Sans Thai (body) + JetBrains Mono (numerics)
   ============================================================ */


/* ----------------------------------------------------------------
   1.  RESET + ROOT TOKENS
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans Thai', 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: transparent; border: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }

:root {
  /* Surfaces */
  --bg-0: #0A0A0F;
  --bg-1: #11111B;
  --bg-2: #161623;
  --bg-3: #1F1F2E;
  --bg-card: #1A1A28;
  --bg-elev: #22223A;

  /* Brand palette */
  --violet: #9F4EFF;
  --violet-2: #6D28D9;
  --violet-3: #C084FC;
  --cyan: #22D3EE;
  --cyan-2: #06B6D4;
  --silver: #C0C0C0;
  --silver-2: #8A8A99;
  --green: #39FF14;
  --green-2: #10B981;
  --red: #EF4444;
  --amber: #FBBF24;

  /* Text */
  --text: #F5F5F5;
  --text-2: #B0B0C0;
  --text-3: #6E6E80;

  /* Lines */
  --line: rgba(159, 78, 255, .18);
  --line-2: rgba(255, 255, 255, .07);
  --line-3: rgba(34, 211, 238, .22);

  /* Gradients */
  --grad-violet-cyan: linear-gradient(135deg, #9F4EFF 0%, #22D3EE 100%);
  --grad-violet-deep: linear-gradient(180deg, #1A0A3E 0%, #0A0A0F 100%);
  --grad-card: linear-gradient(180deg, rgba(159, 78, 255, .06), rgba(34, 211, 238, .02));

  /* Shadows + glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 32px rgba(0, 0, 0, .55);
  --glow-violet: 0 0 28px rgba(159, 78, 255, .35);
  --glow-cyan: 0 0 22px rgba(34, 211, 238, .30);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* Layout */
  --container: 1280px;
  --gutter: 22px;

  /* Hex sizes */
  --hex-w: 156px;
  --hex-h: 180px;

  /* Z-index */
  --z-nav: 20;
  --z-floating: 60;
  --z-toast: 80;
}

body {
  background:
    radial-gradient(1100px 600px at 8% -10%, rgba(159, 78, 255, .14), transparent 60%),
    radial-gradient(900px 540px at 120% 6%, rgba(34, 211, 238, .10), transparent 60%),
    radial-gradient(720px 480px at 50% 110%, rgba(159, 78, 255, .10), transparent 60%),
    linear-gradient(180deg, #0A0A0F 0%, #11111B 100%);
}


/* ----------------------------------------------------------------
   2.  GLOBAL TYPOGRAPHY HELPERS
   ---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'IBM Plex Sans Thai', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
}
h1 { font-size: clamp(34px, 5vw, 60px); }
h2 { font-size: clamp(24px, 3vw, 38px); }
h3 { font-size: clamp(18px, 2.2vw, 24px); }
h4 { font-size: 16px; }

.mono {
  font-family: 'JetBrains Mono', 'Sarabun', ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.violet-text { color: var(--violet-3); }
.cyan-text { color: var(--cyan); }
.silver-text { color: var(--silver); }
.red-text { color: var(--red); }
.green-text { color: var(--green); }


/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}


/* ----------------------------------------------------------------
   3.  TOPBAR
   ---------------------------------------------------------------- */
.topbar {
  background: linear-gradient(180deg, #06060B, #0E0E18);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-2);
}
.topbar > .container {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-family: 'IBM Plex Sans Thai', sans-serif;
}
.topbar .spacer { flex: 1; }
.topbar a { color: var(--text-2); }
.topbar a:hover { color: var(--violet-3); }
.topbar .topbar-link { display: inline-flex; gap: 4px; align-items: center; }
.topbar .line-link { color: var(--green-2); }
.topbar .line-link:hover { color: var(--green); }

.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px;
  background: rgba(57, 255, 20, .07);
  border: 1px solid rgba(57, 255, 20, .25);
  border-radius: 999px;
  color: var(--green);
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.dot-live {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px var(--green);
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.dot-sep { color: var(--violet); font-size: 10px; opacity: .55; }


/* ----------------------------------------------------------------
   4.  HEADER (masthead) — brand · search · CTA
   ---------------------------------------------------------------- */
.masthead {
  background: rgba(10, 10, 15, .72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
}
.masthead > .container {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 48px; height: 48px;
  display: inline-grid;
  place-items: center;
  filter: drop-shadow(0 0 12px rgba(159, 78, 255, .35));
}
.brand-mark svg { width: 100%; height: 100%; }

.brand-text { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: 'Space Grotesk', 'IBM Plex Sans Thai', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-name em {
  font-style: normal;
  background: var(--grad-violet-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-tag {
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  margin-top: 2px;
}

/* Search */
.search-shell {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 0 14px;
  height: 44px;
  transition: border-color .2s ease, background .2s ease;
}
.search-shell:focus-within {
  border-color: var(--violet);
  background: rgba(159, 78, 255, .05);
  box-shadow: 0 0 0 3px rgba(159, 78, 255, .12);
}
.search-icon {
  color: var(--violet-3);
  font-size: 18px;
}
.search-shell input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 14px;
}
.search-shell input::placeholder { color: var(--text-3); }
.kbd {
  padding: 2px 8px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 11px;
  color: var(--text-2);
}

/* Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.balance {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 12px;
  background: rgba(159, 78, 255, .08);
  border: 1px solid var(--line);
  border-radius: 10px;
  line-height: 1;
}
.bal-label { font-size: 10px; color: var(--text-3); letter-spacing: 0.05em; }
.bal-num { font-size: 14px; color: var(--violet-3); font-weight: 600; }


/* Buttons */
.btn {
  --btn-pad-y: 10px;
  --btn-pad-x: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 10px;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-violet-cyan);
  color: #06060B;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { box-shadow: var(--glow-violet), inset 0 1px 0 rgba(255, 255, 255, .35); }

.btn-ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(159, 78, 255, .08);
  border-color: var(--violet);
  color: var(--violet-3);
}

.btn-lg { --btn-pad-y: 14px; --btn-pad-x: 26px; font-size: 15px; }
.btn-sm { --btn-pad-y: 7px; --btn-pad-x: 12px; font-size: 12px; }
.btn-block { width: 100%; display: flex; }


/* ----------------------------------------------------------------
   5.  PRIMARY NAV
   ---------------------------------------------------------------- */
.primary-nav {
  background: linear-gradient(180deg, rgba(10, 10, 15, .92), rgba(10, 10, 15, .72));
  border-bottom: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.primary-nav > .container {
  display: flex;
  gap: 4px;
  padding-top: 0;
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-nav > .container::-webkit-scrollbar { display: none; }

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-2);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-item::before {
  content: "";
  position: absolute;
  inset: 8px 6px;
  background: rgba(159, 78, 255, .04);
  border-radius: 8px;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: -1;
}
.nav-item:hover { color: var(--text); }
.nav-item:hover::before { opacity: 1; }
.nav-item.is-active {
  color: var(--violet-3);
  border-bottom-color: var(--violet);
}
.nav-item.is-active::before { opacity: 1; }

.nav-pip {
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(159, 78, 255, .15);
  color: var(--violet-3);
  border: 1px solid rgba(159, 78, 255, .35);
}
.nav-pip.live { background: rgba(57, 255, 20, .12); color: var(--green); border-color: rgba(57, 255, 20, .35); animation: pulse-pip 1.6s ease-in-out infinite; }
.nav-pip.hot { background: rgba(239, 68, 68, .12); color: var(--red); border-color: rgba(239, 68, 68, .35); }
.nav-pip.new { background: rgba(34, 211, 238, .12); color: var(--cyan); border-color: rgba(34, 211, 238, .35); }
@keyframes pulse-pip { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }


/* ----------------------------------------------------------------
   6.  PROMO RIBBON
   ---------------------------------------------------------------- */
.ribbon {
  background:
    linear-gradient(90deg, rgba(159, 78, 255, .14), rgba(34, 211, 238, .10) 50%, rgba(159, 78, 255, .14)),
    var(--bg-1);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.ribbon > .container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.rib-tag {
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  background: var(--bg-3);
  border-radius: 4px;
  color: var(--text-3);
  letter-spacing: 0.08em;
}
.code-tag {
  display: inline-block;
  padding: 3px 10px;
  background: linear-gradient(180deg, rgba(159, 78, 255, .25), rgba(159, 78, 255, .10));
  border: 1px dashed var(--violet);
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 12px;
  color: var(--violet-3);
  font-weight: 600;
}
.rib-text { color: var(--text-2); }
.rib-text b { font-weight: 600; }
.rib-sep { color: var(--violet); opacity: .5; font-size: 11px; }
.rib-spacer { flex: 1; }
.rib-cta {
  color: var(--cyan);
  font-weight: 600;
  font-size: 13px;
}
.rib-cta:hover { color: var(--violet-3); }


/* ----------------------------------------------------------------
   7.  HERO
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 60px 0 50px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hex-grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .85;
  animation: hex-drift 60s linear infinite;
}
@keyframes hex-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-60px); }
}

.hex-floaters { position: absolute; inset: 0; }
.hex-floaters .floater {
  position: absolute;
  width: 12px; height: 14px;
  background: var(--violet);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: .35;
  filter: blur(.5px);
  animation: float-up 18s linear infinite;
}
.floater.f1 { top: 80%; left: 10%; animation-delay: 0s; }
.floater.f2 { top: 80%; left: 32%; width: 8px; height: 9px; animation-delay: 4s; }
.floater.f3 { top: 80%; left: 55%; width: 16px; height: 18px; animation-delay: 7s; opacity: .5; background: var(--cyan); }
.floater.f4 { top: 80%; left: 75%; width: 10px; height: 11px; animation-delay: 10s; }
.floater.f5 { top: 80%; left: 88%; width: 14px; height: 16px; animation-delay: 13s; background: var(--cyan); opacity: .25; }
.floater.f6 { top: 80%; left: 5%; width: 18px; height: 20px; animation-delay: 2s; opacity: .3; }
@keyframes float-up {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-720px) rotate(180deg); opacity: 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(159, 78, 255, .08);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 11.5px;
  letter-spacing: 0.10em;
  color: var(--violet-3);
  margin-bottom: 18px;
}
.eyebrow-hex { color: var(--cyan); }

.hero-title {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.hero-title .title-line-1 {
  display: block;
  font-weight: 400;
  color: var(--text-2);
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: 0;
  margin-bottom: 4px;
}
.hero-title .title-line-2 {
  display: block;
  color: var(--text);
}
.hero-title .title-em {
  font-style: normal;
  background: var(--grad-violet-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero-title .title-em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  background: var(--grad-violet-cyan);
  opacity: .35;
  border-radius: 2px;
}

.hero-sub {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-sub strong { color: var(--text); }

.hero-cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}
.hs-cell { display: flex; flex-direction: column; gap: 4px; }
.hs-num {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  font-feature-settings: "tnum";
}
.hs-num small { font-size: 14px; color: var(--violet-3); }
.hs-lbl { font-size: 12px; color: var(--text-3); }


/* Hero feature rotator */
.hero-feature {
  position: relative;
}
.feature-rotator {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md), 0 0 60px rgba(159, 78, 255, .15);
}
.feature-rotator::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--grad-violet-cyan);
  opacity: .25;
  z-index: -1;
  border-radius: var(--r-xl);
  filter: blur(20px);
}
.feat-tile {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .8s ease, transform 1.2s ease;
}
.feat-tile.is-active {
  opacity: 1;
  transform: scale(1);
}
.feat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feat-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 15, .94) 100%);
}
.feat-tag {
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  padding: 4px 10px;
  background: rgba(34, 211, 238, .15);
  border: 1px solid var(--cyan);
  border-radius: 4px;
  color: var(--cyan);
  align-self: flex-start;
  margin-bottom: 12px;
}
.feat-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.feat-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 16px;
}
.feat-cta {
  align-self: flex-start;
  padding: 10px 18px;
  background: var(--grad-violet-cyan);
  color: #06060B;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  transition: box-shadow .2s ease, transform .15s ease;
}
.feat-cta:hover {
  box-shadow: var(--glow-violet);
  transform: translateY(-1px);
}

.rotator-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.rotator-dots .dot {
  width: 26px; height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .15);
  border: 0;
  cursor: pointer;
  transition: background .2s ease, width .25s ease;
  padding: 0;
}
.rotator-dots .dot.is-active {
  background: var(--grad-violet-cyan);
  width: 36px;
}


/* ----------------------------------------------------------------
   8.  TRUST STRIP
   ---------------------------------------------------------------- */
.trust-strip {
  background:
    linear-gradient(180deg, rgba(159, 78, 255, .04), transparent),
    var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.trust-strip > .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}
.trust-ic {
  font-size: 22px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: rgba(159, 78, 255, .08);
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-shrink: 0;
}
.trust-cell div { display: flex; flex-direction: column; gap: 2px; }
.trust-title { font-size: 14px; font-weight: 600; color: var(--text); }
.trust-desc { font-size: 12px; color: var(--text-3); }


/* ----------------------------------------------------------------
   9.  SECTION HEADER (shared)
   ---------------------------------------------------------------- */
section { padding: 70px 0; }
.sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 38px;
}
.sec-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 12px;
}
.sec-title {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.sec-title em {
  font-style: normal;
  background: var(--grad-violet-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-sub {
  font-size: 14.5px;
  color: var(--text-3);
  line-height: 1.6;
}
.sec-tabs {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.tab {
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}
.tab:hover { color: var(--text); border-color: var(--violet); }
.tab.is-active {
  color: var(--violet-3);
  border-color: var(--violet);
  background: rgba(159, 78, 255, .08);
}
.sec-foot {
  text-align: center;
  margin-top: 36px;
}


/* ----------------------------------------------------------------
   10.  WHY BX66
   ---------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-card {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--grad-card), var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .25s ease, border-color .2s ease;
}
.why-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--grad-violet-cyan);
  opacity: 0;
  z-index: -1;
  border-radius: var(--r-lg);
  filter: blur(12px);
  transition: opacity .3s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
}
.why-card:hover::before { opacity: .25; }
.why-hex {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 64px; height: 72px;
  margin-bottom: 18px;
  background: var(--grad-violet-cyan);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.why-hex::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--bg-card);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.why-num {
  position: relative;
  z-index: 1;
  font-family: 'Space Grotesk', 'IBM Plex Sans Thai', monospace;
  font-weight: 700;
  font-size: 24px;
  background: var(--grad-violet-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.why-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
}


/* ----------------------------------------------------------------
   11.  HEX LATTICE MAP — signature 6-cell honeycomb
   ---------------------------------------------------------------- */
.hex-map {
  background:
    radial-gradient(700px 360px at 50% 50%, rgba(159, 78, 255, .08), transparent 60%),
    var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hexmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 154px;
  gap: 0;
  max-width: 940px;
  margin: 0 auto;
  position: relative;
}
.hexcell {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--text);
}
/* Hex layout — alternating rows offset */
.hexcell-1 { grid-column: 1 / 3; grid-row: 1; }
.hexcell-2 { grid-column: 3 / 5; grid-row: 1; }
.hexcell-3 { grid-column: 5; grid-row: 1 / 3; transform: translateY(-78px); }
.hexcell-4 { grid-column: 2 / 4; grid-row: 2; transform: translate(-50%, -60%); margin-left: 50%; }
.hexcell-5 { grid-column: 4; grid-row: 2; transform: translate(-50%, -60%); margin-left: 50%; }
.hexcell-6 { grid-column: 1; grid-row: 2; transform: translate(-50%, -60%); margin-left: 50%; }
/* Reset complex grid for simpler approach with flexbox honeycomb */

.hexmap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  max-width: 920px;
  margin: 0 auto;
}
.hexcell {
  position: relative;
  width: 196px;
  height: 226px;
  transform: none;
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  transition: transform .25s ease;
}
.hexcell:nth-child(odd) { transform: translateY(-32px); }
.hexcell:hover { transform: translateY(-38px) scale(1.02); }
.hexcell:nth-child(even):hover { transform: translateY(-6px) scale(1.02); }

.hexcell-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  isolation: isolate;
}
.hexcell-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-violet-cyan);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -2;
}
.hexcell-inner::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
}
.hexcell .hex-glyph {
  font-size: 44px;
  background: var(--grad-violet-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  transition: transform .3s ease;
}
.hexcell:hover .hex-glyph { transform: scale(1.15) rotate(8deg); }
.hexcell .hex-cat {
  font-family: 'Space Grotesk', 'IBM Plex Sans Thai', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.hexcell .hex-cnt {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.hex-pulse {
  position: absolute;
  width: 8px; height: 9px;
  top: 18px;
  background: var(--cyan);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: hex-blink 2.4s ease-in-out infinite;
  box-shadow: 0 0 8px var(--cyan);
}
@keyframes hex-blink {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; }
}


/* ----------------------------------------------------------------
   12.  SLOT GRID + LIVE GRID + FISH GRID
   ---------------------------------------------------------------- */
.slot-grid, .fish-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.slot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, border-color .2s ease, box-shadow .25s ease;
  aspect-ratio: 4 / 5.4;
}
.slot-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
  box-shadow: var(--shadow-md), 0 0 28px rgba(159, 78, 255, .25);
}
.slot-card .thumb {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  z-index: -1;
  transition: transform .35s ease, filter .3s ease;
}
.slot-card:hover .thumb { transform: scale(1.06); filter: saturate(1.15); }
.slot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 15, .92) 100%);
  z-index: -1;
}
.provider-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(159, 78, 255, .35);
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--violet-3);
  z-index: 2;
}
.card-tag-rtp {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  background: rgba(57, 255, 20, .12);
  border: 1px solid rgba(57, 255, 20, .35);
  border-radius: 4px;
  font-size: 9.5px;
  color: var(--green);
  z-index: 2;
}
.card-foot {
  margin-top: auto;
  padding: 12px 14px 14px;
  position: relative;
  z-index: 1;
}
.card-foot h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  line-height: 1.25;
}
.card-meta {
  font-size: 11.5px;
  color: var(--text-3);
}
.play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(159, 78, 255, .18);
  backdrop-filter: blur(8px);
  border: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 1;
  cursor: pointer;
}
.slot-card:hover .play-btn { opacity: 1; }


/* Live Casino */
.live-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.live-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s ease, transform .25s ease;
}
.live-card:hover {
  transform: translateY(-3px);
  border-color: var(--violet);
}
.live-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.live-badge {
  position: absolute;
  top: 12px; left: 12px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--grad-violet-cyan);
  border-radius: 50%;
  font-family: 'Space Grotesk', 'IBM Plex Sans Thai', monospace;
  font-weight: 700;
  font-size: 14px;
  color: #06060B;
  z-index: 2;
}
.live-pill {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(239, 68, 68, .45);
  border-radius: 999px;
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 10.5px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.06em;
  z-index: 2;
}
.live-dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 1.4s ease-in-out infinite;
  box-shadow: 0 0 6px var(--red);
}
.live-foot {
  padding: 16px 18px 18px;
}
.live-foot h4 { font-size: 17px; margin-bottom: 6px; }
.live-meta {
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 14px;
}


/* ----------------------------------------------------------------
   13.  SPORTS — match cards
   ---------------------------------------------------------------- */
.sport-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.match-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 18px 20px;
  transition: border-color .2s ease;
}
.match-card:hover { border-color: var(--violet); }
.match-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.match-league { color: var(--violet-3); font-weight: 600; }
.match-time { font-size: 11.5px; }
.match-body {
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items: center;
  padding: 18px 0;
  gap: 12px;
}
.team {
  display: flex;
  align-items: center;
  gap: 10px;
}
.team-h { justify-content: flex-start; }
.team-a { justify-content: flex-end; flex-direction: row-reverse; }
.team-flag { font-size: 26px; }
.team-name { font-weight: 700; font-size: 15.5px; }
.match-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.vs-text {
  font-family: 'Space Grotesk', 'IBM Plex Sans Thai', monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.10em;
  color: var(--text-3);
}
.match-status {
  font-size: 10.5px;
  padding: 2px 8px;
  background: rgba(239, 68, 68, .12);
  border-radius: 4px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.match-odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.odds {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 0;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .15s ease;
}
.odds:hover {
  background: rgba(159, 78, 255, .12);
  border-color: var(--violet);
  color: var(--violet-3);
}
.odds-team {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.odds-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan);
}
.odds:hover .odds-num { color: var(--violet-3); }


/* ----------------------------------------------------------------
   14.  LOTTERY
   ---------------------------------------------------------------- */
.lotto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.lotto-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s ease, transform .25s ease;
}
.lotto-card:hover {
  transform: translateY(-3px);
  border-color: var(--violet);
}
.lotto-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  background:
    linear-gradient(135deg, rgba(159, 78, 255, .12), rgba(34, 211, 238, .06));
  border-bottom: 1px solid var(--line-2);
}
.lotto-flag { font-size: 22px; }
.lotto-head h4 { font-size: 15px; }
.lotto-body {
  padding: 14px 16px;
  flex: 1;
}
.lotto-rate {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 14px;
}
.lotto-rate b { color: var(--green); font-weight: 600; }
.lotto-clock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .15));
  border: 1px solid var(--line-2);
  border-radius: 6px;
}
.cd-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  font-feature-settings: "tnum";
  line-height: 1;
}
.cd-lbl {
  font-size: 9.5px;
  color: var(--text-3);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.lotto-cta {
  margin: 0 16px 16px;
  padding: 10px;
  text-align: center;
  background: var(--grad-violet-cyan);
  color: #06060B;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  transition: box-shadow .2s ease;
}
.lotto-cta:hover { box-shadow: var(--glow-violet); }


/* ----------------------------------------------------------------
   15.  PROMO CARDS
   ---------------------------------------------------------------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .25s ease;
}
.promo-card:hover {
  transform: translateY(-3px);
  border-color: var(--violet);
}
.promo-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.promo-foot {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.promo-tag {
  align-self: flex-start;
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 10px;
  letter-spacing: 0.10em;
  padding: 3px 8px;
  background: rgba(34, 211, 238, .12);
  color: var(--cyan);
  border: 1px solid var(--line-3);
  border-radius: 4px;
}
.promo-foot h4 { font-size: 15.5px; margin-bottom: 2px; }
.promo-foot p { font-size: 12.5px; color: var(--text-3); line-height: 1.55; }
.promo-foot .code-tag { align-self: flex-start; }
.promo-cta {
  margin-top: auto;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--violet-3);
}
.promo-cta:hover { color: var(--cyan); }


/* ----------------------------------------------------------------
   16.  VIP — Hex Reactor
   ---------------------------------------------------------------- */
.vip {
  background:
    radial-gradient(560px 280px at 50% 30%, rgba(159, 78, 255, .12), transparent 60%),
    var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.vip-meter {
  max-width: 880px;
  margin: 0 auto 38px;
  padding: 26px 30px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.vipm-track {
  position: relative;
  height: 10px;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  overflow: hidden;
}
.vipm-fill {
  height: 100%;
  width: var(--vip-pct, 0%);
  background: var(--grad-violet-cyan);
  border-radius: inherit;
  box-shadow: 0 0 14px rgba(159, 78, 255, .55);
  transition: width 1.2s ease;
}
.vipm-marks {
  position: relative;
  height: 32px;
  margin-top: 10px;
}
.vmk {
  position: absolute;
  top: 0;
  left: var(--vmk-pct);
  transform: translateX(-50%);
  width: 28px; height: 30px;
  display: grid; place-items: center;
  font-size: 22px;
  color: var(--text-3);
  cursor: default;
  transition: color .25s ease;
}
.vmk.active {
  color: var(--violet-3);
  filter: drop-shadow(0 0 8px var(--violet));
}
.vmk::after {
  content: attr(data-tier);
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  white-space: nowrap;
}
.vmk.active::after { color: var(--violet-3); }
.vipm-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 12px;
}
.vipm-current { color: var(--violet-3); font-weight: 600; }
.vipm-progress { color: var(--text-3); }

.vip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.vip-card {
  position: relative;
  padding: 22px 18px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  text-align: center;
  transition: transform .25s ease, border-color .2s ease;
}
.vip-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
}
.vip-card.is-current {
  border-color: var(--violet);
  background: linear-gradient(180deg, rgba(159, 78, 255, .12), var(--bg-card));
  box-shadow: var(--glow-violet);
}
.vip-hex {
  display: inline-block;
  font-size: 32px;
  margin-bottom: 8px;
  background: var(--grad-violet-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vip-card h3 {
  font-size: 17px;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}
.vip-thr {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.vip-perks {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}
.vip-perks li {
  font-size: 12.5px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}
.vip-perks li::before {
  content: "⬡";
  position: absolute;
  left: 0;
  color: var(--violet-3);
  font-size: 10px;
}
.vip-now {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  background: var(--grad-violet-cyan);
  color: #06060B;
  border-radius: 4px;
  font-weight: 700;
}


/* ----------------------------------------------------------------
   17.  PROVABLY FAIR
   ---------------------------------------------------------------- */
.fairness {
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
}
.pf-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}
.pf-board {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(159, 78, 255, .03) 30px, rgba(159, 78, 255, .03) 31px),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
}
.pf-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.pf-row:last-of-type { border-bottom: 0; }
.pf-key {
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--text-3);
}
.pf-val {
  font-size: 13px;
  color: var(--cyan);
  word-break: break-all;
}
.pf-hash { color: var(--violet-3); }
.pf-copy {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 14px;
  transition: all .2s ease;
}
.pf-copy:hover { background: rgba(159, 78, 255, .12); border-color: var(--violet); color: var(--violet-3); }
.pf-status { font-size: 11px; font-family: 'JetBrains Mono', 'Sarabun', monospace; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.06em; }
.pf-ok { background: rgba(57, 255, 20, .12); color: var(--green); border: 1px solid rgba(57, 255, 20, .35); }
.pf-action {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}

.pf-side {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 24px 26px;
}
.pf-side h3 { font-size: 18px; margin-bottom: 14px; }
.pf-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: pf-step;
}
.pf-list li {
  position: relative;
  padding-left: 36px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  counter-increment: pf-step;
}
.pf-list li::before {
  content: counter(pf-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--violet-3);
  background: rgba(159, 78, 255, .10);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}


/* ----------------------------------------------------------------
   18.  BANK ROW — feed + qpad
   ---------------------------------------------------------------- */
.bank-row {
  background:
    radial-gradient(560px 280px at 80% 0%, rgba(34, 211, 238, .07), transparent 60%),
    var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bank-cols {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 22px;
}

/* Feed */
.feed-panel {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feed-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: linear-gradient(90deg, rgba(159, 78, 255, .12), transparent);
  border-bottom: 1px solid var(--line-2);
}
.feed-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .35);
  border-radius: 999px;
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 10.5px;
  color: var(--red);
  letter-spacing: 0.06em;
  font-weight: 600;
}
.feed-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
.feed-title { font-size: 15px; flex: 1; }
.feed-meta { font-size: 12px; color: var(--text-3); }

.feed-list {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--violet) transparent;
}
.feed-list::-webkit-scrollbar { width: 6px; }
.feed-list::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 3px; }
.feed-item {
  display: grid;
  grid-template-columns: 90px 1fr 130px 90px;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
  transition: background .35s ease;
}
.feed-item:last-child { border-bottom: 0; }
.feed-item.is-fresh {
  background: rgba(159, 78, 255, .12);
  animation: feed-flash 1.6s ease;
}
@keyframes feed-flash {
  0% { background: rgba(159, 78, 255, .35); }
  100% { background: rgba(159, 78, 255, .12); }
}
.feed-time { color: var(--text-3); font-size: 12px; }
.feed-user { color: var(--text); font-weight: 600; }
.feed-amount { color: var(--green); font-weight: 600; text-align: right; font-size: 14px; }
.feed-via {
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 10.5px;
  text-align: center;
  padding: 3px 6px;
  background: rgba(34, 211, 238, .08);
  border: 1px solid var(--line-3);
  border-radius: 4px;
  color: var(--cyan);
}
.feed-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: rgba(0, 0, 0, .25);
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--text-2);
}
.feed-foot b { color: var(--violet-3); }
.feed-more { color: var(--cyan); font-weight: 600; font-size: 12px; }
.feed-more:hover { color: var(--violet-3); }


/* QPad */
.qpad-panel {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qpad-head { margin-bottom: 4px; }
.qpad-title {
  font-size: 17px;
  margin-bottom: 4px;
  background: var(--grad-violet-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.qpad-meta { font-size: 12px; color: var(--text-3); }
.qpad-meta small { color: var(--text-3); font-size: 11px; }

.qpad-amount {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .15));
  border: 1px solid var(--violet);
  border-radius: 12px;
  box-shadow: inset 0 0 24px rgba(159, 78, 255, .12);
}
.qpad-currency {
  font-family: 'Space Grotesk', 'IBM Plex Sans Thai', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-3);
}
.qpad-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  font-feature-settings: "tnum";
  text-align: right;
  letter-spacing: -0.01em;
}

.qpad-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.qpad-preset {
  padding: 8px 0;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'Sarabun', monospace;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s ease;
}
.qpad-preset:hover {
  background: rgba(159, 78, 255, .08);
  border-color: var(--violet);
  color: var(--violet-3);
}
.qpad-preset.is-active {
  background: rgba(159, 78, 255, .15);
  border-color: var(--violet);
  color: var(--violet-3);
}

.qpad-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.qkey {
  padding: 14px 0;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-family: 'Space Grotesk', 'IBM Plex Sans Thai', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background .12s ease, transform .08s ease;
}
.qkey:hover { background: var(--bg-3); }
.qkey:active { transform: scale(.96); background: rgba(159, 78, 255, .15); }
.qkey-clr { color: var(--red); }
.qkey-back { color: var(--cyan); }

.qpad-hint {
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
}


/* ----------------------------------------------------------------
   19.  PROVIDERS WALL
   ---------------------------------------------------------------- */
.prov-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
}
.prov-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  transition: all .2s ease;
  text-align: center;
}
.prov-cell:hover {
  border-color: var(--violet);
  background: rgba(159, 78, 255, .06);
  transform: translateY(-3px);
}
.prov-cell img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(.95);
  transition: filter .2s ease;
}
.prov-cell:hover img { filter: brightness(1.1); }
.prov-cell span {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}


/* ----------------------------------------------------------------
   20.  BANK WALL
   ---------------------------------------------------------------- */
.bank-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.bank-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  text-align: center;
  transition: all .2s ease;
}
.bank-cell:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, .04);
  transform: translateY(-2px);
}
.bank-cell img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}
.bank-cell b { font-size: 10.5px; color: var(--text-3); font-weight: 500; }


/* ----------------------------------------------------------------
   21.  ACCOUNT FORMS
   ---------------------------------------------------------------- */
.account-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}
.acc-form {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 28px 26px;
}
.acc-form-title { font-size: 19px; margin-bottom: 18px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field-lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.field-lbl small { color: var(--text-3); font-weight: 400; }
.field-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: 0;
  transition: border-color .15s ease, background .15s ease;
}
.field-input:focus {
  border-color: var(--violet);
  background: rgba(159, 78, 255, .04);
}
.field-input::placeholder { color: var(--text-3); }
.field-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.field-row-end {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
  font-size: 12px;
}
.link-violet { color: var(--violet-3); }
.link-violet:hover { color: var(--cyan); }

.field-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--text-2);
  margin: 4px 0 14px;
  line-height: 1.5;
  cursor: pointer;
}
.field-checkbox input { margin-top: 4px; accent-color: var(--violet); }

.acc-or {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-3);
  margin: 16px 0 12px;
  position: relative;
}
.acc-or::before, .acc-or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--line-2);
}
.acc-or::before { left: 0; }
.acc-or::after { right: 0; }

.acc-social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.acc-social .btn span {
  width: 22px; height: 22px;
  display: inline-grid;
  place-items: center;
  background: var(--bg-3);
  border-radius: 4px;
  font-family: 'Space Grotesk', 'IBM Plex Sans Thai', monospace;
  font-weight: 700;
  font-size: 12px;
  color: var(--violet-3);
  margin-right: 4px;
}

.acc-info {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}
.acc-info h4 { font-size: 14px; margin-bottom: 12px; color: var(--violet-3); }
.acc-info ul { display: flex; flex-direction: column; gap: 8px; }
.acc-info li { font-size: 12.5px; color: var(--text-2); }


/* ----------------------------------------------------------------
   22.  HELP / FAQ + RG
   ---------------------------------------------------------------- */
.help-cols {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  margin-bottom: 36px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 24px;
}
.contact-card h3 { font-size: 16px; margin-bottom: 16px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  transition: padding .15s ease;
}
.contact-row:last-child { border-bottom: 0; }
.contact-row:hover { padding-left: 4px; }
.contact-ic {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(159, 78, 255, .10);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-body b { font-size: 13.5px; color: var(--text); }
.contact-body span { font-size: 12px; color: var(--text-3); }
.contact-go { color: var(--text-3); font-size: 16px; }
.contact-row:hover .contact-go { color: var(--violet-3); }

.faq-list {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 24px 26px;
}
.faq-list h3 { font-size: 16px; margin-bottom: 12px; }
.faq-item {
  border-top: 1px solid var(--line-2);
  padding: 14px 0;
}
.faq-item:first-of-type { border-top: 0; }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  padding: 4px 0;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: 'Space Grotesk', 'IBM Plex Sans Thai', monospace;
  font-size: 22px;
  font-weight: 400;
  color: var(--violet-3);
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--violet-3); }
.faq-item p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  padding-left: 4px;
  border-left: 2px solid var(--violet);
  padding: 4px 0 4px 14px;
  margin-left: 4px;
}

/* ----------------------------------------------------------------
   23.  FOOTER
   ---------------------------------------------------------------- */
.site-foot {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-top: 1px solid var(--line);
  padding-top: 50px;
  margin-top: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.foot-col h4 {
  font-size: 13.5px;
  color: var(--violet-3);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.foot-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.foot-links li, .foot-links a, .foot-links span {
  font-size: 13px;
  color: var(--text-2);
}
.foot-links a:hover { color: var(--cyan); }

.brand-foot { margin-bottom: 12px; }
.brand-mark-sm { width: 38px; height: 38px; }
.foot-blurb {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 460px;
}
.foot-license {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lic-pill {
  font-size: 10px;
  padding: 4px 8px;
  background: rgba(159, 78, 255, .08);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--violet-3);
  letter-spacing: 0.06em;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line-2);
  font-size: 11.5px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 8px;
}


/* ----------------------------------------------------------------
   24.  FLOATING + AGE BADGE
   ---------------------------------------------------------------- */
.floating-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: var(--z-floating);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
}
.float-btn:hover {
  transform: translateY(-2px);
  border-color: var(--violet);
  box-shadow: var(--shadow-md), var(--glow-violet);
}
.float-line {
  background: linear-gradient(135deg, #06C755, #04A045);
  border-color: #04A045;
  color: #fff;
}
.float-line:hover { box-shadow: var(--shadow-md), 0 0 22px rgba(6, 199, 85, .45); border-color: #06C755; }
.float-top .float-ic { font-size: 18px; }
.float-top {
  width: 44px; height: 44px;
  padding: 0;
  justify-content: center;
}
.float-ic { font-size: 16px; }


/* Toast stack */
.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--violet);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow-md), var(--glow-violet);
  animation: toast-in .3s ease, toast-out .3s ease 3.7s forwards;
  min-width: 240px;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(20px); }
}


/* ----------------------------------------------------------------
   25.  RESPONSIVE
   ---------------------------------------------------------------- */
.hide-md { display: inline; }
.hide-xs { display: inline; }

@media (max-width: 1100px) {
  .hide-md { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .slot-grid, .fish-grid, .promo-grid { grid-template-columns: repeat(3, 1fr); }
  .prov-grid { grid-template-columns: repeat(6, 1fr); }
  .bank-grid { grid-template-columns: repeat(5, 1fr); }
  .vip-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .bank-cols { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: 1fr; }
  .help-cols { grid-template-columns: 1fr; }
  .lotto-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .live-grid, .sport-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hide-xs { display: none; }
  .container { padding: 0 14px; }
  section { padding: 50px 0; }

  .topbar > .container { font-size: 11px; gap: 6px; }

  .masthead > .container { flex-wrap: wrap; gap: 10px; }
  .search-shell { order: 3; flex-basis: 100%; }
  .header-cta .balance { display: none; }

  .hero { padding: 36px 0 28px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hs-num { font-size: 18px; }

  .why-grid { grid-template-columns: 1fr; }
  .slot-grid, .fish-grid, .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .lotto-grid { grid-template-columns: 1fr; }
  .vip-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .vip-card.vip-5 { grid-column: 1 / -1; }
  .prov-grid { grid-template-columns: repeat(4, 1fr); }
  .bank-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-strip > .container { grid-template-columns: 1fr 1fr; }
  .account-cols { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-bottom { font-size: 10.5px; }

  .hexcell { width: 142px; height: 162px; }
  .hexcell:nth-child(odd) { transform: translateY(-22px); }
  .hexcell:hover { transform: translateY(-26px) scale(1.01); }
  .hexcell:nth-child(even):hover { transform: translateY(-4px) scale(1.01); }
  .hexcell .hex-glyph { font-size: 32px; }

  .bank-cols { gap: 14px; }
  .feed-item { grid-template-columns: 70px 1fr 100px 70px; gap: 8px; padding: 10px 14px; font-size: 12px; }
  .feed-time { font-size: 10.5px; }
  .feed-amount { font-size: 12.5px; }

  .feature-rotator { aspect-ratio: 4 / 3.4; }
  .feat-overlay { padding: 18px; }
  .feat-title { font-size: 22px; }

  .floating-stack { right: 12px; bottom: 12px; gap: 8px; }
  .float-line { padding: 8px 14px 8px 10px; font-size: 12px; }
  .float-top { width: 40px; height: 40px; }

  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .hero-title { font-size: 32px; }
}

@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .slot-grid, .fish-grid, .promo-grid { grid-template-columns: 1fr; }
  .vip-grid { grid-template-columns: 1fr; }
  .prov-grid { grid-template-columns: repeat(3, 1fr); }
  .bank-grid { grid-template-columns: repeat(3, 1fr); }
  .feed-item { grid-template-columns: 1fr 1fr; gap: 6px; }
  .feed-time, .feed-via { display: none; }
}


/* ----------------------------------------------------------------
   26.  ROUTES (hash router)
   ---------------------------------------------------------------- */
.route { display: block; }
/* All routes share #home main; sections inside are visible all the time on home;
   when route is e.g. #slot, only #slot is shown */
body.route-slot section:not(#slot):not(.hero):not(.trust-strip):not(.why) { display: none; }
body.route-slot .hero,
body.route-slot .trust-strip,
body.route-slot .why { display: none; }

/* Simpler approach: don't hide via body class; let JS smooth-scroll to #target.
   Routes are anchor-based for SPA-feel. */
