@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=Inter:wght@300;400;600&display=swap');

/* --- Page Core Theme --- */
.back-to-slopes-container {
  font-family: 'Inter', sans-serif;
  background-color: #0b111e !important;
  color: #f3f4f6 !important;
  border-radius: 24px;
  padding: 45px 35px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-top: 30px;
  margin-bottom: 50px;
}

.back-to-slopes-container h1, 
.back-to-slopes-container h2, 
.back-to-slopes-container h3, 
.back-to-slopes-container h4,
.back-to-slopes-container .display-4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #ffffff !important;
}

.back-to-slopes-container p,
.back-to-slopes-container li {
  color: #9ca3af;
}

/* --- Hero Dual-Section --- */
.hero-contrast-split {
  display: flex;
  min-height: 550px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-top: 30px;
  margin-bottom: 50px;
  position: relative;
}

.split-panel {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: all 0.5s ease;
}

/* Summer / School Supplies Panel */
.panel-summer {
  background: linear-gradient(135deg, #1f1a17 0%, #2c221a 100%);
  border-right: 1px solid rgba(254, 180, 123, 0.15);
}

.panel-summer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(254, 180, 123, 0.1) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.7;
  pointer-events: none;
}

.panel-summer h2 {
  color: #feb47b;
  text-shadow: 0 0 10px rgba(254, 180, 123, 0.2);
}

.supplies-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.supplies-list li {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #9ca3af;
  text-decoration: line-through;
  display: flex;
  align-items: center;
}

.supplies-list li::before {
  content: '✏️';
  margin-right: 12px;
  filter: grayscale(1);
}

/* Winter / Slopes Panel */
.panel-winter {
  background: linear-gradient(135deg, #0d253f 0%, #153b61 100%);
}

.panel-winter::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(98, 182, 203, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.panel-winter h2 {
  color: #62b6cb;
  text-shadow: 0 0 15px rgba(98, 182, 203, 0.3);
}

.slopes-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.slopes-list li {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: floatIn 1s ease forwards;
}

.slopes-list li::before {
  content: '❄️';
  margin-right: 12px;
  animation: rotateSnow 4s linear infinite;
  display: inline-block;
}

/* --- Checkout Widget --- */
.glass-checkout-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.glass-checkout-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 55%
  );
  transform: rotate(30deg);
  animation: shineCard 8s linear infinite;
  pointer-events: none;
}

.price-display-wrapper {
  background: rgba(98, 182, 203, 0.08);
  border: 1px dashed rgba(98, 182, 203, 0.3);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-bottom: 25px;
}

.original-price-tag {
  text-decoration: line-through;
  color: #6b7280;
  font-size: 1.2rem;
  margin-right: 10px;
}

.sale-price-tag {
  color: #06b6d4;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
}

/* --- Scarcity Progress Bar --- */
.scarcity-tracker {
  margin-bottom: 30px;
}

.scarcity-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 100%);
  width: 100%; /* Will be dynamically adjusted by JS */
  border-radius: 6px;
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.25, 1);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* --- Controls & CTA --- */
.qty-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.qty-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-val {
  font-size: 2rem;
  font-weight: 800;
  width: 60px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
}

.btn-claim-tickets {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.4);
  animation: pulseButton 2.5s infinite;
}

.btn-claim-tickets:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -5px rgba(6, 182, 212, 0.6);
  filter: brightness(1.1);
}

.btn-claim-tickets:active {
  transform: translateY(1px);
}

/* --- Checkout Success Layer --- */
.checkout-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 17, 30, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.checkout-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Ticket Receipt Animation */
.success-checkmark {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-size: 3rem;
  margin-bottom: 20px;
  transform: scale(0.5);
  opacity: 0;
}

.checkout-overlay.active .success-checkmark {
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.2s;
}

.success-ticket {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px;
  width: 100%;
  max-width: 320px;
  position: relative;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  transform: translateY(20px);
  opacity: 0;
}

.checkout-overlay.active .success-ticket {
  animation: slideUpReceipt 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards 0.4s;
}

/* Tear holes for ticket look */
.success-ticket::before,
.success-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: #0b111e;
  border-radius: 50%;
  transform: translateY(-50%);
}

.success-ticket::before { left: -8px; border-right: 1px solid rgba(255,255,255,0.1); }
.success-ticket::after { right: -8px; border-left: 1px solid rgba(255,255,255,0.1); }

.ticket-header {
  border-bottom: 1px dashed rgba(255,255,255,0.15);
  padding-bottom: 12px;
  margin-bottom: 15px;
  text-align: center;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #9ca3af;
}

.ticket-val {
  color: #ffffff;
  font-weight: 600;
}

.ticket-barcode {
  background: repeating-linear-gradient(
    90deg,
    #ffffff,
    #ffffff 2px,
    transparent 2px,
    transparent 8px,
    #ffffff 8px,
    #ffffff 12px,
    transparent 12px,
    transparent 16px
  );
  height: 45px;
  margin-top: 20px;
  opacity: 0.6;
}

.btn-success-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d1d5db;
  border-radius: 12px;
  padding: 10px 24px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.2s ease;
}

.btn-success-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* --- Loader Spinner --- */
.processing-spinner {
  border: 4px solid rgba(255,255,255,0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border-left-color: #06b6d4;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

/* --- Terms & FAQ --- */
.terms-faq-section {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 40px;
  margin-top: 50px;
  margin-bottom: 60px;
}

.faq-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  height: 100%;
}

.faq-card h4 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 600;
}

.faq-card p {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Animations Keyframes --- */
@keyframes floatIn {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes rotateSnow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes shineCard {
  0% { transform: translate(-30%, -30%) rotate(30deg); }
  100% { transform: translate(30%, 30%) rotate(30deg); }
}

@keyframes pulseButton {
  0% { box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.4); }
  50% { box-shadow: 0 10px 25px 2px rgba(6, 182, 212, 0.6); }
  100% { box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.4); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scaleIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUpReceipt {
  0% { transform: translateY(25px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
