/* ─── AUTH MODAL ──────────────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.auth-overlay[hidden] { display: none; }

/* Поки відкритий будь-який попап — сторінка не скролиться */
html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.no-scroll {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #1a1a1a;
  border: 1px solid #2e2e30;
  border-radius: 24px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 64px rgb(0 0 0 / 55%);
}
.auth-modal--wide { max-width: 760px; padding: 28px 32px 32px; }
.auth-modal--success {
  max-width: 739px;
  background: #000;
  border-color: #2a2a2e;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 24px rgb(0 0 0 / 50%);
}
.auth-modal--success .auth-close {
  top: 26px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: #2a2a2e;
  color: #fff;
}

.auth-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2c2c2e;
  color: #c8c8cc;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.auth-close:hover { background: #3a3a3e; color: #fff; }

.auth-head {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 44px 20px 0;
  line-height: 1.3;
}

.auth-panel[hidden] { display: none; }

/* form */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #242426;
  border-radius: 14px;
  margin-bottom: 14px;
}
.auth-tab {
  height: 40px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #8e8e93;
}
.auth-tab.is-active {
  background: #3a3a3e;
  color: #fff;
}
/* Тимчасово: реєстрація лише поштою — один таб на всю ширину */
.auth-tabs--single { grid-template-columns: 1fr; }

.auth-form { display: flex; flex-direction: column; gap: 12px; }

.auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  background: #242426;
  border: 1px solid #2c2c2e;
  border-radius: 14px;
}
.auth-field[hidden] { display: none !important; }
.auth-form--email #auth-phone-wrap,
.auth-form--email #auth-otp-wrap { display: none !important; }
.auth-form--phone #auth-email-wrap { display: none !important; }
.auth-field:focus-within { border-color: #4a4a4e; }

.auth-dial {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding-right: 10px;
  border-right: 1px solid #3a3a3e;
  height: 24px;
}
.auth-dial img,
.auth-flag {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: contain;
}
.auth-dial svg.chev { opacity: .55; }

.auth-field__icon {
  display: flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.auth-field__icon svg {
  width: 100%;
  height: 100%;
}

.auth-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
}
.auth-field input::placeholder { color: #6e6e73; }

.auth-bonus {
  position: relative;
  z-index: 3;
  user-select: none;
}
.auth-bonus__head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  background: #242426;
  border: 1px solid #2c2c2e;
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.auth-bonus__head:hover,
.auth-bonus.is-open .auth-bonus__head {
  border-color: #4a4a4e;
}
.auth-bonus__head::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #8e8e93;
  border-bottom: 2px solid #8e8e93;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.auth-bonus.is-open .auth-bonus__head::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.auth-bonus__icon {
  display: flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.auth-bonus__icon svg {
  width: 100%;
  height: 100%;
}
.auth-bonus__list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 5;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: #242426;
  border: 1px solid #2c2c2e;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgb(0 0 0 / 45%);
}
.auth-bonus.is-open .auth-bonus__list { display: flex; }
.auth-bonus__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.auth-bonus__item:hover,
.auth-bonus__item.is-active {
  background: rgba(247, 49, 48, 0.16);
  color: #ff6b6b;
}

.auth-otp {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-otp[hidden] { display: none; }
.auth-otp-hint {
  margin: 0;
  font-size: 13px;
  color: #8e8e93;
}
.auth-otp-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.auth-otp-digit {
  height: 52px;
  width: 100%;
  text-align: center;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: #242426;
  border: 1px solid #2c2c2e;
  border-radius: 14px;
  outline: 0;
}
.auth-otp-digit:focus { border-color: #4a4a4e; }
.auth-otp-resend {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: #7fd99a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.auth-otp-resend[hidden] { display: none; }
.auth-otp-resend:disabled { color: #6e6e73; cursor: default; }

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #8e8e93;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}
.auth-check input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  position: relative;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1px solid #3a3a3e;
  border-radius: 4px;
  background: #242426;
  cursor: pointer;
}
.auth-check input:hover { border-color: #f73130; }
.auth-check input:checked {
  background: #f73130;
  border-color: #f73130;
}
.auth-check input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.auth-rules-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-rules-link:hover { color: #f73130; }

.auth-error {
  font-size: 13px;
  color: #f73130;
  min-height: 0;
  margin-top: -4px;
  white-space: pre-line;
  line-height: 1.35;
}
.auth-error:empty { display: none; }

.auth-submit {
  width: 100%;
  height: 52px;
  margin-top: 4px;
  font-size: 16px;
}

.auth-login-row {
  text-align: center;
  font-size: 14px;
  color: #8e8e93;
  margin-top: 4px;
}
.auth-login-row a {
  color: #f73130;
  font-weight: 600;
  margin-left: 4px;
}
.auth-login-row a:hover { text-decoration: underline; }

.auth-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #5a2a2a;
  border-radius: 14px;
  color: #c8c8cc;
  font-size: 13.5px;
  line-height: 1.35;
}

/* success / exists */
.auth-hero {
  text-align: center;
  margin: 8px 0 22px;
}
.auth-shield {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #1e3a24 0%, #152018 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgb(34 80 48 / 18%);
}
.auth-hero h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.auth-hero p {
  font-size: 15px;
  color: #8e8e93;
}
.auth-exists-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  /* Єдиний заголовок панелі exists — вирівнюємо перший рядок по центру крестика:
     крестик top 20px + height 36px → центр 38px від краю модалки,
     padding модалки 28px → 10px від верху контенту,
     половина рядка при line-height 1.3 = 0.65em */
  margin: calc(10px - 0.65em) 44px 22px 0;
}

.auth-creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.auth-cred {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px 10px 14px;
  background: #242426;
  border: 1px solid #333336;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.auth-cred:hover { border-color: #4a4a4e; }
.auth-cred.is-copied {
  border-color: rgb(16 185 129 / 55%);
  background: rgb(16 185 129 / 10%);
}
.auth-cred.is-copied img,
.auth-cred.is-copied svg {
  filter: brightness(0) saturate(100%) invert(63%) sepia(52%) saturate(498%) hue-rotate(101deg) brightness(95%) contrast(88%);
}
.auth-cred span {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #8e8e93;
}
.auth-cred b { color: #fff; font-weight: 700; }
.auth-cred svg,
.auth-cred img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.auth-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px 16px;
  background: #222224;
  border: 1px solid #2c2c2e;
  border-radius: 16px;
  min-height: 100%;
}
.auth-card__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.auth-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #2c2c2e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.auth-ico img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.auth-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.auth-card__desc {
  font-size: 13px;
  color: #8e8e93;
  line-height: 1.4;
  flex: 1;
}
.auth-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.auth-card__head h3 { margin: 0; }

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  width: fit-content;
}
.auth-badge img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.auth-badge--ok {
  color: #10b981;
  border: 1px solid rgb(16 185 129 / 35%);
  background: rgb(16 185 129 / 10%);
}
.auth-badge--warn {
  color: #e57373;
  border: 1px solid #6b3030;
  background: rgb(247 49 48 / 8%);
}

.auth-btn-green {
  width: 100%;
  height: 48px;
  margin-top: auto;
  background: #82b03a;
  color: #fff;
  box-shadow: none;
}
.auth-btn-green:hover { filter: brightness(1.06); }
.auth-card .btn-dl-row {
  width: 100%;
  margin-top: auto;
  flex-wrap: nowrap;
}
.auth-card .btn-dl-row .auth-btn-green,
.auth-card .btn-dl-row .btn-ios {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  margin-top: 0;
  padding: 0 12px;
  font-size: 14px;
}
.auth-btn-green img,
.auth-btn-red img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.auth-shield img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.auth-btn-red {
  width: 100%;
  height: 48px;
  margin-top: auto;
  box-shadow: none;
}

.auth-card-foot {
  border-top: 1px solid #333336;
  padding-top: 12px;
  margin-top: 4px;
}
.auth-card-foot p {
  font-size: 13px;
  color: #8e8e93;
  margin-bottom: 4px;
}
.auth-card-foot a {
  color: #f73130;
  font-size: 14px;
  font-weight: 600;
}
.auth-card-foot a:hover { text-decoration: underline; }

.auth-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2100;
  padding: 10px 18px;
  border-radius: 10px;
  background: #2c2c2e;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.auth-toast.is-on { opacity: 1; }

/* success popup */
.success-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.success-panel[hidden] { display: none; }
.success-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 40px;
  padding-right: 48px;
}
.success-hint {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #34d399;
}
.success-panel[data-step="download"] .success-hint { color: #fb7185; }
.success-panel[data-step="done"] .success-hint { color: #e5e7eb; }
.success-hint::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
  animation: success-dot 1.4s ease-out infinite;
}
@keyframes success-dot {
  0% { box-shadow: 0 0 0 0 rgb(52 211 153 / 55%); }
  100% { box-shadow: 0 0 0 8px transparent; }
}
.success-panel[data-step="copy"] .success-cred:not([data-copied="1"]) {
  border-color: #10b981;
  animation: success-glow 1.5s ease-in-out infinite;
}
.success-cred[data-copied="1"] { border-color: rgb(16 185 129 / 55%); }
@keyframes success-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgb(16 185 129 / 0%); }
  50% { box-shadow: 0 0 0 4px rgb(16 185 129 / 28%); }
}
.success-panel[data-step="download"] .success-dl__btn--apk {
  animation: success-glow-green 1.5s ease-in-out infinite;
}
.success-panel[data-step="download"] .success-dl__btn--ios {
  animation: success-glow-red 1.5s ease-in-out infinite;
}
@keyframes success-glow-green {
  0%, 100% { box-shadow: 0 0 0 0 rgb(22 163 74 / 0%); }
  50% { box-shadow: 0 0 0 4px rgb(22 163 74 / 35%); }
}
@keyframes success-glow-red {
  0%, 100% { box-shadow: 0 0 0 0 rgb(224 29 28 / 0%); }
  50% { box-shadow: 0 0 0 4px rgb(224 29 28 / 40%); }
}
.success-step {
  padding: 2px 6px;
  border-radius: 8px;
  opacity: .72;
  transition: background .35s ease, opacity .35s ease;
}
.success-step.is-live {
  opacity: 1;
  background: rgb(255 255 255 / 14%);
}
@media (prefers-reduced-motion: reduce) {
  .success-hint::before,
  .success-panel[data-step="copy"] .success-cred:not([data-copied="1"]),
  .success-panel[data-step="download"] .success-dl__btn--apk,
  .success-panel[data-step="download"] .success-dl__btn--ios {
    animation: none;
  }
}
.success-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.success-title img { width: 20px; height: 20px; flex-shrink: 0; }

.success-creds {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: #0b0b12;
  border: 1px solid #1f1f2a;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 40%);
}
.success-creds__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.success-creds__head p {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.success-pill {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgb(16 185 129 / 10%);
  color: #10b981;
  font-size: 11px;
  font-weight: 700;
}
.success-creds__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.success-cred {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 48px;
  padding: 0 14px;
  background: #171720;
  border: 1px solid #2a2a36;
  border-radius: 14px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.success-cred:hover { border-color: #3a3a48; }
.success-cred.is-copied { border-color: rgb(16 185 129 / 55%); }
.success-cred span {
  min-width: 0;
  font-size: 13px;
  color: rgb(235 235 245 / 60%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.success-cred b {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.success-cred img { width: 22px; height: 22px; flex-shrink: 0; }

.success-app { display: flex; flex-direction: column; gap: 12px; }
.success-banner {
  position: relative;
  height: 169px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #000;
}
.success-banner img { max-width: none; }
.success-banner__bg {
  position: absolute;
  left: -18%;
  top: -220%;
  width: 220%;
  height: 540%;
  object-fit: cover;
  filter: blur(5px);
  pointer-events: none;
}
.success-banner__phone {
  position: absolute;
  right: 4%;
  top: -18px;
  width: 210px;
  height: auto;
  transform: rotate(-8deg);
  pointer-events: none;
}
.success-banner__chip {
  position: absolute;
  object-fit: cover;
  pointer-events: none;
}
.success-banner__chip--a {
  right: 34%;
  top: -16px;
  width: 44px;
  height: 34px;
  opacity: .6;
  transform: rotate(28deg);
}
.success-banner__chip--gold {
  right: 2%;
  top: -16px;
  width: 98px;
  height: 98px;
}
.success-banner__chip--b {
  right: 8%;
  bottom: -28px;
  width: 93px;
  height: 71px;
  transform: rotate(-24deg);
}
.success-banner__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65px;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(0 0 0 / 80%) 48%, #000);
}
.success-banner__copy {
  position: absolute;
  left: 12px;
  top: 18px;
  z-index: 1;
  color: #fff;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #e01d1c, 0 0 20px #e01d1c;
}
.success-banner__copy p:first-child { font-size: 28px; line-height: 1; }
.success-banner__copy p:last-child { margin-top: 6px; font-size: 36px; line-height: 1; }
.success-banner__steps {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.success-banner__steps img { width: 18px; height: 24px; flex-shrink: 0; object-fit: contain; }
.success-banner__steps span:nth-of-type(2) { max-width: 126px; }
.success-banner__steps span:nth-of-type(3) { max-width: 150px; }

.success-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.success-dl__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.success-dl__btn--apk { background: #16a34a; }
.success-dl__btn--ios { background: #e01d1c; }
.success-dl__btn:hover { filter: brightness(1.06); }
.success-dl__btn img { flex-shrink: 0; }

.success-perks { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.success-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
  background: #11111a;
  border: 1px solid #23232d;
  border-radius: 16px;
}
.success-perk__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgb(224 29 28 / 8%);
  border: 1px solid rgb(224 29 28 / 20%);
}
.success-perk__ico img { width: 20px; height: 20px; }
.success-perk p {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.success-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}
.success-foot p { font-size: 13px; color: #9ca3af; }
.success-guide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: #1b1b25;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.success-guide:hover { background: #242433; }
.success-guide img { width: 6px; height: 9px; }

@media (max-width: 720px) {
  .auth-overlay {
    padding: 12px;
    align-items: center;
  }
  .auth-modal {
    max-width: 100%;
    max-height: min(92dvh, calc(100vh - 24px));
    padding: 20px 16px 16px;
    border-radius: 24px;
  }
  .auth-modal--wide { max-width: 100%; padding: 20px 16px 16px; }
  .auth-close {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
  }
  /* крестик по вертикальному центру строки заголовка */
  .auth-head {
    font-size: 17px;
    min-height: 32px;
    display: flex;
    align-items: center;
    margin: 0 40px 16px 0;
  }
  .auth-exists-title {
    font-size: 22px;
    /* крестик top 16px + height 32px → центр 32px, padding модалки 20px → 12px */
    margin: calc(12px - 0.65em) 40px 16px 0;
  }
  .auth-hero { margin: 0 0 16px; }
  .auth-hero h2 { font-size: 22px; }
  .auth-shield { width: 64px; height: 64px; }
  .auth-creds,
  .auth-split { grid-template-columns: 1fr; gap: 10px; }
  .auth-card { padding: 16px 14px 14px; }
  .auth-tab { font-size: 16px; height: 42px; }
  .auth-field { height: 54px; }
  .auth-field input { font-size: 16px; }
  .auth-submit { height: 52px; font-size: 17px; }

  .auth-modal { min-width: 0; width: 100%; max-width: calc(100vw - 24px); }
  .auth-modal--success {
    padding: 16px;
    border-radius: 20px;
    overflow-x: hidden;
  }
  .success-panel,
  .success-creds,
  .success-app,
  .success-banner,
  .success-dl,
  .success-perks,
  .success-foot {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .auth-modal--success .auth-close {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
  }
  .success-panel { gap: 12px; }
  .success-head { gap: 4px; min-height: 0; padding-right: 40px; }
  .success-title { font-size: 22px; gap: 6px; }
  .success-title img { width: 14px; height: 14px; }
  .success-hint { font-size: 12px; }
  .success-creds { gap: 14px; padding: 16px; }
  .success-creds__head {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }
  .success-creds__head p {
    flex: 1 1 0;
    min-width: 0;
    max-width: 58%;
    font-size: 13px;
    line-height: 1.3;
  }
  .success-pill { padding: 6px 9px; font-size: 10px; white-space: nowrap; }
  .success-creds__row { grid-template-columns: 1fr; gap: 8px; }
  .success-cred { height: 44px; }
  .success-app { gap: 0; }
  .success-banner { height: 151px; }
  .success-banner__copy { top: 14px; left: 11px; }
  .success-banner__copy p:first-child { font-size: 20px; }
  .success-banner__copy p:last-child { margin-top: 2px; font-size: 24px; }
  .success-banner__phone { width: 148px; right: -18px; top: 4px; }
  .success-banner__chip--a { width: 34px; height: 26px; right: 28%; top: -6px; }
  .success-banner__chip--gold { width: 48px; height: 48px; right: -4px; top: -10px; }
  .success-banner__chip--b { width: 52px; height: 40px; right: 18%; bottom: 28px; }
  .success-banner__steps {
    left: 8px;
    right: 4px;
    bottom: 6px;
    flex-wrap: nowrap;
    gap: 2px;
    font-size: 12px;
  }
  .success-banner__steps img { width: 12px; height: 12px; }
  .success-banner__steps span { min-width: 0; padding: 1px 2px; }
  .success-banner__steps span:nth-of-type(1) { max-width: 74px; }
  .success-banner__steps span:nth-of-type(2) { max-width: 108px; }
  .success-banner__steps span:nth-of-type(3) { max-width: 118px; }
  .success-dl { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 0; }
  .success-dl__btn { min-width: 0; gap: 6px; padding: 0 8px; }
  .success-perks {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    margin-top: 12px;
  }
  .success-perk {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    padding: 10px 6px;
    text-align: center;
  }
  .success-perk p { font-size: 13px; text-align: center; }
  .success-foot {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 0;
    text-align: center;
  }
  .success-foot p { width: 100%; text-align: center; }
  .success-guide { justify-content: center; height: 38px; }
}
