#finance-purchases { min-width:0; color:var(--text,#f5f0fb); }
#finance-purchases [hidden] { display:none!important; }
#finance-purchases .mfp-head { position:static; inset:auto; z-index:auto; min-height:0; height:auto; padding:0; border:0; background:none; backdrop-filter:none; box-shadow:none; display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; }
.mfp-head h2 { font-size:clamp(23px,3vw,31px); line-height:1.18; letter-spacing:-.025em; margin:6px 0 10px; }
.mfp-head p { max-width:690px; margin:0; line-height:1.6; color:var(--muted,#b3a6c9); }
.mfp-kicker { font-size:10px; font-weight:800; letter-spacing:.12em; color:#ffd35a; }
.mfp-intro { display:flex; align-items:center; gap:12px; padding:15px 18px; margin-bottom:22px; border:1px solid #6a5626; border-radius:15px; background:linear-gradient(110deg,#ffd35a0e,#221a3b); }
.mfp-intro p { margin:0; font-size:13px; line-height:1.6; }
.mfp-intro-icon { display:grid; place-items:center; flex:none; height:32px; width:32px; border-radius:50%; color:#ffd35a; background:#ffd35a12; font-size:18px; font-weight:800; }
.mfp-stock-summary { margin-bottom:22px; padding:20px; border:1px solid var(--line,#3d3166); border-radius:18px; background:linear-gradient(120deg,#2b1b46,#171023); min-width:0; }
.mfp-stock-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.mfp-stock-head h3 { font-size:20px; margin:0 0 6px; }
.mfp-stock-head p { font-size:12px; line-height:1.6; color:var(--muted,#b3a6c9); margin:0; }
.mfp-stock-status { font-size:12px; line-height:1.6; margin:14px 0; color:#d2c5e6; }
.mfp-stock-values { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0; }
.mfp-stock-values>div { min-width:0; padding:14px; border:1px solid #8060a544; background:#100a2066; border-radius:12px; }
.mfp-stock-values dt,.mfp-stock-rates dt { color:var(--muted,#b3a6c9); font-size:12px; line-height:1.5; }
.mfp-stock-values dd { margin:7px 0 0; font-size:clamp(17px,2.1vw,24px); font-weight:800; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; line-height:1.35; color:#ffd35a; }
.mfp-stock-rates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:14px 0 0; }
.mfp-stock-rates dd { margin:4px 0 0; font-size:15px; font-weight:700; }
.mfp-stock-values:empty,.mfp-stock-rates:empty { display:none; }
.mfp-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:22px; }
.mfp-card { min-width:0; padding:24px; border:1px solid var(--line,#3d3166); border-radius:20px; background:linear-gradient(155deg,#241a3d,#151024 60%); box-shadow:0 15px 40px #0002; }
.mfp-card-head { display:flex; align-items:center; gap:13px; }
.mfp-card-head h3 { margin:5px 0 0; font-size:22px; line-height:1.2; }
.mfp-symbol { display:grid; place-items:center; width:48px; height:48px; flex:none; border:1px solid #a78bfa44; border-radius:14px; background:#a78bfa15; color:#d8c4ff; font-size:27px; }
.mfp-card[data-kind=cash] .mfp-symbol { border-color:#ffd35a44; background:#ffd35a12; color:#ffd35a; }
.mfp-description { color:var(--muted,#b3a6c9); font-size:14px; line-height:1.7; margin:18px 0 15px; }
.mfp-policy { margin:0 0 20px; padding:10px 12px; border:1px solid var(--line,#3d3166); border-radius:10px; background:#0d091844; font-size:12px; line-height:1.6; color:#d2c5e6; }
.mfp-form,.mfp-review { display:grid; gap:10px; min-width:0; }
.mfp-form label,.mfp-review>label { font-size:13px; font-weight:700; }
#finance-purchases input:not([type=checkbox]) { box-sizing:border-box; width:100%; min-width:0; min-height:48px; border:1px solid var(--line,#3d3166); border-radius:12px; padding:12px 14px; background:var(--surface,#140f24); color:var(--text,#f5f0fb); font:inherit; font-size:17px; }
#finance-purchases input::placeholder { color:#887c9d; }
.mfp-form small,.mfp-review>small { color:var(--muted,#b3a6c9); font-size:11px; line-height:1.5; }
#finance-purchases :is(button,.mfp-pay) { box-sizing:border-box; min-height:46px; max-width:100%; border:1px solid var(--line,#3d3166); border-radius:12px; padding:12px 16px; color:var(--text,#f5f0fb); font:inherit; font-size:13px; font-weight:750; cursor:pointer; text-align:center; text-decoration:none; }
#finance-purchases button.mfp-primary { background:linear-gradient(120deg,#b740dc,#7c3aed); border-color:#b55cea; }
#finance-purchases .mfp-secondary { background:var(--surface-raised,#221a3b); }
#finance-purchases button:hover:not(:disabled),#finance-purchases .mfp-pay:hover { filter:brightness(1.12); border-color:#b9a5ff; }
#finance-purchases button:disabled,#finance-purchases input:disabled { opacity:.5; cursor:default; }
#finance-purchases :is(button,a,input):focus-visible { outline:3px solid #ffd35a; outline-offset:3px; }
.mfp-review { margin-top:20px; padding:18px; background:#0d0918aa; border:1px solid #7656a7; border-radius:15px; }
.mfp-review h4 { margin:0 0 2px; font-size:16px; }
.mfp-totals,.mfp-allocation { display:grid; gap:0; margin:0 0 10px; min-width:0; }
.mfp-totals>div,.mfp-allocation>div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:11px 0; border-bottom:1px solid #3d316655; }
.mfp-totals dt,.mfp-allocation dt { font-size:12px; line-height:1.5; color:var(--muted,#b3a6c9); }
.mfp-totals dd,.mfp-allocation dd { margin:0; font-weight:800; font-size:16px; text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.mfp-totals>div:last-child dd { color:#ffd35a; font-size:22px; }
.mfp-ack { display:flex; align-items:flex-start; gap:10px; padding:12px 0; line-height:1.6; font-size:12px!important; font-weight:500!important; }
.mfp-ack input { width:20px; height:20px; flex:none; margin:1px 0 0; accent-color:#bb64ec; }
.mfp-outcome { display:grid; gap:12px; margin-top:22px; padding:18px; border:1px solid #6a5626; border-radius:15px; background:#ffd35a06; }
.mfp-outcome>strong { font-size:17px; color:#ffd35a; }
.mfp-reference { display:block; min-width:0; font-size:11px; color:#d0bedf; line-height:1.7; overflow-wrap:anywhere; }
.mfp-outcome>p { margin:0; font-size:13px; line-height:1.7; }
#finance-purchases .mfp-pay { display:block; color:#171020; background:linear-gradient(120deg,#ffdc70,#e6b940); border-color:#ffd35a; }
.mfp-status { margin:14px 0 0; font-size:12px; color:#d9c5eb; line-height:1.6; overflow-wrap:anywhere; }
.mfp-status:empty { display:none; }
.mfp-footnote { color:var(--muted,#b3a6c9); font-size:11px; line-height:1.7; margin:18px 0 0; border-top:1px solid #3d316666; padding-top:14px; }
@media(max-width:900px) { .mfp-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:540px) { #finance-purchases .mfp-head { display:grid; gap:14px; } .mfp-head>.mfp-secondary { justify-self:start; } .mfp-card { padding:18px; border-radius:16px; } .mfp-card-head h3 { font-size:21px; } .mfp-intro { padding:13px; align-items:flex-start; } .mfp-review,.mfp-outcome { padding:13px; } .mfp-totals>div,.mfp-allocation>div { grid-template-columns:minmax(0,1fr); gap:3px; } .mfp-totals dd,.mfp-allocation dd { text-align:left; } .mfp-stock-summary { padding:16px; } .mfp-stock-head { display:grid; gap:12px; } .mfp-stock-head>.mfp-secondary { justify-self:start; } .mfp-stock-values,.mfp-stock-rates { grid-template-columns:minmax(0,1fr); } .mfp-stock-values>div { padding:12px; } .mfp-stock-values dd { font-size:21px; margin-top:4px; } }
@media(prefers-reduced-motion:reduce) { #finance-purchases * { transition:none!important; animation:none!important; scroll-behavior:auto; } }
