/* Viceberg's own Buy and Sell ticket (vice-market-ticket.js), as in the approved mock: one sheet, purple Buy, pink Sell,
   few words, a bottom sheet on a phone. */
.vmt { width: min(400px, calc(100vw - 24px)); max-width: none; padding: 0; border: 0; background: transparent; color: #faf6ff; overflow: visible; }
.vmt::backdrop { background: rgba(5, 7, 15, .62); backdrop-filter: blur(6px); }
.vmt-sheet { padding: 18px 18px 20px; border: 1px solid rgba(211, 193, 238, .18); border-radius: 24px; background: linear-gradient(180deg, rgba(177, 140, 255, .07), transparent 38%), #101321; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.vmt-grab { display: none; width: 40px; height: 4px; margin: -6px auto 14px; border-radius: 4px; background: rgba(211, 193, 238, .22); }
.vmt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.vmt-head img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(211, 193, 238, .14); }
.vmt-head b { display: block; font-size: 1.05rem; } .vmt-head span { display: block; color: #bab0c5; font-size: .8rem; }
.vmt-x { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .05); color: #bab0c5; font-size: 1.1rem; cursor: pointer; }
.vmt-side { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 14px; border: 1px solid rgba(211, 193, 238, .07); border-radius: 14px; background: rgba(9, 13, 26, .6); }
.vmt-side button { padding: 9px; border: 0; border-radius: 10px; background: none; color: #bab0c5; font-family: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.vmt-side .on-buy { background: rgba(177, 140, 255, .2); color: #e4d6ff; }
.vmt-side .on-sell { background: rgba(255, 91, 143, .14); color: #ff8fb1; }
.vmt-amount { padding: 14px 16px; border: 1px solid rgba(211, 193, 238, .14); border-radius: 18px; background: rgba(255, 255, 255, .02); }
.vmt-amount label { display: flex; justify-content: space-between; color: #bab0c5; font-size: .78rem; }
.vmt-val { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 10px; font-family: inherit; font-size: 2.1rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.vmt-val i { color: #bab0c5; font-style: normal; font-size: 1.6rem; }
.vmt-val input { width: 100%; min-width: 0; padding: 0; border: 0; background: none; color: #faf6ff; font: inherit; outline: none; }
.vmt-val input::placeholder { color: rgba(250, 246, 255, .28); }
.vmt-chips { display: flex; gap: 6px; }
.vmt-chips button { padding: 5px 10px; border: 1px solid rgba(211, 193, 238, .07); border-radius: 999px; background: none; color: #bab0c5; font-family: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; }
.vmt-chips button:hover { color: #faf6ff; border-color: rgba(211, 193, 238, .3); }
.vmt-sub { margin: -6px 0 8px; color: #bab0c5; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
/* The quote: You receive big, three quiet lines, the rest behind Details. One line each, never wrapping. */
.vmt-receive { display: grid; gap: 2px; margin: 14px 4px 6px; }
.vmt-receive span { color: #bab0c5; font-size: .78rem; }
.vmt-receive b { overflow: hidden; color: #f3ecff; font-size: 1.6rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.vmt-lines, .vmt-details { margin: 6px 4px 0; padding: 0; list-style: none; }
.vmt-lines li, .vmt-details li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: #9d93ad; font-size: .8rem; white-space: nowrap; }
.vmt-lines li b, .vmt-details li b { overflow: hidden; color: #e9e1f7; font-weight: 600; font-variant-numeric: tabular-nums; text-overflow: ellipsis; }
.vmt-details { margin-top: 2px; padding-top: 6px; border-top: 1px solid rgba(211, 193, 238, .08); }
.vmt-details li { flex-wrap: wrap; row-gap: 0; }
.vmt-details li small { flex-basis: 100%; overflow: hidden; color: #7f768f; font-size: .72rem; text-align: right; text-overflow: ellipsis; }
.vmt-more { margin: 4px 0 0; padding: 4px; border: 0; background: none; color: #b18cff; font-family: inherit; font-size: .78rem; font-weight: 650; cursor: pointer; }
.vmt-more:hover { color: #d9c8ff; }
.vmt-warn { margin: 10px 2px 0; padding: 9px 12px; border-radius: 12px; background: rgba(244, 183, 40, .08); color: #f4d27a; font-size: .8rem; list-style: none; }
.vmt-error { margin: 10px 2px 0; color: #ff8fb1; font-size: .84rem; } .vmt-error:empty { display: none; }
.vmt-hint { margin: 8px 2px 12px; color: #bab0c5; }
.vmt-go { width: 100%; min-height: 52px; margin-top: 16px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #8b5cf6, #b18cff); color: #fff; font-family: inherit; font-size: 1rem; font-weight: 800; box-shadow: 0 12px 30px rgba(139, 92, 246, .35); cursor: pointer; }
.vmt-go.is-sell { background: linear-gradient(135deg, #e0477b, #ff6f9e); box-shadow: 0 12px 30px rgba(224, 71, 123, .3); }
.vmt-elsewhere { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 10px; border-radius: 16px; background: linear-gradient(135deg, #8b5cf6, #b18cff); color: #fff; font-weight: 800; text-decoration: none; }
.vmt-go:disabled { background: rgba(255, 255, 255, .06); color: rgba(250, 246, 255, .35); box-shadow: none; cursor: default; }
.vmt-status { display: grid; justify-items: center; gap: 10px; padding: 24px 8px 8px; text-align: center; }
.vmt-status b { font-size: 1.15rem; } .vmt-status p { margin: 0; color: #bab0c5; font-size: .88rem; }
.vmt-status a { color: #d9c8ff; font-size: .84rem; text-decoration: none; }
.vmt-ring { width: 56px; height: 56px; border-radius: 50%; border: 3px solid rgba(177, 140, 255, .18); border-top-color: #b18cff; animation: vmt-spin 1s linear infinite; }
@keyframes vmt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vmt-ring { animation: none; } }
.vmt-ok { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #b18cff); color: #fff; font-size: 1.6rem; box-shadow: 0 0 0 8px rgba(177, 140, 255, .12), 0 0 0 18px rgba(177, 140, 255, .06), 0 12px 30px rgba(139, 92, 246, .45); }
.vmt-bad { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 91, 143, .14); color: #ff5b8f; font-size: 1.6rem; font-weight: 800; }
.vmt-steps { display: grid; gap: 8px; width: 100%; margin: 6px 0 0; padding: 0; list-style: none; text-align: left; }
.vmt-steps li { display: flex; align-items: center; gap: 10px; color: #8f86a0; font-size: .86rem; }
.vmt-steps li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(177, 140, 255, .25); }
.vmt-steps li.now { color: #faf6ff; } .vmt-steps li.now i { border-top-color: #b18cff; animation: vmt-spin 1s linear infinite; }
.vmt-steps li.done { color: #bab0c5; } .vmt-steps li.done i { border: 0; background: linear-gradient(135deg, #8b5cf6, #b18cff); }
/* The confirm frame sits in its own box; until it says it is ready, only the card's placeholder shows, never its page. */
.vmt-confirm-wrap { position: relative; margin-top: 14px; min-height: 64px; border-radius: 16px; overflow: hidden; background: #0c0f1c; }
.vmt-confirm { display: block; width: 100%; height: 64px; border: 0; background: #0c0f1c; transition: opacity .15s; }
.vmt-confirm-wrap.is-loading .vmt-confirm { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.vmt-confirm-wait { display: none; align-items: center; gap: 10px; padding: 18px 14px; color: #bab0c5; font-size: .8rem; }
.vmt-confirm-wrap.is-loading .vmt-confirm-wait { display: flex; }
.vmt-confirm-wait i { width: 120px; height: 10px; border-radius: 6px; background: rgba(211, 193, 238, .12); animation: vmt-pulse 1.2s ease-in-out infinite; }
@keyframes vmt-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .vmt-confirm-wait i { animation: none; } }
/* Desktop: the card keeps its top edge, so a taller step grows downward instead of re-centring. */
@media (min-width: 561px) { .vmt { margin: max(24px, 12vh) auto auto; } }
@media (max-width: 560px) {
  .vmt { width: 100vw; margin: auto 0 0; inset: auto 0 0 0; }
  .vmt-sheet { border-radius: 24px 24px 0 0; border-bottom: 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .vmt-grab { display: block; }
}
/* One press: zealz.fun's page stays loaded but out of sight (it only receives confirm-go). */
.vmt-confirm-wrap.is-silent { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; clip-path: inset(50%); }
