/* Add funds / add a card pop-up (billing, add-funds.js).
   Graphite panel, lime for the one main action, square corners like the rest of the
   workspace. A bottom sheet on phones. */

.fx-open{display:inline-flex;align-items:center;justify-content:space-between;gap:14px;width:100%;margin:18px 0 0;
  min-height:52px;padding:0 18px!important;border:1px solid #c6ff3d!important;border-radius:6px!important;
  background:#c6ff3d!important;color:#080a04!important;font:650 15px 'Plus Jakarta Sans',sans-serif!important;cursor:pointer;
  transition:background .2s,box-shadow .2s,transform .15s}
.fx-open:hover{background:#d4ff6b!important;box-shadow:0 8px 30px #c6ff3d33}
.fx-open:active{transform:translateY(1px)}
.fx-open svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;
  padding:4px;border-radius:4px;background:#080a0414;box-sizing:content-box}

.fx-dlg{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;overflow:auto;
  background:linear-gradient(180deg,#121316,#0a0a0c 55%);color:#d9dae0;border:1px solid #ffffff24;border-radius:8px;
  box-shadow:0 40px 120px #000c,0 0 0 1px #00000080;font-family:'Plus Jakarta Sans',sans-serif}
.fx-dlg::before{content:'';display:block;height:2px;background:linear-gradient(90deg,transparent,#c6ff3d 30%,#c6ff3d 70%,transparent)}
.fx-dlg::backdrop{background:#000000c7;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.fx-dlg[open]{animation:fx-in .28s cubic-bezier(.2,.8,.2,1)}
@keyframes fx-in{from{opacity:0;transform:translateY(14px) scale(.985)}}
.fx-inner{padding:26px 28px 24px;margin:0}

.fx-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 20px}
.fx-eyebrow{margin:0 0 6px;font-size:11px;font-weight:650;letter-spacing:.16em;text-transform:uppercase;color:#c6ff3d}
.fx-head h2{margin:0;font-size:28px;font-weight:600;letter-spacing:-.035em;color:#fff;line-height:1.1}
.fx-x{display:grid;place-items:center;width:38px;height:38px;min-height:0;padding:0!important;border:1px solid #ffffff2b!important;
  border-radius:6px!important;background:transparent!important;color:#fff;cursor:pointer}
.fx-x:hover{background:#ffffff0f!important}
.fx-x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

.fx-balance{display:flex;justify-content:space-between;align-items:baseline;padding:14px 16px;margin:0 0 22px;
  border:1px solid #ffffff17;border-radius:6px;background:#ffffff05;font-size:13px;color:#9d9fa9}
.fx-balance b{font-size:18px;font-weight:600;color:#fff;font-variant-numeric:tabular-nums}

.fx-sec{margin:0 0 22px}
.fx-label{margin:0 0 10px;font-size:12px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:#8d8f99}

.fx-chips{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.fx-chips button{min-height:48px;padding:0!important;border:1px solid #ffffff24!important;border-radius:6px!important;
  background:#000!important;color:#e8e9ee;font:600 16px 'Plus Jakarta Sans',sans-serif!important;cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.fx-chips button:hover{border-color:#ffffff55!important}
.fx-chips button.on{border-color:#c6ff3d!important;background:#c6ff3d12!important;color:#c6ff3d;box-shadow:inset 0 0 0 1px #c6ff3d}
.fx-other{display:flex;align-items:center;gap:10px;margin-top:10px;padding:0 14px;min-height:52px;border:1px solid #ffffff24;border-radius:6px;background:#000;cursor:text}
.fx-other:focus-within{border-color:#c6ff3d;box-shadow:0 0 0 3px #c6ff3d1f}
.fx-cur{font-size:20px;font-weight:600;color:#fff}
.fx-other input{flex:1;min-width:0;border:0!important;background:transparent!important;color:#fff;font:600 20px 'Plus Jakarta Sans',sans-serif;
  padding:0!important;outline:none!important;box-shadow:none!important;-moz-appearance:textfield}
.fx-other input::-webkit-outer-spin-button,.fx-other input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.fx-other-hint{font-size:12px;color:#6f717b;white-space:nowrap}

.fx-methods{display:grid;gap:8px}
.fx-method{display:grid;grid-template-columns:46px minmax(0,1fr) 20px;align-items:center;gap:14px;width:100%;min-height:60px;
  padding:10px 14px!important;border:1px solid #ffffff1f!important;border-radius:6px!important;background:#000!important;color:#e8e9ee;
  text-align:left;cursor:pointer;font:inherit!important;transition:border-color .15s,background .15s}
.fx-method:hover{border-color:#ffffff4d!important}
.fx-method[aria-checked="true"]{border-color:#c6ff3d!important;background:#c6ff3d0a!important}
.fx-method .fx-logo{width:46px;height:30px;border-radius:4px;overflow:hidden;display:grid;place-items:center;background:#ffffff0d;border:1px solid #ffffff14}
.fx-method .fx-logo img{width:100%;height:100%;object-fit:cover}
.fx-method .fx-logo svg{width:18px;height:18px;fill:none;stroke:#c6ff3d;stroke-width:2.2;stroke-linecap:round}
.fx-method b{display:block;font-size:14.5px;font-weight:600;color:#fff}
.fx-method small{display:block;font-size:12px;color:#8d8f99;margin-top:2px}
.fx-radio{width:18px;height:18px;border-radius:50%;border:1.5px solid #ffffff4d;box-sizing:border-box}
.fx-method[aria-checked="true"] .fx-radio{border-color:#c6ff3d;box-shadow:inset 0 0 0 4px #000,inset 0 0 0 9px #c6ff3d}

.fx-card{margin-top:12px;padding:16px;border:1px solid #ffffff1a;border-radius:6px;background:#ffffff04}
.fx-field-label{display:block;margin:0 0 6px;font-size:12.5px;font-weight:600;color:#c4c6cf}
.fx-field{position:relative;min-height:50px;padding:15px 14px;border:1px solid #ffffff2b;border-radius:6px;background:#000;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
.fx-field.focus{border-color:#c6ff3d;box-shadow:0 0 0 3px #c6ff3d1f}
.fx-field.invalid{border-color:#ff6b6b}
.fx-cardnum{padding-right:72px;margin-bottom:12px}
.fx-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

/* Accepted cards, one after another on the right of the number field, until the
   number shows which one it is. */
.fx-brands{position:absolute;right:12px;top:50%;width:44px;height:28px;transform:translateY(-50%);pointer-events:none}
.fx-brands img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:4px;opacity:0;
  box-shadow:0 0 0 1px #ffffff1a;animation:fx-brand 14s infinite}
.fx-brands img:nth-child(1){animation-delay:0s}.fx-brands img:nth-child(2){animation-delay:2s}
.fx-brands img:nth-child(3){animation-delay:4s}.fx-brands img:nth-child(4){animation-delay:6s}
.fx-brands img:nth-child(5){animation-delay:8s}.fx-brands img:nth-child(6){animation-delay:10s}
.fx-brands img:nth-child(7){animation-delay:12s}
@keyframes fx-brand{0%{opacity:0;transform:translateY(6px) scale(.92)}3%,13%{opacity:1;transform:none}17%,100%{opacity:0;transform:translateY(-6px) scale(.92)}}
.fx-brands.known img{animation:none;opacity:0}
.fx-brands.known img.hit{opacity:1;transform:none;transition:opacity .2s}
@media (prefers-reduced-motion:reduce){.fx-brands img{animation:none}.fx-brands:not(.known) img:first-child{opacity:1}}

.fx-check{display:flex;align-items:center;gap:10px;margin:14px 0 0;font-size:13.5px;color:#c4c6cf;cursor:pointer}
.fx-check input{width:18px;height:18px;accent-color:#c6ff3d}

.fx-or{display:flex;align-items:center;gap:12px;margin:18px 0 12px;font-size:12px;color:#6f717b;text-transform:uppercase;letter-spacing:.12em}
.fx-or::before,.fx-or::after{content:'';flex:1;height:1px;background:#ffffff17}
.fx-btcpay{display:grid;grid-template-columns:34px minmax(0,1fr) 20px;align-items:center;gap:14px;width:100%;min-height:62px;
  padding:10px 16px!important;border:1px solid #f7931a55!important;border-radius:6px!important;
  background:linear-gradient(135deg,#1a1206,#0a0a0c 70%)!important;color:#fff;text-align:left;cursor:pointer;font:inherit!important;
  transition:border-color .2s,box-shadow .2s}
.fx-btcpay:hover{border-color:#f7931a!important;box-shadow:0 8px 30px #f7931a26}
.fx-btcpay img{width:34px;height:34px}
.fx-btcpay b{display:block;font-size:15px;font-weight:600}
.fx-btcpay small{display:block;font-size:12px;color:#c9a57a;margin-top:2px}
.fx-arrow{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.fx-err{min-height:0;margin:0 0 12px;font-size:13.5px;color:#ff9b9b}
.fx-err:empty{display:none}
.fx-foot{margin-top:4px}
.fx-pay{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;padding:0 20px!important;
  border:1px solid #c6ff3d!important;border-radius:6px!important;background:#c6ff3d!important;color:#080a04!important;
  font:650 16px 'Plus Jakarta Sans',sans-serif!important;cursor:pointer;transition:background .2s,box-shadow .2s}
.fx-pay:hover:not(:disabled){background:#d4ff6b!important;box-shadow:0 10px 34px #c6ff3d33}
.fx-pay:disabled{opacity:.55;cursor:progress}
.fx-pay svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.fx-secure{display:flex;align-items:center;justify-content:center;gap:8px;margin:12px 0 0;font-size:12px;color:#7d7f89;text-align:center}
.fx-secure svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:2}

.fx-done{padding:24px 0 6px;text-align:center}
.fx-tick{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 18px;border-radius:50%;background:#c6ff3d14;box-shadow:inset 0 0 0 1px #c6ff3d66}
.fx-tick svg{width:30px;height:30px;fill:none;stroke:#c6ff3d;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24;stroke-dashoffset:24;animation:fx-tick .5s .15s ease-out forwards}
@keyframes fx-tick{to{stroke-dashoffset:0}}
.fx-done h3{margin:0 0 8px;font-size:24px;font-weight:600;letter-spacing:-.03em;color:#fff}
.fx-done p{margin:0 0 22px;font-size:14.5px;color:#a9abb5}

/* Only a card, no amount (Payment methods → Add a card). */
.fx-dlg.save-only #fx-amount-sec,.fx-dlg.save-only #fx-balance-row,.fx-dlg.save-only #fx-crypto-wrap,.fx-dlg.save-only #fx-save-row{display:none}

@media (max-width:560px){
  .fx-dlg{width:100vw;max-width:100vw;max-height:92dvh;margin:auto 0 0;border-radius:10px 10px 0 0;border-bottom:0}
  .fx-dlg[open]{animation:fx-up .3s cubic-bezier(.2,.8,.2,1)}
  @keyframes fx-up{from{transform:translateY(40px);opacity:0}}
  .fx-inner{padding:22px 18px 20px}
  .fx-head h2{font-size:24px}
  .fx-chips{grid-template-columns:repeat(2,1fr)}
  .fx-other-hint{display:none}
}
