/* Stripe Checkout Pages - Polished Elite+ Styling */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
  color: #fff;
  padding: 20px;
}

section {
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product svg {
  width: 48px;
  height: 48px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(225, 132, 223, 0.2), rgba(99, 102, 241, 0.2));
  border-radius: 12px;
  border: 1px solid rgba(225, 132, 223, 0.3);
}

.product svg path {
  fill: #E184DF;
}

.description {
  text-align: left;
}

.description h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 0%, #E184DF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.description h5 {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

form {
  width: 100%;
}

button#checkout-and-portal-button {
  width: 100%;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 15px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

button#checkout-and-portal-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

button#checkout-and-portal-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(99, 102, 241, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

button#checkout-and-portal-button:hover::before {
  left: 100%;
}

button#checkout-and-portal-button:active {
  transform: translateY(0);
}

/* Success page specific styles */
.Box-root {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.Box-root svg {
  margin-bottom: 16px;
}

.Box-root .description {
  text-align: center;
}

.Box-root h3 {
  font-size: 1.25rem;
  line-height: 1.5;
}

/* Cancel page styles */
section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E184DF;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid rgba(225, 132, 223, 0.3);
  transition: all 0.3s ease;
}

.back-link:hover {
  background: rgba(225, 132, 223, 0.1);
  border-color: rgba(225, 132, 223, 0.5);
  transform: translateX(-4px);
}

/* Hidden input styling */
input[type="hidden"] {
  display: none;
}

/* Responsive */
@media (max-width: 480px) {
  section {
    padding: 28px 20px;
    margin: 10px;
  }
  
  .product {
    flex-direction: column;
    text-align: center;
  }
  
  .description {
    text-align: center;
  }
  
  .description h3 {
    font-size: 1.3rem;
  }
}

/* Success checkmark animation (optional enhancement) */
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}
