/* ========== 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);
}

/* VIP Modal Styles */
.vip-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.vip-modal.active {
  display: flex;
}

.vip-modal__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.vip-modal__card {
  position: relative;
  width: 100%;
  max-width: 500px;
  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;
}

.vip-modal__header {
  position: relative;
  padding: 2rem 1.5rem 1rem;
  text-align: center;
  color: var(--white-color);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Golden Star Styles */
.golden-star {
  animation: shine 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.vip-modal__trophy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.vip-modal__trophy svg {
  width: 36px;
  height: 36px;
  transition: all 0.3s ease;
}

/* Shine animation */
@keyframes shine {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
  }
}

/* Pulse animation for the trophy container */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  }
}

/* Add this to make the container pulse slightly */
.vip-modal__trophy {
  animation: pulse 3s ease-in-out infinite;
}

/* Dark mode adjustments for the star */
[data-theme="dark"] .golden-star {
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

[data-theme="dark"] .vip-modal__trophy {
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  background: radial-gradient(circle at center, rgba(30, 30, 30, 0.9) 0%, rgba(50, 50, 50, 0.4) 70%);
}

/* Enhanced close button */
.vip-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.vip-modal__close:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}

.vip-modal__close svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke-width: 3px;
}

.vip-modal__decorative {
  position: relative;
  height: 80px;
  margin-bottom: 1.5rem;
}

.vip-modal__decorative-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.1);
}

.vip-modal__trophy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.vip-modal__trophy svg {
  width: 30px;
  height: 30px;
}

.vip-modal__title {
  margin: 0;
  font-size: clamp(1.3rem, 4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.vip-modal__subtitle {
  margin: 0.5rem 0 0;
  font-size: clamp(0.85rem, 3vw, 0.9rem);
  opacity: 0.9;
  line-height: 1.4;
}

.vip-benefits__list {
  padding: 1.5rem;
}

.vip-benefits__list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vip-benefits__list li {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  color: var(--text-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: clamp(0.9rem, 3vw, 1rem);
}

.vip-benefits__list li:last-child {
  border-bottom: none;
}

.vip-benefits__list i {
  margin-right: 1rem;
  color: var(--primary-color);
  font-size: clamp(1rem, 3vw, 1.2rem);
  min-width: 1.2rem;
}

.vip-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.vip-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.vip-modal__actions {
  padding: 0 1.5rem 1.5rem;
  text-align: center;
}

.vip-modal__requirements {
  padding: 0 1.5rem 1.5rem;
  text-align: center;
}

.vip-requirements__text {
  background-color: rgba(3, 0, 138, 0.05);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.5;
  border-left: 3px solid var(--primary-color);
}

.vip-requirements__text i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.vip-requirements__text strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* Responsive adjustments for requirements */
@media (max-width: 480px) {
  .vip-modal__requirements {
    padding: 0 1rem 1.5rem;
  }
  
  .vip-requirements__text {
    font-size: 0.85rem;
    padding: 0.8rem;
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .vip-modal {
    padding: 0.5rem;
  }
  
  .vip-modal__header {
    padding: 1.5rem 1rem 0.8rem;
  }
  
  .vip-modal__close {
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
  }
  
  .vip-modal__decorative {
    height: 70px;
    margin-bottom: 1rem;
  }
  
  .vip-modal__trophy {
    width: 50px;
    height: 50px;
  }
  
  .vip-modal__trophy svg {
    width: 25px;
    height: 25px;
  }
  
  .vip-benefits__list {
    padding: 1rem;
  }
  
  .vip-benefits__list li {
    padding: 0.6rem 0;
  }
  
  .vip-modal__actions {
    padding: 0 1rem 1.5rem;
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}