* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: rgba(10, 13, 22, 0.55);
  --bg-secondary: rgba(18, 23, 40, 0.60);
  --bg-tertiary: rgba(28, 33, 52, 0.65);
  --bg-card: rgba(22, 27, 45, 0.60);
  
  --color-red: #dc2626;
  --color-red-dark: #991b1b;
  --color-green: #16a34a;
  --color-green-dark: #15803d;
  --color-black: #1f2937;
  --color-black-dark: #111827;
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  
  --border-color: #2d3748;
  --border-radius: 12px;
  
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  min-height: 100vh;
}

/* Header */
.header {
  background: var(--bg-secondary);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  box-shadow: var(--shadow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -1px;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.btn-logout {
  background: var(--color-red);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
}

/* Player Panel */
.player-panel {
  position: relative;
}

.player-panel-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.player-panel-trigger:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
}

.panel-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.player-panel.active .panel-arrow {
  transform: rotate(180deg);
}

.player-panel-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 280px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.player-panel.active .player-panel-dropdown {
  display: block;
}

.panel-section {
  margin-bottom: 1rem;
}

.panel-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.panel-referral-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border-radius: 4px;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
}

.copy-btn {
  background: var(--accent);
  border: none;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  transform: scale(1.1);
}

.panel-referral-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow: hidden;
}

.panel-referral-link #referralLinkText {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-earnings {
  font-size: 1.3rem;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.claim-btn {
  width: 100%;
  padding: 0.6rem;
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  color: var(--bg-primary);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.claim-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.claim-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #666;
}

.cooldown-info {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #ff4444;
  text-align: center;
}

.set-referrer-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.set-referrer-input input {
  flex: 1;
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  font-size: 0.9rem;
}

.set-referrer-input input:focus {
  outline: none;
  border-color: var(--accent);
}

.set-referrer-btn {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.set-referrer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.referred-by-display {
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-align: center;
}

.referred-by-username {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
}

.panel-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1rem 0;
}

.btn-logout-panel {
  width: 100%;
  padding: 0.6rem;
  background: var(--color-red);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout-panel:hover {
  background: var(--color-red-dark);
}

.btn-referral-stats {
  width: 100%;
  padding: 0.6rem;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.btn-referral-stats:hover {
  background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.auth-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-login,
.btn-register {
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-login {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent);
}

.btn-login:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

.btn-register {
  background: var(--accent);
  color: white;
}

.btn-register:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Main Content */
.main-content {
  display: grid;
  grid-template-columns: 300px 1fr 350px;
  gap: 1.5rem;
  padding: 1.5rem;
  min-height: calc(100vh - 80px);
}

/* Sidebars */
.sidebar {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.sidebar.left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* User Card */
.user-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
}

.avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #fbbf24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

.avatar-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  overflow: hidden;
}

/* Default avatar backgrounds (1-10) */
.avatar-icon.avatar-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.avatar-icon.avatar-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.avatar-icon.avatar-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.avatar-icon.avatar-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.avatar-icon.avatar-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.avatar-icon.avatar-6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.avatar-icon.avatar-7 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.avatar-icon.avatar-8 { background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%); }
.avatar-icon.avatar-9 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.avatar-icon.avatar-10 { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%); }

/* Custom avatar (image URL) */
.avatar-icon.avatar-custom {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Chat avatar styles */
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-right: 0.5rem;
  flex-shrink: 0;
  overflow: hidden;
}

.chat-avatar.avatar-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.chat-avatar.avatar-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.chat-avatar.avatar-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.chat-avatar.avatar-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.chat-avatar.avatar-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.chat-avatar.avatar-6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.chat-avatar.avatar-7 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.chat-avatar.avatar-8 { background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%); }
.chat-avatar.avatar-9 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.chat-avatar.avatar-10 { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%); }

.chat-avatar.avatar-custom {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.user-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fbbf24;
}

.coin-icon {
  font-size: 1.5rem;
}

/* Bet Controls */
.bet-controls {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.bet-controls label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.bet-controls input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

.bet-controls input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.quick-bets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.quick-bet {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-bet:hover {
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-2px);
}

/* Stats Card */
.stats-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.stats-card h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.stat-row:last-child {
  border-bottom: none;
}

/* Stats styling - No glow */
#totalDeposited {
  color: #ff0040;
  font-weight: 600;
}

#totalWithdrawn {
  color: #39ff14;
  font-weight: 600;
}

#highestWin {
  color: #ffd700;
  font-weight: 600;
}

/* Promo Code Button */
.promo-button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.promo-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.promo-button:active {
  transform: translateY(0);
}

/* Admin Panel */
/* Game Area */
.game-area {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timer-bar {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  border: 2px solid var(--border-color);
}

#timer {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
}

/* Roulette */
.roulette-container {
  position: relative;
  height: 150px;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.roulette-track {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.roulette-items {
  position: absolute;
  display: flex;
  align-items: center;
  height: 100%;
  transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-item {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  border-radius: 8px;
  margin: 0 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-family: 'Orbitron', sans-serif;
}

.roulette-item.red {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
}

.roulette-item.black {
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-black-dark) 100%);
}

.roulette-item.green {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
}

.roulette-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #fbbf24, transparent);
  z-index: 10;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}

/* Last 10 Numbers */
.last-numbers-section {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 2px solid var(--border-color);
  margin: 2rem 0;
}

.last-numbers-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-align: center;
}

.last-numbers-list {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.last-number-item {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.last-number-item::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.last-number-item:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.last-number-item:hover::before {
  opacity: 1;
}

.last-number-item.red {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
}

.last-number-item.black {
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-black-dark) 100%);
}

.last-number-item.green {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
  animation: greenPulse 2s ease-in-out infinite;
}

@keyframes greenPulse {
  0%, 100% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.6);
  }
}

.last-number-item.latest {
  animation: popIn 0.5s ease-out;
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Betting Area */
.betting-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bet-section {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.bet-section.red {
  border-color: var(--color-red);
}

.bet-section.green {
  border-color: var(--color-green);
}

.bet-section.black {
  border-color: var(--color-black);
}

.bet-section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bet-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: 'Orbitron', sans-serif;
}

.bet-section.red .bet-header h3 {
  color: var(--color-red);
}

.bet-section.green .bet-header h3 {
  color: var(--color-green);
}

.bet-section.black .bet-header h3 {
  color: var(--text-secondary);
}

.bet-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.bet-button {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.red-btn {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  color: white;
}

.green-btn {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
  color: white;
}

.black-btn {
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-black-dark) 100%);
  color: white;
}

.bet-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.bet-button:active {
  transform: translateY(0);
}

.bet-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Current Bets Display */
.current-bets {
  margin-top: 1rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 0.85rem;
}

.current-bets::-webkit-scrollbar {
  width: 6px;
}

.current-bets::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.current-bets::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.current-bets::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.bet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.bet-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.bet-item:last-child {
  margin-bottom: 0;
}

.bet-item.own-bet {
  background: rgba(59, 130, 246, 0.15);
  border-left: 3px solid var(--accent);
}

.bet-item.own-bet:hover {
  background: rgba(59, 130, 246, 0.2);
}

.bet-player {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bet-item.own-bet .bet-player {
  color: var(--accent);
}

.bet-amount {
  font-weight: 700;
  color: #fbbf24;
  font-family: 'Orbitron', sans-serif;
}

.current-bets-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 0.5rem;
  font-style: italic;
}

/* Game Info */
.game-info {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}

.info-item {
  display: flex;
  gap: 0.5rem;
}

.hash {
  font-family: monospace;
  color: var(--accent);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Chat */
.chat-container {
  height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1rem;
}

.chat-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

#messageCount {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1rem;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.chat-message {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: 8px;
  border-left: 3px solid var(--border-color);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  overflow: hidden;
  max-width: 100%;
}

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

.chat-message.admin {
  border-left-color: #dc2626;
  border-left-width: 4px;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.14) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.22), inset 0 0 20px rgba(220, 38, 38, 0.04);
}

.chat-message.vip {
  border-left-color: #d97706;
  border-left-width: 4px;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.13) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.22), inset 0 0 20px rgba(217, 119, 6, 0.04);
}

/* SuperVIP — turkusowy */
.chat-message.svip {
  border-left-color: #06b6d4;
  border-left-width: 4px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.18) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3), inset 0 0 20px rgba(6, 182, 212, 0.04);
}

@keyframes svipGlow {
  from {
    text-shadow:
      0 0 5px #06b6d4,
      0 0 10px #06b6d4,
      0 0 15px #0891b2;
  }
  to {
    text-shadow:
      0 0 10px #06b6d4,
      0 0 20px #06b6d4,
      0 0 30px #0891b2,
      0 0 40px #0e7490;
  }
}

.chat-message.svip .chat-username {
  color: #06b6d4;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  animation: svipGlow 1.5s ease-in-out infinite alternate;
}

.chat-message.svip .chat-text {
  color: #a5f3fc;
}

.chat-message.system {
  border-left-color: #42f50b;
  background: linear-gradient(90deg, rgba(66, 245, 11, 0.15) 0%, var(--bg-card) 100%);
  text-align: center;
}

.chat-username {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.chat-message.admin .chat-username {
  color: #f87171;
  font-weight: 700;
  font-size: 1rem;
  animation: adminGlow 2s ease-in-out infinite alternate;
}

.chat-message.admin .chat-text {
  color: #fecaca;
}

@keyframes adminGlow {
  from {
    text-shadow:
      0 0 4px rgba(248, 113, 113, 0.5),
      0 0 8px rgba(220, 38, 38, 0.3);
  }
  to {
    text-shadow:
      0 0 8px rgba(248, 113, 113, 0.7),
      0 0 16px rgba(220, 38, 38, 0.45),
      0 0 24px rgba(185, 28, 28, 0.25);
  }
}

@keyframes vipGlow {
  from {
    text-shadow:
      0 0 4px rgba(251, 191, 36, 0.5),
      0 0 8px rgba(217, 119, 6, 0.3);
  }
  to {
    text-shadow:
      0 0 8px rgba(251, 191, 36, 0.7),
      0 0 16px rgba(217, 119, 6, 0.45),
      0 0 24px rgba(180, 83, 9, 0.25);
  }
}

.chat-message.vip .chat-username {
  color: #fbbf24;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  animation: vipGlow 2s ease-in-out infinite alternate;
}

.chat-message.vip .chat-text {
  color: #fef3c7;
}

.chat-message.system .chat-username {
  color: #42f50b;
  font-weight: 700;
}

.chat-text {
  color: var(--text-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  overflow: hidden;
}

.chat-input {
  display: flex;
  gap: 0.5rem;
}

.chat-input input {
  flex: 1;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  transition: all 0.2s ease;
}

.chat-input input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-input button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-input button:hover {
  background: var(--accent-hover);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--bg-secondary);
  margin: 5% auto;
  padding: 2rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease;
}

/* Fix bottom padding for leaderboard modals */
#infoModal .modal-content {
  padding-bottom: 1rem;
}

.modal-content.wide {
  max-width: 800px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-10px); }
  40%       { transform: translateX(10px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}

.close {
  color: var(--text-secondary);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: var(--text-primary);
}

/* Auth Modal */
.auth-tabs {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-primary {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.error-message {
  color: var(--color-red);
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
}

.success-message {
  color: var(--color-green);
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
}

.message {
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
  padding: 0.8rem;
  border-radius: 6px;
}

.message.success {
  color: var(--color-green);
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid var(--color-green);
}

.message.error {
  color: var(--color-red);
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid var(--color-red);
}

/* Leaderboard */
.leaderboard {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.leaderboard::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
  gap: 1rem;
}

.leaderboard-item:hover {
  background: var(--bg-tertiary);
}

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

.leaderboard-rank {
  font-size: 1.2rem;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}

.leaderboard-username {
  flex: 1;
  font-weight: 500;
  color: #fff;
}

.leaderboard-amount {
  color: #d4af37; /* Gold color without glow */
  font-size: 0.9rem;
  white-space: nowrap;
  font-weight: 500;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

#leaderboardContent {
  max-height: 450px;
  overflow-y: auto;
  padding: 0;
  margin-bottom: 0;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#leaderboardContent::-webkit-scrollbar {
  display: none;
}

/* Referral Stats Modal */
.referral-share-section {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.share-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.share-link-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.referral-stats-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 20px;
}

.stat-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.stat-box .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.stat-box .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.referral-list {
  max-height: 400px;
  overflow-y: auto;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.referral-list::-webkit-scrollbar {
  display: none;
}

.referral-item {
  display: grid;
  grid-template-columns: 50px 1fr 120px 120px;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  transition: background 0.2s ease;
}

.referral-item:hover {
  background: rgba(0, 255, 136, 0.05);
}

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

.referral-rank {
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.referral-username {
  font-weight: 600;
  color: var(--text-primary);
}

.referral-wagered {
  color: #d4af37;
  font-weight: 500;
  text-align: right;
}

.referral-earned {
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}

.referral-list-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

/* Fairness */
.fairness-content {
  max-height: 70vh;
  overflow-y: auto;
}

.fairness-content h3 {
  margin: 1.5rem 0 0.75rem;
  color: var(--accent);
}

.fairness-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.fairness-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.verify-form {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.verify-form input {
  flex: 1;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
}

.verify-details {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
  border-bottom: none;
}

.game-history {
  max-height: 300px;
  overflow-y: auto;
}

.history-item {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-left: 4px solid;
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-item.red {
  border-left-color: var(--color-red);
}

.history-item.black {
  border-left-color: var(--color-black);
}

.history-item.green {
  border-left-color: var(--color-green);
}

.history-item:hover {
  background: var(--bg-tertiary);
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1400px) {
  .main-content {
    grid-template-columns: 280px 1fr 320px;
  }
}

@media (max-width: 1200px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .sidebar {
    display: none;
  }
}

/* Notification */
.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notification.success {
  border-color: var(--color-green);
}

.notification.error {
  border-color: var(--color-red);
}

/* ========================================== */
/* ADMIN PANEL STYLES */
/* Added for Admin Dashboard */
/* ========================================== */

/* Admin Modal */
.admin-modal-content {
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #2a2a3e;
}

.admin-tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.admin-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.admin-tab.active {
  color: #f1c40f;
  border-bottom-color: #f1c40f;
}

/* Tab Panels */
.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
  animation: fadeIn 0.3s;
}

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

/* Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.admin-stat-card {
  background: linear-gradient(135deg, #2a2a3e 0%, #1e1e2e 100%);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.admin-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.admin-stat-card.highlight {
  background: linear-gradient(135deg, #f1c40f15 0%, #f39c1215 100%);
  border-color: #f1c40f;
}

.stat-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.stat-value.green {
  color: #2ecc71;
}

.stat-value.red {
  color: #e74c3c;
}

/* Color Stats */
.admin-color-stats {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.color-stat {
  flex: 1;
  background: #2a2a3e;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.color-stat:hover {
  transform: scale(1.05);
}

.color-stat.red {
  border-color: #e74c3c;
}

.color-stat.black {
  border-color: #333;
}

.color-stat.green {
  border-color: #2ecc71;
}

.color-label {
  font-size: 16px;
  font-weight: 600;
}

.color-value {
  font-size: 24px;
  font-weight: 700;
}

/* Admin Table */
.admin-table-container {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #2a2a3e;
}

.admin-table thead {
  background: #1e1e2e;
}

.admin-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #f1c40f;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.admin-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table tbody tr {
  transition: background 0.3s;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Admin Buttons */
.admin-btn {
  padding: 6px 12px;
  background: #f1c40f;
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 5px;
  transition: all 0.3s;
  font-size: 12px;
}

.admin-btn:hover {
  background: #f39c12;
  transform: scale(1.05);
}

.delete-btn {
  background: #e74c3c;
  color: white;
}

.delete-btn:hover {
  background: #c0392b;
}

.admin-refresh-btn {
  width: 100%;
  padding: 15px;
  background: #f1c40f;
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s;
}

.admin-refresh-btn:hover {
  background: #f39c12;
  transform: scale(1.02);
}

/* Admin Action Buttons */
.admin-action-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Rajdhani', sans-serif;
}

.admin-action-btn.danger {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
}

.admin-action-btn.danger:hover {
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
  transform: scale(1.05);
}

.admin-action-btn.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.admin-action-btn.success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: scale(1.05);
}

/* Security-specific styles */
.stat-value.yellow {
  color: #fbbf24 !important;
}

details summary {
  list-style: none;
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  display: inline-block;
}

details[open] summary {
  margin-bottom: 8px;
}

/* Balance Tools */
.admin-balance-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.balance-tool-card {
  background: #2a2a3e;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-tool-card h4 {
  margin-top: 0;
  color: #f1c40f;
  margin-bottom: 15px;
}

.balance-tool-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.balance-tool-card input {
  padding: 10px;
  background: #1e1e2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: white;
  font-size: 14px;
}

.balance-tool-card input:focus {
  outline: none;
  border-color: #f1c40f;
}

.balance-tool-card button {
  padding: 12px;
  background: #f1c40f;
  color: #000;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.balance-tool-card button:hover {
  background: #f39c12;
  transform: scale(1.02);
}

/* Users List */
.users-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding: 15px;
  background: #2a2a3e;
  border-radius: 10px;
}

.user-item {
  background: #1e1e2e;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-item:hover {
  background: rgba(241, 196, 15, 0.1);
  border-color: #f1c40f;
  transform: scale(1.05);
}

.user-name {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #fff;
}

.user-balance {
  display: block;
  color: #f1c40f;
  font-size: 14px;
}

/* Admin Info */
.admin-info {
  background: rgba(241, 196, 15, 0.1);
  border-left: 4px solid #f1c40f;
  padding: 12px;
  border-radius: 5px;
  margin: 15px 0;
  font-size: 14px;
  color: #ccc;
}

/* Scrollbar Styling */
.admin-modal-content::-webkit-scrollbar,
.users-list::-webkit-scrollbar,
.admin-table-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.admin-modal-content::-webkit-scrollbar-track,
.users-list::-webkit-scrollbar-track,
.admin-table-container::-webkit-scrollbar-track {
  background: #1e1e2e;
}

.admin-modal-content::-webkit-scrollbar-thumb,
.users-list::-webkit-scrollbar-thumb,
.admin-table-container::-webkit-scrollbar-thumb {
  background: #f1c40f;
  border-radius: 4px;
}

.admin-modal-content::-webkit-scrollbar-thumb:hover,
.users-list::-webkit-scrollbar-thumb:hover,
.admin-table-container::-webkit-scrollbar-thumb:hover {
  background: #f39c12;
}

/* Responsive Design for Admin Panel */
@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-color-stats {
    flex-direction: column;
  }
  
  .admin-balance-tools {
    grid-template-columns: 1fr;
  }
  
  .admin-tabs {
    overflow-x: auto;
  }
  
  .admin-tab {
    white-space: nowrap;
  }
  
  .users-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .admin-modal-content {
    max-width: 95%;
    padding: 15px;
  }
  
  .admin-table {
    font-size: 12px;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .color-label {
    font-size: 14px;
  }
  
  .color-value {
    font-size: 20px;
  }
}

/* ========================================== */
/* END OF ADMIN PANEL STYLES */
/* ========================================== */

/* ========================================== */
/* PLAYER PROFILE MODAL STYLES                */
/* ========================================== */

.player-profile-modal {
  max-width: 520px;
  width: 95%;
  padding: 28px;
}

.player-profile-modal h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--color-text, #fff);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.15);
}

.profile-avatar.avatar-custom {
  background-size: cover;
  background-position: center;
  background-color: #2a2a3e;
}

/* Inherit numbered avatar colors from existing styles */
.profile-avatar.avatar-1  { background: #e74c3c; }
.profile-avatar.avatar-2  { background: #3498db; }
.profile-avatar.avatar-3  { background: #2ecc71; }
.profile-avatar.avatar-4  { background: #f39c12; }
.profile-avatar.avatar-5  { background: #9b59b6; }
.profile-avatar.avatar-6  { background: #1abc9c; }
.profile-avatar.avatar-7  { background: #e67e22; }
.profile-avatar.avatar-8  { background: #e91e63; }
.profile-avatar.avatar-9  { background: #00bcd4; }
.profile-avatar.avatar-10 { background: #ff5722; }

.profile-name h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}

.profile-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.profile-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.admin-badge {
  background: rgba(255, 180, 0, 0.2);
  color: #ffb400;
  border: 1px solid #ffb400;
}

.vip-badge {
  background: rgba(100, 100, 255, 0.2);
  color: #a78bfa;
  border: 1px solid #a78bfa;
}

.svip-badge {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid #06b6d4;
}

.profile-member-since {
  font-size: 12px;
  color: #888;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.profile-stat {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}

.pstat-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pstat-value {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.pstat-value.gold  { color: #ffd700; }
.pstat-value.green { color: #2ecc71; }
.pstat-value.red   { color: #e74c3c; }

.profile-transfer {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px;
  margin-top: 4px;
}

.profile-transfer-title {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 10px;
}

.profile-transfer-row {
  display: flex;
  gap: 10px;
}

.profile-transfer-row input {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 9px 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.profile-transfer-row input:focus {
  border-color: rgba(255,255,255,0.4);
}

.transfer-btn {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.transfer-btn:hover { opacity: 0.85; }

/* Clickable username hover in chat */
.chat-username:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* ========================================== */
/* END PLAYER PROFILE MODAL STYLES            */
/* ========================================== */

/* ── Clickable chat avatars / names ── */
.chat-message[data-username] .chat-avatar,
.chat-message[data-username] .chat-username {
  cursor: pointer;
}
.chat-message[data-username] .chat-avatar:hover,
.chat-message[data-username] .chat-username:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ── Commission rate badge ── */
/* Commission rate badge — same font/size as referral code */
.commission-badge {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: #2ecc71;
  margin-left: auto; /* push to the right */
  white-space: nowrap;
  cursor: default;
}

/* Edit code button */
.edit-code-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: #aaa;
  transition: all 0.2s;
  line-height: 1;
}
.edit-code-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Edit code form */
.edit-code-form {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}
.edit-code-form input {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 5px 8px;
  color: var(--accent);
  font-family: 'Orbitron', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.edit-code-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.save-code-btn {
  background: var(--accent);
  border: none;
  border-radius: 4px;
  padding: 5px 12px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.save-code-btn:hover { opacity: 0.85; }
.cancel-code-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 4px;
  padding: 5px 9px;
  color: #aaa;
  font-size: 0.85rem;
  cursor: pointer;
}
.cancel-code-btn:hover { color: #fff; }

/* ========================================== */

/* ================================================================ */
/* GALACTIC THEME v3 — SINGLE CLEAN BLOCK                           */
/* ================================================================ */

/* 1. Variables */
:root {
  --bg-primary:   rgba(8,  11, 20, 0.50);
  --bg-secondary: rgba(14, 18, 32, 0.52);
  --bg-tertiary:  rgba(22, 27, 46, 0.55);
  --bg-card:      rgba(17, 22, 38, 0.52);
}

/* 2. Body galaxy */
body {
  background:
    radial-gradient(ellipse at 15% 25%, rgba(110,35,200,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(0,70,210,0.15)  0%, transparent 50%),
    radial-gradient(ellipse at 55% 5%,  rgba(170,25,120,0.12) 0%, transparent 45%),
    linear-gradient(160deg, #060810 0%, #090d18 40%, #070b14 100%) !important;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 4%   8%,  rgba(255,255,255,.9) 0%,transparent 100%),
    radial-gradient(1px 1px at 9%  44%,  rgba(255,255,255,.7) 0%,transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 80%, rgba(200,180,255,.8) 0%,transparent 100%),
    radial-gradient(1px 1px at 20% 22%,  rgba(255,255,255,.8) 0%,transparent 100%),
    radial-gradient(1px 1px at 26% 60%,  rgba(160,210,255,.7) 0%,transparent 100%),
    radial-gradient(1.5px 1.5px at 32% 14%, rgba(255,255,255,.9) 0%,transparent 100%),
    radial-gradient(1px 1px at 38% 87%,  rgba(255,200,240,.6) 0%,transparent 100%),
    radial-gradient(1px 1px at 44% 36%,  rgba(255,255,255,.8) 0%,transparent 100%),
    radial-gradient(2px 2px at 49%  4%,  rgba(255,230,160,.6) 0%,transparent 100%),
    radial-gradient(1px 1px at 55% 68%,  rgba(255,255,255,.7) 0%,transparent 100%),
    radial-gradient(1px 1px at 60% 51%,  rgba(180,160,255,.8) 0%,transparent 100%),
    radial-gradient(1.5px 1.5px at 66% 20%, rgba(255,255,255,.9) 0%,transparent 100%),
    radial-gradient(1px 1px at 72% 77%,  rgba(160,220,255,.7) 0%,transparent 100%),
    radial-gradient(1px 1px at 77% 33%,  rgba(255,255,255,.8) 0%,transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 11%, rgba(255,255,255,.9) 0%,transparent 100%),
    radial-gradient(1px 1px at 93% 56%,  rgba(255,200,220,.7) 0%,transparent 100%),
    radial-gradient(1px 1px at 97% 28%,  rgba(255,255,255,.8) 0%,transparent 100%),
    radial-gradient(1px 1px at 6%  94%,  rgba(180,220,255,.7) 0%,transparent 100%),
    radial-gradient(2px 2px at 51% 49%,  rgba(255,240,200,.5) 0%,transparent 100%),
    radial-gradient(1px 1px at 29% 39%,  rgba(255,255,255,.6) 0%,transparent 100%),
    radial-gradient(1px 1px at 74% 59%,  rgba(220,200,255,.7) 0%,transparent 100%);
  animation: starsFloat1 35s ease-in-out infinite;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 7%  32%, rgba(255,255,255,.6) 0%,transparent 100%),
    radial-gradient(1px 1px at 18%  9%, rgba(255,255,255,.8) 0%,transparent 100%),
    radial-gradient(1px 1px at 35% 91%, rgba(255,200,240,.7) 0%,transparent 100%),
    radial-gradient(1px 1px at 41% 27%, rgba(255,255,255,.8) 0%,transparent 100%),
    radial-gradient(2px 2px at 47% 62%, rgba(255,230,160,.5) 0%,transparent 100%),
    radial-gradient(1px 1px at 53% 15%, rgba(255,255,255,.7) 0%,transparent 100%),
    radial-gradient(1px 1px at 58% 83%, rgba(180,160,255,.7) 0%,transparent 100%),
    radial-gradient(1.5px 1.5px at 64% 41%, rgba(255,255,255,.8) 0%,transparent 100%),
    radial-gradient(1px 1px at 75% 71%, rgba(255,255,255,.8) 0%,transparent 100%),
    radial-gradient(1.5px 1.5px at 86% 48%, rgba(255,255,255,.9) 0%,transparent 100%),
    radial-gradient(1px 1px at 91% 84%, rgba(255,200,220,.6) 0%,transparent 100%),
    radial-gradient(1px 1px at 62% 36%, rgba(255,255,255,.6) 0%,transparent 100%);
  animation: starsFloat2 50s ease-in-out infinite reverse;
  opacity: 0.8;
}
body > * { position: relative; z-index: 1; }

@keyframes starsFloat1 {
  0%,100% { transform: translate(0,0); }
  25%  { transform: translate(3px,-4px); }
  50%  { transform: translate(-2px,-7px); }
  75%  { transform: translate(-4px,-3px); }
}
@keyframes starsFloat2 {
  0%,100% { transform: translate(0,0); }
  33%  { transform: translate(-5px,4px); }
  66%  { transform: translate(4px,-5px); }
}

/* Nebula */
.galaxy-nebula {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.galaxy-nebula::before {
  content: '';
  position: absolute; width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(130,45,250,0.10) 0%, transparent 70%);
  top: -150px; left: -200px; border-radius: 50%;
  animation: nebulaPulse1 12s ease-in-out infinite;
}
.galaxy-nebula::after {
  content: '';
  position: absolute; width: 600px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,75,215,0.09) 0%, transparent 70%);
  bottom: -150px; right: -150px; border-radius: 50%;
  animation: nebulaPulse2 15s ease-in-out infinite;
}
@keyframes nebulaPulse1 {
  0%,100% { transform: scale(1) translate(0,0); opacity:.7; }
  50% { transform: scale(1.25) translate(40px,30px); opacity:1; }
}
@keyframes nebulaPulse2 {
  0%,100% { transform: scale(1) translate(0,0); opacity:.6; }
  50% { transform: scale(1.2) translate(-30px,-40px); opacity:.9; }
}
.shooting-star {
  position: fixed; top: 12%; left: -5%;
  width: 160px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), rgba(180,200,255,.6), transparent);
  border-radius: 2px; pointer-events: none; z-index: 0;
  animation: shootingStar 8s ease-in-out infinite;
}
.shooting-star.s2 { top:55%; animation-delay:3.5s; animation-duration:11s; width:100px; opacity:.6; }
.shooting-star.s3 { top:78%; animation-delay:6s;   animation-duration:14s; width:130px; opacity:.5; }
@keyframes shootingStar {
  0%   { transform: translateX(0) rotate(8deg); opacity:0; }
  5%   { opacity:1; }
  80%  { opacity:.6; }
  100% { transform: translateX(110vw) translateY(50px) rotate(8deg); opacity:0; }
}

/* 3. Header */
.header {
  background: linear-gradient(90deg, rgba(6,8,18,.78) 0%, rgba(16,10,38,.70) 50%, rgba(6,8,18,.78) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(110,70,240,.20) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.4) !important;
  position: relative;
}
.header::after {
  content: '';
  position: absolute; bottom: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,75,255,.5), rgba(55,125,255,.5), transparent);
  pointer-events: none;
}

/* 4. Sidebars */
.sidebar {
  background: rgba(9,11,22,.40) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(70,45,160,.15) !important;
  box-shadow: none !important;
}
.user-card, .bet-controls, .player-stats, .sidebar-section, .quick-bet-btns, .bet-input-wrapper {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
}

/* 5. Game area */
.game-area {
  background: rgba(7,10,20,.45) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(90,60,200,.20) !important;
}
.timer-bar {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(90,60,190,.22) !important;
}
.last-numbers-section {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
}
.bet-section {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  backdrop-filter: blur(6px) !important;
}
.bet-section.red   { border-top: 2px solid rgba(220,38,38,.55)  !important; }
.bet-section.green { border-top: 2px solid rgba(22,163,74,.55)  !important; }
.bet-section.black { border-top: 2px solid rgba(110,110,150,.40) !important; }
.roulette-container {
  border: 2px solid rgba(110,75,240,.45) !important;
  box-shadow: 0 0 22px rgba(90,45,195,.25), inset 0 0 30px rgba(0,0,50,.50) !important;
}

/* 6. Chat panel */
.sidebar.right {
  background: rgba(9,11,22,.40) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}
.chat-container, .chat-messages, .chat-header {
  background: transparent !important;
}
.chat-message {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
  border-radius: 0 !important;
  padding: .45rem 0 !important;
}
.chat-message.system-message {
  background: transparent !important;
}

/* ─────────────────────────────────────────────
   AVATARY — KLUCZOWA ZASADA:
   NIE używamy background shorthand z !important
   bo kasuje inline background-image z serwera.
   Używamy TYLKO background-color bez !important.
───────────────────────────────────────────── */
.chat-avatar {
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
/* gradient avatars (numbered) — background shorthand OK bo nie ma inline */
.chat-avatar.avatar-1  { background: linear-gradient(135deg,#667eea,#764ba2); }
.chat-avatar.avatar-2  { background: linear-gradient(135deg,#f093fb,#f5576c); }
.chat-avatar.avatar-3  { background: linear-gradient(135deg,#4facfe,#00f2fe); }
.chat-avatar.avatar-4  { background: linear-gradient(135deg,#43e97b,#38f9d7); }
.chat-avatar.avatar-5  { background: linear-gradient(135deg,#fa709a,#fee140); }
.chat-avatar.avatar-6  { background: linear-gradient(135deg,#30cfd0,#330867); }
.chat-avatar.avatar-7  { background: linear-gradient(135deg,#a8edea,#fed6e3); }
.chat-avatar.avatar-8  { background: linear-gradient(135deg,#ff9a56,#ff6a88); }
.chat-avatar.avatar-9  { background: linear-gradient(135deg,#ffecd2,#fcb69f); }
.chat-avatar.avatar-10 { background: linear-gradient(135deg,#ff0844,#ffb199); }
/* custom photo avatar — inline style ma background-image, nie nadpisujemy */
.chat-avatar.avatar-custom {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 7. Chat input */
.chat-input input {
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(100,70,220,.35) !important;
  color: var(--text-primary) !important;
}
.chat-input input::placeholder { color: rgba(255,255,255,.30) !important; }
.chat-input input:focus {
  border-color: rgba(130,90,255,.70) !important;
  outline: none !important;
}
.chat-input button {
  background: linear-gradient(135deg,#6d28d9,#3b82f6) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 0 12px rgba(100,60,220,.40) !important;
}
.chat-input button:hover {
  box-shadow: 0 0 22px rgba(100,60,220,.70) !important;
  transform: translateY(-1px) !important;
}
.chat-messages::-webkit-scrollbar-track { background: transparent !important; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(100,70,200,.35) !important; }

/* 8. Z-INDEX FIX — player panel dropdown nad chatem */
.player-panel { position: relative; z-index: 200 !important; }
.player-panel-dropdown {
  z-index: 201 !important;
  background: rgba(12,15,30,.92) !important;
  backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(100,70,220,.25) !important;
}

/* 9. Modals */
.modal-content {
  background: rgba(14,18,34,.88) !important;
  border: 1px solid rgba(90,60,200,.20) !important;
  backdrop-filter: blur(16px) !important;
}

/* ================================================================ */
/* RESPONSIVE                                                       */
/* ================================================================ */
@media (max-width: 1024px) {
  .main-content { grid-template-columns: 190px 1fr 210px !important; gap: .75rem !important; padding: .75rem !important; }
  .nav { gap: 1rem !important; }
  .nav-link { font-size: .95rem !important; }
}
@media (max-width: 768px) {
  .main-content {
    display: flex !important;
    flex-direction: column !important;
    gap: .75rem !important;
    padding: .75rem !important;
  }
  .sidebar.left  { order: 2; }
  .game-area     { order: 1; }
  .sidebar.right { order: 3; max-height: 420px !important; }
  .header { padding: .6rem 1rem !important; flex-wrap: wrap; gap: .5rem; }
  .nav { order: 3; width: 100%; overflow-x: auto; gap: 1rem !important; padding-bottom: 4px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-link { font-size: .85rem !important; white-space: nowrap; }
  .betting-area { grid-template-columns: 1fr !important; }
  .roulette-container { height: 110px !important; }
}
@media (max-width: 480px) {
  .logo-text { font-size: 1.1rem !important; }
  .logo-icon { width: 30px !important; height: 30px !important; }
  .game-area { padding: .75rem !important; }
  .roulette-container { height: 90px !important; }
  .roulette-item { width: 70px !important; height: 70px !important; font-size: 1.3rem !important; }
  .last-number { width: 36px !important; height: 36px !important; }
  .bet-section { padding: .75rem !important; }
  .chat-container { height: 300px !important; }
}
/* ================================================================ */

/* FIX: chat pod panelem gracza */
.sidebar.right {
  z-index: 1 !important;
}
.player-panel {
  position: relative;
  z-index: 9999 !important;
}
.player-panel-dropdown {
  z-index: 9999 !important;
}

/* FIX z-index: header musi być NAD chatem (chat jest niżej w DOM) */
.header {
  z-index: 9999 !important;
  position: relative !important;
}
.sidebar.right {
  z-index: 1 !important;
  position: relative !important;
}

/* MOBILE: chat zawsze na samym dole */
@media (max-width: 768px) {
  .sidebar.right {
    order: 999 !important;
    max-height: none !important;
  }
}
