*{box-sizing:border-box}
body{margin:0;font-family:Arial,sans-serif;background:#101319;color:#f5f6f8}
.hidden{display:none!important}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 10%,#252b37,#101319 58%)}
.login-card{width:min(430px,100%);padding:40px;border:1px solid #2b3442;border-radius:20px;background:#1c222d;box-shadow:0 25px 70px #0007}
.brand{display:flex;gap:13px;align-items:center;margin-bottom:36px}
.logo{width:48px;height:48px;border-radius:13px;background:#d10b1f;display:grid;place-items:center;font-weight:900}
.brand b{font-size:24px}.brand i,.sidebrand span{color:#df0b21;font-style:normal}
.brand small{display:block;color:#91a4bf;font-size:12px;margin-top:3px}
.login-card h1{font-size:30px;margin:0 0 8px}
.login-card p{color:#91a4bf;font-size:14px;margin:0 0 28px}
.login-card label{display:block;color:#cbd5e1;font-size:13px;margin:17px 0 8px}
.login-card input{width:100%;height:50px;border:1px solid #303949;border-radius:10px;background:#161b24;color:#fff;padding:0 14px;outline:0}
.pw{display:flex}.pw input{border-radius:10px 0 0 10px}
.pw button{width:65px;border:1px solid #303949;border-left:0;border-radius:0 10px 10px 0;background:#161b24;color:#91a4bf}
.error{min-height:30px;padding-top:8px;color:#ff7380;font-size:13px}
.primary{width:100%;height:50px;border:0;border-radius:10px;background:#d10b1f;color:#fff;font-weight:800;cursor:pointer}
.primary:disabled{opacity:.65;cursor:wait}
footer{text-align:center;color:#5e6c7f;font-size:11px;margin-top:28px}
.app{display:flex;min-height:100vh}.sidebar{width:283px;min-width:283px;background:#151922;border-right:1px solid #282e38;display:flex;flex-direction:column}
.sidebrand{height:78px;border-bottom:1px solid #282e38;display:flex;align-items:center;padding:0 76px;font-size:24px;font-weight:800;white-space:nowrap}
.sidebar nav{padding:20px 14px}.nav{height:58px;border-radius:13px;display:flex;align-items:center;gap:18px;padding:0 22px;color:#8ea4c1;font-weight:600;margin-bottom:7px}
.nav.active{background:#d10b1f;color:#fff}.sidefoot{margin-top:auto;border-top:1px solid #282e38;padding:24px;color:#dce1e8;font-size:11px;text-align:center}
main{flex:1;min-width:0}header{height:78px;border-bottom:1px solid #282e38;display:flex;align-items:center;justify-content:space-between;padding:0 30px}
header h2{font-size:28px;margin:0}.headright{display:flex;align-items:center;gap:14px}
.headright button{width:48px;height:48px;border:0;border-radius:50%;background:#202631;color:#fff;font-size:24px}
.headright #avatar{width:48px;height:48px;border-radius:50%;background:#d10b1f;display:grid;place-items:center;font-weight:800}
.headright small{display:block;color:#91a4bf;margin-top:2px}.content{padding:27px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.card{border:1px solid #2b3442;border-radius:17px;background:#1d2430;box-shadow:0 10px 25px #0001}
.stats .card{min-height:208px;padding:25px}.icon{width:58px;height:58px;border-radius:15px;background:#3c1f2b;color:#e00d28;display:grid;place-items:center;font-size:24px;margin-bottom:21px}
.card span{display:block;color:#91afd2;font-size:16px;margin-bottom:13px}.card strong{font-size:42px}
.recent{margin-top:28px;padding:25px}.recent h3{font-size:18px;margin:0 0 14px}.tablewrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;min-width:760px}thead{background:#222c3d}th{padding:17px 18px;text-align:left}td{padding:17px 18px;border-bottom:1px solid #2a3240}
.loading{position:fixed;inset:0;background:#0a0c10e8;display:grid;place-items:center;z-index:20}.loading>div{width:42px;height:42px;border:3px solid #fff3;border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.loading span{margin-left:-105px;margin-top:100px;color:#d9e0e8}
@keyframes spin{to{transform:rotate(360deg)}}#bridge{position:fixed;width:1px;height:1px;border:0;left:-10px;bottom:-10px}
@media(max-width:1050px){.sidebar{width:235px;min-width:235px}.sidebrand{padding:0 40px}.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.sidebar{width:70px;min-width:70px}.sidebrand{padding:0;justify-content:center;font-size:0}.sidebrand span{font-size:18px}.nav{justify-content:center;padding:0}.nav span{display:none}.sidefoot{font-size:0}.stats{grid-template-columns:1fr}.content{padding:16px}.headright>div:last-child{display:none}header{padding:0 16px}header h2{font-size:22px}}
