/* Storm deposit wizard — cascade UX, hide raw method wall */

/* Prefer explicit sdw-active (set by JS); :has() as fallback */
.ws-view.sdw-active .ws-filters,
.ws-view.sdw-active .ws-methods,
.ws-view.sdw-active .ws-skel--methods,
.ws-view:has(#storm-deposit-v2) .ws-filters,
.ws-view:has(#storm-deposit-v2) .ws-methods,
.ws-view:has(#storm-deposit-v2) .ws-skel--methods,
html.sdw-live .ws-view:has(.ws-methods) .ws-filters,
html.sdw-live .ws-view:has(.ws-methods) .ws-methods,
html.sdw-live .ws-view:has(.ws-methods) .ws-skel--methods {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* Keep amount/pay visible on step 3 — never re-show the method grid */
.ws-view.sdw-active.sdw-ready .ws-methods,
.ws-view.sdw-active.sdw-ready .ws-filters {
  display: none !important;
}

/* Until method picked, mute the noisy card lead about "all methods" */
.ws-view.sdw-active:not(.sdw-ready) .ws-card__lead,
.ws-view:has(#storm-deposit-v2):not(.sdw-ready) .ws-card__lead {
  display: none !important;
}
.ws-view.sdw-active:not(.sdw-ready) .ws-card__title,
.ws-view:has(#storm-deposit-v2):not(.sdw-ready) .ws-card__title {
  font-size: 15px !important;
}

.sdw {
  --bg: rgba(255,255,255,.045);
  --bg2: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.12);
  --text: #f5f7fb;
  --muted: rgba(245,247,251,.58);
  --ok: #2dd49b;
  --gold: #e7c56a;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 12px;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.sdw button {
  pointer-events: auto;
  cursor: pointer;
}

.sdw__steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.sdw__steps span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font: 700 12px/1 inherit;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--bg);
}
.sdw__steps span.is-on {
  color: #0b1220;
  background: var(--gold);
  border-color: transparent;
}
.sdw__steps i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sdw__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}
.sdw__hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.sdw__choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sdw__choice {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  color: var(--text);
  border-radius: 18px;
  padding: 16px 16px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 84px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.sdw__choice:active {
  transform: scale(0.99);
}
.sdw__choice strong {
  font-size: 16px;
  font-weight: 800;
}
.sdw__choice span {
  color: var(--muted);
  font-size: 12px;
}
.sdw__choice-kicker {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0b1220;
  background: var(--ok);
  border-radius: 999px;
  padding: 3px 8px;
  margin-bottom: 4px;
}
.sdw__choice--ghost {
  min-height: 64px;
  opacity: .92;
}

/* Single-column list — never a card wall */
.sdw__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.sdw__tile {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 16px;
  min-height: 68px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.sdw__tile:active {
  transform: scale(0.99);
}
.sdw__tile.is-on {
  border-color: rgba(231,197,106,.75);
  background: linear-gradient(180deg, rgba(231,197,106,.18), rgba(231,197,106,.05));
}
.sdw__tile-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.sdw__tile-body strong {
  font-size: 15px;
  font-weight: 800;
}
.sdw__tile-body span {
  font-size: 12px;
  color: var(--muted);
}

.sdw__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(0,0,0,.28);
  flex: 0 0 auto;
}
.sdw__ico--fb {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: var(--gold);
}

.sdw__back,
.sdw__link,
.sdw__change {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 650 14px/1.2 inherit;
  cursor: pointer;
  padding: 10px 0;
  min-height: 44px;
  text-align: left;
  width: fit-content;
  touch-action: manipulation;
}
.sdw__link {
  margin-top: 2px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sdw__change {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
  padding: 8px 4px;
}

.sdw__ready {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(45,212,155,.35);
  background: rgba(45,212,155,.1);
  min-height: 72px;
}
.sdw__ready-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sdw__ready-main strong {
  display: block;
  font-size: 14px;
}
.sdw__ready-main span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.sdw__empty {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Amount / pay comfort */
.ws-view.sdw-ready .ws-summary {
  position: sticky;
  bottom: 0;
  z-index: 6;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, transparent, rgba(10,12,18,.9) 30%);
  padding-top: 10px;
}
.ws-view .ws-btn--lg.ws-btn--block,
.ws-view .ws-cta .ws-btn {
  min-height: 52px;
  border-radius: 16px;
  font-weight: 800;
}
.ws-view .ws-amount input,
.ws-view .ws-input {
  min-height: 52px;
  border-radius: 16px;
  font-size: 16px;
}
.ws-view .ws-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ws-view .ws-chip {
  min-height: 44px;
  min-width: 68px;
  border-radius: 12px;
  font-weight: 700;
}
.ws-summary__row--bonus {
  color: var(--ok) !important;
  font-weight: 800 !important;
}

/* Mobile-first touch zones */
@media (max-width: 420px) {
  .sdw {
    gap: 10px;
  }
  .sdw__title { font-size: 18px; }
  .sdw__choice {
    min-height: 80px;
    padding: 15px 14px;
    border-radius: 16px;
  }
  .sdw__tile {
    min-height: 72px;
    padding: 14px;
  }
  .sdw__ico {
    width: 44px;
    height: 44px;
  }
  .sdw__back,
  .sdw__link,
  .sdw__change {
    min-height: 48px;
    font-size: 15px;
  }
}

@media (min-width: 960px) {
  .sdw {
    max-width: 520px;
  }
  .sdw__choice { min-height: 78px; }
  .sdw__tile { min-height: 64px; }
}
