.fox-funds-dialog[hidden], .fox-funds-dialog:not([open]) { display:none !important; }
.fox-funds-dialog[open] {
    --funds-accent:var(--fox-tone-as4l15,#c78cff);
    position:fixed; inset:0; display:block; box-sizing:border-box;
    width:min(460px,calc(100vw - 28px)); max-width:none;
    height:fit-content; max-height:calc(100dvh - 28px);
    margin:auto; padding:0; border:0; border-radius:18px;
    background:transparent; color:var(--fox-tone-as2l19,#eee6f6);
    overflow:visible; animation:fox-funds-reveal .2s ease-out;
}
.fox-funds-dialog::backdrop { background:rgba(5,3,12,.84); backdrop-filter:blur(8px); }
.fox-funds-open { overflow:hidden; }
.fox-funds-dialog__panel {
    position:relative; box-sizing:border-box; padding:32px 26px 24px;
    max-height:calc(100dvh - 28px); overflow-y:auto;
    border:1px solid rgba(199,125,255,.6); border-radius:18px;
    background:radial-gradient(ellipse at 50% 0,rgba(199,125,255,.12),transparent 65%),var(--fox-tone-ts1l1,#100c19);
    box-shadow:0 0 30px rgba(174,92,238,.2),0 24px 70px rgba(0,0,0,.65);
    text-align:center;
}
.fox-funds-dialog__icon { display:grid; place-items:center; width:72px; height:72px; box-sizing:border-box; margin:0 auto 18px; border:1px solid rgba(255,114,141,.38); border-radius:20px; background:rgba(255,114,141,.08); color:#ff8ba3; box-shadow:0 0 22px rgba(255,114,141,.1); }
.fox-funds-dialog__icon svg { width:43px; height:43px; }
.fox-funds-dialog h2 { margin:0 20px 12px; color:var(--funds-accent); font-size:clamp(20px,4.8vw,25px); line-height:1.3; font-weight:800; text-shadow:0 0 14px rgba(199,125,255,.2); }
.fox-funds-dialog p { margin:0 auto 24px; max-width:330px; color:var(--fox-tone-as1l17,#d7cee2); font-size:14px; line-height:1.65; font-weight:400; }
.fox-funds-dialog .fox-funds-dialog__close { position:absolute; top:13px; right:13px; display:grid; place-items:center; width:30px; height:30px; padding:0; border:1px solid rgba(199,125,255,.35); border-radius:9px; background:rgba(199,125,255,.07); color:var(--funds-accent); font:inherit; font-size:24px; line-height:1; cursor:pointer; }
.fox-funds-dialog__actions { display:flex; gap:10px; justify-content:center; }
.fox-funds-dialog__actions button, .fox-funds-dialog__actions a { display:flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:44px; padding:10px 16px; border:1px solid rgba(199,125,255,.4); border-radius:10px; background:rgba(199,125,255,.05); color:var(--funds-accent); font:inherit; font-size:13px; font-weight:600; line-height:1.35; text-decoration:none; cursor:pointer; transition:background .2s,box-shadow .2s; }
.fox-funds-dialog__actions .fox-funds-dialog__refill { flex:1; max-width:240px; border-color:rgba(199,125,255,.8); background:linear-gradient(115deg,rgba(156,63,221,.3),rgba(199,125,255,.14)); }
.fox-funds-dialog__actions button:hover, .fox-funds-dialog__actions a:hover { color:#e8c9ff; background:rgba(199,125,255,.22); box-shadow:0 0 16px rgba(199,125,255,.2); text-decoration:none; }
.fox-funds-dialog button:focus-visible, .fox-funds-dialog a:focus-visible { outline:2px solid var(--funds-accent); outline-offset:3px; }
@keyframes fox-funds-reveal { from {opacity:0;transform:translateY(8px) scale(.98);} to {opacity:1;transform:translateY(0) scale(1);} }
@media(max-width:380px) { .fox-funds-dialog__panel {padding:30px 18px 20px;} .fox-funds-dialog__actions {flex-direction:column-reverse;} .fox-funds-dialog__actions .fox-funds-dialog__refill {max-width:none;} }
@media(prefers-reduced-motion:reduce) { .fox-funds-dialog[open] {animation:none;} .fox-funds-dialog__actions button, .fox-funds-dialog__actions a {transition:none;} }
