/* ==========================================================================
   Topbet-style reskin
   Layers on top of the existing template CSS to bring the red/dark visual
   language (tabs, phone/OTP flow, success modal) without touching the
   underlying markup contracts the JS relies on.
   ========================================================================== */

:root {
  --accent: #d21502;
  --accent-hover: #e01d1c;
  --success: #35d953;
  --card-bg: #131416;
  --field-bg: #26272a;
  --field-border: transparent;
  --card-glass: rgba(10, 10, 11, 0.35);
  --card-glass-solid: rgba(10, 10, 11, 0.8);
  --card-glass-blur: 10px;
  --card-glass-border: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.14) 28%,
    rgba(255, 255, 255, 0.04) 52%,
    rgba(255, 255, 255, 0.1) 76%,
    rgba(255, 255, 255, 0.28) 100%
  );
  --card-glow-desktop: 0 4px 200px #d21502cc;
  --card-glow-mobile: 0 4px 100px rgba(210, 21, 2, 0.2);
  --form-overlay-top-mobile: clamp(150px, 36svh, 280px);
  --form-overlay-top-tablet: clamp(300px, 42svh, 480px);
}

html,
body {
  background-color: var(--card-bg);
}

/* ---------- typography (Figma) ---------- */

.offer1,
.offer2,
.offer3,
.form__tabs span,
.form__button-submit,
.form__button-submit-code,
.success-modal__title,
.success-modal__cta,
.modal__text,
.language-select .active-lang span,
.language-select .lang-list button {
  font-family: var(--tb-display);
}

.form__confirm p,
.form__confirm p span,
.form__confirm p a,
.form__footer,
.form__footer span,
.input,
.phone-field .phone__input,
.email-input-wrap .input,
.dropdown__title,
.dropdown__list li,
.dropdown__list li span,
.success-modal,
.success-modal__desc,
.success-modal__ok,
.success-modal__note,
.success-modal__label,
.success-modal__value,
.otp-hint__text,
.otp-timer-row {
  font-family: var(--tb-body);
}

/* ---------- layout shell (titles + form) ---------- */

.form__block {
  max-width: 548px;
}

.form__shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  isolation: isolate;
}

.form__shell::before,
.form__wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--card-glass-border);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.form__shell > *,
.form__wrap > * {
  position: relative;
  z-index: 2;
}

.form__wrap > .form__object {
  position: absolute;
  z-index: 0;
}

.form__wrap {
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
  isolation: isolate;
}

.form__object {
  display: none;
}

.form__title {
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.form__head-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 0;
}

.offer1,
.offer2,
.offer3 {
  margin: 0;
  text-align: center;
}

.offer1 {
  font-size: 90px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 0 50px #d21502, 2px 2px 0 #9a9a9a;
}

.offer2 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #d21502;
}

.offer3 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  text-transform: none;
}

/* ---------- desktop: glass panel wraps titles + form ---------- */

@media screen and (min-width: 1025px) {
  :root {
    /* One px of the 1920×1080 Figma frame — scales the whole desktop layout on laptops */
    --fu: min(0.0520833vw, 0.0925926vh, 1.25px);
    --height-element: calc(48 * var(--fu));
    --card-glow-desktop: 0 calc(4 * var(--fu)) calc(200 * var(--fu)) #d21502cc;
    --desktop-logo-inset: calc(165 * var(--fu));
    --desktop-form-inset: calc(255 * var(--fu));
    --desktop-lang-inset: calc(220 * var(--fu));
  }

  .form__shell {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: calc(24 * var(--fu));
    padding: calc(48 * var(--fu)) calc(24 * var(--fu)) calc(54 * var(--fu));
    border-radius: calc(16 * var(--fu));
    background: var(--card-glass);
    backdrop-filter: blur(var(--card-glass-blur));
    -webkit-backdrop-filter: blur(var(--card-glass-blur));
    box-shadow: var(--card-glow-desktop);
  }

  .form__title {
    margin: 0 !important;
  }

  .form__wrap::before {
    content: none;
  }

  .form__wrap {
    padding: 0 calc(8 * var(--fu));
  }

  .form__register {
    padding: 0;
    gap: calc(8 * var(--fu));
  }
}

/* Small laptops — keep a readable minimum without oversizing */
@media screen and (min-width: 1025px) and (max-width: 1366px) {
  :root {
    --fu: max(0.85px, min(0.0520833vw, 0.0925926vh, 0.9px));
  }

  .form__shell {
    padding: calc(48 * var(--fu)) calc(32 * var(--fu)) calc(54 * var(--fu));
  }

  .form__wrap {
    padding: 0 calc(12 * var(--fu));
  }
}

/* MacBook / laptop range — cap scale so the form doesn't feel huge at 100% zoom */
@media screen and (min-width: 1250px) and (max-width: 1919px) {
  :root {
    --fu: min(0.88px, min(0.0520833vw, 0.0925926vh, 1.1px));
  }
}

/* ---------- tablet/mobile: titles outside, form glass card over banner ---------- */

@media screen and (max-width: 1024px) {
  .app {
    display: block;
    position: relative;
    min-height: 100svh;
    height: auto;
    overflow-x: hidden;
    background-color: var(--card-bg);
  }

  /* Long banners fill the viewport; form sits on top like vault-lp over video */
  .tablet-banner,
  .mobile-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100svh;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
    pointer-events: none;
  }

  .form__block {
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    min-height: auto;
    margin: 0 auto;
    padding: var(--form-overlay-top-tablet) 16px 16px;
    justify-content: flex-start;
    flex-grow: 0;
    gap: 12px;
    max-width: 100%;
    width: 100%;
  }

  .form__title {
    margin: 0 !important;
    padding: 0 12px;
  }

  .form__wrap {
    margin-top: 0 !important;
    max-width: 340px;
    padding: 16px 16px 32px;
    border-radius: 16px;
    background: var(--card-glass-solid);
    backdrop-filter: blur(var(--card-glass-blur));
    -webkit-backdrop-filter: blur(var(--card-glass-blur));
    box-shadow: var(--card-glow-mobile);
    overflow: visible;
  }

  .form__object {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(100px, 32vw, 140px);
    height: auto;
    z-index: 0;
    pointer-events: none;
    transform: translate(-42%, 60%);
  }

  .form__shell::before {
    content: none;
  }

  .form__shell {
    gap: 16px;
    align-items: center;
    width: 100%;
  }

  .form__head-content {
    gap: 17px;
  }

  /* vault-lp: clamp(38px, 13.5vw, 64px) / clamp(21px, 7.5vw, 28px) / 18px
     max подрезан с 64px до 54px, чтобы тайтл не переносился на 2 строки на Windows */
  .offer1 {
    font-size: clamp(36px, 11.5vw, 54px);
    text-shadow: 0 0 36.2px #d21502, 1px 1px 0 #9a9a9a;
  }

  .offer2 {
    font-size: clamp(21px, 7.5vw, 28px);
  }

  .offer3 {
    font-size: 18px;
  }

  .payments {
    position: relative;
    z-index: 1;
    margin: 0 auto 0;
    justify-content: center;
    width: 100%;
    padding: 0 12px;
  }

  .payments img {
    width: 100%;
    max-width: 360px;
  }

  .input,
  .phone-field .phone__input,
  .email-input-wrap .input,
  .dropdown__title,
  .dropdown__list li,
  .dropdown__list li span,
  .form__register .register-drop-bonus .dropdown__title,
  .form__register .register-drop-bonus .dropdown__list li,
  .form__register .register-drop-bonus .dropdown__list li span {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
  }

  .register-country .country__code {
    display: none;
  }
}

@media screen and (max-width: 530px) {
  .form__block {
    padding-top: var(--form-overlay-top-mobile);
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    gap: 8px;
    min-height: auto;
  }

  .form__shell {
    gap: 10px;
  }

  .form__head-content {
    gap: 10px;
  }

  .offer3 {
    font-size: 16px;
  }

  .form__wrap {
    padding-bottom: 20px;
  }

  .form__object {
    transform: translate(-42%, 78%);
  }

  .payments {
    margin: 0 auto;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- tabs (match templatev2 .tabs / .tab) ---------- */

.form__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-radius: 0;
}

.form__tabs span[data-tabs] {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--field-bg);
  color: #727272;
  font: 600 13px/1 var(--tb-display);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.form__tabs .tab__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
}

.form__tabs span [data-text] {
  line-height: 1;
  background: transparent;
  border: 0;
  padding: 0;
  height: auto;
  flex: none;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  cursor: inherit;
}

.form__tabs .tab-icon,
.form__tabs .tab__label > svg {
  flex: none;
  width: 16px;
  height: 16px;
  display: block;
}

.form__tabs span[data-tabs="phone"] .tab-icon {
  width: 14px;
  height: 14px;
}

.form__tabs span[data-tabs].active {
  background: var(--accent) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none;
}

.input-wrap .input-icon {
  width: auto;
  height: 24px;
  left: 12px;
}

.email-input-wrap .input-icon {
  width: auto;
  height: 16px;
  left: 12px;
}

.email-input-wrap .input,
.input-wrap:has(#promocode-input) .input {
  padding-left: 40px;
}

.register-drop-bonus .dropdown__head .dropdown-icon {
  width: 19px;
  height: 19px;
  left: 12px;
}

.language-select .active-lang__arrow {
  filter: none;
}

/* ---------- inputs & dropdowns ---------- */

.container-inputs > .input-wrap:has(#promocode-input) {
  display: none;
}

.register-drop-currency {
  display: none;
}

.payments {
  display: none;
}

/* Figma field rhythm: 8px between rows, 16px before CTA, 24px before footer link */
.form__register {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.container-inputs {
  gap: 8px;
}

.send-sms-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.phone__input-wrap {
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 0;
}

.form__footer-wrap {
  margin-top: 16px;
}

.form__confirm {
  margin: 20px 0 0;
  padding: 0;
  width: 100%;
}

.form__confirm p,
.form__confirm p span,
.form__confirm p a {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: normal;
  -webkit-text-size-adjust: 100%;
}

.form__confirm p span {
  color: #888;
}

.form__confirm p a {
  color: var(--accent);
  text-decoration: none;
}

.form__footer {
  margin-top: 24px;
  font-size: 14px;
}

.form__footer span {
  color: #fff;
}

.input,
.register-country,
.dropdown__head {
  background: var(--field-bg);
  border-color: transparent;
}

.input:focus,
.dropdown__head:focus-within {
  border-color: var(--accent);
}

.error-email-message,
.error-phone-message {
  left: 8px;
  top: 0;
  transform: translateY(-58%);
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.send-sms-wrap .invalid-number {
  display: none !important;
}

.register-country {
  background: var(--field-bg);
  border: 0;
  border-radius: 8px;
  justify-content: center;
  gap: 0;
  padding: 0 12px;
  flex: 0 0 auto;
  width: auto;
  min-width: unset;
}

.register-country .country__code {
  display: none;
}

.input,
.phone-field .phone__input,
.email-input-wrap .input,
.dropdown__title,
.dropdown__list li,
.dropdown__list li span {
  font-size: 16px;
}

.form__register .register-drop-bonus .dropdown__title,
.form__register .register-drop-bonus .dropdown__list li,
.form__register .register-drop-bonus .dropdown__list li span {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

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

.form__register .form__button-submit {
  margin-bottom: 0;
  align-self: center;
}

/* ---------- buttons ---------- */

.form__button-submit {
  border-radius: 8px;
  background: var(--accent);
  box-shadow: none;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 1px 0 #9b0e00;
  width: 100%;
  max-width: none;
  height: 44px;
  min-height: 44px;
  padding: 0 32px;
  margin: 0 auto;
  align-self: stretch;
  letter-spacing: 0.5px;
}

.form__button-submit [data-text="formSubmitBtn"],
.form__button-submit[data-text="formSubmitBtn"] {
  font-size: inherit;
  font-weight: inherit;
}

.form__button-submit:hover {
  background: var(--accent-hover);
  opacity: 1;
}

.form__confirm a,
.text-green {
  color: var(--accent);
}

/* ---------- phone row: "Get a Code" / check sewn into the phone field ---------- */

.phone-input-error-wrap {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.phone-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 46px;
  padding: 4px 4px 4px 0;
  border-radius: 8px;
  border: 0;
  background: var(--field-bg);
}

.phone-field .phone__input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.phone-field .phone__input:focus {
  border: 0;
}

#send-sms {
  display: none;
}

.form__button-submit-code {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  line-height: 1;
}

.form__button-submit-code:hover {
  background: var(--accent-hover);
  color: #fff;
}

.phone-hint {
  display: none;
  color: var(--success);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
  text-transform: none;
}

.phone-check {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: calc(var(--height-element) - 10px);
  margin-right: 4px;
}

.phone-check img {
  display: block;
  width: 15px;
  height: 15px;
}

/* ---------- OTP block (replaces the phone row in place) ---------- */

.otp-wrap {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
  padding-bottom: 8px;
}

.otp-hint {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
  font-size: 14px;
  line-height: 1.4;
  text-transform: none;
}

.otp-hint__text,
.otp-hint__text [data-text] {
  color: #a0a0a5;
}

.otp-hint__phone {
  color: var(--success);
  font-weight: 600;
}

.otp-edit {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: underline;
  text-transform: none;
  cursor: pointer;
}

.otp-wrap .input-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.otp-wrap .code-input {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--field-bg);
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  outline: none;
  caret-color: var(--accent);
}

.otp-wrap .code-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.otp-wrap .code-input:focus {
  border-color: var(--accent);
  color: #fff;
}

.otp-wrap .code-input.error-state {
  border-color: var(--accent);
  color: var(--accent);
}

.otp-wrap .error-code-message {
  position: static;
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  opacity: 1;
  pointer-events: none;
  transform: none;
  min-height: 0;
  font-size: 14px;
  color: var(--accent);
}

.otp-wrap .error-code-message:empty {
  display: none;
}

.otp-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.otp-timer-row .resend-timer {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  font-size: 14px;
  line-height: 1;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

.otp-timer-row .resend-timer__icon {
  flex: none;
  display: block;
  width: 15px;
  height: 15px;
  margin-right: 2px;
  color: #a0a0a5;
}

.otp-timer-row .resend-timer__label,
.otp-timer-row .resend-timer__label[data-text] {
  color: #a0a0a5;
  font-weight: 400;
}

.otp-timer-row .resend-timer__seconds,
.otp-timer-row .resend-timer__unit {
  color: var(--success);
  font-weight: 500;
}

.otp-timer-row .resend-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
}

.otp-timer-row .resend-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.otp-timer-row .resend-button:not(:disabled):hover {
  text-decoration: underline;
}

.register-drop-bonus .dropdown__list .dropdown-icon {
  display: none;
}

.register-drop-bonus .dropdown__list li {
  padding-left: 12px;
}

/* ---------- success modal ---------- */

.success-modal__wrap {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.success-modal__wrap.active {
  display: flex;
}

.success-modal {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--card-glass-solid);
  backdrop-filter: blur(var(--card-glass-blur));
  -webkit-backdrop-filter: blur(var(--card-glass-blur));
  border: 0;
  border-radius: 16px;
  box-shadow: var(--card-glow-mobile);
  text-align: center;
}

.success-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--card-glass-border);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.success-modal > * {
  position: relative;
  z-index: 2;
}

.success-modal__logo {
  width: 100px;
  height: auto;
}

.success-modal__title {
  margin: 0;
  font-size: clamp(22px, 6vw, 26px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 36.2px #d21502, 1px 1px 0 #9a9a9a;
}

.success-modal__ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.success-modal__ok [data-text] {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--success);
}

.success-modal__ok-icon {
  flex: none;
  display: block;
  width: 15px;
  height: 15px;
}

.success-modal__desc {
  margin: 0;
  font-size: 14px;
  color: #a0a0a5;
  line-height: 1.4;
  font-weight: 400;
}

.success-modal__creds {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.success-modal__cred {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  min-width: 0;
}

.success-modal__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #a0a0a5;
  text-transform: uppercase;
}

.success-modal__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 46px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--field-bg);
  border: 1px solid transparent;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.success-modal__field.is-copied {
  border-color: var(--success);
  box-shadow: 0 0 0 1px rgba(53, 217, 83, 0.35);
  background: rgba(53, 217, 83, 0.08);
}

.success-modal__field.is-copied .success-modal__value {
  color: var(--success);
}

.success-modal__value {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.success-modal__copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: #a0a0a5;
  cursor: pointer;
  transition: color 0.15s ease;
}

.success-modal__copy svg {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
}

.success-modal__copy-icon {
  display: block;
  flex: none;
}

.success-modal__copy-check {
  display: none;
  flex: none;
  width: 15px;
  height: 15px;
}

.success-modal__copy:hover {
  color: #fff;
}

.success-modal__copy.is-copied {
  color: var(--success);
}

.success-modal__copy.is-copied .success-modal__copy-icon {
  display: none;
}

.success-modal__copy.is-copied .success-modal__copy-check {
  display: block;
}

.success-modal__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #9b0e00;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.success-modal__cta:hover {
  background: var(--accent-hover);
}

.success-modal__note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #888;
  line-height: 1.4;
  font-weight: 400;
}

@media screen and (min-width: 1025px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .app {
    min-height: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .form__block {
    max-width: calc(548 * var(--fu));
    gap: calc(50 * var(--fu));
    margin: 0 var(--desktop-form-inset) 0 auto;
  }

  .logo {
    width: calc(260 * var(--fu));
    top: calc(60 * var(--fu));
    left: var(--desktop-logo-inset);
    transform: none;
  }

  .language-select {
    top: calc(64 * var(--fu));
    right: var(--desktop-lang-inset);
  }

  .language-select .active-lang {
    gap: calc(8 * var(--fu));
    padding: calc(8 * var(--fu)) calc(12 * var(--fu));
    border-radius: calc(8 * var(--fu));
  }

  .language-select > .active-lang span,
  .lang-list button {
    font-size: calc(24 * var(--fu));
    line-height: 1;
  }

  .active-lang img,
  .active-lang__arrow {
    width: calc(16 * var(--fu));
    height: calc(16 * var(--fu));
    filter: none;
  }

  .lang-list {
    padding: calc(10 * var(--fu)) calc(12 * var(--fu));
    border-radius: 0 0 calc(8 * var(--fu)) calc(8 * var(--fu));
  }

  .lang-list button {
    padding: calc(4 * var(--fu));
    border-radius: calc(4 * var(--fu));
  }

  .form__head-content {
    gap: calc(24 * var(--fu));
  }

  .offer1 {
    font-size: calc(78 * var(--fu));
    text-shadow:
      0 0 calc(50 * var(--fu)) #d21502,
      calc(2 * var(--fu)) calc(2 * var(--fu)) 0 #9a9a9a;
  }

  .offer2 {
    font-size: calc(44 * var(--fu));
  }

  .offer3 {
    font-size: calc(28 * var(--fu));
  }

  .form__tabs {
    gap: calc(8 * var(--fu));
    margin-bottom: calc(16 * var(--fu));
  }

  .form__tabs span[data-tabs] {
    height: calc(48 * var(--fu));
    padding: 0 calc(12 * var(--fu));
    font-size: calc(16 * var(--fu));
    border-radius: calc(8 * var(--fu));
  }

  .form__tabs .tab__label {
    gap: calc(10 * var(--fu));
  }

  .form__tabs .tab-icon,
  .form__tabs .tab__label > svg {
    width: calc(24 * var(--fu));
    height: calc(24 * var(--fu));
  }

  .form__tabs span[data-tabs="phone"] .tab-icon {
    width: calc(22 * var(--fu));
    height: calc(22 * var(--fu));
  }

  .input-wrap .input-icon {
    height: calc(24 * var(--fu));
    left: calc(12 * var(--fu));
  }

  .email-input-wrap .input-icon {
    width: auto;
    height: 14px;
    left: calc(12 * var(--fu));
  }

  .register-drop-bonus .dropdown__head .dropdown-icon {
    width: auto;
    height: 18px;
    left: calc(12 * var(--fu));
  }

  .email-input-wrap .input,
  .input-wrap:has(#promocode-input) .input {
    padding-left: calc(44 * var(--fu));
  }

  .dropdown__head {
    padding-left: calc(44 * var(--fu));
  }

  .form__wrap .input,
  .form__wrap .input::placeholder,
  .form__wrap .phone-field .phone__input,
  .form__wrap .email-input-wrap .input,
  .form__wrap .dropdown__title,
  .form__wrap .dropdown__list li,
  .form__wrap .dropdown__list li span,
  .form__wrap .register-country .country__code,
  .form__wrap .register-country .dropdown__title,
  .form__wrap .phone-hint,
  .form__wrap .form__button-submit-code,
  .form__wrap .otp-hint__text,
  .form__wrap .otp-timer-row,
  .form__wrap .register-drop-bonus .dropdown__title,
  .form__wrap .register-drop-bonus .dropdown__list li,
  .form__wrap .register-drop-bonus .dropdown__list li span {
    font-size: 16px;
  }

  .form__register {
    gap: calc(8 * var(--fu));
  }

  .container-inputs,
  .send-sms-wrap,
  .phone__input-wrap {
    gap: calc(8 * var(--fu));
  }

  .input {
    font-size: 16px;
    height: var(--height-element);
    padding: 0 calc(16 * var(--fu));
    border-radius: calc(8 * var(--fu));
  }

  .phone-field .phone__input {
    font-size: 16px;
  }

  .form__register .register-drop-bonus .dropdown__title,
  .form__register .register-drop-bonus .dropdown__list li,
  .form__register .register-drop-bonus .dropdown__list li span {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
  }

  .register-country .country__code {
    display: none;
  }

  .register-country,
  .dropdown__head {
    height: var(--height-element);
    border-radius: calc(8 * var(--fu));
  }

  .form__button-submit {
    width: 100%;
    max-width: none;
    height: calc(44 * var(--fu));
    min-height: calc(44 * var(--fu));
    padding: 0 calc(32 * var(--fu));
    font-size: calc(18 * var(--fu));
    border-radius: calc(8 * var(--fu));
    align-self: stretch;
    margin: 0 auto;
  }

  .form__footer-wrap {
    margin-top: calc(16 * var(--fu));
  }

  .form__confirm {
    margin: calc(20 * var(--fu)) 0 0;
    width: 100%;
  }

  .form__footer {
    margin-top: calc(24 * var(--fu));
    font-size: calc(14 * var(--fu));
  }

  .phone-field {
    min-height: calc(46 * var(--fu));
    border-radius: calc(8 * var(--fu));
  }

  .form__button-submit-code {
    height: calc(34 * var(--fu));
    padding: 0 calc(12 * var(--fu));
    font-size: calc(14 * var(--fu));
    border-radius: calc(8 * var(--fu));
  }

  .otp-wrap {
    gap: calc(16 * var(--fu));
    padding-bottom: calc(8 * var(--fu));
  }

  .otp-hint,
  .otp-wrap .error-code-message,
  .otp-timer-row .resend-timer,
  .otp-timer-row .resend-button {
    font-size: calc(14 * var(--fu));
  }

  .otp-edit {
    font-size: calc(12 * var(--fu));
  }

  .otp-wrap .input-wrapper {
    gap: calc(8 * var(--fu));
  }

  .otp-wrap .code-input {
    flex: 0 0 calc(48 * var(--fu));
    width: calc(48 * var(--fu));
    height: calc(48 * var(--fu));
    min-width: calc(48 * var(--fu));
    max-width: calc(48 * var(--fu));
    font-size: calc(20 * var(--fu));
    border-radius: calc(8 * var(--fu));
  }

  .otp-timer-row .resend-timer__icon {
    width: calc(15 * var(--fu));
    height: calc(15 * var(--fu));
  }

  .success-modal {
    max-width: calc(600 * var(--fu));
    gap: calc(20 * var(--fu));
    padding: calc(56 * var(--fu)) calc(32 * var(--fu));
    border-radius: calc(16 * var(--fu));
    box-shadow: var(--card-glow-desktop);
  }

  .success-modal__logo {
    width: calc(140 * var(--fu));
  }

  .success-modal__title {
    font-size: calc(36 * var(--fu));
    text-shadow:
      0 0 calc(36.2 * var(--fu)) #d21502,
      calc(1 * var(--fu)) calc(1 * var(--fu)) 0 #9a9a9a;
  }

  .success-modal__ok {
    font-size: calc(16 * var(--fu));
    gap: calc(8 * var(--fu));
    line-height: 1;
  }

  .success-modal__ok [data-text] {
    line-height: 1;
  }

  .success-modal__ok-icon {
    width: calc(17 * var(--fu));
    height: calc(17 * var(--fu));
  }

  .success-modal__desc {
    max-width: calc(460 * var(--fu));
    font-size: calc(16 * var(--fu));
  }

  .success-modal__creds {
    flex-direction: row;
    gap: calc(20 * var(--fu));
    margin-top: calc(12 * var(--fu));
  }

  .success-modal__cred {
    flex: 1 1 0;
    gap: calc(8 * var(--fu));
  }

  .success-modal__label {
    font-size: calc(13 * var(--fu));
  }

  .success-modal__field {
    height: calc(52 * var(--fu));
    padding: 0 calc(14 * var(--fu));
    border-radius: calc(8 * var(--fu));
  }

  .success-modal__value {
    font-size: calc(16 * var(--fu));
    line-height: 1;
  }

  .success-modal__copy {
    width: calc(24 * var(--fu));
    height: calc(24 * var(--fu));
  }

  .success-modal__copy svg {
    width: calc(17 * var(--fu));
    height: calc(17 * var(--fu));
  }

  .success-modal__copy-check {
    width: calc(16 * var(--fu));
    height: calc(16 * var(--fu));
  }

  .success-modal__cta {
    height: calc(56 * var(--fu));
    margin-top: calc(12 * var(--fu));
    border-radius: calc(8 * var(--fu));
    font-size: calc(22 * var(--fu));
  }

  .success-modal__note {
    font-size: calc(13 * var(--fu));
  }
}

/* ---------- responsive ---------- */

@media (max-width: 768px) {
  .form__tabs span[data-tabs] {
    height: 40px;
    font-size: 13px;
  }
}

@media (max-width: 530px) {
  .form__block {
    justify-content: flex-start;
    gap: 10px;
    flex-grow: 0;
  }

  .form__title {
    margin: 0 !important;
    padding: 0 12px;
  }

  .form__tabs span[data-tabs] {
    border-radius: 8px;
    font-size: 13px;
  }

  .phone__input-wrap {
    gap: 8px;
    margin-bottom: 0;
  }

  .register-country {
    padding: 0 8px;
    flex: 0 0 auto;
  }

  .phone-field {
    min-height: 40px;
    padding: 3px 3px 3px 0;
  }

  .form__button-submit-code {
    height: 34px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 8px;
  }

  .phone-check {
    width: 28px;
    height: calc(40px - 8px);
  }

  .phone-hint {
    font-size: 12px;
    line-height: 16px;
    text-align: left;
  }

  /* Topbet mobile mockups have no currency row — keep default from API */
  .register-drop-currency {
    display: none;
  }

  .container-inputs {
    flex-direction: column !important;
    gap: 8px;
    width: 100%;
  }

  .container-inputs .input-wrap,
  .container-inputs .register-drop-bonus {
    width: 100% !important;
    min-width: 0;
    margin-top: 0;
  }

  .email-input-wrap {
    margin-top: 0;
  }

  .container-inputs .dropdown__head {
    min-width: 0;
    width: 100%;
  }

  .input,
  .phone-field .phone__input,
  .email-input-wrap .input,
  .dropdown__title,
  .dropdown__list li,
  .dropdown__list li span,
  .form__register .register-drop-bonus .dropdown__title,
  .form__register .register-drop-bonus .dropdown__list li,
  .form__register .register-drop-bonus .dropdown__list li span {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
  }

  .form__button-submit {
    width: 100%;
    max-width: none;
    height: 36px;
    min-height: 36px;
    padding: 0 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 auto;
    align-self: stretch;
  }

  .form__button-submit [data-text="formSubmitBtn"],
  .form__button-submit[data-text="formSubmitBtn"] {
    font-size: inherit;
    font-weight: inherit;
  }

  .form__confirm {
    margin-top: 20px;
    width: 100%;
  }

  .form__confirm p,
  .form__confirm p span,
  .form__confirm p a {
    font-size: 11px;
    line-height: 1.35;
  }

  .otp-wrap .code-input {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    font-size: 18px;
  }
}
