/* ==========================================================================
   Checkout Page Styles — Planeta en Línea & LoboFeroz
   ========================================================================== */

.checkout-page {
  padding: 3rem 0 5rem;
  min-height: 80vh;
}

.checkout-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.checkout-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.checkout-brand-badge.lobo {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.checkout-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.checkout-subtitle {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* 2-Column Grid Layout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1.25fr 0.85fr;
  }
}

/* Checkout Forms & Cards */
.checkout-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.lobo-theme .step-number {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  background: rgba(30, 41, 59, 0.95);
}

.form-input::placeholder {
  color: #64748b;
}

.form-help {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.35rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Payment Method Tabs */
.payment-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.payment-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-tab:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
}

.payment-tab.active {
  background: rgba(37, 99, 235, 0.2);
  border-color: #3b82f6;
  color: #60a5fa;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.lobo-theme .payment-tab.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.payment-tab-content {
  display: none;
}

.payment-tab-content.active {
  display: block;
}

/* Payment Card Logos */
.card-logos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.card-logo-badge {
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* Yape info card */
.yape-box {
  background: linear-gradient(135deg, rgba(121, 40, 202, 0.15), rgba(0, 195, 137, 0.15));
  border: 1px solid rgba(121, 40, 202, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.yape-badge {
  display: inline-block;
  background: #7928ca;
  color: #ffffff;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

/* Order Summary Box */
.order-summary {
  position: sticky;
  top: 100px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.spec-name {
  color: #94a3b8;
}

.spec-val {
  color: #f1f5f9;
  font-weight: 600;
}

.summary-features {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.summary-features li {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-features li::before {
  content: "✓";
  color: #10b981;
  font-weight: 800;
}

.pricing-breakdown {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.75rem;
}

.total-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
}

.total-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: #38bdf8;
}

.lobo-theme .total-amount {
  color: #fbbf24;
}

.total-period {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 400;
}

/* Pay Button */
.btn-pay {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.btn-pay:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #0369a1);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.6);
}

.btn-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lobo-theme .btn-pay {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  color: #111827;
}

.lobo-theme .btn-pay:hover:not(:disabled) {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.6);
}

.security-footer {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.security-badge svg {
  color: #10b981;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s ease-in-out infinite;
}

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

/* Confirmation Page */
.confirmation-card {
  max-width: 680px;
  margin: 3rem auto;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.confirmation-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid #10b981;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.2rem;
}

.order-badge-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  font-family: monospace;
  font-size: 0.95rem;
  color: #38bdf8;
  margin: 0.75rem 0 1.5rem;
}

.ssh-instruction-box {
  text-align: left;
  background: rgba(3, 7, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.ssh-instruction-box pre {
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  background: #090d16;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #38bdf8;
}
