:root {
  --funds-green:#55e68c;
  --funds-blue:#5fa1ff;
  --funds-gold:#f7c66b;
}

.funds-hero { padding-bottom:48px; }
.funds-shell { position:relative; z-index:1; width:min(960px,calc(100% - 40px)); margin:0 auto; padding:0 0 100px; display:grid; gap:17px; }

.funds-total,.funds-panel,.funds-note { position:relative; border:1px solid rgba(15,104,234,.28); border-radius:19px; background:linear-gradient(160deg,rgba(6,14,27,.98),rgba(2,7,15,.99)); box-shadow:0 20px 50px rgba(0,0,0,.22); transition:transform .14s cubic-bezier(.4,0,.2,1),box-shadow .14s,border-color .14s; }
.funds-total::before,.funds-panel::before,.funds-note::before { content:""; position:absolute; z-index:2; top:0; left:0; right:0; height:2px; background:linear-gradient(to right,transparent,#0f68ea,transparent); opacity:0; transition:opacity .14s; pointer-events:none; }
.funds-total:hover,.funds-panel:hover,.funds-note:hover { transform:translateY(-4px); border-color:rgba(15,104,234,.55); box-shadow:0 22px 54px rgba(0,0,0,.46),0 0 28px rgba(15,104,234,.12); }
.funds-total:hover::before,.funds-panel:hover::before,.funds-note:hover::before { opacity:1; }

.funds-total { display:flex; align-items:center; justify-content:space-between; gap:22px; min-width:0; padding:25px 26px; border-color:rgba(85,230,140,.3); }
.funds-total::before { background:linear-gradient(to right,transparent,var(--funds-green),transparent); }
.funds-total:hover { border-color:rgba(85,230,140,.62); box-shadow:0 22px 54px rgba(0,0,0,.46),0 0 30px rgba(85,230,140,.12); }
.funds-total h2 { margin:6px 0 7px; color:#fff; font:900 23px/1 'Cinzel',serif; }
.funds-total p:not(.funds-kicker) { margin:0; color:#8fa8c5; font-size:14px; }
.funds-total>strong { flex:0 0 auto; color:#bdf7d1; font:900 clamp(30px,5vw,48px)/1 'Cinzel',serif; white-space:nowrap; }

.funds-panel { min-width:0; padding:24px 26px; overflow:visible; }
.funds-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.funds-panel-heading h2 { margin:6px 0 0; color:#fff; font:900 23px/1.08 'Cinzel',serif; }
.funds-panel-heading>span { color:#7f9dbf; font:800 8px/1 'JetBrains Mono',monospace; letter-spacing:.1em; text-transform:uppercase; }
.funds-kicker { margin:0; color:#80baff; font:900 8px/1 'JetBrains Mono',monospace; letter-spacing:.17em; text-transform:uppercase; }

.funds-ongoing-panel:hover,.funds-ongoing-panel:focus-within { z-index:20; }
.funds-cost-list { display:grid; gap:9px; margin-top:20px; }
.funds-cost-row { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; min-height:58px; padding:11px 13px; border:1px solid rgba(95,161,255,.14); border-radius:11px; background:rgba(3,10,20,.68); transition:transform .12s cubic-bezier(.4,0,.2,1),box-shadow .12s,border-color .12s,background .12s; }
.funds-cost-row:hover { transform:translateY(-3px) translateX(2px); border-color:rgba(247,198,107,.68); background:linear-gradient(160deg,rgba(6,14,27,.98),rgba(2,7,15,.99)); box-shadow:0 16px 42px rgba(0,0,0,.42),0 0 22px rgba(247,198,107,.14); }
.funds-cost-row span { min-width:0; }
.funds-cost-row b { display:block; overflow:hidden; color:#a9bdd6; font-size:15px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.funds-cost-row small { display:block; margin-top:4px; color:#6f8eaf; font:800 7px/1.3 'JetBrains Mono',monospace; letter-spacing:.07em; text-transform:uppercase; }
.funds-cost-row>strong { color:#edf6ff; font:900 11px/1 'JetBrains Mono',monospace; white-space:nowrap; }
.funds-cost-row-detail { cursor:help; outline:none; overflow:visible; }
.funds-cost-row-detail:hover,.funds-cost-row-detail:focus-visible,.funds-cost-row-detail:focus-within { z-index:70; border-color:rgba(247,198,107,.68); box-shadow:0 16px 42px rgba(0,0,0,.42),0 0 22px rgba(247,198,107,.14); }
.funds-cost-row-detail:focus-visible { box-shadow:0 16px 42px rgba(0,0,0,.42),0 0 22px rgba(247,198,107,.16),0 0 0 3px rgba(247,198,107,.1); }

.funds-cost-tooltip { position:absolute; right:0; bottom:calc(100% + 10px); z-index:90; width:min(380px,calc(100vw - 28px)); min-width:0; padding:14px; border:1px solid rgba(247,198,107,.46); border-radius:11px; background:linear-gradient(160deg,rgba(8,16,30,.995),rgba(2,7,15,.995)); box-shadow:0 18px 42px rgba(0,0,0,.58),0 0 24px rgba(15,104,234,.18); opacity:0; visibility:hidden; pointer-events:none; transform:translateY(5px); transition:opacity .08s ease,visibility 0s linear .08s,transform .08s ease; text-align:left; }
.funds-cost-tooltip::after { content:""; position:absolute; top:100%; right:22px; width:9px; height:9px; border-right:1px solid rgba(247,198,107,.46); border-bottom:1px solid rgba(247,198,107,.46); background:rgba(4,8,16,.99); transform:translateY(-5px) rotate(45deg); }
.funds-cost-tooltip-kicker { display:block!important; margin:0 0 6px!important; color:#ffe4a0!important; font:900 9px/1 'JetBrains Mono',monospace!important; letter-spacing:.1em!important; text-transform:uppercase!important; }
.funds-cost-tooltip-title { display:block!important; color:#e8f2ff!important; font:800 15px/1.4 'Crimson Pro',Georgia,serif!important; white-space:normal!important; }
.funds-cost-tooltip-description { margin:9px 0 0; padding-top:9px; border-top:1px solid rgba(95,161,255,.16); color:#b8cce5; font:600 13px/1.5 'Crimson Pro',Georgia,serif; white-space:pre-line; overflow-wrap:anywhere; }
.funds-cost-tooltip-description.muted { color:#7793b5; font-style:italic; }
.funds-cost-tooltip-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:12px; padding-top:12px; border-top:1px solid rgba(95,161,255,.16); }
.funds-cost-tooltip-stat { min-width:0; padding:8px 9px; border:1px solid rgba(95,161,255,.2); border-radius:8px; background:rgba(15,104,234,.06); }
.funds-cost-tooltip-stat span { display:block!important; margin:0 0 4px!important; color:#7fa7df!important; font:900 7px/1 'JetBrains Mono',monospace!important; letter-spacing:.07em!important; text-transform:uppercase!important; }
.funds-cost-tooltip-stat strong { display:block!important; overflow-wrap:anywhere; color:#edf5ff!important; font:900 10px/1.25 'JetBrains Mono',monospace!important; white-space:normal!important; }
.funds-cost-tooltip-stat.payout { border-color:rgba(247,198,107,.3); background:rgba(247,198,107,.06); }
.funds-cost-tooltip-stat.payout strong { color:#ffe4a0!important; }
.funds-cost-row-detail:hover .funds-cost-tooltip,.funds-cost-row-detail:focus-visible .funds-cost-tooltip,.funds-cost-row-detail:focus-within .funds-cost-tooltip { opacity:1; visibility:visible; transform:translateY(0); transition-delay:0s; }

.funds-empty { padding:25px 14px; border:1px dashed rgba(95,161,255,.2); border-radius:12px; color:#728dab; text-align:center; font-size:14px; }

.funds-note { padding:20px 22px; border-color:rgba(85,230,140,.22); }
.funds-note::before { background:linear-gradient(to right,transparent,var(--funds-green),transparent); }
.funds-note:hover { border-color:rgba(85,230,140,.55); box-shadow:0 22px 54px rgba(0,0,0,.46),0 0 28px rgba(85,230,140,.11); }
.funds-note>p:not(.funds-kicker) { max-width:900px; margin:10px 0 8px; color:#b0c3d9; font-size:16px; line-height:1.5; white-space:pre-wrap; }
.funds-note small { color:#6683a4; font:800 8px/1.4 'JetBrains Mono',monospace; letter-spacing:.08em; text-transform:uppercase; }

html.ll-js body.ll-server-funds-page .ll-reveal { opacity:0!important; transform:translateY(20px)!important; transition:opacity .45s ease,transform .45s cubic-bezier(.4,0,.2,1)!important; }
html.ll-js body.ll-server-funds-page .ll-reveal.visible { opacity:1!important; transform:translateY(0)!important; }
html.ll-js body.ll-server-funds-page :is(.funds-total,.funds-panel,.funds-note).ll-reveal.visible:hover { transform:translateY(-4px)!important; }

@media(max-width:640px) {
  .funds-hero { padding-bottom:32px; }
  .funds-shell { width:min(100% - 28px,960px); padding-bottom:70px; }
  .funds-total { align-items:flex-start; flex-direction:column; gap:18px; padding:22px 20px; }
  .funds-total>strong { font-size:38px; }
  .funds-panel { padding:20px 16px; }
  .funds-panel-heading { align-items:flex-start; }
  .funds-cost-tooltip { right:auto; left:0; }
  .funds-cost-tooltip::after { right:auto; left:22px; }
}
@media(prefers-reduced-motion:reduce) {
  .funds-total,.funds-total::before,.funds-panel,.funds-panel::before,.funds-note,.funds-note::before,.funds-cost-row,.funds-cost-tooltip { transition:none!important; }
  html.ll-js body.ll-server-funds-page .ll-reveal { transition:none!important; }
}


/* Future improvements / wishlist */
.funds-improvement-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:20px; }
.funds-improvement-row { min-width:0; padding:14px 15px; border:1px solid rgba(95,161,255,.14); border-radius:11px; background:rgba(3,10,20,.68); transition:transform .12s cubic-bezier(.4,0,.2,1),box-shadow .12s,border-color .12s,background .12s; }
.funds-improvement-row:hover { transform:translateY(-3px); border-color:rgba(95,161,255,.5); background:linear-gradient(160deg,rgba(6,14,27,.98),rgba(2,7,15,.99)); box-shadow:0 16px 42px rgba(0,0,0,.4),0 0 22px rgba(15,104,234,.12); }
.funds-improvement-row-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.funds-improvement-row h3 { min-width:0; margin:0; color:#dceaff; font:900 16px/1.2 'Cinzel',serif; overflow-wrap:anywhere; }
.funds-improvement-row .funds-improvement-cost { flex:0 0 auto; color:#bdd9ff; font:900 10px/1 'JetBrains Mono',monospace; white-space:nowrap; }
.funds-improvement-row p { margin:9px 0 0; color:#8fa8c5; font-size:14px; line-height:1.45; white-space:pre-line; overflow-wrap:anywhere; }
.funds-improvement-row small { display:block; margin-top:9px; color:#6686ad; font:800 7px/1.25 'JetBrains Mono',monospace; letter-spacing:.08em; text-transform:uppercase; }

@media(max-width:640px) {
  .funds-improvement-list { grid-template-columns:1fr; }
}
