/* Checkout-specific styles */
.checkout-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 90px;
}

.checkout-header {
  text-align: center;
  margin-bottom: 50px;
}

.checkout-title {
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 12px;
}

.checkout-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
  align-items: start;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
}

.checkout-card-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-card-title .material-symbols-rounded {
  font-size: 22px;
  color: var(--accent);
}

/* Tier selector */
.tier-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tier-option:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.tier-option.selected {
  border-color: var(--accent);
  background: rgba(77, 119, 255, 0.08);
}

.tier-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tier-option.selected .tier-radio {
  border-color: var(--accent);
  background: var(--accent);
}

.tier-option.selected .tier-radio::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.tier-info {
  flex: 1;
}

.tier-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.tier-description {
  font-size: 13px;
  color: var(--text-muted);
}

.tier-price {
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}

.tier-badge {
  position: absolute;
  top: -8px;
  right: 16px;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #65ffb3);
  color: #05060a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Quantity selector */
.quantity-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.quantity-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
}

.quantity-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.quantity-value {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

/* Email input */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-input {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.form-input::placeholder {
  color: rgba(163, 166, 180, 0.5);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Payment section */
#card-element {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease;
}

#card-element.StripeElement--focus {
  border-color: var(--accent);
}

/* Order summary */
.order-summary {
  position: sticky;
  top: 80px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
}

.summary-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-row:last-child {
  border-bottom: none;
  padding-top: 16px;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-label {
  font-size: 14px;
  color: var(--text-muted);
}

.summary-value {
  font-size: 14px;
  font-weight: 500;
}

.summary-total-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.summary-total-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

/* Submit button */
.submit-button {
  width: 100%;
  border: 1px solid transparent;
  outline: none;
  cursor: pointer;
  padding: 16px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #65ffb3);
  color: #05060a;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  margin-top: 24px;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  filter: brightness(1.03);
}

.submit-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  filter: brightness(0.97);
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-button .material-symbols-rounded {
  font-size: 20px;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(5, 6, 10, 0.2);
  border-top-color: #05060a;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error message */
.error-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 92, 122, 0.1);
  border: 1px solid rgba(255, 92, 122, 0.3);
  color: var(--danger);
  font-size: 14px;
  display: none;
  align-items: flex-start;
  gap: 10px;
}

.error-message.visible {
  display: flex;
}

.error-message .material-symbols-rounded {
  font-size: 20px;
  flex-shrink: 0;
}

/* Security badge */
.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.security-badge .material-symbols-rounded {
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .order-summary {
    position: static;
    order: -1;
  }

  .checkout-title {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .checkout-container {
    padding: 40px 16px 70px;
  }

  .tier-option {
    flex-wrap: wrap;
  }

  .tier-price {
    width: 100%;
    text-align: right;
    margin-top: 8px;
  }
}
