* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 120, 255, 0.20), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.18), transparent 30%),
    linear-gradient(135deg, #030303 0%, #0b0d13 60%, #050505 100%);
  color: #ffffff;
}

.checkout-page {
  min-height: 100vh;
  padding: 22px 14px 40px;
}

.checkout-header {
  max-width: 1180px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  opacity: 0.85;
}

.secure-badge {
  background: rgba(255, 215, 0, 0.16);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.30);
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.checkout-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-card,
.bot-card,
.checkout-form,
.summary-card,
.empty-card {
  border-radius: 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.brand-card {
  padding: 28px;
}

.brand-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.16);
  color: #ffd700;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand-card h1 {
  margin: 16px 0 10px;
  font-size: 42px;
  line-height: 1.05;
}

.brand-card p {
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  max-width: 720px;
}

.bot-card {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(34,158,217,0.20), rgba(255,255,255,0.06));
}

.bot-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.bot-card p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}

.telegram-btn {
  text-decoration: none;
  background: #229ed9;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(34,158,217,0.28);
}

.checkout-form {
  padding: 24px;
  background: #ffffff;
  color: #111111;
}

.checkout-form h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

label {
  display: block;
  margin: 12px 0 7px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  padding: 15px 14px;
  border: 1px solid #dddddd;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  font-size: 15px;
  outline: none;
}

input:focus,
select:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.zp-locked-plan {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dddddd;
  border-radius: 14px;
  background: #f8fafc;
  color: #111111;
  padding: 15px 14px;
}

.zp-locked-plan strong,
.zp-locked-plan span {
  display: block;
}

.zp-locked-plan strong {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.zp-locked-plan span {
  margin-top: 3px;
  color: #555555;
  font-size: 13px;
  font-weight: 800;
}

small {
  display: block;
  margin-top: 7px;
  color: #555555;
  line-height: 1.45;
}

.form-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.payment-note {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #f3f3f3;
  color: #222222;
}

.pay-btn {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  padding: 17px 18px;
  background: #0d111c;
  color: #ffffff;
  font-weight: 1000;
  font-size: 16px;
  cursor: pointer;
}

.footer-note {
  margin: 14px 0 0;
  color: #555555;
  font-size: 13px;
  line-height: 1.5;
}

.summary-card {
  position: sticky;
  top: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(255,215,0,0.13), transparent 38%),
    rgba(255,255,255,0.08);
}

.summary-title {
  color: #ffd700;
  font-weight: 1000;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.summary-line {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.summary-line span,
.summary-price span {
  display: block;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  margin-bottom: 5px;
}

.summary-line strong {
  color: #ffffff;
  line-height: 1.35;
}

.summary-price {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(0,0,0,0.35);
}

.summary-price strong {
  color: #ffd700;
  font-size: 32px;
}

.summary-help {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
}

.summary-help h3 {
  margin: 0 0 8px;
}

.summary-help p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}

.empty-card {
  padding: 24px;
  color: #ffffff;
}

@media (max-width: 900px) {
  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .checkout-page {
    padding: 14px 10px 28px;
  }

  .checkout-header {
    margin-bottom: 12px;
  }

  .brand-card,
  .checkout-form,
  .summary-card,
  .bot-card {
    border-radius: 20px;
  }

  .brand-card {
    padding: 22px;
  }

  .brand-card h1 {
    font-size: 32px;
  }

  .bot-card {
    flex-direction: column;
    align-items: stretch;
  }

  .telegram-btn {
    text-align: center;
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .summary-price strong {
    font-size: 28px;
  }
}


.auto-capture-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #e9fff3;
  color: #075c2b;
  border: 1px solid #bcebd0;
}

.auto-capture-box strong,
.auto-capture-box span {
  display: block;
}

.auto-capture-box span {
  margin-top: 5px;
  color: #246640;
}

.captured-ok {
  color: #dfffea !important;
}

/* Phase 9.3 Coupon Box */
.coupon-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #f7f7f7;
  border: 1px solid #e6e6e6;
}

.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.coupon-row button {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  background: #ffd700;
  color: #111111;
  font-weight: 1000;
  cursor: pointer;
}

.coupon-message {
  margin-top: 10px;
  font-weight: 800;
  color: #555555;
}

.coupon-message.ok {
  color: #087a34;
}

.coupon-message.bad {
  color: #a00000;
}

@media (max-width: 640px) {
  .coupon-row {
    grid-template-columns: 1fr;
  }

  .coupon-row button {
    padding: 14px 18px;
  }
}

/* Hidden Telegram Capture Standard */
.bad-capture {
  background: #fff6e0 !important;
  color: #7a5200 !important;
  border: 1px solid #ffe08a !important;
}

.bad-capture strong,
.bad-capture span {
  color: #7a5200 !important;
}

.mini-telegram-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #229ed9;
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
}

/* AccessMate checkout premium polish */
.checkout-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255,215,0,.18), transparent 35%),
    linear-gradient(135deg, #070707 0%, #111827 55%, #050505 100%);
}

.checkout-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 0;
}

.checkout-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 40px;
}

.brand-card,
.bot-card,
.checkout-form,
.summary-card,
.empty-card {
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.brand-card h1 {
  letter-spacing: -0.04em;
}

.brand-badge,
.secure-badge {
  border: 1px solid rgba(255,215,0,.35);
}

.telegram-btn,
.pay-btn,
.coupon-row button {
  box-shadow: 0 14px 30px rgba(255,215,0,.20);
}

.summary-card {
  position: sticky;
  top: 18px;
}

.summary-title {
  letter-spacing: -0.02em;
}

@media (max-width: 820px) {
  .checkout-header {
    padding-top: 14px;
  }

  .checkout-shell {
    padding-top: 14px;
  }

  .summary-card {
    position: static;
  }
}

.stripe-logo-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 14px;
}

.stripe-logo-wrap img {
  max-width: 120px;
  height: auto;
  display: block;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
}

.zenpay-logo-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 14px;
}

.zenpay-logo-wrap img {
  max-width: 130px;
  height: auto;
  display: block;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
}
