﻿/* CrashX premium theme â€” midnight + amber */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --cx-bg: #05070f;
  --cx-card: rgba(12, 18, 32, 0.88);
  --cx-line: rgba(232, 184, 74, 0.28);
  --cx-text: #f3f6fb;
  --cx-muted: #9aa8c0;
  --cx-gold: #e8b84a;
  --cx-gold2: #f0d078;
  --cx-teal: #3ecfb4;
  --cx-red: #e11d2e;
  --cx-red2: #ff4d5a;
  --cx-danger: #ff5c6a;
  --cx-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

body.dark-bg-main {
  background: var(--cx-bg) !important;
  color: var(--cx-text);
  font-family: 'Manrope', system-ui, sans-serif;
}

/* ===== Header ===== */
header .header-top {
  background: linear-gradient(180deg, rgba(5, 7, 15, 0.95), rgba(5, 7, 15, 0.7)) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 18px !important;
  position: relative;
  z-index: 20;
}

header .login-btn,
header .register-btn {
  border: 1px solid transparent !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  padding: 9px 18px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

header .login-btn {
  background: linear-gradient(135deg, var(--cx-red), #c41424) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(225, 29, 46, 0.35);
}

header .register-btn {
  background: transparent !important;
  border-color: rgba(225, 29, 46, 0.5) !important;
  color: #ff8a93 !important;
}

header .login-btn:hover,
header .register-btn:hover {
  transform: translateY(-1px);
}

/* ===== Landing stage ===== */
.cx-landing--v2 {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 50% -18%, rgba(225, 29, 46, 0.18), transparent 55%),
    radial-gradient(900px 500px at 8% 40%, rgba(232, 184, 74, 0.1), transparent 50%),
    radial-gradient(800px 500px at 100% 80%, rgba(62, 207, 180, 0.08), transparent 50%),
    linear-gradient(165deg, #05070f 0%, #0a1222 45%, #070b14 100%);
}

.cx-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  animation: cxOrb 12s ease-in-out infinite;
}

.cx-orb-a {
  width: 420px;
  height: 420px;
  left: -80px;
  top: -60px;
  background: rgba(225, 29, 46, 0.42);
}

.cx-orb-b {
  width: 360px;
  height: 360px;
  right: -40px;
  top: 20%;
  background: rgba(232, 184, 74, 0.28);
  animation-delay: -4s;
}

.cx-orb-c {
  width: 300px;
  height: 300px;
  left: 40%;
  bottom: -90px;
  background: rgba(255, 77, 90, 0.22);
  animation-delay: -7s;
}

@keyframes cxOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.08); }
}

.cx-scanlines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 80%);
  animation: cxScan 8s linear infinite;
}

@keyframes cxScan {
  from { transform: translateY(0); }
  to { transform: translateY(24px); }
}

.cx-landing-stage {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
  padding: 36px 20px 56px;
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 960px) {
  .cx-landing-stage {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    padding-top: 56px;
  }
}

/* Entrance */
.cx-reveal > * {
  opacity: 0;
  transform: translateY(28px);
  animation: cxIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cx-delay-1 > *, .cx-delay-1 { animation-delay: 0.08s; }
.cx-delay-2 { animation-delay: 0.2s; }
.cx-delay-3 { animation-delay: 0.34s; }
.cx-delay-4 { animation-delay: 0.48s; }

.cx-hero-copy .cx-brand-mark { animation-delay: 0.05s; }
.cx-hero-copy .cx-hero-title { animation-delay: 0.18s; }
.cx-hero-copy .cx-hero-sub { animation-delay: 0.32s; }
.cx-hero-copy .cx-cta-row { animation-delay: 0.46s; }

.cx-hero-copy .cx-brand-mark,
.cx-hero-copy .cx-hero-title,
.cx-hero-copy .cx-hero-sub,
.cx-hero-copy .cx-cta-row {
  opacity: 0;
  transform: translateY(28px);
  animation: cxIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cxIn {
  to { opacity: 1; transform: translateY(0); }
}

.cx-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--cx-red2);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cx-brand-mark::before {
  content: '';
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--cx-red), var(--cx-gold), transparent);
  animation: cxLine 2.4s ease-in-out infinite;
}

@keyframes cxLine {
  0%, 100% { width: 24px; opacity: 0.7; }
  50% { width: 42px; opacity: 1; }
}

.cx-hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 14px;
  color: #fff;
  text-shadow: 0 0 40px rgba(232, 184, 74, 0.18);
  background: linear-gradient(120deg, #fff 18%, var(--cx-red2) 42%, var(--cx-gold2) 72%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cxIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards, cxShimmer 5s ease-in-out infinite;
  background-size: 180% 100%;
}

@keyframes cxShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cx-hero-sub {
  max-width: 28rem;
  color: var(--cx-muted);
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 0 0 28px;
}

.cx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cx-btn:hover { transform: translateY(-3px); }

.cx-btn-primary {
  background: linear-gradient(135deg, var(--cx-red) 0%, #c41424 48%, #9b0f1c 100%);
  color: #fff !important;
  box-shadow: 0 16px 40px rgba(225, 29, 46, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cx-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cx-text) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cx-btn-shine {
  position: relative;
  overflow: hidden;
}

.cx-btn-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: cxShine 3.2s ease-in-out infinite;
}

@keyframes cxShine {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

/* Visual plane panel */
.cx-visual {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  animation: cxVisualIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

@keyframes cxVisualIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cx-visual-frame {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(225, 29, 46, 0.35);
  background: linear-gradient(160deg, rgba(28, 12, 16, 0.95), rgba(8, 12, 22, 0.98));
  box-shadow: var(--cx-shadow), 0 0 40px rgba(225, 29, 46, 0.12), 0 0 0 1px rgba(255,255,255,0.03) inset;
  animation: cxFloat 6s ease-in-out infinite;
}

@keyframes cxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Billboards-style crash blast across landing */
.cx-landing {
  position: relative;
  overflow: hidden;
}

.cx-blast-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}

.cx-blast-flash {
  position: absolute;
  inset: 0;
  z-index: 39;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(255, 220, 140, 0.55), transparent 35%),
    radial-gradient(circle at 70% 40%, rgba(225, 29, 46, 0.45), transparent 55%),
    rgba(255, 40, 50, 0.12);
  transition: opacity 0.08s linear;
}

.cx-blast-flash.is-on {
  opacity: 1;
  animation: cxFlashPulse 0.42s ease-out forwards;
}

@keyframes cxFlashPulse {
  0% { opacity: 1; }
  40% { opacity: 0.85; }
  100% { opacity: 0; }
}

.cx-landing.is-blasting {
  animation: cxScreenShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.cx-landing.is-blasting .cx-visual-frame {
  animation: none;
  filter: brightness(1.35) saturate(1.4);
  box-shadow: 0 0 60px rgba(225, 29, 46, 0.55), 0 0 0 1px rgba(255, 180, 80, 0.35) inset;
}

@keyframes cxScreenShake {
  0%, 100% { transform: translate(0, 0); }
  12% { transform: translate(-7px, 3px); }
  24% { transform: translate(8px, -4px); }
  36% { transform: translate(-6px, -2px); }
  48% { transform: translate(7px, 3px); }
  60% { transform: translate(-3px, 4px); }
  72% { transform: translate(4px, -3px); }
  84% { transform: translate(-2px, 1px); }
}

.cx-shard {
  position: absolute;
  display: block;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  animation: cxShardFly var(--life, 1200ms) cubic-bezier(0.12, 0.55, 0.28, 1) forwards;
  box-shadow: 0 0 8px rgba(225, 29, 46, 0.45);
}

.cx-shard-1 {
  clip-path: polygon(0 30%, 100% 0, 85% 100%, 10% 90%);
}

.cx-shard-3 {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.cx-shard-4 {
  opacity: 0.85;
  filter: blur(0.2px);
}

@keyframes cxShardFly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(0.35);
  }
}

.cx-sky {
  position: relative;
  height: clamp(280px, 44vw, 400px);
  background:
    radial-gradient(ellipse at 70% 20%, rgba(225, 29, 46, 0.28), transparent 45%),
    radial-gradient(ellipse at 20% 80%, rgba(232, 184, 74, 0.12), transparent 40%),
    linear-gradient(180deg, #1a0a10 0%, #071018 100%);
  overflow: hidden;
}

#cxPlaneCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cx-multiplier {
  position: absolute;
  left: 22px;
  top: 22px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(232, 184, 74, 0.25);
  backdrop-filter: blur(10px);
  animation: cxPulseSoft 2.4s ease-in-out infinite;
}

@keyframes cxPulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 184, 74, 0.15); }
  50% { box-shadow: 0 0 0 10px rgba(232, 184, 74, 0); }
}

.cx-mult-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--cx-red2);
  font-weight: 700;
  margin-bottom: 2px;
}

.cx-mult-value {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--cx-gold2);
  letter-spacing: -0.03em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cx-mult-value.is-crash {
  color: var(--cx-red2);
  transform: scale(1.08);
  text-shadow: 0 0 18px rgba(225, 29, 46, 0.7);
}

.cx-visual-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cx-visual-caption strong {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
}

.cx-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(225, 29, 46, 0.16);
  color: var(--cx-red2);
  border: 1px solid rgba(225, 29, 46, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== Featured game (compact preview box) ===== */
.cx-featured {
  position: relative;
  padding: 18px 16px 8px;
  background: transparent;
}

.cx-featured-inner {
  max-width: 560px;
  margin: 0 auto;
}

.cx-featured-title {
  margin: 0 0 6px;
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.cx-featured-sub {
  margin: 0 auto 14px;
  max-width: 420px;
  text-align: center;
  color: #9aa8c0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.cx-game-card {
  border-radius: 14px;
  overflow: hidden;
  background: #0a0c12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 28px rgba(225, 29, 46, 0.06);
}

.cx-game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: #10131b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cx-game-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
}

.cx-game-brand img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.cx-game-top-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cx-game-help {
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #111;
  font-weight: 800;
  font-size: 0.7rem;
  cursor: pointer;
}

.cx-game-balance {
  color: #e8eefc;
  font-weight: 700;
  font-size: 0.75rem;
}

.cx-game-history {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 6px 8px;
  background: #0d1018;
  scrollbar-width: none;
}

.cx-game-history::-webkit-scrollbar { display: none; }

.cx-game-history .hi {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
}

.hi-hi { background: #7c3aed; }
.hi-mid { background: #2563eb; }
.hi-lo { background: #1e3a5f; }

.cx-game-stage {
  position: relative;
  height: 168px;
  background: radial-gradient(circle at 50% 55%, #171b26 0%, #07090e 70%);
  overflow: hidden;
}

.cx-game-rays {
  position: absolute;
  inset: -20%;
  background:
    repeating-conic-gradient(from 0deg at 50% 55%, rgba(255,255,255,0.035) 0deg 8deg, transparent 8deg 16deg);
  opacity: 0.55;
  pointer-events: none;
}

.cx-game-fun {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f59e0b;
  color: #111;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.cx-game-mult {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin-top: 4px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  color: #fff;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

#cxFeaturedCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cx-game-axis {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 2;
}

.cx-game-axis::before {
  content: '';
  position: absolute;
  inset: -2px 0 auto 0;
  height: 5px;
  background: radial-gradient(circle, #fff 1.5px, transparent 2px);
  background-size: 36px 5px;
  opacity: 0.55;
}

.cx-game-bets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  background: #0b0e14;
}

.cx-bet-panel {
  border-radius: 8px;
  padding: 5px 6px 6px;
  background: #121722;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cx-bet-tabs {
  display: inline-flex;
  gap: 1px;
  margin-bottom: 4px;
  padding: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.cx-bet-tabs button {
  border: 0;
  background: transparent;
  color: #8b98b0;
  font-weight: 700;
  font-size: 0.58rem;
  padding: 2px 7px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
}

.cx-bet-tabs button.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cx-bet-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  margin-bottom: 3px;
  padding: 1px;
  border-radius: 999px;
  background: #0b0f18;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cx-bet-amount button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #1a2233;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.cx-bet-amount span {
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
}

.cx-bet-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.cx-bet-quick button {
  border: 0;
  border-radius: 4px;
  padding: 2px 0;
  background: #1a2233;
  color: #c9d3e6;
  font-weight: 700;
  font-size: 0.55rem;
  cursor: pointer;
  line-height: 1.2;
}

.cx-bet-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #39d353, #1f9d3a);
  color: #fff !important;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(34, 160, 70, 0.25);
  cursor: pointer;
}

.cx-bet-go:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

@media (max-width: 420px) {
  .cx-game-stage { height: 148px; }
  .cx-game-brand span { font-size: 0.75rem; }
  .cx-bet-quick { display: none; }
}

/* ===== Auth fullscreen pages ===== */
.cx-auth-modal {
  padding: 0 !important;
  z-index: 20100 !important; /* above game modal backdrop override */
}

.cx-auth-modal .cx-auth-dialog {
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.cx-auth-modal .cx-auth-page {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  padding: 16px 14px 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(225, 29, 46, 0.32), transparent 55%),
    radial-gradient(700px 360px at 90% 110%, rgba(232, 184, 74, 0.12), transparent 50%),
    linear-gradient(165deg, #0b0c14 0%, #05070f 100%) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

.cx-auth-modal .cx-auth-page::before {
  content: 'CrashX';
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 14vw, 7rem);
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  white-space: nowrap;
}

.cx-auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding-bottom: 4px;
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 28%),
    radial-gradient(520px 240px at 50% -12%, rgba(225, 29, 46, 0.26), transparent 58%),
    linear-gradient(165deg, rgba(22, 18, 28, 0.96) 0%, rgba(8, 9, 14, 0.98) 100%) !important;
  border: 1px solid rgba(225, 29, 46, 0.34) !important;
  border-radius: 24px !important;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(225, 29, 46, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: cxAuthCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cxAuthCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body:has(.cx-auth-modal.show) .modal-backdrop.show {
  opacity: 1 !important;
  background: #05070f !important;
  z-index: 20090 !important;
}

.cx-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: grid;
  place-items: center;
}

.cx-auth-close .material-symbols-outlined { font-size: 20px; }

.cx-auth-head {
  text-align: center;
  padding: 22px 22px 6px;
}

.cx-auth-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(225, 29, 46, 0.35));
}

.cx-auth-google {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 0 4px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: #fff !important;
  color: #1f1f1f !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cx-auth-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  color: #111 !important;
}

.cx-auth-google img,
.cx-auth-google svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.cx-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 4px;
  color: #7f8da6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cx-auth-divider::before,
.cx-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.cx-auth-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(225, 29, 46, 0.45);
  color: var(--cx-red2);
  background: rgba(225, 29, 46, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cx-auth-title {
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.55rem !important;
  color: #fff !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.03em;
}

.cx-auth-sub {
  margin: 0;
  color: var(--cx-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.cx-auth-body {
  padding: 8px 20px 6px !important;
}

.cx-auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cx-auth-modal .login-controls.cx-field,
.cx-auth-modal .cx-field {
  min-height: 46px !important;
}

.cx-auth-foot {
  padding: 12px 18px 16px !important;
}

@media (max-height: 720px) {
  .cx-auth-head { padding-top: 16px; }
  .cx-auth-logo { width: 36px; height: 36px; margin-bottom: 6px; }
  .cx-auth-badge { margin-bottom: 8px; }
  .cx-auth-title { font-size: 1.35rem !important; }
  .cx-auth-sub { font-size: 0.82rem; }
}

.cx-auth-modal .login-controls.cx-field,
.cx-auth-modal .cx-field {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  margin: 0 !important;
  min-height: 52px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cx-auth-modal .cx-field:focus-within {
  border-color: rgba(225, 29, 46, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.14);
}

.cx-auth-modal .cx-field label {
  display: flex !important;
  align-items: center;
  width: 100%;
  gap: 8px;
  margin: 0 !important;
  padding: 0 12px !important;
}

.cx-auth-modal .cx-field .input-ico {
  color: var(--cx-red2) !important;
  opacity: 0.9 !important;
  flex: 0 0 auto;
  position: static !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
}

.cx-auth-modal .cx-field #view_password,
.cx-auth-modal .cx-field #view_password_register {
  margin-left: auto !important;
  cursor: pointer;
  color: var(--cx-muted) !important;
}

.cx-auth-modal .cx-field input.form-control {
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  padding: 14px 4px !important;
  height: auto !important;
  text-indent: 0 !important;
}

.cx-auth-modal .cx-field input::placeholder {
  color: #7f8da6 !important;
}

.cx-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 4px;
}

.cx-auth-link,
.cx-auth-link-btn {
  background: none;
  border: 0;
  color: var(--cx-red2) !important;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none !important;
  cursor: pointer;
  padding: 0;
}

.cx-auth-submit,
.cx-auth-modal .btn.green-btn,
.cx-auth-modal .btn.orange-btn,
.cx-auth-modal .registerSubmit {
  width: 100% !important;
  min-height: 50px !important;
  margin: 6px 0 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--cx-red), #c41424) !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(225, 29, 46, 0.35);
}

.cx-auth-submit:hover,
.cx-auth-modal .btn.green-btn:hover,
.cx-auth-modal .btn.orange-btn:hover,
.cx-auth-modal .registerSubmit:hover {
  filter: brightness(1.06);
}

.cx-auth-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--cx-muted);
  font-size: 0.9rem;
}

.cx-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--cx-muted);
  font-size: 0.84rem;
  margin: 4px 0 2px;
  cursor: pointer;
}

.cx-check input {
  margin-top: 3px;
  accent-color: var(--cx-red);
}

.l-modal .form-check-label,
.l-modal .link-text,
.l-modal .email_text { color: var(--cx-muted) !important; }

.l-modal label.error {
  color: var(--cx-danger) !important;
  font-size: 12px !important;
  margin: 0;
}

/* Fallback for non-cx auth shells */
.l-modal .modal-content {
  background:
    radial-gradient(420px 180px at 50% -10%, rgba(225, 29, 46, 0.18), transparent 60%),
    linear-gradient(165deg, #101828 0%, #0a1220 100%) !important;
  border: 1px solid rgba(225, 29, 46, 0.28) !important;
  border-radius: 22px !important;
  color: #fff !important;
}

.l-modal .modal-header,
.l-modal .login-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.l-modal .modal-title,
.l-modal .form-label,
.l-modal label.form-label {
  color: #fff !important;
}

.l-modal .form-label.text-dark,
.l-modal .form-label.text-secondary,
.l-modal .text-dark {
  color: var(--cx-muted) !important;
}

.l-modal .login-controls {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
}

.l-modal .login-controls input.form-control {
  background: transparent !important;
  color: #fff !important;
  border: 0 !important;
}

.l-modal .btn.green-btn,
.l-modal .btn.orange-btn,
.l-modal button[type="submit"],
#withdraw_form button[type="submit"],
#withdraw-modal .btn {
  background: linear-gradient(135deg, var(--cx-red), #c41424) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 28px rgba(225, 29, 46, 0.32);
}

.register-modal-popup .dice-ico,
.register-modal-popup .chip-ico,
.register-modal-popup .ychip-ico,
.register-modal-popup .ball-ico,
.register-modal-popup .register-tabs .nav-tabs {
  display: none !important;
}

/* ===== Live support chat spot (AutoBet-style dock + photos) ===== */
.cx-chat-spot {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 1080;
  width: 56px;
  height: 56px;
}

.cx-chat-spot.is-open {
  width: min(360px, calc(100vw - 24px));
  height: auto;
}

.cx-chat-bubble {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cx-red), #9b0f1c);
  color: #fff;
  box-shadow: 0 16px 40px rgba(225, 29, 46, 0.45);
  cursor: pointer;
  animation: cxFloatBtn 3.5s ease-in-out infinite;
}

.cx-chat-spot.is-open .cx-chat-bubble {
  display: none;
}

@keyframes cxFloatBtn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.cx-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: #c41424;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.cx-chat-bubble.has-unread {
  animation: none;
}

.cx-chat-panel {
  width: min(360px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(420px 160px at 10% -10%, rgba(225, 29, 46, 0.22), transparent 55%),
    linear-gradient(180deg, #16121c, #0a0b12);
  border: 1px solid rgba(225, 29, 46, 0.32);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 36px rgba(225, 29, 46, 0.12);
}

.cx-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cx-chat-head-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.cx-chat-head-info strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 0.98rem;
}

.cx-chat-head-info small {
  color: #9aa8c0;
  font-size: 0.72rem;
}

.cx-chat-online {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
  flex: 0 0 auto;
}

.cx-chat-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cx-chat-messages,
.support-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.support-empty {
  color: var(--cx-muted);
  text-align: center;
  padding: 48px 16px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.support-empty small {
  opacity: 0.7;
}

.support-msg {
  max-width: 86%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  clear: both;
}

.support-msg-user {
  float: right;
  background: linear-gradient(135deg, rgba(225, 29, 46, 0.4), rgba(225, 29, 46, 0.16));
  border: 1px solid rgba(225, 29, 46, 0.42);
  color: #fff;
}

.support-msg-admin {
  float: left;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8eefc;
}

.support-msg-text {
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.support-msg-image {
  display: block;
  margin-bottom: 6px;
}

.support-msg-image img {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.support-msg-time {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  opacity: 0.55;
}

.cx-chat-preview {
  position: relative;
  padding: 8px 12px 0;
}

.cx-chat-preview img {
  max-height: 88px;
  max-width: 140px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
}

.cx-chat-preview button {
  position: absolute;
  top: 2px;
  left: 128px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #e11d2e;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.cx-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.cx-chat-attach,
.cx-chat-send {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.cx-chat-attach {
  background: rgba(255, 255, 255, 0.06);
  color: #ff8a93;
}

.cx-chat-send {
  background: linear-gradient(135deg, var(--cx-red), #c41424);
  color: #fff;
  box-shadow: 0 8px 20px rgba(225, 29, 46, 0.35);
}

.cx-chat-input {
  flex: 1;
  min-height: 42px;
  max-height: 96px;
  resize: none;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fff !important;
  padding: 10px 12px !important;
  font-size: 0.9rem;
}

.cx-chat-input:focus {
  outline: none;
  border-color: rgba(225, 29, 46, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.12);
}

/* ===== Wallet / Deposit / Withdraw (autobet-style flow, red premium) ===== */
.deposite-container {
  padding: 28px 0 48px !important;
  min-height: 60vh;
}

.deposite-container .pay-tabs {
  display: flex !important;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(225, 29, 46, 0.18);
}

.deposite-container .custom-tabs-link {
  flex: 1;
  text-align: center;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  font-family: 'Syne', sans-serif;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  color: var(--cx-muted) !important;
  background: transparent !important;
  border: 0 !important;
  text-decoration: none !important;
}

.deposite-container .custom-tabs-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--cx-red), #c41424) !important;
  box-shadow: 0 10px 24px rgba(225, 29, 46, 0.3);
}

.deposite-container .grid-view {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.deposite-container .payment-btn {
  width: 100% !important;
  min-height: 92px;
  border-radius: 16px !important;
  background: linear-gradient(165deg, rgba(20, 18, 28, 0.95), rgba(10, 11, 18, 0.98)) !important;
  border: 1px solid rgba(225, 29, 46, 0.22) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.deposite-container .payment-btn:hover,
.deposite-container .grid-list.active .payment-btn {
  border-color: rgba(225, 29, 46, 0.55) !important;
  transform: translateY(-2px);
}

.deposite-container .PaymentCard_limit {
  color: var(--cx-red2) !important;
  font-weight: 700;
  font-size: 0.78rem;
}

.deposite-container .deposite-box,
.deposite-container .d-box {
  margin-top: 16px;
  padding: 18px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(225, 29, 46, 0.16) !important;
}

.deposite-container .limit-txt {
  color: var(--cx-muted) !important;
  font-weight: 600;
}

.deposite-container .limit-txt span {
  color: var(--cx-red2) !important;
}

.deposite-container .register-btn,
.deposite-container .orange-shadow {
  background: linear-gradient(135deg, var(--cx-red), #c41424) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 12px 28px rgba(225, 29, 46, 0.32) !important;
  font-weight: 800 !important;
}

.deposite-container .amount-tooltips-btn {
  border-radius: 999px !important;
  border: 1px solid rgba(225, 29, 46, 0.25) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fff !important;
}

.deposite-container .amount-tooltips-btn.active {
  background: rgba(225, 29, 46, 0.2) !important;
  border-color: rgba(225, 29, 46, 0.55) !important;
  color: var(--cx-red2) !important;
}

.deposite-container .login-controls {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.deposite-container .login-controls input,
.deposite-container .Input_currency {
  color: #fff !important;
}

/* Premium footer â€” borderless, flush on black */
footer.cx-footer {
  display: block !important;
  width: 100% !important;
  background: #05070f !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 40px 0 0 !important;
  padding: 28px 16px 28px !important;
  box-shadow: none !important;
}

.cx-footer-shell {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  border-radius: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cx-footer-shell::before {
  display: none !important;
  content: none !important;
}

.cx-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 0 !important;
}

.cx-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: #fff !important;
}

.cx-footer-brand img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(225, 29, 46, 0.4));
}

.cx-footer-brand-text strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.cx-footer-brand-text span {
  display: block;
  color: var(--cx-muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.cx-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cx-footer-links a {
  color: #c9d3e6 !important;
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cx-footer-links a:hover {
  color: #fff !important;
  border-color: rgba(225, 29, 46, 0.45);
  background: rgba(225, 29, 46, 0.12);
}

.cx-footer-pay {
  padding: 6px 0 16px;
  border-bottom: 0 !important;
}

.cx-footer-pay-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #9aa8c0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cx-footer-pay-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cx-red);
  box-shadow: 0 0 10px rgba(225, 29, 46, 0.7);
}

.cx-footer-pay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cx-pay-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 52px;
  padding: 6px 12px;
  border-radius: 14px;
  background: #0b0d12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cx-pay-chip--bank {
  background: #f4f7fb;
}

.cx-pay-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 46, 0.45);
  box-shadow: 0 14px 28px rgba(225, 29, 46, 0.22);
}

.cx-pay-chip img {
  max-height: 36px !important;
  max-width: 100px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}

.cx-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
}

.cx-footer-note {
  margin: 0;
  color: #7a869c;
  font-size: 0.78rem;
}

.cx-footer-badges {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cx-footer-badges span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--cx-red2);
  border: 1px solid rgba(225, 29, 46, 0.3);
  background: rgba(225, 29, 46, 0.1);
}

@media (max-width: 560px) {
  .cx-footer-top,
  .cx-footer-bottom,
  .cx-footer-pay {
    justify-content: center;
    text-align: center;
  }
  .cx-footer-brand { justify-content: center; width: 100%; }
  .cx-footer-links { justify-content: center; }
  .cx-footer-pay-label { justify-content: center; width: 100%; }
  .cx-footer-pay-row { justify-content: center; }
  .cx-footer-note { width: 100%; }
  .cx-pay-chip { min-width: 96px; height: 44px; }
}

@media (max-width: 575px) {
  .cx-landing-stage { padding-top: 24px; }
  .deposite-container .grid-view { grid-template-columns: 1fr 1fr; }
  .cx-chat-spot { right: 12px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .cx-orb, .cx-visual-frame, .cx-btn-shine::after, .cx-hero-title, .cx-chat-bubble {
    animation: none !important;
  }
}

/* Game: modern odds rail on TOP, then plane, then bets */
.game-play {
  display: flex;
  flex-direction: column;
}
.game-play .history-top {
  order: 1;
  min-height: 48px;
  max-height: none;
  padding: 6px 0 8px;
  margin: 0 0 2px;
  position: relative;
  z-index: 6; /* keep below footer / chat; was 20 and covered footer */
  background:
    radial-gradient(ellipse 60% 120% at 0% 50%, rgba(229,5,57,0.08), transparent 55%),
    linear-gradient(180deg, #14161c 0%, #0e1015 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.game-play {
  justify-content: flex-start !important;
}
.game-play .history-top { order: 1 !important; }
.game-play .stage-board { order: 2 !important; }
.game-play .bet-controls { order: 3 !important; }

/* Jackpot TV under All Bets — keep list + TV in one column without overflow break */
.left-sidebar {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  align-self: stretch;
}
.left-sidebar .contents-blocks {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.left-sidebar .tab-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.left-sidebar #pills-allbets.tab-pane.active,
.left-sidebar #pills-mybets.tab-pane.active {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.left-sidebar #pills-allbets .list-data-tbl,
.left-sidebar #pills-mybets .list-data-tbl {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.left-sidebar #pills-allbets .list-body,
.left-sidebar #pills-allbets #all_bets,
.left-sidebar #pills-allbets #prev_bets,
.left-sidebar #pills-mybets .list-body {
  flex: 1 1 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 140px;
  overflow: hidden;
}
.left-sidebar .cx-jackpot-tv {
  flex: 0 0 auto !important;
  margin: 8px 0 0 !important;
  order: unset !important;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 992px) {
  .left-sidebar {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .left-sidebar .contents-blocks,
  .left-sidebar .tab-content,
  .left-sidebar #pills-allbets.tab-pane.active {
    height: auto !important;
    overflow: visible !important;
    min-height: 0;
  }
  /* Cap fake-bets list so TV sits cleanly under it (was 430px + TV = CSS break) */
  .left-sidebar #pills-allbets .list-data-tbl {
    flex: 0 0 auto;
  }
  .left-sidebar #pills-allbets .list-body,
  .left-sidebar #pills-allbets #all_bets,
  .left-sidebar #pills-allbets #prev_bets {
    height: 210px !important;
    max-height: 210px !important;
    min-height: 160px !important;
  }
  .left-sidebar #pills-mybets .list-body {
    height: 260px !important;
    max-height: 260px !important;
  }
  .left-sidebar .cx-jackpot-tv {
    margin: 10px 0 12px !important;
  }
}

/* ===== Premium Jackpot TV (under odds) ===== */
.cx-jackpot-tv {
  margin: 4px 0 8px;
  flex-shrink: 0;
}
.cx-jackpot-tv-bezel {
  border-radius: 14px;
  padding: 8px 8px 6px;
  background:
    linear-gradient(145deg, #2a2e36 0%, #14171d 40%, #0c0e12 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.cx-jackpot-tv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 6px 8px;
}
.cx-jackpot-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ff6b78;
}
.cx-jackpot-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e11d2e;
  box-shadow: 0 0 10px #e11d2e;
  animation: cxJpPulse 1.2s ease-in-out infinite;
}
@keyframes cxJpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.cx-jackpot-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #f0d078;
  text-shadow: 0 0 12px rgba(232,184,74,0.35);
}
.cx-jackpot-ch {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
}
.cx-jackpot-tv-screen {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 78px;
  background:
    radial-gradient(ellipse 80% 90% at 80% 0%, rgba(232,184,74,0.14), transparent 50%),
    radial-gradient(ellipse 70% 80% at 10% 100%, rgba(225,29,46,0.16), transparent 55%),
    linear-gradient(160deg, #0a0d14 0%, #05070c 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.55);
}
.cx-jackpot-scan {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.015) 2px,
    rgba(255,255,255,0.015) 4px
  );
  z-index: 2;
}
.cx-jackpot-glow {
  pointer-events: none;
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(232,184,74,0.12), transparent 65%);
  z-index: 1;
}
.cx-jackpot-feed {
  position: relative;
  z-index: 3;
  padding: 10px 10px 8px;
}
.cx-jackpot-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cx-jackpot-row--hero {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  animation: cxJpHeroIn 0.45s ease;
}
@keyframes cxJpHeroIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.cx-jackpot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(145deg, rgba(232,184,74,0.25), rgba(225,29,46,0.2));
  border: 1px solid rgba(232,184,74,0.35);
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(232,184,74,0.2);
}
.cx-jackpot-copy {
  min-width: 0;
  flex: 1;
}
.cx-jackpot-label {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cx-jackpot-label b {
  color: #f0d078;
  font-weight: 800;
}
.cx-jackpot-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.cx-jackpot-amt {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  color: #7dffb2;
  text-shadow: 0 0 14px rgba(80,220,130,0.35);
  font-variant-numeric: tabular-nums;
}
.cx-jackpot-ticker {
  display: flex;
  gap: 8px;
  overflow: hidden;
  padding-top: 8px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cx-jackpot-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  animation: cxJpChipIn 0.4s ease;
}
.cx-jackpot-chip em {
  font-style: normal;
  color: #f0d078;
}
.cx-jackpot-chip strong {
  color: #7dffb2;
  font-weight: 800;
}
@keyframes cxJpChipIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
.cx-jackpot-tv-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 4px 2px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}
.cx-jackpot-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(232,184,74,0.55);
}
@media (max-width: 768px) {
  .cx-jackpot-tv-screen { min-height: 72px; }
  .cx-jackpot-label { font-size: 12px; }
  .cx-jackpot-amt { font-size: 13px; }
}
.history-top .stats {
  height: 36px;
  padding: 0 8px 0 6px;
}
.history-top .stats .payouts-wrapper {
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
}
.history-top .stats .shadow { display: none !important; }
.history-top .stats .button-block .button {
  height: 30px;
  width: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.history-top .stats .button-block .button:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(229,5,57,0.4);
}
.history-top .stats .payouts-wrapper .payouts-block {
  gap: 6px;
  align-items: center;
}
.payouts-block .custom-badge,
.history-dropdown .custom-badge {
  height: 28px !important;
  min-width: 52px;
  line-height: 28px !important;
  padding: 0 11px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  opacity: 1 !important;
  margin-right: 0 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
}
.payouts-block .custom-badge:nth-child(n+2),
.history-dropdown .custom-badge {
  opacity: 0.88 !important;
  filter: saturate(0.92);
}
.payouts-block .custom-badge:first-child {
  opacity: 1 !important;
  filter: none;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 12.5px !important;
  padding: 0 13px !important;
  transform: scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 16px rgba(229,5,57,0.25),
    0 4px 14px rgba(0,0,0,0.35);
  animation: cxOddPulse 2.4s ease-in-out infinite;
}
.payouts-block .custom-badge.cx-odd-new {
  animation: cxOddIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cxOddIn {
  from { opacity: 0; transform: translateX(-14px) scale(0.86); }
  to { opacity: 1; transform: translateX(0) scale(1.04); }
}
@keyframes cxOddPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 0 1px rgba(255,255,255,0.08), 0 0 12px rgba(229,5,57,0.18), 0 4px 14px rgba(0,0,0,0.35); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 0 1px rgba(229,5,57,0.35), 0 0 22px rgba(229,5,57,0.35), 0 4px 14px rgba(0,0,0,0.35); }
}
/* low â‰¤2 â€” cool slate */
.payouts-block .custom-badge.bg3,
.history-dropdown .custom-badge.bg3 {
  background: linear-gradient(145deg, rgba(40,52,72,0.95), rgba(24,32,48,0.9)) !important;
  color: #9eb6d4 !important;
  border: 1px solid rgba(140,170,210,0.28) !important;
}
/* mid 2â€“10 â€” mint glass */
.payouts-block .custom-badge.bg1,
.history-dropdown .custom-badge.bg1 {
  background: linear-gradient(145deg, rgba(18,72,52,0.95), rgba(12,42,34,0.92)) !important;
  color: #6ef0b0 !important;
  border: 1px solid rgba(80,230,150,0.35) !important;
}
/* high â‰¥10 â€” heat / gold */
.payouts-block .custom-badge.bg2,
.history-dropdown .custom-badge.bg2 {
  background: linear-gradient(145deg, rgba(90,28,38,0.95), rgba(72,40,12,0.92)) !important;
  color: #ffd78a !important;
  border: 1px solid rgba(255,186,80,0.45) !important;
}
.payouts-block .custom-badge.bg2:first-child {
  animation: cxOddPulseGold 2.4s ease-in-out infinite;
}
@keyframes cxOddPulseGold {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 0 1px rgba(255,186,80,0.25), 0 0 14px rgba(255,160,40,0.25), 0 4px 14px rgba(0,0,0,0.35); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 0 1px rgba(255,186,80,0.5), 0 0 26px rgba(255,160,40,0.4), 0 4px 14px rgba(0,0,0,0.35); }
}
.history-dropdown {
  background: linear-gradient(180deg, #1a1d24, #12141a) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 14px !important;
  top: 40px !important;
  padding: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  /* prevent ROUND HISTORY panel from covering footer / bets */
  max-height: min(38vh, 260px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  z-index: 7 !important;
}
.history-dropdown .pa-5.secondary-font {
  font-size: 10px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45) !important;
  font-weight: 600;
}
.history-dropdown .round-history-list {
  gap: 6px;
  max-height: none;
}
footer.cx-footer {
  position: relative;
  z-index: 4;
}
/* Game page mobile: footer was intentionally hidden; premium CSS forced it visible and odds overlay sat on top */
@media (max-width: 768px) {
  body:has(.game-play) footer.cx-footer,
  body:has(.game-play) footer {
    display: none !important;
  }
}
@media (max-width: 768px) {
  body.dark-bg-main { overflow-y: auto !important; }
  .game-play {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding-bottom: 16px;
  }
  .stage-board {
    height: 38vh !important;
    min-height: 280px !important;
    max-height: none !important;
  }
  .bet-controls .bet-control {
    min-width: 0 !important;
    height: auto !important;
    min-height: 150px;
  }
}

/* Plane stage: canvas + waiting overlay must fill the board */
.stage-board {
  position: relative !important;
  overflow: hidden !important;
  background: #000;
}
.stage-board .loading-game {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}
.stage-board #myCanvas {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  display: block !important;
  pointer-events: none;
}
.stage-board .rotateimage {
  z-index: 0;
}
.stage-board .counter-num {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

/* ===== Personal Details premium ===== */
.cx-profile-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 14px 40px;
  color: #e8eaed;
}
.cx-profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  margin-bottom: 18px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(212,175,55,0.18), transparent 55%),
    linear-gradient(145deg, #1a1d24 0%, #12141a 100%);
  border: 1px solid rgba(212,175,55,0.22);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.cx-profile-avatar-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #d4af37, #8a7020);
  box-shadow: 0 0 24px rgba(212,175,55,0.35);
}
.cx-profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0e1014;
}
.cx-profile-hero-text h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}
.cx-profile-hero-text p {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}
.cx-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cx-profile-meta span {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}
.cx-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cx-profile-card {
  background: linear-gradient(160deg, #1a1d24 0%, #14161c 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px 16px 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}
.cx-profile-card-wide {
  grid-column: 1 / -1;
}
.cx-profile-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cx-profile-card-head .material-symbols-outlined {
  font-size: 22px;
  color: #d4af37;
}
.cx-profile-card-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0f2f5;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.cx-profile-rows {
  display: flex;
  flex-direction: column;
}
.cx-profile-rows-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.cx-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cx-profile-rows .cx-profile-row:last-child,
.cx-profile-rows-2 .cx-profile-row:nth-last-child(-n+2) {
  border-bottom: none;
}
.cx-profile-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
}
.cx-profile-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: #e8eaed;
  text-align: right;
  word-break: break-word;
}
.cx-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}
.cx-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}
.cx-profile-btn:hover { transform: translateY(-1px); opacity: 0.95; }
.cx-profile-btn-gold {
  background: linear-gradient(135deg, #e8c547, #b8922a);
  color: #1a1408 !important;
  box-shadow: 0 6px 20px rgba(212,175,55,0.35);
}
.cx-profile-btn-red {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(192,57,43,0.35);
}
.cx-profile-btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85) !important;
}
/* kill leftover white panels on profile route */
body:has(.cx-profile-page) .deposite-container,
body:has(.cx-profile-page) .bg-white,
body:has(.cx-profile-page) .custom-accordian,
body:has(.cx-profile-page) .accordion,
body:has(.cx-profile-page) .card {
  background: transparent !important;
  box-shadow: none !important;
}
body:has(.cx-profile-page) .game-play,
body:has(.cx-profile-page) .main-container,
body:has(.cx-profile-page) .content-area {
  background: #0c0e12 !important;
}
@media (max-width: 640px) {
  .cx-profile-grid { grid-template-columns: 1fr; }
  .cx-profile-rows-2 { grid-template-columns: 1fr; }
  .cx-profile-rows-2 .cx-profile-row:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .cx-profile-rows-2 .cx-profile-row:last-child { border-bottom: none; }
  .cx-profile-hero { flex-direction: column; text-align: center; }
  .cx-profile-meta { justify-content: center; }
  .cx-profile-btn { flex: 1 1 40%; }
}

/* Fix: remove duplicate Aviator header-bottom (was causing empty gap under top bar) */
header .header-bottom {
  display: none !important;
  margin-top: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  border: none !important;
  box-shadow: none !important;
}
header .header-top.cx-game-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  padding: 0 12px !important;
  z-index: 100;
  box-sizing: border-box;
}
.main-container {
  padding-top: 56px !important;
  box-sizing: border-box;
}
@media (min-width: 769px) {
  .game-play {
    height: calc(100vh - 56px) !important;
  }
}

/* Live fake cashout flash */
#all_bets .list-items.cx-just-cashed {
  animation: cxCashFlash 0.55s ease;
  background: rgba(46, 204, 113, 0.18) !important;
  box-shadow: inset 3px 0 0 #2ecc71;
}
@keyframes cxCashFlash {
  0% { transform: translateX(-6px); opacity: 0.55; }
  100% { transform: translateX(0); opacity: 1; }
}
#all_bets .list-items.active .column-4 {
  color: #7dffb2 !important;
  font-weight: 700;
}

/* Game modals above fixed header / chat — do NOT raise all backdrops (broke login) */
#game-rule.modal,
#game-limit.modal,
#bet-history.modal,
#avtar-modal.modal {
  z-index: 20050 !important;
}
body:has(#game-rule.show) .modal-backdrop.show,
body:has(#game-limit.show) .modal-backdrop.show,
body:has(#bet-history.show) .modal-backdrop.show,
body:has(#avtar-modal.show) .modal-backdrop.show {
  z-index: 20040 !important;
}
#game-rule .modal-content,
#game-limit .modal-content,
#bet-history .modal-content,
#avtar-modal .modal-content {
  background: #1a1d24 !important;
  color: #e8eaed !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 16px !important;
}
#game-rule .modal-header,
#game-limit .modal-header,
#bet-history .modal-header,
#avtar-modal .modal-header {
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
#game-rule .modal-title,
#game-limit .modal-title,
#bet-history .modal-title,
#avtar-modal .modal-title {
  color: #fff !important;
  font-weight: 700;
}

