:root{
    --bg:#05070d;
    --bg2:#0a1020;
    --panel:#101521;
    --panel2:#151b2a;
    --panel3:#1a2031;

    --purple:#8b3dff;
    --pink:#ef3f9f;
    --cyan:#38bdf8;
    --gold:#ffd633;

    --text:#f8f9ff;
    --muted:#aeb7ca;
    --line:rgba(177,120,255,.30);
    --line-soft:rgba(255,255,255,.09);

    --good:#9ef0b8;
    --good-bg:#123924;
    --bad:#ffb3bd;
    --bad-bg:#4a0d1b;
    --warn:#ffe797;
    --warn-bg:#5b4200;

    --shadow:0 18px 50px rgba(0,0,0,.32);
    --radius:18px;
}

*{
    box-sizing:border-box;
}

html{
    color-scheme:dark;
}

body{
    margin:0;
    min-height:100vh;
    color:var(--text);
    font-family:Arial,Helvetica,sans-serif;
    background:
        radial-gradient(circle at 12% 8%,rgba(56,189,248,.10),transparent 30%),
        radial-gradient(circle at 88% 12%,rgba(239,63,159,.10),transparent 30%),
        radial-gradient(circle at 60% 85%,rgba(139,61,255,.10),transparent 34%),
        linear-gradient(135deg,var(--bg),#080b14 48%,#0b0714);
}

a{
    color:#d9b8ff;
    text-decoration-color:rgba(217,184,255,.45);
}

a:hover{
    color:#fff;
}

.shell{
    width:100%;
    max-width:1180px;
    margin:0 auto;
    padding-left:20px;
    padding-right:20px;
}

/* =========================
   TOP NAVIGATION
   ========================= */

.topbar{
    position:sticky;
    top:0;
    z-index:50;
    background:rgba(5,7,13,.92);
    border-bottom:1px solid var(--line-soft);
    backdrop-filter:blur(18px);
    box-shadow:0 8px 30px rgba(0,0,0,.20);
}

.navwrap{
    min-height:78px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.brand{
    display:inline-flex;
    flex-direction:column;
    gap:3px;
    color:#fff;
    font-size:18px;
    font-weight:900;
    text-decoration:none;
    letter-spacing:.04em;
}

.brand span{
    display:block;
    color:#d8b5ff;
    font-size:12px;
    letter-spacing:.18em;
    text-transform:uppercase;
}

nav{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

nav a{
    color:#fff;
    text-decoration:none;
    padding:10px 14px;
    border:1px solid transparent;
    border-radius:10px;
    font-weight:800;
    transition:.18s ease;
}

nav a:hover{
    background:rgba(255,255,255,.07);
    border-color:rgba(255,255,255,.10);
    transform:translateY(-1px);
}

/* =========================
   MAIN PAGE
   ========================= */

main.shell{
    padding-top:38px;
    padding-bottom:60px;
}

.hero{
    margin-bottom:26px;
}

.eyebrow{
    color:#d9b8ff;
    font-size:13px;
    font-weight:900;
    letter-spacing:.13em;
    text-transform:uppercase;
}

h1{
    margin:8px 0 10px;
    font-size:40px;
    line-height:1.05;
    letter-spacing:-.02em;
}

h2{
    margin-top:0;
    font-size:27px;
    letter-spacing:-.01em;
}

h3{
    margin-top:0;
}

.muted{
    color:var(--muted);
    line-height:1.55;
}

/* =========================
   CARDS
   ========================= */

.card{
    position:relative;
    margin:20px 0;
    padding:24px;
    overflow:hidden;

    background:
        linear-gradient(145deg,rgba(20,25,39,.98),rgba(12,16,27,.98));

    border:1px solid var(--line);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:2px;
    background:linear-gradient(
        90deg,
        var(--cyan),
        var(--purple),
        var(--pink)
    );
    opacity:.9;
}

/* =========================
   GRID / FIELDS
   ========================= */

.grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.full{
    grid-column:1/-1;
}

.field{
    min-height:48px;
    padding:14px;

    background:#090d16;
    border:1px solid var(--line-soft);
    border-radius:11px;

    color:#fff;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}

.label{
    margin-bottom:6px;
    color:#cbb7e8;
    font-size:12px;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
}

/* =========================
   STATUS PILLS
   ========================= */

.pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 11px;

    border:1px solid rgba(255,255,255,.10);
    border-radius:999px;

    background:#312443;
    color:#eee3ff;

    font-size:12px;
    font-weight:900;
    letter-spacing:.02em;
}

.pill.good{
    background:var(--good-bg);
    color:var(--good);
    border-color:rgba(158,240,184,.28);
}

.pill.warn{
    background:var(--warn-bg);
    color:var(--warn);
    border-color:rgba(255,231,151,.25);
}

/* =========================
   BUTTONS
   ========================= */

.btn{
    display:inline-block;
    padding:12px 17px;

    border:1px solid rgba(255,255,255,.10);
    border-radius:10px;

    color:#fff;
    font-weight:900;
    text-decoration:none;
    cursor:pointer;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
}

.btn:hover{
    transform:translateY(-1px);
    filter:brightness(1.06);
}

.btn.gold{
    color:#fff;
    border-color:transparent;
    background:linear-gradient(135deg,var(--purple),var(--pink));
    box-shadow:0 10px 25px rgba(139,61,255,.18);
}

.btn.gray{
    background:#202638;
    color:#fff;
}

.btn.red{
    background:#a92d44;
    color:#fff;
}

/* =========================
   CASE LISTS
   ========================= */

.case-list{
    display:grid;
    gap:15px;
}

.case-row{
    padding:18px;

    background:#090d16;
    border:1px solid var(--line-soft);
    border-radius:14px;

    transition:.16s ease;
}

.case-row:hover{
    border-color:rgba(177,120,255,.34);
    background:#0c111c;
}

.case-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
}

.case-title{
    font-size:20px;
    font-weight:900;
}

.meta{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:11px 0;
}

.small{
    color:var(--muted);
    font-size:13px;
}

/* =========================
   LOGIN
   ========================= */

.login-wrap{
    width:100%;
    max-width:560px;
    margin:70px auto;
}

.login-card{
    position:relative;
    overflow:hidden;

    padding:34px;

    background:
        linear-gradient(145deg,rgba(20,25,39,.99),rgba(13,16,27,.99));

    border:1px solid var(--line);
    border-radius:22px;
    box-shadow:
        0 28px 80px rgba(0,0,0,.48),
        0 0 70px rgba(139,61,255,.07);
}

.login-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:3px;

    background:linear-gradient(
        90deg,
        var(--cyan),
        var(--purple),
        var(--pink)
    );
}

.login-card h1{
    font-size:39px;
    margin-bottom:14px;
}

.login-card .eyebrow{
    margin-bottom:8px;
}

.login-card .muted{
    margin-bottom:24px;
}

/* =========================
   FORMS
   ========================= */

input,
textarea,
select{
    width:100%;
    padding:13px 14px;

    border:1px solid rgba(255,255,255,.14);
    border-radius:10px;

    outline:none;

    background:#080c14;
    color:#fff;

    font-family:inherit;
    font-size:16px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

input:focus,
textarea:focus,
select:focus{
    background:#0b101a;
    border-color:#a855f7;
    box-shadow:0 0 0 3px rgba(168,85,247,.14);
}

textarea{
    min-height:120px;
    resize:vertical;
}

label{
    display:block;
    margin:16px 0 8px;
    color:#fff;
    font-weight:900;
}

/* =========================
   NOTICES
   ========================= */

.notice{
    padding:14px 15px;
    margin:15px 0;

    border-radius:11px;
    line-height:1.45;
}

.error{
    background:var(--bad-bg);
    color:var(--bad);
    border:1px solid #a63b50;
}

.success{
    background:#103a28;
    color:var(--good);
    border:1px solid #347d58;
}

/* =========================
   TABLES
   ========================= */

table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    overflow:hidden;

    background:#090d16;
    border:1px solid var(--line-soft);
    border-radius:13px;
}

th,
td{
    padding:13px 12px;
    text-align:left;
    vertical-align:top;
    border-bottom:1px solid var(--line-soft);
}

th{
    color:#d9b8ff;
    background:#151326;

    font-size:12px;
    font-weight:900;
    letter-spacing:.05em;
    text-transform:uppercase;
}

tr:last-child td{
    border-bottom:0;
}

tbody tr:hover{
    background:rgba(255,255,255,.025);
}

/* =========================
   UPLOADS
   ========================= */

.upload-list{
    margin:0;
    padding-left:20px;
}

.upload-list li{
    margin:8px 0;
}

/* =========================
   FOOTER
   ========================= */

.footer{
    margin-top:28px;
    padding:24px 0;

    border-top:1px solid var(--line-soft);

    color:var(--muted);
    font-size:13px;
    text-align:center;
}

/* =========================
   MOBILE
   ========================= */

@media(max-width:760px){

    .shell{
        padding-left:14px;
        padding-right:14px;
    }

    .navwrap{
        align-items:flex-start;
        flex-direction:column;
        padding-top:16px;
        padding-bottom:16px;
    }

    nav{
        width:100%;
    }

    nav a{
        flex:1 1 auto;
        text-align:center;
    }

    main.shell{
        padding-top:24px;
    }

    h1{
        font-size:31px;
    }

    h2{
        font-size:23px;
    }

    .grid{
        grid-template-columns:1fr;
    }

    .full{
        grid-column:auto;
    }

    .case-top{
        flex-direction:column;
    }

    .login-wrap{
        margin:28px auto;
    }

    .login-card{
        padding:24px 20px;
    }

    .login-card h1{
        font-size:31px;
    }

    .card{
        padding:19px;
    }

    table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }
}