/**
 * CoinRush Premium Jackpot - V2 Clean Design
 * Minimal, professional dark theme
 * OPTIMIZED FOR PERFORMANCE
 */

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* GPU-accelerated elements */
.jackpot-display,
.jackpot-trophy svg,
.jackpot-prize-amount,
.jackpot-timer-section,
.bet-submit,
.confetti-piece {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --pj-bg: #0d1117;
  --pj-bg-card: #161b22;
  --pj-bg-elevated: #1c2128;
  --pj-bg-input: #0d1117;
  
  --pj-border: rgba(255, 255, 255, 0.06);
  --pj-border-hover: rgba(255, 255, 255, 0.12);
  
  --pj-text: #e6edf3;
  --pj-text-secondary: #8b949e;
  --pj-text-muted: #6e7681;
  
  --pj-gold: #f0b429;
  --pj-gold-dim: rgba(240, 180, 41, 0.12);
  
  --pj-green: #3fb950;
  --pj-green-dim: rgba(63, 185, 80, 0.12);
  
  --pj-purple: #a371f7;
  --pj-red: #f85149;
  
  --pj-radius: 12px;
  --pj-radius-sm: 8px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--pj-bg);
  color: var(--pj-text);
  line-height: 1.5;
  min-height: 100vh;
}

/* ============================================
   LAYOUT
   ============================================ */
.premium-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pj-bg);
  padding-top: 70px; /* Space for fixed navbar */
}

/* ============================================
   SLIDING HISTORY BAR - PREMIUM STYLING
   ============================================ */
.premium-history-bar {
  background: linear-gradient(180deg, 
    rgba(22, 27, 34, 0.98) 0%, 
    rgba(18, 22, 28, 0.99) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px 32px;
  overflow: hidden;
  position: relative;
}

.premium-history-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(240, 180, 41, 0.2) 50%, 
    transparent 100%);
}

/* Fade masks on sides */
.premium-history-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, transparent, rgba(18, 22, 28, 1));
  pointer-events: none;
  z-index: 2;
}

.history-bar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: scroll-left 50s linear infinite;
  width: max-content;
}

.history-bar-inner:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.history-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: linear-gradient(135deg, 
    rgba(28, 33, 40, 0.95) 0%, 
    rgba(22, 27, 34, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 25px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
  cursor: default;
}

.history-bar-item:hover {
  border-color: rgba(240, 180, 41, 0.3);
  background: linear-gradient(135deg, 
    rgba(35, 40, 50, 0.95) 0%, 
    rgba(28, 33, 40, 0.98) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.history-bar-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.history-bar-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-bar-name {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--pj-text);
}

.history-bar-prize {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd700, #f0b429);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.history-bar-time {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(139, 148, 158, 0.5);
}

.premium-main {
  flex: 1;
  padding: 28px;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

.premium-layout {
  display: grid;
  grid-template-columns: 320px 1fr 400px;
  gap: 28px;
  min-height: calc(100vh - 180px);
}

.premium-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.premium-sidebar.left {
  position: sticky;
  top: 94px;
  height: fit-content;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.premium-sidebar.right {
  position: sticky;
  top: 94px;
  height: fit-content;
}

/* Chat container - premium styling */
.premium-chat-container {
  flex: 1;
  min-height: 500px;
  max-height: calc(100vh - 180px);
  background: linear-gradient(165deg, 
    rgba(28, 33, 40, 0.98) 0%, 
    rgba(22, 27, 34, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.premium-center {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Bottom participants bar */
.premium-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pj-bg-card);
  border-top: 1px solid var(--pj-border);
  padding: 12px 24px;
  z-index: 100;
}

.bottom-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bottom-bar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pj-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bottom-bar-title svg {
  width: 18px;
  height: 18px;
  color: var(--pj-text-muted);
}

.bottom-bar-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--pj-text-muted);
  background: var(--pj-bg-elevated);
  padding: 4px 10px;
  border-radius: 12px;
}

.bottom-bar-participants {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.bottom-bar-participants::-webkit-scrollbar {
  height: 4px;
}

.bottom-bar-participants::-webkit-scrollbar-track {
  background: var(--pj-bg);
}

.bottom-bar-participants::-webkit-scrollbar-thumb {
  background: var(--pj-border);
  border-radius: 2px;
}

.bottom-participant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--pj-bg-elevated);
  border: 1px solid var(--pj-border);
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.bottom-participant:hover {
  border-color: var(--pj-border-hover);
}

.bottom-participant.is-you {
  background: var(--pj-gold-dim);
  border-color: rgba(240, 180, 41, 0.3);
}

.bottom-participant-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.bottom-participant-info {
  display: flex;
  flex-direction: column;
}

.bottom-participant-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pj-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bottom-participant-name .you-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--pj-gold);
  background: var(--pj-gold-dim);
  padding: 2px 6px;
  border-radius: 4px;
}

.bottom-participant-bet {
  font-size: 12px;
  color: var(--pj-text-muted);
}

.bottom-participant-chance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 8px;
}

.bottom-participant-pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--pj-green);
}

.bottom-participant-bar {
  width: 50px;
  height: 4px;
  background: var(--pj-border);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.bottom-participant-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}

.bottom-bar-empty {
  padding: 16px 0;
  text-align: center;
  font-size: 14px;
  color: var(--pj-text-muted);
}

/* ============================================
   COMPACT PARTICIPANTS PANEL - VIP STYLING
   ============================================ */
.participants-panel-compact {
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(168, 113, 247, 0.06) 0%, transparent 50%),
    linear-gradient(165deg, 
      rgba(22, 27, 34, 0.98) 0%, 
      rgba(16, 20, 26, 0.99) 100%);
  border: 1px solid rgba(168, 113, 247, 0.15);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(168, 113, 247, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.participants-panel-compact::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(168, 113, 247, 0.4) 50%, 
    transparent 100%);
}

.participants-panel-compact:hover {
  border-color: rgba(168, 113, 247, 0.3);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(168, 113, 247, 0.1);
}

.participants-panel-compact .panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(168, 113, 247, 0.1);
  background: linear-gradient(180deg, 
    rgba(168, 113, 247, 0.03) 0%, 
    transparent 100%);
}

.participants-panel-compact .panel-icon {
  display: flex;
  color: #a371f7;
  filter: drop-shadow(0 0 8px rgba(168, 113, 247, 0.4));
}

.participants-panel-compact .panel-icon svg {
  width: 20px;
  height: 20px;
}

.participants-panel-compact .panel-title {
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 2px;
  flex: 1;
}

.participants-panel-compact .panel-count {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #a371f7;
  background: linear-gradient(135deg, 
    rgba(168, 113, 247, 0.2) 0%, 
    rgba(168, 113, 247, 0.1) 100%);
  border: 1px solid rgba(168, 113, 247, 0.4);
  padding: 6px 12px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(168, 113, 247, 0.15);
}

.participants-compact-list {
  max-height: 280px;
  overflow-y: auto;
}

.participants-compact-list::-webkit-scrollbar {
  width: 4px;
}

.participants-compact-list::-webkit-scrollbar-track {
  background: transparent;
}

.participants-compact-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.participant-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.25s ease;
  position: relative;
}

.participant-compact::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.25s ease;
}

.participant-compact:last-child {
  border-bottom: none;
}

.participant-compact:hover {
  background: rgba(255, 255, 255, 0.03);
}

.participant-compact:hover::before {
  background: linear-gradient(180deg, var(--pj-purple), transparent);
}

.participant-compact.is-you {
  background: linear-gradient(90deg, 
    rgba(240, 180, 41, 0.1) 0%, 
    transparent 100%);
}

.participant-compact.is-you::before {
  background: linear-gradient(180deg, var(--pj-gold), rgba(240, 180, 41, 0.3));
}

.participant-compact-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

.participant-compact:hover .participant-compact-avatar {
  transform: scale(1.08);
}

.participant-compact-info {
  flex: 1;
  min-width: 0;
}

.participant-compact-name {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--pj-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.participant-compact-name .you-badge {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: var(--pj-gold);
  background: linear-gradient(135deg, 
    rgba(240, 180, 41, 0.2) 0%, 
    rgba(240, 180, 41, 0.1) 100%);
  border: 1px solid rgba(240, 180, 41, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.participant-compact-bet {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(139, 148, 158, 0.7);
  margin-top: 2px;
}

.participant-compact-pct {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pj-green), #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.participants-compact-empty {
  padding: 32px 20px;
  text-align: center;
}

.participants-compact-empty p {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  color: rgba(139, 148, 158, 0.7);
  margin-bottom: 6px;
}

.participants-compact-empty span {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(139, 148, 158, 0.5);
}

/* ============================================
   CARDS BASE
   ============================================ */
.pj-card {
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  padding: 20px;
}

.pj-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pj-border);
}

.pj-card-icon {
  width: 20px;
  height: 20px;
  color: var(--pj-text-muted);
}

.pj-card-icon svg {
  width: 100%;
  height: 100%;
}

.pj-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--pj-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   BET PANEL - ULTRA VIP STYLING
   ============================================ */
.bet-panel {
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(63, 185, 80, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, 
      rgba(22, 27, 34, 0.98) 0%, 
      rgba(16, 20, 26, 0.99) 100%);
  border: 1px solid rgba(63, 185, 80, 0.15);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(63, 185, 80, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.bet-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(63, 185, 80, 0.5) 50%, 
    transparent 100%);
}

.bet-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(63, 185, 80, 0.02) 0%, transparent 100%);
  pointer-events: none;
}

.bet-panel:hover {
  border-color: rgba(63, 185, 80, 0.3);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(63, 185, 80, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bet-input-container {
  position: relative;
  margin-bottom: 14px;
}

.bet-input {
  width: 100%;
  background: linear-gradient(180deg, 
    rgba(13, 17, 23, 0.95) 0%, 
    rgba(8, 10, 14, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
  padding-right: 75px;
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bet-input:focus {
  border-color: rgba(63, 185, 80, 0.6);
  box-shadow: 
    inset 0 2px 10px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(63, 185, 80, 0.15);
}

.bet-input::placeholder {
  color: rgba(139, 148, 158, 0.5);
  font-weight: 500;
}

.bet-max-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, 
    rgba(240, 180, 41, 0.15) 0%, 
    rgba(240, 180, 41, 0.08) 100%);
  border: 1px solid rgba(240, 180, 41, 0.3);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--pj-gold);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bet-max-btn:hover {
  background: linear-gradient(135deg, 
    rgba(240, 180, 41, 0.25) 0%, 
    rgba(240, 180, 41, 0.15) 100%);
  border-color: rgba(240, 180, 41, 0.5);
  transform: translateY(-50%) scale(1.05);
}

.bet-max-btn svg {
  width: 12px;
  height: 12px;
}

.bet-presets {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.bet-preset {
  flex: 1;
  background: linear-gradient(180deg, 
    rgba(28, 33, 40, 0.95) 0%, 
    rgba(18, 22, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bet-preset::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.15) 0%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bet-preset:hover {
  border-color: rgba(255, 215, 0, 0.4);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bet-preset:hover::before {
  opacity: 1;
}

.bet-preset.active {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.2) 0%, 
    rgba(240, 180, 41, 0.1) 100%);
  border-color: rgba(255, 215, 0, 0.6);
  color: #ffd700;
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bet-submit {
  width: 100%;
  background: linear-gradient(135deg, #3fb950 0%, #2ea043 50%, #238636 100%);
  border: none;
  border-radius: 14px;
  padding: 18px 24px;
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(63, 185, 80, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: bet-button-glow 3s ease-in-out infinite;
}

@keyframes bet-button-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(63, 185, 80, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 4px 35px rgba(63, 185, 80, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

.bet-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  transition: left 0.6s ease;
}

.bet-submit:hover:not(:disabled)::before {
  left: 100%;
}

.bet-submit:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 35px rgba(63, 185, 80, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: none;
}

.bet-submit:active:not(:disabled) {
  transform: translateY(-1px) scale(1.01);
}

.bet-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  box-shadow: none;
}

.bet-submit svg {
  width: 18px;
  height: 18px;
}

.bet-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(139, 148, 158, 0.6);
}

.bet-error {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.2);
  border-radius: var(--pj-radius-sm);
  font-size: 13px;
  color: var(--pj-red);
}

.bet-success {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--pj-green-dim);
  border: 1px solid rgba(63, 185, 80, 0.2);
  border-radius: var(--pj-radius-sm);
  font-size: 13px;
  color: var(--pj-green);
}

/* ============================================
   COUNTDOWN DISPLAY
   ============================================ */
.countdown-card {
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  padding: 32px 40px;
  text-align: center;
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.countdown-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--pj-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-bonus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--pj-gold-dim);
  border: 1px solid rgba(240, 180, 41, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pj-gold);
}

.countdown-bonus svg {
  width: 14px;
  height: 14px;
}

.countdown-timer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.countdown-value {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 80px;
  font-weight: 700;
  color: var(--pj-gold);
  line-height: 1;
  letter-spacing: -2px;
}

.countdown-separator {
  font-size: 60px;
  font-weight: 300;
  color: var(--pj-text-muted);
  margin: 0 4px;
}

.countdown-unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--pj-text-muted);
  text-transform: uppercase;
  margin-left: 4px;
}

.countdown-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--pj-green-dim);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pj-green);
}

.countdown-status svg {
  width: 14px;
  height: 14px;
}

/* Urgent state */
.countdown-card.urgent .countdown-value {
  color: var(--pj-red);
}

.countdown-card.urgent .countdown-status {
  background: rgba(248, 81, 73, 0.1);
  color: var(--pj-red);
}

/* Warning state */
.countdown-card.warning .countdown-value {
  color: #f0883e;
}

/* ============================================
   WINNER DISPLAY
   ============================================ */
.winner-card {
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-gold);
  border-radius: var(--pj-radius);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.winner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(240, 180, 41, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.winner-icon {
  width: 48px;
  height: 48px;
  color: var(--pj-gold);
  margin: 0 auto 16px;
}

.winner-icon svg {
  width: 100%;
  height: 100%;
}

.winner-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--pj-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.winner-name {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--pj-text);
  margin-bottom: 20px;
}

.winner-prize {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 32px;
  background: var(--pj-green-dim);
  border: 1px solid rgba(63, 185, 80, 0.2);
  border-radius: var(--pj-radius);
}

.winner-prize-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--pj-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.winner-prize-amount {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--pj-green);
}

.winner-prize-coins {
  font-size: 13px;
  color: var(--pj-text-secondary);
}

.winner-next {
  margin-top: 20px;
  font-size: 13px;
  color: var(--pj-text-muted);
}

/* Drawing state */
.drawing-card {
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-purple);
  border-radius: var(--pj-radius);
  padding: 60px 40px;
  text-align: center;
}

.drawing-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--pj-border);
  border-top-color: var(--pj-purple);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.drawing-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--pj-purple);
}

/* ============================================
   PRIZE POOL
   ============================================ */
.prize-pool-card {
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  padding: 24px;
}

.prize-pool-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pj-border);
  margin-bottom: 20px;
}

.prize-pool-icon {
  width: 32px;
  height: 32px;
  color: var(--pj-gold);
}

.prize-pool-icon svg {
  width: 100%;
  height: 100%;
}

.prize-pool-value {
  font-family: 'Sora', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--pj-gold);
}

.prize-pool-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pj-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prize-pool-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pool-stat {
  background: var(--pj-bg-elevated);
  border-radius: var(--pj-radius-sm);
  padding: 16px;
  text-align: center;
}

.pool-stat-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--pj-text-muted);
}

.pool-stat-icon svg {
  width: 20px;
  height: 20px;
}

.pool-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--pj-text);
}

.pool-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--pj-text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================
   PARTICIPANTS LIST
   ============================================ */
.participants-card {
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  overflow: hidden;
}

.participants-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pj-border);
}

.participants-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.participants-icon {
  width: 18px;
  height: 18px;
  color: var(--pj-text-muted);
}

.participants-icon svg {
  width: 100%;
  height: 100%;
}

.participants-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--pj-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.participants-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--pj-text-muted);
  background: var(--pj-bg-elevated);
  padding: 4px 10px;
  border-radius: 12px;
}

.participants-list {
  max-height: 300px;
  overflow-y: auto;
}

.participant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--pj-border);
  transition: background 0.2s;
}

.participant-item:last-child {
  border-bottom: none;
}

.participant-item:hover {
  background: var(--pj-bg-elevated);
}

.participant-item.is-you {
  background: var(--pj-gold-dim);
}

.participant-rank {
  font-size: 12px;
  font-weight: 600;
  color: var(--pj-text-muted);
  width: 24px;
}

.participant-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.participant-info {
  flex: 1;
  min-width: 0;
}

.participant-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pj-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.you-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--pj-gold);
  background: var(--pj-gold-dim);
  padding: 2px 6px;
  border-radius: 4px;
}

.participant-amount {
  font-size: 12px;
  color: var(--pj-text-muted);
}

.participant-chance {
  text-align: right;
}

.chance-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--pj-green);
}

.chance-bar {
  width: 60px;
  height: 4px;
  background: var(--pj-border);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.chance-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}

.participants-empty {
  padding: 40px 20px;
  text-align: center;
}

.participants-empty-icon {
  width: 40px;
  height: 40px;
  color: var(--pj-text-muted);
  margin: 0 auto 12px;
  opacity: 0.5;
}

.participants-empty-icon svg {
  width: 100%;
  height: 100%;
}

.participants-empty h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--pj-text-secondary);
  margin-bottom: 4px;
}

.participants-empty p {
  font-size: 13px;
  color: var(--pj-text-muted);
}

/* ============================================
   HISTORY PANEL
   ============================================ */
.history-card {
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  overflow: hidden;
}

.history-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pj-border);
}

.history-icon {
  width: 18px;
  height: 18px;
  color: var(--pj-text-muted);
}

.history-icon svg {
  width: 100%;
  height: 100%;
}

.history-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--pj-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-list {
  max-height: 280px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--pj-border);
}

.history-item:last-child {
  border-bottom: none;
}

.history-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.history-info {
  flex: 1;
}

.history-winner {
  font-size: 14px;
  font-weight: 600;
  color: var(--pj-text);
}

.history-time {
  font-size: 12px;
  color: var(--pj-text-muted);
}

.history-prize {
  text-align: right;
}

.history-prize-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--pj-gold);
}

.history-prize-label {
  font-size: 11px;
  color: var(--pj-text-muted);
}

.history-empty {
  padding: 30px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--pj-text-muted);
}

/* ============================================
   CHAT CONTAINER
   ============================================ */
.chat-container {
  flex: 1;
  min-height: 350px;
  max-height: 400px;
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  overflow: hidden;
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--pj-border);
  border-top-color: var(--pj-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  font-size: 14px;
  color: var(--pj-text-muted);
}

/* ============================================
   PANEL GENERIC STYLES (for JSX compatibility)
   ============================================ */
.participants-panel,
.history-panel {
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pj-border);
}

.panel-icon {
  display: flex;
  color: var(--pj-text-muted);
}

.panel-icon svg {
  width: 18px;
  height: 18px;
}

.panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--pj-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
}

.panel-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--pj-text-muted);
  background: var(--pj-bg-elevated);
  padding: 4px 10px;
  border-radius: 12px;
}

.empty-icon {
  width: 40px;
  height: 40px;
  color: var(--pj-text-muted);
  opacity: 0.5;
  margin: 0 auto 12px;
}

.empty-icon svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   PRIZE POOL DISPLAY (JSX compatibility)
   ============================================ */
.prize-pool-display {
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  padding: 24px;
}

.prize-pool-display .prize-pool-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pj-border);
  margin-bottom: 20px;
}

.prize-pool-display .prize-pool-icon {
  width: 32px;
  height: 32px;
  color: var(--pj-gold);
}

.prize-pool-display .prize-pool-icon svg {
  width: 100%;
  height: 100%;
}

.prize-pool-display .prize-pool-value {
  font-family: 'Sora', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--pj-gold);
}

.prize-pool-display .prize-pool-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pj-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prize-pool-display .pool-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--pj-bg-elevated);
  border-radius: var(--pj-radius-sm);
  padding: 16px;
  text-align: center;
}

/* ============================================
   COUNTDOWN DISPLAY (JSX compatibility)
   ============================================ */
.countdown-display {
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  padding: 40px;
  text-align: center;
  margin-bottom: 24px;
}

.countdown-display .countdown-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.countdown-display .countdown-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pj-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-display .countdown-timer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.countdown-display .countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-display .countdown-value {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 80px;
  font-weight: 700;
  color: var(--pj-gold);
  line-height: 1;
  letter-spacing: -2px;
}

.countdown-display .countdown-unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--pj-text-muted);
  text-transform: uppercase;
  margin-top: 8px;
}

.countdown-display .countdown-separator {
  font-size: 60px;
  font-weight: 300;
  color: var(--pj-text-muted);
  margin: 0 4px;
}

.countdown-display .countdown-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--pj-green-dim);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pj-green);
}

.countdown-display.urgent .countdown-value {
  color: var(--pj-red);
}

.countdown-display.urgent .countdown-status {
  background: rgba(248, 81, 73, 0.1);
  color: var(--pj-red);
}

.countdown-display.warning .countdown-value {
  color: #f0883e;
}

/* Winner mode */
.countdown-display.winner-mode {
  border-color: var(--pj-gold);
  position: relative;
  overflow: hidden;
}

.countdown-display.winner-mode::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(240, 180, 41, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.winner-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.winner-content {
  position: relative;
  z-index: 1;
}

.winner-crown-icon {
  width: 48px;
  height: 48px;
  color: var(--pj-gold);
  margin: 0 auto 16px;
}

.winner-crown-icon svg {
  width: 100%;
  height: 100%;
}

.countdown-display .winner-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--pj-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.winner-name-large {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--pj-text);
  margin-bottom: 20px;
}

.winner-prize-display {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 32px;
  background: var(--pj-green-dim);
  border: 1px solid rgba(63, 185, 80, 0.2);
  border-radius: var(--pj-radius);
}

.prize-won-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--pj-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prize-won-amount {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--pj-green);
}

.prize-won-coins {
  font-size: 13px;
  color: var(--pj-text-secondary);
}

.winner-next-round {
  margin-top: 20px;
  font-size: 13px;
  color: var(--pj-text-muted);
}

/* Confetti */
.winner-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confetti-fall 3s ease-out infinite;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(400px) rotate(720deg);
    opacity: 0;
  }
}

/* Drawing mode */
.countdown-display.drawing-mode {
  border-color: var(--pj-purple);
  padding: 60px 40px;
}

.countdown-display .drawing-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--pj-border);
  border-top-color: var(--pj-purple);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

.countdown-display .drawing-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--pj-purple);
}

/* ============================================
   JACKPOT HERO DISPLAY - Combined Prize + Timer
   🔥 ULTRA VIP PREMIUM DESIGN 🔥
   OPTIMIZED for smooth 60fps performance
   ============================================ */

/* Simplified border animation - uses only transform/opacity for GPU */
@keyframes electric-border {
  0%, 100% { 
    border-color: rgba(255, 215, 0, 0.4);
  }
  50% { 
    border-color: rgba(255, 215, 0, 0.6);
  }
}

.jackpot-display {
  background: 
    radial-gradient(ellipse at 50% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    linear-gradient(165deg, 
      rgba(20, 22, 28, 1) 0%, 
      rgba(12, 14, 18, 1) 50%,
      rgba(8, 10, 14, 1) 100%);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 28px;
  padding: 56px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 60px rgba(255, 215, 0, 0.12),
    inset 0 0 60px rgba(255, 215, 0, 0.02);
  animation: electric-border 4s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Premium shine effect - simplified */
.jackpot-display::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -100%;
  width: 50%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 215, 0, 0.6) 50%,
    transparent 100%);
  animation: shine-sweep 6s ease-in-out infinite;
}

@keyframes shine-sweep {
  0%, 100% { left: -50%; opacity: 0; }
  50% { left: 100%; opacity: 1; }
}

/* Removed heavy particle effect - using CSS-only subtle glow instead */
.jackpot-display::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.jackpot-display:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 100px rgba(255, 215, 0, 0.2);
}

.jackpot-display:hover {
  border-color: rgba(255, 215, 0, 0.7);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(255, 215, 0, 0.25),
    0 0 200px rgba(255, 215, 0, 0.1),
    inset 0 0 120px rgba(255, 215, 0, 0.06);
}

/* VIP Bonus Badge */
.jackpot-display .jackpot-bonus {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 12px 24px;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.25) 0%, 
    rgba(255, 180, 0, 0.15) 100%);
  border: 1px solid rgba(255, 215, 0, 0.6);
  border-radius: 30px;
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 3px;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.4),
    0 0 60px rgba(255, 215, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: vip-badge-pulse 2.5s ease-in-out infinite;
  z-index: 10;
}

@keyframes vip-badge-pulse {
  0%, 100% { 
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6), 0 0 100px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.03);
  }
}

.jackpot-display .jackpot-bonus.special {
  background: linear-gradient(135deg, 
    rgba(168, 113, 247, 0.35) 0%, 
    rgba(255, 215, 0, 0.2) 100%);
  border: 1px solid rgba(168, 113, 247, 0.7);
  color: #fff;
  text-shadow: 0 0 10px rgba(168, 113, 247, 0.5);
  animation: vip-special-rainbow 3s ease-in-out infinite;
}

@keyframes vip-special-rainbow {
  0%, 100% { 
    border-color: rgba(168, 113, 247, 0.7);
    box-shadow: 0 0 40px rgba(168, 113, 247, 0.5), 0 0 80px rgba(168, 113, 247, 0.2);
  }
  33% { 
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5), 0 0 80px rgba(255, 215, 0, 0.2);
  }
  66% { 
    border-color: rgba(63, 185, 80, 0.7);
    box-shadow: 0 0 40px rgba(63, 185, 80, 0.5), 0 0 80px rgba(63, 185, 80, 0.2);
  }
}

/* ============================================
   PRIZE SECTION - THE HERO ✨💰✨
   MASSIVE GLOW EFFECT!
   ============================================ */
.jackpot-display .jackpot-prize-section {
  margin-bottom: 40px;
  position: relative;
  z-index: 5;
}

/* Trophy icon with intense glow */
.jackpot-display .jackpot-trophy {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

/* Trophy glow aura */
.jackpot-display .jackpot-trophy::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, 
    rgba(255, 215, 0, 0.3) 0%, 
    rgba(255, 215, 0, 0.05) 50%,
    transparent 70%);
  /* Static aura for better performance */
  pointer-events: none;
}

.jackpot-display .jackpot-trophy svg {
  width: 72px;
  height: 72px;
  color: #ffd700;
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.7));
  position: relative;
  z-index: 1;
}

.jackpot-display .jackpot-prize-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* ============================================
   THE BIG PRIZE NUMBER - OPTIMIZED GLOW! 💰
   ============================================ */

/* Static glow container - no animation for performance */
.jackpot-display .jackpot-prize-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 180px;
  background: radial-gradient(ellipse, 
    rgba(255, 215, 0, 0.25) 0%, 
    rgba(255, 180, 0, 0.12) 30%,
    transparent 65%);
  filter: blur(25px);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

/* THE BIG NUMBER - Orbitron font with OPTIMIZED glow */
.jackpot-display .jackpot-prize-amount {
  font-family: 'Orbitron', sans-serif;
  font-size: 82px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 4px;
  position: relative;
  z-index: 2;
  
  /* Multi-layer gold gradient */
  background: linear-gradient(135deg, 
    #fff9c4 0%,
    #ffd700 20%,
    #ffec8b 40%,
    #ffd700 60%,
    #daa520 80%,
    #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  /* Static glow - no animation for better performance */
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.7)) 
          drop-shadow(0 0 60px rgba(255, 200, 0, 0.4));
}

/* Simpler glow ring - static, no animation */
.jackpot-display .jackpot-prize-amount::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 180%;
  background: radial-gradient(ellipse,
    rgba(255, 215, 0, 0.2) 0%,
    rgba(255, 200, 0, 0.1) 30%,
    transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Removed ::after pseudo element - too many layers */

.jackpot-display .jackpot-prize-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(90deg, 
    rgba(255, 215, 0, 0.4) 0%,
    rgba(255, 215, 0, 0.8) 50%,
    rgba(255, 215, 0, 0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 10px;
  margin-top: 12px;
}

/* ============================================
   TIMER SECTION - VIP Glass Style ⏱️
   ============================================ */
.jackpot-display .jackpot-timer-section {
  background: 
    linear-gradient(180deg, rgba(25, 28, 35, 0.9) 0%, rgba(15, 18, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 56px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

/* Glass reflection */
.jackpot-display .jackpot-timer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.jackpot-display .jackpot-timer-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  pointer-events: none;
}

.jackpot-display .jackpot-timer-section:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 215, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.jackpot-display .jackpot-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.jackpot-display .jackpot-timer-value {
  font-family: 'Orbitron', monospace;
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  min-width: 72px;
  text-align: center;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.jackpot-display .jackpot-timer-sep {
  font-family: 'Orbitron', monospace;
  font-size: 48px;
  font-weight: 800;
  color: rgba(255, 215, 0, 0.8);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  animation: colon-blink-vip 1s steps(1) infinite;
}

@keyframes colon-blink-vip {
  0%, 49% { opacity: 1; color: rgba(255, 215, 0, 0.8); }
  50%, 100% { opacity: 0.3; color: rgba(255, 215, 0, 0.4); }
}

.jackpot-display .jackpot-timer-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 5px;
  position: relative;
  z-index: 1;
}

/* ============================================
   STATS ROW - VIP Style
   ============================================ */
.jackpot-display .jackpot-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 28px;
  position: relative;
  z-index: 5;
}

.jackpot-display .jackpot-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: default;
}

.jackpot-display .jackpot-stat:hover {
  background: rgba(255, 215, 0, 0.05);
  border-color: rgba(255, 215, 0, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.jackpot-display .jackpot-stat-icon {
  display: flex;
  color: rgba(255, 215, 0, 0.5);
  transition: all 0.3s ease;
}

.jackpot-display .jackpot-stat:hover .jackpot-stat-icon {
  color: #ffd700;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.jackpot-display .jackpot-stat-icon svg {
  width: 22px;
  height: 22px;
}

.jackpot-display .jackpot-stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.jackpot-display .jackpot-stat-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================
   STATUS - VIP Open for Betting Badge
   ============================================ */
.jackpot-display .jackpot-status {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #3fb950;
  text-transform: uppercase;
  letter-spacing: 4px;
  position: relative;
  z-index: 5;
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(63, 185, 80, 0.15) 0%, rgba(63, 185, 80, 0.05) 100%);
  border: 1px solid rgba(63, 185, 80, 0.4);
  border-radius: 30px;
  display: inline-block;
  box-shadow: 
    0 0 30px rgba(63, 185, 80, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: status-glow-vip 2.5s ease-in-out infinite;
}

@keyframes status-glow-vip {
  0%, 100% { 
    box-shadow: 0 0 30px rgba(63, 185, 80, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(63, 185, 80, 0.4);
  }
  50% { 
    box-shadow: 0 0 50px rgba(63, 185, 80, 0.4), 0 0 80px rgba(63, 185, 80, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(63, 185, 80, 0.6);
  }
}

/* ============================================
   URGENT STATE - Last 10 seconds! 🚨
   ============================================ */
.jackpot-display.urgent {
  border-color: rgba(248, 81, 73, 0.6) !important;
  animation: urgent-shake 0.3s ease-in-out infinite, urgent-glow 0.5s ease-in-out infinite !important;
}

@keyframes urgent-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

@keyframes urgent-glow {
  0%, 100% { 
    box-shadow: 0 0 40px rgba(248, 81, 73, 0.3), inset 0 0 60px rgba(248, 81, 73, 0.05);
  }
  50% { 
    box-shadow: 0 0 80px rgba(248, 81, 73, 0.5), inset 0 0 100px rgba(248, 81, 73, 0.1);
  }
}

.jackpot-display.urgent .jackpot-timer-value {
  color: #f85149 !important;
  animation: urgent-number-flash 0.3s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(248, 81, 73, 0.8);
}

@keyframes urgent-number-flash {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.jackpot-display.urgent .jackpot-timer-section {
  border-color: rgba(248, 81, 73, 0.5) !important;
  background: linear-gradient(180deg, 
    rgba(248, 81, 73, 0.15) 0%, 
    rgba(20, 12, 12, 0.98) 100%) !important;
  box-shadow: 0 0 40px rgba(248, 81, 73, 0.2);
}

.jackpot-display.urgent .jackpot-timer-label {
  color: #f85149 !important;
  animation: urgent-text-blink 0.5s ease-in-out infinite;
}

@keyframes urgent-text-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.jackpot-display.urgent .jackpot-status {
  color: #f85149 !important;
  background: rgba(248, 81, 73, 0.15) !important;
  border-color: rgba(248, 81, 73, 0.5) !important;
  animation: urgent-status-pulse 0.3s ease-in-out infinite;
}

@keyframes urgent-status-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ============================================
   WARNING STATE - Last minute ⚠️
   ============================================ */
.jackpot-display.warning .jackpot-timer-value {
  color: #ffd700;
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.jackpot-display.warning .jackpot-timer-section {
  border-color: rgba(240, 180, 41, 0.4);
  box-shadow: 0 0 30px rgba(240, 180, 41, 0.15);
}

.jackpot-display.warning .jackpot-timer-label {
  color: #ffd700;
}

.jackpot-display.warning .jackpot-status {
  color: #ffd700;
  background: rgba(240, 180, 41, 0.1);
  border-color: rgba(240, 180, 41, 0.4);
}

/* ============================================
   WINNER MODE - CELEBRATION! 🎉🏆🎊
   ============================================ */
.jackpot-display.winner-mode {
  border-color: rgba(255, 215, 0, 0.7) !important;
  padding: 60px 56px;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(168, 113, 247, 0.1) 0%, transparent 50%),
    linear-gradient(165deg, 
      rgba(40, 35, 20, 1) 0%, 
      rgba(20, 18, 12, 1) 50%,
      rgba(15, 12, 8, 1) 100%) !important;
  animation: winner-celebration 2s ease-in-out infinite !important;
}

@keyframes winner-celebration {
  0%, 100% { 
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.3), 0 0 120px rgba(255, 215, 0, 0.1);
  }
  50% { 
    box-shadow: 0 0 100px rgba(255, 215, 0, 0.5), 0 0 200px rgba(255, 215, 0, 0.2);
  }
}

.jackpot-display .jackpot-glow {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, 
    rgba(255, 215, 0, 0.35) 0%, 
    rgba(255, 215, 0, 0.15) 30%,
    transparent 70%);
  pointer-events: none;
  animation: winner-glow-pulse 1.5s ease-in-out infinite;
}

@keyframes winner-glow-pulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.4); }
}

.jackpot-display .jackpot-winner-content {
  position: relative;
  z-index: 10;
}

.jackpot-display .jackpot-crown {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.jackpot-display .jackpot-crown svg {
  width: 80px;
  height: 80px;
  color: #ffd700;
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
  /* Simplified animation for performance */
  animation: crown-simple 1s ease-in-out infinite;
}

@keyframes crown-simple {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.jackpot-display .jackpot-winner-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.jackpot-display .jackpot-winner-name {
  font-family: 'Sora', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.jackpot-display .jackpot-winner-prize {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 20px 40px;
  background: linear-gradient(135deg, rgba(63, 185, 80, 0.2) 0%, rgba(63, 185, 80, 0.1) 100%);
  border: 1px solid rgba(63, 185, 80, 0.4);
  border-radius: 16px;
  display: inline-flex;
}

.jackpot-display.winner-mode .jackpot-prize-amount {
  font-size: 52px;
  background: linear-gradient(135deg, #3fb950 0%, #7ee787 50%, #3fb950 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.jackpot-display .jackpot-prize-coins {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: rgba(63, 185, 80, 0.8);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.jackpot-display .jackpot-winner-actions {
  margin-top: 24px;
}

.jackpot-display .jackpot-continue-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 12px;
  color: #ffd700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.jackpot-display .jackpot-continue-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0.2) 100%);
  border-color: rgba(255, 215, 0, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.jackpot-display .jackpot-next-round {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

.jackpot-display .jackpot-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* ============================================
   DRAWING MODE - Suspense! 🎰
   ============================================ */
.jackpot-display.drawing-mode {
  border-color: rgba(168, 113, 247, 0.6) !important;
  padding: 60px 48px;
  animation: drawing-pulse 1s ease-in-out infinite !important;
}

@keyframes drawing-pulse {
  0%, 100% { 
    box-shadow: 0 0 40px rgba(168, 113, 247, 0.2);
  }
  50% { 
    box-shadow: 0 0 80px rgba(168, 113, 247, 0.4);
  }
}

.jackpot-display.drawing-mode .drawing-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(168, 113, 247, 0.2);
  border-top-color: #a371f7;
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.8s linear infinite;
}

.jackpot-display.drawing-mode .drawing-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #a371f7;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 24px;
  animation: drawing-text-glow 1s ease-in-out infinite;
}

@keyframes drawing-text-glow {
  0%, 100% { text-shadow: 0 0 10px rgba(168, 113, 247, 0.5); }
  50% { text-shadow: 0 0 30px rgba(168, 113, 247, 0.8); }
}

.jackpot-display.drawing-mode .jackpot-prize-hero {
  margin-top: 16px;
}

.jackpot-display.drawing-mode .jackpot-prize-amount {
  font-size: 48px;
  animation: drawing-number-pulse 0.5s ease-in-out infinite;
}

@keyframes drawing-number-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ============================================
   HISTORY PANEL
   ============================================ */
.history-panel .history-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--pj-text-muted);
}

.history-list {
  max-height: 280px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--pj-border);
  transition: background 0.2s;
}

.history-item:last-child {
  border-bottom: none;
}

.history-item:hover {
  background: var(--pj-bg-elevated);
}

.history-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.history-info {
  flex: 1;
  min-width: 0;
}

.history-winner {
  font-size: 14px;
  font-weight: 600;
  color: var(--pj-text);
}

.history-time {
  font-size: 12px;
  color: var(--pj-text-muted);
}

.history-prize {
  text-align: right;
}

.history-prize .prize-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--pj-gold);
}

.history-prize .prize-label {
  font-size: 11px;
  color: var(--pj-text-muted);
  display: block;
}

/* ============================================
   BET MESSAGES
   ============================================ */
.bet-error {
  padding: 10px 14px;
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.2);
  border-radius: var(--pj-radius-sm);
  font-size: 13px;
  color: var(--pj-red);
  margin-bottom: 12px;
}

.bet-success {
  padding: 10px 14px;
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.2);
  border-radius: var(--pj-radius-sm);
  font-size: 13px;
  color: var(--pj-green);
  margin-bottom: 12px;
}

/* ============================================
   LOADING STATE
   ============================================ */
.premium-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
}

.premium-loading .loading-spinner {
  width: 48px;
  height: 48px;
  color: var(--pj-gold);
}

.premium-loading .loading-spinner svg {
  width: 100%;
  height: 100%;
  animation: spin 1s linear infinite;
}

.premium-loading span {
  font-size: 14px;
  color: var(--pj-text-muted);
}

/* ============================================
   CHAT CONTAINER
   ============================================ */
.premium-chat-container {
  flex: 1;
  min-height: 300px;
  max-height: 400px;
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  overflow: hidden;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .premium-app {
    padding-top: 60px;
  }
  
  .premium-layout {
    grid-template-columns: 280px 1fr;
  }
  
  .premium-sidebar.right {
    display: none;
  }
  
  .premium-sidebar.left {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .premium-app {
    padding-top: 56px;
  }
  
  .premium-main {
    padding: 16px;
  }
  
  .premium-layout {
    grid-template-columns: 1fr;
  }
  
  .premium-sidebar.left {
    order: 2;
    position: static;
  }
  
  .premium-center {
    order: 1;
  }
  
  .countdown-display .countdown-value {
    font-size: 48px;
  }
  
  .countdown-display .countdown-separator {
    font-size: 40px;
  }
  
  .prize-pool-display .prize-pool-value {
    font-size: 28px;
  }
  
  .bet-panel {
    padding: 16px;
  }
  
  .bet-presets {
    flex-wrap: wrap;
  }
  
  .bet-preset {
    flex: 0 0 calc(50% - 4px);
  }
}

/* ============================================
   MODALS - IMPROVED UX
   ============================================ */
.rules-overlay,
.daily-reward-overlay,
.celebration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rules-modal,
.daily-reward-modal {
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.rules-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--pj-bg-elevated);
  border: 1px solid var(--pj-border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pj-text-muted);
  transition: all 0.2s;
  z-index: 1;
}

.rules-close:hover {
  background: var(--pj-border-hover);
  color: var(--pj-text);
}

.rules-close svg {
  width: 18px;
  height: 18px;
}

.rules-header {
  position: relative;
  padding: 32px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--pj-border);
}

.rules-icon {
  width: 48px;
  height: 48px;
  color: var(--pj-gold);
  margin: 0 auto 16px;
}

.rules-icon svg {
  width: 100%;
  height: 100%;
}

.rules-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--pj-text);
  margin-bottom: 6px;
}

.rules-header p {
  font-size: 14px;
  color: var(--pj-text-muted);
}

.rules-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 20px;
  background: var(--pj-bg);
  border-bottom: 1px solid var(--pj-border);
}

.rules-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pj-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.rules-tab:hover {
  background: var(--pj-bg-elevated);
  color: var(--pj-text-secondary);
}

.rules-tab.active {
  background: var(--pj-bg-card);
  color: var(--pj-gold);
  border: 1px solid var(--pj-border);
}

.rules-tab svg {
  width: 14px;
  height: 14px;
}

.rules-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.rules-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--pj-text);
  margin-bottom: 12px;
}

.rules-section p {
  font-size: 14px;
  color: var(--pj-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.rules-section ul,
.rules-section ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.rules-section li {
  font-size: 14px;
  color: var(--pj-text-secondary);
  line-height: 1.8;
}

.rules-section li strong {
  color: var(--pj-text);
}

.rules-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--pj-border);
  background: var(--pj-bg);
}

.rules-close-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--pj-gold), #d4a00a);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: all 0.2s;
}

.rules-close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240, 180, 41, 0.3);
}

/* Winner Celebration Modal */
.celebration-overlay {
  background: rgba(0, 0, 0, 0.9);
}

.celebration-modal {
  position: relative;
  text-align: center;
  padding: 48px 40px;
  max-width: 400px;
  animation: celebrationPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes celebrationPop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.celebration-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.celebration-crown {
  width: 64px;
  height: 64px;
  color: var(--pj-gold);
  margin: 0 auto 20px;
}

.celebration-crown svg {
  width: 100%;
  height: 100%;
}

.celebration-title {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--pj-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.celebration-name {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--pj-text);
  margin-bottom: 24px;
}

.celebration-prize {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 40px;
  background: var(--pj-green-dim);
  border: 1px solid rgba(63, 185, 80, 0.3);
  border-radius: 12px;
  margin-bottom: 24px;
}

.celebration-prize .prize-value {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--pj-green);
}

.celebration-prize .prize-label {
  font-size: 14px;
  color: var(--pj-text-secondary);
}

.celebration-close {
  padding: 14px 32px;
  background: var(--pj-bg-elevated);
  border: 1px solid var(--pj-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pj-text);
  cursor: pointer;
  transition: all 0.2s;
}

.celebration-close:hover {
  background: var(--pj-border-hover);
}

/* Daily Reward Modal */
.daily-reward-modal {
  max-width: 400px;
}

.daily-header {
  padding: 32px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--pj-border);
  position: relative;
}

.daily-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--pj-bg-elevated);
  border: 1px solid var(--pj-border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pj-text-muted);
  transition: all 0.2s;
}

.daily-close:hover {
  background: var(--pj-border-hover);
  color: var(--pj-text);
}

.daily-close svg {
  width: 18px;
  height: 18px;
}

.daily-icon {
  width: 56px;
  height: 56px;
  color: var(--pj-gold);
  margin: 0 auto 16px;
}

.daily-icon svg {
  width: 100%;
  height: 100%;
}

.daily-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--pj-text);
  margin-bottom: 6px;
}

.daily-header p {
  font-size: 14px;
  color: var(--pj-text-muted);
}

.daily-content {
  padding: 24px;
}

.daily-streak {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: var(--pj-bg-elevated);
  border-radius: 12px;
  margin-bottom: 20px;
}

.daily-streak-value {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--pj-gold);
}

.daily-streak-label {
  font-size: 13px;
  color: var(--pj-text-muted);
}

.daily-reward-amount {
  text-align: center;
  padding: 24px;
  background: var(--pj-green-dim);
  border: 1px solid rgba(63, 185, 80, 0.2);
  border-radius: 12px;
  margin-bottom: 20px;
}

.daily-reward-coins {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--pj-green);
}

.daily-reward-label {
  font-size: 13px;
  color: var(--pj-text-muted);
  margin-top: 4px;
}

.daily-claim-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--pj-green), #2ea043);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.daily-claim-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(63, 185, 80, 0.3);
}

.daily-claim-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.daily-claim-btn svg {
  width: 18px;
  height: 18px;
}

.daily-timer {
  text-align: center;
  padding: 16px;
  background: var(--pj-bg-elevated);
  border-radius: 12px;
}

.daily-timer-label {
  font-size: 12px;
  color: var(--pj-text-muted);
  margin-bottom: 8px;
}

.daily-timer-value {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--pj-text);
}

/* ============================================
   DAILY MODAL V2 (Actual implementation)
   ============================================ */
.daily-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.daily-modal-v2 {
  position: relative;
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  overflow: hidden;
  animation: slideUp 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.daily-modal-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.daily-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.daily-bg-orb.orb-1 {
  width: 200px;
  height: 200px;
  top: -50px;
  right: -50px;
  background: rgba(168, 85, 247, 0.15);
}

.daily-bg-orb.orb-2 {
  width: 150px;
  height: 150px;
  bottom: -30px;
  left: -30px;
  background: rgba(59, 130, 246, 0.1);
}

.daily-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--pj-bg-elevated);
  border: 1px solid var(--pj-border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pj-text-muted);
  transition: all 0.2s;
  z-index: 10;
}

.daily-close-btn:hover {
  background: var(--pj-border-hover);
  color: var(--pj-text);
}

.daily-close-btn svg {
  width: 20px;
  height: 20px;
}

.daily-modal-content {
  position: relative;
  padding: 32px 24px;
  max-height: 80vh;
  overflow-y: auto;
}

.daily-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 24px;
  color: var(--pj-text-muted);
}

.daily-spinner {
  width: 48px;
  height: 48px;
  color: var(--pj-gold);
}

.daily-spinner svg {
  width: 100%;
  height: 100%;
  animation: spin 1s linear infinite;
}

.daily-hero {
  text-align: center;
  margin-bottom: 24px;
}

.daily-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.daily-hero-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.daily-hero-streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--pj-gold-dim);
  border-radius: 20px;
  margin-bottom: 12px;
}

.streak-flame-icon {
  width: 16px;
  height: 16px;
  color: var(--pj-gold);
}

.streak-flame-icon svg {
  width: 100%;
  height: 100%;
}

.streak-count {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--pj-gold);
}

.streak-text {
  font-size: 12px;
  color: var(--pj-text-muted);
}

.daily-hero-title {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--pj-text);
  margin-bottom: 6px;
}

.daily-hero-subtitle {
  font-size: 14px;
  color: var(--pj-text-muted);
}

.daily-reward-box {
  position: relative;
  padding: 20px;
  background: var(--pj-bg-elevated);
  border: 1px solid var(--pj-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.daily-reward-box.claimed {
  opacity: 0.7;
}

.reward-box-badge {
  position: absolute;
  top: -8px;
  left: 16px;
  padding: 4px 10px;
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--pj-text-muted);
}

.reward-box-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reward-box-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.reward-box-info {
  flex: 1;
}

.reward-box-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--pj-text);
  margin-bottom: 4px;
}

.reward-box-desc {
  font-size: 13px;
  color: var(--pj-text-muted);
}

.reward-box-check {
  width: 28px;
  height: 28px;
  background: var(--pj-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reward-box-check svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.daily-timeline {
  margin-bottom: 20px;
}

.timeline-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pj-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.timeline-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.timeline-day {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--pj-bg-elevated);
  border: 1px solid var(--pj-border);
  border-radius: 12px;
  min-width: 70px;
}

.timeline-day.current {
  border-color: var(--pj-gold);
  background: var(--pj-gold-dim);
}

.timeline-day.past {
  opacity: 0.5;
}

.timeline-day-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--pj-text-muted);
}

.timeline-day-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-day-icon svg {
  width: 18px;
  height: 18px;
}

.timeline-check {
  width: 20px;
  height: 20px;
  color: var(--pj-green);
}

.timeline-check svg {
  width: 100%;
  height: 100%;
}

.daily-bonuses-section {
  margin-bottom: 20px;
}

.bonuses-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pj-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.bonuses-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.power-up-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--pj-bg-elevated);
  border: 1px solid var(--pj-border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.power-up-chip svg {
  width: 14px;
  height: 14px;
}

.power-up-chip.xp {
  color: var(--pj-gold);
}

.power-up-chip.cf {
  color: #3b82f6;
}

.power-up-chip.bd {
  color: #f87171;
}

.power-up-chip.jp {
  color: var(--pj-purple);
}

.daily-action {
  text-align: center;
}

.daily-claim-button {
  width: 100%;
  padding: 16px;
  background: var(--btn-gradient, linear-gradient(135deg, var(--pj-green), #2ea043));
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.daily-claim-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(63, 185, 80, 0.3);
}

.daily-claim-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.daily-claim-button svg {
  width: 20px;
  height: 20px;
}

.daily-claim-button.loading {
  opacity: 0.8;
}

.btn-spinner {
  animation: spin 1s linear infinite;
}

.daily-claimed-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--pj-bg-elevated);
  border: 1px solid var(--pj-border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--pj-text-muted);
}

.daily-claimed-notice svg {
  width: 18px;
  height: 18px;
  color: var(--pj-gold);
}

.daily-claimed-notice strong {
  color: var(--pj-text);
}

.daily-error {
  margin-top: 12px;
  padding: 12px;
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.2);
  border-radius: 8px;
  font-size: 13px;
  color: var(--pj-red);
}

.daily-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 100;
}

.daily-login-prompt {
  text-align: center;
  padding: 40px 24px;
}

.login-prompt-icon {
  width: 48px;
  height: 48px;
  color: var(--pj-text-muted);
  margin: 0 auto 16px;
}

.login-prompt-icon svg {
  width: 100%;
  height: 100%;
}

.daily-login-prompt h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--pj-text);
  margin-bottom: 8px;
}

.daily-login-prompt p {
  font-size: 14px;
  color: var(--pj-text-muted);
  margin-bottom: 20px;
}

.daily-login-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--pj-gold), #d4a00a);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: all 0.2s;
}

.daily-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240, 180, 41, 0.3);
}
