:root{--bg:#070b14;--panel:#0f1626;--line:#22304a;--text:#fff;--muted:#a8bfdc;--blue:#2f6bff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,Arial,sans-serif}.sidebar{position:fixed;inset:0 auto 0 0;width:260px;background:#0b1220;border-right:1px solid var(--line);padding:28px 20px}.brand{font-size:28px;font-weight:800;margin-bottom:34px}.brand b{color:var(--blue)}nav a,nav span{display:block}nav span{color:#6f86aa;text-transform:uppercase;font-size:12px;margin:22px 0 10px}nav a{color:#fff;text-decoration:none;padding:12px 14px;border-radius:10px;margin:4px 0}nav a:hover,nav a:first-of-type{background:#121b2d}.logout{color:#ff8c8c!important;margin-top:28px!important}.main{margin-left:260px;padding:28px 32px}.top{height:50px;display:flex;align-items:center;justify-content:space-between}.muted{color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:18px;margin:28px 0}.card,.panel,.login-box{background:var(--panel);border:1px solid var(--line);border-radius:16px}.card{padding:24px}.card span{color:#8fb6e9;font-size:13px}.card b{display:block;font-size:30px;margin-top:12px}.panel{padding:24px;margin-top:20px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:16px;border-bottom:1px solid var(--line)}th{color:#b5cae9}em{font-style:normal;background:#063b18;color:#2ef06d;padding:5px 12px;border-radius:999px;font-size:12px}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center}.login-box{width:440px;padding:32px}.login-box h1{margin:0 0 22px}.login-box label{display:block;margin:14px 0 8px}.login-box input{width:100%;padding:14px;border-radius:12px;background:#090f1b;border:1px solid #354765;color:#fff}.login-box button{margin-top:18px;background:var(--blue);color:#fff;border:0;border-radius:10px;padding:13px 22px;font-weight:800}.alert{background:#5b1111;border:1px solid #a02b2b;padding:14px;border-radius:12px;margin-bottom:16px}@media(max-width:900px){.sidebar{position:static;width:auto}.main{margin-left:0}.cards{grid-template-columns:1fr}}

.narrow-panel{max-width:620px}
.admin-form{margin-top:10px}
.field{margin-bottom:18px}
.field label{display:block;margin-bottom:8px;color:#b5cae9;font-weight:700}
.field input,.field select,.field textarea{
    width:100%;
    padding:14px;
    border-radius:12px;
    background:#090f1b;
    border:1px solid #354765;
    color:#fff;
    outline:none;
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#2f6bff}
.actions{margin-top:22px}
.btn{
    background:#2f6bff;
    color:#fff;
    border:0;
    border-radius:10px;
    padding:13px 22px;
    font-weight:800;
    cursor:pointer;
}
.btn:hover{filter:brightness(1.08)}
.alert.ok{
    background:#063b18;
    border-color:#137a35;
    color:#86ffad;
}

.page-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:26px;
}

.page-head h1{margin-bottom:6px}

.panel small{
    display:block;
    margin-top:6px;
    color:#7f94b4;
}

.row-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.row-actions form{margin:0}

.btn.secondary{
    background:#111a2b;
    border:1px solid #354765;
}

.btn.danger{
    background:#601818;
    border:1px solid #9d2b2b;
}

.badge{
    display:inline-flex;
    align-items:center;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    text-transform:capitalize;
}

.badge.active{
    background:#063b18;
    color:#86ffad;
}

.badge.inactive{
    background:#39220b;
    color:#ffd08a;
}

.two-col{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

@media(max-width:760px){
    .page-head{align-items:flex-start;flex-direction:column}
    .two-col{grid-template-columns:1fr}
    .row-actions{flex-direction:column;align-items:flex-start}
}

.wide-form{
    max-width:920px;
}

.badge.status-draft{
    background:#1f2937;
    color:#d1d5db;
}

.badge.status-pending{
    background:#39220b;
    color:#ffd08a;
}

.badge.status-active{
    background:#063b18;
    color:#86ffad;
}

.badge.status-rejected{
    background:#4b1111;
    color:#ff9d9d;
}

.badge.status-archived{
    background:#222235;
    color:#b7b7ff;
}

.wide-form{
    max-width:920px;
}

.badge.status-draft{
    background:#1f2937;
    color:#d1d5db;
}

.badge.status-pending{
    background:#39220b;
    color:#ffd08a;
}

.badge.status-active{
    background:#063b18;
    color:#86ffad;
}

.badge.status-rejected{
    background:#4b1111;
    color:#ff9d9d;
}

.badge.status-archived{
    background:#222235;
    color:#b7b7ff;
}

.wide-form{
    max-width:920px;
}

.badge.status-draft{
    background:#1f2937;
    color:#d1d5db;
}

.badge.status-pending{
    background:#39220b;
    color:#ffd08a;
}

.badge.status-active{
    background:#063b18;
    color:#86ffad;
}

.badge.status-rejected{
    background:#4b1111;
    color:#ff9d9d;
}

.badge.status-archived{
    background:#222235;
    color:#b7b7ff;
}

.upload-panel{
    margin-top:24px;
    max-width:920px;
}

.upload-panel h2{
    margin-bottom:8px;
}

.upload-form{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-top:18px;
}

.upload-form input[type="file"],
.upload-form input[type="number"]{
    background:#090f1b;
    border:1px solid #354765;
    color:#dce8ff;
    border-radius:12px;
    padding:12px;
}

.thumb-preview{
    margin:18px 0;
    width:280px;
    border-radius:16px;
    overflow:hidden;
    border:1px solid #263750;
    background:#09111e;
}

.thumb-preview img{
    display:block;
    width:100%;
    height:auto;
}

.file-list{
    margin-top:22px;
    display:grid;
    gap:12px;
}

.file-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    background:#09111e;
    border:1px solid #263750;
    border-radius:14px;
    padding:14px;
}

.file-row small{
    color:#7f94b4;
    margin-top:5px;
}

.gallery-grid{
    margin-top:22px;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
    gap:16px;
}

.gallery-card{
    background:#09111e;
    border:1px solid #263750;
    border-radius:16px;
    padding:10px;
}

.gallery-card img{
    width:100%;
    height:120px;
    object-fit:cover;
    border-radius:12px;
    display:block;
    margin-bottom:10px;
}

@media(max-width:760px){
    .file-row{
        align-items:flex-start;
        flex-direction:column;
    }
}

.stat-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    margin-bottom:26px;
}

.stat-card{
    background:linear-gradient(180deg,#111a2b,#0d1422);
    border:1px solid #263750;
    border-radius:18px;
    padding:22px;
    box-shadow:0 20px 40px rgba(0,0,0,.18);
}

.stat-card span{
    display:block;
    color:#8fb3e8;
    font-size:14px;
    font-weight:700;
    margin-bottom:12px;
}

.stat-card strong{
    display:block;
    color:#fff;
    font-size:30px;
    line-height:1;
    margin-bottom:10px;
}

.stat-card small{
    color:#7f94b4;
}

.section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}

.section-head h2{
    margin:0;
}

.section-head a{
    color:#78a8ff;
    font-weight:800;
    text-decoration:none;
}

.section-head a:hover{
    color:#fff;
}

@media(max-width:1200px){
    .stat-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:760px){
    .stat-grid{
        grid-template-columns:1fr;
    }
}
