:root {
  --primary: #2563EB;
  --secondary: #3B82F6;
  --gold: #F59E0B;
  --background: #F0F9FF;
  --card: #FFFFFF;
  --text: #1E3A8A;
  --text-light: #64748B;
  --success: #10B981;
  --border: #BFDBFE;
  --light-blue: #DBEAFE;
}

* { 
  box-sizing: border-box; 
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #F0F9FF 0%, #DBEAFE 100%);
  color: var(--text);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px 0;
  line-height: 1.6;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

#quiz-container {
  background: var(--card);
  padding: 40px 32px;
  border-radius: 24px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(30, 58, 138, 0.1);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

h1 {
  margin: 0 0 16px;
  font-size: 2.2rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  line-height: 1.3;
  color: var(--text);
  font-weight: 600;
}

.subtitle {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.intro-text {
  text-align: left;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.05));
  padding: 24px;
  border-radius: 16px;
  border-left: 4px solid var(--primary);
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.7;
}

.intro-text strong {
  color: var(--primary);
  font-weight: 600;
}

.intro-list {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}

.intro-list li {
  margin: 10px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text);
}



.question-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.option {
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-size: 1rem;
  color: var(--text);
  position: relative;
}

.option:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-2px);
}

.option.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
  color: var(--primary);
  font-weight: 500;
}

.option:before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.option.selected:before {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 4px white;
}

#points-counter {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, var(--gold), #F97316);
  color: white;
  padding: 12px 18px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
  z-index: 1001;
  user-select: none;
  transition: transform 0.3s ease;
}

#points-counter.pulse {
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

button {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
  margin-top: 20px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

#coin-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, var(--gold), #F97316);
  color: white;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 1.6rem;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-30px) scale(0.8);
  transition: all 0.5s ease;
  z-index: 1000;
  user-select: none;
  font-weight: bold;
}

#coin-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.reward-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.reward-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.reward-content {
  background: var(--card);
  padding: 40px 32px;
  border-radius: 24px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 50px rgba(37, 99, 235, 0.3);
  transform: scale(0.8);
  transition: transform 0.4s ease;
}

.reward-modal.show .reward-content {
  transform: scale(1);
}

.reward-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: spin 1s ease-in-out;
}

@keyframes spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.reward-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 700;
}

.step-indicator {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.bonus-list {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 197, 94, 0.1));
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  border-left: 4px solid var(--success);
}

.bonus-item {
  display: flex;
  align-items: center;
  margin: 12px 0;
  font-weight: 500;
}



.checkout-button {
  background: linear-gradient(45deg, var(--success), #059669);
  font-size: 1.2rem;
  padding: 18px 32px;
  margin-top: 24px;
}

.checkout-button:hover {
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.offer-badge {
  background: linear-gradient(45deg, #EF4444, #DC2626);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin: 16px 0;
  animation: pulse 2s infinite;
}