:root {
  --bg-main: #101225;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-border: rgba(99, 102, 241, 0.2);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  user-select: none;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

body {
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 0% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 45%);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 70px;
  overflow-x: hidden !important;
  position: relative;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  box-sizing: border-box;
}

.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 10px;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
}

/* Header */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 4px;
}
.brand-box {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}
.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
  border: 1.2px solid rgba(6, 182, 212, 0.4);
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-name {
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 65px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  line-height: 1.15;
}
.balance-container {
  display: flex;
  align-items: center;
  gap: 3.5px;
  flex-shrink: 0;
  min-width: 0;
}
.balance-pill {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3.5px 6.5px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 3.5px;
  font-size: 10.5px;
  font-weight: 800;
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 26px;
  box-sizing: border-box;
}
.balance-pill:hover {
  border-color: rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}
.icon-usdt {
  width: 13px;
  height: 13px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.btn-top-deposit {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  border: none;
  padding: 3.5px 7px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
  transition: transform 0.1s ease;
  display: flex;
  align-items: center;
  gap: 2.5px;
  white-space: nowrap;
  height: 26px;
  box-sizing: border-box;
}
.btn-top-deposit:active {
  transform: scale(0.95);
}
.btn-top-deposit svg {
  flex-shrink: 0;
}
@media (max-width: 350px) {
  .top-bar {
    gap: 2px;
  }
  .brand-name {
    max-width: 48px;
  }
  .balance-container {
    gap: 2px;
  }
  .btn-top-deposit .btn-top-dep-text {
    display: none;
  }
  .btn-top-deposit {
    padding: 3.5px 6px;
  }
}
.mode-icon-svg {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
  flex-shrink: 0;
  margin-right: 5px;
}
.scratch-tier-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  height: 36px;
}


/* 3D KUB SECTION */
.cube-section {
  position: relative;
  height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 700px;
  margin-bottom: 2px;
  touch-action: none;
  user-select: none;
}
.cube-viewport {
  width: 74px;
  height: 74px;
  transform-style: preserve-3d;
  --cube-tilt-x: -20deg;
  --cube-start-y: 0deg;
  --cube-end-y: 360deg;
  animation: rotateCube 18s infinite linear;
  cursor: grab;
  touch-action: none;
}
.cube-viewport.dragging {
  cursor: grabbing;
}
@keyframes rotateCube {
  from { transform: rotateX(var(--cube-tilt-x)) rotateY(var(--cube-start-y)); }
  to { transform: rotateX(var(--cube-tilt-x)) rotateY(var(--cube-end-y)); }
}
.cube-face {
  position: absolute;
  width: 74px;
  height: 74px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid var(--accent-indigo);
  box-shadow: inset 0 0 14px rgba(99, 102, 241, 0.35), 0 0 12px rgba(6, 182, 212, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.cube-face .face-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.cube-face .face-icon svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}
.cube-face .face-text {
  font-size: 10px;
  color: var(--accent-cyan);
  text-shadow: 0 0 6px var(--accent-cyan);
}
.cube-face.front  { transform: translateZ(37px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(37px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(37px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(37px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(37px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(37px); }

.cube-halo {
  position: absolute;
  width: 90px;
  height: 14px;
  bottom: 16px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.6) 0%, transparent 70%);
  filter: blur(6px);
}
.cube-status-caption {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

/* 3D CUBE ROLLING & DAILY PANEL */
.cube-viewport.rolling {
  animation: none !important;
  cursor: default !important;
  pointer-events: none;
  transition: transform 2.8s cubic-bezier(0.12, 0.8, 0.32, 1.0) !important;
}

.cube-daily-panel {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 0 16px rgba(56, 189, 248, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 4px auto 10px auto;
  box-sizing: border-box;
}

.cube-daily-box {
  width: 100%;
}

.btn-cube-daily-roll {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #ec4899 100%);
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.45);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-cube-daily-roll:active {
  transform: scale(0.98);
}

.btn-cube-daily-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  animation: pulseDice 2s infinite ease-in-out;
}

@keyframes pulseDice {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.12); }
}

.btn-cube-daily-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-cube-daily-main {
  font-size: 13.5px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-cube-daily-sub {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.btn-cube-daily-glow {
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(25deg);
  animation: shineSweep 3.5s infinite;
}

@keyframes shineSweep {
  0% { left: -60%; }
  30%, 100% { left: 140%; }
}

/* Cooldown state */
.cube-daily-cooldown-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.cube-daily-timer-card {
  flex: 1;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
}

.cube-timer-icon {
  font-size: 15px;
}

.cube-timer-label {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 700;
}

.cube-timer-digits {
  font-size: 13px;
  font-weight: 900;
  font-family: monospace;
  color: #38bdf8;
  margin-left: auto;
}

.btn-cube-ad-roll {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.btn-cube-ad-roll:active {
  transform: scale(0.96);
}

.btn-cube-ad-icon {
  font-size: 14px;
}

.btn-cube-ad-label {
  font-size: 11.5px;
}

.btn-cube-ad-pill {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #fef08a;
}

/* Streak Row */
.cube-daily-streak-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cube-streak-left {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.cube-streak-fire {
  font-size: 13px;
}

.cube-streak-text {
  color: #cbd5e1;
  font-size: 11px;
}

.cube-streak-pills {
  display: flex;
  gap: 4px;
}

.streak-pill {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  color: #64748b;
  transition: all 0.2s ease;
}

.streak-pill.active {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  border-color: #f59e0b;
  color: #fff;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.streak-pill.gift-pill {
  font-size: 10px;
}

.streak-pill.gift-pill.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border-color: #ec4899;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}

/* Win modal specific styles */
.daily-cube-win-card {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.daily-cube-win-shine {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.daily-cube-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  margin: 6px auto 10px auto;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.daily-cube-badge.burned {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #f87171 !important;
}

.daily-cube-badge.fire {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2)) !important;
  border-color: #f97316 !important;
  color: #fb923c !important;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

.btn-free-scratch-ready {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5) !important;
  color: #fff !important;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 14px rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 22px rgba(16, 185, 129, 0.8); }
}


/* Room Switcher Tabs */
.rooms-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}
.room-tab {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  padding: 7px 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.room-tab.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.15));
  border-color: var(--accent-indigo);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}
.room-tab .tab-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 7.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.tab-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1px;
}
.tab-price {
  font-size: 9.5px;
  color: var(--text-muted);
  line-height: 1.25;
}
.tab-payout {
  font-size: 9.5px;
  font-weight: 700;
  color: #34d399;
  line-height: 1.25;
}

/* Queue Live Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 13px;
  padding: 11px 12px;
  margin-bottom: 8px;
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}
.card-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cycle-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Progress Bar */
.progress-container {
  margin-bottom: 8px;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.progress-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
  border-radius: 9999px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Queue Info Grid */
.queue-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 9px;
}
.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  text-align: center;
}
.stat-label {
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 1px;
}
.stat-val {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.queue-boost-purchase-hint {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
}
.queue-boost-purchase-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.queue-boost-purchase-title {
  font-size: 11px;
  font-weight: 800;
}
.queue-boost-purchase-note {
  color: #94a3b8;
  font-size: 9px;
  line-height: 1.3;
}
.queue-boost-purchase-count {
  flex: 0 0 auto;
  min-width: 56px;
  padding: 4px 8px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}
.modal-queue-boost-hint { margin: -4px 0 12px; }

/* Action Button */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #fff;
  border: none;
  padding: 13px 10px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
  transition: transform 0.1s ease, filter 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#btnBuyText {
  white-space: nowrap;
}
.btn-primary:active {
  transform: scale(0.98);
  filter: brightness(1.15);
}

/* Turbo Loop Switch */
.reinvest-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 10px;
  margin-bottom: 8px;
}
.reinvest-text strong {
  display: block;
  font-size: 11.5px;
  color: #e9d5ff;
}
.reinvest-text span {
  font-size: 9.5px;
  color: #c084fc;
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* Ticket List in TMA */
.ticket-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-num {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.ticket-room {
  font-size: 10px;
  color: var(--text-muted);
}
.ticket-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}
.badge-waiting { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-paid { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-reinvested { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

/* Live Room Queue */
.my-queue-summary-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.my-queue-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.3px;
}
.my-queue-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.my-ticket-pill {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.queue-list-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 2px;
}
.queue-list-container::-webkit-scrollbar {
  width: 4px;
}
.queue-list-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
.queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}
.queue-item.is-my-ticket {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.16)) !important;
  border: 1px solid rgba(56, 189, 248, 0.65) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25) !important;
}
.queue-item.is-head {
  border-left: 3px solid #f59e0b;
}
.queue-item.is-head.is-my-ticket {
  border-left: 3px solid #38bdf8 !important;
}
.queue-pos-badge {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  flex-shrink: 0;
}
.queue-pos-badge.pos-head {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0b1120;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}
.badge-you {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #030712;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}
.badge-next-payout {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(16, 18, 37, 0.96);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
  z-index: 100;
  padding: 0 4px env(safe-area-inset-bottom, 0px);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 6px 12px;
  border-radius: 12px;
}
.nav-item:active {
  transform: scale(0.92);
}
.nav-item.active {
  color: #38bdf8;
}
.nav-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-icon svg {
  width: 24px;
  height: 24px;
  transition: all 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.nav-item.active .nav-icon {
  transform: translateY(-2px) scale(1.18);
}
.nav-item.active .nav-icon svg {
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.85));
}


/* Toast */
/* Toast */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fff;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(245, 158, 11, 0.25);
  z-index: 99999999 !important;
  display: none;
  white-space: normal;
  word-break: break-word;
  max-width: calc(100vw - 32px);
  width: max-content;
  box-sizing: border-box;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  animation: fadeInDown 0.2s ease-out;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Modal Sheet */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 500;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-sheet {
  background: #0b1120;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 580px;
  min-height: 80vh;
  max-height: 94vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px calc(45px + env(safe-area-inset-bottom, 20px));
  box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.9);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 24px;
  }
  .modal-sheet {
    border-radius: 24px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.4);
    min-height: auto;
    max-height: 88vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}
.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.deposit-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}
.method-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.method-card.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-indigo);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}
.method-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.method-icon svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
.title-icon-svg {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -3px;
  margin-right: 6px;
  flex-shrink: 0;
}
.title-icon-svg svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.4));
}
.btn-icon-svg {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -3px;
  margin-right: 6px;
  flex-shrink: 0;
}
.btn-icon-svg svg {
  width: 100%;
  height: 100%;
}
.method-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.method-sub {
  font-size: 9px;
  color: var(--text-muted);
}

.wallet-box-wrap {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
  text-align: center;
}
.wallet-addr-text {
  font-family: monospace;
  font-size: 11px;
  color: var(--accent-cyan);
  word-break: break-all;
  background: rgba(6, 182, 212, 0.08);
  padding: 8px;
  border-radius: 6px;
  margin: 8px 0;
}
.btn-copy-addr {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.tx-input {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  margin-bottom: 10px;
  outline: none;
}
.tx-input:focus {
  border-color: var(--accent-indigo);
}
.qr-preview {
  width: 130px;
  height: 130px;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  margin: 0 auto 10px;
  display: block;
}

.deposit-segmented-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
}
.dep-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.dep-tab-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(6, 182, 212, 0.25));
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #fff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
}

.hero-amount-box {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}
.hero-amount-box:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}
.hero-currency-prefix {
  font-size: 22px;
  font-weight: 800;
  color: #38bdf8;
  margin-right: 6px;
}
.hero-amount-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  outline: none;
  width: 100%;
}
.hero-currency-suffix {
  font-size: 13px;
  font-weight: 800;
  color: #94a3b8;
  margin-left: 6px;
}

.quick-preset-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.preset-pill {
  flex: 1;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 7px 0;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.preset-pill:hover, .preset-pill:active, .preset-pill.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #34d399;
  color: #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* =========================================================
   GAME MODES SECTION HEADER & SEGMENTED DEPARTMENT NAVIGATION
   ========================================================= */

.game-modes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.modes-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
}
.modes-header-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
.modes-header-subtitle {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.game-mode-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(11, 19, 38, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mode-btn {
  position: relative;
  min-height: 48px;
  padding: 6px 3px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1px solid transparent;
}

.mode-btn-text {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  display: inline-block;
  letter-spacing: -0.2px;
}

.mode-btn .mode-icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 0;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), filter 0.22s ease;
}

/* Subtle inner top glow */
.mode-btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 10px 10px 0 0;
}

/* --- ОТДЕЛ 1: СМАРТ-ОЧЕРЕДЬ (CYAN/BLUE NEON THEME) --- */
.mode-btn-queue {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.24);
  color: #bae6fd;
}
.mode-btn-queue .mode-icon-svg {
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.5));
}
.mode-btn-queue:hover:not(.active) {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.16) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-color: rgba(56, 189, 248, 0.5);
  color: #fff;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.22);
}
.mode-btn-queue.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.45) 0%, rgba(37, 99, 235, 0.32) 100%);
  border: 1.5px solid #38bdf8;
  color: #fff;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}
.mode-btn-queue.active .mode-icon-svg {
  filter: drop-shadow(0 0 8px #38bdf8);
  transform: scale(1.15);
}

/* --- ОТДЕЛ 2: СКРЕТЧ-ЛОТЕРЕЯ (AMBER/FIRE THEME) --- */
.mode-btn-scratch {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(245, 158, 11, 0.24);
  color: #fde68a;
}
.mode-btn-scratch .mode-icon-svg {
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}
.mode-btn-scratch:hover:not(.active) {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fff;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.22);
}
.mode-btn-scratch.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.45) 0%, rgba(220, 38, 38, 0.32) 100%);
  border: 1.5px solid #fbbf24;
  color: #fff;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}
.mode-btn-scratch.active .mode-icon-svg {
  filter: drop-shadow(0 0 8px #f59e0b);
  transform: scale(1.15);
}

/* --- ОТДЕЛ 3: ДЖЕКПОТ 24Ч (EMERALD/GOLD THEME) --- */
.mode-btn-jackpot {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: #a7f3d0;
}
.mode-btn-jackpot .mode-icon-svg {
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.5));
}
.mode-btn-jackpot:hover:not(.active) {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-color: rgba(16, 185, 129, 0.5);
  color: #fff;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.22);
}
.mode-btn-jackpot.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.45) 0%, rgba(245, 158, 11, 0.28) 100%);
  border: 1.5px solid #34d399;
  color: #fff;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}
.mode-btn-jackpot.active .mode-icon-svg {
  filter: drop-shadow(0 0 8px #10b981);
  transform: scale(1.15);
}

/* --- БЕЙДЖИ РЕЖИМОВ (+20%, HOT, $1) --- */
.badge-pulse {
  font-size: 8.5px;
  font-weight: 900;
  padding: 2px 4px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  animation: pulseBadge 1.5s infinite;
  flex-shrink: 0;
  color: #fff;
}
.badge-pulse-queue {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}
.badge-pulse-scratch {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}
.badge-pulse-jackpot {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.88; }
}

.scratch-arena {
  animation: fadeInScratch 0.25s ease;
}
@keyframes fadeInScratch {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.scratch-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.scratch-tier-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.scratch-tier-card.active {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15));
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}
.scratch-tier-icon {
  font-size: 22px;
  margin-bottom: 2px;
}
.scratch-tier-name {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.scratch-tier-price {
  font-size: 12px;
  font-weight: 900;
  color: #34d399;
  margin-top: 2px;
}
.scratch-tier-max {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 2px;
}

.scratch-ticket-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 210px;
  margin: 0 auto 16px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #0f172a;
}
.scratch-card-under {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
  z-index: 1;
}
.scratch-prize-label {
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.scratch-prize-val {
  font-size: 32px;
  font-weight: 900;
  color: #34d399;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
  margin-bottom: 4px;
}
.scratch-prize-sub {
  font-size: 11px;
  color: #cbd5e1;
}
.scratch-card-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  cursor: crosshair;
  touch-action: none;
}
.scratch-progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 12px;
  padding: 0 4px;
}
.scratch-live-wins {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin-top: 16px;
}

/* Turbo Burst Widget */
.turbo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.12) 0%, rgba(17, 24, 39, 0.85) 70%) !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
  margin-top: 12px;
}
.turbo-fire-icon {
  font-size: 18px;
  animation: flamePulse 1.8s infinite alternate ease-in-out;
  display: inline-block;
}
@keyframes flamePulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px #f59e0b); }
  100% { transform: scale(1.18); filter: drop-shadow(0 0 8px #ef4444); }
}
.turbo-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.turbo-info-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: 4px;
}
.turbo-countdown-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.turbo-countdown-item {
  display: flex;
  flex-direction: column;
}
.turbo-countdown-item .t-sub {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}
.turbo-countdown-item .t-val {
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
}

/* Scratch Queue Boost Mechanics */
.scratch-boost-pill {
  font-size: 8.5px;
  font-weight: 800;
  padding: 2.5px 4px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  margin-top: 5px;
  text-align: center;
  letter-spacing: 0.2px;
  line-height: 1.2;
}
.scratch-boost-pill.next-boost {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(245, 158, 11, 0.35));
  color: #fef08a;
  border: 1px solid rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
  animation: pulseBoostGlow 1.2s infinite alternate;
}
.scratch-user-boost-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 3px 5px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
}
.scratch-user-boost-count-value {
  flex: 0 0 auto;
  color: #ecfdf5;
  font-size: 10px;
  font-weight: 900;
}
@keyframes pulseBoostGlow {
  0% { transform: scale(0.96); box-shadow: 0 0 4px rgba(239, 68, 68, 0.3); }
  100% { transform: scale(1.03); box-shadow: 0 0 12px rgba(239, 68, 68, 0.8); }
}

.scratch-boost-bar {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}
.scratch-boost-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 6px;
}
.scratch-boost-bar-title {
  color: #f59e0b;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}
.scratch-boost-bar-badge {
  font-weight: 800;
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.scratch-boost-track {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}
.scratch-boost-fill {
  background: linear-gradient(90deg, #f59e0b, #10b981);
  height: 100%;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}
.scratch-boost-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  font-size: 10px;
  color: #94a3b8;
}

/* Modal boost celebration */
.boost-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.25s ease;
}
.boost-modal-overlay.active {
  display: flex !important;
}
.boost-modal-card {
  background: linear-gradient(145deg, #0f172a, #1e1b4b);
  border: 2px solid #f59e0b;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.45);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  animation: popInModal 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popInModal {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.boost-modal-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 12px;
  animation: bounceBoostIcon 1s infinite alternate;
}
@keyframes bounceBoostIcon {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
.boost-modal-title {
  font-size: 19px;
  font-weight: 900;
  color: #fef08a;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.boost-modal-text {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 18px;
}
.boost-modal-btn {
  background: linear-gradient(135deg, #f59e0b, #06b6d4);
  color: #000;
  font-weight: 900;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  transition: transform 0.15s ease;
}
.boost-modal-btn:active {
  transform: scale(0.97);
}

/* Badge for Queue Room Card */
.queue-room-boost-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  margin-top: 6px;
}

/* Footer & Community action pills */
.footer-comm-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.footer-comm-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.footer-comm-pill:active {
  transform: scale(0.97);
}

/* =========================================================
   PAYOUT PROOFS & ON-CHAIN REGISTRY STYLES
   ========================================================= */
.btn-proofs-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  padding: 3.5px 6.5px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 26px;
  box-sizing: border-box;
}
.btn-proofs-badge:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}
.btn-proofs-badge:active {
  transform: scale(0.95);
}
.proofs-live-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
  animation: pulseProofsLive 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulseProofsLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}
.tx-explorer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.tx-explorer-link:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}
.proof-item {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s ease;
}
.proof-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.95);
}

.proofs-modal-sheet {
  max-width: 520px !important;
  height: 88vh !important;
  max-height: 740px !important;
  min-height: 480px !important;
  padding: 16px 16px calc(14px + env(safe-area-inset-bottom, 12px)) !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}
@media (min-width: 640px) {
  .proofs-modal-sheet {
    height: 84vh !important;
    max-height: 720px !important;
    border-radius: 20px !important;
  }
}

.proofs-filter-tabs {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.proofs-filter-tabs::-webkit-scrollbar {
  display: none !important;
}
.proofs-filter-tabs .dep-tab-btn {
  font-size: 10px !important;
  padding: 4px 6px !important;
  white-space: nowrap !important;
  flex: 1 1 auto !important;
  min-width: fit-content !important;
}

/* Adsgram Modal Styles */
.adsgram-modal-card {
  max-width: 350px !important;
  width: calc(100% - 28px) !important;
  padding: 18px 16px !important;
  background: linear-gradient(145deg, #0b1329 0%, #131c38 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(56, 189, 248, 0.25) !important;
  border-radius: 18px !important;
  box-sizing: border-box !important;
}
.adsgram-modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
}
.adsgram-modal-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.adsgram-modal-icon {
  font-size: 22px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 0 8px rgba(254, 240, 138, 0.6)) !important;
}
.adsgram-modal-title {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #fef08a !important;
  letter-spacing: 0.3px !important;
}
.adsgram-modal-close-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #94a3b8 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: all 0.15s ease !important;
}
.adsgram-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
}
.adsgram-modal-sub {
  font-size: 12.5px !important;
  color: #cbd5e1 !important;
  line-height: 1.4 !important;
  text-align: left !important;
  margin-bottom: 12px !important;
}
.adsgram-modal-debug-box {
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  margin-bottom: 12px !important;
  text-align: left !important;
}
.adsgram-modal-widget-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.8)) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.adsgram-modal-live-hint {
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  padding: 4px 6px !important;
}
.adsgram-modal-test-box {
  background: rgba(34, 197, 94, 0.1) !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  border-radius: 12px !important;
  padding: 11px 12px !important;
  margin-bottom: 12px !important;
  text-align: left !important;
  font-size: 12px !important;
  color: #86efac !important;
  line-height: 1.4 !important;
}
.adsgram-test-btn {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  padding: 12px 16px !important;
  width: 100% !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
  white-space: nowrap !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  margin-top: 6px !important;
}
.adsgram-test-btn:active {
  transform: scale(0.97) !important;
}

/* Universal Web Component styling for <adsgram-task> inside light DOM & shadow root slots */
adsgram-task {
  --adsgram-task-font-size: 13px !important;
  --adsgram-task-icon-size: 38px !important;
  --adsgram-task-icon-title-gap: 10px !important;
  --adsgram-task-button-width: 86px !important;
  --adsgram-task-icon-border-radius: 8px !important;
  display: block !important;
  width: 100% !important;
  font-family: inherit !important;
  color: #ffffff !important;
}
adsgram-task [slot="reward"],
adsgram-task p[slot="reward"] {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #38bdf8 !important;
  margin: 3px 0 0 0 !important;
  display: flex !important;
  align-items: center !important;
}
adsgram-task [slot="button"],
adsgram-task .task__button,
.task__button {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-height: 32px !important;
}
adsgram-task [slot="button"]:active,
adsgram-task .task__button:active,
.task__button:active {
  transform: scale(0.95) !important;
}
adsgram-task [slot="claim"],
adsgram-task .task__button_claim,
.task__button_claim {
  background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
  color: #0f172a !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(254, 240, 138, 0.4) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6) !important;
  animation: pulseClaimBtn 1.2s infinite alternate !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
}
adsgram-task [slot="done"],
adsgram-task .task__button_done,
.task__button_done {
  background: #059669 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
  box-shadow: none !important;
  cursor: default !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
}
@keyframes pulseClaimBtn {
  0% { transform: scale(0.97); }
  100% { transform: scale(1.04); }
}

/* 3D Cube Ad Watch & Swipe Unlock Glow */
.cube-viewport.ad-ready-glow {
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.95)) drop-shadow(0 0 30px rgba(234, 88, 12, 0.8)) !important;
  animation: pulseAdReadyCube 1.1s infinite alternate !important;
}
@keyframes pulseAdReadyCube {
  0% { filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.8)) drop-shadow(0 0 20px rgba(234, 88, 12, 0.6)); }
  100% { filter: drop-shadow(0 0 26px rgba(245, 158, 11, 1)) drop-shadow(0 0 40px rgba(234, 88, 12, 0.95)); }
}

.btn-cube-ad-roll.pulse-ready {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%) !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.6) !important;
  animation: pulseReadyBtn 1s infinite alternate !important;
}
@keyframes pulseReadyBtn {
  0% { transform: scale(0.98); }
  100% { transform: scale(1.04); }
}

/* Sponsor Ad Modal */
.cube-ad-modal-card {
  max-width: 360px !important;
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.25) !important;
  padding: 20px 16px !important;
  border-radius: 18px !important;
  text-align: center !important;
}
.cube-ad-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cube-ad-modal-tag {
  font-size: 11px;
  font-weight: 800;
  color: #fef08a;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.cube-ad-modal-timer {
  font-size: 11px;
  font-weight: 900;
  color: #38bdf8;
  font-family: monospace;
}
.cube-ad-video-mock {
  position: relative;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 1));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 24px 16px;
  overflow: hidden;
  margin-bottom: 12px;
}
.cube-ad-sponsor-logo {
  font-size: 18px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}
.cube-ad-sponsor-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.cube-ad-sponsor-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 14px;
}
.cube-ad-progress-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.cube-ad-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 999px;
  transition: width 0.1s linear;
}
.cube-ad-status-text {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* =========================================================
   FAQ MODAL & INTERACTIVE ACCORDION STYLES
   ========================================================= */
.faq-modal-sheet {
  max-width: 520px !important;
  max-height: 88vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 18px 16px !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg, #0d1226 0%, #080c1a 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}
.faq-search-input {
  width: 100% !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #fff !important;
  font-size: 12px !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.faq-search-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3) !important;
}
.faq-filter-pills {
  display: flex !important;
  gap: 6px !important;
  overflow-x: auto !important;
  padding-bottom: 6px !important;
  margin-bottom: 12px !important;
  scrollbar-width: none !important;
  flex-shrink: 0 !important;
}
.faq-filter-pills::-webkit-scrollbar {
  display: none !important;
}
.faq-pill-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 5px 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.faq-pill-btn:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
}
.faq-pill-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(99, 102, 241, 0.3)) !important;
  border-color: #38bdf8 !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25) !important;
}
.faq-list-wrap {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding-right: 2px !important;
  margin-bottom: 12px !important;
  -webkit-overflow-scrolling: touch !important;
}
.faq-item {
  flex-shrink: 0 !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}
.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.faq-item.open,
.faq-item.active {
  border-color: rgba(56, 189, 248, 0.5) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
}
.faq-question {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 14px !important;
  cursor: pointer !important;
  user-select: none !important;
  gap: 10px !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
}
.faq-q-left {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  flex: 1 1 auto !important;
}
.faq-q-badge {
  font-size: 8.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  padding: 1.5px 6px !important;
  border-radius: 4px !important;
  letter-spacing: 0.4px !important;
}
.faq-q-badge.cube { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.faq-q-badge.queue { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.faq-q-badge.scratch { background: rgba(236, 72, 153, 0.2); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.4); }
.faq-q-badge.finance { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.faq-q-badge.ref { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }

.faq-q-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.4 !important;
  text-align: left !important;
}
.faq-chevron {
  font-size: 11px !important;
  color: #94a3b8 !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
  flex-shrink: 0 !important;
}
.faq-item.open .faq-chevron,
.faq-item.active .faq-chevron {
  transform: rotate(180deg) !important;
  color: #38bdf8 !important;
}
.faq-answer {
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transition: max-height 0.35s ease, opacity 0.25s ease !important;
}
.faq-item.open .faq-answer,
.faq-item.active .faq-answer {
  max-height: 800px !important;
  opacity: 1 !important;
}
.faq-answer-inner {
  padding: 0 14px 14px 14px !important;
  font-size: 11.5px !important;
  color: #cbd5e1 !important;
  line-height: 1.55 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding-top: 10px !important;
}
.faq-profile-card:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.25) !important;
}

/* === DAILY JACKPOT (ЛОТЕРЕЯ 24Ч) STYLES === */
.jackpot-arena {
  animation: fadeInJackpot 0.28s ease;
}
@keyframes fadeInJackpot {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.jackpot-hero-card {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.18) 0%, rgba(15, 23, 42, 0.85) 75%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
  overflow: hidden;
}

.jackpot-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 60%);
  animation: rotateGlow 12s linear infinite;
  pointer-events: none;
}
@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.jackpot-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.jackpot-bank-val {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 45%, #f59e0b 80%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(245, 158, 11, 0.45));
  margin: 4px 0 10px;
  line-height: 1.1;
}

.jackpot-timer-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px 14px;
  margin-bottom: 8px;
}
.jackpot-timer-digits {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 1.5px;
}

.jackpot-perks-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}
.jackpot-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 8px;
}
.jackpot-perk-item:last-child {
  margin-bottom: 0;
}
.jackpot-perk-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.jackpot-selector-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.jackpot-select-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 10px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.jackpot-select-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fff;
}
.jackpot-select-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.jackpot-chances-meter {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
  margin: 6px 0;
  position: relative;
}
.jackpot-chances-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #38bdf8, #fbbf24);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.jackpot-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
}
.jackpot-winner-item:last-child {
  border-bottom: none;
}






