
:root{--bg:#090a0c;--panel:#13161b;--line:#2d333c;--text:#f5f7fa;--muted:#aab2bd;--red:#d81f27;--green:#2f9a62}
*{box-sizing:border-box}html,body{margin:0;background:radial-gradient(circle at 50% 0,#20242b 0,#090a0c 48%);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;min-height:100%}
button,input,textarea,select{font:inherit}.topbar{position:sticky;top:0;z-index:20;background:rgba(8,9,11,.95);backdrop-filter:blur(10px);border-bottom:1px solid #242830;display:flex;align-items:center;justify-content:space-between;padding:10px 16px}.brandwrap{display:flex;align-items:center;gap:10px}.brand{width:68px;height:44px;object-fit:contain}.brandtitle{font-size:18px;font-weight:900}.brandsub{font-size:10px;letter-spacing:1.4px;color:#9fa6b0;text-transform:uppercase}
.primary,.secondary,.ghost{border:0;border-radius:11px;padding:12px 16px;font-weight:800;cursor:pointer}.primary{background:linear-gradient(180deg,#ee3038,#bb141b);color:white}.secondary{background:#252a32;color:white}.ghost{background:transparent;color:#d7dbe1;border:1px solid #3b414c}.compact{padding:9px 12px;width:auto!important}.full{width:100%;margin-top:10px}
.app{max-width:1060px;margin:22px auto;padding:0 14px 60px}.view{display:none}.view.active{display:block}.card{background:linear-gradient(180deg,#15191f,#101318);border:1px solid var(--line);border-radius:18px;padding:20px;margin-bottom:16px}.hero{max-width:520px;margin:55px auto;text-align:center}.heroicon{width:126px;border-radius:22px}.hero h1{font-size:34px;margin-bottom:4px}.hero p,.muted{color:var(--muted)}
.segmented{display:flex;border:1px solid #353c46;border-radius:12px;overflow:hidden;margin:18px 0}.seg{flex:1;border:0;background:#101319;color:#aeb5bf;padding:12px;font-weight:850}.seg.active{background:#252a32;color:white}
.pagehead,.cardhead{display:flex;justify-content:space-between;align-items:center;gap:12px}.pagehead{margin-bottom:14px}.pagehead h1{margin:3px 0 0}.eyebrow{font-size:11px;letter-spacing:1.4px;font-weight:900;color:#ff4d54}.grid{display:grid;gap:13px}.grid.two{grid-template-columns:1fr 1fr}
label{display:block;font-size:13px;font-weight:760;color:#d9dee5;margin:10px 0 5px}input,textarea,select{width:100%;margin-top:6px;background:#0a0d11;color:white;border:1px solid #3b424e;border-radius:10px;padding:12px;outline:none}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0 16px}.metric{background:#13171d;border:1px solid #2f353f;border-radius:15px;padding:16px}.metric .label{font-size:11px;color:#9fa7b2;text-transform:uppercase}.metric .value{font-size:26px;font-weight:900;margin-top:5px}.metric .sub{font-size:11px;color:#888f99}
.lineitem{display:grid;grid-template-columns:110px 1.7fr 80px 105px 105px 95px 40px;gap:8px;align-items:end;border-bottom:1px solid #282e36;padding:10px 0}.lineitem label{font-size:11px;margin:0}.sell{font-weight:900;padding:12px 4px}.remove{background:#241215;color:#ff7075;border:1px solid #5b2429;border-radius:9px;padding:10px;cursor:pointer}
.totals{max-width:640px;margin-left:auto}.totrow{display:flex;justify-content:space-between;padding:8px 0}.totrow.grand{font-size:23px;border-top:1px solid #363d46;margin-top:8px;padding-top:14px}
.invoicepaper{background:white;color:#111;border-radius:10px;padding:28px;margin-bottom:16px}.invoicepaper table{width:100%;border-collapse:collapse}.invoicepaper th,.invoicepaper td{padding:8px;border-bottom:1px solid #ddd;text-align:left}.invoicepaper .right{text-align:right}.invoicepaper .paid{font-size:28px;font-weight:900;color:#23844f}
.summary{background:#0d1014;border:1px solid #303640;border-left:4px solid var(--red);border-radius:12px;padding:14px;margin:12px 0;line-height:1.55}.terms{background:white;color:#111;border-radius:10px;padding:16px;max-height:330px;overflow:auto;font-size:13px;line-height:1.45}.sigbox{background:white;border-radius:12px;padding:10px;margin-top:9px}#signature{width:100%;height:190px;display:block;border:2px dashed #999;border-radius:7px;touch-action:none}.check{display:flex;align-items:flex-start;gap:11px;background:#151a20;border:1px solid #353c46;border-radius:11px;padding:13px;margin-top:14px}.check input{width:22px;height:22px;margin:0}
.paytabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:16px}.paytab{border:1px solid #3b424d;background:#101318;color:#bdc4ce;border-radius:10px;padding:11px;font-weight:800}.paytab.active{background:#272d36;color:white}.paypane{display:none}.paypane.active{display:block}.notice{padding:12px;border-radius:10px;background:#31290d;border:1px solid #745f1a;color:#ffe898;margin-bottom:12px}.msg{min-height:22px;margin-top:10px;color:#ffb6b8}
.tablewrap{overflow:auto}.tablewrap table{width:100%;border-collapse:collapse;min-width:760px}.tablewrap th,.tablewrap td{text-align:left;padding:11px;border-bottom:1px solid #2b3139;font-size:13px}.tablewrap th{color:#aab1bb;font-size:11px;text-transform:uppercase}.statuspill{display:inline-block;padding:4px 8px;border-radius:999px;background:#163425;color:#74d79e;font-size:11px;font-weight:850}.search{margin:8px 0 12px}.linkbtn{background:none;border:0;color:#ff6b70;text-decoration:underline;cursor:pointer}
.success{text-align:center;max-width:650px;margin:40px auto}.successicon{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;margin:0 auto 10px;background:var(--green);font-size:42px;font-weight:900}
@media(max-width:850px){.metrics{grid-template-columns:1fr 1fr}.lineitem{grid-template-columns:1fr 1fr}.grid.two{grid-template-columns:1fr}.paytabs{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.card{padding:15px}.brand{width:56px}.metric .value{font-size:22px}.invoicepaper{padding:16px;overflow:auto}}
