/* ============================================================
   DriveEase — Payment CSS
   Payment reference styling, status displays, receipt layouts
   ============================================================ */

/* ── Payment Reference ───────────────────────────────────────── */
.payment-ref {
  font-family: 'Courier New', Courier, monospace;
  font-size: .78rem;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: .25rem .5rem;
  color: var(--c-muted);
  letter-spacing: .04em;
}

/* ── Payment Success Page ────────────────────────────────────── */
.payment-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34,197,94,.12);
  border: 2px solid rgba(34,197,94,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
  color: var(--c-success);
  animation: pop var(--t-spring) both;
}
@keyframes pop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}

/* ── Receipt / Invoice Layout ────────────────────────────────── */
.receipt {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  max-width: 520px;
  margin: 0 auto;
}
.receipt__header {
  padding: var(--sp-8);
  text-align: center;
  background: var(--c-surface2);
  border-bottom: 2px dashed var(--c-border);
  position: relative;
}
.receipt__header::before,
.receipt__header::after {
  content: '';
  position: absolute;
  bottom: -14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 2px dashed var(--c-border);
}
.receipt__header::before { left: -14px; }
.receipt__header::after  { right: -14px; }

.receipt__logo {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}
.receipt__amount {
  font-family: var(--f-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--c-gold);
}
.receipt__status-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-muted);
  margin-top: var(--sp-2);
}

.receipt__body {
  padding: var(--sp-6) var(--sp-8);
}
.receipt__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--c-border);
}
.receipt__row:last-child { border-bottom: none; }
.receipt__row-label { color: var(--c-muted); }
.receipt__row-value { font-weight: 600; }

.receipt__footer {
  padding: var(--sp-5) var(--sp-8);
  background: var(--c-surface2);
  border-top: 2px dashed var(--c-border);
  text-align: center;
  font-size: .82rem;
  color: var(--c-muted);
}
.receipt__ref {
  font-family: 'Courier New', Courier, monospace;
  font-size: .9rem;
  color: var(--c-gold);
  letter-spacing: .06em;
  font-weight: 700;
}
