/* Shared popup styling sourced from Wallet page */
/* MYCEX_PROTOTYPE_WALLET_V4 */
.mycex-prototype-popup {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  background: rgba(3,8,19,.82) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mycex-prototype-box {
  display: block !important;
  width: min(100%, 490px) !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 27px !important;
  border: 1px solid #293d5d !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg,#17243a,#101a2c 65%,#0d1728) !important;
  color: #edf4ff !important;
  box-shadow: 0 25px 80px rgba(0,0,0,.5) !important;
}
.mycex-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}
.mycex-eyebrow {
  color: #65a6ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.mycex-modal-top h3 {
  margin: 6px 0 5px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 750 !important;
}
.mycex-modal-top p {
  margin: 0;
  color: #93a5bf;
  font-size: 12px;
  line-height: 1.5;
}
.mycex-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #344761;
  border-radius: 10px;
  background: #1b2a40;
  color: #dce8fb;
  font-size: 23px;
  line-height: 1;
}
.mycex-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 23px;
  padding: 13px 14px;
  border: 1px solid rgba(110,150,210,.15);
  border-radius: 13px;
  background: rgba(6,15,29,.45);
}
.mycex-steps i {
  height: 1px;
  flex: 1;
  background: #344761;
}
.mycex-step {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8092ac;
  white-space: nowrap;
}
.mycex-step span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #25354d;
  font-size: 11px;
  font-weight: 800;
}
.mycex-step.active span {
  background: #1479f8;
  color: white;
  box-shadow: 0 0 12px rgba(20,121,248,.25);
}
.mycex-step.active small { color: #dceaff; }
.mycex-step small { font-size: 11px; }
.mycex-field-label {
  display: block;
  margin: 15px 0 8px;
  color: #c7d5e9;
  font-size: 12px;
  font-weight: 700;
}
.mycex-coin-selector { margin: 0 0 14px !important; }
.mycex-selected {
  display: flex !important;
  align-items: center !important;
  min-height: 55px !important;
  padding: 0 14px !important;
  border: 1px solid #344965 !important;
  border-radius: 12px !important;
  background: #0b1527 !important;
  color: #f1f6ff !important;
  cursor: default !important;
}
.mycex-selected img { width: 27px !important; height: 27px !important; object-fit: contain; }
.mycex-selected span:nth-child(2) { flex: 1; font-weight: 700; }
.mycex-selected-chevron { color: #8fa5c4; font-size: 19px; }
.mycex-search-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px !important;
  margin-top: 8px;
  border: 1px solid #2d4669 !important;
  border-radius: 11px !important;
  background: rgba(36,92,160,.12) !important;
  color: #83b8ff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.mycex-search-button span { font-size: 19px; }
.mycex-coin-selector .coin-search-input {
  display: none !important;
  width: 100% !important;
  min-height: 45px !important;
  margin-top: 9px !important;
  padding: 0 13px !important;
  border: 1px solid #385579 !important;
  border-radius: 11px !important;
  background: #091426 !important;
  color: #fff !important;
}
.mycex-coin-selector.search-open .coin-search-input { display: block !important; }
.mycex-coin-selector .coin-options {
  display: none !important;
  position: static !important;
  max-height: 190px !important;
  overflow-y: auto !important;
  margin-top: 7px !important;
  border: 1px solid #2d4260 !important;
  border-radius: 11px !important;
  background: #101d31 !important;
}
.mycex-coin-selector.search-open .coin-options.open { display: block !important; }
.mycex-prototype-box select {
  display: block;
  width: 100% !important;
  min-height: 53px !important;
  padding: 0 13px !important;
  border: 1px solid #344965 !important;
  border-radius: 12px !important;
  background: #0b1527 !important;
  color: #f1f6ff !important;
  font-size: 14px !important;
}
.mycex-info {
  min-height: 0 !important;
  margin-top: 8px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(65,132,225,.2) !important;
  border-radius: 10px !important;
  background: rgba(39,102,190,.1) !important;
  color: #a9cafa !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}
.mycex-amount-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 0 13px;
  border: 1px solid #344965;
  border-radius: 12px;
  background: #0b1527;
}
.mycex-amount-wrap:focus-within {
  border-color: #438cff;
  box-shadow: 0 0 0 3px rgba(58,133,255,.12);
}
.mycex-amount-wrap input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 54px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 700;
}
.mycex-amount-wrap input:focus { box-shadow: none !important; }
.mycex-amount-wrap > span {
  color: #8dbbff;
  font-size: 13px;
  font-weight: 800;
}
.mycex-demo-note {
  margin-top: 9px;
  color: #8498b5;
  font-size: 11px;
  line-height: 1.5;
}
.mycex-demo-note span { color: #65a6ff; margin-right: 5px; }
.mycex-message { min-height: 0 !important; margin: 8px 0 !important; }
.mycex-actions {
  display: grid !important;
  grid-template-columns: .8fr 1.4fr !important;
  gap: 10px !important;
  margin-top: 19px !important;
}
.mycex-actions button {
  min-height: 49px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}
.mycex-cancel {
  border: 1px solid #354965 !important;
  background: #1b2a40 !important;
  color: #d3dfef !important;
}
.mycex-confirm {
  border: 0 !important;
  background: linear-gradient(105deg,#0879f9,#2868ed) !important;
  color: white !important;
  box-shadow: 0 7px 18px rgba(20,105,245,.22) !important;
}
.mycex-confirm span { margin-left: 5px; font-size: 17px; }
@media(max-width:600px) {
  .mycex-prototype-popup {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .mycex-prototype-box {
    width: 100% !important;
    max-height: 88dvh !important;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom)) !important;
    border-radius: 23px 23px 0 0 !important;
    border-bottom: 0 !important;
  }
  .mycex-withdraw-steps { gap: 5px; padding: 11px 9px; }
  .mycex-withdraw-steps .mycex-step { gap: 4px; }
  .mycex-withdraw-steps .mycex-step small { font-size: 9px; }
  .mycex-withdraw-steps i { min-width: 5px; }
}

/* MYCEX_COIN_SELECTOR_TWO_STAGE_V5 */
.mycex-coin-selector .mycex-search-button {
  display: none !important;
}
.mycex-coin-selector.search-open .mycex-search-button {
  display: flex !important;
}
.mycex-coin-selector .coin-search-input,
.mycex-coin-selector .coin-options {
  display: none !important;
}
.mycex-coin-selector.search-active .coin-search-input {
  display: block !important;
}
.mycex-coin-selector.search-active .coin-options.open {
  display: block !important;
}
.mycex-coin-selector .mycex-selected {
  cursor: pointer !important;
}

#depositPopup .demo-popup-box .coin-selector .mycex-search-button,
#withdrawPopup .demo-popup-box .coin-selector .mycex-search-button {
  display: none !important;
}

#depositPopup .demo-popup-box .coin-selector.search-open .mycex-search-button,
#withdrawPopup .demo-popup-box .coin-selector.search-open .mycex-search-button {
  display: flex !important;
  order: -1 !important;
}

#depositPopup .demo-popup-box .coin-selector.search-open .coin-options.open,
#withdrawPopup .demo-popup-box .coin-selector.search-open .coin-options.open {
  display: block !important;
}

#depositPopup .demo-popup-box .coin-selector .coin-search-input,
#withdrawPopup .demo-popup-box .coin-selector .coin-search-input {
  display: none !important;
}

#depositPopup .demo-popup-box .coin-selector.search-active .coin-search-input,
#withdrawPopup .demo-popup-box .coin-selector.search-active .coin-search-input {
  display: block !important;
}

#depositPopup .demo-popup-box .coin-selector .coin-options,
#withdrawPopup .demo-popup-box .coin-selector .coin-options {
  display: none !important;
}

#depositPopup .demo-popup-box .coin-selector.search-open .coin-options.open,
#withdrawPopup .demo-popup-box .coin-selector.search-open .coin-options.open {
  display: block !important;
}

#depositPopup .coin-options,
#withdrawPopup .coin-options,
#depositPopup .coin-options *,
#withdrawPopup .coin-options * {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

#depositPopup .coin-options > div:not(.coin-search-empty),
#withdrawPopup .coin-options > div:not(.coin-search-empty) {
  outline: none !important;
}

#depositPopup .coin-options > div::selection,
#withdrawPopup .coin-options > div::selection,
#depositPopup .coin-options > div *::selection,
#withdrawPopup .coin-options > div *::selection {
  background: transparent !important;
  color: inherit !important;
}

#depositPopup .coin-options > div:focus,
#depositPopup .coin-options > div:focus-visible,
#depositPopup .coin-options > div:active,
#withdrawPopup .coin-options > div:focus,
#withdrawPopup .coin-options > div:focus-visible,
#withdrawPopup .coin-options > div:active {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Prevent blue interaction and selection highlights in coin lists */
#depositPopup .coin-options > div:not(.coin-search-empty),
#withdrawPopup .coin-options > div:not(.coin-search-empty) {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#depositPopup .coin-options > div:not(.coin-search-empty):active,
#depositPopup .coin-options > div:not(.coin-search-empty):focus,
#depositPopup .coin-options > div:not(.coin-search-empty):focus-visible,
#depositPopup .coin-options > div:not(.coin-search-empty).active,
#depositPopup .coin-options > div:not(.coin-search-empty).selected,
#withdrawPopup .coin-options > div:not(.coin-search-empty):active,
#withdrawPopup .coin-options > div:not(.coin-search-empty):focus,
#withdrawPopup .coin-options > div:not(.coin-search-empty):focus-visible,
#withdrawPopup .coin-options > div:not(.coin-search-empty).active,
#withdrawPopup .coin-options > div:not(.coin-search-empty).selected {
  background-color: transparent !important;
  background-image: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

#depositPopup .coin-options ::selection,
#withdrawPopup .coin-options ::selection {
  background: transparent !important;
  color: inherit !important;
}

/* Restore the original dark coin selector appearance */
#depositPopup .coin-options,
#withdrawPopup .coin-options {
  background: #0d1728 !important;
  background-color: #0d1728 !important;
  border: 1px solid #263750 !important;
  border-radius: 14px !important;
  overflow-y: auto !important;
}

#depositPopup .coin-options > div:not(.coin-search-empty),
#withdrawPopup .coin-options > div:not(.coin-search-empty) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #dce6f5 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#depositPopup .coin-options > div:not(.coin-search-empty):active,
#depositPopup .coin-options > div:not(.coin-search-empty):focus,
#depositPopup .coin-options > div:not(.coin-search-empty):focus-visible,
#withdrawPopup .coin-options > div:not(.coin-search-empty):active,
#withdrawPopup .coin-options > div:not(.coin-search-empty):focus,
#withdrawPopup .coin-options > div:not(.coin-search-empty):focus-visible {
  background: #17263b !important;
  background-color: #17263b !important;
  color: #ffffff !important;
  outline: none !important;
  box-shadow: none !important;
}

#depositPopup .coin-selector .mycex-selected,
#withdrawPopup .coin-selector .mycex-selected {
  background: #17263b !important;
  background-color: #17263b !important;
  color: #e5edf9 !important;
}

#depositPopup .coin-options .coin-search-empty,
#withdrawPopup .coin-options .coin-search-empty {
  background: transparent !important;
  color: #94a3b8 !important;
}

/* Remove all colored backgrounds from coin selectors */
#depositPopup .coin-options,
#depositPopup .coin-options *,
#withdrawPopup .coin-options,
#withdrawPopup .coin-options *,
#depositPopup .coin-options::before,
#depositPopup .coin-options::after,
#withdrawPopup .coin-options::before,
#withdrawPopup .coin-options::after,
#depositPopup .coin-options *::before,
#depositPopup .coin-options *::after,
#withdrawPopup .coin-options *::before,
#withdrawPopup .coin-options *::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

#depositPopup .coin-options *,
#withdrawPopup .coin-options * {
  -webkit-user-select: none !important;
  user-select: none !important;
}

#depositPopup .coin-options > div,
#withdrawPopup .coin-options > div {
  border-color: transparent !important;
}

#depositPopup .coin-options > div:active,
#depositPopup .coin-options > div:focus,
#depositPopup .coin-options > div:focus-visible,
#depositPopup .coin-options > div:hover,
#depositPopup .coin-options > div.selected,
#depositPopup .coin-options > div.active,
#withdrawPopup .coin-options > div:active,
#withdrawPopup .coin-options > div:focus,
#withdrawPopup .coin-options > div:focus-visible,
#withdrawPopup .coin-options > div:hover,
#withdrawPopup .coin-options > div.selected,
#withdrawPopup .coin-options > div.active {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
}

#depositPopup .coin-selected,
#withdrawPopup .coin-selected,
#depositPopup .coin-selected:hover,
#withdrawPopup .coin-selected:hover,
#depositPopup .coin-selected:active,
#withdrawPopup .coin-selected:active {
  border-color: transparent !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

#depositPopup .coin-options,
#withdrawPopup .coin-options,
#depositPopup .coin-options > div,
#withdrawPopup .coin-options > div,
#depositPopup .coin-options > div:hover,
#withdrawPopup .coin-options > div:hover,
#depositPopup .coin-options > div:active,
#withdrawPopup .coin-options > div:active,
#depositPopup .coin-options > div:focus,
#withdrawPopup .coin-options > div:focus {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

#depositPopup .coin-options *,
#withdrawPopup .coin-options * {
  background-color: transparent !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

#depositPopup .coin-selector,
#withdrawPopup .coin-selector,
#depositPopup .coin-selector *,
#withdrawPopup .coin-selector *,
#depositPopup .coin-selector::before,
#depositPopup .coin-selector::after,
#withdrawPopup .coin-selector::before,
#withdrawPopup .coin-selector::after,
#depositPopup .coin-selector *::before,
#depositPopup .coin-selector *::after,
#withdrawPopup .coin-selector *::before,
#withdrawPopup .coin-selector *::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#depositPopup .coin-selector,
#withdrawPopup .coin-selector {
  border-color: transparent !important;
}

#depositPopup .coin-selector .coin-selected,
#withdrawPopup .coin-selector .coin-selected,
#depositPopup .coin-selector .mycex-search-button,
#withdrawPopup .coin-selector .mycex-search-button,
#depositPopup .coin-selector .coin-options,
#withdrawPopup .coin-selector .coin-options,
#depositPopup .coin-selector .coin-options > div,
#withdrawPopup .coin-selector .coin-options > div {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

#depositPopup .coin-selector *,
#withdrawPopup .coin-selector * {
  -webkit-tap-highlight-color: transparent !important;
}

#depositPopup .coin-selector .coin-options,
#withdrawPopup .coin-selector .coin-options {
  overflow-y: auto !important;
  max-height: 42vh !important;
}

#depositPopup .demo-popup-box .coin-selector .mycex-selected,
#withdrawPopup .demo-popup-box .coin-selector .mycex-selected {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 15px !important;
  border: 1px solid #344965 !important;
  border-radius: 13px !important;
  background: #0b1527 !important;
  background-color: #0b1527 !important;
  color: #f1f6ff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* VOPZA_SHARED_POPUP_FINAL_OVERRIDES_V2: defeat page-level legacy dashboard rules */
html body #depositPopup.mycex-prototype-popup,
html body #withdrawPopup.mycex-prototype-popup {
  position: fixed !important;
  inset: 0 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  background: rgba(3,8,19,.82) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
html body #depositPopup.mycex-prototype-popup .mycex-prototype-box,
html body #withdrawPopup.mycex-prototype-popup .mycex-prototype-box {
  width: min(100%,490px) !important;
  max-height: 90vh !important;
  padding: 27px !important;
  border: 1px solid #293d5d !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg,#17243a,#101a2c 65%,#0d1728) !important;
  color: #edf4ff !important;
}
html body #depositPopup.mycex-prototype-popup button.mycex-confirm,
html body #withdrawPopup.mycex-prototype-popup button.mycex-confirm {
  background: linear-gradient(105deg,#0879f9,#2868ed) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 7px 18px rgba(20,105,245,.22) !important;
}
html body #depositPopup.mycex-prototype-popup button.mycex-cancel,
html body #withdrawPopup.mycex-prototype-popup button.mycex-cancel {
  background: #1b2a40 !important;
  color: #d3dfef !important;
  border: 1px solid #354965 !important;
}
@media(max-width:600px) {
  html body #depositPopup.mycex-prototype-popup,
  html body #withdrawPopup.mycex-prototype-popup {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  html body #depositPopup.mycex-prototype-popup .mycex-prototype-box,
  html body #withdrawPopup.mycex-prototype-popup .mycex-prototype-box {
    width: 100% !important;
    max-height: 88dvh !important;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom)) !important;
    border-radius: 23px 23px 0 0 !important;
    border-bottom: 0 !important;
  }
}


/* VOPZA_SHARED_POPUP_MOBILE_SHEET_V3: keep phone/tablet layouts identical on both pages */
@media (max-width: 900px) {
  html body #depositPopup.mycex-prototype-popup,
  html body #withdrawPopup.mycex-prototype-popup {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  html body #depositPopup.mycex-prototype-popup .mycex-prototype-box,
  html body #withdrawPopup.mycex-prototype-popup .mycex-prototype-box {
    width: 100% !important;
    max-width: none !important;
    max-height: 88dvh !important;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom)) !important;
    border-radius: 23px 23px 0 0 !important;
    border-bottom: 0 !important;
  }
}
