/* ─── Payment Page — Premium Styles ─── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c1222;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.1), transparent 40%);
  color: #f1f5f9;
  padding: 20px;
}

/* ─── Screen Management ─── */
.screen {
  display: none;
  width: 100%;
  max-width: 440px;
  animation: fadeUp 0.4s ease-out;
}
.screen.active {
  display: block;
}

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

/* ─── Card ─── */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 32px;
  backdrop-filter: blur(20px);
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

/* ─── Logo ─── */
.logo-badge {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
}
.logo-badge span {
  font-size: 22px;
  font-weight: 800;
  color: white;
  letter-spacing: 1px;
}
.logo-badge.small {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin: 0;
}
.logo-badge.small span {
  font-size: 14px;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 4px;
}

.label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #818cf8;
  font-weight: 600;
}

/* ─── Spinner ─── */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #818cf8;
  border-radius: 50%;
  margin: 24px auto 0;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Card Header ─── */
.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 20px 0;
}

/* ─── Summary ─── */
.summary {
  text-align: left;
  margin-bottom: 24px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.summary-row:last-child {
  border-bottom: none;
}
.summary-label {
  font-size: 13px;
  color: #94a3b8;
}
.summary-value {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}
.summary-value.mono {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: #94a3b8;
}
.summary-row.highlight {
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.summary-value.amount {
  font-size: 20px;
  font-weight: 800;
  color: white;
}

/* ─── Pay Button ─── */
.pay-button {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}
.pay-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.45);
}
.pay-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 11px;
  color: #64748b;
}

/* ─── Success ─── */
.success-card {
  text-align: center;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #10b981;
}

.receipt {
  text-align: left;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: #94a3b8;
}
.receipt-row span:last-child {
  color: #e2e8f0;
  font-weight: 600;
}
.receipt-row .mono {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
}
.status-active {
  color: #10b981 !important;
  font-weight: 700 !important;
}
.close-note {
  font-size: 13px;
  color: #64748b;
  margin-top: 16px;
}

/* ─── Error ─── */
.error-card {
  text-align: center;
}
.error-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #ef4444;
}
.retry-button {
  margin-top: 20px;
  padding: 14px 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.retry-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ─── Mobile ─── */
@media (max-width: 480px) {
  .card {
    padding: 28px 20px;
    border-radius: 20px;
  }
  h1 { font-size: 20px; }
  h2 { font-size: 18px; }
}
