/* ============================================================================
   OPAL365.COM — Royal Velvet Purple, Imperial Ruby & Champagne Gold System
   Self-hosted Kanit woff2 + VIP Luxury Portal Layout + Mobile-First UX
   ============================================================================ */

/* Self-hosted Kanit woff2 */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/kanit-thai-400.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/kanit-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/kanit-thai-500.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/kanit-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/kanit-thai-600.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/kanit-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/kanit-thai-700.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/kanit-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --bg-deep: #14071b;
  --surface: #ffffff;
  --surface-card: #faf5fc;
  --surface-hi: #2f1142;
  --ruby: #e11d48;
  --ruby-dark: #9f1239;
  --ruby-mid: #c8102e;
  --ruby-bright: #f43f5e;
  --gold: #f5ca6b;
  --gold-hi: #ffe6a3;
  --text: #1e0b2a;
  --text-soft: #432b54;
  --muted: #6b547c;
  --border: rgba(36, 13, 51, 0.14);
  --border-gold: rgba(200, 16, 46, 0.35);
  --shadow: 0 10px 28px rgba(36, 13, 51, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  background: var(--bg);
}
body {
  margin: 0;
  font-family: 'Kanit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: clip;
  padding-bottom: 58px;
}
@media (max-width: 800px) {
  body { padding-bottom: 84px; }
}
body.op-scroll-lock { overflow: hidden !important; touch-action: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
.wrapper, .wrapper-c, .container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (max-width: 800px) {
  .wrapper, .wrapper-c, .container { padding: 0 10px; }
}

/* ============================================================================
   1. ANNOUNCEMENT MARQUEE (.tt_txd), MOBILE HEAD (.head_mc), DESKTOP HEAD (.m_pc)
   ============================================================================ */
.tt_txd {
  width: 100%;
  background: linear-gradient(90deg, #690b22 0%, #b91038 50%, #690b22 100%);
  border-bottom: 1px solid rgba(255, 230, 163, 0.35);
  color: #fffaf2;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 28px;
  height: 28px;
  overflow: hidden;
  position: relative;
}
.tt_xsl {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
  padding-right: 44px;
  animation: op-marquee 26s linear infinite;
}
.tt_txd.is-paused .marquee-track { animation-play-state: paused; }
@keyframes op-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Desktop Header (.m_pc): Buttons LEFT, OPAL365 Logo RIGHT */
.m_pc {
  width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #faf3fc 65%, #f6ebfa 100%);
  border-bottom: 1px solid rgba(36, 13, 51, 0.12);
}
.m_pc-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 94px;
  padding: 10px 0;
}
.bt_ax {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.bt_a1, .bt_a2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bt_a1 {
  background: linear-gradient(180deg, #2d0e40 0%, #14071b 100%);
  color: #ffe6a3;
  border: 1.5px solid #f5ca6b;
  box-shadow: 0 6px 16px rgba(36, 13, 51, 0.22);
}
.bt_a1:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(36, 13, 51, 0.34); }
.bt_a2 {
  background: linear-gradient(135deg, var(--ruby) 0%, var(--ruby-dark) 100%);
  color: #ffffff;
  border: 1.5px solid var(--gold-hi);
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.35);
}
.bt_a2:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(225, 29, 72, 0.55); }
.b_pay {
  display: inline-flex;
  animation: op-nudge 1.8s ease-in-out infinite;
}
@keyframes op-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}
.logo_pc1 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 340px;
}
.logo_pc1 img {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 3px 10px rgba(36, 13, 51, 0.15));
}

/* Mobile Header (.head_mc): Hidden on Desktop, Shown on <= 800px */
.head_mc { display: none; }
.tt_open_menu { display: none; }

@media (max-width: 800px) {
  .m_pc { display: none; }
  .head_mc {
    display: block;
    width: 100%;
    background: #ffffff;
    position: relative;
  }
  .tt_open_menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 88;
    width: 40px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ruby), var(--ruby-dark));
    border: 1.5px solid var(--gold-hi);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  }
  .install_m {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px 7px 56px;
    background: linear-gradient(90deg, #240c34 0%, #3a1154 60%, #1c0829 100%);
    border-bottom: 1px solid rgba(245, 202, 107, 0.42);
    min-height: 52px;
  }
  .install_m.is-dismissed { display: none !important; }
  .install_m-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .install_m-ico {
    width: 34px; height: 34px; border-radius: 8px;
    border: 1px solid var(--gold); flex-shrink: 0;
  }
  .install_m-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
  .install_m-txt strong { font-size: 13px; color: var(--gold-hi); white-space: nowrap; }
  .install_m-txt span { font-size: 10.5px; color: #ebd9f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .install_m-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
  .install_m-cta {
    padding: 6px 11px; border-radius: 999px; font-size: 11px; font-weight: 800;
    background: #14071b; border: 1px solid var(--gold-hi); color: var(--gold-hi); white-space: nowrap;
  }
  .install_m-close {
    appearance: none; background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(245, 202, 107, 0.35); color: var(--gold-hi);
    width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1;
  }
  .h-linem {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 40px;
    background: #01b901; color: #fff; font-weight: 800; font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }
  .h-linem-badge {
    background: #fff; color: #019101; padding: 2px 10px; border-radius: 6px;
    font-size: 13px; font-weight: 900;
  }
  .m-telegram {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 36px;
    background: linear-gradient(90deg, #0077b5, #0099dd); color: #fff;
    font-weight: 700; font-size: 14px;
  }
  .logo_m {
    display: flex; align-items: center; justify-content: center;
    padding: 10px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #faf3fc 100%);
    border-bottom: 1px solid rgba(36, 13, 51, 0.1);
  }
  .logo_m img { height: 64px; width: auto; }
}

/* Full-Width Navigation Menu (.tt_head_menu) */
.tt_head_menu {
  width: 100%;
  background: linear-gradient(90deg, #8b0c2e 0%, #c8102e 50%, #8b0c2e 100%);
  border-top: 1px solid rgba(255, 230, 163, 0.35);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.tt_head_menu ul.nav {
  list-style: none;
  margin: 0 auto;
  padding: 0 12px;
  max-width: 1180px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
}
.tt_head_menu ul.nav li {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}
.tt_head_menu ul.nav li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  font-size: 17px;
  font-weight: 700;
  color: #fffaf2;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}
.tt_head_menu ul.nav li a:hover,
.tt_head_menu ul.nav li a.is-active,
.tt_head_menu ul.nav li.is-active a {
  background: #fffaf2;
  color: #14071b;
}
.tt_head_menu ul.nav li.ico-new a {
  color: #fff !important;
  animation: op-pulse-reg 0.85s steps(2, end) infinite;
}
@keyframes op-pulse-reg {
  0% { background-color: #d8133a; }
  100% { background-color: #20092d; }
}
.tt_head_menu ul.nav li.ico-new .new-tag {
  position: absolute;
  top: 2px;
  right: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--gold-hi);
  color: #14071b;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.4px;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
@media (max-width: 1080px) {
  .tt_head_menu ul.nav li a { padding: 10px 13px; font-size: 15.5px; }
}
@media (max-width: 800px) {
  .tt_head_menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tt_head_menu::-webkit-scrollbar { display: none; }
  .tt_head_menu ul.nav {
    display: inline-flex;
    justify-content: flex-start;
    min-width: 100%;
    padding: 0;
  }
  .tt_head_menu ul.nav li a {
    padding: 10px 14px;
    font-size: 15px;
  }
}

/* ============================================================================
   2. FLOATING SIDE WIDGETS (#topbar2 left, #topbar right — >= 1380px only)
   ============================================================================ */
.side-float {
  position: fixed;
  top: 156px;
  z-index: 75;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#topbar2 { left: 6px; width: 112px; align-items: flex-start; }
#topbar { right: 6px; width: 118px; align-items: flex-end; }
@media (max-width: 1419px) {
  .side-float { display: none !important; }
}
.side-float-toggle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2b0d3d;
  border: 1.5px solid var(--gold);
  color: var(--gold-hi);
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
}
.side-float-open { display: none; }
.side-float.is-collapsed .side-float-close,
.side-float.is-collapsed .side-float-body { display: none; }
.side-float.is-collapsed .side-float-open { display: inline-flex; }
.side-float-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1e0b2a;
  border: 1.5px solid var(--border-gold);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  margin-bottom: 8px;
}
.side-float-card img { width: 100%; display: block; }
.side-float-label {
  width: 100%;
  text-align: center;
  padding: 5px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.side-float-label.is-line { background: #02a502; }
.side-float-label.is-tg { background: #0088cc; }

/* ============================================================================
   3. SHARED 2-COLUMN SPLIT HERO (.header_bg)
   ============================================================================ */
.header_bg {
  width: 100%;
  background: radial-gradient(960px 440px at 72% 45%, #fff5f8 0%, #f8eefb 56%, #ffffff 100%);
  border-bottom: 1.5px solid rgba(36, 13, 51, 0.12);
  padding: 20px 0 26px;
}
.header-split {
  display: flex;
  align-items: center;
  gap: 26px;
}
.tt_lb {
  flex: 1 1 48%;
  min-width: 0;
  text-align: center;
}
.line-cta-link {
  display: block;
  max-width: 390px;
  margin: 0 auto 14px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(36, 13, 51, 0.18);
  transition: transform 0.18s ease;
}
.line-cta-link:hover { transform: translateY(-2px); }
.tt_txt_seo {
  font-size: 15px;
  line-height: 1.65;
  color: #2d153d;
  font-weight: 500;
  text-align: left;
  margin: 0;
}
.tt_rb {
  flex: 1 1 52%;
  min-width: 0;
}
.hero-carousel {
  position: relative;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
  touch-action: pan-y;
  user-select: none;
}
.hero-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hero-track.is-dragging { transition: none; }
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  display: block;
}
.hero-slide img {
  width: 100%;
  aspect-ratio: 760 / 480;
  object-fit: contain;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(200, 16, 46, 0.45);
  color: #240d33;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(36, 13, 51, 0.18);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.carousel-dot {
  position: relative;
  width: 10px;
  height: 7px;
  border-radius: 999px;
  background: rgba(36, 13, 51, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: width 0.25s ease;
}
.carousel-dot.active { width: 32px; background: rgba(200, 16, 46, 0.24); }
.carousel-dot.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ruby), var(--ruby-dark));
  transform-origin: left center;
  animation: op-dot-fill 4.5s linear forwards;
}
.hero-carousel.is-paused .carousel-dot.active::after { animation-play-state: paused; }
@keyframes op-dot-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (max-width: 800px) {
  .header_bg { padding: 14px 0 18px; }
  .header-split { flex-direction: column; gap: 14px; }
  .tt_lb, .tt_rb { width: 100%; flex: none; }
  .line-cta-link { max-width: 340px; margin-bottom: 10px; }
  .tt_txt_seo { font-size: 13.5px; line-height: 1.55; }
}

/* ============================================================================
   4. HOMEPAGE 6-BAND SECTIONS (.bg_g1 .. .bg_g6)
   ============================================================================ */
.h_slot {
  font-size: clamp(24px, 3.3vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  background: linear-gradient(180deg, #240d33 0%, #6b1037 58%, #b91038 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 6px;
}
.tx_h2 {
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 500;
  text-align: center;
  color: var(--text-soft);
  margin: 0 0 22px;
}
.arhx {
  width: 112px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--ruby), var(--gold), transparent);
  margin: 10px auto 22px;
}

/* Band 1 (.bg_g1): 10 Provider Cards 5x2 */
.bg_g1 {
  background: #ffffff;
  padding: 34px 0 42px;
  border-bottom: 1px solid rgba(36, 13, 51, 0.1);
}
.tt_col_grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tt_col_3x {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(36, 13, 51, 0.16);
}
.tt_col_3x img {
  width: 100%;
  aspect-ratio: 450 / 315;
  object-fit: cover;
  display: block;
}
.tt_col_3x:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(200, 16, 46, 0.26);
}
@media (max-width: 800px) {
  .bg_g1 { padding: 24px 0 28px; }
  .tt_col_grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
}

/* Band 2 & 4 (.bg_g3 & .bg_g5): 4-Up Portrait Poster Carousels */
.bg_g3, .bg_g5 {
  background: linear-gradient(180deg, #faf4fc 0%, #ffffff 100%);
  padding: 36px 0 42px;
  border-bottom: 1px solid rgba(36, 13, 51, 0.1);
}
.snap-shell {
  position: relative;
  padding: 0 24px;
}
.snap-viewport {
  overflow: hidden;
  width: 100%;
}
.snap-track {
  display: flex;
  gap: 14px;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.poster-card {
  flex: 0 0 calc((100% - 42px) / 4);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(36, 13, 51, 0.18);
  transition: transform 0.2s ease;
}
.poster-card:hover { transform: translateY(-4px); }
.poster-card img {
  width: 100%;
  aspect-ratio: 420 / 520;
  object-fit: cover;
  display: block;
}
.snap-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 7, 27, 0.94);
  border: 1.5px solid var(--gold);
  color: var(--gold-hi);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(36, 13, 51, 0.25);
}
.snap-arrow.prev { left: 0; }
.snap-arrow.next { right: 0; }
.snap-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}
.snap-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(36, 13, 51, 0.24);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.snap-dot.active {
  width: 22px;
  background: linear-gradient(90deg, var(--ruby), var(--ruby-dark));
}

@media (max-width: 800px) {
  .bg_g3, .bg_g5 { padding: 26px 0 30px; }
  .snap-shell { padding: 0; }
  .snap-arrow { display: none; }
  .snap-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .snap-viewport::-webkit-scrollbar { display: none; }
  .snap-track { transform: none !important; gap: 10px; }
  .poster-card { flex: 0 0 62%; scroll-snap-align: start; }
  .snap-dots { display: flex; }
}

/* Band 3 (.bg_g2): Deep Royal Velvet Contrast Spotlight Band */
.bg_g2 {
  background: radial-gradient(900px 400px at 50% 30%, #35104b 0%, #14071b 78%);
  padding: 38px 0 42px;
  border-bottom: 2px solid rgba(245, 202, 107, 0.4);
  color: #fffaf2;
}
.single-banner-link {
  display: block;
  max-width: 780px;
  margin: 0 auto 20px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.bg2-seo {
  max-width: 880px;
  margin: 0 auto 24px;
  text-align: center;
}
.bg_g2 .bg2-seo h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--gold-hi);
}
.bg_g2 .bg2-seo p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #ebd9f6;
}
.bg_g2 .snap-dot { background: rgba(245, 202, 107, 0.36); }
.bg_g2 .snap-dot.active { background: linear-gradient(90deg, var(--ruby-bright), var(--gold-hi)); }
.sub-card {
  flex: 0 0 calc((100% - 14px) / 2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.52);
}
.sub-card img { width: 100%; aspect-ratio: 800 / 340; object-fit: cover; }
.review-banner-link {
  display: block;
  max-width: 860px;
  margin: 24px auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
@media (max-width: 800px) {
  .bg_g2 { padding: 28px 0 32px; }
  .sub-card { flex: 0 0 86%; scroll-snap-align: start; }
  .bg_g2 .bg2-seo p { font-size: 13.5px; }
}

/* Band 5 (.bg_g4): LINE CTA + 3-Up Jackpot Slips */
.bg_g4 {
  background: #ffffff;
  padding: 36px 0 42px;
  border-bottom: 1px solid rgba(36, 13, 51, 0.1);
}
.bg4-line-cta {
  display: block;
  max-width: 700px;
  margin: 0 auto 24px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(36, 13, 51, 0.2);
}
.jackpot-card {
  flex: 0 0 calc((100% - 28px) / 3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(36, 13, 51, 0.18);
}
.jackpot-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 800px) {
  .bg_g4 { padding: 26px 0 30px; }
  .jackpot-card { flex: 0 0 76%; scroll-snap-align: start; }
}

/* Band 6 (.bg_g6): Articles Mosaic (.btmc) */
.bg_g6 {
  background: linear-gradient(180deg, #faf4fc 0%, #ffffff 100%);
  padding: 36px 0 46px;
}
.btmc {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 18px;
  align-items: start;
}
.post-l1b {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid rgba(36, 13, 51, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(36, 13, 51, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.post-l1b:hover { transform: translateY(-3px); border-color: var(--ruby); }
.post-l1b img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-l1b .tt_dsc { padding: 14px 16px 16px; }
.post-l1b h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.35; color: #240d33; }
.post-l1b p { margin: 0; font-size: 14px; color: #4a325c; line-height: 1.55; }

.post-l4b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.post-l4b {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(36, 13, 51, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(36, 13, 51, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.post-l4b:hover { transform: translateY(-3px); border-color: var(--ruby); }
.post-l4b img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-l4b .tt_dsc { padding: 10px 12px; }
.post-l4b h3 { margin: 0 0 4px; font-size: 14.5px; line-height: 1.35; color: #240d33; }
.post-l4b p { margin: 0; font-size: 12.5px; color: #6b547c; line-height: 1.45; }

@media (max-width: 800px) {
  .bg_g6 { padding: 26px 0 32px; }
  .btmc { grid-template-columns: 1fr; gap: 14px; }
  .post-l4b-grid { grid-template-columns: 1fr; gap: 10px; }
  .post-l4b {
    display: grid;
    grid-template-columns: 132px 1fr;
    align-items: center;
  }
  .post-l4b img { height: 100%; aspect-ratio: 16 / 10; }
}

/* ============================================================================
   5. INNER PAGES (.p_gl, .title_page, .tt_content, .promo-row, .post-l3x, etc.)
   ============================================================================ */
.title_page {
  background: linear-gradient(90deg, #240d33 0%, #521034 50%, #240d33 100%);
  border-bottom: 2px solid var(--gold);
  padding: 20px 16px;
  text-align: center;
}
.title_page h1 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  color: var(--gold-hi);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.75);
}
.title_page .sub-lead {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: #ebd9f6;
}
.tt_content.bg {
  background: #f7f1fa;
  padding: 26px 0 48px;
}
.thaitheme_read {
  background: #ffffff;
  border: 1.5px solid rgba(36, 13, 51, 0.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  color: var(--text);
}
.thaitheme_read h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  color: #240d33;
}
.thaitheme_read p { margin: 0 0 12px; color: #3c264d; font-size: 15px; line-height: 1.7; }
@media (max-width: 800px) {
  .tt_content.bg { padding: 16px 0 32px; }
  .thaitheme_read { padding: 14px; border-radius: 12px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--ruby), var(--ruby-dark));
  border-color: var(--gold-hi);
  color: #fff;
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.28);
}
.btn-gold {
  background: linear-gradient(180deg, #fff1be 0%, #f5ca6b 65%, #cf9427 100%);
  border-color: #fff5d1;
  color: #14071b;
}
.btn-outline {
  background: #faf5fc;
  border-color: rgba(36, 13, 51, 0.28);
  color: #240d33;
}
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 12px 24px; font-size: 16px; border-radius: 12px; }

/* Promotions Stacked Rows (.promo-row) */
.promo-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(36, 13, 51, 0.12);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(36, 13, 51, 0.08);
}
.promo-row-img img { width: 100%; aspect-ratio: 800 / 340; object-fit: cover; display: block; }
.promo-row-body { padding: 16px 20px 16px 0; }
.promo-row-body h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: #9f1239; }
.promo-row-body p { margin: 0 0 14px; font-size: 14.5px; color: #432b54; line-height: 1.55; }
@media (max-width: 800px) {
  .promo-row { grid-template-columns: 1fr; gap: 0; }
  .promo-row-body { padding: 14px; }
  .promo-row-body h3 { font-size: 18px; }
}

/* Poster Grids on /casino & /slot */
.poster-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 24px;
}
.poster-grid-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(36, 13, 51, 0.14);
  transition: transform 0.2s ease;
}
.poster-grid-item:hover { transform: translateY(-4px); }
.poster-grid-item img { width: 100%; aspect-ratio: 420 / 520; object-fit: cover; }
@media (max-width: 800px) {
  .poster-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Category Tabs (Single-Row Scrollable on Mobile) */
.cat-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  appearance: none;
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: #faf5fc;
  border: 1.5px solid rgba(36, 13, 51, 0.15);
  color: #432b54;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.cat-tab.active {
  background: linear-gradient(135deg, var(--ruby), var(--ruby-dark));
  border-color: var(--gold-hi);
  color: #fff;
}

/* Demo Slot Cards Grid */
.demo-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.demo-card {
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(36, 13, 51, 0.07);
  display: flex;
  flex-direction: column;
}
.demo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.demo-card-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.demo-card-body h3 { margin: 0; font-size: 15.5px; color: #240d33; }
.demo-card-body p { margin: 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 800px) {
  .demo-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Horizontal Articles (.post-l3x) */
.post-l3x-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.post-l3x {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 12px;
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(36, 13, 51, 0.06);
}
.post-l3x img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-l3x .tt_dsc { padding: 10px 12px 10px 0; }
.post-l3x h3 { margin: 0 0 6px; font-size: 16px; color: #240d33; line-height: 1.35; }
.post-l3x p { margin: 0 0 8px; font-size: 13px; color: #432b54; line-height: 1.45; }
@media (max-width: 800px) {
  .post-l3x-grid { grid-template-columns: 1fr; }
  .post-l3x { grid-template-columns: 132px 1fr; gap: 10px; }
  .post-l3x .tt_dsc { padding: 8px 10px 8px 0; }
  .post-l3x h3 { font-size: 14px; }
}

/* Sequential Steps, Affiliate Calc, FAQ, Contact, Credibility */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.step-card {
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.step-card.is-step-active {
  border-color: var(--ruby);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.18);
  transform: translateY(-2px);
}
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ruby), var(--ruby-dark));
  border: 1px solid var(--gold-hi); color: #fff; font-weight: 800; font-size: 14px;
  margin-bottom: 10px;
}
.step-card h3 { margin: 0 0 6px; font-size: 17px; color: #240d33; }
.step-card p { margin: 0; font-size: 13.5px; color: #432b54; }

.cred-gallery-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
}
.cred-gallery-4 img { border-radius: 12px; border: 1.5px solid var(--border-gold); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 800px) {
  .cred-gallery-4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.badge-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #faf5fc;
  border: 1px solid rgba(200, 16, 46, 0.28);
  color: #9f1239;
  font-size: 12.5px;
  font-weight: 700;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: #240d33;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--ruby); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  display: none;
  padding: 0 16px 14px;
  color: #432b54;
  font-size: 14px;
  line-height: 1.65;
}
.faq-item.open .faq-a { display: block; }

.aff-calc-card {
  background: var(--surface-card);
  border: 1.5px solid var(--border-gold);
  border-radius: 16px;
  padding: 20px;
  margin: 18px 0;
}
.aff-range { width: 100%; accent-color: var(--ruby); margin: 12px 0; cursor: pointer; }
.aff-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.aff-stat {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.aff-stat span { display: block; font-size: 12.5px; color: var(--muted); }
.aff-stat strong { display: block; font-size: 20px; color: #9f1239; margin-top: 2px; }
@media (max-width: 800px) {
  .aff-results { grid-template-columns: 1fr; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.qr-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.qr-card {
  background: var(--surface-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.qr-card img { max-width: 150px; margin: 0 auto 8px; border-radius: 10px; }
.form-group { margin-bottom: 12px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: #240d33; margin-bottom: 5px; }
.form-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(36, 13, 51, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
  color: #1e0b2a;
  font-size: 14px;
  outline: none;
}
.form-input:focus { border-color: var(--ruby); }

/* ============================================================================
   6. FOOTER (.footer.lk-footer) & DESKTOP/MOBILE STICKY BOTTOM BARS
   ============================================================================ */
.footer_cx {
  background: linear-gradient(180deg, #240d33 0%, #14071b 100%);
  border-top: 2px solid var(--gold);
  padding: 28px 0 22px;
  color: #fffaf2;
}
.footer-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.copyright_footer {
  flex: 0 0 290px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.copyright_footer img { max-width: 240px; }
.footer-line-id { font-size: 16px; font-weight: 700; color: var(--gold-hi); }
.c_footer {
  flex: 1 1 560px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.c_footer h4 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--gold-hi);
  border-bottom: 1px solid rgba(245, 202, 107, 0.25);
  padding-bottom: 5px;
}
.c_footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer_cx .c_footer ul li a { font-size: 14px; color: #ebd9f6; }
.footer_cx .c_footer ul li a:hover { color: var(--gold-hi); }
.b_footer {
  background: #0b0311;
  border-top: 1px solid rgba(245, 202, 107, 0.2);
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  color: #bda7cd;
}
@media (max-width: 800px) {
  .copyright_footer { flex: 1 1 100%; align-items: center; text-align: center; }
  .c_footer { grid-template-columns: 1fr; gap: 14px; text-align: center; }
}

/* Desktop 5-Button Fixed Bottom Bar */
.fix_footer.show_pc {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 82;
  height: 54px;
  background: linear-gradient(90deg, #1b0827 0%, #2d0e40 50%, #1b0827 100%);
  border-top: 2px solid var(--gold);
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.fix_footer .fix_footer_btn {
  flex: 0 1 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fffaf2;
  font-size: 16.5px;
  font-weight: 700;
  border-right: 1px solid rgba(245, 202, 107, 0.2);
  transition: background 0.16s ease, color 0.16s ease;
}
.fix_footer .fix_footer_btn:last-child { border-right: 0; }
.fix_footer .fix_footer_btn.is-reg {
  background: linear-gradient(135deg, var(--ruby), var(--ruby-dark));
  color: #ffffff;
}
.fix_footer .fix_footer_btn:hover,
.fix_footer .fix_footer_btn.is-active {
  background: var(--gold-hi);
  color: #14071b;
}

/* Mobile 5-Button Fixed Bottom Bar w/ Center Raised Orb */
.fix_footer2.mobile-bottombar.show_m { display: none; }
@media (max-width: 800px) {
  .fix_footer.show_pc { display: none; }
  .fix_footer2.mobile-bottombar.show_m {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 86;
    height: 66px;
    padding: 4px 4px calc(6px + env(safe-area-inset-bottom));
    background: #0b0311;
    border-top: 2px solid var(--gold);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.65);
  }
  .fix_footer2 .bb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    color: #fffaf2;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
  }
  .fix_footer2 .bb-ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fffaf2;
    color: #14071b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  }
  .fix_footer2 .bb-item.is-active .bb-ico {
    background: var(--gold-hi);
    color: var(--ruby-dark);
  }
  .fix_footer2 .bb-item.fix_c .bb-ico {
    width: 56px;
    height: 56px;
    margin-top: -26px;
    background: linear-gradient(135deg, var(--ruby-bright), var(--ruby-dark));
    border: 2.5px solid var(--gold-hi);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.55);
  }
  .fix_footer2 .bb-item.fix_c span.bb-lbl {
    color: var(--gold-hi);
    font-size: 11.5px;
    font-weight: 800;
  }
}

/* ============================================================================
   7. FLOATING DOCK PANEL, BACK-TO-TOP, DRAWER, MODAL, TOAST & REDUCED MOTION
   ============================================================================ */
.dock-wrap {
  position: fixed;
  right: 12px;
  bottom: 72px;
  z-index: 84;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
@media (max-width: 800px) {
  .dock-wrap { bottom: 84px; right: 10px; }
}
.back-top-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ruby), var(--ruby-dark));
  border: 1.5px solid var(--gold-hi);
  color: #fff; font-weight: 900; font-size: 16px;
  cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}
.back-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.dock-panel {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 7, 27, 0.94);
  border: 1.5px solid var(--border-gold);
  border-radius: 999px;
  padding: 5px 8px;
  box-shadow: var(--shadow);
}
.dock-panel.collapsed .dock-links { display: none; }
.dock-links { display: flex; align-items: center; gap: 6px; }
.dock-chip {
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff;
  white-space: nowrap;
}
.dock-chip.is-line { background: #01b901; }
.dock-chip.is-tg { background: #0088cc; }
.dock-toggle {
  width: 28px; height: 28px; border-radius: 50%;
  background: #2f1142; border: 1px solid var(--gold); color: var(--gold-hi);
  font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}

/* Right Slide-Over Drawer */
.drawer-dimmer {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(11, 3, 17, 0.72);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.drawer-dimmer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 330px);
  z-index: 98;
  background: linear-gradient(180deg, #240d33 0%, #14071b 100%);
  border-left: 2px solid var(--gold);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.drawer-head img { height: 42px; width: auto; }
.drawer-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-hi); border: 1px solid var(--gold);
  color: var(--gold-hi); font-size: 18px; cursor: pointer;
}
.drawer-nav { display: flex; flex-direction: column; gap: 6px; }
.drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 202, 107, 0.22);
  color: #fffaf2; font-size: 15px; font-weight: 700;
}
.drawer-link:hover { background: var(--ruby-dark); border-color: var(--gold); }
.drawer-tools { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.mobile-drawer .btn-outline,
.modal-box .btn-outline {
  background: #240d33;
  border-color: var(--gold);
  color: var(--gold-hi);
}
.modal-box .form-label { color: var(--gold-hi); }
.modal-box .form-input {
  background: #14071b;
  border-color: rgba(245, 202, 107, 0.38);
  color: #ffffff;
}
.modal-box p { color: #ebd9f6; }

/* Flush Bottom-Sheet Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(11, 3, 17, 0.78);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity 0.22s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-box {
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, #240d33 0%, #14071b 100%);
  border: 2px solid var(--gold);
  border-radius: 18px;
  padding: 20px;
  position: relative;
  color: #fffaf2;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.8);
}
.modal-handle {
  display: none;
  width: 42px; height: 4px; border-radius: 999px;
  background: rgba(245, 202, 107, 0.5);
  margin: -6px auto 12px;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-hi); border: 1px solid var(--gold);
  color: var(--gold-hi); font-size: 16px; cursor: pointer;
}
@media (max-width: 768px) {
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-box {
    max-width: 100%; width: 100%;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    padding: 16px 16px calc(22px + env(safe-area-inset-bottom));
  }
  .modal-handle { display: block; }
}

.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%) translateY(16px);
  z-index: 120; padding: 10px 18px; border-radius: 999px;
  background: #14071b; border: 1.5px solid var(--gold-hi); color: var(--gold-hi);
  font-size: 13.5px; font-weight: 700; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
