/* ==========================================================================
   TREASURYY WHITE LABEL SAAS - 10 NEXT-GEN STRUCTURAL FRONTEND LAYOUTS
   Includes authentic replicas of:
   1. SkyInplay / SkyExchange (https://www.skyinplay.club/)
   2. Diamond99 Exchange (https://www.diamond99.pink/)
   And 8 additional international iGaming structural architectures.
   ========================================================================== */

:root {
  --sky-navy: #12161c;
  --sky-dark: #0b0e13;
  --sky-gold: #ffb800;
  --sky-blue: #38bdf8;
  --back-blue: #72bbef;
  --back-blue-hover: #58a5f0;
  --lay-pink: #faa9ba;
  --lay-pink-hover: #f692a7;
  --diamond-pink: #ff2d78;
  --diamond-violet: #0c0614;
  --diamond-card: #160d24;
  --stake-bg: #0f1923;
  --stake-card: #1a2736;
  --stake-green: #00e701;
  --bet365-green: #0d5236;
  --bet365-dark: #126240;
  --bet365-yellow: #ffdf1b;
}

/* Force hide legacy React TanStack app when SaaS structural engine is active */
html[data-saas-active="true"] body > div:not(#saas-app-root):not(#saas-studio-modal):not(#saas-studio-pill):not(#saas-auth-modal):not(#saas-game-modal):not(#saas-deposit-modal):not(#saas-withdraw-modal):not(#saas-matka-modal):not(#saas-floating-betslip):not(#saas-toast-container):not(#theme-preview-modal),
html[data-saas-active="true"] body > section:not(#saas-toast-container),
html[data-saas-active="true"] body > header,
html[data-saas-active="true"] body > footer,
html[data-saas-active="true"] #wl-showroom-toggle,
html[data-saas-active="true"] #wl-showroom-modal {
  display: none !important;
}

#saas-app-root {
  position: relative !important;
  z-index: 99999 !important;
  width: 100% !important;
  min-height: 100vh !important;
  display: block !important;
  background-color: #0b0e13;
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  box-sizing: border-box;
}

#saas-app-root *, #saas-app-root *::before, #saas-app-root *::after {
  box-sizing: inherit;
}

/* Common Odds Box Buttons (Betting Exchange Back/Lay) */
.odds-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  padding: 4px 6px;
  font-weight: 800;
  transition: all 0.15s ease-in-out;
  border: 1px solid transparent;
  user-select: none;
  min-width: 58px;
  text-align: center;
}
.odds-btn:active {
  transform: scale(0.96);
}
.odds-btn.back-box {
  background-color: var(--back-blue);
  color: #042940;
}
.odds-btn.back-box:hover {
  background-color: var(--back-blue-hover);
  box-shadow: 0 0 8px rgba(114, 187, 239, 0.4);
}
.odds-btn.lay-box {
  background-color: var(--lay-pink);
  color: #4c0519;
}
.odds-btn.lay-box:hover {
  background-color: var(--lay-pink-hover);
  box-shadow: 0 0 8px rgba(250, 169, 186, 0.4);
}
.odds-val {
  font-size: 13px;
  line-height: 1.1;
  font-weight: 900;
}
.odds-vol {
  font-size: 10px;
  opacity: 0.85;
  font-weight: 600;
  margin-top: 1px;
}

/* Live In-Play Beacon Animation */
.live-beacon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ef4444;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ef4444;
  animation: live-pulse 1.4s infinite;
}
@keyframes live-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Running Marquee Ticker */
.saas-marquee-bar {
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  height: 32px;
  overflow: hidden;
  font-size: 12px;
}
.saas-marquee-label {
  padding: 0 12px;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  height: 100%;
}
.saas-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 25s linear infinite;
}
.saas-marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   THEME 1: SKYEXCHANGE CLASSIC (skyinplay.club Replica)
   ========================================================================== */
.theme-sky-exchange {
  background-color: #0d1117;
  color: #e2e8f0;
}
.theme-sky-exchange .sky-header {
  background-color: #161b22;
  border-bottom: 2px solid #ffb800;
}
.theme-sky-exchange .sky-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.theme-sky-exchange .sky-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffb800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-sky-exchange .sky-sports-nav {
  display: flex;
  align-items: center;
  background-color: #0b0e14;
  overflow-x: auto;
  scrollbar-width: none;
}
.theme-sky-exchange .sky-sports-nav::-webkit-scrollbar {
  display: none;
}
.theme-sky-exchange .sky-sport-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.theme-sky-exchange .sky-sport-item:hover,
.theme-sky-exchange .sky-sport-item.active {
  color: #ffb800;
  background-color: #121822;
  border-bottom-color: #ffb800;
}

/* 3-Column SkyExchange Layout */
.theme-sky-exchange .sky-main-grid {
  display: grid;
  grid-template-columns: 240px 1fr 330px;
  gap: 12px;
  padding: 12px;
  max-width: 1720px;
  margin: 0 auto;
}
@media (max-width: 1200px) {
  .theme-sky-exchange .sky-main-grid {
    grid-template-columns: 220px 1fr;
  }
  .theme-sky-exchange .sky-right-col {
    display: none;
  }
}
@media (max-width: 860px) {
  .theme-sky-exchange .sky-main-grid {
    grid-template-columns: 1fr;
  }
  .theme-sky-exchange .sky-left-col {
    display: none;
  }
}

.theme-sky-exchange .sky-left-tree {
  background-color: #161b22;
  border: 1px solid #21262d;
  border-radius: 6px;
  overflow: hidden;
}
.theme-sky-exchange .sky-tree-header {
  background-color: #21262d;
  color: #ffb800;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.theme-sky-exchange .sky-tree-item {
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}
.theme-sky-exchange .sky-tree-item:hover {
  background-color: #1c2128;
  color: #ffb800;
}
.theme-sky-exchange .sky-tree-badge {
  background-color: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Match Odds Matrix Table */
.theme-sky-exchange .sky-table-card {
  background-color: #161b22;
  border: 1px solid #21262d;
  border-radius: 6px;
  margin-bottom: 14px;
  overflow: hidden;
}
.theme-sky-exchange .sky-table-head {
  background-color: #21262d;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
}
.theme-sky-exchange .sky-odds-head-cols {
  display: grid;
  grid-template-columns: repeat(3, 124px);
  gap: 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
}
.theme-sky-exchange .sky-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #21262d;
  transition: background 0.15s;
}
.theme-sky-exchange .sky-match-row:hover {
  background-color: #1c2128;
}
.theme-sky-exchange .sky-match-meta {
  flex: 1;
  padding-right: 12px;
}
.theme-sky-exchange .sky-match-title {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-sky-exchange .sky-match-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-sky-exchange .sky-match-odds-grid {
  display: grid;
  grid-template-columns: repeat(3, 124px);
  gap: 6px;
}
.theme-sky-exchange .sky-odd-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

/* SkyExchange Bet Slip Panel */
.theme-sky-exchange .sky-betslip-card {
  background-color: #161b22;
  border: 1px solid #21262d;
  border-radius: 6px;
  overflow: hidden;
  position: sticky;
  top: 12px;
}
.theme-sky-exchange .sky-betslip-head {
  background-color: #ffb800;
  color: #0f172a;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
}
.theme-sky-exchange .sky-betslip-body {
  padding: 12px;
}

/* ==========================================================================
   THEME 2: DIAMOND99 EXCHANGE (diamond99.pink Replica)
   ========================================================================== */
.theme-diamond-99 {
  background-color: #0b0512;
  color: #fce7f3;
}
.theme-diamond-99 .d99-header {
  background-color: #160826;
  border-bottom: 2px solid #ff2d78;
}
.theme-diamond-99 .d99-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
}
.theme-diamond-99 .d99-logo {
  font-size: 24px;
  font-weight: 900;
  color: #ff2d78;
  text-shadow: 0 0 12px rgba(255, 45, 120, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-diamond-99 .d99-sports-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #0d0417;
  overflow-x: auto;
}
.theme-diamond-99 .d99-sport-pill {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  color: #cbd5e1;
  background-color: #210d38;
  border: 1px solid rgba(255, 45, 120, 0.2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.theme-diamond-99 .d99-sport-pill:hover,
.theme-diamond-99 .d99-sport-pill.active {
  background-color: #ff2d78;
  color: #ffffff;
  border-color: #ff2d78;
  box-shadow: 0 0 10px rgba(255, 45, 120, 0.4);
}
.theme-diamond-99 .d99-card {
  background-color: #170929;
  border: 1px solid #301354;
  border-radius: 8px;
  margin-bottom: 14px;
}
.theme-diamond-99 .d99-card-head {
  background: linear-gradient(90deg, #270d47 0%, #170929 100%);
  border-bottom: 1px solid #3d176b;
  padding: 10px 16px;
  font-weight: 900;
  color: #ff2d78;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   THEME 3: STAKE PRO DARK (Widescreen Crypto Casino & Live Sportsbook)
   ========================================================================== */
.theme-stake-crypto {
  background-color: #0f1923;
  color: #f1f5f9;
}
.theme-stake-crypto .stake-layout {
  display: flex;
  min-height: 100vh;
}
.theme-stake-crypto .stake-mini-sidebar {
  width: 68px;
  background-color: #152232;
  border-right: 1px solid #1e3046;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}
.theme-stake-crypto .stake-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: transparent;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-stake-crypto .stake-icon-btn:hover,
.theme-stake-crypto .stake-icon-btn.active {
  background-color: #00e701;
  color: #0f1923;
}
.theme-stake-crypto .stake-content {
  flex: 1;
  padding: 16px 24px;
  overflow-y: auto;
}
.theme-stake-crypto .stake-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.theme-stake-crypto .stake-game-card {
  aspect-ratio: 3/4;
  border-radius: 8px;
  background-color: #1a2736;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #25394e;
}
.theme-stake-crypto .stake-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 231, 1, 0.15);
  border-color: #00e701;
}

/* ==========================================================================
   THEME 4: BET365 EUROPEAN SPORTSBOOK (Classic Green & Yellow)
   ========================================================================== */
.theme-bet365-pro {
  background-color: #126240;
  color: #ffffff;
}
.theme-bet365-pro .b365-topbar {
  background-color: #0d5236;
  border-bottom: 2px solid #ffdf1b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
}
.theme-bet365-pro .b365-brand {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
}
.theme-bet365-pro .b365-brand span {
  color: #ffdf1b;
}
.theme-bet365-pro .b365-grid {
  display: grid;
  grid-template-columns: 220px 1fr 310px;
  background-color: #0c1813;
  min-height: calc(100vh - 54px);
}
.theme-bet365-pro .b365-tree {
  background-color: #122820;
  border-right: 1px solid #1a3c30;
}
.theme-bet365-pro .b365-main {
  padding: 12px;
  background-color: #0f211a;
}

/* ==========================================================================
   THEME 5: MACAU GOLDEN DRAGON (Cotai Strip VIP Salon)
   ========================================================================== */
.theme-macau-dragon {
  background-color: #150306;
  color: #fff1f2;
}
.theme-macau-dragon .macau-header {
  background: linear-gradient(180deg, #2b060d 0%, #190408 100%);
  border-bottom: 2px solid #eab308;
}
.theme-macau-dragon .macau-baccarat-card {
  background-color: #24070e;
  border: 1px solid #48111c;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

/* ==========================================================================
   THEME 6: CYBERPUNK 2099 (Esports & Neon HUD Terminal)
   ========================================================================== */
.theme-cyberpunk-neon {
  background-color: #050813;
  color: #00f0ff;
}
.theme-cyberpunk-neon .cyber-header {
  background-color: #0b1126;
  border-bottom: 2px solid #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}
.theme-cyberpunk-neon .cyber-card {
  background-color: #0b1228;
  border: 1px solid #192956;
  border-left: 3px solid #ff007f;
}

/* ==========================================================================
   THEME 7: 1XBET MOBILE MASTER (Mobile-First Asian App)
   ========================================================================== */
.theme-mobile-master-1x {
  background-color: #0f172a;
  color: #f8fafc;
}
.theme-mobile-master-1x .stories-bar {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  overflow-x: auto;
  background-color: #1e293b;
}
.theme-mobile-master-1x .story-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.theme-mobile-master-1x .story-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
  font-size: 22px;
}

/* ==========================================================================
   THEME 8: MONACO GRAND ROYALE (French Riviera High Society)
   ========================================================================== */
.theme-monaco-grand-royale {
  background-color: #070d18;
  color: #f8fafc;
  font-family: "Georgia", "Playfair Display", serif;
}
.theme-monaco-grand-royale .monaco-header {
  background-color: #0d1728;
  border-bottom: 2px solid #38bdf8;
}

/* ==========================================================================
   THEME 9: DUBAI DESERT OASIS (Middle Eastern Sunset Penthouse)
   ========================================================================== */
.theme-dubai-desert-oasis {
  background-color: #130b05;
  color: #fffbeb;
}
.theme-dubai-desert-oasis .dubai-header {
  background-color: #211309;
  border-bottom: 2px solid #f59e0b;
}

/* ==========================================================================
   THEME 10: VEGAS VELVET CLUB (Sin City Bellagio Strip)
   ========================================================================== */
.theme-las-vegas-velvet {
  background-color: #130307;
  color: #fff1f2;
}
.theme-las-vegas-velvet .vegas-header {
  background-color: #22060e;
  border-bottom: 2px solid #fbbf24;
}

/* ==========================================================================
   MOBILE BOTTOM BAR (Present on Exchange & Mobile Themes)
   ========================================================================== */
.saas-mobile-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background-color: #11161d;
  border-top: 1px solid #1f2733;
  display: none;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
}
@media (max-width: 860px) {
  .saas-mobile-dock {
    display: flex;
  }
  #saas-app-root {
    padding-bottom: 64px;
  }
}
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  cursor: pointer;
}
.dock-item.active {
  color: #ffb800;
}
.dock-icon {
  font-size: 18px;
}

/* ==========================================================================
   UNIVERSAL THEME STUDIO / SHOWROOM FLOATING DOCK
   ========================================================================== */
#saas-studio-pill {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 10000;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #ffb800;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 184, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
#saas-studio-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 16px rgba(255, 184, 0, 0.5);
}
@media (max-width: 860px) {
  #saas-studio-pill {
    bottom: 68px;
    right: 12px;
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* Theme Selector Drawer Modal */
#saas-studio-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#saas-studio-modal.active {
  display: flex;
}
.studio-modal-box {
  background-color: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}
.studio-modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.studio-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.studio-theme-card {
  background-color: #1e293b;
  border: 2px solid #334155;
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.studio-theme-card:hover {
  transform: translateY(-3px);
  border-color: #ffb800;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.studio-theme-card.current {
  border-color: #ffb800;
  background-color: #1e2b45;
}

/* ==========================================================================
   INTERACTIVE GAME THEATER MODAL
   ========================================================================== */
#saas-game-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(12px);
  z-index: 999999 !important;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
#saas-game-modal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.game-modal-frame {
  width: min(1200px, 98vw);
  height: min(780px, 94vh);
  background: #090d14;
  border: 1px solid #1e293b;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.15);
}
.game-modal-header {
  height: 48px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.game-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
  color: #ffb800;
}
.game-modal-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.game-modal-body {
  flex: 1;
  position: relative;
  background: #030712;
}
.game-modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.game-loader-overlay {
  position: absolute;
  inset: 0;
  background: #090d14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
  transition: opacity 0.3s;
}
.game-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #1e293b;
  border-top-color: #ffb800;
  border-radius: 50%;
  animation: gameSpin 0.8s linear infinite;
}
@keyframes gameSpin { to { transform: rotate(360deg); } }

/* ==========================================================================
   DEPOSIT & WITHDRAWAL INTERACTIVE MODALS
   ========================================================================== */
#saas-deposit-modal,
#saas-withdraw-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
#saas-deposit-modal.active,
#saas-withdraw-modal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.wallet-modal-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  width: min(480px, 96vw);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  animation: modalPop 0.2s ease-out;
}
@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.wallet-modal-head {
  padding: 16px 20px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wallet-modal-body {
  padding: 20px;
}
.quick-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0;
}
.wallet-chip-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 8px 4px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.wallet-chip-btn:hover {
  border-color: #10b981;
  background: #0f2e22;
  color: #10b981;
}

/* Category Filter Bar */
.saas-cat-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: none;
}
.saas-cat-filter-bar::-webkit-scrollbar { display: none; }
.saas-cat-pill {
  white-space: nowrap;
  background: #151e2b;
  border: 1px solid #26354a;
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.saas-cat-pill:hover,
.saas-cat-pill.active {
  background: #ffb800;
  color: #000;
  border-color: #ffb800;
}

/* Floating Toast Notification */
#saas-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 200000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.saas-toast {
  background: #0f172a;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}
.saas-toast.success { border-color: #10b981; }
.saas-toast.error { border-color: #f43f5e; }
@keyframes toastIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   AUTHENTICATION MODAL & MATKA MODAL
   ========================================================================== */
#saas-auth-modal,
#saas-matka-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 999999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
#saas-auth-modal.active,
#saas-matka-modal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.auth-modal-card {
  background: #0f1623;
  border: 1px solid #29384d;
  border-radius: 12px;
  width: min(440px, 96vw);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating Bet Slip Drawer */
#saas-floating-betslip {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 330px;
  max-width: 92vw;
  background: #0e1520;
  border: 2px solid #ffb800;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.9);
  z-index: 999999 !important;
  display: none;
  overflow: hidden;
  animation: floatSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
#saas-floating-betslip.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
@keyframes floatSlideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Interactive Hover & Click Feedback */
.sky-tree-item,
.sky-sport-item,
.d99-sport-pill,
.odds-btn,
.saas-game-card,
.saas-login-btn,
.saas-register-btn,
.saas-deposit-btn,
.saas-withdraw-btn {
  cursor: pointer !important;
  user-select: none;
}
.sky-tree-item:hover {
  background: #1e293b !important;
  color: #ffb800 !important;
  transform: translateX(3px);
  transition: all 0.15s ease;
}
.sky-sport-item:hover,
.d99-sport-pill:hover {
  background: #253347 !important;
  color: #ffb800 !important;
}
.odds-btn:active {
  transform: scale(0.96);
}
.saas-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  border-color: #ffb800 !important;
}
.saas-login-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.saas-register-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}


