.checkout-page { min-height: 100vh; }

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #cfd9d3;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 800;
}

.secure-badge svg { width: 16px; height: 16px; }

.checkout-shell {
  width: min(1120px, calc(100% - clamp(24px, 5vw, 48px)));
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 0 42px;
}

.checkout-intro { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.checkout-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.checkout-intro > p:last-child { margin: 16px auto 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.16rem); }

.checkout-status {
  min-height: 24px;
  margin-bottom: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
}
.checkout-status[data-tone="error"] { color: var(--danger); font-weight: 750; }

.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }

.plan-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid rgba(46, 60, 55, 0.14);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.plan-card.is-featured { border: 2px solid var(--gold); transform: translateY(-7px); }
.plan-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}
.plan-card h2 { margin: 0; font-size: 1.25rem; }
.plan-description { min-height: 42px; margin: 8px 0 18px; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.plan-price { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 20px; color: var(--ink); }
.plan-price span { margin-top: 8px; font-size: 0.85rem; font-weight: 800; }
.plan-price strong { font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1; letter-spacing: -0.05em; }
.plan-price small { align-self: flex-end; margin-bottom: 4px; color: var(--muted); font-size: 0.72rem; }
.plan-features { flex: 1; margin: 0 0 22px; padding: 0; list-style: none; }
.plan-features li { position: relative; margin-top: 10px; padding-left: 24px; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 950; }
.plan-button, .payment-action {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: var(--forest);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.plan-card.is-featured .plan-button { background: var(--gold); color: var(--ink); }
.plan-button:disabled { opacity: 0.55; cursor: not-allowed; }

.payment-trust { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.payment-trust > div { padding: 16px; border: 1px solid rgba(46, 60, 55, 0.1); border-radius: 16px; background: rgba(255, 253, 248, 0.62); }
.payment-trust strong, .payment-trust span { display: block; }
.payment-trust strong { font-size: 0.8rem; }
.payment-trust span { margin-top: 5px; color: var(--muted); font-size: 0.73rem; line-height: 1.45; }

.payment-shell { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 32px 16px; }
.payment-card { width: min(530px, 100%); padding: clamp(26px, 5vw, 46px); border: 1px solid rgba(46, 60, 55, 0.14); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.payment-card h1 { margin: 0; font-size: clamp(1.65rem, 5vw, 2.45rem); line-height: 1.08; letter-spacing: -0.04em; }
.payment-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.payment-icon { width: 58px; height: 58px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: #e7eee9; font-size: 1.5rem; }
.payment-icon.is-loading { border: 4px solid #d6dfda; border-top-color: var(--forest); background: transparent; animation: spin 0.8s linear infinite; }
.payment-icon.is-approved { background: #dff1e8; color: var(--success); }
.payment-icon.is-rejected, .payment-icon.is-locked { background: #f8e5e2; color: var(--danger); }
.payment-details { margin: 18px 0; padding: 13px; border-radius: 12px; background: #f2f5f8; color: var(--muted); font-size: 0.78rem; }
.payment-action { margin-top: 14px; }

@media (max-width: 820px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .plan-card.is-featured { transform: none; }
  .plan-description { min-height: auto; }
  .payment-trust { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; margin-top: 18px; }
}

@media (max-width: 600px) {
  .secure-badge { width: 34px; height: 34px; justify-content: center; padding: 0; font-size: 0; }
  .checkout-shell { width: min(100% - 18px, 1120px); padding-top: 30px; }
  .checkout-intro { margin-bottom: 24px; }
  .checkout-intro h1 { font-size: clamp(1.85rem, 9vw, 2.55rem); }
  .plan-card { padding: 22px 18px; border-radius: 18px; }
  .payment-shell { padding-inline: 8px; }
  .payment-card { border-radius: 19px; }
}
