.card-component {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
}

.card-component:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-component.selected {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.5);
}

/* OG Card Golden Shining Effect */
.card-component.og-card {
  position: relative;
  background: linear-gradient(135deg, #FFF9E6 0%, #FFFBF0 100%);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.2);
  animation: ogGlow 2s ease-in-out infinite;
}

.card-component.og-card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700, #FFA500);
  background-size: 400% 400%;
  border-radius: 12px;
  z-index: -1;
  animation: ogShine 3s linear infinite;
  opacity: 0.8;
}

.card-component.og-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: ogSweep 2s ease-in-out infinite;
  border-radius: 12px;
  pointer-events: none;
}

.card-component.og-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
  animation: ogGlow 1s ease-in-out infinite;
}

.card-component.og-card .card-header {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 30%, #FFD700 60%, #FFA500 100%);
  background-size: 200% 200%;
  animation: ogGradient 3s ease infinite;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.card-component.og-card .card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: ogSparkle 2s ease-in-out infinite;
}

@keyframes ogGlow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.2);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4);
  }
}

@keyframes ogShine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes ogSweep {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

@keyframes ogGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes ogSparkle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: rotate(180deg) scale(1.2);
    opacity: 0.6;
  }
}

/* Admin Card Rainbow Shining Effect */
.card-component.admin-card {
  position: relative;
  background: linear-gradient(135deg, #FFF0F5 0%, #F0F8FF 50%, #FFF0F5 100%);
  box-shadow: 0 4px 20px rgba(255, 0, 255, 0.3), 0 0 30px rgba(0, 255, 255, 0.2);
  animation: adminRainbowGlow 2s ease-in-out infinite;
}

.card-component.admin-card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, 
    #FF0000, #FF7F00, #FFFF00, #00FF00, 
    #0000FF, #4B0082, #9400D3, #FF0000);
  background-size: 400% 400%;
  border-radius: 12px;
  z-index: -1;
  animation: adminRainbowBorder 3s linear infinite;
  opacity: 0.9;
}

.card-component.admin-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.8), 
    transparent);
  animation: adminRainbowSweep 2s ease-in-out infinite;
  border-radius: 12px;
  pointer-events: none;
}

.card-component.admin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(255, 0, 255, 0.5), 
              0 0 40px rgba(0, 255, 255, 0.4),
              0 0 60px rgba(255, 255, 0, 0.3);
  animation: adminRainbowGlow 1s ease-in-out infinite;
}

.card-component.admin-card .card-header {
  background: linear-gradient(135deg, 
    #FF0000 0%, 
    #FF7F00 14%, 
    #FFFF00 28%, 
    #00FF00 42%, 
    #0000FF 57%, 
    #4B0082 71%, 
    #9400D3 85%, 
    #FF0000 100%);
  background-size: 200% 200%;
  animation: adminRainbowGradient 4s ease infinite;
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.6), 
              inset 0 0 25px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.card-component.admin-card .card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.4) 0%, 
    rgba(255, 0, 255, 0.2) 30%,
    rgba(0, 255, 255, 0.2) 60%,
    transparent 100%);
  animation: adminRainbowSparkle 3s ease-in-out infinite;
}

.card-component.admin-card .card-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.3) 75%,
    transparent 100%);
  background-size: 200% 200%;
  animation: adminRainbowShimmer 2s linear infinite;
  pointer-events: none;
}

@keyframes adminRainbowGlow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.3), 
                0 0 30px rgba(0, 255, 255, 0.2),
                0 0 20px rgba(255, 255, 0, 0.1);
  }
  33% {
    box-shadow: 0 4px 25px rgba(0, 255, 255, 0.4), 
                0 0 35px rgba(255, 0, 255, 0.3),
                0 0 25px rgba(0, 255, 0, 0.2);
  }
  66% {
    box-shadow: 0 4px 25px rgba(255, 255, 0, 0.4), 
                0 0 35px rgba(255, 0, 0, 0.3),
                0 0 25px rgba(255, 0, 255, 0.2);
  }
}

@keyframes adminRainbowBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes adminRainbowSweep {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

@keyframes adminRainbowGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes adminRainbowSparkle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: rotate(90deg) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: rotate(180deg) scale(1.2);
    opacity: 0.7;
  }
  75% {
    transform: rotate(270deg) scale(1.1);
    opacity: 0.6;
  }
}

@keyframes adminRainbowShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.card-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-weight: bold;
}

.card-header.special-header {
  color: white;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.5);
}

.card-emoji {
  font-size: 2rem;
}

.card-rarity {
  font-size: 0.75rem;
  opacity: 0.9;
}

.card-body {
  padding: 1rem;
}

.card-name {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #333;
  text-align: center;
}

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: #f0f0f0;
  border-radius: 6px;
  font-size: 0.85rem;
}

.card-position {
  font-weight: bold;
  color: #667eea;
}

.card-team {
  color: #666;
  font-size: 0.8rem;
}

.card-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem;
  background: #f5f5f5;
  border-radius: 6px;
}

.stat.zezty-stat {
  background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
  color: white;
  font-weight: bold;
}

.stat.overall {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: bold;
}

.stat-label {
  font-size: 0.85rem;
}

.stat-value {
  font-weight: bold;
  font-size: 1rem;
}

.battle-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.battle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
}

.battle-header h2 {
  margin: 0;
  font-size: 2rem;
}

.winstreak-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1.2rem;
}

.winstreak-label {
  font-weight: bold;
}

.winstreak-value {
  background: #FFD700;
  color: #333;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: bold;
  min-width: 2rem;
  text-align: center;
}

.battle-info-banner {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.battle-info-banner p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.battle-info-banner strong {
  font-weight: 600;
}

/* Card Selection Phase */
.battle-selection {
  margin-bottom: 2rem;
}

.battle-selection h3 {
  text-align: center;
  color: #333;
  margin-bottom: 0.5rem;
}

.selection-hint {
  text-align: center;
  color: #666;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  max-height: 500px;
  overflow-y: auto;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 12px;
}

.card-list-item {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 0.5rem;
}

.card-list-item:hover {
  transform: translateY(-5px);
  background: rgba(102, 126, 234, 0.1);
}

.card-list-item.selected {
  background: rgba(102, 126, 234, 0.2);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.5);
}

.no-cards-message {
  text-align: center;
  padding: 3rem;
  color: #666;
  background: #f5f5f5;
  border-radius: 12px;
  font-size: 1.1rem;
}

/* Ready Section */
.ready-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.selected-card-preview {
  text-align: center;
}

.selected-card-preview h4 {
  margin-bottom: 1rem;
  color: #333;
}

.ready-button {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ready-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.ready-button:active {
  transform: scale(0.98);
}

/* Scanning Animation */
.scanning-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
}

.scanning-animation {
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 500px;
}

.scan-line {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  animation: scan 1.5s ease-in-out infinite;
  margin-bottom: 2rem;
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.scanning-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 0.5rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.scanning-subtext {
  font-size: 1rem;
  color: #666;
  font-style: italic;
}

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

/* Battle Result Section */
.battle-result-section {
  margin-top: 2rem;
}

.battle-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 12px;
}

.battle-card-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.battle-card-side h3 {
  margin: 0;
  color: #333;
  font-size: 1.3rem;
}

.card-score {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.card-rarity-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
  padding: 0.4rem 0.8rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 6px;
  border-left: 3px solid #667eea;
}

.battle-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 250px;
}

.result-badge {
  padding: 1.5rem 2rem;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.result-badge.player {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  animation: winPulse 0.5s ease-in-out;
}

.result-badge.opponent {
  background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
  color: white;
}

.result-badge.draw {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
}

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

.winstreak-update {
  background: #FFD700;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.margin-info {
  color: #666;
  font-size: 1rem;
  font-weight: bold;
}

.new-battle-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  display: block;
  margin: 0 auto;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .battle-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .battle-comparison {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .battle-vs {
    order: -1;
    min-width: 100%;
  }

  .card-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .ready-section {
    padding: 1.5rem;
  }

  .ready-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .battle-info-banner {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}
.shop-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.coins-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border-radius: 12px;
  margin: 1rem 0 2rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.cooldown-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  border-radius: 12px;
  margin: 1rem 0 2rem;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

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

.cooldown-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cooldown-text strong {
  font-size: 1.3rem;
  font-family: 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
}

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

.shop-packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pack-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.pack-item:hover:not(.disabled) {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pack-item.disabled {
  opacity: 0.6;
}

.pack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pack-header h3 {
  margin: 0;
  color: #333;
}

.pack-price {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FF9800;
}

.pack-description {
  color: #666;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.purchase-button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.purchase-button:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.purchase-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.pack-opening {
  text-align: center;
  padding: 2rem;
}

.pack-opening h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.pack-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.close-pack-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.close-pack-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.restock-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 2rem;
}

.restock-info p {
  margin: 0.25rem 0;
}

.restock-info strong {
  font-size: 1.2rem;
}

.restock-note {
  font-size: 0.85rem;
  opacity: 0.9;
  font-style: italic;
}

.pack-stock {
  margin: 0.75rem 0;
  text-align: center;
}

.stock-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
}

.stock-badge.in-stock {
  background: #4CAF50;
  color: white;
}

.stock-badge.out-of-stock {
  background: #f44336;
  color: white;
}

.pack-item.out-of-stock {
  border: 2px solid #f44336;
  opacity: 0.7;
}

.pack-item.out-of-stock .pack-header h3 {
  color: #999;
}

.collection-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.collection-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-box {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-label {
  display: block;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
}

.mythic-stat {
  background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
  color: white;
}

.mythic-stat .stat-label,
.mythic-stat .stat-value {
  color: white;
}

.soccer-god-stat {
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  color: white;
}

.soccer-god-stat .stat-label,
.soccer-god-stat .stat-value {
  color: white;
}

.goat-stat {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #333;
}

.goat-stat .stat-label {
  color: #333;
}

.goat-stat .stat-value {
  color: #B8860B;
  font-size: 2.2rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.empty-collection {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 12px;
  color: #666;
}

.empty-collection p {
  font-size: 1.2rem;
}

.tournament-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tournament-info {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tournament-info p {
  margin: 1rem 0;
  color: #666;
  line-height: 1.6;
}

.start-tournament-button {
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.start-tournament-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6);
}

.tournament-round {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.round-info {
  text-align: center;
  margin-bottom: 2rem;
}

.round-info p {
  font-size: 1.1rem;
  color: #333;
}

.card-selection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  max-height: 500px;
  overflow-y: auto;
}

.play-round-button {
  display: block;
  margin: 2rem auto 0;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-round-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.round-results {
  margin-top: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.round-results h3 {
  margin: 0 0 1rem;
  color: #333;
}

.result-item {
  display: grid;
  grid-template-columns: auto 1fr 2fr;
  gap: 1rem;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  align-items: center;
}

.result-item.win {
  background: #e8f5e9;
  border-left: 4px solid #4CAF50;
}

.result-item.lose {
  background: #ffebee;
  border-left: 4px solid #f44336;
}

/* Qualification Phase Styles */
.qualification-results {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.qualification-results h3 {
  margin: 0 0 1rem;
  color: #333;
  text-align: center;
}

.your-rank {
  text-align: center;
  font-size: 1.3rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  font-weight: bold;
}

.qualified-players-list {
  margin: 2rem 0;
  max-height: 600px;
  overflow-y: auto;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.rankings-table thead {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.rankings-table th {
  padding: 1rem;
  text-align: left;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rankings-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s ease;
}

.rankings-table tbody tr:hover {
  background: #f5f5f5;
}

.rankings-table tbody tr.your-player {
  background: #e3f2fd;
  font-weight: bold;
}

.rankings-table tbody tr.your-player:hover {
  background: #bbdefb;
}

.rank-cell {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  min-width: 80px;
}

.player-name-cell {
  font-weight: 600;
  color: #333;
}

.you-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: #4CAF50;
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: normal;
}

.qualified-badge {
  color: #4CAF50;
  font-weight: bold;
  font-size: 0.9rem;
}

.not-qualified {
  color: #999;
  font-size: 0.9rem;
}

.qualification-actions {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 12px;
}

.qualification-message {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #333;
  font-weight: 500;
}

.start-bracket-button {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.start-bracket-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.your-qualification {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
}

@media (max-width: 768px) {
  .rankings-table {
    font-size: 0.85rem;
  }
  
  .rankings-table th,
  .rankings-table td {
    padding: 0.5rem;
  }
  
  .qualified-players-list {
    max-height: 400px;
  }
}

.code-area-container {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.code-description {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.code-input-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.code-input-wrapper {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.code-input {
  flex: 1;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
}

.code-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.redeem-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.redeem-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.code-error {
  background: #ffebee;
  color: #c62828;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
}

.code-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.code-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.code-success p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.available-codes {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.available-codes h3 {
  margin: 0 0 1.5rem;
  color: #333;
  text-align: center;
}

.codes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.code-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.code-name {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: #667eea;
  letter-spacing: 1px;
}

.code-reward {
  color: #4CAF50;
  font-weight: bold;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .code-input-wrapper {
    flex-direction: column;
  }
  
  .redeem-button {
    width: 100%;
  }
  
  .code-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.admin-events-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-events-container h2 {
  color: #333;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logout-button {
  padding: 0.5rem 1rem;
  border: 2px solid #667eea;
  border-radius: 8px;
  background: transparent;
  color: #667eea;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-button:hover {
  background: #667eea;
  color: white;
}

.admin-header-info {
  margin-bottom: 1rem;
}

.admin-user-info {
  color: #666;
  font-size: 0.9rem;
}

.no-events-message {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
}

.no-events-message p {
  font-size: 1.2rem;
  color: #666;
  margin: 0.5rem 0;
}

.events-hint {
  font-size: 1rem;
  color: #999;
  font-style: italic;
}

.admin-login-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  margin: 2rem auto;
}

.admin-login-section h3 {
  margin: 0 0 1rem;
  color: #333;
}

.admin-login-section input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.admin-login-section button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-login-section button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.admin-hint {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.announcements-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.announcements-section h3 {
  margin: 0 0 1rem;
  color: #333;
}

.announcement-badge {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  padding: 1rem;
  border-radius: 8px;
  margin: 0.5rem 0;
  color: #333;
}

.announcement-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.announcement-message {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.announcement-date {
  color: #666;
  font-size: 0.85rem;
}

/* Admin Commands Section */
.admin-commands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.command-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.command-section h3 {
  margin: 0 0 1rem;
  color: #333;
  font-size: 1.2rem;
}

.section-description {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
  font-style: italic;
}

.command-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.command-input-group input,
.command-input-group select {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.command-input-group input:focus,
.command-input-group select:focus {
  outline: none;
  border-color: #667eea;
}

.command-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.command-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.command-section.danger {
  border: 2px solid #ff6b6b;
}

.command-button.danger-button {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.command-button.danger-button:hover {
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.warning-text {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Announce Section */
.announce-section {
  grid-column: 1 / -1;
}

.announcement-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.announcement-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.announcement-textarea:focus {
  outline: none;
  border-color: #667eea;
}

.announce-button {
  align-self: flex-start;
}

/* Card Search */
.card-search-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-search-wrapper {
  position: relative;
  flex: 1;
}

.card-search-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.card-search-input:focus {
  outline: none;
  border-color: #667eea;
}

.card-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 0.25rem;
}

.card-suggestion-item {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.card-suggestion-item:hover {
  background: #f5f5f5;
}

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

.suggestion-name {
  display: block;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.25rem;
}

.suggestion-details {
  display: block;
  font-size: 0.85rem;
  color: #666;
}

.suggestion-more {
  padding: 0.75rem;
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  font-style: italic;
}

.selected-card-info {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #4caf50;
  font-weight: 500;
}

/* Player Statistics */
.player-stats-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.player-stats-section h3 {
  margin: 0 0 1rem;
  color: #333;
}

.stats-summary {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem;
  border-radius: 8px;
  color: white;
  text-align: center;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
}

.stat-value.active {
  color: #4caf50;
}

.players-list-section h4 {
  margin: 0 0 1rem;
  color: #333;
}

.players-table-container {
  overflow-x: auto;
}

.players-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.players-table thead {
  background: #f5f5f5;
}

.players-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid #ddd;
}

.players-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  color: #666;
}

.players-table tr:hover {
  background: #f9f9f9;
}

.players-table tr.active-player {
  background: #e8f5e9;
}

.username-cell {
  font-weight: 500;
  color: #333;
}

.current-user-badge {
  color: #4caf50;
  font-weight: bold;
  margin-left: 0.5rem;
}

.winstreak-badge {
  color: #ff6b35;
  font-weight: bold;
}

.no-winstreak {
  color: #999;
}

.last-login-cell {
  font-size: 0.85rem;
  color: #666;
}

.status-active {
  color: #4caf50;
  font-weight: 500;
}

.status-inactive {
  color: #999;
}

/* Gift Section */
.gift-section {
  grid-column: 1 / -1;
  border: 2px solid #4caf50;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.gift-section h3 {
  color: #2e7d32;
}

.gift-target-input {
  margin-bottom: 1.5rem;
}

.gift-target-input label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.gift-username-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #4caf50;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.gift-username-input:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.gift-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gift-option {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #4caf50;
}

.gift-option h4 {
  margin: 0 0 0.75rem;
  color: #2e7d32;
  font-size: 1rem;
}

/* Command Interface */
.command-interface-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  color: white;
}

.command-interface-section h3 {
  margin: 0 0 0.5rem;
  color: white;
}

.command-interface-section .section-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.command-text-input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
}

.command-text-input:focus {
  outline: none;
  border-color: white;
  background: white;
}

.command-history {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.command-history h4 {
  margin: 0 0 0.5rem;
  color: white;
  font-size: 0.9rem;
}

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

.command-history-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.command-history-command {
  color: white;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.command-history-result {
  color: rgba(255, 255, 255, 0.9);
  margin-left: 1.5rem;
}

@media (max-width: 768px) {
  .admin-commands {
    grid-template-columns: 1fr;
  }

  .announce-section {
    grid-column: 1;
  }

  .stats-summary {
    flex-direction: column;
  }

  .players-table-container {
    font-size: 0.85rem;
  }

  .players-table th,
  .players-table td {
    padding: 0.5rem;
  }
}

.events-section {
  border-top: 3px solid #ff9800;
  background: linear-gradient(135deg, #fff5e6 0%, #ffffff 100%);
}

.event-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.event-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-selector label {
  font-weight: bold;
  color: #333;
  font-size: 0.9rem;
}

.event-type-select {
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s;
}

.event-type-select:hover {
  border-color: #ff9800;
}

.event-type-select:focus {
  outline: none;
  border-color: #ff9800;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.activate-event-button {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.activate-event-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6);
}

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

.active-events-list {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #ddd;
}

.active-events-list h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.active-event-card {
  background: white;
  border: 2px solid #ff9800;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
  transition: transform 0.2s;
}

.active-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
}

.event-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.event-emoji {
  font-size: 2rem;
}

.event-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  flex-grow: 1;
}

.deactivate-event-button {
  padding: 0.5rem 1rem;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.deactivate-event-button:hover {
  background: #d32f2f;
}

.event-description {
  color: #666;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.event-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
  color: #999;
}
.global-chat {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  color: #1f2937;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.global-chat-header h2 {
  margin: 0;
  color: #4f46e5;
}

.global-chat-header span {
  font-size: 0.9rem;
  color: #6b7280;
}

.global-chat-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
}

.global-chat-messages {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  height: 420px;
  overflow-y: auto;
  padding: 0.75rem;
}

.global-chat-empty {
  color: #6b7280;
  text-align: center;
  margin-top: 2rem;
}

.global-chat-message {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.55rem;
}

.global-chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.global-chat-meta strong {
  color: #111827;
}

.global-chat-text {
  font-size: 0.95rem;
  word-break: break-word;
}

.global-chat-input-row {
  display: flex;
  gap: 0.6rem;
}

.global-chat-input-row input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  font-size: 0.95rem;
}

.global-chat-input-row button {
  border: none;
  border-radius: 8px;
  background: #4f46e5;
  color: #ffffff;
  font-weight: 600;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.global-chat-input-row button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.global-chat-counter {
  text-align: right;
  color: #6b7280;
  font-size: 0.8rem;
}
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
}

.login-card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 100%;
}

.login-card h1 {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: 2.5rem;
  color: #667eea;
}

.login-card h2 {
  text-align: center;
  margin: 0 0 0.5rem;
  color: #333;
  font-size: 1.5rem;
}

.info-text {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 2rem;
  font-style: italic;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.checkbox-group {
  margin-top: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.checkbox-hint {
  margin: 0.5rem 0 0 1.5rem;
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
}

.checkbox-hint.warning-text {
  color: #ff6b35;
  font-weight: bold;
  font-style: normal;
}

.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.submit-button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.switch-mode {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.link-button {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  text-decoration: underline;
  font-size: 1rem;
  padding: 0;
}

.link-button:hover {
  color: #764ba2;
}

.google-signin-container {
  margin-top: 1.5rem;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #999;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.divider span {
  padding: 0 1rem;
  font-size: 0.9rem;
  color: #999;
}

#google-signin-button {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

#google-signin-button > div {
  width: 100% !important;
}

#google-signin-button iframe {
  width: 100% !important;
}

.cloud-status {
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  margin: 1rem 0;
  font-weight: 500;
}

.cloud-status.enabled {
  background: #e8f5e9;
  color: #2e7d32;
  border: 2px solid #4caf50;
}

.cloud-status.disabled {
  background: #fff3e0;
  color: #e65100;
  border: 2px solid #ff9800;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
}

.announcement-banner {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.announcement-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.announcement-icon {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

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

.announcement-text {
  font-size: 1.1rem;
  font-weight: bold;
  flex: 1;
  text-align: center;
}

.announcement-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.announcement-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .announcement-banner {
    padding: 0.75rem 1rem;
  }
  
  .announcement-text {
    font-size: 0.95rem;
  }
  
  .announcement-icon {
    font-size: 1.2rem;
  }
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-size: 2rem;
}

.header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  text-align: center;
}

.user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.user-info span {
  font-weight: bold;
  font-size: 1rem;
}

.logout-btn {
  padding: 0.4rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(244, 67, 54, 0.3);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(244, 67, 54, 0.5);
  transform: translateY(-1px);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.nav button {
  padding: 0.5rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.nav button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav button.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  font-weight: bold;
}

.header-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 1.1rem;
  font-weight: bold;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.home-view {
  max-width: 1200px;
  margin: 0 auto;
}

.welcome-card {
  background: white;
  color: #333;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.welcome-card h2 {
  margin: 0 0 1rem;
  font-size: 2.5rem;
  color: #667eea;
}

.welcome-card > p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  width: 100%;
  box-sizing: border-box;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  overflow: hidden;
  word-wrap: break-word;
}

.stat-value {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: bold;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

.trophies-display {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
}

.trophies-display h3 {
  margin: 0 0 1rem;
  color: #333;
}

.trophy-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin: 0.5rem 0;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border-radius: 8px;
  color: #333;
  font-weight: bold;
}

.trophy-date {
  font-size: 0.9rem;
  opacity: 0.8;
}

.starter-pack-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}

.modal-content h2 {
  margin: 0 0 2rem;
  color: #333;
  font-size: 2rem;
}

.starter-pack-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.accept-button {
  margin-top: 2rem;
  padding: 1rem 3rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accept-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 1.5rem;
  }
  
  .nav {
    gap: 0.25rem;
  }
  
  .nav button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .header-stats {
    font-size: 0.9rem;
    gap: 1rem;
  }
  
  .welcome-card {
    padding: 2rem 1rem;
  }
  
  .welcome-card h2 {
    font-size: 1.8rem;
  }
  
  .quick-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
}

/* Admin Panel Overlay */
.admin-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.admin-panel-modal {
  background: white;
  border-radius: 16px;
  max-width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  color: #333;
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid #eee;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px 16px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-panel-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.admin-close-button {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.admin-close-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .admin-panel-modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .admin-panel-header {
    border-radius: 0;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  width: 100%;
  min-height: 100vh;
}

