/* SUNDEX verification flow — aligned, task-first, and visually consistent with the processing system. */
body.stx-verification-flow {
  --vf-surface: rgba(7, 12, 20, 0.86);
  --vf-raised: #0a1018;
  --vf-field: #050a11;
  --vf-line: rgba(184, 205, 232, 0.14);
  --vf-line-strong: rgba(190, 215, 247, 0.3);
  --vf-ink: #f2f5f9;
  --vf-text: #d3dbe6;
  --vf-muted: #929fb1;
  --vf-accent: #b8cef0;
  --vf-danger: #d999a5;
  --vf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.sundex-transaction-system.stx-verification-flow .stx-head > .stx-vf-progress {
  display: flex !important;
  width: 174px !important;
  flex: 0 0 174px !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 16px 0 0 28px;
}

body.stx-verification-flow .stx-vf-progress i {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(177, 199, 229, 0.13);
}

body.stx-verification-flow .stx-vf-progress i.is-complete {
  background: rgba(184, 206, 236, 0.5);
}

body.stx-verification-flow .stx-vf-progress i.is-current {
  background: #c5d8f2;
  box-shadow: 0 0 14px rgba(151, 190, 240, 0.2);
}

body.stx-verification-flow .stx-vf-stage {
  scrollbar-color: rgba(179, 200, 229, 0.2) transparent;
}

body.stx-verification-flow .stx-vf-screen {
  box-sizing: border-box;
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  min-height: 0 !important;
  margin: 0 auto 0 0 !important;
  padding: 8px 0 28px !important;
  animation: stx-vf-enter 220ms var(--vf-ease) both;
}

body.stx-verification-flow .stx-vf-eyebrow {
  display: block;
  margin: 0 0 13px;
  color: var(--vf-accent);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.stx-verification-flow .stx-vf-section-head {
  margin: 0 0 22px !important;
  text-align: left !important;
}

body.stx-verification-flow .stx-vf-section-head h2 {
  margin-bottom: 7px !important;
  font-size: clamp(24px, 1.8vw, 30px) !important;
  font-weight: 560 !important;
}

body.stx-verification-flow .stx-vf-section-head p {
  color: var(--vf-muted) !important;
  font-size: 14px !important;
}

/* Verification gate */
body.stx-verification-flow .stx-vf-required-screen {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

body.stx-verification-flow .stx-vf-required-screen .stx-vf-eyebrow {
  order: -2;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-required-screen > .stx-vf-alert-icon {
  order: -1;
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  align-self: flex-start !important;
  margin: 0 0 24px !important;
  border: 1px solid rgba(217, 153, 165, 0.14);
  border-radius: 15px !important;
  background: rgba(95, 51, 60, 0.18) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

body.stx-verification-flow .stx-vf-alert-icon svg {
  width: 24px !important;
  height: 24px !important;
  color: var(--vf-danger) !important;
}

body.stx-verification-flow .stx-vf-title {
  margin: 0 0 14px !important;
  color: var(--vf-ink) !important;
  font-size: clamp(28px, 2vw, 34px) !important;
  font-weight: 560 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
}

body.stx-verification-flow .stx-vf-copy {
  max-width: 62ch !important;
  margin: 0 0 12px !important;
  color: var(--vf-muted) !important;
  font-size: 14px !important;
  line-height: 1.62 !important;
  text-align: left !important;
}

body.stx-verification-flow .stx-vf-copy strong {
  color: var(--vf-ink);
  font-weight: 620;
}

body.stx-verification-flow .stx-vf-summary {
  display: grid;
  width: min(610px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0 24px;
  overflow: hidden;
  border: 1px solid var(--vf-line);
  border-radius: 12px;
  background: var(--vf-line);
}

body.stx-verification-flow .stx-vf-summary > div {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(7, 12, 20, 0.96);
}

body.stx-verification-flow .stx-vf-summary dt {
  margin: 0 0 5px;
  color: var(--vf-muted);
  font-size: 11px;
  font-weight: 510;
}

body.stx-verification-flow .stx-vf-summary dd {
  margin: 0;
  color: var(--vf-text);
  font-size: 13px;
  font-weight: 570;
}

body.stx-verification-flow .stx-vf-actions {
  display: flex !important;
  width: min(610px, 100%) !important;
  max-width: 610px !important;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
}

body.stx-verification-flow .stx-vf-actions > button {
  position: static !important;
  min-height: 52px !important;
  margin: 0 !important;
  border-radius: 10px !important;
}

body.stx-verification-flow .stx-vf-actions > button:first-child {
  flex: 1 1 auto;
  border: 1px solid rgba(215, 230, 250, 0.78) !important;
  color: #07101c !important;
  background: linear-gradient(135deg, #c8dbf5, #a8c7f2 52%, #bed6f5) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72), 0 12px 28px rgba(49, 91, 147, 0.14) !important;
}

body.sundex-transaction-system.stx-verification-flow .stx-vf-required-screen .stx-vf-actions > button:last-child {
  width: 122px !important;
  flex: 0 0 122px;
  border: 1px solid var(--vf-line) !important;
  color: var(--vf-text) !important;
  background: rgba(8, 13, 21, 0.84) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035) !important;
}

/* Coin selection */
body.stx-verification-flow .stx-vf-coins-screen {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px !important;
}

body.stx-verification-flow .stx-vf-coins-screen > :not([hidden]) ~ :not([hidden]),
body.stx-verification-flow .stx-vf-deposit-screen > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0 !important;
}

body.stx-verification-flow .stx-vf-coins-screen .stx-vf-eyebrow {
  margin-bottom: -1px;
}

body.stx-verification-flow .stx-vf-popular {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 7px !important;
  margin: 0 !important;
  overflow-x: auto;
}

body.stx-verification-flow .stx-vf-popular::before {
  content: "Popular";
  margin-right: 4px;
  color: var(--vf-muted);
  font-size: 11px;
  font-weight: 520;
}

body.stx-verification-flow .stx-vf-popular > button {
  min-width: 58px;
  min-height: 36px !important;
  padding: 0 11px !important;
  border: 1px solid var(--vf-line) !important;
  border-radius: 10px !important;
  color: var(--vf-text) !important;
  background: #080d15 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03) !important;
}

body.stx-verification-flow .stx-vf-popular > button[class*="bg-foreground"] {
  border-color: rgba(193, 217, 248, 0.48) !important;
  color: var(--vf-ink) !important;
  background: #111a27 !important;
}

body.stx-verification-flow .stx-vf-search {
  margin: 0 !important;
}

body.stx-verification-flow .stx-vf-search input {
  min-height: 54px !important;
  border-color: var(--vf-line) !important;
  border-radius: 11px !important;
  background: rgba(5, 10, 17, 0.9) !important;
}

body.stx-verification-flow .stx-vf-coin-list {
  max-height: min(34dvh, 304px) !important;
  padding: 1px 3px 1px 1px !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(177, 199, 228, 0.2) transparent;
}

body.stx-verification-flow .stx-vf-coin-list > button,
body.stx-verification-flow .stx-vf-networks > button {
  min-height: 60px !important;
  padding: 10px 14px !important;
  border: 1px solid var(--vf-line) !important;
  border-radius: 11px !important;
  color: var(--vf-text) !important;
  background: rgba(7, 12, 20, 0.78) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025) !important;
}

body.stx-verification-flow .stx-vf-coin-list > button + button,
body.stx-verification-flow .stx-vf-networks > button + button {
  margin-top: 8px;
}

body.stx-verification-flow .stx-vf-coin-list > button[class*="border-primary"],
body.stx-verification-flow .stx-vf-networks > button[class*="border-primary"] {
  border-color: rgba(190, 215, 247, 0.48) !important;
  background: rgba(14, 22, 33, 0.92) !important;
}

body.stx-verification-flow .stx-vf-networks {
  margin: 2px 0 0 !important;
}

body.stx-verification-flow .stx-vf-required-amount {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 20px;
  margin: 2px 0 0 !important;
  padding: 13px 16px !important;
  border: 1px solid var(--vf-line) !important;
  border-radius: 11px !important;
  background: rgba(7, 12, 20, 0.78) !important;
  text-align: left !important;
}

body.stx-verification-flow .stx-vf-required-amount p {
  margin: 0 !important;
  text-align: left !important;
}

body.stx-verification-flow .stx-vf-required-amount p:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--vf-ink) !important;
  font-size: 18px !important;
}

body.stx-verification-flow .stx-vf-required-amount p:last-child {
  color: var(--vf-muted) !important;
  font-size: 11px !important;
}

body.stx-verification-flow .stx-vf-submit {
  position: static !important;
  min-height: 54px !important;
  margin: 2px 0 0 !important;
  border-radius: 10px !important;
}

/* Deposit address */
body.stx-verification-flow .stx-vf-deposit-screen {
  display: grid !important;
  grid-template-columns: 188px minmax(0, 1fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "head head"
    "qr amount"
    "qr status"
    "address address"
    "memo memo"
    "warning warning"
    "close close";
  column-gap: 24px;
  row-gap: 14px !important;
}

body.stx-verification-flow .stx-vf-deposit-screen > .stx-vf-eyebrow { grid-area: eyebrow; margin-bottom: -2px; }
body.stx-verification-flow .stx-vf-deposit-screen > .stx-vf-section-head { grid-area: head; }
body.stx-verification-flow .stx-vf-qr-cell { grid-area: qr; align-self: stretch; justify-content: flex-start !important; }
body.stx-verification-flow .stx-vf-deposit-amount { grid-area: amount; }
body.stx-verification-flow .stx-vf-status-row { grid-area: status; }
body.stx-verification-flow .stx-vf-address { grid-area: address; }
body.stx-verification-flow .stx-vf-memo { grid-area: memo; }
body.stx-verification-flow .stx-vf-warning { grid-area: warning; }
body.stx-verification-flow .stx-vf-close { grid-area: close; }

body.stx-verification-flow .stx-vf-qr-cell {
  display: grid !important;
  min-height: 188px;
  place-items: center;
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid var(--vf-line);
  border-radius: 14px;
  background: rgba(6, 11, 18, 0.9);
}

body.stx-verification-flow .stx-vf-qr {
  display: grid;
  padding: 7px !important;
  place-items: center;
  border: 0 !important;
  border-radius: 9px !important;
  background: #f5f7fa !important;
  box-shadow: none !important;
}

body.stx-verification-flow .stx-vf-qr svg {
  display: block;
  width: 154px !important;
  height: 154px !important;
}

body.stx-verification-flow .stx-vf-deposit-amount {
  display: grid;
  min-height: 112px;
  align-content: center;
  margin: 0 !important;
  padding: 18px 20px !important;
  border: 1px solid var(--vf-line) !important;
  border-radius: 13px !important;
  background: rgba(7, 12, 20, 0.78) !important;
  text-align: left !important;
}

body.stx-verification-flow .stx-vf-deposit-amount > p,
body.stx-verification-flow .stx-vf-deposit-amount > div {
  justify-content: flex-start !important;
  text-align: left !important;
}

body.stx-verification-flow .stx-vf-deposit-amount > div p {
  font-size: clamp(23px, 2vw, 30px) !important;
}

body.stx-verification-flow .stx-vf-status-row {
  align-self: end;
  justify-content: flex-start !important;
  margin: 0 !important;
}

body.stx-verification-flow .stx-vf-status-row > div {
  min-height: 42px;
  padding: 0 15px !important;
  border: 1px solid var(--vf-line);
  border-radius: 11px !important;
  color: var(--vf-muted) !important;
  background: rgba(9, 15, 24, 0.86) !important;
}

body.stx-verification-flow .stx-vf-address,
body.stx-verification-flow .stx-vf-memo {
  margin: 2px 0 0 !important;
}

body.stx-verification-flow .stx-vf-address > div,
body.stx-verification-flow .stx-vf-memo > div {
  align-items: stretch !important;
}

body.stx-verification-flow .stx-vf-address > div > div,
body.stx-verification-flow .stx-vf-memo > div > div {
  min-height: 52px;
  padding: 14px 16px !important;
  border: 1px solid var(--vf-line) !important;
  border-radius: 10px !important;
  color: var(--vf-text) !important;
  background: rgba(5, 10, 17, 0.9) !important;
  font-size: 13px !important;
}

body.stx-verification-flow .stx-vf-address > div > button,
body.stx-verification-flow .stx-vf-memo > div > button {
  width: 52px !important;
  height: 52px !important;
  border: 1px solid var(--vf-line) !important;
  border-radius: 10px !important;
  background: rgba(9, 15, 24, 0.86) !important;
}

body.stx-verification-flow .stx-vf-warning {
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(217, 153, 165, 0.13) !important;
  border-radius: 10px !important;
  background: rgba(95, 51, 60, 0.12) !important;
}

body.stx-verification-flow .stx-vf-warning svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
}

body.sundex-transaction-system.stx-verification-flow .stx-funding-shell .stx-vf-stage .stx-vf-deposit-screen > button.stx-vf-close {
  position: static !important;
  justify-self: start;
  width: 150px !important;
  max-width: 150px !important;
  min-height: 48px !important;
  height: 48px !important;
  margin: 2px 0 0 !important;
  border: 1px solid var(--vf-line) !important;
  border-radius: 10px !important;
  color: var(--vf-text) !important;
  background: rgba(8, 13, 21, 0.9) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035) !important;
}

@media (hover: hover) and (pointer: fine) {
  body.stx-verification-flow .stx-vf-popular > button:hover,
  body.stx-verification-flow .stx-vf-coin-list > button:hover,
  body.stx-verification-flow .stx-vf-networks > button:hover,
  body.stx-verification-flow .stx-vf-close:hover,
  body.stx-verification-flow .stx-vf-actions > button:last-child:hover {
    border-color: var(--vf-line-strong) !important;
    background: #0c131e !important;
    filter: none !important;
    transform: translateY(-1px) !important;
  }
}

@media (max-height: 820px) and (min-width: 1001px) {
  body.stx-verification-flow .stx-vf-screen { padding-top: 0 !important; }
  body.stx-verification-flow .stx-vf-alert-icon { margin-bottom: 16px !important; }
  body.stx-verification-flow .stx-vf-title { font-size: 28px !important; }
  body.stx-verification-flow .stx-vf-copy { line-height: 1.48 !important; }
  body.stx-verification-flow .stx-vf-summary { margin: 10px 0 18px; }
  body.stx-verification-flow .stx-vf-coin-list { max-height: 230px !important; }
  body.stx-verification-flow .stx-vf-qr-cell { min-height: 168px; }
  body.stx-verification-flow .stx-vf-qr svg { width: 136px !important; height: 136px !important; }
}

@media (max-width: 1000px) {
  body.stx-verification-flow .stx-vf-screen {
    width: min(720px, 100%) !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 640px) {
  body.sundex-transaction-system.stx-verification-flow .stx-head > .stx-vf-progress {
    width: 100% !important;
    flex-basis: 100% !important;
    margin: 12px 0 0;
  }

  body.stx-verification-flow .stx-vf-screen {
    padding-bottom: 96px !important;
  }

  body.stx-verification-flow .stx-vf-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  body.stx-verification-flow .stx-vf-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.stx-verification-flow .stx-vf-actions > button,
  body.stx-verification-flow .stx-vf-actions > button:last-child {
    width: 100% !important;
    flex-basis: auto;
  }

  body.stx-verification-flow .stx-vf-deposit-screen {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "head"
      "qr"
      "amount"
      "status"
      "address"
      "memo"
      "warning"
      "close";
  }

  body.stx-verification-flow .stx-vf-qr-cell {
    width: 184px !important;
    min-height: 184px;
    justify-self: start;
  }

  body.sundex-transaction-system.stx-verification-flow .stx-funding-shell .stx-vf-stage .stx-vf-deposit-screen > button.stx-vf-close {
    width: 100% !important;
    max-width: none !important;
  }

  body.stx-verification-flow .stx-vf-popular {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body.stx-verification-flow .stx-vf-popular::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.stx-verification-flow .stx-vf-screen { animation: none; }
}

@keyframes stx-vf-enter {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
