:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: rgba(13, 24, 42, 0.82);
  --panel-strong: rgba(16, 29, 49, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --text: #ecf3ff;
  --muted: #a8b7cc;
  --primary: #4cc9f0;
  --primary-strong: #33b8e1;
  --accent: #7dd3fc;
  --green: #22c55e;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(76, 201, 240, 0.16), transparent 30%),
    linear-gradient(180deg, #08111d 0%, #07111f 100%);
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 18px 14px 28px;
}

.pay-card {
  width: 100%;
  max-width: 480px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(76, 201, 240, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(17, 30, 50, 0.95) 0%, rgba(10, 20, 35, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  padding: 22px 18px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 18px;
  filter: drop-shadow(0 0 10px rgba(76, 201, 240, 0.55));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(76, 201, 240, 0.1);
  border: 1px solid rgba(76, 201, 240, 0.2);
  color: #d9f6ff;
  font-size: 0.8rem;
  font-weight: 800;
}

h1 {
  margin: 10px 0 0;
  font-size: clamp(1.75rem, 8vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.notice {
  margin-top: 20px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(76, 201, 240, 0.08);
  border: 1px solid rgba(76, 201, 240, 0.16);
  color: #dff7ff;
  font-size: 0.92rem;
  font-weight: 600;
}

.currency-warning {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.22);
  color: #fde68a;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.form-box {
  margin-top: 20px;
}

.payer-data-box {
  margin-top: 18px;
}

.field-label,
.plans-title {
  display: block;
  margin-bottom: 9px;
  color: #dce8f7;
  font-size: 0.92rem;
  font-weight: 800;
}

.field-label-spaced {
  margin-top: 14px;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  height: 56px;
  border: 1px solid rgba(125, 211, 252, 0.12);
  outline: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
}

input[type="email"]::placeholder,
input[type="text"]::placeholder {
  color: rgba(168, 183, 204, 0.78);
}

.plans-title {
  margin-top: 20px;
  text-align: right;
}

.plans-grid {
  display: grid;
  gap: 12px;
}

.plan-card {
  position: relative;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 16px;
  cursor: pointer;
}

.plan-card.active {
  border-color: rgba(76, 201, 240, 0.55);
  background: rgba(76, 201, 240, 0.1);
  box-shadow: inset 0 0 0 1px rgba(76, 201, 240, 0.14);
}

.plan-card.best {
  border-color: rgba(125, 211, 252, 0.22);
}

.plan-name {
  display: block;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.34rem;
  letter-spacing: -0.03em;
}

.plan-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #a7f3d0;
  font-size: 0.72rem;
  font-weight: 900;
}

.pay-button {
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #04131b;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
}

.form-message {
  min-height: 22px;
  margin-top: 12px;
  color: #fca5a5;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-message.success {
  color: #86efac;
}

.footer-note {
  margin-top: 14px;
  font-size: 0.82rem;
  text-align: center;
}

@media (min-width: 640px) {
  .page {
    align-items: center;
  }

  .pay-card {
    padding: 28px;
  }
}

.promo-code-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.09), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(125, 211, 252, 0.18);
}

.promo-code-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.promo-code-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  margin-bottom: 7px;
  border-radius: 999px;
  background: rgba(76, 201, 240, 0.12);
  border: 1px solid rgba(76, 201, 240, 0.2);
  color: #dff7ff;
  font-size: 0.72rem;
  font-weight: 900;
}

.promo-code-label {
  margin-bottom: 0;
}

.promo-help {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.leader-promo-button {
  width: 100%;
  min-height: 58px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.09), rgba(76, 201, 240, 0.045));
  color: #dff7ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.leader-promo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.leader-promo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.leader-promo-text strong {
  color: #a7f3d0;
  font-size: 0.92rem;
  line-height: 1.2;
}

.leader-promo-text small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.promo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
  overflow-y: auto;
}

.promo-modal-overlay.show {
  display: flex;
}

.promo-modal-card {
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(76, 201, 240, 0.15), transparent 35%),
    var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  padding: 22px;
}

.promo-modal-card h2 {
  margin: 0 0 18px;
  font-size: 1.28rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.promo-modal-card p {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.promo-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.promo-modal-close,
.promo-modal-submit {
  flex: 1;
  min-height: 48px;
  border-radius: 16px;
  font-weight: 900;
  cursor: pointer;
}

.promo-modal-close {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.promo-modal-submit {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #04131b;
}

@media (max-width: 420px) {
  .page {
    padding: 12px 10px 22px;
  }

  .pay-card {
    border-radius: 24px;
    padding: 18px 14px;
  }

  .brand {
    gap: 11px;
  }

  .brand-logo {
  width: 62px;
  height: 62px;
  filter: drop-shadow(0 0 9px rgba(76, 201, 240, 0.55));
}

  .notice {
    margin-top: 16px;
    padding: 12px;
    font-size: 0.86rem;
  }

  .promo-code-box {
    padding: 12px;
    border-radius: 18px;
  }

  .leader-promo-button {
    min-height: 56px;
    border-radius: 17px;
  }

  .promo-modal-overlay {
    align-items: flex-start;
    padding: 12px;
  }

  .promo-modal-card {
    margin-top: 18px;
    max-height: calc(100vh - 24px);
    border-radius: 22px;
    padding: 18px 14px;
  }

  .promo-modal-actions {
    gap: 8px;
  }

  .promo-modal-close,
  .promo-modal-submit {
    min-height: 46px;
    border-radius: 15px;
    font-size: 0.9rem;
  }
}