/* ==========================================================================
   Menora Technologies Ltd - Standalone Client Payment Portal
   Paystack-Style Minimalist Architecture (Zero Shadow, 1px Crisp Borders)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  box-shadow: none !important;
  text-shadow: none !important;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #e6f4ec;
  background-image:
    linear-gradient(rgba(18, 136, 99, 0.06), rgba(18, 136, 99, 0.06)),
    url('assets/pattern-bg.jpg');
  background-blend-mode: multiply;
  background-repeat: repeat;
  background-position: center top;
  background-size: 260px auto;
  background-attachment: fixed;
  color: #0f172a;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px 56px;
  -webkit-font-smoothing: antialiased;
}

.pay-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Centered Brand Header */
.pay-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto 22px auto;
  text-align: center;
}

.pay-logo {
  height: 28px;
  max-width: 135px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Main Checkout Card */
.pay-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 26px 24px;
}

.pay-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 18px;
  gap: 14px;
}

.pay-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.pay-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #0f172a;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
}

.pay-date {
  font-size: 11px;
  color: #64748b;
}

.pay-h1 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
  letter-spacing: -0.015em;
}

.pay-client-name {
  font-size: 12.5px;
  color: #475569;
}

.pay-total-callout {
  text-align: right;
  flex-shrink: 0;
}

.pay-total-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
  letter-spacing: 0.03em;
}

.pay-total-value {
  font-size: 19px;
  font-weight: 800;
  color: #128863;
  letter-spacing: -0.02em;
}

/* Options Grid */
.pay-selector-wrap {
  margin-bottom: 18px;
}

.pay-selector-title {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pay-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay-option-card {
  position: relative;
  display: block;
  cursor: pointer;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pay-option-card input {
  position: absolute;
  top: 12px;
  right: 12px;
  accent-color: #128863;
  width: 15px;
  height: 15px;
}

.pay-option-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.pay-option-card.active {
  border-color: #128863;
  background: #f0fdf4;
}

.pay-opt-inner {
  padding-right: 16px;
}

.pay-opt-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-bottom: 5px;
}

.pay-opt-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}

.pay-pill-tag {
  font-size: 9px;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  padding: 1px 5px;
  border-radius: 6px;
  text-transform: uppercase;
}

.pay-pill-tag.tag-full {
  color: #1e40af;
  background: #dbeafe;
}

.pay-opt-price {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.pay-opt-desc {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.35;
}

/* Deliverables Breakdown Box */
.pay-items-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.pay-items-title {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.pay-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.pay-items-table th {
  text-align: left;
  font-size: 10px;
  color: #94a3b8;
  padding-bottom: 5px;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pay-items-table td {
  padding: 7px 0;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}

.pay-items-table tr:last-child td {
  border-bottom: none;
}

/* Amount Breakdown Summary inside Deliverables Box */
.pay-summary-block {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pay-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #64748b;
}

.pay-summary-row span:last-child {
  font-weight: 600;
  color: #0f172a;
}

.pay-summary-row.grand-total {
  font-size: 12px;
  color: #0f172a;
  font-weight: 700;
  margin-top: 3px;
  padding-top: 7px;
  border-top: 1px dashed #e2e8f0;
}

.pay-summary-row.grand-total span:last-child {
  font-weight: 800;
  color: #128863;
  font-size: 13px;
}

/* Pay CTA Button */
.pay-action-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pay-cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0f4a30;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.pay-cta-btn:hover {
  background: #0e6c4e;
}

.pay-cta-btn:active {
  background: #092c1d;
}

.pay-trust-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #64748b;
}

.pay-trust-dot {
  color: #cbd5e1;
}

/* Paid Alert */
.pay-paid-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
  color: #065f46;
  font-size: 12.5px;
}

/* Loading & Error States */
.pay-loading-state,
.pay-error-state {
  text-align: center;
  padding: 40px 16px;
}

.pay-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid #e2e8f0;
  border-top-color: #128863;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 12px;
}

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

/* Success Card */
.pay-success-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 30px 24px;
  text-align: center;
}

.pay-success-icon-wrap {
  width: 52px;
  height: 52px;
  background: #ecfdf5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.pay-success-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 5px;
}

.pay-success-sub {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 18px;
}

.pay-success-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  max-width: 420px;
  margin: 0 auto 20px;
  text-align: left;
}

.pay-success-details .success-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.pay-success-details .success-row:last-child {
  border-bottom: none;
}

.pay-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pay-print-btn:hover {
  background: #1e293b;
}

@media (max-width: 500px) {
  body {
    padding: 20px 12px 40px;
  }

  .pay-card {
    padding: 22px 18px;
  }

  .pay-options-grid {
    grid-template-columns: 1fr;
  }

  .pay-card-header {
    flex-direction: column;
  }

  .pay-total-callout {
    text-align: left;
  }
}