/* ========== GLOBAL VARIABLES AND STYLES ========== */
:root {
  /* Colors */
  --primary-color: #03008A;
  --secondary-color: #4f54c0;
  --accent-color: #03008acc;
  --white-color: #fff;
  --text-color: #333;
  --light-text-color: #777;
  --bg-color: #f5f7ff;
  --card-bg: #ffffff;
  
  /* Effects */
  --border-radius: 12px;
  --box-shadow: 0 8px 20px rgba(3, 0, 138, 0.1);
  --transition: all 0.3s ease;
}

/* Dark mode */
[data-theme="dark"] {
  --primary-color: #6366f1;
  --secondary-color: #818cf8;
  --accent-color: #6366f1cc;
  --text-color: #e5e7eb;
  --light-text-color: #9ca3af;
  --bg-color: #111827;
  --card-bg: #1f2937;
  --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Roulette Modal - Premium Version */
.roulette-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  padding: 1rem;
}

.roulette-modal.active {
  display: flex;
}

.roulette-modal__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.roulette-modal__card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  z-index: 1;
  animation: modalFadeIn 0.4s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.roulette-modal__header {
  position: relative;
  padding: 2.5rem 2rem 1.8rem;
  text-align: center;
  color: var(--white-color);
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.roulette-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.roulette-modal__close:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.roulette-modal__close svg {
  width: 1rem;
  height: 1rem;
  stroke: white;
  stroke-width: 2.5px;
}

.roulette-modal__icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roulette-modal__icon {
  width: 100%;
  height: 100%;
  color: var(--white-color);
}

.roulette-modal__title {
  margin: 0;
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.roulette-modal__subtitle {
  margin: 0.6rem 0 0;
  font-size: clamp(0.85rem, 3vw, 0.95rem);
  opacity: 0.9;
  font-weight: 400;
  line-height: 1.4;
}

.roulette-prizes {
  padding: 2rem 2rem 1.5rem;
  color: var(--text-color);
}

.roulette-prizes h3 {
  margin: 0 0 1.5rem;
  color: var(--primary-color);
  font-size: clamp(1.1rem, 3.5vw, 1.25rem);
  font-weight: 600;
  text-align: center;
  position: relative;
}

.roulette-prizes h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  margin: 0.8rem auto 0;
  border-radius: 3px;
}

.prizes-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 320px;
}

.prizes-list li {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  background-color: rgba(106, 17, 203, 0.05);
  border-radius: 8px;
  font-size: clamp(0.9rem, 3vw, 0.95rem);
  font-weight: 500;
  transition: var(--transition);
  justify-content: center;
  text-align: center;
}

.prizes-list li:hover {
  background-color: rgba(106, 17, 203, 0.1);
  transform: translateX(5px);
}

.prizes-list li:last-child {
  margin-bottom: 0;
}

.responsible-message {
  font-size: clamp(0.75rem, 3vw, 0.82rem);
  color: var(--light-text-color);
  margin: 2rem 0 0;
  padding: 0.9rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  line-height: 1.5;
  text-align: center;
  border-left: 3px solid var(--primary-color);
}

.roulette-modal__actions {
  padding: 0 2rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.roulette-modal__action-btn {
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: var(--white-color);
  border: none;
  border-radius: 8px;
  padding: clamp(0.8rem, 3vw, 0.9rem) clamp(2rem, 5vw, 2.5rem);
  font-size: clamp(0.95rem, 3vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
  margin-bottom: 1.2rem;
  width: 100%;
  max-width: 280px;
}

.roulette-modal__action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(106, 17, 203, 0.4);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .roulette-modal__header {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .roulette-modal__close {
    top: 1.2rem;
    right: 1.2rem;
    width: 2rem;
    height: 2rem;
  }
  
  .roulette-modal__icon-container {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
  }
  
  .roulette-prizes {
    padding: 1.5rem 1.5rem 1.5rem;
  }
  
  .prizes-list {
    max-width: 100%;
  }
  
  .prizes-list li {
    padding: 0.7rem;
  }
  
  .roulette-modal__actions {
    padding: 0 1.5rem 1.5rem;
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}