/* ==========================================================================
   168surex — Carbon Graphite (#212121) & Sovereign Gold (#C9A54E) Components
   Split Hero + Promo Carousel, 6-Zone Image Gallery, Thai Payment Wall &
   Interactive Spin Wheel, Monochrome-Gold Providers + Comparison Table,
   Trust Cards + FAQ, Category 3x2 Directory & Dark Editorial Long-Read
   ========================================================================== */

.section { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.section-deep { background: var(--bg-deep); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

/* Prevent CSS Grid tracks from causing mobile overflow */
.sx-hero-grid > *,
.sx-gallery-grid > *,
.pay-wheel-layout > *,
.pay-grid > *,
.wheel-card > *,
.prov-compare-layout > *,
.provider-wall-grid > *,
.trust-faq-layout > *,
.trust-cards-grid > *,
.cat-split-grid > *,
.cat-studio-grid > *,
.cat-guides-grid > *,
.article-grid-layout > *,
.related-guides-grid > *,
.static-sx-grid > * {
  min-width: 0;
}

.sx-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  background: var(--gold-soft);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.sx-sec-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

/* ==========================================================================
   1. HOMEPAGE — 2-COLUMN CARBON SPLIT HERO + INTERACTIVE CAROUSEL
   ========================================================================== */
.sx-hero {
  background:
    radial-gradient(circle at 78% 36%, rgba(201, 165, 78, 0.12) 0%, transparent 48%),
    var(--bg);
  padding: 44px 0 32px;
}
.sx-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 32px;
}
.sx-hero-h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.14;
  color: var(--white);
  margin-bottom: 14px;
}
.sx-hero-h1 span { color: var(--gold); }
.sx-hero-lead {
  font-size: 1.02rem;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 24px;
}
.sx-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.sx-trust-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--white);
}
.sx-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sx-tick { color: var(--gold); font-weight: 800; }

/* Right Hero Showcase Panel with Golden Star-Orb */
.hero-orb-panel {
  background: linear-gradient(155deg, var(--surface) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.hero-orb-img {
  width: 152px;
  height: 152px;
  margin: 0 auto 22px;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(201, 165, 78, 0.3));
}
.orb-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.orb-stat-box {
  background: var(--bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
}
.orb-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.orb-stat-val {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--gold);
}

/* Interactive 3-Slide Feature Carousel (PGPOP-Inspired) */
.sx-carousel {
  position: relative;
  background: linear-gradient(125deg, var(--surface) 0%, #1C1C1C 60%, rgba(201, 165, 78, 0.16) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 20px 62px;
  text-align: center;
}
.carousel-slide { display: none; }
.carousel-slide.is-active { display: block; }
.carousel-slide h2 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  margin-bottom: 4px;
}
.carousel-slide h2 span { color: var(--gold); }
.carousel-slide p { font-size: 0.9rem; margin: 0; color: var(--text-soft); }
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--ink-dark);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-nav-btn.prev { left: 14px; }
.carousel-nav-btn.next { right: 14px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.carousel-dot {
  width: 24px;
  height: 5px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(255, 255, 255, 0.22);
  padding: 0;
}
.carousel-dot.is-active { background: var(--gold); }

/* ==========================================================================
   2. 6-ZONE IMAGE-BACKED VISUAL GAME GALLERY (PGPOP-INSPIRED)
   ========================================================================== */
.sx-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sx-game-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.sx-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.sx-game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.sx-game-card:hover img {
  transform: scale(1.04);
  opacity: 1;
}
.sx-game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.08) 25%, rgba(24, 24, 24, 0.92) 100%);
  padding: 16px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.sx-game-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.sx-game-sub {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 2px 0 0;
}
.sx-game-badge {
  background: var(--gold);
  color: var(--ink-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
}

/* ==========================================================================
   3. THAI LOCAL PAYMENT WALL (5 TILES) + INTERACTIVE SPIN WHEEL
   ========================================================================== */
.pay-wheel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.pay-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  height: 100%;
}
.pay-tile {
  grid-column: span 2;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.pay-tile.span-3 { grid-column: span 3; }
.pay-badge-gold {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--ink-dark);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}
.pay-abbr {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--gold);
}
.pay-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}
.pay-note {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Interactive 6-Segment Conic-Gradient Spin Wheel */
.wheel-card {
  background: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 206px 1fr;
  gap: 22px;
  align-items: center;
}
.wheel-stage {
  position: relative;
  width: 196px;
  height: 196px;
  margin: 0 auto;
}
.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 16px solid var(--gold);
  z-index: 4;
}
.wheel-disc {
  width: 196px;
  height: 196px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  background: repeating-conic-gradient(
    from 0deg,
    #C9A54E 0deg 60deg,
    #212121 60deg 120deg
  );
  transition: transform 2.4s cubic-bezier(0.18, 0.89, 0.32, 1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--gold);
  color: var(--ink-dark);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  z-index: 3;
}
.wheel-center-btn:disabled { opacity: 0.75; cursor: wait; }
.wheel-info h3 { font-size: 1.25rem; margin-bottom: 8px; }
.wheel-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-soft);
}
.wheel-result-box {
  background: var(--bg);
  border-left: 3px solid var(--gold);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.86rem;
  color: var(--white);
  margin-bottom: 14px;
}

/* ==========================================================================
   4. 12 MONOCHROME-GOLD PROVIDER WALL + #C9A54E COMPARISON TABLE
   ========================================================================== */
.prov-compare-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.provider-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.provider-tile {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 68px;
  transition: border-color 0.18s, background 0.18s;
}
.provider-tile:hover {
  border-color: var(--gold);
  background: var(--surface-hover);
}
.provider-tile-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
}
.provider-tile-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* #C9A54E Gold-Header Comparison Table */
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.sx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.sx-table th {
  background: var(--gold);
  color: var(--ink-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: left;
  padding: 12px 14px;
  white-space: nowrap;
}
.sx-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--white);
}
.sx-table tbody tr:last-child td { border-bottom: none; }
.sx-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.025); }
.status-gold-pill {
  display: inline-block;
  background: var(--gold);
  color: var(--ink-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 4px;
}

/* ==========================================================================
   5. 4 RESPONSIBLE GAMING TRUST CARDS + FAQ ACCORDION
   ========================================================================== */
.trust-faq-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.trust-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.rg-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}
.rg-icon {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}
.rg-card h3 { font-size: 1rem; margin-bottom: 4px; }
.rg-card p { font-size: 0.84rem; color: var(--text-muted); margin: 0; }

.sx-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sx-faq-item {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sx-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sx-faq-item summary::-webkit-details-marker { display: none; }
.sx-faq-item[open] summary {
  color: var(--gold);
  border-bottom: 1px solid var(--border-subtle);
}
.faq-plus { color: var(--gold); font-family: var(--font-mono); font-weight: 800; flex-shrink: 0; }
.sx-faq-ans { padding: 12px 16px 14px; font-size: 0.9rem; color: var(--text-soft); }

/* ==========================================================================
   6. CATEGORY PAGE — CARBON 3x2 DIRECTORY (PROTOTYPE 02)
   ========================================================================== */
.cat-split-hero {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px 0 42px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--white); }

.cat-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}
.cat-h1 { font-size: clamp(1.95rem, 3.6vw, 2.95rem); font-weight: 800; margin-bottom: 12px; }
.cat-h1 span { color: var(--gold); }
.cat-stat-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.cat-stat-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--white);
  border: 1px solid var(--gold-border);
  background: var(--surface);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.cat-art-box {
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
}
.cat-art-box img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.sx-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.sx-filter-btn {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--white);
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.sx-filter-btn:hover { border-color: var(--gold); }
.sx-filter-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-dark);
}

.cat-studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.cat-studio-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.16s, border-color 0.16s;
}
.cat-studio-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.cat-studio-card.is-hidden { display: none; }
.cat-studio-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.studio-rtp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.rtp-gold-badge {
  background: var(--gold);
  color: var(--ink-dark);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.gold-vol-track {
  flex: 1;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-deep);
  overflow: hidden;
}
.gold-vol-fill { height: 100%; background: var(--gold); }
.cat-studio-card p { font-size: 0.88rem; color: var(--text-soft); margin: 0; }

.cat-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.cat-guide-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: block;
  transition: border-color 0.16s;
}
.cat-guide-card:hover { border-color: var(--gold); }
.cat-guide-card h3 { font-size: 1.06rem; margin: 6px 0; }
.cat-guide-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ==========================================================================
   7. ARTICLE PAGE — DARK CARBON EDITORIAL LONG-READ (PROTOTYPE 03)
   ========================================================================== */
.sx-article-masthead {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-subtle);
  padding: 34px 0 38px;
  text-align: center;
}
.sx-article-h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 800;
  max-width: 820px;
  margin: 0 auto 10px;
}
.sx-article-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.sx-article-cover {
  max-width: 780px;
  margin: 0 auto 20px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.sx-article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.sx-takeaways {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.sx-takeaways h2 { font-size: 1.04rem; color: var(--gold); margin-bottom: 8px; }
.sx-takeaways ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--white);
}

.article-grid-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 36px;
  padding-bottom: 52px;
}
.sx-toc-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sx-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}
.sx-sidebar-card h3 { font-size: 1rem; color: var(--gold); margin-bottom: 10px; }
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc-list a {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 5px 0 5px 10px;
  border-left: 2px solid transparent;
}
.toc-list a:hover,
.toc-list a.is-active {
  color: var(--gold);
  border-left-color: var(--gold);
}

.sx-prose section {
  margin-bottom: 32px;
  scroll-margin-top: 96px;
}
.sx-sec-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.sx-sec-num {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold);
}
.sx-sec-heading h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin: 0; }
.sx-flow-box {
  background: var(--bg-deep);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 18px 0;
}
.sx-flow-box img { width: 100%; max-width: 640px; margin: 0 auto; }
.sx-pull-quote {
  margin: 20px 0;
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 1.06rem;
  font-style: italic;
  color: var(--white);
}

.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}
.related-guide-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.16s, transform 0.16s;
}
.related-guide-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.related-guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.related-guide-body { padding: 14px; }
.related-guide-body h3 { font-size: 0.96rem; margin: 6px 0 0; }

.static-sx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.static-sx-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 22px;
}
