/* Cash Desk (#fxcd): deposit / withdraw strip + confirmation sheet. Built by /fx-cashdesk.js */
#fxcd, #fxcd-sheet { --gold-1: #fff1b8; --gold-2: #ffd35a; --gold-3: #f5a60f; --em-1: #5df2b0; --em-2: #14c97f; --em-3: #08915a;
    font-family: 'IBM Plex Sans', 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
#fxcd *, #fxcd-sheet * { box-sizing: border-box; }
#fxcd[hidden], #fxcd-sheet[hidden] { display: none !important; }
html.fxcd-lock, html.fxcd-lock body { overflow: hidden !important; }

/* ---------- strip ---------- */
#fxcd {
    position: relative; z-index: 5; margin: 8px 10px 0; border-radius: 20px; color: #eaf1ff; isolation: isolate;
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(255, 200, 80, .16), transparent 55%),
        radial-gradient(120% 160% at 100% 100%, rgba(47, 107, 255, .35), transparent 60%),
        linear-gradient(160deg, #0b1d4a, #050d26 70%);
    box-shadow: 0 14px 34px -14px rgba(5, 13, 38, .75), 0 0 0 1px rgba(255, 211, 90, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
    overflow: hidden;
}
#fxcd.is-in { animation: fxcdIn .6s cubic-bezier(.2, .8, .2, 1) both; }
#fxcd::before {                                /* gold light travelling round the edge */
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
    background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(255, 220, 120, .95) 82%, #fff 86%, rgba(255, 220, 120, .95) 90%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: fxcdOrbit 5s linear infinite;
}
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.fxcd__glow { position: absolute; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(47, 107, 255, .35), transparent 65%); pointer-events: none; z-index: -1; }
.fxcd__in { padding: 12px 12px 12px; display: grid; gap: 12px; }

.fxcd__head { display: flex; align-items: center; gap: 11px; }
.fxcd__coin { position: relative; width: 38px; height: 38px; flex: none; filter: drop-shadow(0 4px 10px rgba(255, 170, 30, .55)); animation: fxcdSpin 6s ease-in-out infinite; }
.fxcd__coin svg { display: block; width: 100%; height: 100%; }
.fxcd__coin i { position: absolute; top: 4px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 2px #0a1b44, 0 0 10px #34d399; animation: fxcdPing 2s infinite; }
.fxcd__ttl { display: grid; gap: 2px; min-width: 0; flex: 1; line-height: 1.1; }
.fxcd__ttl b { font: 800 16px/1.1 'Sora', 'IBM Plex Sans', system-ui, sans-serif; letter-spacing: .02em;
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.fxcd__ttl small { font-size: 12px; color: #a9bde2; }
.fxcd__ttl em { font-style: normal; font-weight: 700; color: #fff; }
.fxcd__min { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px; cursor: pointer; color: #cfe0ff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); transition: transform .3s, background .2s; }
.fxcd__min svg { width: 16px; height: 16px; }
.fxcd__min:hover { background: rgba(255, 255, 255, .14); }

.fxcd__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; transition: grid-template-rows .3s; }
.fxcd__btn {
    position: relative; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 15px; cursor: pointer; text-align: left; overflow: hidden;
    font: inherit; border: 1px solid transparent; transition: transform .18s, box-shadow .25s, filter .2s; -webkit-tap-highlight-color: transparent;
}
.fxcd__btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .45) 50%, transparent 62%); transform: translateX(-130%); animation: fxcdSheen 4.2s ease-in-out infinite; pointer-events: none; }
.fxcd__btn--wd::after { animation-delay: 1.4s; }
.fxcd__btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.fxcd__btn:active { transform: translateY(0) scale(.98); }
.fxcd__btn:focus-visible, .fxcd__min:focus-visible, .fxcd__go:focus-visible, .fxcd__cancel:focus-visible, .fxcd__x:focus-visible { outline: 2px solid #38d0ff; outline-offset: 2px; }
.fxcd__bi { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.fxcd__bi svg { width: 20px; height: 20px; }
.fxcd__btn--dep .fxcd__bi svg { animation: fxcdDown 1.8s ease-in-out infinite; }
.fxcd__btn--wd .fxcd__bi svg { animation: fxcdUp 1.8s ease-in-out infinite; }
.fxcd__bt { display: grid; gap: 2px; line-height: 1.1; min-width: 0; }
.fxcd__bt b { font: 800 15.5px/1.1 'Sora', 'IBM Plex Sans', system-ui, sans-serif; }
.fxcd__bt small { font-size: 11.5px; font-weight: 600; opacity: .85; }
.fxcd__btn--dep { color: #03271a; background: linear-gradient(160deg, var(--em-1), var(--em-2) 55%, var(--em-3)); box-shadow: 0 10px 24px -10px rgba(20, 201, 127, .9), inset 0 1px 0 rgba(255, 255, 255, .55); border-color: rgba(190, 255, 225, .6); }
.fxcd__btn--wd { color: #2a1a00; background: linear-gradient(160deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3)); box-shadow: 0 10px 24px -10px rgba(255, 170, 30, .9), inset 0 1px 0 rgba(255, 255, 255, .7); border-color: rgba(255, 241, 184, .8); }

/* collapsed: one slim line */
#fxcd.is-min .fxcd__btns { display: none; }
#fxcd.is-min .fxcd__in { padding: 8px 12px; }
#fxcd.is-min .fxcd__ttl small { display: none; }
#fxcd.is-min .fxcd__coin { width: 28px; height: 28px; }
#fxcd.is-min .fxcd__min { transform: rotate(180deg); }

@media (min-width: 700px) {
    #fxcd { margin: 10px auto 0; max-width: 880px; }
    .fxcd__in { grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 12px 14px; }
    .fxcd__head { min-width: 280px; }
    .fxcd__btns { max-width: 460px; justify-self: end; width: 100%; }
    #fxcd.is-min .fxcd__in { grid-template-columns: 1fr; }
}
@media (max-width: 360px) { .fxcd__bi { display: none; } .fxcd__ttl small { display: none; } }

/* ---------- sheet ---------- */
#fxcd-sheet { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s; }
#fxcd-sheet.is-open { opacity: 1; }
.fxcd__scrim { position: absolute; inset: 0; background: rgba(2, 6, 20, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fxcd__panel {
    position: relative; width: min(440px, 100%); padding: 30px 22px calc(20px + env(safe-area-inset-bottom)); text-align: center; color: #eaf1ff;
    border-radius: 26px 26px 0 0; transform: translateY(40px); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    background: radial-gradient(120% 70% at 50% 0%, var(--glow, rgba(20, 201, 127, .22)), transparent 65%), linear-gradient(180deg, #0c1f50, #050d26);
    box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 211, 90, .25), inset 0 1px 0 rgba(255, 255, 255, .1);
}
#fxcd-sheet.is-open .fxcd__panel { transform: none; }
.fxcd--wd { --glow: rgba(255, 190, 70, .24); }
@media (min-width: 700px) { #fxcd-sheet { align-items: center; } .fxcd__panel { border-radius: 26px; } }
.fxcd__x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; font-size: 22px; line-height: 1; color: #cfe0ff; background: rgba(255, 255, 255, .08); }
.fxcd__sico { width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 20px; position: relative; color: #03271a;
    background: linear-gradient(160deg, var(--em-1), var(--em-2) 55%, var(--em-3)); box-shadow: 0 14px 30px -8px rgba(20, 201, 127, .85), inset 0 1px 0 rgba(255, 255, 255, .6); animation: fxcdFloat 3s ease-in-out infinite; }
.fxcd--wd .fxcd__sico { color: #2a1a00; background: linear-gradient(160deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3)); box-shadow: 0 14px 30px -8px rgba(255, 170, 30, .85), inset 0 1px 0 rgba(255, 255, 255, .7); }
.fxcd__sico svg { width: 32px; height: 32px; }
.fxcd__panel h2 { margin: 0; font: 800 24px/1.15 'Sora', 'IBM Plex Sans', system-ui, sans-serif; color: #fff; }
.fxcd__via { margin: 6px 0 18px; font-size: 13px; color: #a9bde2; }
.fxcd__via b { color: var(--gold-2); }
.fxcd__steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; text-align: left; }
.fxcd__steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); }
.fxcd__steps i { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font: 800 13px/1 'Sora', system-ui, sans-serif; font-style: normal; color: #2a1a00; background: linear-gradient(160deg, var(--gold-1), var(--gold-3)); }
.fxcd__safe { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; text-align: left; font-size: 12.5px; line-height: 1.45; color: #cdd9f2; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .25); }
.fxcd__safe svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #34d399; }
.fxcd__safe b { color: #fff; }
.fxcd__go { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 15px 18px; border-radius: 16px; text-decoration: none; cursor: pointer; font: 800 16px/1 'Sora', 'IBM Plex Sans', system-ui, sans-serif;
    color: #2a1a00; background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3)); border: 1px solid rgba(255, 241, 184, .85); box-shadow: 0 14px 30px -10px rgba(255, 170, 30, .85), inset 0 1px 0 rgba(255, 255, 255, .75); transition: transform .18s, filter .2s; }
.fxcd__go:hover { filter: brightness(1.07); transform: translateY(-1px); }
.fxcd__go svg { width: 18px; height: 18px; }
.fxcd__cancel { margin-top: 10px; padding: 10px 16px; border: 0; background: none; cursor: pointer; font: 600 14px/1 inherit; color: #a9bde2; }

@keyframes fxcdIn { from { opacity: 0; transform: translateY(-10px); } }
@keyframes fxcdOrbit { to { --a: 360deg; } }
@keyframes fxcdSheen { 0% { transform: translateX(-130%); } 40%, 100% { transform: translateX(130%); } }
@keyframes fxcdSpin { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
@keyframes fxcdPing { 70% { box-shadow: 0 0 0 2px #0a1b44, 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 2px #0a1b44, 0 0 0 0 rgba(52, 211, 153, 0); } }
@keyframes fxcdDown { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
@keyframes fxcdUp { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-2px); } }
@keyframes fxcdFloat { 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) {
    #fxcd, #fxcd *, #fxcd::before, #fxcd-sheet, #fxcd-sheet * { animation: none !important; transition-duration: .01s !important; }
}
