:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --text: #152238;
  --muted: #68778d;
  --line: #e4eaf2;
  --blue: #1b63f1;
  --blue-deep: #1238ca;
  --blue-soft: #e8f4ff;
  --orange-soft: #fff7e8;
  --orange-line: #f7d9a1;
  --teal-soft: #ebf9ff;
  --teal-line: #c8e8f2;
  --danger: #bf2f3d;
  --success: #0f8d69;
  --footer: #101725;
  --shadow: 0 16px 34px rgba(17, 45, 92, 0.12);
  --shadow-soft: 0 10px 24px rgba(21, 34, 56, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[x-cloak] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top center,
      rgba(27, 99, 241, 0.08),
      transparent 28%
    ),
    linear-gradient(180deg, #f8f9fb 0%, #f2f4f8 100%);
}

.mobile-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(228, 234, 242, 0.9);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.page-shell,
.site-footer__inner {
  width: min(390px, calc(100% - 20px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: block;
  height: 38px;
  width: auto;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-lockup__mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}

.brand-lockup__bar {
  width: 7px;
  border-radius: 999px;
  display: inline-block;
}

.brand-lockup__bar--1 {
  height: 12px;
  background: #3157d8;
}

.brand-lockup__bar--2 {
  height: 14px;
  background: #f9c74f;
}

.brand-lockup__bar--3 {
  height: 16px;
  background: #f04a3e;
}

.brand-lockup__eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #768298;
}

.brand-lockup__title {
  margin: 1px 0 0;
  font-size: 12px;
  font-weight: 800;
}

.menu-dots {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-dots span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #3a4658;
}

.page-main {
  flex: 1 0 auto;
  padding: 14px 0 24px;
}

.page-shell {
  display: grid;
  gap: 12px;
}

.promo-card,
.form-shell,
.support-card {
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.promo-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 255, 255, 0.2),
      transparent 24%
    ),
    radial-gradient(
      circle at 18% 70%,
      rgba(255, 255, 255, 0.14),
      transparent 30%
    ),
    linear-gradient(135deg, #1f73ff 0%, #1242d8 48%, #102fa6 100%);
}

.promo-hero {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.promo-card__glow {
  position: absolute;
  inset: auto -35px -45px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.promo-card__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  text-align: center;
}

.promo-card__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.promo-card h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.promo-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.promo-card strong {
  font-size: 28px;
  font-weight: 800;
  color: #ffe173;
}

.notice-stack {
  display: grid;
  gap: 10px;
}

.notice-card {
  min-height: 62px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border-radius: 14px;
  border: 1px solid;
  box-shadow: var(--shadow-soft);
}

.notice-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #55647c;
}

.notice-card__icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.notice-card--warning {
  background: var(--orange-soft);
  border-color: var(--orange-line);
}

.notice-card--warning .notice-card__icon {
  color: #d78100;
  background: rgba(255, 188, 68, 0.18);
}

.notice-card--info {
  background: var(--teal-soft);
  border-color: var(--teal-line);
}

.notice-card--info .notice-card__icon {
  color: #177ba1;
  background: rgba(23, 123, 161, 0.14);
}

.form-shell {
  overflow: hidden;
}

.form-shell__body {
  padding: 0;
}

.form-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 15px;
  padding: 22px 18px 20px;
}

.form-copy {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.form-copy__eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.form-copy h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.form-copy__lead,
.hint,
.form-card > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.hint strong,
.form-card > p strong {
  color: var(--text);
}

.hint--error {
  color: var(--danger);
  font-weight: 700;
}

.field-stack {
  display: grid;
  gap: 8px;
}

.error-message {
  margin: -2px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--danger);
  font-weight: 700;
}

.otp-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

.otp-fieldset legend {
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: #415067;
}

.otp-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.otp-box {
  min-height: 76px;
  padding: 0;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  border-radius: 18px;
  border: 2px solid #d9e2ee;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.otp-box:focus {
  border-color: rgba(27, 99, 241, 0.72);
  box-shadow: 0 0 0 5px rgba(27, 99, 241, 0.12);
}

label {
  font-size: 13px;
  font-weight: 700;
  color: #415067;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

input::placeholder {
  color: #abb4c3;
}

input:focus {
  outline: none;
  border-color: rgba(27, 99, 241, 0.55);
  box-shadow: 0 0 0 4px rgba(27, 99, 241, 0.12);
}

.input-decor {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #ffffff;
}

.input-decor:focus-within {
  border-color: rgba(27, 99, 241, 0.55);
  box-shadow: 0 0 0 4px rgba(27, 99, 241, 0.12);
}

.input-invalid,
.input-invalid:focus,
.input-decor.input-invalid,
.input-decor.input-invalid:focus-within {
  border-color: rgba(191, 47, 61, 0.72);
  box-shadow: 0 0 0 4px rgba(191, 47, 61, 0.12);
}

.input-decor__flag {
  font-size: 16px;
}

.input-decor input {
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.input-decor input:focus {
  box-shadow: none;
}

button,
.button-link {
  min-height: 50px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(18, 56, 202, 0.22);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease;
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
}

.button-link--secondary {
  background: linear-gradient(135deg, #6d7f97 0%, #56667d 100%);
  box-shadow: 0 14px 24px rgba(86, 102, 125, 0.22);
}

button:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.toast-layer {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  pointer-events: none;
}

.toast-card {
  width: min(340px, calc(100vw - 28px));
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  border: 1px solid #cfe7f2;
  border-left: 5px solid #2a6de8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(17, 45, 92, 0.16);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms ease;
  pointer-events: none;
}

.toast-card.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-card__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(23, 123, 161, 0.14);
  color: #177ba1;
  font-size: 15px;
  font-weight: 800;
}

.toast-card__body strong {
  display: block;
  margin: 2px 0 4px;
  font-size: 15px;
  color: #2e6db6;
}

.toast-card__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #33516f;
}

.toast-card__body small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #8d99aa;
}

.toast-card__close {
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #a1acbb;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.toast-card__close:hover {
  transform: none;
  color: #6f7f94;
}

.form-splash {
  position: absolute;
  inset: 0;
  padding: 24px 22px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.form-splash strong {
  font-size: 18px;
}

.form-splash p {
  margin: 0;
  max-width: 24ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.form-splash__spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 3px solid rgba(27, 99, 241, 0.18);
  border-top-color: var(--blue);
  animation: spin 0.7s linear infinite;
}

.support-card {
  padding: 20px 18px;
  display: grid;
  gap: 12px;
}

.support-card__eyebrow {
  margin: 0;
  color: #434f63;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.support-card h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.support-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.support-card__amount {
  padding: 16px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  border: 1px solid var(--line);
  text-align: center;
}

.support-card__amount span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #9ea8b8;
}

.support-card__amount strong {
  display: block;
  margin-top: 8px;
  font-size: 36px;
  line-height: 1;
  color: #f24538;
}

.support-card__note {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border-radius: 14px;
  background: var(--orange-soft);
  border: 1px solid var(--orange-line);
}

.support-card__note span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 188, 68, 0.18);
  color: #d78100;
  font-size: 12px;
  font-weight: 800;
}

.support-card__note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #715f2f;
}

.error-card {
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
}

.success-card {
  background: linear-gradient(180deg, #f3fffa 0%, #ffffff 100%);
}

.confirm-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.summary-block {
  display: grid;
  gap: 8px;
}

.summary-value {
  min-height: 56px;
  padding: 16px 18px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #f7f9fc;
  font-size: 18px;
  font-weight: 700;
  color: #25344b;
}

.confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.error-card .form-copy__eyebrow {
  color: var(--danger);
}

.success-card .form-copy__eyebrow {
  color: var(--success);
}

.site-footer {
  margin-top: 18px;
  padding: 20px 0 26px;
  background: var(--footer);
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__inner {
  display: grid;
  gap: 10px;
}

.site-footer__inner strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 8px;
}

.site-footer__inner p,
.site-footer__inner span {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);
}

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

@media (max-width: 380px) {
  .form-copy__eyebrow,
  .support-card h3,
  .promo-card h1 {
    font-size: 24px;
  }

  .otp-grid {
    gap: 8px;
  }

  .otp-box {
    min-height: 68px;
    font-size: 26px;
    border-radius: 16px;
  }

  .site-header__inner,
  .page-shell,
  .site-footer__inner {
    width: calc(100% - 16px);
  }
}

@media (max-width: 640px) {
  .toast-layer {
    right: 10px;
    left: 10px;
    bottom: 12px;
  }

  .toast-card {
    width: 100%;
  }
}
