/* Jackpot specific styles */

.jackpot-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jackpot-header {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 15px;
  border: 2px solid #ffd700;
}

.jackpot-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3em;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 
    0 0 10px #ffd700,
    0 0 20px #ffd700,
    0 0 30px #ff8c00,
    0 0 40px #ff8c00;
  margin: 0;
  animation: goldPulse 2s ease-in-out infinite;
}

@keyframes goldPulse {
  0%, 100% {
    text-shadow: 
      0 0 10px #ffd700,
      0 0 20px #ffd700,
      0 0 30px #ff8c00;
  }
  50% {
    text-shadow: 
      0 0 20px #ffd700,
      0 0 30px #ffd700,
      0 0 40px #ff8c00,
      0 0 50px #ff8c00;
  }
}

.jackpot-status {
  margin-top: 15px;
  font-size: 1.2em;
  color: #00ff88;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.jackpot-pot {
  background: linear-gradient(135deg, #1e1e2f 0%, #2a2a40 100%);
  border: 3px solid #ffd700;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.3),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
}

.pot-label {
  font-size: 1.2em;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.pot-amount {
  font-family: 'Orbitron', sans-serif;
  font-size: 4em;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 
    0 0 10px #ffd700,
    0 0 20px #ff8c00;
  animation: numberPulse 1s ease-in-out infinite;
}

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

.pot-timer {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 0, 0, 0.1);
  border: 2px solid #ff0000;
  border-radius: 10px;
  font-size: 1.5em;
  color: #ff4444;
  font-weight: 700;
  animation: timerBlink 1s ease-in-out infinite;
}

@keyframes timerBlink {
  0%, 100% {
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  }
  50% {
    border-color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
  }
}

/* Jackpot Animation Container */
.jackpot-animation-container {
  position: relative;
  height: 250px;
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid #333;
  margin: 20px 0;
}

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

.jackpot-roulette-items {
  display: flex;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  will-change: transform;
}

.jackpot-roulette-item {
  min-width: 200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 2px solid #333;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.jackpot-roulette-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 215, 0, 0.1) 50%, transparent 100%);
  opacity: 0;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.jackpot-item-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #ffd700;
  margin-bottom: 10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.jackpot-item-username {
  font-size: 1.1em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
  text-align: center;
}

.jackpot-item-percentage {
  font-size: 1.5em;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 10px #ffd700;
}

.jackpot-roulette-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, #ff0000 40%, #ff0000 60%, transparent 100%);
  z-index: 10;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
  pointer-events: none;
}

.jackpot-roulette-pointer::before {
  content: '▼';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2em;
  color: #ff0000;
  filter: drop-shadow(0 0 10px #ff0000);
}

.jackpot-roulette-pointer::after {
  content: '▲';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2em;
  color: #ff0000;
  filter: drop-shadow(0 0 10px #ff0000);
}

/* Jackpot Entries */
.jackpot-entries {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid #333;
}

.jackpot-entries h3 {
  color: #fff;
  font-size: 1.5em;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.entries-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.entries-list::-webkit-scrollbar {
  width: 8px;
}

.entries-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.entries-list::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 4px;
}

.no-entries {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 1.2em;
}

.entry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #2a2a40 0%, #1e1e2f 100%);
  padding: 15px;
  border-radius: 10px;
  border: 2px solid #333;
  transition: all 0.3s ease;
}

.entry-item:hover {
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  transform: translateX(5px);
}

.entry-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.entry-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #ffd700;
  background-size: cover;
  background-position: center;
}

.entry-info {
  display: flex;
  flex-direction: column;
}

.entry-username {
  font-size: 1.1em;
  font-weight: 700;
  color: #fff;
}

.entry-amount {
  font-size: 0.9em;
  color: #888;
}

.entry-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.entry-chance {
  font-size: 1.5em;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 10px #ffd700;
}

.entry-tickets {
  font-size: 0.9em;
  color: #888;
}

/* Jackpot Entry Controls */
.jackpot-entry-controls {
  border-radius: 15px;
  padding: 20px;
  border: 2px solid #333;
  margin-bottom: 20px;
}

.jackpot-entry-controls label {
  display: block;
  color: #fff;
  font-size: 0.9em;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.jackpot-entry-controls input[type="number"] {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 15px;
  font-family: 'Orbitron', sans-serif;
}

.jackpot-entry-controls input[type="number"]:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.join-jackpot-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  border: none;
  border-radius: 10px;
  color: #000;
  font-size: 1.2em;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  margin-top: 10px;
}

.join-jackpot-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.join-jackpot-btn:active:not(:disabled) {
  transform: translateY(0);
}

.join-jackpot-btn:disabled {
  background: linear-gradient(135deg, #444 0%, #333 100%);
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Winner Announcement */
.winner-announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.5s ease;
}

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

.winner-content {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  border: 3px solid #ffd700;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.winner-title {
  font-size: 3em;
  color: #ffd700;
  margin-bottom: 30px;
  text-shadow: 0 0 20px #ffd700;
  animation: goldPulse 2s ease-in-out infinite;
}

.winner-avatar-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid #ffd700;
  margin: 0 auto 20px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.winner-name {
  font-size: 2.5em;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 900;
}

.winner-amount {
  font-family: 'Orbitron', sans-serif;
  font-size: 4em;
  color: #ffd700;
  margin-bottom: 20px;
  text-shadow: 0 0 20px #ffd700;
  animation: numberPulse 1s ease-in-out infinite;
}

.winner-chance {
  font-size: 1.5em;
  color: #888;
  margin-bottom: 30px;
}

.winner-close-btn {
  padding: 15px 40px;
  background: #ffd700;
  border: none;
  border-radius: 10px;
  color: #000;
  font-size: 1.2em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.winner-close-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .jackpot-title {
    font-size: 2em;
  }
  
  .pot-amount {
    font-size: 3em;
  }
  
  .jackpot-roulette-item {
    min-width: 150px;
  }
  
  .jackpot-item-avatar {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  .jackpot-title {
    font-size: 1.5em;
  }
  
  .pot-amount {
    font-size: 2em;
  }
  
  .entry-item {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .entry-stats {
    align-items: center;
  }
}

/* Notification Animations */
@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

.error-notification,
.success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: slideInRight 0.3s ease;
}

.error-notification {
  background: #ff4444;
  color: white;
}

.success-notification {
  background: #00ff88;
  color: #000;
}

/* Auth Error Message */
.error-message {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid #ff4444;
  color: #ff4444;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  display: none;
  text-align: center;
  font-size: 0.9em;
}

.error-message:empty {
  display: none;
}

/* Chat Avatar Styles - Matching Roulette */
.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;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat-username {
  font-weight: 600;
  margin-bottom: 4px;
}

.chat-text {
  word-wrap: break-word;
  word-break: break-word;
}

/* Admin/VIP/System Chat Styling */
.chat-message.admin {
  border-left: 4px solid #dc2626;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.14) 0%, transparent 100%);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.22);
}

.chat-message.admin .chat-username {
  color: #f87171;
  animation: adminGlow 2s ease-in-out infinite alternate;
}

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

.chat-message.vip {
  border-left: 4px solid #d97706;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.13) 0%, transparent 100%);
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.22);
}

.chat-message.vip .chat-username {
  color: #fbbf24;
  animation: vipGlow 2s ease-in-out infinite alternate;
}

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

@keyframes adminGlow {
  from { text-shadow: 0 0 4px rgba(248,113,113,.5), 0 0 8px rgba(220,38,38,.3); }
  to   { text-shadow: 0 0 8px rgba(248,113,113,.7), 0 0 16px rgba(220,38,38,.45), 0 0 24px rgba(185,28,28,.25); }
}

@keyframes vipGlow {
  from { text-shadow: 0 0 4px rgba(251,191,36,.5), 0 0 8px rgba(217,119,6,.3); }
  to   { text-shadow: 0 0 8px rgba(251,191,36,.7), 0 0 16px rgba(217,119,6,.45), 0 0 24px rgba(180,83,9,.25); }
}

@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; }
}

/* SuperVIP - turquoise */
.chat-message.svip {
  border-left: 4px solid #06b6d4;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.18) 0%, transparent 100%);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
}

.chat-message.svip .chat-username {
  color: #06b6d4;
  animation: svipGlow 1.5s ease-in-out infinite alternate;
}

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

