*{box-sizing:border-box}
:root{
    --bg:#0b1015;
    --panel:rgba(23,28,34,.58);
    --panel-strong:rgba(30,36,43,.7);
    --panel-soft:rgba(255,255,255,.05);
    --line:rgba(255,255,255,.1);
    --line-soft:rgba(255,255,255,.06);
    --line-strong:rgba(255,255,255,.14);
    --text:#f4f7fb;
    --muted:#b6c0cb;
    --primary:#f4f7fb;
    --primary-soft:rgba(255,255,255,.14);
    --green:#8fd8b0;
    --red:#ff8d8d;
    --orange:#ffbf76;
    --blue:#85b9ff;
    --shadow:0 18px 50px rgba(0,0,0,.34);
    --shadow-sm:0 8px 24px rgba(0,0,0,.18);
    --radius-lg:22px;
    --radius-md:16px;
    --radius-sm:12px;
    --blur:blur(22px);
}
html,body{
    min-height:100%;
}
body{
    position:relative;
    margin:0;
    color:var(--text);
    background-color:var(--bg);
    font-family:"Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,Arial,"PingFang SC","Microsoft YaHei",sans-serif;
}
body::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:-2;
    background-image:
        linear-gradient(180deg, rgba(10,14,18,.62) 0%, rgba(10,14,18,.72) 100%),
        url('https://cdn.jsdmirror.com/gh/idarku/img@main/260502134049118.webp');
    background-position:center center;
    background-size:cover;
    background-repeat:no-repeat;
    transform:translateZ(0);
}
body::after{
    content:"";
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background:
        linear-gradient(180deg, rgba(255,255,255,.02), transparent 14%, transparent 86%, rgba(255,255,255,.015)),
        radial-gradient(circle at 15% 12%, rgba(255,255,255,.04), transparent 22%),
        radial-gradient(circle at 85% 14%, rgba(255,255,255,.03), transparent 18%);
}
a{
    color:inherit;
    text-decoration:none;
}
.admin-wrap{
    max-width:1180px;
    margin:0 auto;
    padding:28px 20px 40px;
}
.admin-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:20px;
}
.admin-title{
    margin:0;
    font-size:30px;
    line-height:1.2;
    font-weight:800;
    letter-spacing:.2px;
}
.admin-sub{
    margin-top:8px;
    color:var(--muted);
    font-size:14px;
    line-height:1.8;
}
.panel{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow);
    backdrop-filter:var(--blur) saturate(130%);
    -webkit-backdrop-filter:var(--blur) saturate(130%);
}
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:10px 16px;
    border-radius:14px;
    border:1px solid var(--line);
    background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
    color:#fff;
    cursor:pointer;
    box-shadow:var(--shadow-sm);
    transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
    text-align:center;
}
.btn:hover{
    transform:translateY(-1px);
    border-color:var(--line-strong);
    background:linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.06));
}
.btn-primary{
    background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.09));
    color:#fff;
    border-color:var(--line-strong);
}
.btn-danger{
    background:linear-gradient(180deg, rgba(255,141,141,.24), rgba(255,141,141,.15));
    color:#fff;
    border-color:rgba(255,141,141,.28);
}
.grid-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:14px;
}
.stat-card,
.content-card{
    padding:18px;
}
.stat-label{
    color:var(--muted);
    font-size:13px;
}
.stat-value{
    margin-top:8px;
    font-size:28px;
    font-weight:800;
    line-height:1.2;
}
.stat-note{
    margin-top:8px;
    color:var(--muted);
    font-size:12px;
    line-height:1.6;
}
.section-title{
    margin:0 0 14px;
    font-size:18px;
    font-weight:800;
}
.alert{
    padding:12px 14px;
    border-radius:14px;
    font-size:14px;
    line-height:1.7;
    margin-bottom:10px;
}
.alert-warn{
    background:rgba(255,191,118,.12);
    color:#ffd39d;
    border:1px solid rgba(255,191,118,.18);
}
.alert-danger{
    background:rgba(255,141,141,.12);
    color:#ffc2c2;
    border:1px solid rgba(255,141,141,.18);
}
.progress{
    height:12px;
    overflow:hidden;
    border-radius:999px;
    background:rgba(255,255,255,.06);
}
.progress-bar{
    height:100%;
    border-radius:999px;
}
.bar-green{background:linear-gradient(90deg,#8fd8b0,#5fbe8b)}
.bar-red{background:linear-gradient(90deg,#ff8d8d,#ff6666)}
.bar-orange{background:linear-gradient(90deg,#ffbf76,#ff9e45)}
.bar-gray{background:linear-gradient(90deg,#b6c0cb,#8d98a5)}
.bar-blue{background:linear-gradient(90deg,#85b9ff,#5f98ff)}
.table-wrap{
    overflow:auto;
}
table{
    width:100%;
    border-collapse:collapse;
}
th,td{
    padding:12px 14px;
    border-bottom:1px solid var(--line);
    text-align:left;
    vertical-align:top;
    font-size:14px;
}
th{
    color:var(--muted);
    font-weight:700;
    background:var(--panel-soft);
}
input,select,textarea{
    width:100%;
    padding:12px 14px;
    border:1px solid var(--line-soft);
    border-radius:12px;
    outline:none;
    background:rgba(255,255,255,.05);
    color:var(--text);
}
input::placeholder,textarea::placeholder{
    color:#9eabb8;
}
select option{
    background:#172027;
    color:#fff;
}
input:focus,select:focus,textarea:focus{
    border-color:var(--line-strong);
    background:rgba(255,255,255,.07);
    box-shadow:0 0 0 3px rgba(255,255,255,.03);
}
@media (max-width: 768px){
    .admin-wrap{
        padding:18px 16px 28px;
    }
    .admin-title{
        font-size:24px;
    }
}
@media (max-width: 520px){
    .admin-top{
        align-items:stretch;
    }
    .btn{
        width:100%;
    }
}
.page-shell{
    max-width:1180px;
    margin:0 auto;
    padding:24px 20px 40px;
}
.page-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:20px;
}
.page-title{
    margin:0;
    font-size:28px;
    font-weight:800;
}
.stack{
    display:grid;
    gap:20px;
}
.card{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:20px;
    padding:20px;
    box-shadow:var(--shadow);
    backdrop-filter:var(--blur) saturate(130%);
    -webkit-backdrop-filter:var(--blur) saturate(130%);
}
.form-grid{
    display:grid;
    gap:12px;
}
.form-grid-3{
    grid-template-columns:240px 1fr 160px;
}
.search-row{
    display:grid;
    gap:12px;
}
.search-row-2{
    grid-template-columns:1fr 140px;
}
.search-row-3{
    grid-template-columns:1fr 180px 140px;
}
.toolbar{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.pagination{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    justify-content:center;
    margin-top:20px;
}
.pagination a{
    min-width:40px;
    text-align:center;
    padding:10px 12px;
    border-radius:14px;
    background:rgba(255,255,255,.04);
    color:#dde6ef;
    border:1px solid var(--line-soft);
}
.pagination a.active{
    background:linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.06));
    color:#fff;
    border-color:var(--line-strong);
}
.badge{
    display:inline-block;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
}
.badge-success{background:rgba(143,216,176,.14);color:var(--green);border:1px solid rgba(143,216,176,.16)}
.badge-danger{background:rgba(255,141,141,.14);color:var(--red);border:1px solid rgba(255,141,141,.16)}
.badge-warning{background:rgba(255,191,118,.14);color:var(--orange);border:1px solid rgba(255,191,118,.16)}
.badge-secondary{background:rgba(255,255,255,.06);color:#c7d0da;border:1px solid rgba(255,255,255,.08)}
.empty-row{
    text-align:center;
    color:var(--muted);
    padding:28px;
}
.tag{
    display:inline-block;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    background:rgba(143,216,176,.14);
    color:var(--green);
    border:1px solid rgba(143,216,176,.16);
    font-weight:700;
}
.tag.off{
    background:rgba(255,255,255,.06);
    color:#c7d0da;
    border:1px solid rgba(255,255,255,.08);
}
.surface-soft{
    background:rgba(255,255,255,.05);
    border:1px solid var(--line);
    border-radius:16px;
}
.helper-text{
    margin-top:8px;
    color:var(--muted);
    font-size:13px;
    line-height:1.7;
}
.status-ok{color:var(--green)}
.status-bad{color:var(--red)}
.status-neutral{color:#b6c0cb}
@media (max-width: 900px){
    .form-grid-3,
    .search-row-2,
    .search-row-3{
        grid-template-columns:1fr;
    }
}
