/*
 * Steamstore UI system
 * Order is explicit: foundation -> primitives -> components -> flows -> overlays -> utilities.
 * Overlay levels are defined once in the overlays layer.
 */
@layer foundation, primitives, components, flows, overlays, utilities;

@layer foundation {
:root {
  color-scheme: light;
  --ui-page: #f7f9fc;
  --ui-surface: #ffffff;
  --ui-surface-secondary: #f1f5fb;
  --ui-surface-soft: #f8faff;
  --ui-text: #101828;
  --ui-text-secondary: #667085;
  --ui-text-muted: #98a2b3;
  --ui-primary: #2563eb;
  --ui-primary-hover: #1d4ed8;
  --ui-primary-active: #1e40af;
  --ui-primary-soft: #eaf2ff;
  --ui-border: #e4eaf2;
  --ui-border-strong: #d5deeb;
  --ui-success: #12b76a;
  --ui-warning: #f79009;
  --ui-danger: #f04438;
  --ui-info: #2e90fa;
  --ui-radius-control: 12px;
  --ui-radius-card: 18px;
  --ui-radius-container: 24px;
  --ui-control-height: 46px;
  --ui-cta-height: 52px;
  --ui-shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
  --ui-shadow-card: 0 12px 32px rgba(31, 50, 81, .07);
  --ui-shadow-modal: 0 28px 80px rgba(15, 23, 42, .22);
  --ui-transition: 180ms ease;
  --ui-container: 1240px;
}

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

html {
  background: var(--ui-page);
}

body {
  min-width: 320px;
  color: var(--ui-text);
  background: var(--ui-page);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid rgba(37, 99, 235, .2);
  outline-offset: 2px;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .58;
}

::selection {
  background: rgba(37, 99, 235, .18);
  color: var(--ui-text);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms;
    animation-iteration-count: 1;
    transition-duration: .01ms;
  }
}
}

@layer primitives {
/* ---------- Check screen: в стиле модалок, hero виден через оверлей ---------- */
.check-screen {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(46, 166, 255, 0.14), transparent 34%),
    rgba(3, 7, 12, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s;
}

.check-screen:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.check-screen:not([hidden]) .check-screen__inner {
  animation: checkModalIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes checkModalIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.check-screen__inner {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, rgba(22, 29, 42, 0.98), rgba(13, 19, 30, 0.98));
  border: 1px solid rgba(116, 193, 255, 0.18);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: left;
  opacity: 0;
}

.check-screen__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 166, 255, 0.1);
  border: 1px solid rgba(46, 166, 255, 0.28);
  color: #b9e2ff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.check-screen__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-blue-hover);
  box-shadow: 0 0 0 5px rgba(53, 168, 255, 0.13);
}

.check-screen__title {
  margin: 0 0 6px 0;
  font-size: 1.28rem;
  font-weight: 700;
  color: #f3f7fb;
  letter-spacing: 0;
  line-height: 1.25;
}

.check-screen__desc {
  margin: 0 0 18px 0;
  color: #aab6c7;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.check-screen__progress {
  position: relative;
  height: 9px;
  background: rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.check-screen__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-blue-hover), var(--brand-blue-hover));
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(46, 166, 255, 0.48);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.check-screen__percent {
  margin-top: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0;
}

.check-screen__steps {
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
  display: grid;
  gap: 8px;
  text-align: left;
}

.check-step {
  position: relative;
  padding: 11px 14px 11px 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
  color: #748095;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.check-step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  transform: translateY(-50%);
  box-sizing: border-box;
}

.check-step.is-active {
  background: rgba(46, 166, 255, 0.1);
  border-color: rgba(46, 166, 255, 0.42);
  color: #edf8ff;
  transform: translateX(2px);
}

.check-step.is-active::before {
  border-color: #67c1ff;
  background: var(--brand-blue);
  box-shadow: 0 0 0 5px rgba(46, 166, 255, 0.13);
}

.check-step.is-done {
  background: rgba(34, 197, 94, 0.065);
  border-color: rgba(34, 197, 94, 0.2);
  color: #b8c8bc;
}

.check-step.is-done::before {
  border-color: #22c55e;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.11);
}

/* ---------- Master page mode ---------- */
body.is-master-active main {
  display: none;
}

body.is-master-active .deal-master {
  display: flex;
  min-height: 100vh;
  padding-top: 90px;
  flex: 1;
  order: 2;
  background: transparent;
}

body.is-master-active {
  background: #0c1119;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.is-master-active::before {
  display: block;
  background: url("../img/fon.jpg") center / cover no-repeat;
  filter: blur(6px);
}

body.is-master-active::after {
  display: block;
  background: rgba(11, 15, 20, 0.82);
}

body.is-master-active .header {
  order: 1;
}

body.is-master-active .footer {
  margin-top: auto;
  order: 3;
}

/* ---------- Deal master ---------- */
.deal-master {
  padding: 100px 0 100px;
  background: #0c1119;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  min-height: 100vh;
  display: none;
  align-items: center;
}

.deal-master:not([hidden]) {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.deal-master__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.deal-master__title {
  margin: 0 0 10px 0;
  font-size: 2rem;
  font-weight: 600;
  color: #e6eaf0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.deal-master__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(178px, 220px);
  gap: 22px;
  align-items: start;
  margin-bottom: 40px;
}

.deal-master__header .deal-master__subtitle {
  margin-bottom: 0;
}

.deal-master__subtitle {
  margin: 0 0 40px 0;
  color: #9ca3b4;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.payout-summary[hidden] {
  display: none;
}

.payout-summary {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.72));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.payout-summary__label {
  display: block;
  margin-bottom: 7px;
  color: #93f2b5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.payout-summary__amount {
  display: block;
  color: #35e176;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.payout-summary__bank {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  overflow: hidden;
  color: #d6deea;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion__item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #161d2a;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.accordion__item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.accordion__item.is-open {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.4);
}

.accordion__header {
  width: 100%;
  background: transparent;
  border: 0;
  color: #e6eaf0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
  font-family: var(--font);
}

.accordion__header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.accordion__header:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.accordion__step {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #9ca3b4;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  border-radius: 10px;
}

.accordion__item.is-open .accordion__step {
  background: rgba(46, 166, 255, 0.12);
  color: var(--brand-blue);
}

.accordion__title {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: #e6eaf0;
}

.accordion__body {
  padding: 8px 20px 20px 20px;
  color: #9ca3b4;
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.accordion__body > p:first-child {
  margin: 0 0 16px 0;
  color: #9ca3b4;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.accordion__item.is-open .accordion__body {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: accordionSlideIn 0.4s var(--ease);
}

@keyframes accordionSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.82fr);
  gap: var(--compact-section-gap);
  margin: 0 0 var(--compact-section-gap) 0;
}

.deal-master__meta {
  display: none;
}

.deal-master__links {
  margin: 0 0 var(--compact-section-gap) 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--compact-tile-gap);
}

.deal-master__link {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.deal-master__link:hover {
  color: var(--brand-blue-hover);
  text-decoration: underline;
}

.deal-master__link:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 8px;
}

.deal-master__hint {
  margin: 0 0 16px 0;
  font-size: 0.9375rem;
  color: #9ca3b4;
}

.deal-master__hint-link {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.deal-master__hint-link:hover {
  color: var(--brand-blue-hover);
  text-decoration: underline;
}

.deal-master__hint-link:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- COMPACT: Field (form-group внутри шагов) ---------- */
.accordion__body .form-group {
  margin-bottom: var(--compact-field-gap);
}

.accordion__body .form-group:last-of-type {
  margin-bottom: 0;
}

.accordion__body .form-group label {
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 6px;
  color: #d1d5dc;
}

.accordion__body .form-group input,
.accordion__body .form-group textarea {
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9375rem;
  color: #e6eaf0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.accordion__body .form-group input::placeholder,
.accordion__body .form-group textarea::placeholder {
  color: #6b7280;
}

.accordion__body .form-group input:hover,
.accordion__body .form-group textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.accordion__body .form-group input:focus,
.accordion__body .form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(46, 166, 255, 0.15);
}

.accordion__body .btn {
  min-height: 46px;
  margin-top: 16px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.accordion__body .btn--primary:not(:disabled) {
  background: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(46, 166, 255, 0.25);
}

.accordion__body .btn--primary:hover:not(:disabled) {
  background: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
  box-shadow: 0 4px 12px rgba(46, 166, 255, 0.35);
}

.accordion__body .btn--primary:active:not(:disabled) {
  background: var(--brand-blue-active);
  border-color: var(--brand-blue-active);
}

.accordion__body .btn--primary:disabled {
  background: #252d3d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #6b7280;
  box-shadow: none;
  cursor: not-allowed;
}

.accordion__body .btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3b4;
  background: transparent;
}

.accordion__body .btn--ghost:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.2);
  color: #e6eaf0;
  background: rgba(255, 255, 255, 0.04);
}

#master-get-code.btn--ghost {
  color: #ffffff;
  background: var(--brand-blue);
  border: 1px solid var(--brand-blue-hover);
  box-shadow: 0 8px 22px rgba(46, 166, 255, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

#master-get-code.btn--ghost:hover:not(:disabled) {
  color: #ffffff;
  background: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
  box-shadow: 0 10px 28px rgba(46, 166, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

#master-get-code.btn--ghost:active:not(:disabled) {
  background: var(--brand-blue-active);
  border-color: var(--brand-blue-hover);
  box-shadow: 0 4px 14px rgba(46, 166, 255, 0.28);
}

#master-get-code.btn--ghost:disabled {
  color: #9ca3b4;
  background: #252d3d;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.accordion__body .btn:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* Поле пароля с иконкой «глаз» */
.password-wrap {
  position: relative;
  display: block;
}

.password-wrap input {
  padding-right: 48px;
  min-height: var(--compact-input-height);
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #9ca3b4;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.password-toggle:hover {
  color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.06);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.password-toggle__icon {
  display: block;
}

.password-toggle__icon[hidden] {
  display: none;
}

.email-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.email-copy:hover {
  opacity: 0.8;
}

.email-copy__text {
  color: var(--brand-blue);
  font-weight: 600;
}

.email-copy__icon {
  color: var(--brand-blue);
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.email-copy:hover .email-copy__icon {
  opacity: 0.9;
}

.email-copy.copied .email-copy__icon {
  opacity: 1;
}

/* ---------- Step 4: верхняя строка (карта + сумма к выплате) ---------- */
.deal-master__top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;

}


.modal__text {
    margin-bottom: 16px;
}


.deal-master__top-row .form-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.deal-master__top-row .form-group label {
  flex-shrink: 0;
}

.deal-master__top-row .form-group input {
  height: 44px;     /* чтобы было 1:1, не только min-height */
  min-height: 44px;
}

.payout-modal__row .form-group input {
  height: 50px;
  min-height: 50px;
  border-radius: 12px;
  background: rgba(7, 12, 20, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
  font-weight: 600;
}

.payout-modal__row .form-group input::placeholder {
  color: #7f8b9d;
  font-weight: 500;
}

.payout-modal__row .form-group input:focus {
  border-color: rgba(53, 168, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(53, 168, 255, 0.16);
  background: rgba(7, 12, 20, 0.9);
}
/* Сумма к выплате — compact summary (read-only), в одной строке с полем карты */
.deal-master__top-row .deal-master__price {
  align-self: end;  /* на всякий пожарный, чтобы не тянуло */
  height: 44px;     /* = высоте инпута */
  min-height: 44px;

  padding: 0 14px;  /* оставляем, раз ты хочешь compact */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deal-master__top-row .deal-master__price span:first-child {
  font-size: 0.75rem;
  color: #9ca3b4;
  flex-shrink: 0;
  white-space: nowrap;
}

.deal-master__top-row .deal-master__price strong {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--brand-blue);
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
  min-width: max-content;
}

/* ---------- COMPACT: SummaryRow (standalone, если используется вне top-row) ---------- */
.deal-master__price {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: transparent;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e6eaf0;
  font-size: 0.8125rem;
}

.deal-master__price span:first-child {
  font-size: 0.8125rem;
  color: #9ca3b4;
}

.deal-master__price strong {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--brand-blue);
  letter-spacing: -0.02em;
}

/* ---------- COMPACT: SelectTile (карточки банков) ---------- */
.deal-master__banks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--compact-tile-gap);
  margin-bottom: var(--compact-section-gap);
  width: 100%;
}

.deal-master__warning {
  margin: 0 0 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(46, 166, 255, 0.45);
  border-left: 4px solid var(--brand-blue);
  border-radius: 10px;
  background: rgba(46, 166, 255, 0.12);
  color: #e6f5ff;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 8px 22px rgba(46, 166, 255, 0.16);
}

.bank-radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #e6eaf0;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bank-radio:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.bank-radio:has(input:checked) {
  border-color: rgba(46, 166, 255, 0.35);
  background: rgba(46, 166, 255, 0.06);
}

.bank-radio input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand-blue);
  flex-shrink: 0;
  opacity: 0.9;
}

.bank-radio:has(input:checked) input {
  opacity: 1;
}

.bank-logo {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
  background: #0b1119;
  overflow: hidden;
}

.bank-logo--empty {
  background: transparent;
  width: 0;
  min-width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Текст «Другой» вплотную к кружку выбора */
.bank-radio:has(.bank-logo--empty) {
  gap: 4px;
}

.bank-logo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.deal-master__other-bank {
  margin: var(--compact-tile-gap) 0 var(--compact-section-gap) 0;
  display: grid;
  gap: var(--compact-field-gap);
}

.deal-master__other-bank[hidden] {
  display: none;
}

.deal-master__other-bank label {
  font-size: 0.8125rem;
  color: #9ca3b4;
  font-weight: 500;
}

.deal-master__other-bank input {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e6eaf0;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.deal-master__other-bank input::placeholder {
  color: #6b7280;
}

.deal-master__other-bank input:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.deal-master__other-bank input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(46, 166, 255, 0.15);
}

/* Шаг 4: иконка выбора на карточке банка (остальное — из COMPACT PRESET) */
.payout-modal .bank-radio:has(input:checked)::after,
.accordion__item[data-step="4"] .bank-radio:has(input:checked)::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
}

.deal-master__notice {
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: 10px;
  border-left: 3px solid #6b7280;
  background: rgba(255, 255, 255, 0.03);
  color: #d1d5dc;
  font-size: 0.875rem;
  line-height: 1.5;
}

.deal-help-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 18px 10px 12px;
  color: #f8fbff;
  background: linear-gradient(135deg, var(--brand-blue), #19c37d);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34), 0 8px 22px rgba(22, 136, 255, 0.3);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.deal-help-float[hidden] {
  display: none;
}

.deal-help-float:hover,
.deal-help-float:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38), 0 10px 26px rgba(25, 195, 125, 0.3);
}

.deal-help-float:focus-visible {
  outline: 2px solid var(--brand-blue-hover);
  outline-offset: 3px;
}

.deal-help-float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #0b111a;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.deal-help-float__text {
  white-space: nowrap;
}

.modal__box--deal-help {
  max-width: 560px;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(46, 166, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(22, 29, 42, 0.98), rgba(9, 13, 21, 0.98));
  border-color: rgba(255, 255, 255, 0.14);
}

.deal-help-modal .modal__backdrop {
  background: rgba(3, 7, 13, 0.72);
  backdrop-filter: blur(8px);
}

.deal-help-modal__head {
  padding-right: 42px;
  margin-bottom: 18px;
}

.deal-help-modal__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  margin-bottom: 12px;
  color: #96d4ff;
  background: rgba(46, 166, 255, 0.12);
  border: 1px solid rgba(46, 166, 255, 0.24);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.deal-help-modal__title {
  margin: 0 0 10px 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.deal-help-modal__subtitle {
  margin: 0;
  color: #aab4c3;
  font-size: 0.94rem;
  line-height: 1.55;
}

.deal-help-guides {
  display: grid;
  gap: 10px;
  margin: 20px 0 18px;
}

.deal-help-guide {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  color: #eef4ff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.deal-help-guide:hover,
.deal-help-guide:focus-visible {
  color: #fff;
  background: rgba(46, 166, 255, 0.12);
  border-color: rgba(46, 166, 255, 0.38);
  transform: translateY(-1px);
}

.deal-help-guide:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.deal-help-guide__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #67c1ff;
  background: rgba(46, 166, 255, 0.12);
  border: 1px solid rgba(46, 166, 255, 0.22);
  border-radius: 12px;
}

.deal-help-guide strong,
.deal-help-guide small {
  display: block;
}

.deal-help-guide strong {
  margin-bottom: 4px;
  color: inherit;
  font-size: 0.98rem;
  line-height: 1.25;
}

.deal-help-guide small {
  color: #9aa7b8;
  font-size: 0.82rem;
  line-height: 1.35;
}

.deal-help-modal__cta {
  margin-top: 4px;
}

.modal__box--payout {
  width: min(860px, calc(100vw - 32px));
  max-width: 860px;
  padding: 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(35, 218, 177, 0.13), transparent 28%),
    radial-gradient(circle at 16% 12%, rgba(46, 166, 255, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(13, 24, 43, 0.98), rgba(6, 12, 24, 0.98));
  border: 1px solid rgba(121, 177, 255, 0.26);
  border-radius: 28px;
  box-shadow: 0 34px 92px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.payout-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  min-height: 245px;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

.payout-card[hidden] {
  display: none;
}

.payout-card__eyebrow {
  margin-bottom: 6px;
  color: #9ca3b4;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.payout-card .modal__title {
  margin-bottom: 18px;
  padding-right: 0;
  font-size: 1.82rem;
  color: #f4f7fb;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.payout-card__amount {
  margin-bottom: 20px;
  color: #28e77e;
  font-size: clamp(3.7rem, 6vw, 5.7rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 0 28px rgba(34, 197, 94, 0.25);
}

.payout-card__note {
  margin: 0;
  max-width: 360px;
  color: #b9c6d8;
  font-size: 1.08rem;
  line-height: 1.55;
}

.payout-card__visual {
  position: relative;
  min-height: 205px;
}

.payout-visual-card {
  position: absolute;
  right: 16px;
  top: 64px;
  width: 280px;
  height: 128px;
  padding: 34px 28px 24px;
  border-radius: 19px;
  background: linear-gradient(145deg, #1d2a40, #0e1727);
  border: 1px solid rgba(125, 178, 255, 0.28);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform: rotate(7deg);
}

.payout-visual-card--back {
  right: 0;
  top: 36px;
  opacity: 0.68;
  border-color: rgba(39, 221, 181, 0.28);
  transform: rotate(7deg) translateY(-16px);
}

.payout-visual-card__chip {
  display: block;
  width: 34px;
  height: 26px;
  margin-bottom: 22px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(24, 38, 57, 0.55) 49%, rgba(24, 38, 57, 0.55) 53%, transparent 54%),
    linear-gradient(180deg, transparent 48%, rgba(24, 38, 57, 0.55) 49%, rgba(24, 38, 57, 0.55) 53%, transparent 54%),
    linear-gradient(145deg, #dce8f8, #8aa0bc);
  box-shadow: inset 0 0 0 1px rgba(9, 15, 25, 0.18);
}

.payout-visual-card__number {
  display: block;
  color: #e7eef8;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.payout-visual-check {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(24, 39, 59, 0.96), rgba(9, 18, 30, 0.96));
  border: 3px solid #27e6d2;
  box-shadow: 0 0 34px rgba(34, 197, 94, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.payout-visual-check::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 29px;
  width: 34px;
  height: 18px;
  border-left: 8px solid #28e77e;
  border-bottom: 8px solid #28e77e;
  border-radius: 3px;
  transform: rotate(-45deg);
}

.payout-modal__row {
  grid-template-columns: 1fr;
  margin-bottom: 26px;
}

.payout-method-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px;
  border: 1px solid rgba(139, 160, 195, 0.22);
  border-radius: 18px;
  background: rgba(3, 9, 20, 0.42);
}

.payout-method {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 13px;
  color: #91a0b7;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.payout-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payout-method:has(input:checked) {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-hover));
  box-shadow: 0 12px 30px rgba(0, 139, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.payout-modal__row .form-group {
  width: 100%;
}

.payout-modal__row .form-group input {
  width: 100%;
}

.payout-modal .form-group label,
.payout-bank-title {
  margin-bottom: 14px;
  color: #f4f7fb;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
}

.payout-bank-title {
  margin: 0 0 14px;
}

.payout-modal #payout-continue {
  min-height: 74px;
  margin-top: 26px;
  border-radius: 16px;
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-hover));
  border-color: rgba(147, 214, 255, 0.65);
  box-shadow: 0 18px 48px rgba(0, 139, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.payout-secure-note {
  position: relative;
  margin: 20px 0 0;
  padding-left: 30px;
  color: #8897ad;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.4;
}

.payout-secure-note::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0 10px -4px 0;
  border: 2px solid rgba(166, 190, 220, 0.5);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(46, 166, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.payout-modal__row .form-group input {
  min-height: 82px;
  padding: 0 24px 0 70px;
  color: #eef6ff;
  background:
    linear-gradient(90deg, rgba(46, 166, 255, 0.95), rgba(46, 166, 255, 0.95)) 36px 50% / 28px 3px no-repeat,
    linear-gradient(90deg, rgba(46, 166, 255, 0.95), rgba(46, 166, 255, 0.95)) 36px calc(50% - 9px) / 28px 3px no-repeat,
    linear-gradient(90deg, rgba(46, 166, 255, 0.95), rgba(46, 166, 255, 0.95)) 36px calc(50% + 9px) / 28px 3px no-repeat,
    linear-gradient(180deg, transparent, transparent) 29px 50% / 38px 28px no-repeat,
    rgba(3, 9, 20, 0.72);
  border: 2px solid rgba(46, 166, 255, 0.82);
  border-radius: 17px;
  font-size: 1.12rem;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(46, 166, 255, 0.12), 0 0 28px rgba(46, 166, 255, 0.12);
}

.payout-modal__row .form-group input::placeholder {
  color: #8190a8;
  font-weight: 700;
}

.payout-modal__row .form-group input:hover,
.payout-modal__row .form-group input:focus {
  border-color: var(--brand-blue);
  background-color: rgba(4, 11, 24, 0.9);
  box-shadow: 0 0 0 3px rgba(46, 166, 255, 0.18), 0 0 36px rgba(46, 166, 255, 0.16);
}

.payout-modal.is-payout-phone .payout-modal__row .form-group input {
  padding-left: 24px;
  background: rgba(3, 9, 20, 0.72);
}

.payout-modal.is-payout-phone .payout-modal__row .form-group input:hover,
.payout-modal.is-payout-phone .payout-modal__row .form-group input:focus {
  background: rgba(4, 11, 24, 0.9);
}

.payout-modal .deal-master__banks {
  gap: 18px 20px;
  margin-bottom: 0;
}

.payout-modal .bank-radio {
  min-width: 0;
  min-height: 86px;
  gap: 18px;
  padding: 18px 56px 18px 26px;
  background: rgba(3, 9, 20, 0.36);
  border: 1px solid rgba(139, 160, 195, 0.28);
  border-radius: 17px;
  color: #f3f7fb;
  font-size: 1.34rem;
  font-weight: 800;
}

.payout-modal .bank-radio > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.payout-modal .bank-radio:hover {
  background: rgba(46, 166, 255, 0.055);
  border-color: rgba(46, 166, 255, 0.52);
}

.payout-modal .bank-radio:has(input:checked) {
  background: rgba(46, 166, 255, 0.1);
  border-color: rgba(46, 166, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(46, 166, 255, 0.22), 0 0 34px rgba(46, 166, 255, 0.13);
}

.payout-modal .bank-radio input {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  accent-color: var(--brand-blue);
}

.payout-modal .bank-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.payout-modal .bank-logo--empty {
  width: 0;
  min-width: 0;
  height: 0;
}

.payout-modal .bank-radio:has(.bank-logo--empty) {
  gap: 18px;
}

.payout-modal .bank-radio:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 26px;
  width: 30px;
  height: 30px;
  background: linear-gradient(145deg, var(--brand-blue), var(--brand-blue));
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(46, 166, 255, 0.32);
  transform: translateY(-50%);
}

.payout-modal .bank-radio:has(input:checked)::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 36px;
  z-index: 1;
  width: 10px;
  height: 6px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: translateY(-64%) rotate(-45deg);
}

.payout-form[hidden],
.payout-form.is-hidden,
.payout-check[hidden] {
  display: none;
}

#modal-payout.is-verifying .payout-card,
#modal-payout.is-verifying .payout-form,
#modal-payout.is-verifying #payout-continue {
  display: none;
}

#modal-payout:not(.is-verifying) .payout-check {
  display: none;
}

.payout-check {
  padding: 28px 26px 26px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.028);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: payoutCheckIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.payout-check__spinner {
  display: block;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  flex: 0 0 auto;
}

.payout-check__spinner[hidden],
.payout-check__success[hidden],
.payout-check__actions[hidden] {
  display: none;
}

.payout-check__success {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.34);
  animation: payoutSuccessPop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  flex: 0 0 auto;
  overflow: hidden;
}

.payout-check__success svg {
  width: 64px;
  height: 64px;
  display: block;
}

.payout-check__title {
  margin: 0 0 8px 0;
  color: #e6eaf0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  width: 100%;
}

.payout-check.is-success .payout-check__title {
  color: #7df0a4;
}

.payout-check__text {
  margin: 0;
  color: #9ca3b4;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
  max-width: 360px;
}

.payout-check__bar {
  position: relative;
  height: 7px;
  max-width: 340px;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.payout-check__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: var(--brand-blue-hover);
}

.payout-check__bar.is-running span {
  animation: payoutVerifyProgress var(--payout-check-duration, 7200ms) linear forwards;
}

.payout-check.is-success .payout-check__bar {
  display: none;
}

.payout-check__actions {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  width: 100%;
  max-width: 370px;
}

.payout-check__actions .btn + .btn {
  margin-top: 0;
}

.payout-confirm {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.payout-confirm input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #22c55e;
}

#payout-final-continue:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

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

@keyframes payoutCheckIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes payoutSuccessPop {
  from { opacity: 0; transform: scale(0.76); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes payoutVerifyProgress {
  from { width: 0%; }
  to { width: 100%; }
}

.btn--finish-payout,
.accordion__body .btn--finish-payout:not(:disabled) {
  width: 100%;
  min-height: 52px;
  background: #22c55e;
  border: 1px solid #62e38f;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--finish-payout:hover:not(:disabled),
.accordion__body .btn--finish-payout:hover:not(:disabled) {
  background: #30d96c;
  border-color: #94f5b3;
  box-shadow: 0 16px 38px rgba(34, 197, 94, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.finish-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.finish-help__trigger {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #b8c2d0;
  font-size: 0.875rem;
  font-weight: 700;
}

.finish-help__trigger:hover,
.finish-help__trigger:focus-visible {
  color: #ffffff;
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(98, 227, 143, 0.55);
  outline: none;
}

.finish-help__text {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(300px, 86vw);
  padding: 10px 12px;
  border-radius: 10px;
  background: #101722;
  border: 1px solid rgba(98, 227, 143, 0.28);
  color: #dbe7df;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.finish-help:hover .finish-help__text,
.finish-help__trigger:focus-visible + .finish-help__text {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.deal-master__actions {
  display: flex;
  flex-direction: column;
  gap: var(--compact-tile-gap);
  align-items: flex-start;
  margin-top: var(--compact-section-gap);
}

.deal-master__right {
  display: none;
}

.status-card {
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: var(--space-24);
  box-shadow: var(--shadow-card);
  transition: border-color var(--motion-dur);
}

.status-card:hover {
  border-color: var(--surface-border-strong);
}

.status-card__title {
  margin: 0 0 16px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.status-step {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 34, 0.75);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.98rem;
}

.status-step span {
  color: var(--muted);
  font-weight: 700;
}

.status-step.is-active {
  color: var(--text);
  border-color: var(--accent-subtle);
  background: rgba(46, 166, 255, 0.06);
}

.status-step.is-active span {
  color: var(--accent);
  font-weight: var(--weight-semibold);
}

.status-step.is-done {
  color: var(--text-secondary);
  border-color: var(--surface-border);
  background: var(--surface);
}

.status-step.is-done::after {
  content: '✓';
  margin-left: auto;
  color: var(--accent);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
}

@media (max-width: 900px) {
  .deal-master__wrap {
    grid-template-columns: 1fr;
  }
  .deal-master__right {
    position: static;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .check-screen,
  .check-screen__bar,
  .check-screen__inner,
  .check-screen__badge,
  .check-step,
  .deal-master,
  .accordion__body {
    transition: none;
    animation: none;
  }
}

.hero-panel {
  width: 100%;
  max-width: 495px;
  padding: var(--space-32);
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--motion-dur) var(--motion-ease), border-color var(--motion-dur);
}

.hero-panel:hover {
  transform: translateY(1px);
  border-color: var(--surface-border-strong);
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel:hover { transform: none; }
}

.hero-panel__label-top {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.hero-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.hero-panel__item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-panel__item:nth-child(2n) {
  border-right: none;
  padding-left: 20px;
}

.hero-panel__item:nth-child(3),
.hero-panel__item:nth-child(4) {
  border-bottom: none;
}

.hero-panel__icon {
  display: flex;
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 2px;
}

.hero-panel__icon svg {
  width: 22px;
  height: 22px;
}

.hero-panel__value {
  display: block;
  font-size: 1.54rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.hero-panel__label {
  font-size: 0.93rem;
  color: var(--muted);
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: 44px;
  padding: 12px var(--space-24);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-button);
  transition: background var(--motion-dur), border-color var(--motion-dur), transform var(--motion-dur) var(--motion-ease), box-shadow var(--motion-dur);
}

.btn--primary {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-card);
}

.btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(1px);
  box-shadow: var(--shadow-hover);
}

.btn--primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--primary:disabled,
.btn--primary[disabled] {
  background: var(--surface);
  border-color: var(--surface-border);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.btn--full {
  width: 100%;
}

.btn__icon {
  display: flex;
  flex-shrink: 0;
}

/* ---------- Cards (solid panel, thin border, minimal shadow) ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}

/* ---------- Features (Преимущества): в стиле модалок, сдержанный премиум ---------- */

/* ---------- Visually hidden (honeypot) ---------- */
.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;
  left: -9999px;
}

/* ---------- Modal (solid, no blur) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}

.modal[aria-hidden="false"],
.modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.modal[hidden] {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: opacity var(--motion-dur) var(--motion-ease);
}

.modal__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-modal);
  padding: 24px;
  box-shadow: var(--shadow-modal);
  animation: modal-in 0.2s var(--motion-ease);
}


.modal__box--glass {
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
}

.modal__box--wide {
  max-width: 520px;
}

.modal__content--how {
  margin-top: var(--space-8);
}

.modal__content--how .modal__title {
  margin-bottom: var(--space-16);
}

.modal__block {
  display: flex;
  gap: var(--space-12);
  align-items: flex-start;
  margin-bottom: 20px;
  text-align: left;
}

.modal__block:last-child {
  margin-bottom: 0;
}

.modal__block-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--blue);
  margin-top: 2px;
}

.modal__block-q {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-top: 2px;
}

.modal__block p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text);
}

.modal__block p strong {
  color: var(--text);
  font-weight: 600;
}

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

@media (prefers-reduced-motion: reduce) {
  .modal__box { animation: none; }
}

.modal__close {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 10px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.modal__close:hover {
  color: var(--text);
  background: var(--surface-border);
}

.modal__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.modal__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: 8px;
  color: var(--text);
}

.modal__subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.modal__rate-limit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-16);
  margin-bottom: var(--space-16);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-input);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.modal__rate-limit[hidden] {
  display: none;
}

.modal__rate-limit-timer {
  font-weight: 600;
  color: var(--text);
}

.modal__message {
  margin-top: var(--space-16);
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-input);
  font-size: var(--text-sm);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
}

.modal__message[hidden] {
  display: none;
}

.modal__form .form-group {
  margin-bottom: 12px;
}

.modal__form-actions {
  margin-top: 16px;
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-8);
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px var(--space-16);
  min-height: 44px;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-input);
  color: var(--text);
  transition: border-color var(--motion-dur), box-shadow var(--motion-dur);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--surface-border-strong);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(46, 166, 255, 0.2);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--color-error);
}

.form-group input.invalid:focus,
.form-group textarea.invalid:focus {
  box-shadow: 0 0 0 2px rgba(248, 81, 73, 0.2);
}

.form-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-8);
}

/* ---------- Модалка «Продать аккаунт»: компактный UI, мягкий error ---------- */
.modal__form .form-group label {
  margin-bottom: 6px;
  font-size: 13px;
}

.modal__form .form-group input,
.modal__form .form-group textarea {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--compact-border);
  border-radius: 10px;
  font-size: 14px;
}

.modal__form .form-group input:hover,
.modal__form .form-group textarea:hover {
  border-color: var(--compact-border-hover);
}

.modal__form .form-group input:focus,
.modal__form .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 166, 255, 0.2);
}

.modal__form .form-group input.invalid,
.modal__form .form-group textarea.invalid {
  border: 1px solid var(--color-error-muted);
  background: var(--color-error-bg);
  box-shadow: none;
}

.modal__form .form-group input.invalid:focus,
.modal__form .form-group textarea.invalid:focus {
  border-color: var(--color-error-muted);
  box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.15);
}

.modal__form .form-error {
  font-size: 12px;
  color: var(--color-error-muted);
  margin-top: 6px;
}

.modal__form .modal__form-actions .btn--primary {
  min-height: 48px;
  padding: 14px 24px;
  border-radius: var(--radius-button);
  font-weight: var(--weight-semibold);
}

.modal__form .modal__form-actions .btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.modal__form .modal__form-actions .btn--primary:active:not(:disabled) {
  transform: translateY(0);
}

.modal__form .modal__form-actions .btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--surface);
  border-color: var(--surface-border);
}

/* ---------- Модалка «Продать аккаунт Steam»: сдержанный премиум (в одну линию с подтверждением) ---------- */
#modal-sell .modal__backdrop {
  background:
    radial-gradient(circle at 50% 35%, rgba(46, 166, 255, 0.16), transparent 34%),
    rgba(3, 7, 13, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#modal-sell .modal__box {
  max-width: 860px;
  padding: 46px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(46, 166, 255, 0.18), transparent 34%),
    radial-gradient(circle at 78% 24%, rgba(35, 218, 177, 0.08), transparent 28%),
    linear-gradient(145deg, rgba(13, 24, 43, 0.98), rgba(6, 12, 24, 0.98));
  border: 1px solid rgba(121, 177, 255, 0.26);
  border-radius: 28px;
  box-shadow: 0 34px 92px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: modal-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sell-modal__head {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 42px;
  padding-right: 92px;
}

.sell-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  color: #f5f9ff;
  border: 2px solid rgba(46, 166, 255, 0.78);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(46, 166, 255, 0.2), rgba(255, 255, 255, 0.045));
  box-shadow: 0 0 34px rgba(46, 166, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#modal-sell .modal__title {
  margin: 0 0 8px;
  padding-right: 0;
  color: #f4f7fb;
  font-size: 2.28rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

#modal-sell .modal__subtitle {
  margin: 0;
  color: #aab8ce;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.4;
}

#modal-sell .modal__form .form-group {
  position: relative;
  margin-bottom: 30px;
}

#modal-sell .modal__form .form-group--price {
  margin-bottom: 24px;
}

#modal-sell .modal__form .form-group label {
  display: block;
  margin-bottom: 16px;
  color: #d7e1ef;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.2;
}

#modal-sell .modal__form .form-group input,
#modal-sell .modal__form .form-group textarea {
  min-height: 80px;
  width: 100%;
  padding: 0 74px 0 92px;
  color: #eef6ff;
  background: rgba(3, 9, 20, 0.48);
  border: 2px solid rgba(46, 166, 255, 0.7);
  border-radius: 18px;
  font-size: 1.35rem;
  font-weight: 700;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#modal-sell .modal__form .form-group input::placeholder,
#modal-sell .modal__form .form-group textarea::placeholder {
  color: #7f8fa8;
  font-weight: 700;
}

#modal-sell .modal__form .form-group input:hover,
#modal-sell .modal__form .form-group textarea:hover {
  border-color: rgba(46, 166, 255, 0.9);
  background: rgba(4, 11, 24, 0.7);
}

#modal-sell .modal__form .form-group input:focus,
#modal-sell .modal__form .form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(46, 166, 255, 0.18), 0 0 36px rgba(46, 166, 255, 0.16);
}

#modal-sell .modal__form .form-group input.invalid,
#modal-sell .modal__form .form-group textarea.invalid {
  border-color: rgba(220, 100, 95, 0.6);
  background: rgba(220, 100, 95, 0.05);
  box-shadow: 0 0 0 1px rgba(220, 100, 95, 0.1);
}

#modal-sell .modal__form .form-group input.invalid:focus,
#modal-sell .modal__form .form-group textarea.invalid:focus {
  border-color: rgba(220, 100, 95, 0.7);
  box-shadow: 0 0 0 3px rgba(220, 100, 95, 0.1);
}

#modal-sell .modal__form .form-error {
  font-size: 0.86rem;
  margin-top: 8px;
  color: #d1a0a0;
  line-height: 1.35;
}

.sell-input-wrap {
  position: relative;
  display: block;
}

.sell-input-icon,
.sell-input-side-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  pointer-events: none;
}

.sell-input-icon {
  left: 16px;
  width: 52px;
  height: 52px;
  color: var(--brand-blue);
  border: 1px solid rgba(46, 166, 255, 0.28);
  border-radius: 14px;
  background: rgba(46, 166, 255, 0.08);
  font-size: 1.72rem;
  font-weight: 500;
}

.sell-input-wrap--price .sell-input-icon {
  color: #28e77e;
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.08);
}

.sell-input-side-icon {
  right: 18px;
  width: 48px;
  height: 48px;
  color: #8da0bd;
  border: 1px solid rgba(139, 160, 195, 0.25);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.sell-field-hint {
  display: block;
  margin-top: 14px;
  color: #87a8df;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.sell-modal__notice {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 72px;
  margin: 6px 0 28px;
  padding: 16px 20px;
  color: #aab8ce;
  border: 1px solid rgba(139, 160, 195, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.sell-modal__notice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--brand-blue);
  border: 2px solid rgba(46, 166, 255, 0.8);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
}

.sell-modal__notice p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
}

#modal-sell .modal__form-actions {
  margin-top: 0;
  margin-bottom: 0;
  gap: 12px;
}

#modal-sell .modal__form .modal__form-actions .btn--primary {
  position: relative;
  min-height: 74px;
  padding: 16px 76px;
  font-size: 1.38rem;
  font-weight: 900;
  border-radius: 16px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#modal-sell .modal__form .modal__form-actions .btn--primary:not(:disabled) {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-hover));
  border: 1px solid rgba(147, 214, 255, 0.65);
  color: #fff;
  box-shadow: 0 18px 48px rgba(0, 139, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#modal-sell .modal__form .modal__form-actions .btn--primary:hover:not(:disabled) {
  background: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
  box-shadow: 0 4px 12px rgba(46, 166, 255, 0.35);
}

#modal-sell .modal__form .modal__form-actions .btn--primary:active:not(:disabled) {
  background: var(--brand-blue-active);
  border-color: var(--brand-blue-active);
  box-shadow: 0 1px 4px rgba(46, 166, 255, 0.2);
}

#modal-sell .modal__form .modal__form-actions .btn--primary:disabled {
  cursor: not-allowed;
  background: #1a2436;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #66758b;
  box-shadow: none;
}

#modal-sell .sell-direct-link {
  position: relative;
  min-height: 46px;
  padding: 11px 48px 11px 18px;
  border: 1px solid rgba(124, 139, 166, 0.22);
  background: rgba(10, 16, 26, 0.34);
  color: #91a0b8;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}

#modal-sell .sell-direct-link:hover {
  border-color: rgba(124, 139, 166, 0.36);
  background: rgba(17, 27, 43, 0.48);
  color: #c4d0e3;
}

#modal-sell .sell-direct-link:active {
  transform: translateY(1px);
}

.sell-direct-link__arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.76;
  transform: translateY(-54%);
}

.sell-submit-arrow {
  position: absolute;
  right: 34px;
  top: 50%;
  font-size: 2rem;
  font-weight: 500;
  transform: translateY(-52%);
}

.sell-modal__secure {
  margin: 20px 0 0;
  color: #8897ad;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

.sell-modal__secure::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0 10px -4px 0;
  border: 2px solid rgba(166, 190, 220, 0.5);
  border-radius: 6px;
}

#modal-sell .modal__close {
  top: 42px;
  right: 42px;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(139, 160, 195, 0.22);
  border-radius: 17px;
  color: #a8b7ce;
  background: rgba(255, 255, 255, 0.035);
  transition: color 0.2s ease, background 0.2s ease;
}

#modal-sell .modal__close:hover {
  color: #e6eaf0;
  background: rgba(255, 255, 255, 0.06);
}

.price-help {
  position: absolute;
  left: 0;
  bottom: -68px;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.price-help__text {
  display: none;
}

.btn--ghost {
  color: var(--text-secondary);
  border: 1px solid var(--surface-border);
  background: transparent;
}

.btn--ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--surface-border-strong);
  background: var(--surface);
}

.btn--ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* ---------- Toast (solid) ---------- */
.toast {
  position: fixed;
  bottom: var(--space-24);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-12) var(--space-24);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur) var(--ease), opacity var(--dur), visibility var(--dur);
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast[hidden] {
  display: flex;
}

.toast__icon {
  color: var(--blue);
  display: flex;
}

.toast__text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
}


/* Final override: make the email-code action visually dominant in every state. */
#master-get-code,
#master-get-code.btn,
#master-get-code.btn--ghost {
  color: #ffffff;
  background: var(--brand-blue);
  border: 1px solid var(--brand-blue-hover);
  box-shadow: 0 10px 26px rgba(46, 166, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#master-get-code:hover:not(:disabled),
#master-get-code.btn:hover:not(:disabled),
#master-get-code.btn--ghost:hover:not(:disabled) {
  color: #ffffff;
  background: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
  box-shadow: 0 12px 32px rgba(46, 166, 255, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

#master-get-code:active:not(:disabled),
#master-get-code.btn:active:not(:disabled),
#master-get-code.btn--ghost:active:not(:disabled) {
  background: var(--brand-blue-active);
  border-color: var(--brand-blue-hover);
  box-shadow: 0 5px 16px rgba(46, 166, 255, 0.38);
}

#master-get-code:disabled,
#master-get-code.btn:disabled,
#master-get-code.btn--ghost:disabled {
  color: #d8eaff;
  background: var(--brand-blue-active);
  border-color: rgba(139, 211, 255, 0.45);
  box-shadow: none;
  opacity: 0.8;
}

/* Final payout verification alignment overrides. */
#modal-payout .payout-check {
  width: 100%;
  max-width: 390px;
  margin: 6px auto 0;
  padding: 34px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#modal-payout .payout-check.is-checking::before {
  content: '';
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: block;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--brand-blue-hover);
  border-right-color: rgba(53, 168, 255, 0.72);
  box-shadow: 0 0 0 8px rgba(53, 168, 255, 0.04), 0 14px 34px rgba(53, 168, 255, 0.18);
  animation: payoutSpin 0.9s linear infinite;
}

#modal-payout .payout-check.is-checking .payout-check__spinner {
  display: none;
}

#modal-payout .payout-check__spinner,
#modal-payout .payout-check__success {
  margin-left: auto;
  margin-right: auto;
}

#modal-payout .payout-check__title,
#modal-payout .payout-check__text {
  width: 100%;
  text-align: center;
}

#modal-payout .payout-confirm {
  width: 100%;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  text-align: left;
}

#modal-payout .payout-confirm input {
  width: 18px;
  height: 18px;
}

#modal-payout .payout-check__actions {
  width: 100%;
  max-width: 360px;
  gap: 14px;
}

@media (max-width: 900px) {
  .modal__box--payout {
    width: min(560px, calc(100vw - 28px));
    max-width: 560px;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .payout-card {
    display: block;
    min-height: 0;
    margin-bottom: 22px;
  }

  .payout-card__visual {
    display: none;
  }

  .payout-card .modal__title {
    margin-bottom: 10px;
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .payout-card__amount {
    margin-bottom: 14px;
    font-size: clamp(3.1rem, 12vw, 4.2rem);
  }

  .payout-card__note {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .payout-method-switch {
    margin-bottom: 18px;
  }

  .payout-modal .deal-master__banks {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .payout-modal .bank-radio {
    min-height: 66px;
    padding: 12px 48px 12px 16px;
    gap: 12px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .payout-modal .bank-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .payout-modal .bank-radio input {
    width: 24px;
    height: 24px;
  }

  .payout-modal .bank-radio:has(input:checked)::after {
    right: 16px;
    width: 26px;
    height: 26px;
  }

  .payout-modal .bank-radio:has(input:checked)::before {
    right: 25px;
  }

  .payout-modal #payout-continue {
    min-height: 58px;
    margin-top: 18px;
    border-radius: 14px;
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .modal__box--payout {
    width: calc(100vw - 20px);
    padding: 22px 14px;
  }

  .payout-card__amount {
    font-size: 2.75rem;
  }

  .payout-modal .bank-radio {
    padding-right: 42px;
    font-size: 0.94rem;
  }
}

/* Compact sell modal cleanup. */
#modal-sell .modal__box {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  padding: 26px 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(46, 166, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(14, 24, 40, 0.98), rgba(7, 13, 24, 0.98));
}

#modal-sell .sell-modal__head {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  padding-right: 54px;
}

#modal-sell .sell-modal__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

#modal-sell .sell-modal__icon img {
  width: 42px;
  height: 42px;
  display: block;
}

#modal-sell .modal__title {
  font-size: 1.55rem;
  line-height: 1.15;
}

#modal-sell .modal__subtitle {
  font-size: 0.95rem;
}

#modal-sell .modal__form .form-group {
  margin-bottom: 18px;
}

#modal-sell .modal__form .form-group--price {
  margin-bottom: 18px;
}

#modal-sell .modal__form .form-group label {
  margin-bottom: 8px;
  font-size: 0.98rem;
}

#modal-sell .modal__form .form-group input,
#modal-sell .modal__form .form-group textarea {
  min-height: 56px;
  padding: 0 54px 0 60px;
  border-radius: 14px;
  font-size: 1rem;
}

#modal-sell .sell-input-icon {
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 1.2rem;
}

#modal-sell .sell-input-icon svg {
  width: 21px;
  height: 21px;
}

#modal-sell .sell-input-side-icon {
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

#modal-sell .sell-field-hint {
  margin-top: 8px;
  font-size: 0.82rem;
}

#modal-sell .sell-modal__notice {
  display: none;
}

#modal-sell .modal__form .modal__form-actions .btn--primary {
  min-height: 56px;
  padding: 13px 54px;
  border-radius: 14px;
  font-size: 1rem;
}

#modal-sell .sell-submit-arrow {
  right: 24px;
  font-size: 1.55rem;
}

#modal-sell .sell-modal__secure {
  margin-top: 12px;
  font-size: 0.78rem;
}

#modal-sell .modal__close {
  top: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

#modal-sell .price-help {
  position: absolute;
  left: 0;
  bottom: -24px;
  width: 19px;
  height: 19px;
  opacity: 1;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(46, 166, 255, 0.65);
  background: rgba(46, 166, 255, 0.1);
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  z-index: 4;
}

#modal-sell .price-help:hover,
#modal-sell .price-help:focus-visible {
  background: rgba(46, 166, 255, 0.18);
  border-color: rgba(46, 166, 255, 0.95);
  color: var(--brand-blue-hover);
  outline: none;
}

#modal-sell .price-help__text {
  position: absolute;
  left: 0;
  bottom: -78px;
  display: block;
  width: min(300px, calc(100vw - 64px));
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(46, 166, 255, 0.28);
  background: #101827;
  color: #dbe7f5;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

#modal-sell .price-help:hover + .price-help__text,
#modal-sell .price-help:focus + .price-help__text,
#modal-sell .price-help:focus-visible + .price-help__text {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 480px) {
  #modal-sell .modal__box {
    width: calc(100vw - 20px);
    padding: 22px 16px;
  }

  #modal-sell .sell-modal__head {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding-right: 44px;
  }

  #modal-sell .sell-modal__icon {
    width: 46px;
    height: 46px;
  }

  #modal-sell .sell-modal__icon img {
    width: 36px;
    height: 36px;
  }

  #modal-sell .modal__title {
    font-size: 1.24rem;
  }
}

/* Stable payout modal layout: keep it compact on every viewport. */
#modal-payout .modal__box--payout {
  width: min(520px, calc(100vw - 28px));
  max-width: 520px;
  padding: 26px 22px;
  border-radius: 22px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 0%, rgba(46, 166, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(14, 24, 40, 0.98), rgba(7, 13, 24, 0.98));
}

#modal-payout .payout-card {
  display: block;
  min-height: 0;
  margin: 0 0 20px;
  padding: 0;
}

#modal-payout .payout-card__visual {
  display: none;
}

#modal-payout .payout-card .modal__title {
  margin: 0 0 8px;
  font-size: 1.36rem;
  line-height: 1.18;
}

#modal-payout .payout-card__amount {
  margin: 0 0 12px;
  font-size: clamp(2.9rem, 11vw, 3.8rem);
  line-height: 1;
}

#modal-payout .payout-card__note {
  max-width: none;
  font-size: 0.92rem;
  line-height: 1.45;
}

#modal-payout .payout-method-switch {
  gap: 6px;
  margin: 0 0 16px;
  padding: 5px;
  border-radius: 14px;
}

#modal-payout .payout-method {
  min-height: 42px;
  border-radius: 10px;
  font-size: 0.9rem;
}

#modal-payout .payout-modal__row {
  margin-bottom: 16px;
}

#modal-payout .payout-modal .form-group label,
#modal-payout .payout-bank-title,
#modal-payout .form-group label {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

#modal-payout .payout-modal__row .form-group input {
  min-height: 54px;
  padding: 0 14px;
  border-radius: 13px;
  font-size: 0.98rem;
  background: rgba(3, 9, 20, 0.72);
}

#modal-payout .deal-master__banks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

#modal-payout .bank-radio {
  display: grid;
  grid-template-columns: 24px 38px minmax(0, 1fr) 28px;
  align-items: center;
  min-height: 62px;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.98rem;
  line-height: 1.2;
}

#modal-payout .bank-radio input {
  grid-column: 1;
  width: 22px;
  height: 22px;
}

#modal-payout .bank-logo {
  grid-column: 2;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

#modal-payout .bank-logo--empty {
  width: 38px;
  min-width: 38px;
  height: 38px;
}

#modal-payout .bank-radio > span:last-child {
  grid-column: 3;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

#modal-payout .bank-radio:has(input:checked)::after {
  top: 50%;
  right: 14px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
}

#modal-payout .bank-radio:has(input:checked)::before {
  top: 50%;
  right: 22px;
  width: 9px;
  height: 5px;
  transform: translateY(-64%) rotate(-45deg);
}

#modal-payout #payout-continue {
  min-height: 54px;
  margin-top: 18px;
  border-radius: 14px;
  font-size: 0.98rem;
}

#modal-payout .payout-secure-note {
  margin-top: 12px;
  padding-left: 0;
  font-size: 0.76rem;
}

@media (max-width: 380px) {
  #modal-payout .modal__box--payout {
    width: calc(100vw - 18px);
    padding: 20px 12px;
  }

  #modal-payout .payout-card__amount {
    font-size: 2.55rem;
  }
}

/* Premium sell modal accents: remove cheap bright-blue outlines. */
#modal-sell .sell-modal__icon {
  border: 1px solid rgba(180, 196, 218, 0.24);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(8, 14, 24, 0.28));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#modal-sell .sell-modal__icon img {
  border-radius: 14px;
}

#modal-sell .modal__form .form-group input,
#modal-sell .modal__form .form-group textarea {
  background: rgba(4, 10, 20, 0.72);
  border: 1px solid rgba(166, 184, 210, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

#modal-sell .modal__form .form-group input:hover,
#modal-sell .modal__form .form-group textarea:hover {
  border-color: rgba(190, 207, 230, 0.34);
  background: rgba(6, 13, 25, 0.82);
}

#modal-sell .modal__form .form-group input:focus,
#modal-sell .modal__form .form-group textarea:focus {
  border-color: rgba(125, 170, 210, 0.62);
  box-shadow: 0 0 0 3px rgba(125, 170, 210, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: rgba(5, 12, 24, 0.92);
}

#modal-sell .sell-input-icon,
#modal-sell .sell-input-side-icon {
  border-color: rgba(166, 184, 210, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: #9ec3df;
}

#modal-sell .sell-input-wrap--price .sell-input-icon {
  color: #64d894;
  border-color: rgba(100, 216, 148, 0.2);
  background: rgba(100, 216, 148, 0.065);
}

/* Unified modal design system. Keep this block last. */
.modal {
  padding: 18px;
  align-items: center;
  justify-content: center;
}

.modal .modal__backdrop {
  background: rgba(4, 8, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal .modal__box,
#modal-sell .modal__box,
#modal-how .modal__box,
#modal-deal-help .modal__box,
#modal-payout .modal__box--payout,
#modal-error .modal__box {
  width: min(540px, calc(100vw - 36px));
  max-width: 540px;
  max-height: min(90vh, 760px);
  padding: 28px;
  overflow-y: auto;
  color: #edf3fb;
  background:
    radial-gradient(circle at 16% 0%, rgba(132, 162, 198, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(16, 25, 40, 0.98), rgba(7, 12, 22, 0.98));
  border: 1px solid rgba(166, 184, 210, 0.18);
  border-radius: 20px;
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

#modal-how .modal__box,
#modal-deal-help .modal__box {
  width: min(600px, calc(100vw - 36px));
  max-width: 600px;
}

.modal .modal__close,
#modal-sell .modal__close {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  color: #9eacc0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(166, 184, 210, 0.16);
  border-radius: 12px;
  box-shadow: none;
}

.modal .modal__close:hover,
#modal-sell .modal__close:hover {
  color: #edf3fb;
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(190, 207, 230, 0.24);
}

.modal .modal__title,
#modal-sell .modal__title,
#modal-payout .modal__title,
#modal-deal-help .modal__title {
  margin: 0 48px 8px 0;
  padding: 0;
  color: #f3f7fc;
  font-size: 1.42rem;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

.modal .modal__subtitle,
#modal-sell .modal__subtitle,
.deal-help-modal__subtitle,
.payout-card__note {
  margin: 0 0 20px;
  color: #9eacc0;
  font-size: 0.94rem;
  line-height: 1.5;
  font-weight: 500;
}

.modal .btn--primary,
#modal-sell .btn--primary,
#modal-payout .btn--primary,
#modal-deal-help .btn--primary {
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-blue-active));
  border: 1px solid rgba(154, 204, 246, 0.34);
  box-shadow: 0 14px 34px rgba(20, 96, 160, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 0.96rem;
  font-weight: 800;
}

.modal .btn--primary:hover:not(:disabled),
#modal-sell .btn--primary:hover:not(:disabled),
#modal-payout .btn--primary:hover:not(:disabled),
#modal-deal-help .btn--primary:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--brand-blue-hover), var(--brand-blue-active));
  border-color: rgba(178, 218, 250, 0.46);
  box-shadow: 0 16px 38px rgba(20, 96, 160, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.modal .btn--primary:disabled,
#modal-sell .btn--primary:disabled,
#modal-payout .btn--primary:disabled {
  color: #6f7d91;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(166, 184, 210, 0.12);
  box-shadow: none;
  opacity: 1;
}

.modal .btn--ghost,
#modal-payout .btn--ghost {
  min-height: 48px;
  border-radius: 12px;
  color: #b8c5d6;
  border: 1px solid rgba(166, 184, 210, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

.modal .form-group label,
#modal-sell .form-group label,
#modal-payout .form-group label,
#modal-payout .payout-bank-title {
  margin: 0 0 8px;
  color: #d9e2ef;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 800;
}

.modal .form-group input,
.modal .form-group textarea,
#modal-sell .modal__form .form-group input,
#modal-payout .payout-modal__row .form-group input,
#modal-payout .deal-master__other-bank input {
  min-height: 52px;
  color: #edf3fb;
  background: rgba(4, 10, 20, 0.72);
  border: 1px solid rgba(166, 184, 210, 0.2);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  font-size: 0.96rem;
  font-weight: 650;
}

.modal .form-group input:hover,
.modal .form-group textarea:hover,
#modal-sell .modal__form .form-group input:hover,
#modal-payout .payout-modal__row .form-group input:hover {
  border-color: rgba(190, 207, 230, 0.34);
  background: rgba(6, 13, 25, 0.82);
}

.modal .form-group input:focus,
.modal .form-group textarea:focus,
#modal-sell .modal__form .form-group input:focus,
#modal-payout .payout-modal__row .form-group input:focus {
  outline: none;
  border-color: rgba(125, 170, 210, 0.62);
  box-shadow: 0 0 0 3px rgba(125, 170, 210, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#modal-sell .sell-modal__head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 0 0 22px;
  padding-right: 44px;
}

#modal-sell .sell-modal__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(180, 196, 218, 0.22);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#modal-sell .sell-modal__icon img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

#modal-sell .modal__form .form-group {
  margin-bottom: 17px;
}

#modal-sell .modal__form .form-group input {
  padding-left: 58px;
  padding-right: 52px;
}

#modal-sell .sell-input-icon,
#modal-sell .sell-input-side-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #9ec3df;
  border: 1px solid rgba(166, 184, 210, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

#modal-sell .sell-input-icon {
  left: 11px;
}

#modal-sell .sell-input-side-icon {
  right: 11px;
}

#modal-sell .sell-field-hint {
  margin-top: 8px;
  color: #8ea4bf;
  font-size: 0.8rem;
  font-weight: 600;
}

#modal-sell .price-help {
  bottom: -23px;
}

#modal-sell .price-help__text {
  bottom: -76px;
}

#modal-payout .modal__box--payout {
  width: min(520px, calc(100vw - 36px));
  max-width: 520px;
}

#modal-payout .payout-card {
  margin-bottom: 20px;
}

#modal-payout .payout-card__visual {
  display: none;
}

#modal-payout .payout-card__amount {
  margin: 0 0 12px;
  color: #5ee28e;
  font-size: clamp(2.8rem, 10vw, 3.65rem);
  line-height: 1;
  font-weight: 900;
  text-shadow: none;
}

#modal-payout .payout-method-switch {
  gap: 6px;
  padding: 5px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(166, 184, 210, 0.14);
}

#modal-payout .payout-method {
  min-height: 40px;
  border-radius: 9px;
  color: #9eacc0;
  font-size: 0.88rem;
  font-weight: 800;
}

#modal-payout .payout-method:has(input:checked) {
  color: #fff;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-blue-active));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#modal-payout .deal-master__banks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

#modal-payout .bank-radio {
  display: grid;
  grid-template-columns: 22px 36px minmax(0, 1fr) 26px;
  align-items: center;
  min-height: 58px;
  gap: 11px;
  padding: 10px 13px;
  color: #edf3fb;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(166, 184, 210, 0.14);
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 800;
}

#modal-payout .bank-radio:hover,
#modal-payout .bank-radio:has(input:checked) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(125, 170, 210, 0.34);
  box-shadow: none;
}

#modal-payout .bank-logo,
#modal-payout .bank-logo--empty {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
}

#modal-payout .bank-radio input {
  width: 20px;
  height: 20px;
}

#modal-payout .bank-radio > span:last-child {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

#modal-payout .bank-radio:has(input:checked)::after {
  right: 13px;
  width: 22px;
  height: 22px;
  background: var(--brand-blue);
  box-shadow: none;
}

#modal-payout .bank-radio:has(input:checked)::before {
  right: 20px;
}

#modal-how .modal__content--how {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

#modal-how .modal__block {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(166, 184, 210, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
}

#modal-how .modal__block-icon,
#modal-how .modal__block-q,
#modal-deal-help .deal-help-guide__icon {
  width: 38px;
  height: 38px;
  color: #9ec3df;
  border: 1px solid rgba(166, 184, 210, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

#modal-how .modal__block p {
  color: #c8d3e2;
  font-size: 0.9rem;
  line-height: 1.5;
}

#modal-deal-help .deal-help-modal__head {
  margin: 0 48px 18px 0;
  padding: 0;
}

#modal-deal-help .deal-help-modal__badge {
  margin-bottom: 10px;
  color: #9ec3df;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(166, 184, 210, 0.14);
}

#modal-deal-help .deal-help-guides {
  gap: 10px;
  margin: 18px 0;
}

#modal-deal-help .deal-help-guide {
  min-height: 68px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  color: #edf3fb;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(166, 184, 210, 0.12);
  border-radius: 12px;
}

#modal-deal-help .deal-help-guide:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(125, 170, 210, 0.28);
  transform: none;
}

#modal-error .modal__text {
  color: #c8d3e2;
  font-size: 0.94rem;
  line-height: 1.5;
}

#modal-error .modal__actions {
  margin-top: 20px;
}

@media (max-width: 560px) {
  .modal {
    padding: 10px;
    align-items: flex-start;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
  }

  .modal .modal__box,
  #modal-sell .modal__box,
  #modal-how .modal__box,
  #modal-deal-help .modal__box,
  #modal-payout .modal__box--payout,
  #modal-error .modal__box {
    width: calc(100vw - 20px);
    max-width: none;
    max-height: calc(100vh - 24px);
    padding: 22px 16px;
    border-radius: 16px;
  }

  .modal .modal__title,
  #modal-sell .modal__title,
  #modal-payout .modal__title,
  #modal-deal-help .modal__title {
    margin-right: 44px;
    font-size: 1.2rem;
  }

  .modal .modal__close,
  #modal-sell .modal__close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }

  #modal-sell .sell-modal__head {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding-right: 40px;
  }

  #modal-sell .sell-modal__icon {
    width: 44px;
    height: 44px;
  }

  #modal-sell .sell-modal__icon img {
    width: 36px;
    height: 36px;
  }

  #modal-sell .modal__form .form-group input {
    min-height: 50px;
    padding-left: 54px;
    padding-right: 46px;
  }

  #modal-payout .payout-card__amount {
    font-size: 2.55rem;
  }

  #modal-payout .bank-radio {
    grid-template-columns: 20px 34px minmax(0, 1fr) 24px;
    min-height: 56px;
    gap: 10px;
  }
}

/* Step 1 confirmation: keep the checkbox/text together and the action below. */
.accordion__item[data-step="1"] .deal-master__confirm {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: #9ca3b4;
  line-height: 1.4;
  cursor: pointer;
}

.accordion__item[data-step="1"] .deal-master__confirm input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand-blue);
}

.accordion__item[data-step="1"] [data-step-next="1"] {
  display: flex;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .accordion__item[data-step="1"] .deal-master__confirm {
    width: 100%;
  }
}

/* Step 2 preparation confirmation: keep checkbox left and action below. */
.accordion__item[data-step="2"] .deal-master__confirm {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 18px 0 0;
  color: #9ca3b4;
  line-height: 1.4;
  cursor: pointer;
}

.accordion__item[data-step="2"] .deal-master__confirm input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand-blue);
}

.accordion__item[data-step="2"] [data-step-next="2"] {
  display: flex;
  width: fit-content;
  margin-top: 12px;
  margin-left: 0;
}

@media (max-width: 560px) {
  .accordion__item[data-step="2"] .deal-master__confirm,
  .accordion__item[data-step="2"] [data-step-next="2"] {
    width: 100%;
  }
}

/* Premium modal system v2. Keep this block last. */
:root {
  --premium-bg-0: #0b1017;
  --premium-bg-1: #0e141d;
  --premium-bg-2: #111722;
  --premium-card-0: #151b26;
  --premium-card-1: #181f2b;
  --premium-card-2: #1b2330;
  --premium-border: rgba(255, 255, 255, 0.08);
  --premium-border-soft: rgba(255, 255, 255, 0.06);
  --premium-border-strong: #303b4d;
  --premium-text: #f3f5f8;
  --premium-muted: #9ca6b8;
  --premium-muted-2: #a7b0c0;
  --premium-placeholder: #6f7888;
  --premium-accent: var(--brand-blue);
  --premium-accent-2: var(--brand-blue);
  --premium-accent-3: var(--brand-blue-active);
  --premium-success: #22c55e;
  --premium-error: #ef4444;
  --premium-radius-lg: 22px;
  --premium-radius-md: 14px;
  --premium-radius-sm: 12px;
  --premium-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --premium-font: Inter, Manrope, "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body,
button,
input,
textarea,
select {
  font-family: var(--premium-font);
}

.modal {
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal .modal__backdrop {
  background: rgba(4, 8, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal .modal__box,
#modal-sell .modal__box,
#modal-how .modal__box,
#modal-deal-help .modal__box,
#modal-payout .modal__box--payout,
#modal-error .modal__box,
.check-screen__inner {
  width: min(520px, calc(100vw - 36px));
  max-width: 520px;
  max-height: min(90vh, 760px);
  margin: 0;
  padding: 28px;
  overflow-y: auto;
  color: var(--premium-text);
  background: linear-gradient(180deg, #18202c 0%, #121821 100%);
  border: 1px solid var(--premium-border);
  border-radius: var(--premium-radius-lg);
  box-shadow: var(--premium-shadow);
  outline: none;
}

#modal-how .modal__box,
#modal-deal-help .modal__box {
  width: min(640px, calc(100vw - 36px));
  max-width: 640px;
}

.modal .modal__box::-webkit-scrollbar,
.check-screen__inner::-webkit-scrollbar {
  width: 7px;
}

.modal .modal__box::-webkit-scrollbar-thumb,
.check-screen__inner::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.modal .modal__close,
#modal-sell .modal__close,
#modal-payout .modal__close,
#modal-how .modal__close,
#modal-deal-help .modal__close,
#modal-error .modal__close {
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--premium-muted-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--premium-border);
  border-radius: 12px;
  box-shadow: none;
  transition: background 170ms ease, border-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.modal .modal__close:hover,
#modal-sell .modal__close:hover,
#modal-payout .modal__close:hover,
#modal-how .modal__close:hover,
#modal-deal-help .modal__close:hover,
#modal-error .modal__close:hover {
  color: var(--premium-text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  transform: none;
}

.modal .modal__title,
#modal-sell .modal__title,
#modal-payout .modal__title,
#modal-deal-help .modal__title,
.check-screen__title,
.advantages__title {
  color: var(--premium-text);
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}

.modal .modal__subtitle,
.modal .modal__text,
#modal-sell .modal__desc,
#modal-payout .payout-card__note,
#modal-deal-help .deal-help-modal__subtitle,
.check-screen__desc,
.advantages__subtitle {
  color: var(--premium-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 500;
}

.modal label,
.modal .form-group label,
#modal-sell .modal__form .form-group label,
#modal-payout .payout-field-label,
#modal-payout .payout-bank-title {
  margin-bottom: 8px;
  color: var(--premium-text);
  font-size: 0.86rem;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: 0;
}

.modal input,
#modal-sell .modal__form .form-group input,
#modal-payout .payout-input,
#modal-payout #master-payout,
#modal-payout .other-bank-input,
#modal-payout select {
  min-height: 52px;
  height: 52px;
  color: var(--premium-text);
  background: rgba(17, 23, 34, 0.86);
  border: 1px solid var(--premium-border);
  border-radius: var(--premium-radius-md);
  box-shadow: none;
  font-size: 0.98rem;
  font-weight: 500;
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.modal input::placeholder,
#modal-sell .modal__form .form-group input::placeholder,
#modal-payout .payout-input::placeholder,
#modal-payout #master-payout::placeholder,
#modal-payout .other-bank-input::placeholder {
  color: var(--premium-placeholder);
  opacity: 1;
}

.modal input:focus,
#modal-sell .modal__form .form-group input:focus,
#modal-payout .payout-input:focus,
#modal-payout #master-payout:focus,
#modal-payout .other-bank-input:focus {
  background: rgba(17, 23, 34, 0.96);
  border-color: rgba(59, 130, 246, 0.88);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.modal .btn,
.modal .modal__button,
#modal-sell #btn-confirm-submit,
#modal-payout #payout-continue,
#modal-deal-help .deal-help-modal__cta {
  min-height: 52px;
  height: 52px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--premium-accent-2) 0%, var(--premium-accent-3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--premium-radius-md);
  box-shadow: none;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: 0;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease, opacity 160ms ease;
}

.modal .btn:hover,
.modal .modal__button:hover,
#modal-sell #btn-confirm-submit:hover,
#modal-payout #payout-continue:hover,
#modal-deal-help .deal-help-modal__cta:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.modal .btn:active,
.modal .modal__button:active,
#modal-sell #btn-confirm-submit:active,
#modal-payout #payout-continue:active,
#modal-deal-help .deal-help-modal__cta:active {
  transform: scale(0.98);
}

.modal .btn:disabled,
.modal .modal__button:disabled,
#modal-sell #btn-confirm-submit:disabled,
#modal-payout #payout-continue:disabled {
  color: #697386;
  background: #252c38;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  filter: none;
  transform: none;
  opacity: 1;
}

#modal-sell .sell-modal__head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-right: 52px;
}

#modal-sell .sell-modal__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--premium-border);
  border-radius: 16px;
  box-shadow: none;
}

#modal-sell .sell-modal__icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

#modal-sell .modal__desc {
  margin-top: 6px;
}

#modal-sell .modal__form {
  gap: 20px;
}

#modal-sell .sell-input-wrap {
  margin: 0;
}

#modal-sell .sell-input-icon,
#modal-sell .sell-input-side-icon {
  width: 36px;
  height: 36px;
  color: var(--premium-muted-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--premium-border);
  border-radius: 10px;
  box-shadow: none;
}

#modal-sell .sell-input-icon svg,
#modal-sell .sell-input-side-icon svg {
  width: 19px;
  height: 19px;
}

#modal-sell .modal__form .form-group input {
  padding-left: 58px;
  padding-right: 54px;
}

#modal-sell .field-hint {
  margin-top: 8px;
  color: var(--premium-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

#modal-sell .price-help {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 2px 0 0;
  padding: 12px;
  color: var(--premium-muted-2);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--premium-border-soft);
  border-radius: var(--premium-radius-md);
  box-shadow: none;
}

#modal-sell .price-help__icon {
  width: 34px;
  height: 34px;
  color: var(--premium-accent);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 50%;
  box-shadow: none;
}

#modal-sell .price-help__text {
  color: var(--premium-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.check-screen {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 8, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.check-screen[hidden] {
  display: none;
}

.check-screen__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 5px 10px;
  color: var(--premium-muted-2);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--premium-border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
}

.check-screen__title {
  margin: 0 0 6px;
}

.check-screen__desc {
  margin: 0 0 18px;
}

.check-screen__progress {
  height: 7px;
  margin: 0 50px 16px 0;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.check-screen__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--premium-accent), var(--premium-accent-2));
  border-radius: inherit;
  box-shadow: none;
}

.check-screen__percent {
  margin-top: -32px;
  margin-bottom: 20px;
  color: var(--premium-text);
  font-size: 0.94rem;
  font-weight: 650;
  text-align: right;
}

.check-screen__steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.check-step {
  min-height: 48px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--premium-muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--premium-border-soft);
  border-radius: var(--premium-radius-sm);
  box-shadow: none;
  font-size: 0.88rem;
  font-weight: 550;
}

.check-step::before {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(167, 176, 192, 0.65);
  background: transparent;
  box-shadow: none;
}

.check-step.is-active {
  color: var(--premium-text);
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.08);
}

.check-step.is-active::before {
  border-color: var(--premium-accent);
  background: var(--premium-accent);
}

.check-step.is-done {
  color: var(--premium-muted-2);
}

.check-step.is-done::before {
  border-color: var(--premium-success);
  background: var(--premium-success);
}

#modal-payout .modal__box--payout {
  width: min(520px, calc(100vw - 36px));
}

#modal-payout .payout-card {
  display: block;
  min-height: 0;
  margin: 0 0 20px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#modal-payout .payout-card__content {
  max-width: none;
  padding-right: 46px;
}

#modal-payout .payout-card__visual {
  display: none;
}

#modal-payout .payout-card__amount {
  margin: 10px 0 12px;
  color: var(--premium-success);
  font-size: clamp(2.75rem, 8vw, 3.4rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: none;
}

#modal-payout .payout-card__note {
  max-width: 390px;
  margin: 0;
}

#modal-payout .payout-form {
  display: grid;
  gap: 14px;
}

#modal-payout .payout-method-switch {
  height: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--premium-border);
  border-radius: var(--premium-radius-md);
}

#modal-payout .payout-method {
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  color: var(--premium-muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  font-size: 0.86rem;
  font-weight: 650;
  transition: background 170ms ease, color 170ms ease;
}

#modal-payout .payout-method:has(input:checked) {
  color: var(--premium-text);
  background: linear-gradient(135deg, var(--premium-accent-2), var(--premium-accent-3));
  box-shadow: none;
}

#modal-payout .payout-input-wrap {
  margin: 0;
}

#modal-payout .payout-input-icon {
  color: var(--premium-muted-2);
}

#modal-payout .deal-master__banks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

#modal-payout .bank-radio {
  display: grid;
  grid-template-columns: 22px 36px minmax(0, 1fr) 24px;
  align-items: center;
  min-height: 56px;
  gap: 11px;
  padding: 10px 12px;
  color: var(--premium-text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--premium-border-soft);
  border-radius: var(--premium-radius-md);
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0;
  white-space: normal;
  overflow: hidden;
  transition: background 170ms ease, border-color 170ms ease;
}

#modal-payout .bank-radio:hover,
#modal-payout .bank-radio:has(input:checked) {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow: none;
}

#modal-payout .bank-radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--premium-accent);
}

#modal-payout .bank-logo,
#modal-payout .bank-logo--empty {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

#modal-payout .bank-radio > span:last-child {
  min-width: 0;
  color: inherit;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.25;
}

#modal-payout .bank-radio:has(input:checked)::after,
#modal-payout .bank-radio:has(input:checked)::before {
  display: none;
}

#modal-payout .payout-check {
  color: var(--premium-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

#modal-payout .payout-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--premium-accent);
}

#modal-how .modal__content--how,
#modal-deal-help .deal-help-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

#modal-how .modal__block,
#modal-deal-help .deal-help-guide {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 76px;
  margin: 0;
  padding: 13px;
  color: var(--premium-text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--premium-border-soft);
  border-radius: var(--premium-radius-md);
  box-shadow: none;
  transition: background 170ms ease, border-color 170ms ease;
}

#modal-how .modal__block:hover,
#modal-deal-help .deal-help-guide:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.11);
  transform: none;
}

#modal-how .modal__block-icon,
#modal-how .modal__block-q,
#modal-deal-help .deal-help-guide__icon {
  width: 40px;
  height: 40px;
  color: var(--premium-muted-2);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--premium-border);
  border-radius: 12px;
  box-shadow: none;
}

#modal-how .modal__block p,
#modal-deal-help .deal-help-guide p {
  margin: 0;
  color: var(--premium-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

#modal-deal-help .deal-help-modal__badge {
  width: fit-content;
  margin-bottom: 10px;
  color: var(--premium-muted-2);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--premium-border);
  border-radius: 999px;
  box-shadow: none;
}

.advantages__wrap {
  color: var(--premium-text);
}

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

.advantages__card {
  min-height: 132px;
  padding: 18px;
  color: var(--premium-text);
  background: linear-gradient(180deg, rgba(24, 31, 43, 0.96), rgba(21, 27, 38, 0.96));
  border: 1px solid var(--premium-border-soft);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.advantages__card:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(27, 35, 48, 0.98), rgba(21, 27, 38, 0.98));
  border-color: rgba(255, 255, 255, 0.12);
}

.advantages__card .feature-icon,
.advantages__card .feature-icon svg {
  color: var(--premium-muted-2);
  filter: none;
}

.advantages__heading {
  color: var(--premium-text);
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.advantages__desc {
  color: var(--premium-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

#modal-error .modal__title {
  color: var(--premium-text);
}

#modal-error .modal__text {
  color: var(--premium-muted);
}

@media (max-width: 900px) {
  .advantages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .advantages__grid,
  #modal-how .modal__content--how,
  #modal-deal-help .deal-help-guides {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .modal,
  .check-screen {
    align-items: flex-start;
    padding: max(10px, env(safe-area-inset-top, 0px)) 10px 10px;
  }

  .modal .modal__box,
  #modal-sell .modal__box,
  #modal-how .modal__box,
  #modal-deal-help .modal__box,
  #modal-payout .modal__box--payout,
  #modal-error .modal__box,
  .check-screen__inner {
    width: calc(100vw - 20px);
    max-width: none;
    max-height: calc(100vh - 20px);
    padding: 20px 16px;
    border-radius: 18px;
  }

  .modal .modal__close,
  #modal-sell .modal__close,
  #modal-payout .modal__close,
  #modal-how .modal__close,
  #modal-deal-help .modal__close,
  #modal-error .modal__close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }

  #modal-sell .sell-modal__head {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding-right: 42px;
  }

  #modal-sell .sell-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  #modal-sell .sell-modal__icon img {
    width: 39px;
    height: 39px;
  }

  .modal .modal__title,
  #modal-sell .modal__title,
  #modal-payout .modal__title,
  #modal-deal-help .modal__title,
  .check-screen__title {
    font-size: 1.22rem;
  }

  .modal input,
  #modal-sell .modal__form .form-group input,
  #modal-payout .payout-input,
  #modal-payout #master-payout,
  #modal-payout .other-bank-input,
  .modal .btn,
  .modal .modal__button,
  #modal-sell #btn-confirm-submit,
  #modal-payout #payout-continue {
    min-height: 50px;
    height: 50px;
  }

  #modal-payout .payout-card__content {
    padding-right: 42px;
  }

  #modal-payout .payout-card__amount {
    font-size: 2.55rem;
  }

  #modal-payout .bank-radio {
    grid-template-columns: 20px 34px minmax(0, 1fr);
    min-height: 54px;
    padding: 10px 11px;
  }

  .check-screen__progress {
    margin-right: 44px;
  }
}

/* Sell modal polish fix. Keep after premium modal system v2. */
#modal-sell .modal__box {
  width: min(500px, calc(100vw - 36px));
  max-width: 500px;
  padding: 28px 28px 30px;
}

#modal-sell .sell-modal__head {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

#modal-sell .sell-modal__icon {
  width: 56px;
  height: 56px;
  padding: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#modal-sell .sell-brand-mark {
  display: block;
  width: 44px;
  height: 44px;
}

#modal-sell .modal__title {
  font-size: 1.38rem;
  line-height: 1.15;
  font-weight: 750;
}

#modal-sell .modal__subtitle {
  margin-top: 7px;
  color: #9ca6b8;
  font-size: 0.95rem;
  line-height: 1.35;
}

#modal-sell .modal__form {
  gap: 18px;
}

#modal-sell .modal__form .form-group {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
}

#modal-sell .modal__form .form-group label {
  margin: 0;
  font-size: 0.84rem;
}

#modal-sell .sell-input-wrap {
  display: block;
  position: relative;
}

#modal-sell .modal__form .form-group input {
  width: 100%;
  min-height: 52px;
  height: 52px;
  padding: 0 54px 0 58px;
  background: rgba(17, 23, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  box-shadow: none;
  font-size: 0.98rem;
}

#modal-sell .modal__form .form-group input:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

#modal-sell .modal__form .form-group input:focus {
  border-color: rgba(59, 130, 246, 0.66);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

#modal-sell .sell-input-icon,
#modal-sell .sell-input-side-icon {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  color: #9ca6b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  transform: translateY(-50%);
}

#modal-sell .sell-input-icon {
  left: 10px;
}

#modal-sell .sell-input-side-icon {
  right: 10px;
}

#modal-sell .sell-input-wrap--price .sell-input-icon {
  color: #48d597;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

#modal-sell .sell-field-hint {
  margin: 0;
  color: #91a0b7;
  font-size: 0.82rem;
  line-height: 1.35;
}

#modal-sell .form-error {
  min-height: 0;
  margin: 0;
  color: #ef4444;
  font-size: 0.82rem;
  line-height: 1.35;
}

#modal-sell .price-help {
  position: absolute;
  top: -2px;
  right: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  color: #9ca6b8;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: none;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 700;
  cursor: help;
}

#modal-sell .price-help:hover,
#modal-sell .price-help:focus-visible {
  color: #f3f5f8;
  background: rgba(59, 130, 246, 0.11);
  border-color: rgba(59, 130, 246, 0.32);
  outline: none;
  transform: none;
}

#modal-sell .price-help__text {
  position: absolute;
  top: 28px;
  right: 0;
  z-index: 6;
  width: min(280px, calc(100vw - 72px));
  padding: 10px 12px;
  color: #d7deea;
  background: #151b26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

#modal-sell .price-help:hover + .price-help__text,
#modal-sell .price-help:focus + .price-help__text,
#modal-sell .price-help:focus-visible + .price-help__text {
  opacity: 1;
  transform: translateY(0);
}

#modal-sell .modal__form-actions {
  margin-top: 4px;
}

#modal-sell #btn-confirm-submit {
  height: 52px;
  min-height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-active) 100%);
  box-shadow: none;
}

#modal-sell #btn-confirm-submit:not(:disabled):hover {
  filter: brightness(1.05);
}

@media (max-width: 560px) {
  #modal-sell .modal__box {
    width: calc(100vw - 20px);
    padding: 20px 16px 22px;
  }

  #modal-sell .sell-modal__head {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding-right: 42px;
  }

  #modal-sell .sell-modal__icon {
    width: 48px;
    height: 48px;
    padding: 5px;
    border-radius: 14px;
  }

  #modal-sell .sell-brand-mark {
    width: 38px;
    height: 38px;
  }

  #modal-sell .modal__title {
    font-size: 1.18rem;
  }

  #modal-sell .modal__subtitle {
    font-size: 0.88rem;
  }

  #modal-sell .modal__form {
    gap: 16px;
  }
}

/* Check modal layout fix. Keep after all modal overrides. */
.check-screen__inner {
  width: min(500px, calc(100vw - 36px));
  max-width: 500px;
  padding: 28px;
}

.check-screen__badge {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  min-height: 30px;
  margin: 0 0 18px;
  padding: 0 12px;
  white-space: nowrap;
  line-height: 1;
}

.check-screen__badge::before {
  position: static;
  display: block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background: var(--premium-accent, var(--brand-blue));
  box-shadow: none;
  content: "";
}

.check-screen__title {
  margin: 0 0 6px;
  font-size: 1.34rem;
  line-height: 1.2;
}

.check-screen__desc {
  margin: 0 0 18px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.check-screen__progress {
  position: relative;
  display: block;
  width: calc(100% - 52px);
  height: 7px;
  margin: 0 0 22px;
  overflow: hidden;
}

.check-screen__percent {
  position: relative;
  display: block;
  width: 46px;
  margin: -32px 0 22px auto;
  color: var(--premium-text, #f3f5f8);
  font-size: 0.94rem;
  line-height: 1;
  font-weight: 700;
  text-align: right;
}

.check-screen__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  height: auto;
  margin: 0;
  padding: 14px 16px;
  color: var(--premium-muted, #9ca6b8);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  box-shadow: none;
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.check-step::before {
  position: static;
  inset: auto;
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid rgba(156, 166, 184, 0.72);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  content: "";
  transform: none;
}

.check-step::after {
  display: none;
  content: none;
}

.check-step.is-active {
  color: var(--premium-text, #f3f5f8);
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.26);
}

.check-step.is-active::before {
  border-color: var(--premium-accent, var(--brand-blue));
  background: var(--premium-accent, var(--brand-blue));
}

.check-step.is-done {
  color: var(--premium-muted-2, #a7b0c0);
}

.check-step.is-done::before {
  border-color: var(--premium-success, #22c55e);
  background: var(--premium-success, #22c55e);
}

@media (max-width: 560px) {
  .check-screen__inner {
    width: calc(100vw - 20px);
    padding: 22px 16px;
  }

  .check-screen__title {
    font-size: 1.22rem;
  }

  .check-screen__progress {
    width: calc(100% - 48px);
  }

  .check-screen__percent {
    width: 42px;
  }

  .check-step {
    min-height: 52px;
    padding: 13px 14px;
    font-size: 0.88rem;
  }
}

/* Payout amount scale fix. Keep after all modal overrides. */
#modal-payout .modal__box--payout {
  width: min(470px, calc(100vw - 36px));
  max-height: min(90vh, 720px);
  padding: 26px;
}

#modal-payout .payout-card {
  margin-bottom: 18px;
}

#modal-payout .payout-card__content {
  padding-right: 44px;
}

#modal-payout .payout-card__amount {
  margin: 8px 0 12px;
  color: #2fd16f;
  font-size: clamp(2.15rem, 6.2vw, 2.75rem);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: 0;
  text-shadow: none;
}

#modal-payout .payout-card__note {
  max-width: 360px;
  font-size: 0.88rem;
  line-height: 1.45;
}

#modal-payout .payout-form {
  gap: 12px;
}

#modal-payout .payout-method-switch {
  height: 40px;
  margin: 0;
}

#modal-payout .payout-method {
  min-height: 30px;
  height: 30px;
}

#modal-payout .payout-bank-title,
#modal-payout .payout-field-label,
#modal-payout .form-group label {
  margin-bottom: 7px;
  font-size: 0.82rem;
}

#modal-payout .payout-input,
#modal-payout #master-payout,
#modal-payout .other-bank-input {
  min-height: 48px;
  height: 48px;
}

#modal-payout .bank-radio {
  min-height: 52px;
  padding: 9px 12px;
}

#modal-payout #payout-continue {
  min-height: 50px;
  height: 50px;
  margin-top: 2px;
}

@media (max-width: 560px) {
  #modal-payout .modal__box--payout {
    width: calc(100vw - 20px);
    padding: 22px 16px;
  }

  #modal-payout .payout-card__content {
    padding-right: 42px;
  }

  #modal-payout .payout-card__amount {
    font-size: clamp(2rem, 10.5vw, 2.45rem);
  }
}

/* Sell modal logo remove. Keep after all modal overrides. */
#modal-sell .sell-modal__head {
  display: block;
  grid-template-columns: none;
  gap: 0;
  margin-bottom: 24px;
  padding-right: 52px;
}

#modal-sell .sell-modal__icon,
#modal-sell .sell-brand-mark {
  display: none;
}

#modal-sell .sell-modal__head > div {
  min-width: 0;
}

@media (max-width: 560px) {
  #modal-sell .sell-modal__head {
    display: block;
    grid-template-columns: none;
    padding-right: 42px;
  }
}

/* Sell price tooltip fix. Keep after all modal overrides. */
#modal-sell .sell-label-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

#modal-sell .sell-label-row label {
  margin: 0;
}

#modal-sell .price-help-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 0;
  padding: 0;
}

#modal-sell .price-help {
  position: static;
  inset: auto;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  color: #9ca6b8;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow: none;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 750;
  font-style: normal;
  cursor: help;
  transform: none;
  transition: color 170ms ease, background 170ms ease, border-color 170ms ease, transform 170ms ease;
}

#modal-sell .price-help:hover,
#modal-sell .price-help:focus-visible,
#modal-sell .price-help.is-open {
  color: #f3f5f8;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.32);
  outline: none;
  transform: none;
}

#modal-sell .price-help__text {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  right: auto;
  bottom: auto;
  z-index: 30;
  width: max-content;
  max-width: min(270px, calc(100vw - 72px));
  min-width: 220px;
  margin: 0;
  padding: 10px 12px;
  color: #d7deea;
  background: linear-gradient(180deg, #1b2330 0%, #151b26 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
  font-size: 0.82rem;
  line-height: 1.42;
  font-weight: 520;
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(0, -50%) scale(0.98);
  transform-origin: left center;
  transition: opacity 170ms ease, visibility 170ms ease, transform 170ms ease;
}

#modal-sell .price-help__text::before {
  position: absolute;
  left: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #1b2330;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

#modal-sell .price-help:hover + .price-help__text,
#modal-sell .price-help:focus-visible + .price-help__text,
#modal-sell .price-help.is-open + .price-help__text {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%) scale(1);
}

#modal-sell .form-group--price {
  overflow: visible;
}

#modal-sell .form-group--price .sell-input-wrap {
  margin-top: 0;
}

@media (max-width: 560px) {
  #modal-sell .sell-label-row {
    width: 100%;
  }

  #modal-sell .price-help__text {
    left: 0;
    top: calc(100% + 66px);
    width: min(270px, calc(100vw - 52px));
    min-width: 0;
    max-width: calc(100vw - 52px);
    transform: translateY(-4px) scale(0.98);
    transform-origin: top left;
  }

  #modal-sell .price-help__text::before {
    left: 6px;
    top: -5px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
    transform: rotate(45deg);
  }

  #modal-sell .price-help:hover + .price-help__text,
  #modal-sell .price-help:focus-visible + .price-help__text,
  #modal-sell .price-help.is-open + .price-help__text {
    transform: translateY(0) scale(1);
  }

  #modal-sell .form-group--price:has(.price-help:hover),
  #modal-sell .form-group--price:has(.price-help:focus-visible),
  #modal-sell .form-group--price:has(.price-help.is-open) {
    margin-bottom: 60px;
  }
}


#modal-sell .modal__box {
  padding: 28px 28px 30px;
}

#modal-sell .sell-modal__head {
  margin-bottom: 24px;
}

#modal-sell .modal__form {
  display: grid;
  gap: 0;
}

#modal-sell .modal__form .form-group {
  display: grid;
  gap: 8px;
}

#modal-sell .modal__form .form-group:first-of-type {
  margin-bottom: 15px;
}

#modal-sell .form-group--price {
  margin: 0;
}

#modal-sell .modal__form .form-group label,
#modal-sell .sell-label-row label {
  line-height: 1.2;
}

#modal-sell .sell-label-row {
  height: 18px;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
}

#modal-sell .price-help-wrap,
#modal-sell .price-help {
  width: 19px;
  min-width: 19px;
  height: 19px;
  min-height: 19px;
}

#modal-sell .price-help {
  font-size: 0.68rem;
}

#modal-sell .sell-field-hint {
  margin-top: 1px;
  color: #8f9db4;
  line-height: 1.3;
}

#modal-sell .sell-input-wrap {
  height: 52px;
}

#modal-sell .modal__form .form-group input {
  height: 52px;
  min-height: 52px;
}

#modal-sell .modal__form-actions {
  margin-top: 13px;
}

#modal-sell #btn-confirm-submit {
  height: 52px;
  min-height: 52px;
}

@media (max-width: 560px) {
  #modal-sell .modal__box {
    padding: 22px 16px 24px;
  }

  #modal-sell .sell-modal__head {
    margin-bottom: 22px;
  }

  #modal-sell .modal__form .form-group:first-of-type {
    margin-bottom: 14px;
  }

  #modal-sell .modal__form-actions {
    margin-top: 12px;
  }
}


:root {
  --brand-blue: #2563eb;
  --brand-blue-hover: #2f6bff;
  --brand-blue-active: #1d4ed8;
  --brand-blue-soft: rgba(37, 99, 235, 0.12);
  --brand-blue-focus: rgba(37, 99, 235, 0.16);
  --brand-blue-border: rgba(37, 99, 235, 0.34);
  --brand-blue-border-strong: rgba(37, 99, 235, 0.62);
  --brand-blue-gradient: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-active) 100%);
  --brand-blue-gradient-hover: linear-gradient(135deg, var(--brand-blue-hover) 0%, var(--brand-blue) 100%);
  --blue: var(--brand-blue);
  --blue-hover: var(--brand-blue-hover);
  --accent: var(--brand-blue);
  --accent-hover: var(--brand-blue-hover);
  --accent-subtle: var(--brand-blue-soft);
  --premium-accent: var(--brand-blue);
  --premium-accent-2: var(--brand-blue);
  --premium-accent-3: var(--brand-blue-active);
}

a,
.hero__accent,
.footer__link:hover,
.deal-master__link,
.deal-master__hint-link,
.status-step.is-active span,
.status-step.is-complete span,
.advantages__card .feature-icon,
#modal-how .modal__block-icon,
#modal-how .modal__block-q,
#modal-deal-help .deal-help-guide__icon,
#modal-sell .price-help:hover,
#modal-sell .price-help:focus-visible,
#modal-sell .price-help.is-open {
  color: var(--brand-blue-hover);
}

.btn--primary,
.btn--hero-primary,
.modal .btn,
.modal .modal__button,
.modal .btn--primary,
#modal-sell #btn-confirm-submit,
#modal-sell .btn--primary,
#modal-payout #payout-continue,
#modal-payout .btn--primary,
#modal-deal-help .deal-help-modal__cta,
.accordion__body .btn--primary:not(:disabled),
.payout-modal #payout-continue,
.deal-help-modal__cta,
.payout-check__actions .btn--primary,
#payout-final-continue {
  color: #fff;
  background: var(--brand-blue-gradient);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.btn--primary:hover:not(:disabled),
.btn--hero-primary:hover,
.modal .btn:hover:not(:disabled),
.modal .modal__button:hover:not(:disabled),
.modal .btn--primary:hover:not(:disabled),
#modal-sell #btn-confirm-submit:hover:not(:disabled),
#modal-payout #payout-continue:hover:not(:disabled),
#modal-deal-help .deal-help-modal__cta:hover:not(:disabled),
.accordion__body .btn--primary:hover:not(:disabled),
.payout-modal #payout-continue:hover:not(:disabled),
.payout-check__actions .btn--primary:hover:not(:disabled),
#payout-final-continue:hover:not(:disabled) {
  background: var(--brand-blue-gradient-hover);
  border-color: rgba(255, 255, 255, 0.1);
  filter: brightness(1.03);
  box-shadow: none;
}

.btn--primary:active:not(:disabled),
.btn--hero-primary:active,
.modal .btn:active:not(:disabled),
.modal .modal__button:active:not(:disabled),
#modal-sell #btn-confirm-submit:active:not(:disabled),
#modal-payout #payout-continue:active:not(:disabled),
.accordion__body .btn--primary:active:not(:disabled),
.payout-modal #payout-continue:active:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-blue-active) 0%, #193fae 100%);
  transform: scale(0.98);
}

.btn--primary:disabled,
.btn--primary[disabled],
.modal .btn:disabled,
.modal .modal__button:disabled,
#modal-sell #btn-confirm-submit:disabled,
#modal-payout #payout-continue:disabled,
#payout-final-continue:disabled {
  color: #697386;
  background: #252c38;
  border-color: rgba(255, 255, 255, 0.06);
  filter: none;
  box-shadow: none;
}

input:focus,
textarea:focus,
select:focus,
.form-group input:focus,
.form-group textarea:focus,
.modal input:focus,
#modal-sell .modal__form .form-group input:focus,
#modal-payout .payout-input:focus,
#modal-payout #master-payout:focus,
#modal-payout .other-bank-input:focus,
.payout-modal__row .form-group input:focus,
.deal-master__other-bank input:focus,
.accordion__body .form-group input:focus,
.accordion__body .form-group textarea:focus {
  border-color: var(--brand-blue-border-strong);
  box-shadow: 0 0 0 3px var(--brand-blue-focus);
}

button:focus-visible,
a:focus-visible,
.btn:focus-visible,
.modal__close:focus-visible,
.accordion__header:focus-visible,
.deal-master__link:focus-visible,
.deal-master__hint-link:focus-visible,
.password-toggle:focus-visible,
.finish-help__trigger:focus-visible,
.deal-help-guide:focus-visible,
.deal-help-float:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

input[type="radio"],
input[type="checkbox"],
.bank-radio input,
#modal-payout .bank-radio input,
#modal-payout .payout-check input,
.payout-confirm input {
  accent-color: var(--brand-blue);
}

.check-screen__bar,
.payout-check__bar span,
.progress-bar,
.progress__bar,
.status-progress__bar {
  background: var(--brand-blue-gradient);
  box-shadow: none;
}

.check-screen__badge::before,
.check-step.is-active::before,
.status-step.is-active::before,
.status-step.is-active .status-step__icon {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  box-shadow: none;
}

.check-step.is-active,
.status-step.is-active,
.accordion__item.is-active,
.accordion__item[data-state="active"],
.deal-master__notice,
.bank-radio:has(input:checked),
#modal-payout .bank-radio:has(input:checked),
.payout-modal .bank-radio:has(input:checked),
.payout-method:has(input:checked),
#modal-payout .payout-method:has(input:checked),
.payout-modal .payout-method:has(input:checked) {
  background: var(--brand-blue-soft);
  border-color: var(--brand-blue-border);
  box-shadow: none;
}

.payout-method:has(input:checked),
#modal-payout .payout-method:has(input:checked),
.payout-modal .payout-method:has(input:checked) {
  color: #fff;
  background: var(--brand-blue-gradient);
}

.bank-radio:hover,
#modal-payout .bank-radio:hover,
.payout-modal .bank-radio:hover,
.deal-help-guide:hover,
#modal-how .modal__block:hover,
.advantages__card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: none;
}

.bank-radio:has(input:checked)::after,
.payout-modal .bank-radio:has(input:checked)::after,
#modal-payout .bank-radio:has(input:checked)::after {
  background: var(--brand-blue);
  box-shadow: none;
}

.payout-check__spinner path {
  stroke: var(--brand-blue);
}

#modal-sell .price-help:hover,
#modal-sell .price-help:focus-visible,
#modal-sell .price-help.is-open,
.price-help:hover,
.price-help:focus-visible {
  background: var(--brand-blue-soft);
  border-color: var(--brand-blue-border);
}

#modal-sell .sell-input-wrap--price .sell-input-icon {
  color: var(--premium-success, #22c55e);
}

::selection {
  color: #fff;
  background: rgba(37, 99, 235, 0.45);
}

.btn--ghost,
.modal .btn--ghost,
.payout-check__actions .btn--ghost,
#payout-recheck,
.btn--hero-secondary {
  color: #a7b0c0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.btn--ghost:hover:not(:disabled),
.modal .btn--ghost:hover:not(:disabled),
.payout-check__actions .btn--ghost:hover:not(:disabled),
#payout-recheck:hover:not(:disabled),
.btn--hero-secondary:hover {
  color: #f3f5f8;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(37, 99, 235, 0.22);
  filter: none;
  box-shadow: none;
}


.header .logo,
.header .logo:visited,
.header .logo__text,
.header .nav__link,
.header .nav__link:visited,
.footer .logo,
.footer .logo:visited,
.footer .logo__text,
.footer__links a,
.footer__links a:visited,
.footer__link-icon {
  color: #f3f5f8;
}

.header .nav__link:hover,
.header .nav__link:focus-visible,
.footer__links a:hover,
.footer__links a:focus-visible,
.footer .logo:hover,
.header .logo:hover {
  color: #ffffff;
}

.footer__desc,
.footer__copy,
.footer__badge {
  color: #9ca6b8;
}


.accordion__item[data-step="3"] .deal-master__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.accordion__item[data-step="3"] .deal-master__actions > a {
  width: fit-content;
  color: var(--brand-blue-hover);
  font-size: 0.94rem;
  line-height: 1.35;
  text-decoration: none;
}

.accordion__item[data-step="3"] .deal-master__actions > a:hover {
  color: #f3f5f8;
}

#master-get-code,
#master-get-code.btn,
#master-get-code.btn--ghost {
  width: fit-content;
  min-width: 208px;
  max-width: 100%;
  min-height: 46px;
  height: 46px;
  padding: 0 18px;
  color: #d7deea;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(37, 99, 235, 0.34);
  border-radius: 12px;
  box-shadow: none;
  font-size: 0.94rem;
  font-weight: 650;
  transform: none;
}

#master-get-code:hover:not(:disabled),
#master-get-code.btn:hover:not(:disabled),
#master-get-code.btn--ghost:hover:not(:disabled) {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.52);
  filter: none;
  box-shadow: none;
  transform: none;
}

#master-get-code:active:not(:disabled),
#master-get-code.btn:active:not(:disabled),
#master-get-code.btn--ghost:active:not(:disabled) {
  background: rgba(37, 99, 235, 0.16);
  transform: scale(0.99);
}

#master-get-code:disabled,
#master-get-code.btn:disabled,
#master-get-code.btn--ghost:disabled {
  color: #697386;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

#master-finish.btn--finish-payout,
.accordion__body #master-finish.btn--finish-payout,
.accordion__body .btn--finish-payout:not(:disabled) {
  width: 100%;
  min-height: 52px;
  height: 52px;
  margin-top: 10px;
  color: #ffffff;
  background: var(--brand-blue-gradient);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: none;
  font-size: 0.95rem;
  font-weight: 700;
}

#master-finish.btn--finish-payout:hover:not(:disabled),
.accordion__body #master-finish.btn--finish-payout:hover:not(:disabled),
.accordion__body .btn--finish-payout:hover:not(:disabled) {
  background: var(--brand-blue-gradient-hover);
  filter: brightness(1.03);
  box-shadow: none;
}

.accordion__item[data-step="3"] .finish-help {
  justify-self: center;
  margin-top: 6px;
}

@media (max-width: 560px) {
  #master-get-code,
  #master-get-code.btn,
  #master-get-code.btn--ghost {
    width: 100%;
  }

  #master-finish.btn--finish-payout,
  .accordion__body #master-finish.btn--finish-payout {
    margin-top: 6px;
  }
}


.deal-help-float {
  right: 22px;
  bottom: 22px;
  z-index: 950;
  min-height: 46px;
  padding: 0 16px 0 12px;
  gap: 10px;
  color: #f3f5f8;
  background: rgba(21, 27, 38, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.deal-help-float:hover,
.deal-help-float:focus-visible {
  color: #ffffff;
  background: rgba(24, 31, 43, 0.98);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.deal-help-float__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--brand-blue-soft);
  border: 1px solid var(--brand-blue-border);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 750;
}

#modal-deal-help .modal__box--deal-help {
  width: min(680px, calc(100vw - 40px));
  max-width: 680px;
  padding: 32px;
  overflow: visible;
}

#modal-deal-help .modal__close {
  top: 24px;
  right: 24px;
}

#modal-deal-help .deal-help-modal__head {
  margin: 0 56px 24px 0;
  padding: 0;
}

#modal-deal-help .deal-help-modal__badge {
  margin: 0 0 12px;
}

#modal-deal-help .deal-help-modal__title {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.2;
}

#modal-deal-help .deal-help-modal__subtitle {
  max-width: 520px;
  margin: 10px 0 0;
  font-size: 0.94rem;
  line-height: 1.5;
}

#modal-deal-help .deal-help-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

#modal-deal-help .deal-help-guide {
  min-height: 84px;
  padding: 14px;
  gap: 13px;
  align-items: center;
  border-radius: 14px;
}

#modal-deal-help .deal-help-guide__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

#modal-deal-help .deal-help-guide strong {
  margin-bottom: 4px;
  font-size: 0.94rem;
  line-height: 1.25;
}

#modal-deal-help .deal-help-guide small {
  font-size: 0.82rem;
  line-height: 1.35;
}

#modal-deal-help .deal-help-modal__cta {
  margin-top: 0;
}

@media (max-width: 700px) {
  #modal-deal-help .modal__box--deal-help {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 22px 16px;
    overflow-y: auto;
  }

  #modal-deal-help .deal-help-modal__head {
    margin-right: 44px;
    margin-bottom: 20px;
  }

  #modal-deal-help .deal-help-guides {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .deal-help-float {
    right: 14px;
    bottom: 14px;
  }
}


.modal:not([hidden]),
.check-screen:not([hidden]) {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(14px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  overflow: hidden;
}

.modal .modal__backdrop {
  position: absolute;
  inset: 0;
}

.modal .modal__box,
#modal-sell .modal__box,
#modal-how .modal__box,
#modal-deal-help .modal__box,
#modal-deal-help .modal__box--deal-help,
#modal-payout .modal__box--payout,
#modal-error .modal__box,
.check-screen__inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@supports not (height: 100dvh) {
  .modal .modal__box,
  #modal-sell .modal__box,
  #modal-how .modal__box,
  #modal-deal-help .modal__box,
  #modal-deal-help .modal__box--deal-help,
  #modal-payout .modal__box--payout,
  #modal-error .modal__box,
  .check-screen__inner {
    max-height: calc(100vh - 28px);
  }
}

@media (max-width: 560px) {
  .modal:not([hidden]),
  .check-screen:not([hidden]) {
    display: grid;
    place-items: center;
    align-items: center;
    justify-content: center;
    padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  }

  .modal .modal__box,
  #modal-sell .modal__box,
  #modal-how .modal__box,
  #modal-deal-help .modal__box,
  #modal-deal-help .modal__box--deal-help,
  #modal-payout .modal__box--payout,
  #modal-error .modal__box,
  .check-screen__inner {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    margin: 0 auto;
  }
}

/* Sell modal direct-contact spacing. Keep after modal overrides. */
#modal-sell .modal__form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#modal-sell .sell-direct-link {
  margin-top: 0;
}

@media (max-width: 560px) {
  #modal-sell .modal__form-actions {
    gap: 9px;
  }
}


#modal-sell .modal__form-actions .sell-direct-link {
  min-height: 44px;
  padding: 10px 46px 10px 18px;
  border: 1px solid rgba(124, 139, 166, 0.22);
  background: rgba(10, 16, 26, 0.28);
  color: #8f9db4;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: none;
  filter: none;
}

#modal-sell .modal__form-actions .sell-direct-link:hover:not(:disabled) {
  border-color: rgba(124, 139, 166, 0.38);
  background: rgba(18, 28, 44, 0.42);
  color: #c1cce0;
  box-shadow: none;
  filter: none;
}

#modal-sell .modal__form-actions .sell-direct-link:active:not(:disabled) {
  background: rgba(13, 21, 34, 0.5);
  transform: translateY(1px);
}

#modal-sell .modal__form-actions .sell-direct-link .sell-direct-link__arrow {
  right: 20px;
  color: currentColor;
  font-size: 1rem;
  opacity: 0.68;
}
}

@layer components {
:root {
  --landing-bg: var(--ui-page);
  --landing-surface: var(--ui-surface-secondary);
  --landing-card: var(--ui-surface);
  --landing-text: var(--ui-text);
  --landing-muted: var(--ui-text-secondary);
  --landing-soft: var(--ui-text-muted);
  --landing-border: var(--ui-border);
  --landing-blue: var(--ui-primary);
  --landing-blue-dark: var(--ui-primary-hover);
  --landing-blue-soft: var(--ui-primary-soft);
  --landing-shadow: var(--ui-shadow-card);
  --landing-radius: var(--ui-radius-card);
}


#modal-final-success .modal__backdrop {
  background: rgba(15, 23, 42, 0.52);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#modal-final-success .final-success-modal__box {
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
  padding: 34px;
  border: 1px solid rgba(23, 92, 211, 0.12);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

#modal-final-success .modal__close {
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  background: #f8fafc;
  color: #667085;
}

#modal-final-success .modal__close:hover {
  border-color: #d9e0eb;
  background: #f1f5f9;
  color: #344054;
}

#modal-final-success .modal__close:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.final-success-modal__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border: 8px solid #eaf8f1;
  border-radius: 50%;
  background: #16a36a;
  color: #fff;
  box-shadow: 0 12px 28px rgba(18, 183, 106, 0.22);
}

.final-success-modal__content {
  text-align: center;
}

.final-success-modal__status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #087a4e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#modal-final-success .final-success-modal__title {
  margin: 0 44px 10px;
  padding: 0;
  color: #101828;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.final-success-modal__description {
  max-width: 430px;
  margin: 0 auto 24px;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.final-success-modal__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.final-success-modal__detail {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid #e6ebf2;
  border-radius: 15px;
  background: #f8fafc;
  text-align: left;
}

.final-success-modal__detail dt {
  margin-bottom: 5px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

.final-success-modal__detail dd {
  margin: 0;
  overflow: hidden;
  color: #101828;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.final-success-modal__notice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid #dce9ff;
  border-radius: 15px;
  background: #f3f7ff;
  color: #175cd3;
  text-align: left;
}

.final-success-modal__notice-icon {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e3edff;
}

.final-success-modal__notice p {
  margin: 0;
  color: #344f7d;
  font-size: 13px;
  line-height: 1.5;
}

#modal-final-success .final-success-modal__button {
  min-height: 50px;
  border-radius: 13px;
  background: #175cd3;
  box-shadow: 0 9px 20px rgba(23, 92, 211, 0.2);
}

#modal-final-success .final-success-modal__button:disabled {
  cursor: not-allowed;
  background: #8eaae0;
  box-shadow: none;
  opacity: 1;
}

@media (max-width: 560px) {
  #modal-final-success .final-success-modal__box {
    width: calc(100vw - 20px);
    padding: 28px 18px 20px;
    border-radius: 20px;
  }

  #modal-final-success .modal__close {
    top: 14px;
    right: 14px;
  }

  .final-success-modal__icon {
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
  }

  #modal-final-success .final-success-modal__title {
    margin: 0 34px 9px;
    font-size: 22px;
  }

  .final-success-modal__description {
    margin-bottom: 19px;
    font-size: 13px;
  }

  .final-success-modal__details {
    grid-template-columns: 1fr;
  }

  .final-success-modal__detail {
    padding: 13px 14px;
  }

  .final-success-modal__notice {
    margin-bottom: 18px;
    padding: 12px;
  }
}

html {
  scroll-padding-top: 96px;
  background: var(--landing-bg);
}

body {
  margin: 0;
  background: var(--landing-bg);
  color: var(--landing-text);
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.landing-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: 82px;
  border-bottom: 1px solid rgba(228, 231, 236, 0.9);
  background: rgba(252, 252, 253, 0.91);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  color: var(--landing-text);
  text-decoration: none;
}

.brand__mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand__copy {
  display: grid;
  gap: 1px;
}

.brand__copy strong {
  color: var(--landing-text);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.brand__copy small {
  color: var(--landing-muted);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 4px;
  left: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--landing-blue);
  content: "";
  transition: right 180ms ease, left 180ms ease;
}

.site-nav a:hover {
  color: var(--landing-blue);
}

.site-nav a:hover::after {
  right: 0;
  left: 0;
}

.site-header__cta {
  justify-self: end;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.action svg {
  flex: 0 0 auto;
}

.action--large {
  min-height: 56px;
  padding-inline: 24px;
  border-radius: 15px;
  font-size: 15px;
}

.action--primary {
  border-color: var(--landing-blue);
  background: var(--landing-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 92, 211, 0.2);
}

.action--primary:hover {
  border-color: var(--landing-blue-dark);
  background: var(--landing-blue-dark);
  box-shadow: 0 12px 24px rgba(23, 92, 211, 0.24);
  transform: translateY(-1px);
}

.action--secondary {
  border-color: #d0d5dd;
  background: #fff;
  color: #344054;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.action--secondary:hover {
  border-color: #98a2b3;
  background: #f9fafb;
  transform: translateY(-1px);
}

.action:focus-visible,
.account-card:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid rgba(23, 92, 211, 0.24);
  outline-offset: 3px;
}

.landing-main {
  display: block;
  overflow: hidden;
  background: var(--landing-bg);
}


.landing-main .reveal {
  opacity: 1;
  transform: none;
}

.landing-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 790px;
  padding: 118px 0 54px;
  isolation: isolate;
}

.landing-hero__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.landing-hero__glow--one {
  top: 96px;
  right: -90px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(219, 234, 254, 0.82) 0%, rgba(239, 246, 255, 0.46) 40%, rgba(252, 252, 253, 0) 72%);
}

.landing-hero__glow--two {
  bottom: 28px;
  left: -190px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(239, 246, 255, 0.55) 0%, rgba(252, 252, 253, 0) 72%);
}

.landing-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(540px, .96fr);
  align-items: center;
  gap: 56px;
}

.landing-hero__content {
  max-width: 640px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 13px 5px 7px;
  gap: 9px;
  border: 1px solid var(--landing-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #475467;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  font-size: 13px;
  font-weight: 650;
}

.trust-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--landing-blue);
  color: #fff;
}

.landing-hero__eyebrow {
  margin: 24px 0 12px;
  color: var(--landing-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.4;
  text-transform: uppercase;
}

.landing-hero__title {
  max-width: 640px;
  margin: 56px 0 0;
  color: var(--landing-text);
  font-size: clamp(48px, 3.45vw, 64px);
  font-weight: 780;
  letter-spacing: -0.052em;
  line-height: 1.06;
}

.landing-hero__title > .landing-hero__accent {
  color: var(--landing-blue);
}

.hero-word {
  position: relative;
  display: inline-block;
  isolation: isolate;
  color: inherit;
  white-space: nowrap;
}

.hero-word__target {
  display: inline-block;
  color: inherit;
  transform-origin: 50% 100%;
  animation: heroTargetStomp 14s cubic-bezier(.22, 1, .36, 1) 1.15s infinite;
}

.hero-hopper {
  position: absolute;
  z-index: 3;
  left: 110%;
  bottom: .82em;
  width: .66em;
  height: .66em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0);
  transform-origin: 50% 100%;
  animation: heroBotHop 14s linear 1.15s infinite;
  will-change: left, opacity, transform;
}

.hero-hopper__bot {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px solid #b2ccff;
  border-radius: 36% 36% 42% 42%;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 24px rgba(23, 92, 211, .22), 0 3px 8px rgba(16, 24, 40, .12);
}

.hero-hopper__bot::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -.13em;
  width: .34em;
  height: .13em;
  border: 2px solid #175cd3;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  background: #eff4ff;
  transform: translateX(-50%);
}

.hero-hopper img {
  display: block;
  width: 82%;
  height: 82%;
}

@keyframes heroBotHop {
  0%, 4% { left: 110%; opacity: 0; transform: translate(-50%, .02em) rotate(8deg) scale(.88); }
  6% { left: 104%; opacity: 1; transform: translate(-50%, -.34em) rotate(-7deg) scale(1); }
  10% { left: 94%; opacity: 1; transform: translate(-50%, 0) rotate(0) scale(1.04, .92); }
  14% { left: 87.5%; opacity: 1; transform: translate(-50%, -.38em) rotate(7deg) scale(1); }
  18% { left: 81%; opacity: 1; transform: translate(-50%, 0) rotate(0) scale(1.04, .92); }
  22% { left: 75%; opacity: 1; transform: translate(-50%, -.4em) rotate(-7deg) scale(1); }
  26% { left: 69%; opacity: 1; transform: translate(-50%, 0) rotate(0) scale(1.04, .92); }
  30% { left: 62.5%; opacity: 1; transform: translate(-50%, -.4em) rotate(7deg) scale(1); }
  34% { left: 56%; opacity: 1; transform: translate(-50%, 0) rotate(0) scale(1.04, .92); }
  38% { left: 50%; opacity: 1; transform: translate(-50%, -.4em) rotate(-7deg) scale(1); }
  42% { left: 44%; opacity: 1; transform: translate(-50%, 0) rotate(0) scale(1.04, .92); }
  46% { left: 37.5%; opacity: 1; transform: translate(-50%, -.4em) rotate(7deg) scale(1); }
  50% { left: 31%; opacity: 1; transform: translate(-50%, 0) rotate(0) scale(1.04, .92); }
  54% { left: 25%; opacity: 1; transform: translate(-50%, -.42em) rotate(-8deg) scale(1); }
  58% { left: 19%; opacity: 1; transform: translate(-50%, 0) rotate(0) scale(1.04, .92); }
  62% { left: 12.5%; opacity: 1; transform: translate(-50%, -.5em) rotate(7deg) scale(1.02); }
  66% { left: 6%; opacity: 1; transform: translate(-50%, .08em) rotate(0) scale(1.12, .78); }
  69% { left: 6%; opacity: 1; transform: translate(-50%, .16em) rotate(0) scale(1.08, .86); }
  73% { left: -2%; opacity: .9; transform: translate(-50%, -.52em) rotate(-13deg) scale(.98); }
  77%, 100% { left: -12%; opacity: 0; transform: translate(-50%, -.72em) rotate(-18deg) scale(.84); }
}

@keyframes heroTargetStomp {
  0%, 64% { transform: translateY(0) scale(1); }
  66% { transform: translateY(.13em) scale(1.06, .72); }
  69% { transform: translateY(.34em) scale(1.14, .24); }
  72% { transform: translateY(.2em) scale(.96, .62); }
  75% { transform: translateY(-.05em) scale(.98, 1.08); }
  78%, 100% { transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-word__target {
    animation: none;
  }

  .hero-hopper {
    display: none;
    animation: none;
  }
}

.landing-hero__lead {
  max-width: 550px;
  margin: 24px 0 0;
  color: var(--landing-muted);
  font-size: 18px;
  line-height: 1.65;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.landing-benefits {
  display: flex;
  flex-wrap: wrap;
  margin: 28px 0 0;
  padding: 0;
  gap: 22px;
  color: #475467;
  list-style: none;
}

.landing-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.landing-benefits li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: var(--landing-blue);
}

.service-visual {
  position: relative;
  min-height: 610px;
  perspective: 1100px;
  isolation: isolate;
}

.service-visual::before {
  position: absolute;
  z-index: -3;
  inset: 25px -50px 5px 8px;
  border-radius: 48% 52% 42% 58%;
  background: radial-gradient(circle at 52% 44%, rgba(219, 234, 254, .78) 0%, rgba(239, 246, 255, .56) 42%, rgba(255, 255, 255, 0) 74%);
  content: "";
  pointer-events: none;
}

.service-visual__grid {
  position: absolute;
  z-index: -2;
  inset: 36px -24px 46px 18px;
  border-radius: 50%;
  background-image: linear-gradient(rgba(23,92,211,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(23,92,211,.026) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 53% 48%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 53% 48%, #000 0%, transparent 70%);
  pointer-events: none;
}

.service-visual__orb {
  position: absolute;
  z-index: -1;
  top: 58px;
  left: 56%;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 219, 254, .55) 0%, rgba(219, 234, 254, .22) 43%, rgba(255,255,255,0) 72%);
  transform: translateX(-50%);
  pointer-events: none;
}

.service-visual__orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(79, 135, 230, .19);
  border-radius: 50%;
  pointer-events: none;
}

.service-visual__orbit--one {
  top: 119px;
  left: 17px;
  width: 520px;
  height: 332px;
  animation: hero-orbit-breathe 8s ease-in-out infinite;
  transform: rotate(-18deg);
}

.service-visual__orbit--two {
  top: 171px;
  left: 46px;
  width: 470px;
  height: 250px;
  border-color: rgba(79, 135, 230, .11);
  transform: rotate(21deg);
}

.service-visual__token {
  position: absolute;
  z-index: 5;
  top: 83px;
  left: 28px;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 24px;
  background: linear-gradient(145deg, #f2f7ff 8%, #c9dcff 92%);
  color: #2f72df;
  box-shadow: 0 24px 45px rgba(30, 94, 204, .18), inset 0 1px 0 #fff;
  font-size: 34px;
  font-weight: 750;
  animation: hero-token-float 6.5s ease-in-out infinite;
  transform: rotate(-12deg);
}

.service-visual__payout-art {
  position: absolute;
  z-index: 5;
  right: -11px;
  bottom: 82px;
  width: 138px;
  height: 138px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(30, 94, 204, .16));
  animation: hero-payout-float 7s ease-in-out infinite .4s;
}

.service-visual__base {
  position: absolute;
  z-index: 0;
  right: 52px;
  bottom: 31px;
  width: 420px;
  height: 72px;
  border: 1px solid rgba(167, 196, 239, .58);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(217,232,255,.72));
  box-shadow: 0 28px 48px rgba(23, 92, 211, .16), inset 0 10px 24px rgba(255,255,255,.9);
  transform: rotate(2deg);
}

.service-visual__base span {
  position: absolute;
  inset: 12px 24px 18px;
  border: 1px solid rgba(163, 194, 239, .42);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(87, 145, 232, .2), rgba(255,255,255,.84) 68%);
}

.service-panel {
  position: absolute;
  z-index: 2;
  top: 61px;
  left: 56%;
  display: flex;
  width: min(350px, calc(100% - 148px));
  min-height: 454px;
  flex-direction: column;
  padding: 35px 25px 30px;
  overflow: hidden;
  border: 1px solid rgba(196, 211, 235, .92);
  border-radius: 40px;
  background: linear-gradient(155deg, rgba(255,255,255,.99), rgba(247,250,255,.97));
  box-shadow: 0 34px 68px rgba(29, 78, 155, .18), 0 4px 12px rgba(29, 78, 155, .08), inset 0 1px 0 #fff;
  animation: hero-device-float 7.5s ease-in-out infinite;
  transform: translateX(-50%) rotate(6deg);
  transform-origin: 50% 82%;
}

.service-panel::before {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: #dbe4f2;
  content: "";
  transform: translateX(-50%);
}

.service-panel::after {
  position: absolute;
  top: -80px;
  right: -110px;
  width: 220px;
  height: 520px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
  content: "";
  pointer-events: none;
  transform: rotate(17deg);
}

.service-panel__top,
.service-panel__steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-panel__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #344054;
  font-size: 11px;
  font-weight: 750;
}

.service-panel__status i,
.site-footer__bottom i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--landing-blue);
  box-shadow: 0 0 0 4px rgba(23, 92, 211, 0.1);
}

.service-panel__id {
  color: var(--landing-soft);
  font-size: 10px;
  font-weight: 650;
}

.service-panel__hero {
  display: flex;
  align-items: center;
  margin: 54px 0 48px;
  gap: 15px;
}

.service-panel__shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border: 1px solid #b2ccff;
  border-radius: 17px;
  background: var(--landing-blue-soft);
  color: var(--landing-blue);
}

.service-panel__hero div {
  display: grid;
  min-width: 0;
}

.service-panel__hero small {
  color: var(--landing-soft);
  font-size: 10px;
  font-weight: 700;
}

.service-panel__hero strong {
  margin-top: 2px;
  color: var(--landing-text);
  font-size: 18px;
  letter-spacing: -0.025em;
}

.service-panel__hero p {
  margin: 4px 0 0;
  color: var(--landing-muted);
  font-size: 10px;
  line-height: 1.4;
}

.service-panel__progress {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaecf0;
}

.service-panel__progress span {
  position: relative;
  display: block;
  width: 74%;
  height: 100%;
  border-radius: inherit;
  background: var(--landing-blue);
}

.service-panel__progress span::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  content: "";
  animation: landing-progress-shine 2.8s ease-in-out infinite;
  transform: translateX(-120%);
}

.service-panel__steps {
  margin-top: 19px;
  color: var(--landing-soft);
  font-size: 9px;
  font-weight: 700;
}

.service-panel__steps span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-panel__steps i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1px solid #d0d5dd;
  border-radius: 50%;
  color: var(--landing-soft);
  font-size: 9px;
  font-style: normal;
}

.service-panel__steps .is-complete {
  color: #344054;
}

.service-panel__steps .is-complete i {
  border-color: var(--landing-blue);
  background: var(--landing-blue);
  color: #fff;
}

.service-visual > .status-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  min-width: 205px;
  padding: 13px 15px;
  gap: 11px;
  border: 1px solid rgba(208, 213, 221, 0.9);
  border-radius: 15px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 38px rgba(16, 24, 40, .11), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.status-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid #b2ccff;
  border-radius: 11px;
  background: var(--landing-blue-soft);
  color: var(--landing-blue);
}

.service-visual > .status-card > span:last-child {
  display: grid;
  gap: 3px;
}

.service-visual > .status-card strong {
  color: var(--landing-text);
  font-size: 11px;
  line-height: 1.25;
}

.service-visual > .status-card small {
  color: var(--landing-soft);
  font-size: 9px;
  line-height: 1.25;
}

.service-visual > .status-card--check {
  top: 29px;
  right: 15px;
  left: auto;
  transform: rotate(-1.5deg);
  animation: landing-float-check 5.6s ease-in-out infinite;
}

.service-visual > .status-card--payment {
  right: auto;
  bottom: 113px;
  left: 0;
  transform: rotate(1.5deg);
  animation: landing-float-payment 6.4s ease-in-out infinite;
}

.service-visual > .status-card--update {
  top: 224px;
  bottom: auto;
  left: -12px;
  min-width: 178px;
  transform: rotate(-1deg);
  animation: landing-float-update 6s ease-in-out infinite .35s;
}

.game-dock {
  position: absolute;
  z-index: 4;
  right: 47%;
  bottom: 73px;
  display: flex;
  padding: 7px;
  gap: 6px;
  border: 1px solid rgba(208, 213, 221, 0.86);
  border-radius: 17px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 18px 34px rgba(16,24,40,.12), inset 0 1px 0 #fff;
  transform: translateX(50%);
}

.game-dock span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-dock span:hover {
  border-color: #b2ccff;
  box-shadow: 0 6px 14px rgba(16,24,40,.08);
  transform: translateY(-3px);
}

.game-dock img {
  width: 24px;
  height: 24px;
}

@keyframes landing-progress-shine {
  0%, 35% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

@keyframes landing-float-check {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-7px) rotate(-.7deg); }
}

@keyframes landing-float-payment {
  0%, 100% { transform: translateY(0) rotate(1.5deg); }
  50% { transform: translateY(-8px) rotate(.6deg); }
}

@keyframes landing-float-update {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(6px) rotate(-.2deg); }
}

@keyframes hero-device-float {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(6deg); }
  50% { transform: translateX(-50%) translateY(-9px) rotate(5.1deg); }
}

@keyframes hero-token-float {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(-10px) rotate(-8deg); }
}

@keyframes hero-payout-float {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes hero-orbit-breathe {
  0%, 100% { opacity: .72; transform: rotate(-18deg) scale(1); }
  50% { opacity: 1; transform: rotate(-16deg) scale(1.025); }
}

.accounts-section {
  position: relative;
  padding: 94px 0 104px;
  border-top: 1px solid #eaecf0;
  background: var(--landing-surface);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 40px;
}

.section-heading__eyebrow {
  margin: 0 0 9px;
  color: var(--landing-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--landing-text);
  font-size: clamp(34px, 2.5vw, 46px);
  font-weight: 770;
  letter-spacing: -.042em;
  line-height: 1.12;
}

.section-heading > p {
  width: 470px;
  margin: 0;
  color: var(--landing-muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.account-card {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 116px;
  padding: 18px 17px;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius);
  background: var(--landing-card);
  color: var(--landing-text);
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.025);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.account-card:hover {
  border-color: #b2ccff;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.08);
  transform: translateY(-3px);
}

.account-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  background: #f9fafb;
}

.account-card__logo img {
  width: 28px;
  height: 28px;
}

.account-card__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.account-card__copy strong {
  overflow: hidden;
  color: var(--landing-text);
  font-size: 14px;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card__copy small {
  color: var(--landing-soft);
  font-size: 10px;
  line-height: 1.35;
}

.account-card__arrow {
  position: absolute;
  top: 12px;
  right: 13px;
  color: var(--landing-blue);
  font-size: 17px;
  transition: transform 180ms ease;
}

.account-card:hover .account-card__arrow {
  transform: translateX(3px);
}

.process-section {
  padding: 110px 0;
  background: var(--landing-bg);
}

.process-section__inner {
  text-align: center;
}

.section-heading--center {
  display: grid;
  justify-items: center;
  margin-bottom: 44px;
  text-align: center;
}

.section-heading--center > p {
  width: auto;
  max-width: 570px;
  margin-top: 14px;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}

.guarantee-card {
  position: relative;
  min-height: 290px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--landing-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(16,24,40,.045);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.guarantee-card::after {
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219,234,254,.7), rgba(239,246,255,0) 70%);
  content: "";
  pointer-events: none;
}

.guarantee-card:hover {
  border-color: #b2ccff;
  box-shadow: 0 18px 44px rgba(16,24,40,.08);
  transform: translateY(-5px);
}

.guarantee-card--featured {
  border-color: #b2ccff;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.guarantee-card__number {
  position: absolute;
  top: 25px;
  right: 26px;
  color: #d0d5dd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.guarantee-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid #b2ccff;
  border-radius: 16px;
  background: var(--landing-blue-soft);
  color: var(--landing-blue);
  box-shadow: inset 0 1px 0 #fff;
}

.guarantee-card h3 {
  margin: 27px 0 10px;
  color: var(--landing-text);
  font-size: 20px;
  letter-spacing: -.025em;
}

.guarantee-card p {
  max-width: 320px;
  margin: 0;
  color: var(--landing-muted);
  font-size: 14px;
  line-height: 1.65;
}

.guarantee-card__meta {
  position: absolute;
  z-index: 1;
  bottom: 26px;
  left: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 11px;
  font-weight: 750;
}

.guarantee-card__meta i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--landing-blue);
  box-shadow: 0 0 0 4px rgba(23,92,211,.1);
}

.process-section__cta {
  margin-top: 32px;
}

.site-footer {
  border-top: 1px solid var(--landing-border);
  background: var(--landing-surface);
  color: var(--landing-text);
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  padding: 64px 0 52px;
  gap: 64px;
}

.brand--footer {
  margin-bottom: 18px;
}

.site-footer__main > div > p {
  max-width: 350px;
  margin: 0;
  color: var(--landing-muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 12px;
}

.site-footer nav strong {
  margin-bottom: 3px;
  color: var(--landing-text);
  font-size: 13px;
}

.site-footer nav a {
  color: var(--landing-muted);
  font-size: 13px;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--landing-blue);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  border-top: 1px solid var(--landing-border);
  color: var(--landing-soft);
  font-size: 12px;
}

.site-footer__bottom span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #475467;
  font-weight: 650;
}

/* The two public entry modals follow the same light system. */
#modal-sell .modal__backdrop,
#modal-how .modal__backdrop {
  background: rgba(16, 24, 40, 0.48);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

#modal-sell .modal__box,
#modal-how .modal__box {
  border: 1px solid var(--landing-border);
  border-radius: 20px;
  background: #fff;
  color: var(--landing-text);
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.2);
}

#modal-sell .modal__title,
#modal-how .modal__title,
#modal-sell .modal__form .form-group label,
#modal-sell .sell-label-row label,
#modal-how strong {
  color: var(--landing-text);
}

#modal-sell .modal__subtitle,
#modal-sell .sell-field-hint,
#modal-how p {
  color: var(--landing-muted);
}

#modal-sell .modal__close,
#modal-how .modal__close {
  border: 1px solid var(--landing-border);
  background: #f9fafb;
  color: #475467;
}

#modal-sell .sell-input-wrap,
#modal-sell .modal__form .form-group input {
  border-color: #d0d5dd;
  background: #fff;
  color: var(--landing-text);
  box-shadow: none;
}

#modal-sell .modal__form .form-group input:hover {
  border-color: #b8c0cc;
  background: #fff;
  color: var(--landing-text);
}

#modal-sell .modal__form .form-group input:focus {
  border-color: var(--landing-blue);
  background: #fff;
  color: var(--landing-text);
  box-shadow: 0 0 0 3px rgba(23,92,211,.12);
}

#modal-sell .modal__form .form-group input.invalid,
#modal-sell .modal__form .form-group input.invalid:hover,
#modal-sell .modal__form .form-group input.invalid:focus {
  border-color: #e7a6ad;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(197,59,75,.08);
}

#modal-sell .modal__form .form-group input::placeholder {
  color: #98a2b3;
  opacity: 1;
}

#modal-sell .sell-input-wrap:focus-within {
  border-color: var(--landing-blue);
  box-shadow: 0 0 0 3px rgba(23,92,211,.12);
}

#modal-sell .sell-input-icon,
#modal-sell .sell-input-side-icon,
#modal-sell .sell-input-wrap--price .sell-input-icon,
#modal-sell .price-help {
  border-color: #d0d5dd;
  background: #f9fafb;
  color: var(--landing-blue);
}

#modal-sell .btn--primary {
  border-color: var(--landing-blue);
  background: var(--landing-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23,92,211,.2);
}

#modal-sell #btn-confirm-submit:disabled,
#modal-sell .btn--primary:disabled {
  border-color: #d0d5dd;
  background: #eaecf0;
  color: #98a2b3;
  box-shadow: none;
}

#modal-sell .price-help__text {
  border-color: var(--landing-border);
  background: #fff;
  color: #475467;
  box-shadow: 0 12px 28px rgba(16,24,40,.12);
}

#modal-how .modal__block {
  border-color: var(--landing-border);
  background: #f9fafb;
}

#modal-how .modal__block-icon,
#modal-how .modal__block-q {
  border-color: #b2ccff;
  background: var(--landing-blue-soft);
  color: var(--landing-blue);
}

@media (max-width: 1120px) {
  .site-header__inner {
    grid-template-columns: 1fr auto auto;
  }

  .site-nav {
    gap: 24px;
  }

  .landing-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(450px, .9fr);
    gap: 36px;
  }

  .landing-hero__title {
    font-size: 50px;
  }

  .account-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 74px;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .landing-hero {
    min-height: auto;
    padding: 124px 0 72px;
  }

  .landing-hero__grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .landing-hero__content {
    max-width: 700px;
  }

  .service-visual {
    width: min(620px, 100%);
    min-height: 620px;
    margin-inline: auto;
  }

  .section-heading {
    display: grid;
    align-items: start;
    gap: 16px;
  }

  .section-heading > p {
    width: auto;
    max-width: 620px;
  }

  .guarantee-grid {
    grid-template-columns: 1fr;
  }

  .guarantee-card {
    min-height: 270px;
  }

  .site-footer__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 52px 0 42px;
    gap: 36px 24px;
  }

  .site-footer__main > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .landing-shell {
    width: min(100% - 30px, 1240px);
  }

  .site-header__cta {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .site-header__cta svg,
  .brand__copy small {
    display: none;
  }

  .brand {
    gap: 8px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__copy strong {
    font-size: 15px;
  }

  .landing-hero {
    padding-top: 106px;
  }

  .trust-pill {
    font-size: 11px;
  }

  .landing-hero__eyebrow {
    margin-top: 20px;
    font-size: 11px;
  }

  .landing-hero__title {
    font-size: clamp(38px, 11vw, 48px);
    letter-spacing: -.05em;
  }

  .landing-hero__lead {
    margin-top: 20px;
    font-size: 16px;
  }

  .landing-hero__actions {
    display: grid;
  }

  .action--large {
    width: 100%;
  }

  .landing-benefits {
    display: grid;
    gap: 12px;
  }

  .service-visual {
    min-height: 525px;
  }

  .service-panel {
    top: 48px;
    left: 56%;
    width: calc(100% - 78px);
    min-height: 400px;
    padding: 30px 18px 24px;
    border-radius: 32px;
    animation: none;
    transform: translateX(-50%) rotate(4deg);
  }

  .service-panel__hero {
    margin: 38px 0 34px;
  }

  .service-visual__orbit--one {
    top: 99px;
    left: -72px;
    width: 500px;
    height: 290px;
  }

  .service-visual__orbit--two {
    top: 135px;
    left: -34px;
    width: 420px;
    height: 230px;
  }

  .service-visual__token {
    top: 70px;
    left: 2px;
    width: 58px;
    height: 58px;
    border-radius: 19px;
    font-size: 27px;
  }

  .service-visual__payout-art {
    display: none;
  }

  .service-visual__base {
    right: 7px;
    bottom: 18px;
    width: 335px;
    height: 58px;
  }

  .service-visual > .status-card {
    min-width: 0;
  }

  .service-visual > .status-card--check {
    top: 15px;
    right: 0;
    left: auto;
  }

  .service-visual > .status-card--payment {
    right: auto;
    bottom: 70px;
    left: 0;
  }

  .service-visual > .status-card--update {
    display: none;
  }

  .game-dock {
    right: 44%;
    bottom: 53px;
  }

  .game-dock span {
    width: 38px;
    height: 38px;
  }

  .accounts-section,
  .process-section {
    padding: 72px 0;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-card {
    min-height: 94px;
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    padding: 48px 0 38px;
    gap: 38px 24px;
  }

  .site-footer__main > div {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 17px 0;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action,
  .account-card,
  .account-card__arrow,
  .service-panel,
  .service-visual__token,
  .service-visual__payout-art,
  .service-visual__orbit,
  .site-nav a::after {
    animation: none;
    transition: none;
  }
}


#modal-payout .modal__box--payout {
  width: min(620px, calc(100vw - 32px));
  max-width: 620px;
  max-height: calc(100dvh - 32px);
  padding: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(16, 24, 40, .16);
}

#modal-payout .modal__close,
.deal-master .deal-master__close {
  z-index: 8;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  color: #475467;
  opacity: 1;
  box-shadow: none;
}

#modal-payout .modal__close svg,
.deal-master .deal-master__close svg {
  width: 18px;
  height: 18px;
  opacity: 1;
}

#modal-payout .payout-card {
  display: block;
  min-height: 0;
  margin: 0 0 20px;
  padding: 0 52px 20px 0;
  border: 0;
  border-bottom: 1px solid #eaecf0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

#modal-payout .payout-card__amount {
  margin: 5px 0 7px;
  font-size: 34px;
  line-height: 1.08;
}

#modal-payout .payout-form {
  display: grid;
  gap: 17px;
}

#modal-payout .payout-method-switch {
  min-height: 44px;
  padding: 3px;
  gap: 3px;
  border: 1px solid #e1e6ee;
  border-radius: 12px;
  background: #f5f7fa;
}

#modal-payout .payout-method,
#modal-payout .payout-method:has(input:checked) {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}

#modal-payout .payout-method span {
  min-height: 36px;
  color: #667085;
  font-size: 12px;
}

#modal-payout .payout-method:has(input:checked) span {
  background: #fff;
  color: #172033;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .09);
}

#modal-payout .payout-modal__row input,
#modal-payout .payout-modal__row input:focus,
#modal-payout .deal-master__other-bank input,
#modal-payout .deal-master__other-bank input:focus,
#modal-payout #master-payout,
#modal-payout #master-payout:focus,
#modal-payout #other-bank-input,
#modal-payout #other-bank-input:focus {
  width: 100%;
  height: 50px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  background-color: #fff;
  color: #172033;
  -webkit-text-fill-color: #172033;
  font-size: 14px;
  font-weight: 550;
  box-shadow: none;
}

#modal-payout .payout-modal__row input:focus,
#modal-payout .deal-master__other-bank input:focus,
#modal-payout #master-payout:focus,
#modal-payout #other-bank-input:focus {
  border-color: #1764e8;
  box-shadow: 0 0 0 3px rgba(23, 100, 232, .1);
}

#modal-payout #master-payout::placeholder,
#modal-payout #other-bank-input::placeholder {
  color: #98a2b3;
  -webkit-text-fill-color: #98a2b3;
  opacity: 1;
}

#modal-payout .deal-master__banks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: -6px 0 0;
  gap: 10px;
}

#modal-payout .bank-radio {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 72px;
  padding: 10px 44px 10px 14px;
  gap: 12px;
  border: 1px solid #dbe1ea;
  border-radius: 16px;
  background: #fff;
  color: #3f495b;
  box-shadow: none;
}

#modal-payout .bank-radio:hover,
#modal-payout .bank-radio:has(input:checked) {
  border-color: #1764e8;
  background: #f8fbff;
  box-shadow: 0 0 0 1px rgba(23, 100, 232, .08);
  transform: none;
}

#modal-payout .bank-radio > span:last-child {
  color: #263247;
  font-size: 14px;
  font-weight: 750;
}

#modal-payout .bank-logo,
#modal-payout .bank-logo--empty {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

#modal-payout .bank-logo img {
  width: 34px;
  height: 34px;
}

#modal-payout .bank-logo--empty::before {
  content: '•••';
  color: #667085;
  font-size: 14px;
  letter-spacing: 2px;
}

#modal-payout #payout-continue,
#modal-payout #payout-final-continue {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #1764e8;
  border-radius: 15px;
  background: linear-gradient(180deg, #2775f1 0%, #1764e8 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  box-shadow: 0 12px 24px rgba(23, 100, 232, .2);
}

#modal-payout #payout-continue:hover,
#modal-payout #payout-final-continue:hover:not(:disabled) {
  background: linear-gradient(180deg, #1d69df 0%, #1057d0 100%);
  transform: translateY(-1px);
}

@media (max-width: 680px) {
  body #modal-payout .modal__box--payout {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 22px 16px 18px;
    border-radius: 21px;
  }

  body #modal-payout .modal__close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  body #modal-payout .payout-card {
    grid-template-columns: 1fr;
    margin-bottom: 20px;
    padding: 0 44px 0 0;
    gap: 0;
  }

  body #modal-payout .payout-card__eyebrow {
    min-height: 32px;
    margin-bottom: 11px;
    padding: 6px 10px;
    font-size: 10px;
  }

  body #modal-payout .payout-card .modal__title {
    font-size: 18px;
  }

  body #modal-payout .payout-card__amount {
    font-size: 39px;
  }

  body #modal-payout .payout-card__note {
    font-size: 12px;
  }

  body #modal-payout .payout-art {
    display: none;
  }

  body #modal-payout .payout-method-switch {
    min-height: 56px;
    border-radius: 15px;
  }

  body #modal-payout .payout-method,
  body #modal-payout .payout-method span {
    min-height: 46px;
  }

  body #modal-payout .deal-master__banks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body #modal-payout .bank-radio {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 62px;
    padding: 8px 30px 8px 9px;
    gap: 8px;
    border-radius: 13px;
  }

  body #modal-payout .bank-logo,
  body #modal-payout .bank-logo--empty {
    width: 34px;
    height: 34px;
  }

  body #modal-payout .bank-logo img {
    width: 28px;
    height: 28px;
  }

  body #modal-payout .bank-radio > span:last-child {
    font-size: 11px;
  }

  body #modal-payout #payout-continue,
  body #modal-payout #payout-final-continue {
    min-height: 54px;
    border-radius: 13px;
    font-size: 13px;
  }
}

#modal-payout .payout-check {
  min-height: 0;
  padding: 38px 18px 8px;
}

#modal-payout.is-verifying .modal__box--payout {
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
}

body.is-master-active .deal-master,
.deal-master:not([hidden]) {
  display: grid;
  min-height: 100dvh;
  padding: 20px;
  overflow: hidden;
  place-items: center;
  background: rgba(15, 23, 42, .42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.deal-master .deal-master__wrap {
  display: block;
  width: min(780px, calc(100vw - 40px));
  max-width: 780px;
  max-height: calc(100dvh - 40px);
  margin: 0;
  padding: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(16, 24, 40, .16);
}

.deal-master .deal-master__left {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.deal-master .deal-master__right,
body.is-master-active .deal-help-float,
.deal-master .finish-help {
  display: none;
}

.deal-master .deal-master__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  padding: 0 52px 21px 0;
  gap: 20px;
  border-bottom: 1px solid #eaecf0;
}

.deal-master .deal-master__title {
  margin: 0;
  color: #172033;
  font-size: 25px;
  line-height: 1.18;
}

.deal-master .accordion {
  display: grid;
  margin: 20px 0 0;
  gap: 9px;
}

.deal-master .accordion__item,
.deal-master .accordion__item:hover,
.deal-master .accordion__item.is-open {
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  transform: none;
}

.deal-master .accordion__header,
.deal-master .accordion__header:hover {
  min-height: 56px;
  padding: 10px 14px;
  border: 0;
  background: #fff;
  color: #172033;
  box-shadow: none;
}

.deal-master .accordion__body input,
.deal-master .accordion__body input:focus,
.deal-master .password-wrap input,
.deal-master .password-wrap input:focus {
  height: 48px;
  min-height: 48px;
  border: 1px solid #d0d5dd;
  border-radius: 11px;
  background: #fff;
  background-color: #fff;
  color: #172033;
  -webkit-text-fill-color: #172033;
  box-shadow: none;
}

.deal-master .accordion__body input:focus,
.deal-master .password-wrap input:focus {
  border-color: #1764e8;
  box-shadow: 0 0 0 3px rgba(23, 100, 232, .1);
}

@media (max-width: 680px) {
  #modal-payout .modal__box--payout {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 20px 16px;
    border-radius: 17px;
  }

  #modal-payout .deal-master__banks {
    grid-template-columns: 1fr;
  }

  body.is-master-active .deal-master,
  .deal-master:not([hidden]) {
    padding: 10px;
  }

  .deal-master .deal-master__wrap {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 20px 16px;
    border-radius: 17px;
  }

  .deal-master .deal-master__header {
    grid-template-columns: 1fr;
    padding: 0 42px 17px 0;
    gap: 12px;
  }

  .deal-master .deal-master__title {
    font-size: 21px;
  }

  .deal-master .accordion__body {
    padding: 0 12px 14px;
  }

  .deal-master .form-grid {
    grid-template-columns: 1fr;
  }
}

/* UI cleanup guard: this block must remain last in the cascade. */
body .deal-master .deal-master__confirm,
body #modal-payout .payout-confirm {
  display: inline-grid;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  margin: 9px 0 11px;
  padding: 7px 10px;
  gap: 8px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #344054;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

body #modal-payout .payout-confirm {
  max-width: 340px;
}

body .deal-master .email-copy.copied {
  border-color: #8bd4b2;
  background: #f0fdf6;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, .08);
}

body .toast,
body #toast.toast {
  box-sizing: border-box;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  display: flex;
  width: fit-content;
  max-width: min(430px, calc(100vw - 24px));
  min-height: 46px;
  align-items: center;
  padding: 10px 14px;
  gap: 9px;
  border: 1px solid #dce4ef;
  border-radius: 13px;
  background: #fff;
  color: #344054;
  box-shadow: 0 14px 38px rgba(16, 24, 40, .14);
}

body .toast .toast__icon,
body #toast .toast__icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 9px;
  background: #eaf2ff;
  color: #1764e8;
}

body .toast .toast__text,
body #toast .toast__text {
  color: #344054;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

@media (max-width: 560px) {
  body .toast,
  body #toast.toast {
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 20px);
  }
}

/* Final UI cleanup: confirmations and transient states share the light system. */
.deal-master .deal-master__confirm,
#modal-payout .payout-confirm {
  box-sizing: border-box;
  display: inline-grid;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  margin: 9px 0 11px;
  padding: 7px 10px;
  gap: 8px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #344054;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.deal-master .deal-master__confirm:hover,
#modal-payout .payout-confirm:hover {
  border-color: #c9d6e8;
  background: #f5f8fc;
}

.deal-master .deal-master__confirm input[type="checkbox"],
#modal-payout .payout-confirm input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: grid;
  width: 17px;
  height: 17px;
  min-width: 17px;
  min-height: 17px;
  flex: 0 0 17px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1.5px solid #aebacc;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.deal-master .deal-master__confirm input[type="checkbox"]::after,
#modal-payout .payout-confirm input[type="checkbox"]::after {
  content: "";
  width: 7px;
  height: 4px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  opacity: 0;
  transform: rotate(-45deg) scale(.8);
  transition: opacity 140ms ease, transform 140ms ease;
}

.deal-master .deal-master__confirm input[type="checkbox"]:checked,
#modal-payout .payout-confirm input[type="checkbox"]:checked {
  border-color: #1764e8;
  background: #1764e8;
}

.deal-master .deal-master__confirm input[type="checkbox"]:checked::after,
#modal-payout .payout-confirm input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.deal-master .deal-master__confirm input[type="checkbox"]:focus-visible,
#modal-payout .payout-confirm input[type="checkbox"]:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(23, 100, 232, .14);
}

.deal-master .deal-master__confirm > span,
#modal-payout .payout-confirm > span {
  min-width: 0;
  padding: 0;
}

#modal-payout .payout-check__actions {
  justify-items: center;
}

#modal-payout .payout-confirm {
  max-width: 340px;
}

.deal-master .email-copy.copied {
  border-color: #8bd4b2;
  background: #f0fdf6;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, .08);
}

.deal-master .email-copy.copied .email-copy__at {
  background: #dcfae6;
  color: #087a4e;
}

.deal-master .email-copy.copied .email-copy__icon {
  color: #12a66a;
}

.toast,
#toast.toast {
  box-sizing: border-box;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  display: flex;
  width: fit-content;
  max-width: min(430px, calc(100vw - 24px));
  min-height: 46px;
  align-items: center;
  padding: 10px 14px;
  gap: 9px;
  border: 1px solid #dce4ef;
  border-radius: 13px;
  background: #fff;
  color: #344054;
  box-shadow: 0 14px 38px rgba(16, 24, 40, .14);
}

.toast .toast__icon,
#toast .toast__icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 9px;
  background: #eaf2ff;
  color: #1764e8;
}

.toast .toast__icon svg,
#toast .toast__icon svg {
  width: 16px;
  height: 16px;
}

.toast .toast__text,
#toast .toast__text {
  color: #344054;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .deal-master .deal-master__confirm,
  #modal-payout .payout-confirm {
    width: fit-content;
    min-height: 34px;
    padding: 7px 9px;
  }

  .toast,
  #toast.toast {
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 20px);
  }
}


#deal-master .accordion__body .deal-master__confirm {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  height: auto;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  align-self: start;
  margin: 8px 0 10px;
  padding: 7px 10px;
  gap: 8px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

#deal-master .accordion__body .deal-master__confirm input,
#deal-master .accordion__body .deal-master__confirm input:focus {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--ui-primary);
  box-shadow: none;
}

.deal-master #instruction-email-actions {
  display: grid;
  margin: 8px 0 0;
  gap: 5px;
}

.deal-master #instruction-email-actions .email-delivery__toolbar {
  justify-content: flex-start;
  margin: 0;
}

.deal-master #instruction-email-actions .email-delivery__status {
  margin: 0;
}

@media (max-width: 640px) {
  #deal-master .accordion__body .deal-master__confirm {
    width: 100%;
    min-height: 38px;
  }

  .deal-master #instruction-email-actions .email-delivery__toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Shared modal language. This final layer intentionally covers every public
   dialog except the payout dialog, whose reference-specific layout is above. */
#modal-game .modal__backdrop,
#modal-how .modal__backdrop,
#modal-sell .modal__backdrop,
#modal-deal-help .modal__backdrop,
#modal-error .modal__backdrop {
  background: rgba(22, 32, 53, .64);
  -webkit-backdrop-filter: blur(7px) saturate(.9);
  backdrop-filter: blur(7px) saturate(.9);
}

#modal-game .modal__box,
#modal-how .modal__box,
#modal-sell .modal__box,
#modal-deal-help .modal__box,
#modal-error .modal__box {
  max-height: calc(100dvh - 32px);
  padding: 32px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-container);
  background: var(--ui-surface);
  color: var(--ui-text);
  box-shadow: var(--ui-shadow-modal);
}

#modal-game .modal__box { width: min(760px, calc(100vw - 32px)); }
#modal-how .modal__box { width: min(900px, calc(100vw - 32px)); }
#modal-sell .modal__box { width: min(560px, calc(100vw - 32px)); }
#modal-deal-help .modal__box { width: min(820px, calc(100vw - 32px)); }
#modal-error .modal__box { width: min(500px, calc(100vw - 32px)); }

#modal-game .modal__close,
#modal-how .modal__close,
#modal-sell .modal__close,
#modal-deal-help .modal__close,
#modal-error .modal__close {
  top: 24px;
  right: 24px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-control);
  background: #fff;
  color: #536074;
  box-shadow: 0 5px 14px rgba(31, 50, 81, .08);
  transition: border-color var(--ui-transition), background var(--ui-transition), color var(--ui-transition), transform var(--ui-transition);
}

#modal-game .modal__close:hover,
#modal-how .modal__close:hover,
#modal-sell .modal__close:hover,
#modal-deal-help .modal__close:hover,
#modal-error .modal__close:hover {
  border-color: var(--ui-border-strong);
  background: #f7f9fc;
  color: var(--ui-text);
  transform: none;
}

#modal-game .modal__title,
#modal-how .modal__title,
#modal-sell .modal__title,
#modal-deal-help .modal__title,
#modal-error .modal__title {
  color: var(--ui-text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.04em;
}

#modal-error .modal__content {
  padding: 8px 50px 0 0;
}

#modal-error .modal__text {
  color: var(--ui-text-secondary);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}

#modal-error .modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

#modal-error .modal__actions .btn {
  min-width: 124px;
  min-height: var(--ui-control-height);
  border-radius: var(--ui-radius-control);
}

#modal-error.is-error .modal__title { color: #d92d20; }
#modal-error.is-info .modal__title { color: var(--ui-primary); }
#modal-error.is-success .modal__title { color: #087a4c; }

.modal:not([hidden]) .modal__box {
  animation: reference-modal-in 180ms ease-out both;
}

.modal:not([hidden]) .modal__backdrop {
  animation: reference-backdrop-in 160ms ease-out both;
}

.toast {
  border: 1px solid #273349;
  border-radius: var(--ui-radius-control);
  background: #172033;
  color: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .2);
}

@keyframes reference-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes reference-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 640px) {
  #modal-game .modal__box,
  #modal-how .modal__box,
  #modal-sell .modal__box,
  #modal-deal-help .modal__box,
  #modal-error .modal__box {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 22px 16px;
    border-radius: 18px;
  }

  #modal-game .modal__close,
  #modal-how .modal__close,
  #modal-sell .modal__close,
  #modal-deal-help .modal__close,
  #modal-error .modal__close {
    top: 16px;
    right: 16px;
  }

  #modal-game .modal__title,
  #modal-how .modal__title,
  #modal-sell .modal__title,
  #modal-deal-help .modal__title,
  #modal-error .modal__title {
    padding-right: 48px;
    font-size: 23px;
  }

  #modal-error .modal__content {
    padding: 8px 0 0;
  }
}

/* Compact instruction confirmations */
.deal-master .deal-master__confirm {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: flex-start;
  margin: 9px 0 10px;
  padding: 7px 10px;
  gap: 8px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
}

.deal-master .deal-master__confirm input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--ui-primary);
  box-shadow: none;
}

.deal-master .deal-master__confirm span {
  display: block;
  min-width: 0;
}

@media (max-width: 640px) {
  .deal-master .deal-master__confirm {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
  }
}

/* Issued email and IMAP message reader */
.deal-master .email-delivery {
  margin: 2px 0 12px;
  padding: 14px;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  background: #f8fafc;
}

.deal-master .email-delivery__head {
  display: flex;
  align-items: center;
  margin-bottom: 11px;
  gap: 10px;
}

.deal-master .email-delivery__mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
}

.deal-master .email-delivery__head strong {
  display: block;
  color: var(--ui-text);
  font-size: 13px;
  line-height: 1.3;
}

.deal-master .email-delivery__head p {
  margin: 2px 0 0;
  color: var(--ui-text-secondary);
  font-size: 11px;
  line-height: 1.35;
}

.deal-master .email-copy {
  display: grid;
  width: 100%;
  min-height: 46px;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  padding: 7px 11px;
  gap: 9px;
  border: 1px solid #cfd8e6;
  border-radius: 11px;
  background: #fff;
  color: var(--ui-primary);
  text-align: left;
  box-shadow: var(--ui-shadow-xs);
  cursor: pointer;
  transition: border-color var(--ui-transition), background var(--ui-transition), box-shadow var(--ui-transition);
}

.deal-master .email-copy:hover {
  border-color: #8fb5fb;
  background: #fbfdff;
  opacity: 1;
}

.deal-master .email-copy__at {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
  font-size: 14px;
  font-weight: 800;
}

.deal-master .email-copy__text {
  min-width: 0;
  overflow: hidden;
  color: var(--ui-text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-master .email-copy__icon {
  color: var(--ui-primary);
}

.deal-master .email-delivery__note {
  margin: 9px 1px 0;
  color: var(--ui-text-secondary);
  font-size: 11px;
  line-height: 1.45;
}

.deal-master .email-delivery__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  gap: 10px;
}

.deal-master .email-delivery__toolbar > a {
  color: var(--ui-primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.deal-master #master-get-code,
.deal-master #master-get-code.btn,
.deal-master #master-get-code.btn--ghost {
  width: auto;
  min-width: 160px;
  min-height: 42px;
  height: auto;
  padding: 0 15px;
  border: 1px solid var(--ui-primary);
  border-radius: 10px;
  background: var(--ui-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 7px 16px rgba(37, 99, 235, .16);
  transform: none;
}

.deal-master #master-get-code:hover:not(:disabled) {
  border-color: var(--ui-primary-hover);
  background: var(--ui-primary-hover);
  color: #fff;
  box-shadow: 0 9px 19px rgba(37, 99, 235, .2);
}

.deal-master #master-get-code:disabled {
  border-color: #b9cdf8;
  background: #dce8ff;
  color: #5d77a8;
  box-shadow: none;
  opacity: 1;
}

.deal-master .email-delivery__status {
  margin: 7px 0 0;
  color: var(--ui-text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.deal-master #master-api-debug {
  margin: 10px 0 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ui-text-secondary);
  font: 11px/1.45 ui-monospace, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

#modal-error.is-mail-message .modal__box {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
}

#modal-error.is-mail-message .modal__content {
  padding: 6px 50px 0 0;
}

#modal-error.is-mail-message .modal__title {
  color: var(--ui-text);
}

#modal-error.is-mail-message .modal__text {
  color: var(--ui-text);
}

.mail-reader {
  display: grid;
  gap: 12px;
}

.mail-reader__head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mail-reader__mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid #cfe0ff;
  border-radius: 11px;
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
  font-size: 15px;
  font-weight: 850;
}

.mail-reader__head strong,
.mail-reader__head small {
  display: block;
}

.mail-reader__head strong {
  color: var(--ui-text);
  font-size: 14px;
  line-height: 1.35;
}

.mail-reader__head small {
  margin-top: 3px;
  color: var(--ui-text-muted);
  font-size: 12px;
}

.mail-reader__code {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 16px;
  border: 1px solid #cfe0ff;
  border-radius: 11px;
  background: #f5f9ff;
}

.mail-reader__code span {
  color: var(--ui-text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.mail-reader__code strong {
  color: var(--ui-primary);
  font: 800 20px/1 ui-monospace, monospace;
  letter-spacing: .08em;
}

.mail-reader__content,
.mail-reader__frame {
  width: 100%;
  max-height: 46vh;
  min-height: 240px;
  overflow: auto;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: #fff;
}

.mail-reader__content {
  padding: 16px;
  color: #344054;
  font: 13px/1.65 Manrope, Inter, sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
}

.mail-reader__content--empty {
  display: grid;
  color: var(--ui-text-muted);
  place-items: center;
}

.mail-reader__frame {
  display: block;
  height: min(560px, 56vh);
  border: 1px solid var(--ui-border);
}

@media (max-width: 640px) {
  .deal-master .email-delivery {
    padding: 12px;
  }

  .deal-master .email-delivery__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .deal-master #master-get-code,
  .deal-master #master-get-code.btn,
  .deal-master #master-get-code.btn--ghost {
    width: 100%;
  }

  #modal-error.is-mail-message .modal__box {
    width: calc(100vw - 20px);
  }

  #modal-error.is-mail-message .modal__content {
    padding: 8px 0 0;
  }

  .mail-reader__content,
  .mail-reader__frame {
    max-height: 42vh;
    min-height: 220px;
  }

  .mail-reader__frame {
    height: 42vh;
  }
}

.modal[hidden],
.deal-master[hidden],
.check-screen[hidden] {
  display: none;
}

/* Unified minimal deal flow — payout and final instruction */
#modal-payout .modal__backdrop,
body.is-master-active .deal-master {
  background: rgba(15, 23, 42, .42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

#modal-payout .modal__box--payout {
  position: relative;
  width: min(620px, calc(100% - 32px));
  max-width: 620px;
  max-height: calc(100vh - 32px);
  padding: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e5e9f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .16);
}

#modal-payout .modal__close {
  top: 20px;
  right: 20px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  background: #fff;
  color: #697386;
  box-shadow: none;
}

#modal-payout .modal__close:hover {
  border-color: #cfd6e2;
  background: #f8fafc;
  color: #172033;
}

#modal-payout .payout-card {
  display: block;
  min-height: 0;
  margin: 0 0 20px;
  padding: 0 52px 20px 0;
  border: 0;
  border-bottom: 1px solid #e8ebf0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#modal-payout .payout-card__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #1764e8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#modal-payout .payout-card .modal__title {
  margin: 0;
  color: #172033;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -.35px;
}

#modal-payout .payout-card__amount {
  margin: 5px 0 7px;
  color: #1764e8;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.4px;
}

#modal-payout .payout-card__note {
  max-width: 430px;
  margin: 0;
  color: #7a8496;
  font-size: 12px;
  line-height: 1.55;
}

#modal-payout .payout-form {
  display: grid;
  gap: 17px;
}

#modal-payout .payout-method-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 44px;
  margin: 0;
  padding: 3px;
  gap: 3px;
  border: 1px solid #e1e6ee;
  border-radius: 12px;
  background: #f5f7fa;
}

#modal-payout .payout-method {
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}

#modal-payout .payout-method input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#modal-payout .payout-method span {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #697386;
  font-size: 12px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

#modal-payout .payout-method:has(input:checked) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

#modal-payout .payout-method:has(input:checked) span {
  background: #fff;
  color: #172033;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .09);
}

#modal-payout .payout-modal__row,
#modal-payout .payout-modal__row .form-group {
  display: grid;
  margin: 0;
  gap: 7px;
}

#modal-payout .payout-bank-title,
#modal-payout .payout-modal__row label,
#modal-payout .deal-master__other-bank label {
  margin: 0;
  color: #30394a;
  font-size: 11px;
  font-weight: 750;
}

#modal-payout .payout-modal__row input,
#modal-payout .deal-master__other-bank input,
#modal-payout #master-payout,
#modal-payout #other-bank-input {
  width: 100%;
  height: 50px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  font-size: 14px;
  font-weight: 550;
  box-shadow: none;
}

#modal-payout .payout-modal__row input:hover,
#modal-payout .deal-master__other-bank input:hover {
  border-color: #bfc8d6;
  background: #fff;
}

#modal-payout .payout-modal__row input:focus,
#modal-payout .deal-master__other-bank input:focus {
  border-color: #1764e8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 100, 232, .1);
}

#modal-payout .deal-master__banks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: -8px 0 0;
  gap: 9px;
}

#modal-payout .bank-radio {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  margin: 0;
  padding: 9px 38px 9px 11px;
  gap: 10px;
  border: 1px solid #e0e5ed;
  border-radius: 13px;
  background: #fff;
  color: #3f495b;
  box-shadow: none;
  transition: border-color .18s ease, background .18s ease;
}

#modal-payout .bank-radio input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#modal-payout .bank-radio::after {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 16px;
  height: 16px;
  content: '';
  border: 1.5px solid #c8d0dc;
  border-radius: 50%;
  transform: translateY(-50%);
}

#modal-payout .bank-radio:has(input:checked) {
  border-color: #8fb5fb;
  background: #f7faff;
  box-shadow: none;
}

#modal-payout .bank-radio:has(input:checked)::after {
  border: 5px solid #1764e8;
  background: #fff;
}

#modal-payout .bank-radio > span:last-child {
  min-width: 0;
  color: #3c4658;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

#modal-payout .bank-logo,
#modal-payout .bank-logo--empty {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #edf0f4;
  border-radius: 9px;
  background: #f8fafc;
}

#modal-payout .bank-logo img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

#modal-payout .deal-master__other-bank {
  display: grid;
  margin: -5px 0 0;
  gap: 7px;
}

#modal-payout .deal-master__other-bank[hidden] {
  display: none;
}

#modal-payout #payout-continue,
#modal-payout #payout-final-continue {
  width: 100%;
  min-height: 50px;
  margin: 1px 0 0;
  padding: 0 18px;
  border: 1px solid #1764e8;
  border-radius: 12px;
  background: #1764e8;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  box-shadow: none;
}

#modal-payout #payout-continue:hover,
#modal-payout #payout-final-continue:hover:not(:disabled) {
  background: #0f56cd;
  transform: none;
}

#modal-payout #payout-final-continue:disabled {
  border-color: #e4e8ee;
  background: #e9edf3;
  color: #9aa3b2;
}

#modal-payout .payout-check {
  min-height: 0;
  padding: 38px 18px 8px;
  text-align: center;
}

#modal-payout.is-verifying .modal__box--payout {
  width: min(520px, calc(100% - 32px));
  max-width: 520px;
}

#modal-payout .payout-check__spinner,
#modal-payout .payout-check__success,
#modal-payout .payout-check__success svg {
  width: 54px;
  height: 54px;
  margin: 0 auto 17px;
  color: #1764e8;
  filter: none;
}

#modal-payout .payout-check__title {
  margin: 0;
  color: #172033;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.45px;
}

#modal-payout .payout-check__text {
  max-width: 380px;
  margin: 8px auto 0;
  color: #748094;
  font-size: 12px;
  line-height: 1.6;
}

#modal-payout .payout-check__bar {
  width: min(260px, 82%);
  height: 3px;
  margin: 24px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
}

#modal-payout .payout-check__bar span {
  background: #1764e8;
  box-shadow: none;
}

#modal-payout.is-verified .payout-check__bar {
  display: none;
}

#modal-payout .payout-check__actions {
  display: grid;
  max-width: 410px;
  margin: 24px auto 0;
  gap: 8px;
}

#modal-payout .payout-check__actions[hidden] {
  display: none;
}

#modal-payout .payout-confirm {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  margin: 0 0 4px;
  padding: 12px 13px;
  gap: 10px;
  border: 1px solid #e1e6ee;
  border-radius: 12px;
  background: #f8fafc;
  color: #4f5a6d;
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
}

#modal-payout .payout-confirm input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #1764e8;
}

#modal-payout #payout-recheck {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5e6a7d;
  font-size: 11px;
  font-weight: 700;
  box-shadow: none;
}

#modal-payout #payout-recheck:hover {
  background: #f4f6f9;
  color: #172033;
}

body.is-master-active .deal-master,
.deal-master:not([hidden]) {
  display: grid;
  min-height: 100vh;
  padding: 20px;
  overflow: hidden;
  place-items: center;
}

.deal-master .deal-master__wrap {
  position: relative;
  display: block;
  width: min(780px, calc(100% - 8px));
  max-width: 780px;
  max-height: calc(100vh - 40px);
  margin: 0;
  padding: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e5e9f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .16);
}

.deal-master .deal-master__left {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.deal-master .deal-master__right,
body.is-master-active .deal-help-float,
.deal-master .finish-help {
  display: none;
}

.deal-master .deal-master__close {
  position: absolute;
  z-index: 5;
  top: 20px;
  right: 20px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  background: #fff;
  color: #697386;
  box-shadow: none;
}

.deal-master .deal-master__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin: 0;
  padding: 0 52px 21px 0;
  gap: 20px;
  border-bottom: 1px solid #e8ebf0;
}

.deal-master .master-game-chip {
  display: inline-flex;
  width: auto;
  min-height: 34px;
  align-items: center;
  margin: 0 0 11px;
  padding: 4px 9px 4px 5px;
  gap: 7px;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  background: #f8fafc;
}

.deal-master .master-game-chip > span {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  background: #fff;
}

.deal-master .master-game-chip img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.deal-master .master-game-chip small {
  display: none;
}

.deal-master .master-game-chip strong {
  color: #3f495b;
  font-size: 10px;
  font-weight: 750;
}

.deal-master .deal-master__title {
  max-width: 520px;
  margin: 0;
  color: #172033;
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: -.75px;
}

.deal-master .deal-master__subtitle {
  margin: 7px 0 0;
  color: #7a8496;
  font-size: 12px;
  line-height: 1.5;
}

.deal-master .payout-summary {
  display: grid;
  min-width: 118px;
  padding: 10px 12px;
  gap: 2px;
  border: 1px solid #dbe7fb;
  border-radius: 12px;
  background: #f7faff;
  text-align: right;
}

.deal-master .payout-summary[hidden] {
  display: none;
}

.deal-master .payout-summary__label {
  color: #7a8496;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.deal-master .payout-summary__amount {
  color: #1764e8;
  font-size: 16px;
  font-weight: 800;
}

.deal-master .payout-summary__bank {
  color: #657185;
  font-size: 8px;
}

.deal-master .accordion {
  display: grid;
  margin: 20px 0 0;
  gap: 9px;
}

.deal-master .accordion__item {
  overflow: hidden;
  margin: 0;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.deal-master .accordion__item:hover,
.deal-master .accordion__item.is-open {
  border-color: #cdd9ec;
  background: #fff;
  box-shadow: none;
  transform: none;
}

.deal-master .accordion__header {
  display: grid;
  grid-template-columns: 30px 1fr;
  width: 100%;
  min-height: 56px;
  align-items: center;
  padding: 10px 14px;
  gap: 11px;
  border: 0;
  background: #fff;
  color: #172033;
  box-shadow: none;
}

.deal-master .accordion__header:hover {
  background: #fafbfc;
}

.deal-master .accordion__step {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #dce2eb;
  border-radius: 9px;
  background: #f7f9fc;
  color: #677286;
  font-size: 10px;
  font-weight: 800;
}

.deal-master .accordion__item.is-open .accordion__step,
.deal-master .accordion__item.is-done .accordion__step {
  border-color: #1764e8;
  background: #1764e8;
  color: #fff;
}

.deal-master .accordion__title {
  color: #2d3647;
  font-size: 13px;
  font-weight: 750;
}

.deal-master .accordion__body {
  padding: 0 14px 16px 55px;
  color: #687387;
  font-size: 12px;
  line-height: 1.55;
}

.deal-master .accordion__body > p:first-child {
  max-width: 610px;
  margin: 0 0 14px;
  color: #687387;
  font-size: 12px;
  line-height: 1.55;
}

.deal-master .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 10px;
  gap: 10px;
}

.deal-master .form-group,
.deal-master .form-group--password {
  display: grid;
  margin: 0;
  gap: 6px;
}

.deal-master .accordion__body label {
  margin: 0;
  color: #3c4658;
  font-size: 10px;
  font-weight: 750;
}

.deal-master .accordion__body input,
.deal-master .accordion__body textarea,
.deal-master .password-wrap input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #d8dee8;
  border-radius: 11px;
  background: #fff;
  color: #172033;
  font-size: 13px;
  font-weight: 550;
  box-shadow: none;
}

.deal-master .password-wrap input {
  padding-right: 42px;
}

.deal-master .accordion__body input:hover,
.deal-master .accordion__body textarea:hover {
  border-color: #bfc8d6;
  background: #fff;
}

.deal-master .accordion__body input:focus,
.deal-master .accordion__body textarea:focus {
  border-color: #1764e8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 100, 232, .1);
}

.deal-master .password-toggle {
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.deal-master .deal-master__meta {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 10px;
  gap: 6px;
}

.deal-master .deal-master__meta span {
  padding: 5px 8px;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  background: #f8fafc;
  color: #697386;
  font-size: 9px;
}

.deal-master .deal-master__hint,
.deal-master .deal-master__links {
  margin: 8px 0;
}

.deal-master .deal-master__link,
.deal-master .deal-master__hint-link,
.deal-master .deal-master__actions > a,
.deal-master .email-copy {
  color: #1764e8;
  font-size: 11px;
  font-weight: 700;
}

.deal-master .deal-master__confirm {
  display: grid;
  grid-template-columns: 17px 1fr;
  align-items: start;
  max-width: 610px;
  margin: 12px 0;
  padding: 10px 11px;
  gap: 9px;
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  background: #f8fafc;
  color: #4f5a6d;
  font-size: 10px;
  line-height: 1.45;
}

.deal-master .deal-master__confirm input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  accent-color: #1764e8;
  box-shadow: none;
}

.deal-master .accordion__body .btn--primary,
.deal-master #master-finish {
  min-height: 45px;
  padding: 0 17px;
  border: 1px solid #1764e8;
  border-radius: 11px;
  background: #1764e8;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  box-shadow: none;
}

.deal-master .accordion__body .btn--primary:hover,
.deal-master #master-finish:hover:not(:disabled) {
  background: #0f56cd;
  transform: none;
}

.deal-master .accordion__body .btn--ghost,
.deal-master #master-get-code {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #dbe1ea;
  border-radius: 10px;
  background: #fff;
  color: #4f5a6d;
  font-size: 10px;
  box-shadow: none;
}

.deal-master .deal-master__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.deal-master .deal-master__notice {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfe4d8;
  border-radius: 10px;
  background: #f3faf6;
  color: #28704b;
  font-size: 10px;
}

@media (max-width: 680px) {
  #modal-payout .modal__box--payout {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    padding: 20px 16px;
    border-radius: 17px;
  }

  #modal-payout .modal__close {
    top: 14px;
    right: 14px;
  }

  #modal-payout .payout-card {
    padding-right: 42px;
  }

  #modal-payout .payout-card__amount {
    font-size: 30px;
  }

  #modal-payout .deal-master__banks {
    grid-template-columns: 1fr;
  }

  #modal-payout .payout-check {
    padding: 34px 0 4px;
  }

  body.is-master-active .deal-master,
  .deal-master:not([hidden]) {
    padding: 10px;
  }

  .deal-master .deal-master__wrap {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 20px 16px;
    border-radius: 17px;
  }

  .deal-master .deal-master__close {
    top: 14px;
    right: 14px;
  }

  .deal-master .deal-master__header {
    grid-template-columns: 1fr;
    padding: 0 42px 17px 0;
    gap: 12px;
  }

  .deal-master .deal-master__title {
    font-size: 21px;
  }

  .deal-master .payout-summary {
    width: max-content;
    min-width: 112px;
    text-align: left;
  }

  .deal-master .accordion {
    margin-top: 15px;
  }

  .deal-master .accordion__body {
    padding: 0 12px 14px;
  }

  .deal-master .form-grid {
    grid-template-columns: 1fr;
  }

  .deal-master .deal-master__actions,
  .deal-master .deal-master__actions .btn,
  .deal-master #master-finish,
  .deal-master #master-get-code {
    width: 100%;
  }
}

/* =========================================================
   Game picker and modal instruction flow
   ========================================================= */

#modal-game .modal__backdrop {
  background: rgba(16,24,40,.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#modal-game .game-picker__box {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
  padding: 30px;
  border: 1px solid var(--landing-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(16,24,40,.22);
}

#modal-game .game-picker__head {
  margin: 0 52px 24px 0;
}

#modal-game .game-picker__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--landing-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#modal-game .game-picker__head h2 {
  margin: 0;
  color: var(--landing-text);
  font-size: 28px;
  letter-spacing: -.04em;
}

#modal-game .game-picker__head p {
  margin: 8px 0 0;
  color: var(--landing-muted);
  font-size: 13px;
}

#modal-game .game-picker__grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

#modal-game .game-picker__item {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) 22px;
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 84px;
  padding: 14px;
  gap: 2px 13px;
  border: 1px solid var(--landing-border);
  border-radius: 16px;
  background: #fff;
  color: var(--landing-text);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

#modal-game .game-picker__item:last-child {
  grid-column: 1 / -1;
}

#modal-game .game-picker__item:hover {
  border-color: #b2ccff;
  background: #f8fbff;
  box-shadow: 0 12px 26px rgba(16,24,40,.07);
  transform: translateY(-2px);
}

#modal-game .game-picker__item > span {
  display: inline-flex;
  grid-row: 1 / 3;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  background: #f9fafb;
}

#modal-game .game-picker__item img {
  width: 29px;
  height: 29px;
}

#modal-game .game-picker__item strong {
  align-self: end;
  font-size: 14px;
}

#modal-game .game-picker__item small {
  align-self: start;
  color: var(--landing-soft);
  font-size: 10px;
}

#modal-game .game-picker__item i {
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--landing-blue);
  font-size: 18px;
  font-style: normal;
}

#modal-game .game-picker__note {
  display: flex;
  align-items: center;
  margin: 12px 0 0;
  padding: 11px 13px;
  gap: 8px;
  border: 1px solid #dbeafe;
  border-radius: 13px;
  background: #f8fbff;
  color: #475467;
  font-size: 11px;
}

#modal-game .game-picker__note svg {
  flex: 0 0 auto;
  color: var(--landing-blue);
}

#modal-sell .sell-game-chip {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: -8px 0 20px;
  padding: 7px 9px;
  gap: 10px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
}

#modal-sell .sell-game-chip > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
}

#modal-sell .sell-game-chip img {
  width: 22px;
  height: 22px;
}

#modal-sell .sell-game-chip strong {
  color: var(--landing-text);
  font-size: 13px;
}

#modal-sell .sell-game-chip button {
  margin-left: auto;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--landing-blue);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

/* Keep the site visible and present the instruction as a modal. */
body.is-master-active {
  display: block;
  background: var(--landing-bg);
}

body.is-master-active .site-header,
body.is-master-active .site-footer,
body.is-master-active .landing-main {
  display: block;
}

body.is-master-active .deal-master,
.deal-master:not([hidden]) {
  position: fixed;
  z-index: var(--z-modal);
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
  background: rgba(16,24,40,.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.deal-master .deal-master__wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 250px;
  width: min(1120px, calc(100vw - 48px));
  max-width: 1120px;
  max-height: calc(100dvh - 48px);
  margin: 0;
  padding: 28px;
  gap: 22px;
  overflow: hidden;
  border: 1px solid var(--landing-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(16,24,40,.25);
  animation: ui-modal-in 280ms cubic-bezier(.2,.8,.2,1) both;
}

.deal-master .deal-master__left {
  max-height: calc(100dvh - 104px);
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.deal-master .deal-master__close {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--landing-border);
  border-radius: 13px;
  background: #f9fafb;
  color: #475467;
  cursor: pointer;
}

.deal-master .deal-master__header {
  padding-right: 48px;
}

.deal-master .master-game-chip {
  display: inline-grid;
  grid-template-columns: 36px auto;
  grid-template-rows: auto auto;
  align-items: center;
  margin-bottom: 15px;
  gap: 0 9px;
}

.deal-master .master-game-chip > span {
  display: inline-flex;
  grid-row: 1 / 3;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #b2ccff;
  border-radius: 11px;
  background: var(--landing-blue-soft);
}

.deal-master .master-game-chip img {
  width: 22px;
  height: 22px;
}

.deal-master .master-game-chip small {
  color: var(--landing-soft);
  font-size: 9px;
}

.deal-master .master-game-chip strong {
  color: var(--landing-text);
  font-size: 12px;
}

.deal-resume-float {
  position: fixed;
  z-index: var(--z-floating);
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 8px 16px 8px 9px;
  gap: 10px;
  border: 1px solid #b2ccff;
  border-radius: 16px;
  background: #fff;
  color: var(--landing-text);
  box-shadow: 0 16px 38px rgba(16,24,40,.16);
  cursor: pointer;
}

.deal-resume-float[hidden] {
  display: none;
}

.deal-resume-float > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--landing-blue-soft);
}

.deal-resume-float img {
  width: 24px;
  height: 24px;
}

.deal-resume-float > span:last-child {
  display: grid;
  gap: 2px;
  text-align: left;
}

.deal-resume-float strong { font-size: 12px; }
.deal-resume-float small { color: var(--landing-muted); font-size: 10px; }

@media (max-width: 760px) {
  #modal-game .game-picker__box {
    padding: 22px 16px;
  }

  #modal-game .game-picker__grid {
    grid-template-columns: 1fr;
  }

  #modal-game .game-picker__item:last-child {
    grid-column: auto;
  }

  body.is-master-active .deal-master,
  .deal-master:not([hidden]) {
    padding: 10px;
  }

  .deal-master .deal-master__wrap {
    grid-template-columns: 1fr;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 20px 14px;
    border-radius: 20px;
  }

  .deal-master .deal-master__left {
    max-height: calc(100dvh - 60px);
    padding-right: 2px;
  }

  .deal-master .deal-master__right {
    display: none;
  }

  .deal-master .deal-master__close {
    top: 12px;
    right: 12px;
  }
}

/* =========================================================
   Unified transaction UI — check, modals, loader and master
   ========================================================= */

@keyframes ui-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ui-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ui-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(23,92,211,.1); }
  50% { box-shadow: 0 0 0 8px rgba(23,92,211,.035); }
}

@keyframes ui-progress-scan {
  0% { transform: translateX(-120%); }
  65%, 100% { transform: translateX(220%); }
}

.modal:not([hidden]) .modal__backdrop {
  animation: ui-backdrop-in 180ms ease-out both;
}

.modal:not([hidden]) .modal__box {
  animation: ui-modal-in 260ms cubic-bezier(.2,.8,.2,1) both;
}

#check-screen.check-screen {
  z-index: var(--z-overlay);
  background: rgba(247, 249, 252, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

#check-screen.check-screen::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219,234,254,.72), rgba(255,255,255,0) 68%);
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
}

#check-screen .check-screen__inner {
  width: min(570px, calc(100vw - 32px));
  max-width: 570px;
  padding: 28px;
  border: 1px solid var(--landing-border);
  border-radius: 24px;
  background: rgba(255,255,255,.98);
  color: var(--landing-text);
  box-shadow: 0 30px 80px rgba(16,24,40,.16), 0 8px 24px rgba(16,24,40,.07);
  animation: ui-modal-in 320ms cubic-bezier(.2,.8,.2,1) both;
}

#check-screen .check-screen__brand {
  display: flex;
  align-items: center;
  margin: 0 0 22px;
  padding: 0 0 20px;
  gap: 11px;
  border-bottom: 1px solid #eaecf0;
}

#check-screen .check-screen__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d0d5dd;
  border-radius: 13px;
  background: #fff;
}

#check-screen .check-screen__brand-mark img {
  width: 32px;
  height: 32px;
}

#check-screen .check-screen__brand > span:last-child {
  display: grid;
  gap: 2px;
}

#check-screen .check-screen__brand strong {
  color: var(--landing-text);
  font-size: 14px;
  letter-spacing: -.02em;
}

#check-screen .check-screen__brand small {
  color: var(--landing-muted);
  font-size: 10px;
}

#check-screen .check-screen__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 17px;
  padding: 5px 11px;
  gap: 8px;
  border: 1px solid #b2ccff;
  border-radius: 999px;
  background: var(--landing-blue-soft);
  color: var(--landing-blue);
  font-size: 11px;
  font-weight: 750;
}

#check-screen .check-screen__badge::before {
  display: none;
}

#check-screen .check-screen__badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--landing-blue);
  animation: ui-pulse 1.8s ease-in-out infinite;
}

#check-screen .check-screen__title {
  margin: 0;
  color: var(--landing-text);
  font-size: 25px;
  font-weight: 780;
  letter-spacing: -.035em;
  line-height: 1.2;
}

#check-screen .check-screen__desc {
  margin: 7px 0 23px;
  color: var(--landing-muted);
  font-size: 13px;
  line-height: 1.55;
}

#check-screen .check-screen__progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}

#check-screen .check-screen__percent {
  position: static;
  width: auto;
  min-width: 38px;
  padding: 0;
  color: var(--landing-blue);
  background: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

#check-screen .check-screen__progress {
  position: relative;
  height: 8px;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaecf0;
  box-shadow: inset 0 1px 2px rgba(16,24,40,.06);
}

#check-screen .check-screen__bar {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: var(--landing-blue);
  box-shadow: none;
  transition: width 180ms linear;
}

#check-screen .check-screen__bar::after {
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  content: "";
  animation: ui-progress-scan 1.9s ease-in-out infinite;
}

#check-screen .check-screen__steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

#check-screen .check-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  align-items: center;
  min-height: 58px;
  margin: 0;
  padding: 9px 12px;
  gap: 11px;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  background: #fff;
  color: var(--landing-muted);
  opacity: 1;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

#check-screen .check-step::before,
#check-screen .check-step::after {
  display: none;
}

#check-screen .check-step__state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #f9fafb;
  color: var(--landing-soft);
  font-size: 11px;
  font-weight: 800;
}

#check-screen .check-step__copy {
  display: grid;
  gap: 2px;
}

#check-screen .check-step__copy strong {
  color: #475467;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

#check-screen .check-step__copy small {
  color: var(--landing-soft);
  font-size: 9px;
  line-height: 1.35;
}

#check-screen .check-step.is-active {
  border-color: #b2ccff;
  background: #f5f9ff;
  box-shadow: 0 7px 18px rgba(23,92,211,.07);
  transform: translateX(3px);
}

#check-screen .check-step.is-active .check-step__state {
  border-color: var(--landing-blue);
  background: var(--landing-blue);
  color: #fff;
  animation: ui-pulse 1.8s ease-in-out infinite;
}

#check-screen .check-step.is-active .check-step__copy strong,
#check-screen .check-step.is-done .check-step__copy strong {
  color: var(--landing-text);
}

#check-screen .check-step.is-done .check-step__state {
  border-color: #b2ccff;
  background: var(--landing-blue-soft);
  color: transparent;
}

#check-screen .check-step.is-done .check-step__state::after {
  position: absolute;
  color: var(--landing-blue);
  content: "✓";
  font-size: 14px;
  font-weight: 900;
}

#check-screen .check-screen__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 0;
  gap: 7px;
  color: var(--landing-soft);
  font-size: 10px;
  font-weight: 650;
}

/* Generic modal surface */
body .modal {
  z-index: var(--z-modal);
}

#modal-payout .modal__backdrop,
#modal-deal-help .modal__backdrop,
#modal-error .modal__backdrop {
  background: rgba(16,24,40,.48);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

#modal-payout .modal__box,
#modal-deal-help .modal__box,
#modal-error .modal__box {
  border: 1px solid var(--landing-border);
  border-radius: 22px;
  background: #fff;
  color: var(--landing-text);
  box-shadow: 0 30px 80px rgba(16,24,40,.22);
}

#modal-payout .modal__title,
#modal-deal-help .modal__title,
#modal-error .modal__title,
#modal-payout h3,
#modal-deal-help strong {
  color: var(--landing-text);
}

#modal-payout p,
#modal-deal-help p,
#modal-deal-help small,
#modal-error .modal__text {
  color: var(--landing-muted);
}

#modal-payout .modal__close,
#modal-deal-help .modal__close,
#modal-error .modal__close {
  border: 1px solid var(--landing-border);
  background: #f9fafb;
  color: #475467;
}

/* How it works modal */
#modal-how .modal__box--wide {
  width: min(780px, calc(100vw - 32px));
  max-width: 780px;
  padding: 30px;
}

#modal-how .how-modal__head {
  max-width: 610px;
  margin: 0 54px 24px 0;
}

#modal-how .how-modal__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--landing-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#modal-how .how-modal__head .modal__title {
  margin: 0;
  color: var(--landing-text);
  font-size: 26px;
  font-weight: 780;
  letter-spacing: -.035em;
}

#modal-how .how-modal__head > p {
  margin: 8px 0 0;
  color: var(--landing-muted);
  font-size: 13px;
}

#modal-how .how-steps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

#modal-how .how-step {
  position: relative;
  min-height: 205px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--landing-border);
  border-radius: 16px;
  background: #fff;
  animation: ui-modal-in 360ms cubic-bezier(.2,.8,.2,1) both;
}

#modal-how .how-step:nth-child(2) { animation-delay: 50ms; }
#modal-how .how-step:nth-child(3) { animation-delay: 100ms; }

#modal-how .how-step__number {
  position: absolute;
  top: 16px;
  right: 17px;
  color: #d0d5dd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

#modal-how .how-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border: 1px solid #b2ccff;
  border-radius: 13px;
  background: var(--landing-blue-soft);
  color: var(--landing-blue);
}

#modal-how .how-step h3 {
  margin: 0 0 7px;
  color: var(--landing-text);
  font-size: 14px;
  letter-spacing: -.02em;
}

#modal-how .how-step p {
  margin: 0;
  color: var(--landing-muted);
  font-size: 11px;
  line-height: 1.55;
}

#modal-how .how-modal__note {
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  gap: 9px;
  border: 1px solid #dbeafe;
  border-radius: 13px;
  background: #f8fbff;
  color: #475467;
  font-size: 11px;
  line-height: 1.45;
}

#modal-how .how-modal__note svg {
  flex: 0 0 auto;
  color: var(--landing-blue);
}

/* Payout modal */
#modal-payout .modal__box--payout {
  width: min(720px, calc(100vw - 32px));
  max-width: 720px;
  padding: 26px;
}

#modal-payout .payout-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) 190px;
  align-items: center;
  margin: 0 0 22px;
  padding: 22px;
  gap: 22px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
  box-shadow: none;
}

#modal-payout .payout-card__amount {
  margin: 7px 0 8px;
  color: var(--landing-blue);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.045em;
}

#modal-payout .payout-card__note {
  max-width: 390px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

#modal-payout .payout-card__visual {
  min-height: 116px;
  filter: none;
}

#modal-payout .payout-visual-card {
  border: 1px solid #b2ccff;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23,92,211,.1);
}

#modal-payout .payout-visual-card--back {
  background: #dbeafe;
}

#modal-payout .payout-visual-card__chip,
#modal-payout .payout-visual-check {
  background: var(--landing-blue);
}

#modal-payout .payout-visual-card__number {
  color: #475467;
}

#modal-payout .payout-form {
  display: grid;
  gap: 16px;
}

#modal-payout .payout-card[hidden],
#modal-payout .payout-form[hidden],
#modal-payout .payout-form.is-hidden,
#modal-payout.is-verifying .payout-card,
#modal-payout.is-verifying .payout-form,
#modal-payout .payout-check[hidden],
#modal-payout .payout-check__success[hidden],
#modal-payout .payout-check__actions[hidden],
#modal-payout .payout-check__spinner[hidden] {
  display: none;
}

#modal-payout .payout-method-switch {
  padding: 4px;
  border: 1px solid var(--landing-border);
  border-radius: 13px;
  background: #f2f4f7;
}

#modal-payout .payout-method {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--landing-muted);
  box-shadow: none;
}

#modal-payout .payout-method:has(input:checked) {
  background: #fff;
  color: var(--landing-text);
  box-shadow: 0 1px 3px rgba(16,24,40,.09);
}

#modal-payout .payout-bank-title,
#modal-payout .payout-modal__row label,
#modal-payout .deal-master__other-bank label {
  color: var(--landing-text);
  font-size: 12px;
  font-weight: 750;
}

#modal-payout .payout-modal__row input,
#modal-payout .deal-master__other-bank input {
  min-height: 50px;
  border: 1px solid #d0d5dd;
  border-radius: 13px;
  background: #fff;
  color: var(--landing-text);
  box-shadow: none;
}

#modal-payout #master-payout,
#modal-payout #other-bank-input {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: var(--landing-text);
  -webkit-text-fill-color: var(--landing-text);
  box-shadow: none;
}

#modal-payout #master-payout::placeholder,
#modal-payout #other-bank-input::placeholder {
  color: #98a2b3;
  -webkit-text-fill-color: #98a2b3;
  opacity: 1;
}

#modal-payout .deal-master__banks {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 9px;
}

#modal-payout .bank-radio {
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  background: #fff;
  color: #475467;
  box-shadow: none;
}

#modal-payout .bank-radio:hover,
#modal-payout .bank-radio:has(input:checked) {
  border-color: #b2ccff;
  background: #f8fbff;
  color: var(--landing-text);
}

#modal-payout .bank-logo,
#modal-payout .bank-logo--empty {
  border-color: #eaecf0;
  background: #f9fafb;
}

#modal-payout #payout-continue,
#modal-payout #payout-final-continue {
  min-height: 50px;
  border: 1px solid var(--landing-blue);
  border-radius: 13px;
  background: var(--landing-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23,92,211,.18);
}

#modal-payout #payout-continue:disabled,
#modal-payout #payout-final-continue:disabled {
  border-color: #d0d5dd;
  background: #eaecf0;
  color: #98a2b3;
  box-shadow: none;
}

#modal-payout .payout-check {
  min-height: 410px;
  color: var(--landing-blue);
}

#modal-payout .payout-check__title {
  color: var(--landing-text);
}

#modal-payout .payout-check__text,
#modal-payout .payout-confirm {
  color: var(--landing-muted);
}

#modal-payout .payout-check__bar {
  background: #eaecf0;
}

#modal-payout .payout-check__bar span {
  background: var(--landing-blue);
}

#modal-payout.is-verified .payout-check__spinner {
  display: none;
}

#modal-payout.is-verified .payout-check__success {
  display: block;
}

#modal-payout .payout-check__success circle {
  fill: var(--landing-blue);
}

#modal-payout #payout-recheck {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #475467;
}

/* Deal help and unified messages */
#modal-deal-help .deal-help-modal__badge {
  border: 1px solid #b2ccff;
  background: var(--landing-blue-soft);
  color: var(--landing-blue);
}

#modal-deal-help .deal-help-guides {
  gap: 10px;
}

#modal-deal-help .deal-help-guide {
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  background: #fff;
  color: var(--landing-text);
  box-shadow: none;
}

#modal-deal-help .deal-help-guide:hover {
  border-color: #b2ccff;
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(16,24,40,.06);
  transform: translateY(-2px);
}

#modal-deal-help .deal-help-guide__icon {
  border: 1px solid #b2ccff;
  background: var(--landing-blue-soft);
  color: var(--landing-blue);
}

#modal-deal-help .deal-help-modal__cta,
#modal-error .btn--primary {
  border: 1px solid var(--landing-blue);
  border-radius: 13px;
  background: var(--landing-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23,92,211,.18);
}

#modal-error .modal__box {
  width: min(500px, calc(100vw - 32px));
  max-width: 500px;
  padding: 30px;
}

#modal-error .modal__title {
  margin: 0 50px 11px 0;
  color: var(--landing-text);
  font-size: 22px;
}

#modal-error .modal__text {
  font-size: 14px;
  line-height: 1.65;
}

/* Dynamically-created loading screen */
#loader-modal.loader-modal {
  position: fixed;
  z-index: var(--z-loader);
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: rgba(247,249,252,.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#loader-modal .loader-content {
  width: min(430px, calc(100vw - 32px));
  max-width: 430px;
  padding: 34px;
  border: 1px solid var(--landing-border);
  border-radius: 22px;
  background: #fff;
  color: var(--landing-text);
  box-shadow: 0 30px 80px rgba(16,24,40,.18);
  text-align: center;
  animation: ui-modal-in 280ms cubic-bezier(.2,.8,.2,1) both;
}

#loader-modal .loader-spinner {
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  border: 4px solid #dbeafe;
  border-radius: 50%;
  border-top-color: var(--landing-blue);
  animation: ui-spinner 900ms linear infinite;
}

#loader-modal .loader-title {
  margin: 0 0 8px;
  color: var(--landing-text);
  font-size: 22px;
  font-weight: 780;
}

#loader-modal .loader-message {
  margin: 0 0 22px;
  color: var(--landing-muted);
  font-size: 14px;
}

#loader-modal .loader-progress {
  width: 100%;
  height: 6px;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaecf0;
}

#loader-modal .loader-progress-bar {
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: var(--landing-blue);
}

#loader-modal .loader-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dbeafe;
  background: var(--landing-blue-soft);
  color: #475467;
  font-size: 12px;
}

@keyframes ui-spinner {
  to { transform: rotate(360deg); }
}

/* Full deal master */
body.is-master-active {
  display: block;
  min-height: 100vh;
  background: var(--landing-surface);
}

body.is-master-active::before,
body.is-master-active::after,
body.is-master-active .site-header,
body.is-master-active .site-footer,
body.is-master-active .landing-main {
  display: none;
}

body.is-master-active .deal-master {
  display: flex;
  min-height: 100vh;
  padding: 58px 0 80px;
  background: var(--landing-surface);
  color: var(--landing-text);
}

.deal-master .deal-master__wrap {
  display: grid;
  grid-template-columns: minmax(0,1fr) 260px;
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px;
  margin: 0 auto;
  gap: 24px;
  align-items: start;
}

.deal-master .deal-master__header {
  align-items: center;
  margin-bottom: 26px;
}

.deal-master .deal-master__title {
  color: var(--landing-text);
  font-size: 32px;
  font-weight: 780;
  letter-spacing: -.04em;
}

.deal-master .deal-master__subtitle,
.deal-master .accordion__body,
.deal-master .accordion__body > p:first-child,
.deal-master .deal-master__confirm {
  color: var(--landing-muted);
}

.deal-master .payout-summary {
  border: 1px solid #b2ccff;
  background: var(--landing-blue-soft);
  box-shadow: none;
}

.deal-master .payout-summary__label,
.deal-master .payout-summary__amount {
  color: var(--landing-blue);
}

.deal-master .payout-summary__bank {
  color: #475467;
}

.deal-master .accordion {
  gap: 10px;
}

.deal-master .accordion__item {
  border: 1px solid var(--landing-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16,24,40,.035);
}

.deal-master .accordion__item:hover,
.deal-master .accordion__item.is-open {
  border-color: #b2ccff;
  box-shadow: 0 12px 30px rgba(16,24,40,.07);
  transform: none;
}

.deal-master .accordion__header {
  min-height: 68px;
  padding: 16px 18px;
  background: #fff;
  color: var(--landing-text);
}

.deal-master .accordion__header:hover {
  background: #f9fafb;
}

.deal-master .accordion__step {
  border: 1px solid #d0d5dd;
  background: #f9fafb;
  color: var(--landing-soft);
}

.deal-master .accordion__item.is-open .accordion__step,
.deal-master .accordion__item.is-done .accordion__step {
  border-color: #b2ccff;
  background: var(--landing-blue-soft);
  color: var(--landing-blue);
}

.deal-master .accordion__title,
.deal-master .accordion__body label {
  color: var(--landing-text);
}

.deal-master .accordion__body {
  padding: 2px 18px 20px;
}

.deal-master .form-grid {
  gap: 12px;
}

.deal-master .accordion__body input,
.deal-master .accordion__body textarea,
.deal-master .password-wrap input {
  border: 1px solid #d0d5dd;
  border-radius: 13px;
  background: #fff;
  color: var(--landing-text);
  box-shadow: none;
}

.deal-master .accordion__body input:focus,
.deal-master .accordion__body textarea:focus {
  border-color: var(--landing-blue);
  box-shadow: 0 0 0 3px rgba(23,92,211,.12);
}

.deal-master .deal-master__meta {
  color: var(--landing-muted);
}

.deal-master .deal-master__link,
.deal-master .deal-master__hint-link,
.deal-master .deal-master__actions > a,
.deal-master .email-copy {
  color: var(--landing-blue);
}

.deal-master .deal-master__confirm input {
  accent-color: var(--landing-blue);
}

.deal-master .accordion__body .btn--primary,
.deal-master #master-finish {
  border: 1px solid var(--landing-blue);
  border-radius: 12px;
  background: var(--landing-blue);
  color: #fff;
  box-shadow: 0 7px 16px rgba(23,92,211,.16);
}

.deal-master .accordion__body .btn--ghost,
.deal-master #master-get-code {
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: #475467;
}

.deal-master .deal-master__right {
  position: sticky;
  top: 28px;
  display: block;
}

.deal-master .status-card {
  position: static;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--landing-border);
  border-radius: 17px;
  background: #fff;
  color: var(--landing-text);
  box-shadow: 0 8px 24px rgba(16,24,40,.055);
  transform: none;
}

.deal-master .status-card__title {
  margin-bottom: 14px;
  color: var(--landing-text);
  font-size: 12px;
  letter-spacing: .06em;
}

.deal-master .status-step {
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
  color: var(--landing-muted);
}

.deal-master .status-step.is-active {
  border-color: #b2ccff;
  background: #f5f9ff;
  color: var(--landing-text);
}

.deal-master .status-step.is-active span,
.deal-master .status-step.is-done span,
.deal-master .status-step.is-done::after {
  color: var(--landing-blue);
}

.deal-help-float {
  border: 1px solid #b2ccff;
  background: #fff;
  color: var(--landing-text);
  box-shadow: 0 12px 30px rgba(16,24,40,.13);
}

.deal-help-float__icon {
  border-color: #b2ccff;
  background: var(--landing-blue-soft);
  color: var(--landing-blue);
}

@media (max-width: 900px) {
  .deal-master .deal-master__wrap {
    grid-template-columns: 1fr;
  }

  .deal-master .deal-master__right {
    display: none;
  }
}

@media (max-width: 640px) {
  #check-screen .check-screen__inner {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 20px 16px;
    border-radius: 20px;
  }

  #check-screen .check-screen__brand {
    margin-bottom: 16px;
    padding-bottom: 15px;
  }

  #check-screen .check-screen__title {
    font-size: 22px;
  }

  #check-screen .check-screen__desc {
    margin-bottom: 18px;
  }

  #check-screen .check-step {
    min-height: 52px;
  }

  #check-screen .check-step__copy small {
    display: none;
  }

  #modal-payout .modal__box--payout {
    padding: 18px 14px;
  }

  #modal-how .modal__box--wide {
    padding: 22px 16px;
  }

  #modal-how .how-modal__head {
    margin-right: 44px;
  }

  #modal-how .how-modal__head .modal__title {
    font-size: 22px;
  }

  #modal-how .how-steps {
    grid-template-columns: 1fr;
  }

  #modal-how .how-step {
    min-height: 0;
  }

  #modal-how .how-step__icon {
    margin-bottom: 18px;
  }

  #modal-payout .payout-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  #modal-payout .payout-card__visual {
    display: none;
  }

  #modal-payout .deal-master__banks {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  body.is-master-active .deal-master {
    padding: 28px 0 60px;
  }

  .deal-master .deal-master__wrap {
    width: calc(100% - 20px);
  }

  .deal-master .deal-master__header {
    grid-template-columns: 1fr;
  }

  .deal-master .deal-master__title {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-panel__progress span::after,
  .service-visual > .status-card,
  #check-screen .check-screen__badge i,
  #check-screen .check-step.is-active .check-step__state,
  #check-screen .check-screen__bar::after,
  .modal:not([hidden]) .modal__box,
  .modal:not([hidden]) .modal__backdrop,
  #check-screen .check-screen__inner {
    animation: none;
  }
}


#deal-master [hidden] {
  display: none;
}

.process-section .section-heading--center {
  display: flex;
  width: 100%;
  max-width: 900px;
  align-items: center;
  flex-direction: column;
  margin: 0 auto 44px;
  text-align: center;
}

.process-section .section-heading--center > div {
  width: 100%;
}

.process-section .section-heading--center .section-heading__eyebrow {
  margin: 0 0 13px;
  text-align: center;
}

.process-section .section-heading--center h2 {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

.process-section .section-heading--center > p {
  width: 100%;
  max-width: 620px;
  margin: 18px auto 0;
  text-align: center;
  text-wrap: balance;
}

.deal-master .accordion__item[hidden],
.deal-master .deal-master__links[hidden],
.deal-master .deal-master__hint[hidden],
.deal-master .deal-master__actions > [hidden],
.deal-master button[hidden],
.deal-master a[hidden],
.deal-master .status-step[hidden] {
  display: none;
}

.deal-master #master-finish {
  width: auto;
}

.modal[hidden],
.deal-master[hidden],
.check-screen[hidden] {
  display: none;
}

#modal-payout .modal__box--payout {
  width: min(780px, calc(100vw - 32px));
  max-width: 780px;
  max-height: calc(100dvh - 32px);
  padding: 34px 36px 36px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e4e7ec;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .24);
}

#modal-payout .modal__backdrop {
  background: rgba(22, 32, 53, .72);
  -webkit-backdrop-filter: blur(12px) saturate(.85);
  backdrop-filter: blur(12px) saturate(.85);
}

#modal-payout .modal__close,
.deal-master .deal-master__close {
  z-index: 8;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #dfe3e8;
  border-radius: 13px;
  background: #fff;
  color: #475467;
  opacity: 1;
  box-shadow: 0 7px 18px rgba(16, 24, 40, .1);
}

#modal-payout .modal__close {
  top: 28px;
  right: 28px;
}

#modal-payout .payout-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  min-height: 0;
  margin: 0 0 28px;
  padding: 0 56px 0 0;
  gap: 24px;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

#modal-payout .payout-card__eyebrow {
  display: inline-flex;
  width: max-content;
  min-height: 36px;
  align-items: center;
  margin: 0 0 14px;
  padding: 7px 13px;
  gap: 9px;
  border-radius: 12px;
  background: #edf4ff;
  color: #1764e8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
}

#modal-payout .payout-card .modal__title {
  margin: 0;
  color: #1d2939;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

#modal-payout .payout-card__amount {
  margin: 8px 0 8px;
  color: #1764e8;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}

#modal-payout .payout-card__note {
  margin: 0;
  color: #778399;
  font-size: 14px;
  line-height: 1.5;
}

#modal-payout .payout-art {
  display: grid;
  width: 180px;
  height: 150px;
  align-self: end;
  place-items: center;
  pointer-events: none;
}

#modal-payout .payout-art img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(38, 103, 225, .18));
  transform: translateY(8px);
}

#modal-payout .payout-form {
  display: grid;
  gap: 16px;
}

#modal-payout .payout-method-switch {
  min-height: 64px;
  padding: 5px;
  gap: 5px;
  border: 1px solid #d7deea;
  border-radius: 18px;
  background: #f8fafc;
}

#modal-payout .payout-method,
#modal-payout .payout-method:has(input:checked) {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

#modal-payout .payout-method span {
  min-height: 52px;
  gap: 10px;
  color: #667085;
  font-size: 14px;
  font-weight: 750;
}

#modal-payout .payout-method:has(input:checked) span {
  background: #fff;
  color: #1764e8;
  box-shadow: 0 4px 12px rgba(16, 24, 40, .08);
}

#modal-payout .payout-bank-title,
#modal-payout .payout-modal__row label,
#modal-payout .deal-master__other-bank label {
  color: #1d2939;
  font-size: 13px;
  font-weight: 750;
}

#modal-payout .payout-input-shell {
  position: relative;
  display: block;
  width: 100%;
}

#modal-payout .payout-input-shell > svg {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 17px;
  color: #8491a7;
  pointer-events: none;
  transform: translateY(-50%);
}

#modal-payout .payout-modal__row input,
#modal-payout .payout-modal__row input:focus,
#modal-payout .deal-master__other-bank input,
#modal-payout .deal-master__other-bank input:focus,
#modal-payout #master-payout,
#modal-payout #master-payout:focus,
#modal-payout #other-bank-input,
#modal-payout #other-bank-input:focus {
  width: 100%;
  height: 58px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  background-color: #fff;
  color: #172033;
  -webkit-text-fill-color: #172033;
  font-size: 14px;
  box-shadow: none;
}

#modal-payout .payout-input-shell #master-payout {
  padding-left: 51px;
}

#modal-payout .payout-modal__row input:focus,
#modal-payout .deal-master__other-bank input:focus,
#modal-payout #master-payout:focus,
#modal-payout #other-bank-input:focus {
  border-color: #1764e8;
  box-shadow: 0 0 0 3px rgba(23, 100, 232, .1);
}

#modal-payout #master-payout::placeholder,
#modal-payout #other-bank-input::placeholder {
  color: #98a2b3;
  -webkit-text-fill-color: #98a2b3;
  opacity: 1;
}

#modal-payout .deal-master__banks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: -8px 0 0;
  gap: 9px;
}

#modal-payout .bank-radio {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 58px;
  padding: 9px 38px 9px 11px;
  gap: 10px;
  border: 1px solid #e0e5ed;
  border-radius: 13px;
  background: #fff;
  color: #3f495b;
  box-shadow: none;
}


#modal-payout .bank-radio > input {
  grid-column: auto;
  grid-row: auto;
}

#modal-payout .bank-radio > .bank-logo,
#modal-payout .bank-radio > .bank-logo--empty {
  box-sizing: border-box;
  grid-column: 1;
  grid-row: 1;
}

#modal-payout .bank-radio > span:last-child {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  font-size: 13px;
}

#modal-payout .bank-radio::after {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
}

#modal-payout .bank-radio:hover,
#modal-payout .bank-radio:has(input:checked) {
  border-color: #8fb5fb;
  background: #f7faff;
  transform: none;
}

#modal-payout #payout-continue,
#modal-payout #payout-final-continue {
  min-height: 50px;
  border-radius: 12px;
  background: #1764e8;
  box-shadow: none;
}

#modal-payout .payout-check {
  min-height: 0;
  padding: 38px 18px 8px;
}

#modal-payout.is-verifying .modal__box--payout {
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
}

body.is-master-active .deal-master,
.deal-master:not([hidden]) {
  display: grid;
  min-height: 100dvh;
  padding: 20px;
  overflow: hidden;
  place-items: center;
  background: rgba(15, 23, 42, .42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.deal-master .deal-master__wrap {
  display: block;
  width: min(780px, calc(100vw - 40px));
  max-width: 780px;
  max-height: calc(100dvh - 40px);
  margin: 0;
  padding: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(16, 24, 40, .16);
}

.deal-master .deal-master__left {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.deal-master .deal-master__right,
body.is-master-active .deal-help-float,
.deal-master .finish-help {
  display: none;
}

.deal-master .deal-master__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  padding: 0 52px 21px 0;
  gap: 20px;
  border-bottom: 1px solid #eaecf0;
}

.deal-master .deal-master__title {
  margin: 0;
  color: #172033;
  font-size: 25px;
  line-height: 1.18;
}

.deal-master .accordion {
  display: grid;
  margin: 20px 0 0;
  gap: 9px;
}

.deal-master .accordion__item,
.deal-master .accordion__item:hover,
.deal-master .accordion__item.is-open {
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  transform: none;
}

.deal-master .accordion__header,
.deal-master .accordion__header:hover {
  min-height: 56px;
  padding: 10px 14px;
  border: 0;
  background: #fff;
  color: #172033;
  box-shadow: none;
}

.deal-master .accordion__body input,
.deal-master .accordion__body input:focus,
.deal-master .password-wrap input,
.deal-master .password-wrap input:focus {
  height: 48px;
  min-height: 48px;
  border: 1px solid #d0d5dd;
  border-radius: 11px;
  background: #fff;
  background-color: #fff;
  color: #172033;
  -webkit-text-fill-color: #172033;
  box-shadow: none;
}

.deal-master .accordion__body input:focus,
.deal-master .password-wrap input:focus {
  border-color: #1764e8;
  box-shadow: 0 0 0 3px rgba(23, 100, 232, .1);
}

@media (max-width: 680px) {
  #modal-payout .modal__box--payout {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 20px 16px;
    border-radius: 17px;
  }

  #modal-payout .deal-master__banks {
    grid-template-columns: 1fr;
  }

  body.is-master-active .deal-master,
  .deal-master:not([hidden]) {
    padding: 10px;
  }

  .deal-master .deal-master__wrap {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 20px 16px;
    border-radius: 17px;
  }

  .deal-master .deal-master__header {
    grid-template-columns: 1fr;
    padding: 0 42px 17px 0;
    gap: 12px;
  }

  .deal-master .deal-master__title {
    font-size: 21px;
  }

  .deal-master .accordion__body {
    padding: 0 12px 14px;
  }

  .deal-master .form-grid {
    grid-template-columns: 1fr;
  }
}
}

@layer flows {
body .deal-master .deal-master__confirm,
body #modal-payout .payout-confirm {
  box-sizing: border-box;
  display: inline-grid;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  margin: 9px 0 11px;
  padding: 7px 10px;
  gap: 8px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #344054;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

body .deal-master .deal-master__confirm:hover,
body #modal-payout .payout-confirm:hover {
  border-color: #c9d6e8;
  background: #f5f8fc;
}

body .deal-master .deal-master__confirm input[type="checkbox"],
body #modal-payout .payout-confirm input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: grid;
  width: 17px;
  height: 17px;
  min-width: 17px;
  min-height: 17px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1.5px solid #aebacc;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

body .deal-master .deal-master__confirm input[type="checkbox"]::after,
body #modal-payout .payout-confirm input[type="checkbox"]::after {
  content: "";
  width: 7px;
  height: 4px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  opacity: 0;
  transform: rotate(-45deg) scale(.8);
}

body .deal-master .deal-master__confirm input[type="checkbox"]:checked,
body #modal-payout .payout-confirm input[type="checkbox"]:checked {
  border-color: #1764e8;
  background: #1764e8;
}

body .deal-master .deal-master__confirm input[type="checkbox"]:checked::after,
body #modal-payout .payout-confirm input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

body .deal-master .deal-master__confirm input[type="checkbox"]:focus-visible,
body #modal-payout .payout-confirm input[type="checkbox"]:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(23, 100, 232, .14);
}

body #modal-payout .payout-check__actions {
  justify-items: center;
}

body #modal-payout .payout-confirm {
  max-width: 340px;
}

#modal-payout #payout-icon-phone[hidden],
#modal-payout #payout-icon-card[hidden] {
  display: none;
}

body .deal-master .email-copy.copied {
  border-color: #8bd4b2;
  background: #f0fdf6;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, .08);
}

body .deal-master .email-copy.copied .email-copy__at {
  background: #dcfae6;
  color: #087a4e;
}

body .deal-master .email-copy.copied .email-copy__icon {
  color: #12a66a;
}

body .toast,
body #toast.toast {
  box-sizing: border-box;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  display: flex;
  width: fit-content;
  max-width: min(430px, calc(100vw - 24px));
  min-height: 46px;
  align-items: center;
  padding: 10px 14px;
  gap: 9px;
  border: 1px solid #dce4ef;
  border-radius: 13px;
  background: #fff;
  color: #344054;
  box-shadow: 0 14px 38px rgba(16, 24, 40, .14);
}

body .toast .toast__icon,
body #toast .toast__icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 9px;
  background: #eaf2ff;
  color: #1764e8;
}

body .toast .toast__text,
body #toast .toast__text {
  color: #344054;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

@media (max-width: 560px) {
  body .toast,
  body #toast.toast {
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 20px);
  }
}
}

@layer overlays {
:root {
  --z-base: 0;
  --z-header: 100;
  --z-floating: 400;
  --z-overlay: 1000;
  --z-modal: 1010;
  --z-toast: 1100;
  --z-loader: 1200;
}

.site-header {
  z-index: var(--z-header);
}

.modal {
  position: fixed;
  z-index: var(--z-modal);
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  isolation: isolate;
}

#modal-final-success {
  z-index: calc(var(--z-modal) + 10);
}

.modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal[hidden],
.check-screen[hidden],
.deal-master[hidden],
.toast[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.modal__box {
  position: relative;
  z-index: 1;
}

.modal__close {
  position: absolute;
  z-index: 2;
}

.check-screen {
  position: fixed;
  z-index: var(--z-overlay);
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  isolation: isolate;
}

.check-screen:not([hidden]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.check-screen__inner {
  position: relative;
  z-index: 1;
}

body.is-master-active .deal-master,
.deal-master:not([hidden]) {
  position: fixed;
  z-index: var(--z-modal);
  inset: 0;
  isolation: isolate;
}

.deal-help-float,
.deal-resume-float {
  z-index: var(--z-floating);
}

.deal-resume-float:not([hidden]) + .deal-help-float:not([hidden]) {
  bottom: 92px;
}

body #modal-payout .payout-check__bar span {
  background: #1764e8;
  background-image: none;
  box-shadow: none;
}

body #modal-payout .payout-method-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

body #modal-payout .payout-method {
  width: 100%;
  min-width: 0;
  padding: 0;
}

body #modal-payout .payout-method > span {
  width: 100%;
  box-sizing: border-box;
  padding: 0 18px;
}

#loader-modal.loader-modal {
  z-index: var(--z-loader);
  isolation: isolate;
}

.toast,
#toast.toast {
  position: fixed;
  z-index: var(--z-toast);
  left: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 100px);
  transition: opacity var(--ui-transition), transform var(--ui-transition), visibility var(--ui-transition);
}

.toast.is-open,
.toast.is-visible,
#toast.toast.is-open,
#toast.toast.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%);
}

@media (max-width: 640px) {
  .modal,
  .check-screen {
    padding: 10px;
  }
}
}
