:root{
    --bg0:#020617;
    --bg1:#0f172a;
    --primary:#6366f1;
    --primary2:#818cf8;
    --emerald:#10b981;
    --emerald2:#34d399;
    --danger:#ef4444;
    --warning:#f59e0b;
    --text:#f8fafc;
    --muted:#94a3b8;
    --glass:rgba(15,23,42,.70);
    --glass2:rgba(30,41,59,.58);
    --border:rgba(99,102,241,.36);
    --glow:0 0 28px rgba(99,102,241,.28);
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    min-height:100vh;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at 12% 8%,rgba(99,102,241,.28),transparent 28%),
        radial-gradient(circle at 88% 18%,rgba(16,185,129,.20),transparent 24%),
        radial-gradient(circle at 50% 100%,rgba(124,58,237,.18),transparent 30%),
        linear-gradient(135deg,var(--bg0),var(--bg1));
    overflow-x:hidden;
}

body::before,
body::after{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:-2;
}

body::before{
    background-image:
        radial-gradient(circle,rgba(255,255,255,.18) 1px,transparent 1px),
        radial-gradient(circle,rgba(99,102,241,.28) 1px,transparent 1px);
    background-size:90px 90px,140px 140px;
    animation:particles 26s linear infinite;
    opacity:.32;
}

body::after{
    background:
        linear-gradient(rgba(99,102,241,.06) 1px,transparent 1px),
        linear-gradient(90deg,rgba(99,102,241,.06) 1px,transparent 1px);
    background-size:42px 42px;
    mask-image:linear-gradient(to bottom,rgba(0,0,0,.4),transparent 75%);
    z-index:-1;
}

@keyframes particles{
    0%{transform:translate3d(0,0,0)}
    100%{transform:translate3d(-140px,-90px,0)}
}

@keyframes fadeInUp{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

a{
    color:inherit;
    text-decoration:none;
}

p{
    color:#cbd5e1;
    line-height:1.6;
}

small,.muted{
    color:var(--muted);
}

.center-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:28px;
}

.glass-card{
    background:var(--glass);
    border:1px solid var(--border);
    border-radius:28px;
    box-shadow:var(--glow),0 30px 90px rgba(0,0,0,.55);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    animation:fadeInUp .55s ease both;
}

.login-card{
    width:100%;
    max-width:480px;
    padding:34px;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
}

.brand-mark{
    width:44px;
    height:44px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,var(--primary),var(--emerald));
    box-shadow:0 0 30px rgba(99,102,241,.45);
    font-weight:950;
}

.eyebrow{
    color:var(--primary2);
    text-transform:uppercase;
    letter-spacing:3px;
    font-size:12px;
    font-weight:900;
}

h1{
    font-size:clamp(30px,5vw,46px);
    line-height:1.02;
    margin:8px 0 14px;
}

h2{
    font-size:26px;
    margin:0 0 12px;
}

h3{
    margin:0 0 8px;
}

.input-group{
    margin-top:20px;
}

label{
    display:block;
    font-size:13px;
    font-weight:800;
    color:#bfdbfe;
    margin-bottom:8px;
}

input,
textarea,
select{
    width:100%;
    padding:15px 16px;
    border-radius:16px;
    border:1px solid rgba(148,163,184,.24);
    background:rgba(2,6,23,.76);
    color:var(--text);
    outline:none;
    font-size:15px;
    transition:.18s ease;
}

textarea{
    min-height:130px;
    resize:vertical;
}

input:focus,
textarea:focus,
select:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(99,102,241,.16),0 0 24px rgba(99,102,241,.22);
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:48px;
    padding:14px 18px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.10);
    background:linear-gradient(135deg,var(--primary),#7c3aed);
    color:white;
    font-weight:950;
    cursor:pointer;
    transition:.18s ease;
    box-shadow:0 14px 40px rgba(99,102,241,.25);
}

.btn:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 46px rgba(99,102,241,.36);
}

.btn.block{
    width:100%;
}

.btn.secondary{
    background:rgba(30,41,59,.78);
    box-shadow:none;
}

.btn.emerald{
    background:linear-gradient(135deg,var(--emerald),#059669);
    box-shadow:0 14px 40px rgba(16,185,129,.22);
}

.btn.danger{
    background:linear-gradient(135deg,var(--danger),#991b1b);
}

.alert{
    padding:14px 16px;
    border-radius:18px;
    background:rgba(245,158,11,.10);
    color:#fde68a;
    border:1px solid rgba(245,158,11,.28);
    margin:16px 0;
}

.shell{
    width:min(1280px,100%);
    margin:0 auto;
    padding:28px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding:22px;
    margin-bottom:22px;
}

.nav{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.nav a{
    padding:10px 14px;
    border-radius:999px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    color:#dbeafe;
    transition:.18s ease;
}

.nav a:hover{
    transform:translateX(3px);
    border-color:rgba(99,102,241,.6);
    box-shadow:0 0 20px rgba(99,102,241,.18);
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:18px;
}

.notice-card,
.metric-card,
.panel{
    padding:22px;
    transition:.18s ease;
}

.notice-card:hover,
.metric-card:hover,
.panel:hover{
    transform:translateY(-2px);
    border-color:rgba(16,185,129,.42);
}

.notice-card{
    min-height:260px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.card-top{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:flex-start;
    margin-bottom:14px;
}

.badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 11px;
    border-radius:999px;
    font-size:12px;
    font-weight:950;
    white-space:nowrap;
}

.badge.green{
    color:#bbf7d0;
    background:rgba(16,185,129,.16);
    border:1px solid rgba(16,185,129,.32);
}

.badge.blue{
    color:#c7d2fe;
    background:rgba(99,102,241,.18);
    border:1px solid rgba(99,102,241,.34);
}

.badge.yellow{
    color:#fde68a;
    background:rgba(245,158,11,.15);
    border:1px solid rgba(245,158,11,.28);
}

.badge.red{
    color:#fecaca;
    background:rgba(239,68,68,.15);
    border:1px solid rgba(239,68,68,.3);
}

.metric-value{
    font-size:44px;
    font-weight:950;
    margin-top:8px;
}

.metric-label{
    color:var(--muted);
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:1px;
    font-weight:900;
}

.table-wrap{
    overflow:auto;
    margin-top:18px;
}

table{
    width:100%;
    border-collapse:collapse;
    min-width:880px;
}

th,td{
    padding:15px;
    border-bottom:1px solid rgba(148,163,184,.14);
    text-align:left;
}

th{
    color:#bfdbfe;
    background:rgba(2,6,23,.38);
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:1px;
}

tr:hover td{
    background:rgba(99,102,241,.055);
}

.progress{
    height:10px;
    width:100%;
    border-radius:999px;
    overflow:hidden;
    background:rgba(30,41,59,.9);
    border:1px solid rgba(148,163,184,.12);
}

.progress > div{
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,var(--emerald),var(--primary));
    box-shadow:0 0 18px rgba(16,185,129,.4);
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.form-grid .full{
    grid-column:1/-1;
}

.confirm-hero{
    text-align:center;
}

.success-icon{
    width:92px;
    height:92px;
    margin:0 auto 18px;
    border-radius:28px;
    display:grid;
    place-items:center;
    color:white;
    font-size:48px;
    background:linear-gradient(135deg,var(--emerald),var(--primary));
    box-shadow:0 0 48px rgba(16,185,129,.38);
}

.copy-row{
    display:flex;
    gap:10px;
    align-items:center;
}

.copy-row input{
    margin:0;
}

@media(max-width:760px){
    .shell{
        padding:16px;
    }

    .topbar{
        display:block;
    }

    .nav{
        margin-top:16px;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .login-card{
        padding:24px;
    }

    .grid{
        grid-template-columns:1fr;
    }
}