/* Solada cashier UI layer
 * Skin for the cashier modal built by public/js/cashier-widget-v2.js and the
 * deposit / withdrawal toasts + notification panel from sd-notify.js.
 * Loaded at the end of <body>, so it wins over the runtime <style> tags in <head>.
 * Visual only: no rule here changes what a button does or which tokens are shown.
 */

/* fonts (already declared by solada-layout.js on the SPA; repeated for standalone game pages) */
@font-face{font-family:"Sora";font-style:normal;font-weight:100 800;font-display:swap;src:url("/fonts/solada/Sora.woff2") format("woff2")}
@font-face{font-family:"Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url("/fonts/solada/Geist.woff2") format("woff2")}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:100 900;font-display:swap;src:url("/fonts/solada/GeistMono.woff2") format("woff2")}

/* ------------------------- tokens ------------------------- */
#cashier-modal {
  --cw-pad: 24px;
  --cw-radius: 24px;
  --cw-card: var(--sd-surface, #14141f);
  --cw-card2: var(--sd-surface2, #1a1a28);
  --cw-card3: var(--sd-surface3, #222234);
  --cw-line: var(--sd-line, rgba(255, 255, 255, .07));
  --cw-line2: var(--sd-line2, rgba(255, 255, 255, .12));
  --cw-text: var(--sd-text, #f4f3fa);
  --cw-muted: var(--sd-muted, #8b8ca3);
  --cw-dim: var(--sd-dim, #6f7184);
  --cw-grad: var(--sd-grad, linear-gradient(90deg, #9945ff 0%, #4a9fe0 55%, #14f195 100%));
  --cw-cta: var(--sd-cta, linear-gradient(135deg, #9945ff 0%, #6d5cff 100%));
  --cw-font: var(--sd-font, "Geist", system-ui, sans-serif);
  --cw-display: var(--sd-display, "Sora", "Geist", system-ui, sans-serif);
  --cw-mono: var(--sd-mono, "Geist Mono", ui-monospace, Menlo, monospace);
  --cw-dots: radial-gradient(rgba(255, 255, 255, .075) 1px, transparent 1.2px);
}

/* ------------------------- overlay + shell ------------------------- */
#cashier-modal.cashier-modal-overlay {
  background: rgba(6, 6, 14, .74);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  padding: 20px 16px;
}

#cashier-modal .cashier-modal {
  max-width: 560px;
  max-height: min(92vh, 900px);
  background:
    radial-gradient(120% 48% at 0% 0%, rgba(153, 69, 255, .17) 0%, rgba(153, 69, 255, 0) 60%),
    radial-gradient(80% 36% at 100% 0%, rgba(74, 159, 224, .11) 0%, rgba(74, 159, 224, 0) 62%),
    var(--sd-bg2, #0f0f1a);
  border: 1px solid var(--cw-line2);
  border-radius: var(--cw-radius);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .62), 0 1px 0 rgba(255, 255, 255, .06) inset;
  color: var(--cw-text);
  font-family: var(--cw-font);
  scrollbar-width: none;
  overscroll-behavior: contain;
}

#cashier-modal .cashier-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(153, 69, 255, 0) 0%, #9945ff 22%, #4a9fe0 55%, #14f195 80%, rgba(20, 241, 149, 0) 100%);
  opacity: .9;
  pointer-events: none;
}

#cashier-modal .cashier-modal,
#cashier-modal .cashier-modal button,
#cashier-modal .cashier-modal input {
  font-family: var(--cw-font);
}

/* ------------------------- header ------------------------- */
#cashier-modal .modal-header {
  padding: 20px var(--cw-pad) 6px;
  border-bottom: 0;
  background: transparent;
}

#cashier-modal .modal-title {
  gap: 12px;
  font-size: 18px;
  letter-spacing: 0;
}

#cashier-modal .sd-cash-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 25%, rgba(153, 69, 255, .22), rgba(153, 69, 255, 0) 70%), var(--cw-card);
  border: 1px solid var(--cw-line2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

#cashier-modal .sd-cash-mark img {
  width: 28px;
  height: 28px;
  display: block;
}

#cashier-modal .sd-cash-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#cashier-modal .sd-cash-title {
  font-family: var(--cw-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.15;
  color: var(--cw-text);
}

#cashier-modal .sd-cash-sub {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--cw-muted);
  line-height: 1.2;
}

#cashier-modal .modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--cw-card);
  border: 1px solid var(--cw-line);
  color: var(--cw-muted);
  font-size: 22px;
  line-height: 1;
}

#cashier-modal .modal-close:hover {
  background: var(--cw-card2);
  border-color: var(--cw-line2);
  color: var(--cw-text);
  transform: none;
}

/* ------------------------- balance hero ------------------------- */
#cashier-modal .user-balance-display {
  position: relative;
  margin: 14px var(--cw-pad) 0;
  padding: 16px 18px 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label icon" "amount icon";
  align-items: center;
  row-gap: 4px;
  border: 1px solid var(--cw-line2);
  border-radius: 18px;
  background:
    var(--cw-dots) 0 0 / 14px 14px,
    radial-gradient(90% 140% at 100% 0%, rgba(20, 241, 149, .10) 0%, rgba(20, 241, 149, 0) 55%),
    radial-gradient(90% 140% at 0% 100%, rgba(153, 69, 255, .16) 0%, rgba(153, 69, 255, 0) 60%),
    var(--cw-card);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: hidden;
}

#cashier-modal .user-balance-display::after {
  content: "";
  grid-area: icon;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--cw-line2);
  background:
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9b6ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4'/%3E%3C/svg%3E") center / 22px 22px no-repeat,
    rgba(255, 255, 255, .03);
}

#cashier-modal .balance-label {
  grid-area: label;
  gap: 8px;
  color: var(--cw-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
}

#cashier-modal .balance-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sd-green, #14f195);
  box-shadow: 0 0 0 3px rgba(20, 241, 149, .14);
}

#cashier-modal .balance-amount {
  grid-area: amount;
  font-family: var(--cw-mono);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--cw-text);
  color: var(--cw-text);
  text-shadow: none;
  font-variant-numeric: tabular-nums;
}

/* ------------------------- segmented deposit / withdraw switch ------------------------- */
#cashier-modal .modal-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 14px var(--cw-pad) 0;
  padding: 4px;
  background: var(--sd-bg, #0b0b14);
  border: 1px solid var(--cw-line);
  border-radius: 14px;
}

#cashier-modal .tab-btn {
  position: relative;
  z-index: 1;
  padding: 11px 14px;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--cw-muted);
  font-family: var(--cw-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  transition: color .2s ease, background .2s ease;
}

#cashier-modal .tab-btn::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: var(--cw-tab-icon) center / contain no-repeat;
  mask: var(--cw-tab-icon) center / contain no-repeat;
}

#cashier-modal #tab-deposit {
  --cw-tab-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E");
}

#cashier-modal #tab-withdraw {
  --cw-tab-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V9'/%3E%3Cpath d='M7 14l5-5 5 5'/%3E%3Cpath d='M5 4h14'/%3E%3C/svg%3E");
}

#cashier-modal .tab-btn:hover {
  background: transparent;
  color: var(--cw-text);
}

#cashier-modal .tab-btn.active {
  color: var(--cw-text);
  background: var(--cw-card3);
  border-color: var(--cw-line2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .06) inset;
}

#cashier-modal .tab-btn.active::before {
  background: var(--cw-grad);
}

/* sliding pill where :has() is available */
@supports selector(:has(*)) {
  #cashier-modal .modal-tabs::before,
  #cashier-modal .modal-tabs::after {
    content: "";
    position: absolute;
    pointer-events: none;
    transition: left .28s cubic-bezier(.2, .8, .2, 1);
  }

  #cashier-modal .modal-tabs::before {
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 10px;
    background: var(--cw-card3);
    border: 1px solid var(--cw-line2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .06) inset;
  }

  #cashier-modal .modal-tabs::after {
    bottom: 5px;
    left: calc(15% + 2.8px);
    width: calc(20% - 1.6px);
    height: 2px;
    border-radius: 2px;
    background: var(--cw-grad);
    z-index: 2;
  }

  #cashier-modal .modal-tabs:has(#tab-withdraw.active)::before {
    left: 50%;
  }

  #cashier-modal .modal-tabs:has(#tab-withdraw.active)::after {
    left: calc(65% - 1.2px);
  }

  #cashier-modal .tab-btn.active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
}

/* ------------------------- alerts / loading ------------------------- */
#cashier-modal #widget-alert {
  padding: 0 var(--cw-pad);
}

#cashier-modal #widget-alert:not(:empty) {
  margin-top: 14px;
}

#cashier-modal .alert {
  margin-bottom: 0;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
}

#cashier-modal .alert-success {
  background: rgba(20, 241, 149, .07);
  border: 1px solid rgba(20, 241, 149, .22);
  color: var(--sd-mint, #6ee7b7);
}

#cashier-modal .alert-error {
  background: rgba(255, 107, 122, .08);
  border: 1px solid rgba(255, 107, 122, .26);
  color: var(--sd-red, #ff6b7a);
}

#cashier-modal .alert-warning,
#cashier-modal .alert-info {
  background: rgba(255, 212, 121, .07);
  border: 1px solid rgba(255, 212, 121, .24);
  color: var(--sd-gold, #ffd479);
}

/* the modal scrolls, so pin the busy overlay to the viewport instead of the scroll origin */
#cashier-modal .modal-loading {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: rgba(11, 11, 20, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border-radius: 0;
}

#cashier-modal .spinner {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(153, 69, 255, 0), #9945ff 45%, #4a9fe0 75%, #14f195);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}

/* ------------------------- tab body ------------------------- */
#cashier-modal .tab-content {
  padding: 18px var(--cw-pad) 26px;
}

/* step headings: "Choose a currency to deposit" etc. */
#cashier-modal .select-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--cw-text);
  font-family: var(--cw-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  text-transform: none;
}

#cashier-modal .select-header::after {
  content: "Prices in USD";
  margin-left: auto;
  font-family: var(--cw-font);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--cw-dim);
}

/* ------------------------- deposit match card ------------------------- */
#cashier-modal #deposit-bonus-banner.hidden {
  display: none;
}

#cashier-modal .sd-bonus {
  margin-bottom: 18px;
}

#cashier-modal .sd-bonus__card {
  position: relative;
  padding: 14px 16px 13px;
  border-radius: 18px;
  border: 1px solid rgba(167, 123, 255, .22);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(20, 241, 149, .09) 0%, rgba(20, 241, 149, 0) 60%),
    linear-gradient(135deg, rgba(153, 69, 255, .12) 0%, rgba(153, 69, 255, .03) 55%, rgba(74, 159, 224, .05) 100%),
    var(--cw-card);
  overflow: hidden;
}

#cashier-modal .sd-bonus__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #9945ff 0%, #4a9fe0 55%, #14f195 100%);
}

#cashier-modal .sd-bonus__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#cashier-modal .sd-bonus__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(167, 123, 255, .14);
  border: 1px solid rgba(167, 123, 255, .28);
  color: #d6c6ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}

#cashier-modal .sd-bonus__link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--cw-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}

#cashier-modal .sd-bonus__link:hover {
  color: var(--cw-text);
}

#cashier-modal .sd-bonus__main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

#cashier-modal .sd-bonus__figure {
  flex: 0 0 auto;
  font-family: var(--cw-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--cw-text);
  padding-right: 14px;
  border-right: 1px solid var(--cw-line2);
}

#cashier-modal .sd-bonus__figure small {
  font-size: 20px;
  font-weight: 600;
  margin-left: 1px;
  color: var(--sd-violet, #a77bff);
}

#cashier-modal .sd-bonus__copy {
  min-width: 0;
}

#cashier-modal .sd-bonus__title {
  font-family: var(--cw-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cw-text);
}

#cashier-modal .sd-bonus__sub {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--cw-muted);
}

#cashier-modal .sd-bonus__title b,
#cashier-modal .sd-bonus__sub b {
  font-family: var(--cw-mono);
  font-weight: 600;
  color: var(--cw-text);
}

#cashier-modal .sd-bonus__terms {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--cw-line2);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--cw-muted);
}

/* compact strip once a deposit view is open */
#cashier-modal #content-deposit:has(#deposit-token-select.hidden) .sd-bonus {
  margin-bottom: 14px;
}

#cashier-modal #content-deposit:has(#deposit-token-select.hidden) .sd-bonus__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 11px 14px 10px 16px;
}

#cashier-modal #content-deposit:has(#deposit-token-select.hidden) .sd-bonus__card::before {
  top: 10px;
  bottom: 10px;
}

#cashier-modal #content-deposit:has(#deposit-token-select.hidden) .sd-bonus__top {
  display: contents;
}

#cashier-modal #content-deposit:has(#deposit-token-select.hidden) .sd-bonus__badge {
  display: none;
}

#cashier-modal #content-deposit:has(#deposit-token-select.hidden) .sd-bonus__link {
  grid-column: 2;
  grid-row: 1;
}

#cashier-modal #content-deposit:has(#deposit-token-select.hidden) .sd-bonus__main {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
  gap: 12px;
}

#cashier-modal #content-deposit:has(#deposit-token-select.hidden) .sd-bonus__figure {
  font-size: 24px;
  padding-right: 12px;
}

#cashier-modal #content-deposit:has(#deposit-token-select.hidden) .sd-bonus__figure small {
  font-size: 15px;
}

#cashier-modal #content-deposit:has(#deposit-token-select.hidden) .sd-bonus__title {
  font-size: 13.5px;
}

#cashier-modal #content-deposit:has(#deposit-token-select.hidden) .sd-bonus__sub {
  margin-top: 1px;
  font-size: 12px;
}

#cashier-modal #content-deposit:has(#deposit-token-select.hidden) .sd-bonus__terms {
  grid-column: 1 / -1;
  margin-top: 9px;
  padding-top: 8px;
  font-size: 11px;
}

/* ------------------------- token grid ------------------------- */
#cashier-modal .token-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#cashier-modal .token-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 11px;
  row-gap: 1px;
  align-items: center;
  text-align: left;
  padding: 12px 12px 12px 12px;
  min-height: 70px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)), var(--cw-card);
  border: 1px solid var(--cw-line);
  border-radius: 16px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* gradient ring, revealed on hover */
#cashier-modal .token-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: var(--cw-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

#cashier-modal .token-card:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(153, 69, 255, .08), rgba(153, 69, 255, 0)), var(--cw-card2);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 24px rgba(153, 69, 255, .14);
}

#cashier-modal .token-card:hover::before {
  opacity: 1;
}

#cashier-modal .token-card .token-icon-wrapper {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03) 70%);
  border: 1px solid var(--cw-line2);
  overflow: hidden;
}

#cashier-modal .token-card .token-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}

#cashier-modal .token-card .token-symbol {
  grid-column: 2;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--cw-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--cw-text);
}

#cashier-modal .token-card .token-price {
  grid-column: 2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--cw-mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--cw-muted);
}

/* network badge */
#cashier-modal .token-card::after {
  grid-column: 2;
  justify-self: start;
  margin-top: 3px;
  padding: 1px 7px 1px 15px;
  border-radius: 999px;
  border: 1px solid var(--cw-line);
  background:
    radial-gradient(circle at 7px 50%, var(--cw-net, #8b8ca3) 0 2.6px, transparent 3.2px) no-repeat,
    rgba(255, 255, 255, .025);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.5;
  text-transform: none;
  color: var(--cw-muted);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  content: "Crypto";
}

#cashier-modal .token-card[onclick*="'bitcoin'"]::after { content: "Bitcoin"; --cw-net: #f7931a; }
#cashier-modal .token-card[onclick*="'ethereum'"]::after { content: "Ethereum"; --cw-net: #8c9ef5; }
#cashier-modal .token-card[onclick*="'robinhood'"]::after { content: "Robinhood"; --cw-net: #ccff00; }
#cashier-modal .token-card[onclick*="'solana'"]::after,
#cashier-modal .token-card[onclick*="'ansem'"]::after { content: "Solana"; --cw-net: #14f195; }
#cashier-modal .token-card[onclick*="'cardano'"]::after,
#cashier-modal .token-card[onclick*="'night'"]::after,
#cashier-modal .token-card[onclick*="'usdm'"]::after,
#cashier-modal .token-card[onclick*="'snek'"]::after,
#cashier-modal .token-card[onclick*="'babysnek'"]::after,
#cashier-modal .token-card[onclick*="'nike'"]::after,
#cashier-modal .token-card[onclick*="'perp'"]::after,
#cashier-modal .token-card[onclick*="'boo'"]::after,
#cashier-modal .token-card[onclick*="'strike'"]::after,
#cashier-modal .token-card[onclick*="'hosky'"]::after,
#cashier-modal .token-card[onclick*="'ascend'"]::after,
#cashier-modal .token-card[onclick*="'dong'"]::after,
#cashier-modal .token-card[onclick*="'qsnek'"]::after,
#cashier-modal .token-card[onclick*="'numb'"]::after,
#cashier-modal .token-card[onclick*="'blue'"]::after { content: "Cardano"; --cw-net: #4a9fe0; }
#cashier-modal .token-card[onclick*="'tether'"]::after,
#cashier-modal .token-card[onclick*="'usdc'"]::after { content: "Multi-chain"; --cw-net: #a77bff; }
#cashier-modal .token-card[onclick*="'litecoin'"]::after { content: "Litecoin"; --cw-net: #a5b4cf; }
#cashier-modal .token-card[onclick*="'ripple'"]::after { content: "XRP Ledger"; --cw-net: #e6e8ee; }
#cashier-modal .token-card[onclick*="'tron'"]::after { content: "Tron"; --cw-net: #ff4d5e; }
#cashier-modal .token-card[onclick*="'bsc'"]::after { content: "BNB Chain"; --cw-net: #f3ba2f; }
#cashier-modal .token-card:not([onclick])::after { content: "Soon"; }

/* the Cardano logo is dark blue: give it a light backdrop so it reads on dark */
#cashier-modal .token-card[onclick*="'cardano'"] .token-icon-wrapper,
#cashier-modal .selected-token .token-badge .token-icon-img[src*="cardano-ada"] {
  background: radial-gradient(circle at 35% 30%, #ffffff, #dfe6f6 75%);
  border-color: rgba(255, 255, 255, .4);
}

/* show more / less */
#cashier-modal .token-grid-toggle {
  min-height: 44px;
  margin-top: 2px;
  gap: 9px;
  background: transparent;
  border: 1px dashed var(--cw-line2);
  border-radius: 14px;
  color: var(--cw-muted);
  font-family: var(--cw-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

#cashier-modal .token-grid-toggle:hover {
  background: rgba(255, 255, 255, .03);
  border-color: rgba(167, 123, 255, .45);
  color: var(--cw-text);
}

#cashier-modal .token-grid-toggle-icon {
  width: 22px;
  height: 22px;
  background: var(--cw-card3);
  border: 1px solid var(--cw-line2);
  color: var(--cw-text);
  font-size: 15px;
}

#cashier-modal .token-grid-toggle-count {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--cw-card2);
  border: 1px solid var(--cw-line);
  font-family: var(--cw-mono);
  font-size: 11px;
  color: var(--cw-muted);
}

/* ------------------------- selected currency header ------------------------- */
#cashier-modal .selected-token {
  padding: 12px 12px 12px 14px;
  margin-bottom: 12px;
  background:
    var(--cw-dots) 0 0 / 14px 14px,
    radial-gradient(80% 160% at 0% 50%, rgba(153, 69, 255, .12), rgba(153, 69, 255, 0) 60%),
    var(--cw-card);
  border: 1px solid var(--cw-line2);
  border-radius: 18px;
}

#cashier-modal .selected-token:hover {
  background:
    var(--cw-dots) 0 0 / 14px 14px,
    radial-gradient(80% 160% at 0% 50%, rgba(153, 69, 255, .16), rgba(153, 69, 255, 0) 60%),
    var(--cw-card2);
  border-color: rgba(167, 123, 255, .35);
}

#cashier-modal .token-badge {
  gap: 12px;
}

#cashier-modal .token-badge .token-icon-img {
  width: 44px;
  height: 44px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 70%);
  border: 1px solid var(--cw-line2);
}

#cashier-modal .token-badge .token-name {
  display: flex;
  flex-direction: column;
  font-family: var(--cw-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--cw-text);
}

#cashier-modal .token-badge .token-name::before {
  content: "You deposit";
  margin-bottom: 2px;
  font-family: var(--cw-font);
  font-size: 11px;
  font-weight: 500;
  color: var(--cw-muted);
}

#cashier-modal #content-withdraw .token-badge .token-name::before {
  content: "You withdraw";
}

#cashier-modal .change-link {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--cw-card2);
  border: 1px solid var(--cw-line2);
  color: var(--cw-text);
  font-size: 12px;
  font-weight: 600;
}

#cashier-modal .selected-token:hover .change-link {
  border-color: rgba(167, 123, 255, .45);
}

/* price chip */
#cashier-modal .price-display {
  padding: 10px 14px;
  margin-bottom: 16px;
  background: transparent;
  border: 1px dashed var(--cw-line2);
  border-radius: 12px;
}

#cashier-modal .price-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cw-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

#cashier-modal .price-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sd-violet, #a77bff);
  box-shadow: 0 0 0 3px rgba(167, 123, 255, .16);
}

#cashier-modal .price-value {
  color: var(--cw-text);
  font-family: var(--cw-mono);
  font-size: 13.5px;
  font-weight: 600;
}

/* ------------------------- form fields ------------------------- */
#cashier-modal .form-group {
  margin-bottom: 16px;
}

#cashier-modal .form-group label {
  margin-bottom: 8px;
  color: var(--cw-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
}

#cashier-modal .input-group input {
  height: 52px;
  padding: 0 84px 0 16px;
  background: var(--sd-bg, #0b0b14);
  border: 1px solid var(--cw-line2);
  border-radius: 14px;
  color: var(--cw-text);
  font-family: var(--cw-mono);
  font-size: 16px;
  font-weight: 500;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

#cashier-modal .input-group input::placeholder {
  color: rgba(255, 255, 255, .22);
}

#cashier-modal .input-group input:focus {
  border-color: rgba(153, 69, 255, .7);
  background: var(--sd-bg, #0b0b14);
  box-shadow: 0 0 0 4px rgba(153, 69, 255, .16);
}

#cashier-modal .input-group.output input {
  color: var(--sd-mint, #6ee7b7);
  background: linear-gradient(90deg, rgba(20, 241, 149, .06), rgba(20, 241, 149, .01));
  border-color: rgba(20, 241, 149, .18);
  border-style: dashed;
}

#cashier-modal #withdraw-address {
  padding-right: 16px;
  font-size: 13.5px;
}

#cashier-modal .input-suffix {
  right: 10px;
  padding: 5px 9px;
  border-radius: 9px;
  background: var(--cw-card2);
  border: 1px solid var(--cw-line);
  color: var(--cw-muted);
  font-family: var(--cw-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}

#cashier-modal .input-group.output .input-suffix {
  color: var(--sd-mint, #6ee7b7);
  border-color: rgba(20, 241, 149, .18);
  background: rgba(20, 241, 149, .06);
}

#cashier-modal .withdraw-handle-info {
  margin-top: 8px;
  font-size: 12px;
  color: var(--cw-muted);
}

/* quick amount chips inside the wallet-connect deposit views (inline styled in JS) */
#cashier-modal .form-group > div[style*="grid-template-columns"] {
  gap: 8px !important;
  margin-top: 10px !important;
}

#cashier-modal .form-group > div[style*="grid-template-columns"] > button {
  height: 40px !important;
  padding: 0 10px !important;
  background: var(--cw-card) !important;
  border: 1px solid var(--cw-line2) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--cw-text) !important;
  font-family: var(--cw-mono) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  transition: border-color .15s ease, background .15s ease !important;
}

#cashier-modal .form-group > div[style*="grid-template-columns"] > button:hover {
  background: var(--cw-card2) !important;
  border-color: rgba(167, 123, 255, .5) !important;
}

/* fee + "no wallet detected" notices (inline amber in JS) */
#cashier-modal .form-view > div[style*="245, 158, 11"],
#cashier-modal [id$="-wallet-grid"] > div[style*="245, 158, 11"],
#cashier-modal [id$="-wallet-grid"] > div[style*="grid-column"] {
  position: relative;
  padding: 11px 14px 11px 40px !important;
  margin: 0 0 16px !important;
  background: rgba(255, 212, 121, .05) !important;
  border: 1px solid rgba(255, 212, 121, .2) !important;
  border-radius: 12px !important;
  text-align: left !important;
}

#cashier-modal [id$="-wallet-grid"] > div[style*="grid-column"] {
  margin: 4px 0 0 !important;
}

#cashier-modal .form-view > div[style*="245, 158, 11"]::before,
#cashier-modal [id$="-wallet-grid"] > div[style*="grid-column"]::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd479' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 7.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

#cashier-modal .form-view > div[style*="245, 158, 11"] p,
#cashier-modal [id$="-wallet-grid"] > div[style*="grid-column"] p {
  text-align: left !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

#cashier-modal .form-view > div[style*="245, 158, 11"] p:first-child,
#cashier-modal [id$="-wallet-grid"] > div[style*="grid-column"] p:first-child {
  color: var(--sd-gold, #ffd479) !important;
  font-weight: 600 !important;
}

#cashier-modal [id$="-wallet-grid"] > div[style*="grid-column"] p + p {
  margin-top: 2px !important;
  color: var(--cw-muted) !important;
}

/* ------------------------- wallet connect ------------------------- */
#cashier-modal [id$="-wallet-section"] > label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px !important;
  color: var(--cw-text) !important;
  font-family: var(--cw-font) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
}

#cashier-modal [id$="-wallet-section"] > label::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 8px;
  background:
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9b6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 17H7A5 5 0 0 1 7 7h2'/%3E%3Cpath d='M15 7h2a5 5 0 1 1 0 10h-2'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E") center / 13px 13px no-repeat,
    rgba(167, 123, 255, .12);
  border: 1px solid rgba(167, 123, 255, .26);
}

#cashier-modal [id$="-wallet-grid"] {
  gap: 10px !important;
}

#cashier-modal .wallet-connect-btn {
  position: relative;
  gap: 6px;
  padding: 14px 10px 12px;
  background: var(--cw-card);
  border: 1px solid var(--cw-line2);
  border-radius: 16px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

#cashier-modal .wallet-connect-btn img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
}

#cashier-modal .wallet-connect-btn > span {
  font-family: var(--cw-font) !important;
}

#cashier-modal .wallet-connect-btn > span:first-of-type {
  font-size: 13px !important;
  color: var(--cw-text) !important;
}

#cashier-modal .wallet-connect-btn > span[style*="9px"] {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--cw-line);
  font-size: 10.5px !important;
  font-weight: 600;
  color: var(--cw-muted) !important;
}

#cashier-modal .wallet-connect-btn:not(.unavailable) > span[style*="9px"] {
  color: var(--sd-mint, #6ee7b7) !important;
  background: rgba(20, 241, 149, .06);
  border-color: rgba(20, 241, 149, .2);
}

#cashier-modal .wallet-connect-btn:hover:not(.unavailable) {
  transform: translateY(-1px);
  background: var(--cw-card2);
  border-color: rgba(167, 123, 255, .5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3), 0 0 20px rgba(153, 69, 255, .12);
}

#cashier-modal .wallet-connect-btn.unavailable {
  opacity: 1;
  border-style: solid;
  background: rgba(255, 255, 255, .015);
}

#cashier-modal .wallet-connect-btn.unavailable img {
  opacity: .7;
  filter: saturate(.7);
}

#cashier-modal .wallet-connect-btn.unavailable > span:first-of-type {
  color: var(--cw-muted) !important;
}

#cashier-modal .wallet-connect-btn.unavailable:hover {
  background: rgba(255, 212, 121, .04);
  border-color: rgba(255, 212, 121, .3);
}

#cashier-modal .wallet-connect-btn.connected {
  background: linear-gradient(180deg, rgba(20, 241, 149, .08), rgba(20, 241, 149, .02)), var(--cw-card);
  border-color: rgba(20, 241, 149, .45);
}

/* connected wallet balance card */
#cashier-modal [id$="-connected-info"] > div {
  padding: 18px 20px !important;
  background:
    var(--cw-dots) 0 0 / 14px 14px,
    radial-gradient(90% 140% at 100% 0%, rgba(20, 241, 149, .10), rgba(20, 241, 149, 0) 55%),
    var(--cw-card) !important;
  border: 1px solid var(--cw-line2) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

#cashier-modal [id$="-connected-info"] > div > div[style*="position: absolute"] {
  display: none !important;
}

#cashier-modal [id$="-connected-info"] [id$="wallet-name"] {
  font-family: var(--cw-font) !important;
  font-size: 11px !important;
  letter-spacing: .1em !important;
  color: var(--sd-mint, #6ee7b7) !important;
}

#cashier-modal [id$="-connected-info"] button[onclick*="disconnect"] {
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  border: 1px solid var(--cw-line2) !important;
  background: var(--cw-card2) !important;
  color: var(--cw-muted) !important;
  font-size: 10.5px !important;
  letter-spacing: .06em !important;
}

#cashier-modal [id$="-connected-info"] button[onclick*="disconnect"]:hover {
  color: var(--cw-text) !important;
  border-color: rgba(255, 107, 122, .45) !important;
}

#cashier-modal [id$="-connected-info"] span[id$="wallet-balance"] {
  font-family: var(--cw-mono) !important;
  font-size: 30px !important;
  font-weight: 600 !important;
  letter-spacing: -.02em !important;
  background: none !important;
  -webkit-text-fill-color: var(--cw-text) !important;
  color: var(--cw-text) !important;
}

#cashier-modal [id$="-connected-info"] div[style*="align-items: baseline"] > span + span {
  font-family: var(--cw-mono) !important;
  color: var(--cw-muted) !important;
}

#cashier-modal [id$="-connected-info"] div[style*="height: 1px"] {
  background: var(--cw-grad) !important;
  opacity: .5;
}

/* ------------------------- buttons ------------------------- */
#cashier-modal .action-btn {
  min-height: 52px;
  padding: 14px 20px;
  margin-top: 10px;
  border-radius: 14px;
  font-family: var(--cw-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}

#cashier-modal .btn-deposit,
#cashier-modal [id$="-deposit-btn"].btn-deposit {
  background: var(--cw-cta) !important;
  color: #fff !important;
  border: 0;
  box-shadow: 0 12px 30px rgba(153, 69, 255, .30), 0 1px 0 rgba(255, 255, 255, .18) inset;
}

#cashier-modal .btn-deposit:hover:not(:disabled) {
  background: var(--cw-cta) !important;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(153, 69, 255, .38), 0 1px 0 rgba(255, 255, 255, .2) inset;
}

#cashier-modal .btn-withdraw {
  background: linear-gradient(135deg, #14f195 0%, #10c9a4 100%);
  color: #04130c;
  box-shadow: 0 12px 30px rgba(20, 241, 149, .18), 0 1px 0 rgba(255, 255, 255, .3) inset;
}

#cashier-modal .btn-withdraw:hover:not(:disabled) {
  background: linear-gradient(135deg, #14f195 0%, #10c9a4 100%);
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(20, 241, 149, .24);
}

#cashier-modal .btn-confirm {
  background: var(--cw-cta);
  color: #fff;
}

#cashier-modal .action-btn:disabled,
#cashier-modal [id$="-deposit-btn"].btn-deposit:disabled {
  opacity: 1;
  background: var(--cw-card2) !important;
  color: var(--cw-dim) !important;
  border: 1px solid var(--cw-line2);
  box-shadow: none;
  filter: none;
}

#cashier-modal .action-btn > span:first-child:not(:only-child) {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  font-size: 12px;
  line-height: 1;
}

#cashier-modal .action-btn:disabled > span:first-child:not(:only-child) {
  background: rgba(255, 255, 255, .06);
}

/* secondary buttons rendered with an inline translucent background */
#cashier-modal .action-btn[style*="rgba(255,255,255,0.1)"] {
  background: var(--cw-card2) !important;
  border: 1px solid var(--cw-line2);
  color: var(--cw-text);
}

#cashier-modal .note {
  margin-top: 14px !important;
  color: var(--cw-dim) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1.5;
  text-align: center;
}

/* ------------------------- network picker (USDT / USDC) ------------------------- */
#cashier-modal #network-select-view > div:first-child,
#cashier-modal #withdraw-network-select-view > div:first-child,
#cashier-modal #hd-deposit-view > div:first-child {
  padding: 0 0 14px !important;
  border-bottom: 0 !important;
}

#cashier-modal #network-select-view > div:first-child button,
#cashier-modal #withdraw-network-select-view > div:first-child button,
#cashier-modal #hd-deposit-view > div:first-child button {
  display: grid !important;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border-radius: 12px !important;
  background: var(--cw-card) !important;
  border: 1px solid var(--cw-line2) !important;
  color: var(--cw-text) !important;
}

#cashier-modal #network-select-view > div:first-child button:hover,
#cashier-modal #withdraw-network-select-view > div:first-child button:hover,
#cashier-modal #hd-deposit-view > div:first-child button:hover {
  border-color: rgba(167, 123, 255, .5) !important;
}

#cashier-modal #network-select-view > div:first-child > div,
#cashier-modal #withdraw-network-select-view > div:first-child > div,
#cashier-modal #hd-deposit-view > div:first-child > div {
  gap: 12px !important;
}

#cashier-modal #network-select-view > div:first-child span,
#cashier-modal #withdraw-network-select-view > div:first-child span,
#cashier-modal #hd-deposit-view > div:first-child span {
  font-family: var(--cw-display) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--cw-text) !important;
}

#cashier-modal #network-select-view > div:nth-child(2),
#cashier-modal #withdraw-network-select-view > div:nth-child(2),
#cashier-modal #hd-deposit-view > div:nth-child(2) {
  padding: 0 !important;
  counter-reset: sdstep;
}

/* numbered step labels */
#cashier-modal #network-select-view label,
#cashier-modal #withdraw-network-select-view label,
#cashier-modal #hd-deposit-view label {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px !important;
  color: var(--cw-text) !important;
  font-family: var(--cw-display) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

#cashier-modal #network-select-view label::before,
#cashier-modal #withdraw-network-select-view label::before,
#cashier-modal #hd-deposit-view label::before {
  counter-increment: sdstep;
  content: counter(sdstep);
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 8px;
  background: rgba(167, 123, 255, .12);
  border: 1px solid rgba(167, 123, 255, .3);
  color: #d6c6ff;
  font-family: var(--cw-mono);
  font-size: 11px;
  font-weight: 600;
}

/* currency rows (locked or clickable) */
#cashier-modal #network-select-view div[style*="margin-bottom: 16px"] > div[style*="display: flex"]:not([style*="flex-direction"]),
#cashier-modal #withdraw-network-select-view div[style*="margin-bottom: 16px"] > div[style*="display: flex"]:not([style*="flex-direction"]),
#cashier-modal #hd-deposit-view button[onclick*="backToTokenSelect"][style*="width: 100%"],
#cashier-modal #hd-deposit-view button[onclick*="switchNetwork"] {
  min-height: 60px;
  padding: 10px 14px !important;
  background: var(--cw-card) !important;
  border: 1px solid var(--cw-line2) !important;
  border-radius: 16px !important;
  gap: 12px !important;
}

#cashier-modal #hd-deposit-view button[onclick*="backToTokenSelect"][style*="width: 100%"]:hover,
#cashier-modal #hd-deposit-view button[onclick*="switchNetwork"]:hover {
  background: var(--cw-card2) !important;
  border-color: rgba(167, 123, 255, .45) !important;
}

#cashier-modal #network-select-view img,
#cashier-modal #withdraw-network-select-view img,
#cashier-modal #hd-deposit-view button img {
  width: 40px !important;
  height: 40px !important;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 70%);
  border: 1px solid var(--cw-line2);
}

#cashier-modal #network-select-view div[style*="font-weight: 600"],
#cashier-modal #withdraw-network-select-view div[style*="font-weight: 600"],
#cashier-modal #hd-deposit-view button div[style*="font-weight: 600"] {
  font-family: var(--cw-display) !important;
  font-size: 15px !important;
  color: var(--cw-text) !important;
}

#cashier-modal #hd-deposit-view button[onclick*="switchNetwork"] > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cw-display) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--cw-text) !important;
}

#cashier-modal #hd-deposit-view button[onclick*="switchNetwork"] > span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sd-violet, #a77bff);
  box-shadow: 0 0 0 3px rgba(167, 123, 255, .18);
}

#cashier-modal #hd-deposit-view button[onclick*="switchNetwork"] > div {
  padding: 5px 10px;
  border-radius: 9px;
  background: var(--cw-card2);
  border: 1px solid var(--cw-line2);
}

#cashier-modal #hd-deposit-view button[onclick*="switchNetwork"] > div span {
  color: var(--cw-text) !important;
  font-size: 11.5px !important;
  font-weight: 600;
}

#cashier-modal #hd-deposit-view button[onclick*="switchNetwork"] > div svg {
  stroke: var(--cw-muted);
}

/* network list */
#cashier-modal button[onclick*="selectNetwork"],
#cashier-modal button[onclick*="selectWithdrawNetwork"] {
  position: relative;
  min-height: 54px;
  padding: 0 16px 0 46px !important;
  background: var(--cw-card) !important;
  border: 1px solid var(--cw-line2) !important;
  border-radius: 14px !important;
  transition: border-color .15s ease, background .15s ease, transform .15s ease !important;
}

#cashier-modal button[onclick*="selectNetwork"]::before,
#cashier-modal button[onclick*="selectWithdrawNetwork"]::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 7px;
  background:
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9b6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='6' r='2.5'/%3E%3Ccircle cx='12' cy='18' r='2.5'/%3E%3Cpath d='M8.5 6h7M7.2 8.2l3.6 7.6M16.8 8.2l-3.6 7.6'/%3E%3C/svg%3E") center / 13px 13px no-repeat,
    rgba(167, 123, 255, .1);
  border: 1px solid rgba(167, 123, 255, .24);
}

#cashier-modal button[onclick*="selectNetwork"]:hover,
#cashier-modal button[onclick*="selectWithdrawNetwork"]:hover {
  background: var(--cw-card2) !important;
  border-color: rgba(167, 123, 255, .5) !important;
  transform: translateX(2px);
}

#cashier-modal button[onclick*="selectNetwork"] > span,
#cashier-modal button[onclick*="selectWithdrawNetwork"] > span {
  font-family: var(--cw-display) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--cw-text) !important;
}

#cashier-modal #network-select-view div[style*="flex-direction: column"],
#cashier-modal #withdraw-network-select-view div[style*="flex-direction: column"] {
  gap: 8px !important;
}

/* ------------------------- address + QR (BTC / ETH / LTC / XRP / TRX / BNB / USDT / USDC) ------------------------- */
#cashier-modal #hd-deposit-view > div:nth-child(2) > div[style*="margin-bottom: 20px"]:not([style*="justify-content"]) {
  margin-bottom: 14px !important;
}

#cashier-modal #hd-deposit-view div:has(> button[onclick*="copyAddress"]) {
  position: relative;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 12px 12px 12px 16px !important;
  background:
    var(--cw-dots) 0 0 / 12px 12px,
    var(--sd-bg, #0b0b14) !important;
  border: 1px dashed rgba(167, 123, 255, .38) !important;
  border-radius: 16px !important;
}

#cashier-modal #hd-deposit-view div:has(> button[onclick*="copyAddress"]) > span {
  align-self: center;
  font-family: var(--cw-mono) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: var(--cw-text) !important;
  letter-spacing: .01em;
}

#cashier-modal #hd-deposit-view button[onclick*="copyAddress"],
#cashier-modal .address-box .copy-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 78px;
  height: 38px;
  align-self: center;
  padding: 0 12px !important;
  border-radius: 11px !important;
  background: var(--cw-cta) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(153, 69, 255, .28);
  font-family: var(--cw-font);
  font-size: 12.5px;
  font-weight: 600;
}

#cashier-modal #hd-deposit-view button[onclick*="copyAddress"]::after,
#cashier-modal .address-box .copy-btn::after {
  content: "Copy";
}

#cashier-modal #hd-deposit-view button[onclick*="copyAddress"] svg,
#cashier-modal .address-box .copy-btn svg {
  width: 15px;
  height: 15px;
}

#cashier-modal #hd-deposit-view button[onclick*="copyAddress"]:hover,
#cashier-modal .address-box .copy-btn:hover {
  filter: brightness(1.1);
}

/* QR card */
#cashier-modal #hd-deposit-view div[style*="justify-content: center"]:has(#hd-qr-code) {
  margin-bottom: 16px !important;
}

#cashier-modal #hd-qr-code {
  position: relative;
  padding: 14px !important;
  background: #fff !important;
  border-radius: 20px !important;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .04), 0 0 0 7px var(--cw-line2), 0 18px 40px rgba(0, 0, 0, .45);
}

#cashier-modal #hd-qr-code img {
  display: block;
  border-radius: 6px;
}

/* "Auto-detected" divider + info */
#cashier-modal #hd-deposit-view div[style*="gap: 16px"]:has(> span) {
  margin-bottom: 10px !important;
}

#cashier-modal #hd-deposit-view div[style*="gap: 16px"]:has(> span) > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 241, 149, .22);
  background: rgba(20, 241, 149, .06);
  color: var(--sd-mint, #6ee7b7) !important;
  font-size: 11px !important;
  font-weight: 600;
}

#cashier-modal #hd-deposit-view div[style*="gap: 16px"]:has(> span) > span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sd-green, #14f195);
  box-shadow: 0 0 8px rgba(20, 241, 149, .7);
}

#cashier-modal #hd-deposit-view div[style*="gap: 16px"]:has(> span) > div {
  background: var(--cw-line2) !important;
}

#cashier-modal #hd-deposit-view > div:nth-child(2) > p {
  color: var(--cw-muted) !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
}

/* desktop: QR beside the address */
@media (min-width: 600px) {
  #cashier-modal #hd-deposit-view > div:nth-child(2):has(#hd-qr-code) {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    grid-auto-flow: row dense;
    column-gap: 18px;
    align-items: start;
  }

  #cashier-modal #hd-deposit-view > div:nth-child(2):has(#hd-qr-code) > * {
    grid-column: 1 / -1;
  }

  #cashier-modal #hd-deposit-view > div:nth-child(2):has(#hd-qr-code) > div:has(button[onclick*="copyAddress"]),
  #cashier-modal #hd-deposit-view > div:nth-child(2):has(#hd-qr-code) > div[style*="gap: 16px"],
  #cashier-modal #hd-deposit-view > div:nth-child(2):has(#hd-qr-code) > p {
    grid-column: 2;
  }

  #cashier-modal #hd-deposit-view > div:nth-child(2):has(#hd-qr-code) > div:has(#hd-qr-code) {
    grid-column: 1;
    grid-row: span 3;
    margin: 4px 0 0 !important;
  }

  #cashier-modal #hd-deposit-view > div:nth-child(2):has(#hd-qr-code) > div[style*="gap: 16px"] {
    margin-top: 6px;
  }

  #cashier-modal #hd-deposit-view > div:nth-child(2):has(#hd-qr-code) > p {
    text-align: left !important;
  }

  #cashier-modal #hd-deposit-view > div:nth-child(2):has(#hd-qr-code) > div:has(button[onclick*="copyAddress"]) > div:has(> button[onclick*="copyAddress"]) {
    flex-direction: column;
    align-items: stretch !important;
  }

  #cashier-modal #hd-deposit-view > div:nth-child(2):has(#hd-qr-code) > div:has(button[onclick*="copyAddress"]) > div:has(> button[onclick*="copyAddress"]) > span {
    align-self: stretch;
  }

  #cashier-modal #hd-deposit-view > div:nth-child(2):has(#hd-qr-code) > div:has(button[onclick*="copyAddress"]) button[onclick*="copyAddress"] {
    align-self: stretch;
    width: 100%;
  }
}

/* loading + error states in the address view */
#cashier-modal #hd-deposit-view div[style*="animation: spin"] {
  border-color: rgba(167, 123, 255, .18) !important;
  border-top-color: var(--sd-violet, #a77bff) !important;
}

#cashier-modal #hd-deposit-view button[onclick*="retryDeposit"] {
  padding: 10px 20px !important;
  border-radius: 12px !important;
  background: var(--cw-card2) !important;
  border: 1px solid var(--cw-line2) !important;
}

/* ------------------------- pending deposit (address + QR inside the generic form) ------------------------- */
#cashier-modal .qr-code-box {
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .04), 0 0 0 6px var(--cw-line2);
}

#cashier-modal .address-box {
  gap: 10px;
  padding: 10px 10px 10px 14px;
  background: var(--sd-bg, #0b0b14);
  border: 1px dashed rgba(167, 123, 255, .38);
  border-radius: 14px;
}

#cashier-modal .address-text {
  font-family: var(--cw-mono);
  font-size: 12px;
  color: var(--cw-text);
}

#cashier-modal .copy-btn.copied {
  background: rgba(20, 241, 149, .16) !important;
  color: var(--sd-mint, #6ee7b7) !important;
}

#cashier-modal .pending-text {
  color: var(--cw-muted);
  font-size: 12.5px;
}

#cashier-modal .pending-text strong {
  font-family: var(--cw-mono);
  color: var(--cw-text);
}

#cashier-modal .change-amount-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--cw-line2);
  color: var(--cw-muted);
  font-size: 11px;
}

#cashier-modal .deposit-warning-inline {
  font-size: 11px;
  color: var(--cw-dim);
}

#cashier-modal .deposit-warning-inline strong {
  color: var(--sd-gold, #ffd479);
}

#cashier-modal .deposit-auto-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--cw-muted);
}

/* confirming list */
#cashier-modal .pending-deposits-list {
  background: var(--cw-card);
  border: 1px solid var(--cw-line2);
  border-radius: 16px;
}

#cashier-modal .pending-list-title {
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--cw-text);
}

#cashier-modal .pending-count {
  background: rgba(167, 123, 255, .14);
  color: #d6c6ff;
  font-family: var(--cw-mono);
}

#cashier-modal .pending-dot.confirming {
  background: var(--sd-blue, #4a9fe0);
  box-shadow: 0 0 8px rgba(74, 159, 224, .6);
}

#cashier-modal .pending-item-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--cw-line);
}

#cashier-modal .pending-item-amount {
  font-family: var(--cw-mono);
  font-size: 12.5px;
}

#cashier-modal .confirming-spinner {
  border-color: rgba(167, 123, 255, .2);
  border-top-color: var(--sd-violet, #a77bff);
}

/* ------------------------- success / error screens (inline styled in JS) ------------------------- */
#cashier-modal .form-view > div[style*="text-align: center"] > div[style*="width: 72px"] {
  width: 64px !important;
  height: 64px !important;
  border-radius: 20px !important;
  font-size: 28px !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .4);
}

#cashier-modal .form-view > div[style*="text-align: center"] > div[style*="#22c55e"] {
  background: linear-gradient(135deg, #14f195 0%, #4a9fe0 100%) !important;
  color: #04130c !important;
}

#cashier-modal .form-view > div[style*="text-align: center"] > div[style*="#ef4444"] {
  background: rgba(255, 107, 122, .14) !important;
  border: 1px solid rgba(255, 107, 122, .4);
  color: var(--sd-red, #ff6b7a) !important;
}

#cashier-modal .form-view > div[style*="text-align: center"] > h3 {
  font-family: var(--cw-display) !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
}

#cashier-modal .form-view > div[style*="text-align: center"] > h3[style*="#22c55e"] {
  color: var(--sd-mint, #6ee7b7) !important;
}

#cashier-modal .form-view > div[style*="text-align: center"] > h3[style*="#ef4444"] {
  color: var(--sd-red, #ff6b7a) !important;
}

#cashier-modal .form-view > div[style*="text-align: center"] > div[style*="rgba(0,0,0,0.3)"],
#cashier-modal .form-view > div[style*="text-align: center"] > div[style*="rgba(255,255,255,0.05)"] {
  background: var(--sd-bg, #0b0b14) !important;
  border: 1px solid var(--cw-line2) !important;
  border-radius: 14px !important;
}

#cashier-modal .form-view > div[style*="text-align: center"] code {
  font-family: var(--cw-mono) !important;
  color: var(--cw-text) !important;
}

#cashier-modal .form-view > div[style*="text-align: center"] > a[target="_blank"] {
  background: var(--cw-card2) !important;
  border: 1px solid var(--cw-line2) !important;
  border-radius: 12px !important;
  color: var(--cw-text) !important;
}

/* ------------------------- withdraw extras ------------------------- */
#cashier-modal .withdrawal-compliance-panel {
  padding: 14px 16px;
  margin: 2px 0 14px;
  border-radius: 16px;
  font-size: 12.5px;
}

#cashier-modal .withdrawal-compliance-panel.eligible {
  background: linear-gradient(180deg, rgba(20, 241, 149, .06), rgba(20, 241, 149, .01)), var(--cw-card);
  border: 1px solid rgba(20, 241, 149, .24);
}

#cashier-modal .withdrawal-compliance-panel.blocked {
  background: linear-gradient(180deg, rgba(255, 212, 121, .06), rgba(255, 212, 121, .01)), var(--cw-card);
  border: 1px solid rgba(255, 212, 121, .24);
}

#cashier-modal .withdrawal-compliance-dot {
  background: var(--sd-green, #14f195);
  box-shadow: 0 0 0 3px rgba(20, 241, 149, .14);
}

#cashier-modal .withdrawal-compliance-panel.blocked .withdrawal-compliance-dot {
  background: var(--sd-gold, #ffd479);
  box-shadow: 0 0 0 3px rgba(255, 212, 121, .14);
}

#cashier-modal .withdrawal-compliance-title {
  font-family: var(--cw-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cw-text);
}

#cashier-modal .withdrawal-compliance-badge {
  padding: 4px 9px;
  border: 1px solid var(--cw-line2);
  background: var(--cw-card2);
  color: var(--cw-muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .03em;
}

#cashier-modal .withdrawal-compliance-copy {
  color: var(--cw-muted);
}

#cashier-modal .withdrawal-compliance-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#cashier-modal .withdrawal-compliance-metric {
  padding: 9px 11px;
  background: var(--sd-bg, #0b0b14);
  border: 1px solid var(--cw-line);
  border-radius: 12px;
}

#cashier-modal .withdrawal-compliance-label {
  color: var(--cw-dim);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: none;
}

#cashier-modal .withdrawal-compliance-value {
  font-family: var(--cw-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--cw-text);
}

#cashier-modal .withdrawal-compliance-progress {
  height: 6px;
  background: rgba(255, 255, 255, .06);
}

#cashier-modal .withdrawal-compliance-progress span,
#cashier-modal .withdrawal-compliance-panel.blocked .withdrawal-compliance-progress span {
  background: var(--cw-grad);
}

#cashier-modal .withdrawal-compliance-links a {
  color: var(--sd-violet, #a77bff);
  font-size: 11.5px;
  font-weight: 600;
}

#cashier-modal .withdrawal-policy-accept {
  min-height: 42px;
  border-radius: 12px;
  background: var(--cw-cta);
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 600;
}

#cashier-modal .pending-withdrawals-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--cw-line2);
}

#cashier-modal .pending-withdrawals-header {
  font-family: var(--cw-display);
  font-size: 13.5px;
  color: var(--cw-text);
}

#cashier-modal .pending-withdrawal-item {
  padding: 12px 14px;
  background: var(--cw-card);
  border: 1px solid var(--cw-line2);
  border-radius: 14px;
}

#cashier-modal .pending-withdrawal-amount {
  font-family: var(--cw-mono);
  font-size: 15px;
  color: var(--cw-text);
}

#cashier-modal .pending-withdrawal-crypto {
  font-family: var(--cw-mono);
  font-size: 11.5px;
  color: var(--cw-muted);
}

#cashier-modal .pending-withdrawal-status {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

#cashier-modal .pending-withdrawal-status.pending {
  background: rgba(255, 212, 121, .1);
  color: var(--sd-gold, #ffd479);
}

#cashier-modal .pending-withdrawal-status.approved {
  background: rgba(20, 241, 149, .1);
  color: var(--sd-mint, #6ee7b7);
}

#cashier-modal .pending-withdrawal-cancel {
  border-radius: 10px;
  background: rgba(255, 107, 122, .08);
  border: 1px solid rgba(255, 107, 122, .3);
  color: var(--sd-red, #ff6b7a);
}

#cashier-modal .pending-withdrawal-item div[style*="text-overflow"] {
  font-family: var(--cw-mono);
}

/* ------------------------- small screens ------------------------- */
@media (max-width: 600px) {
  #cashier-modal {
    --cw-pad: 16px;
    --cw-radius: 22px;
  }

  #cashier-modal.cashier-modal-overlay {
    padding: 10px 8px;
  }

  #cashier-modal .cashier-modal {
    max-width: 100%;
    margin: 0;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  #cashier-modal .modal-header {
    padding: 16px var(--cw-pad) 4px;
  }

  #cashier-modal .sd-cash-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  #cashier-modal .sd-cash-mark img {
    width: 25px;
    height: 25px;
  }

  #cashier-modal .sd-cash-title {
    font-size: 17px;
  }

  #cashier-modal .sd-cash-sub {
    font-size: 11.5px;
  }

  #cashier-modal .user-balance-display {
    margin-top: 12px;
    padding: 13px 14px 13px 16px;
  }

  #cashier-modal .user-balance-display::after {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background-size: 19px 19px, auto;
  }

  #cashier-modal .balance-amount {
    font-size: 26px;
  }

  #cashier-modal .modal-tabs {
    margin-top: 12px;
  }

  #cashier-modal .tab-btn {
    padding: 10px 12px;
    font-size: 13.5px;
  }

  #cashier-modal .tab-content {
    padding: 16px var(--cw-pad) 22px;
  }

  #cashier-modal .token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #cashier-modal .token-card {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 10px;
    padding: 10px;
    min-height: 66px;
    border-radius: 14px;
  }

  #cashier-modal .token-card .token-icon-wrapper {
    width: 36px;
    height: 36px;
  }

  #cashier-modal .token-card .token-logo {
    width: 25px;
    height: 25px;
  }

  #cashier-modal .token-card .token-symbol {
    font-size: 13.5px;
  }

  #cashier-modal .sd-bonus__figure {
    font-size: 30px;
    padding-right: 12px;
  }

  #cashier-modal .sd-bonus__title {
    font-size: 14px;
  }

  #cashier-modal [id$="-wallet-grid"] {
    gap: 8px !important;
  }

  #cashier-modal .wallet-connect-btn {
    padding: 12px 6px 10px;
  }

  #cashier-modal .wallet-connect-btn > span[style*="9px"] {
    padding: 0 6px;
    font-size: 10px !important;
  }

  #cashier-modal #hd-qr-code img {
    width: 168px !important;
    height: 168px !important;
  }
}

@media (max-width: 600px) {
  #cashier-modal #content-deposit:has(#deposit-token-select.hidden) .sd-bonus__main {
    grid-column: 1 / -1;
  }

  #cashier-modal #content-deposit:has(#deposit-token-select.hidden) .sd-bonus__link {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    margin-top: 7px;
  }
}

@media (max-width: 360px) {
  #cashier-modal .select-header::after {
    display: none;
  }

  #cashier-modal .token-card::after {
    font-size: 9px;
    padding-right: 6px;
  }
}

/* ------------------------- header trigger (balance + Cashier) ------------------------- */
.cashier-widget .cashier-trigger-btn .bal-section {
  background: var(--sd-surface, #14141f) !important;
  font-family: var(--sd-mono, "Geist Mono", ui-monospace, monospace) !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  border-right: 1px solid var(--sd-line2, rgba(255, 255, 255, .12));
}

.cashier-widget .cashier-trigger-btn .bal-curr,
.cashier-widget .cashier-trigger-btn .bal-arrow {
  color: var(--sd-muted, #8b8ca3) !important;
}

.cashier-widget .cashier-trigger-btn .wallet-section {
  background: var(--sd-cta, linear-gradient(135deg, #9945ff 0%, #6d5cff 100%)) !important;
  font-family: var(--sd-font, "Geist", system-ui, sans-serif) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.cashier-widget .cashier-trigger-btn .wallet-section:hover {
  background: var(--sd-cta, linear-gradient(135deg, #9945ff 0%, #6d5cff 100%)) !important;
  filter: brightness(1.1);
}

/* ========================= deposit / withdrawal toasts ========================= */
#deposit-toast-container {
  gap: 10px !important;
}

#deposit-toast-container .deposit-toast {
  padding: 13px 14px 13px 13px !important;
  gap: 12px !important;
  align-items: center !important;
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(153, 69, 255, .14), rgba(153, 69, 255, 0) 60%),
    rgba(20, 20, 31, .96) !important;
  border: 1px solid var(--sd-line2, rgba(255, 255, 255, .12)) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .05) inset !important;
  font-family: var(--sd-font, "Geist", system-ui, sans-serif) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
  backdrop-filter: blur(16px) saturate(1.2) !important;
}

#deposit-toast-container .deposit-toast:hover {
  border-color: rgba(167, 123, 255, .35) !important;
}

/* accent: thin top bar instead of the old left stripe */
#deposit-toast-container .deposit-toast > div:first-child {
  left: 18px !important;
  right: 18px !important;
  top: 0 !important;
  bottom: auto !important;
  width: auto !important;
  height: 2px !important;
  border-radius: 0 0 2px 2px !important;
  opacity: .9;
}

#deposit-toast-container .deposit-toast--completed > div:first-child,
#deposit-toast-container .deposit-toast--approved > div:first-child {
  background: var(--sd-grad, linear-gradient(90deg, #9945ff, #4a9fe0, #14f195)) !important;
}

#deposit-toast-container .deposit-toast--detected > div:first-child,
#deposit-toast-container .deposit-toast--confirming > div:first-child,
#deposit-toast-container .deposit-toast--requested > div:first-child {
  background: linear-gradient(90deg, rgba(167, 123, 255, 0), #a77bff, rgba(167, 123, 255, 0)) !important;
}

#deposit-toast-container .deposit-toast > div:nth-child(2) {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  margin-left: 0 !important;
}

#deposit-toast-container .deposit-toast--detected > div:nth-child(2),
#deposit-toast-container .deposit-toast--confirming > div:nth-child(2),
#deposit-toast-container .deposit-toast--requested > div:nth-child(2) {
  background: rgba(167, 123, 255, .12) !important;
  border-color: rgba(167, 123, 255, .3) !important;
  color: #d6c6ff !important;
}

#deposit-toast-container .deposit-toast--completed > div:nth-child(2),
#deposit-toast-container .deposit-toast--approved > div:nth-child(2) {
  background: rgba(20, 241, 149, .1) !important;
  border-color: rgba(20, 241, 149, .3) !important;
  color: var(--sd-green, #14f195) !important;
}

#deposit-toast-container .deposit-toast--failed > div:nth-child(2) {
  background: rgba(255, 107, 122, .1) !important;
  border-color: rgba(255, 107, 122, .32) !important;
  color: var(--sd-red, #ff6b7a) !important;
}

#deposit-toast-container .deposit-toast > div:nth-child(3) > div:first-child > div:first-child {
  font-family: var(--sd-display, "Sora", sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--sd-text, #f4f3fa) !important;
}

#deposit-toast-container .deposit-toast > div:nth-child(3) > div:nth-child(2) {
  margin-top: 3px !important;
  font-size: 12px !important;
  color: var(--sd-muted, #8b8ca3) !important;
}

#deposit-toast-container .deposit-toast .deposit-toast-close {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0 !important;
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--sd-line, rgba(255, 255, 255, .07));
  color: var(--sd-muted, #8b8ca3) !important;
  font-size: 14px !important;
}

#deposit-toast-container .deposit-toast .deposit-toast-close:hover {
  color: var(--sd-text, #f4f3fa) !important;
}

/* confirmation progress */
#deposit-toast-container .deposit-toast > div:nth-child(3) > div:nth-child(3) {
  height: 4px !important;
  margin-top: 9px !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, .07) !important;
}

#deposit-toast-container .deposit-toast > div:nth-child(3) > div:nth-child(3) > div {
  background: var(--sd-grad, linear-gradient(90deg, #9945ff, #4a9fe0, #14f195)) !important;
  border-radius: 4px !important;
}

/* ========================= notification panel (same script) ========================= */
#casino-notification-panel.casino-notification-panel {
  border-radius: 20px !important;
  border: 1px solid var(--sd-line2, rgba(255, 255, 255, .12)) !important;
  background:
    radial-gradient(90% 50% at 0% 0%, rgba(153, 69, 255, .12), rgba(153, 69, 255, 0) 60%),
    var(--sd-bg2, #0f0f1a) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .55) !important;
  font-family: var(--sd-font, "Geist", system-ui, sans-serif);
}

#casino-notification-panel .casino-notification-header {
  padding: 14px 16px 12px !important;
  border-bottom: 1px solid var(--sd-line, rgba(255, 255, 255, .07)) !important;
}

#casino-notification-panel .casino-notification-titleIcon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
  background: rgba(167, 123, 255, .12) !important;
  border: 1px solid rgba(167, 123, 255, .28) !important;
  color: #d6c6ff !important;
}

#casino-notification-panel .casino-notification-title {
  font-family: var(--sd-display, "Sora", sans-serif) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
}

#casino-notification-panel .casino-notification-subtitle {
  margin-top: 3px !important;
  font-family: var(--sd-font, "Geist", sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--sd-muted, #8b8ca3) !important;
}

#casino-notification-panel .casino-notification-linkBtn {
  height: 30px !important;
  border-radius: 10px !important;
  border: 1px solid var(--sd-line2, rgba(255, 255, 255, .12)) !important;
  background: var(--sd-surface, #14141f) !important;
  color: var(--sd-text, #f4f3fa) !important;
  font-family: var(--sd-font, "Geist", sans-serif) !important;
  font-weight: 600 !important;
}

#casino-notification-panel .casino-notification-close {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  border: 1px solid var(--sd-line, rgba(255, 255, 255, .07)) !important;
  background: var(--sd-surface, #14141f) !important;
}

#casino-notification-panel .casino-notification-item {
  padding: 11px 12px !important;
  border-radius: 14px !important;
  border: 1px solid var(--sd-line, rgba(255, 255, 255, .07)) !important;
  background: var(--sd-surface, #14141f) !important;
}

#casino-notification-panel .casino-notification-item + .casino-notification-item {
  margin-top: 6px !important;
}

#casino-notification-panel .casino-notification-item:hover {
  background: var(--sd-surface2, #1a1a28) !important;
  border-color: var(--sd-line2, rgba(255, 255, 255, .12)) !important;
}

#casino-notification-panel .casino-notification-item.is-unread {
  border-color: rgba(167, 123, 255, .28) !important;
}

#casino-notification-panel .casino-notification-itemIcon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
}

#casino-notification-panel .casino-notification-itemTitle {
  font-family: var(--sd-display, "Sora", sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}

#casino-notification-panel .casino-notification-message {
  font-family: var(--sd-font, "Geist", sans-serif) !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  color: var(--sd-muted, #8b8ca3) !important;
}

#casino-notification-panel .casino-notification-metaText {
  font-family: var(--sd-mono, "Geist Mono", monospace) !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  color: var(--sd-dim, #6f7184) !important;
}

#casino-notification-panel .casino-notification-inlineLink {
  color: var(--sd-violet, #a77bff) !important;
  font-family: var(--sd-font, "Geist", sans-serif) !important;
}

#casino-notification-panel .casino-notification-status {
  min-width: 0 !important;
  height: 26px !important;
  padding: 0 10px !important;
  font-family: var(--sd-font, "Geist", sans-serif) !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
}

#casino-notification-panel .casino-notification-emptyIcon {
  border-radius: 18px !important;
  background: rgba(167, 123, 255, .1) !important;
  border: 1px solid rgba(167, 123, 255, .26) !important;
  color: #d6c6ff !important;
}

#casino-notification-panel .casino-notification-emptyTitle {
  font-family: var(--sd-display, "Sora", sans-serif) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
}

#casino-notification-panel .casino-notification-emptyText {
  font-family: var(--sd-font, "Geist", sans-serif) !important;
  font-weight: 500 !important;
  color: var(--sd-muted, #8b8ca3) !important;
}
