:root {
  --bg: #0b1020;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --border: rgba(255, 255, 255, 0.15);
  --primary: #7c5cff;
  --success: #2ee59d;
  --danger: #ff5c7a;
  --radius: 14px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 20% -10%, #1b2145, transparent),
              radial-gradient(800px 500px at 90% 10%, #241f55, transparent),
              var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card layout */

.checkout-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--card), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px 30px;
  backdrop-filter: blur(10px);
}

.checkout-card h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 600;
}

.subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Form */

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

input,
select {
  width: 100%;
  padding: 12px 12px;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--primary);
}

/* Buttons*/

button {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5b7cfa);
  color: white;
}

.btn-primary:hover {
  opacity: 0.95;
}

.btn-confirm {
  background: linear-gradient(135deg, var(--success), #25c98f);
  color: #042e1c;
  display: none;
}

/* Stripe Element */

#payment-element {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1px dashed var(--border);
  min-height: 300px;
}

/* Output / Debug */

#out {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Footer note */

.footer-note {
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 14px;
}
