:root {
    --bg: #050812;
    --bg-deep: #02050b;
    --bg2: #0b1220;
    --panel: rgba(10, 18, 32, 0.78);
    --panel-strong: rgba(7, 13, 24, 0.94);
    --panel-soft: rgba(18, 31, 49, 0.58);
    --line: rgba(87, 185, 226, 0.24);
    --line-strong: rgba(88, 239, 219, 0.58);
    --line-rust: rgba(232, 142, 67, 0.42);
    --text: #edf7ff;
    --muted: #96acc8;
    --muted2: #6f86a5;
    --blue: #45c9ff;
    --cyan: #4df0d6;
    --success: #31dc8e;
    --danger: #ff6577;
    --warn: #ffb24c;
    --rust: #d17a3f;
    --steel: #99a8b8;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
    --shadow-cyan: 0 0 34px rgba(73, 222, 255, 0.16);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --font: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    --mono: "Consolas", "Cascadia Mono", "Monaco", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(900px 420px at 16% -12%, rgba(64, 214, 255, 0.23), transparent 62%),
        radial-gradient(900px 520px at 104% 8%, rgba(210, 119, 55, 0.22), transparent 58%),
        radial-gradient(720px 420px at 70% 92%, rgba(48, 220, 160, 0.12), transparent 60%),
        linear-gradient(145deg, var(--bg), var(--bg2) 54%, #120b08);
    overflow-x: hidden;
}
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}
body::before {
    background:
        linear-gradient(rgba(99, 232, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 232, 255, 0.042) 1px, transparent 1px),
        url('../img/rust-wasteland.svg') center bottom / cover no-repeat;
    background-size: 72px 72px, 72px 72px, cover;
    opacity: 0.42;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,.25) 45%, rgba(0,0,0,.55));
}
body::after {
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px),
        radial-gradient(circle at 50% 0%, rgba(80, 255, 229, .13), transparent 36%);
    mix-blend-mode: screen;
    opacity: 0.18;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
::selection { background: rgba(77, 240, 214, .28); color: #fff; }

.glass {
    background: linear-gradient(145deg, rgba(13, 24, 42, .82), rgba(8, 14, 26, .72));
    backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
}

.app-shell { display: flex; min-height: 100vh; position: relative; }
.app-shell::before {
    content: "";
    position: fixed;
    left: 278px;
    top: 0;
    width: 1px;
    height: 100vh;
    background: linear-gradient(transparent, rgba(74, 230, 255, .36), transparent);
    pointer-events: none;
}

.sidebar {
    width: 280px;
    background:
        linear-gradient(180deg, rgba(3, 7, 13, 0.98), rgba(6, 11, 19, 0.94)),
        url('../img/server-room.svg') center / cover no-repeat;
    background-blend-mode: normal, screen;
    border-right: 1px solid rgba(76, 201, 255, 0.25);
    padding: 20px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    transition: transform .28s ease;
    box-shadow: 16px 0 60px rgba(0,0,0,.42);
    overflow: hidden;
}
.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(77, 240, 214, .11), transparent 32%, rgba(209, 122, 63, .1)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 1px, transparent 1px 10px);
    pointer-events: none;
}
.sidebar > * { position: relative; z-index: 1; }

.brand {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 6px 4px 12px;
    border-bottom: 1px solid rgba(102, 211, 255, .17);
}
.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 0 28px rgba(74, 221, 255, .28), 0 16px 34px rgba(0,0,0,.34);
}
.brand-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand h2 { margin: 0; font-size: 18px; letter-spacing: .02em; text-shadow: 0 0 18px rgba(77, 240, 214, .18); }
.brand p { margin: 5px 0 0; color: #8fb4d0; font-size: 12px; letter-spacing: .18em; }

.nav-list { display: flex; flex-direction: column; gap: 10px; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    color: #cde4fb;
    border: 1px solid transparent;
    background: linear-gradient(90deg, rgba(12, 24, 40, .5), rgba(11, 18, 30, .18));
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
    position: relative;
    overflow: hidden;
}
.nav-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(var(--cyan), var(--rust));
    transform: scaleY(0);
    transition: transform .2s ease;
}
.nav-item .icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #99eaff;
    background: rgba(88, 199, 255, .08);
    border: 1px solid rgba(88, 199, 255, .12);
}
.nav-item:hover {
    transform: translateX(5px);
    color: #fff;
    background: linear-gradient(90deg, rgba(43, 102, 130, .42), rgba(16, 31, 49, .44));
    border-color: rgba(77, 240, 214, .32);
    box-shadow: 0 12px 32px rgba(0,0,0,.26), inset 0 0 28px rgba(78, 224, 197, .08);
}
.nav-item.active {
    color: #efffff;
    background: linear-gradient(135deg, rgba(47, 203, 255, .24), rgba(60, 224, 184, .16) 48%, rgba(209, 122, 63, .18));
    border-color: rgba(89, 224, 255, .55);
    box-shadow: 0 14px 38px rgba(41, 184, 255, .16), inset 0 0 0 1px rgba(255,255,255,.04);
}
.nav-item.active::before { transform: scaleY(1); }

.sidebar-foot { margin-top: auto; color: #8da8cb; font-size: 12px; }
.side-signal {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px;
    padding: 11px 12px;
    border: 1px solid rgba(58, 214, 183, .3);
    background: linear-gradient(135deg, rgba(12, 47, 45, .64), rgba(10, 20, 32, .72));
    border-radius: 14px;
    box-shadow: inset 0 0 22px rgba(77, 240, 214, .06);
}
.side-signal span { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 16px var(--success); }
.side-signal strong { color: #bdffe2; font-size: 12px; letter-spacing: .12em; }

.main-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
    margin: 18px 22px 0;
    border-radius: 22px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: sticky;
    top: 14px;
    z-index: 20;
}
.topbar::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: -1px;
    width: 190px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77,240,214,.65), transparent);
}
.menu-toggle {
    display: none;
    border: 1px solid var(--line-strong);
    background: rgba(14, 30, 48, 0.9);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: 14px;
    cursor: pointer;
}
.topbar-title h1 { margin: 0; font-size: 22px; letter-spacing: .02em; }
.topbar-title p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.topbar-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 15px var(--success); }
.admin-chip, .quick-link {
    border-radius: 999px;
    padding: 7px 12px;
    border: 1px solid rgba(87, 185, 226, .36);
    background: rgba(22, 42, 66, .52);
    color: #d1eaff;
}
.quick-link { color: #b9fff0; border-color: rgba(61, 224, 208, .42); background: rgba(20, 60, 58, .42); }

.content { padding: 18px 22px 28px; animation: pageEnter .42s ease both; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.card {
    border-radius: var(--radius-lg);
    padding: 18px;
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(13, 25, 43, .84), rgba(8, 14, 25, .78)),
        radial-gradient(420px 180px at 90% 0%, rgba(76, 226, 255, .08), transparent 58%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.05), transparent 12%, transparent 88%, rgba(255,255,255,.03)),
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.025) 18px 19px);
    pointer-events: none;
}
.card::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(78, 224, 197, .72), transparent);
    opacity: .55;
}
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 32px 90px rgba(0,0,0,.52), 0 0 42px rgba(73, 222, 255, .12); }

.metric-card { min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-card .label { color: var(--muted); font-size: 13px; }
.metric-card .value { font-size: clamp(30px, 4vw, 42px); margin-top: 8px; font-weight: 900; letter-spacing: -.04em; }
.metric-card.success .value { color: var(--success); text-shadow: 0 0 22px rgba(49,220,142,.26); }
.metric-card.warn .value { color: var(--warn); text-shadow: 0 0 22px rgba(255,178,76,.22); }
.metric-card.danger .value { color: var(--danger); text-shadow: 0 0 22px rgba(255,101,119,.22); }

.banner {
    min-height: 178px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(72, 207, 252, 0.32);
    background:
        linear-gradient(100deg, rgba(5, 9, 16, .9) 0%, rgba(8, 18, 32, .78) 44%, rgba(11, 18, 27, .58) 100%),
        url('../img/rust-wasteland.svg') center / cover no-repeat;
    padding: 30px 32px;
    margin-bottom: 16px;
    box-shadow: var(--shadow), inset 0 0 70px rgba(70, 205, 255, .08);
    position: relative;
}
.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(77,240,214,.13), transparent 36%, rgba(209,122,63,.16));
    pointer-events: none;
}
.banner h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 42px); letter-spacing: -.03em; }
.banner p { margin: 0; color: #b8d6ef; font-size: 16px; line-height: 1.8; max-width: 940px; }
.section-title { font-size: 18px; margin: 0 0 13px; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 8px; height: 18px; border-radius: 999px; background: linear-gradient(var(--cyan), var(--rust)); box-shadow: 0 0 16px rgba(77,240,214,.32); }

.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid rgba(88, 185, 226, .12); background: rgba(5, 10, 18, .22); }
.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th, .table td { text-align: left; padding: 14px 13px; border-bottom: 1px solid rgba(79, 145, 218, 0.18); font-size: 14px; }
.table th { color: #9fbbd8; font-weight: 800; background: rgba(14, 28, 47, .42); }
.table td { color: #dceaff; }
.table tbody tr { transition: background .18s ease, transform .18s ease; }
.table tbody tr:hover { background: rgba(54, 113, 151, 0.22); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-stack { display: flex; flex-direction: column; gap: 13px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #b7cce4; }
input, select, textarea {
    width: 100%;
    border: 1px solid rgba(86, 162, 219, 0.4);
    background: linear-gradient(145deg, rgba(3, 8, 15, 0.82), rgba(10, 18, 30, 0.74));
    color: var(--text);
    border-radius: 14px;
    min-height: 44px;
    padding: 11px 13px;
    outline: none;
    box-shadow: inset 0 0 22px rgba(0,0,0,.2);
}
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #5cecff; box-shadow: 0 0 0 4px rgba(64, 218, 255, 0.16), inset 0 0 24px rgba(77,240,214,.05); }
select option { background: #08111f; color: #e7f5ff; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 13px;
    padding: 11px 15px;
    min-height: 42px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, border-color .2s ease, background .2s ease;
    position: relative;
    overflow: hidden;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,.18), transparent); transform: translateX(-120%); transition: transform .42s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #041922; box-shadow: 0 12px 28px rgba(62, 193, 255, 0.35); }
.btn-danger { background: linear-gradient(135deg, #ff5f72, #ff8a60); color: #2d0b10; box-shadow: 0 12px 28px rgba(255, 95, 114, .22); }
.btn-success { background: linear-gradient(135deg, #46de9a, #2ed0b2); color: #06251c; }
.btn-warn { background: linear-gradient(135deg, #ffc25a, #ff944e); color: #321b06; }
.btn-ghost { border: 1px solid rgba(98, 170, 245, 0.55); background: rgba(13, 29, 50, 0.68); color: #d4ebff; }
.btn-ghost:hover { border-color: rgba(77,240,214,.62); background: rgba(20, 55, 66, .72); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.muted { color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12px; border: 1px solid transparent; font-weight: 700; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.badge-success { background: rgba(35, 201, 119, .18); color: #97ffd0; border-color: rgba(35, 201, 119, .35); }
.badge-danger { background: rgba(255, 92, 112, .16); color: #ffd4da; border-color: rgba(255, 92, 112, .36); }
.badge-warn { background: rgba(255, 173, 69, .18); color: #ffe0b5; border-color: rgba(255, 173, 69, .34); }
.badge-info { background: rgba(65, 197, 255, .18); color: #c9f0ff; border-color: rgba(65, 197, 255, .35); }

.alert { border-radius: 15px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid rgba(94, 156, 234, 0.34); background: rgba(33, 55, 88, 0.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.alert-danger { border-color: rgba(255, 92, 112, .42); background: rgba(255, 92, 112, .13); color: #ffd9de; }
.alert-success { border-color: rgba(38, 201, 123, .4); background: rgba(38, 201, 123, .13); color: #ccffe3; }
.alert-warn { border-color: rgba(255, 173, 69, .42); background: rgba(255, 173, 69, .14); color: #ffe4bb; }
.alert-info { border-color: rgba(71, 181, 255, .38); background: rgba(71, 181, 255, .11); color: #d8f1ff; }

.console-box, .result-panel {
    background:
        linear-gradient(rgba(3, 7, 15, .92), rgba(3, 7, 15, .92)),
        url('../img/console-texture.svg') center / cover no-repeat;
    border: 1px solid rgba(70, 218, 246, .34);
    border-radius: 18px;
    padding: 14px;
    overflow-y: auto;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.75;
    box-shadow: inset 0 0 46px rgba(28, 52, 86, 0.4), 0 0 34px rgba(71, 221, 255, .08);
}
.console-box { height: 460px; }
.result-panel { min-height: 300px; max-height: 380px; }
.console-line { color: #cce8ff; white-space: pre-wrap; text-shadow: 0 0 8px rgba(118, 236, 255, .16); }
.console-line.error { color: #ff9da9; }
.console-line.info { color: #8fd8ff; }
.console-line.warn { color: #ffcf93; }
.console-line.ok { color: #95ffd0; }

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(110deg, rgba(3, 7, 13, .82), rgba(7, 14, 24, .66)),
        url('../img/rust-wasteland.svg') center / cover no-repeat,
        #050812;
}
.login-wrap { width: min(1180px, 100%); display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.login-hero, .login-card { border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(13,24,42,.82), rgba(7,13,24,.8)); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.login-hero { padding: 34px; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(110deg, rgba(6,12,22,.88), rgba(8,20,35,.58)), url('../img/server-room.svg') center / cover no-repeat; }
.login-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 280px at 20% 20%, rgba(77,240,214,.19), transparent 62%), radial-gradient(500px 300px at 84% 75%, rgba(209,122,63,.22), transparent 58%); pointer-events: none; }
.login-hero > * { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; width: fit-content; border: 1px solid rgba(85, 232, 255, .56); border-radius: 999px; padding: 8px 13px; color: #9df8ff; font-size: 12px; letter-spacing: .12em; background: rgba(5, 14, 24, .45); }
.login-hero h1 { margin: 18px 0 12px; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.04em; }
.login-hero p { color: #c0d7ee; line-height: 1.9; font-size: 16px; max-width: 680px; }
.hero-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-grid div { border: 1px solid rgba(78, 206, 226, 0.26); border-radius: 17px; padding: 14px; background: rgba(5, 13, 24, 0.62); backdrop-filter: blur(10px); }
.hero-grid strong { display: block; font-size: 20px; color: #7ce8ff; }
.hero-grid span { color: #aac3de; font-size: 13px; }
.login-card { padding: 28px; align-self: center; }
.login-card h2 { margin: 0 0 6px; font-size: 26px; }

.pill-group { display: flex; gap: 7px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; font-size: 12px; border: 1px solid rgba(76, 190, 242, 0.34); background: rgba(43, 73, 114, 0.22); color: #cfe8ff; }

.modal-mask { position: fixed; inset: 0; background: rgba(2, 6, 13, 0.72); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 999; }
.modal-mask.show { display: flex; }
.modal { width: min(520px, 100%); border-radius: 22px; border: 1px solid rgba(78, 218, 247, 0.36); background: linear-gradient(145deg, rgba(9, 19, 35, 0.98), rgba(7, 12, 22, 0.96)); padding: 22px; box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 8px; }
.modal p { margin: 0 0 14px; color: #b5cde9; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; }

.toast-container { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 9px; z-index: 1200; }
.toast { min-width: 240px; max-width: 380px; border-radius: 15px; padding: 12px 14px; border: 1px solid rgba(83, 169, 255, 0.44); background: rgba(8, 18, 34, 0.94); color: #d8efff; box-shadow: var(--shadow); animation: fadeIn .22s ease; }
.toast.success { border-color: rgba(45, 210, 130, .44); }
.toast.error { border-color: rgba(255, 94, 116, .44); }

.ops-hero {
    min-height: 240px;
    margin-bottom: 14px;
    padding: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(91, 204, 214, .32);
    border-radius: 24px;
    background: linear-gradient(110deg, rgba(5, 10, 18, .9), rgba(9, 23, 31, .68)), url('../img/tactical-map.svg') center / cover no-repeat;
    box-shadow: var(--shadow), inset 0 0 70px rgba(77,240,214,.07);
    overflow: hidden;
    position: relative;
}
.ops-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(77,240,214,.11), transparent 48%, rgba(209,122,63,.15)); pointer-events: none; }
.ops-hero > * { position: relative; z-index: 1; }
.ops-hero h2 { margin: 9px 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
.ops-hero p { margin: 0; max-width: 760px; color: #c4d8ea; line-height: 1.9; }
.kicker { color: #89f5dc; font-size: 12px; letter-spacing: .18em; font-weight: 800; }
.hero-readout { min-width: 160px; padding: 16px; border: 1px solid rgba(83, 218, 207, .38); background: rgba(5, 14, 20, .68); border-radius: 18px; text-align: center; backdrop-filter: blur(10px); }
.hero-readout strong { display: block; font-size: 42px; color: #8fffe0; }
.hero-readout span { color: var(--muted); font-size: 12px; }

.control-card { min-height: 100%; }
.preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.preset-btn { min-height: 42px; border: 1px solid rgba(89, 180, 213, .36); background: rgba(13, 27, 43, .76); color: #d4eaff; border-radius: 13px; cursor: pointer; transition: .18s transform, .18s border-color, .18s background; }
.preset-btn:hover { transform: translateY(-2px); border-color: rgba(78, 224, 197, .62); background: rgba(18, 52, 56, .76); }
.status-list { display: grid; gap: 10px; }
.status-list div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 13px; border: 1px solid rgba(85, 154, 214, .24); background: rgba(7, 15, 27, .5); border-radius: 14px; }
.status-list span { color: var(--muted); }
.status-list strong { color: #d9f2ff; text-align: right; }
.security-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.security-grid div { border: 1px solid rgba(82, 152, 213, .25); background: rgba(8, 16, 29, .56); border-radius: 16px; padding: 14px; }
.security-grid p { margin: 10px 0 0; color: #bdd3ec; line-height: 1.7; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1280px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
    .app-shell::before { display: none; }
    .sidebar { position: fixed; z-index: 1000; transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .topbar { margin: 10px; top: 8px; }
    .content { padding: 10px; }
    .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
    .login-wrap { grid-template-columns: 1fr; }
    .login-hero { min-height: 420px; }
    .ops-hero { align-items: flex-start; flex-direction: column; min-height: 270px; }
    .security-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .grid-5 { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; }
    .topbar-meta { gap: 6px; font-size: 12px; }
    .topbar-title h1 { font-size: 18px; }
    .topbar-title p { max-width: 220px; }
    .table { min-width: 680px; }
    .actions .btn { width: 100%; }
    .preset-grid, .hero-grid { grid-template-columns: 1fr; }
    .topbar-meta .quick-link { display: none; }
    .ops-hero h2 { font-size: 26px; }
    .banner { padding: 24px 20px; }
    .banner p { font-size: 14px; }
    .login-body { padding: 12px; }
    .login-card, .login-hero { padding: 22px; border-radius: 22px; }
    .modal-actions { flex-direction: column; }
    .modal-actions .btn { width: 100%; }
}

.page-atmosphere {
    min-height: 126px;
    margin-bottom: 16px;
    border-radius: 24px;
    padding: 22px 24px;
    border: 1px solid rgba(83, 210, 238, .28);
    background:
        linear-gradient(105deg, rgba(5, 9, 16, .88), rgba(8, 18, 32, .62)),
        url('../img/rust-wasteland.svg') center / cover no-repeat;
    box-shadow: var(--shadow), inset 0 0 64px rgba(77,240,214,.06);
    position: relative;
    overflow: hidden;
}
.page-atmosphere::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(77,240,214,.11), transparent 38%, rgba(209,122,63,.16)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 72px);
    pointer-events: none;
}
.page-atmosphere > * { position: relative; z-index: 1; }
.page-atmosphere span {
    display: inline-flex;
    color: #90ffe9;
    font-size: 12px;
    letter-spacing: .18em;
    font-weight: 900;
    margin-bottom: 9px;
}
.page-atmosphere strong { display: block; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.03em; }
.page-atmosphere p { margin: 8px 0 0; color: #bed6ee; line-height: 1.8; max-width: 760px; }
.scene-server, .scene-settings { background-image: linear-gradient(105deg, rgba(5, 9, 16, .88), rgba(8, 18, 32, .62)), url('../img/server-room.svg'); }
.scene-console, .scene-logs { background-image: linear-gradient(105deg, rgba(5, 9, 16, .9), rgba(8, 18, 32, .66)), url('../img/console-texture.svg'); }
.scene-map, .scene-security, .scene-broadcast { background-image: linear-gradient(105deg, rgba(5, 9, 16, .88), rgba(8, 18, 32, .62)), url('../img/tactical-map.svg'); }

@media (max-width: 640px) {
    .page-atmosphere { padding: 20px; min-height: 118px; }
}

/* Refinement pass: calm background, clearer card rhythm, visible Rust art. */
body {
    background:
        radial-gradient(760px 360px at 72% -8%, rgba(57, 155, 205, 0.13), transparent 62%),
        radial-gradient(680px 360px at 0% 22%, rgba(209, 122, 63, 0.09), transparent 58%),
        linear-gradient(145deg, #050812 0%, #07101b 52%, #080b11 100%);
}
body::before {
    background:
        linear-gradient(rgba(92, 180, 220, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 180, 220, 0.032) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.42;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,.16));
}
body::after { opacity: 0.06; }
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, rgba(4, 8, 14, 0.98), rgba(5, 10, 17, 0.96));
    box-shadow: 10px 0 34px rgba(0,0,0,.28);
}
.sidebar::before {
    background: linear-gradient(135deg, rgba(77,240,214,.045), transparent 38%, rgba(209,122,63,.04));
}
.app-shell::before { left: 258px; opacity: .55; }
.brand { padding-bottom: 14px; }
.brand-logo { width: 50px; height: 50px; border-radius: 14px; }
.nav-list { gap: 7px; }
.nav-item { border-radius: 13px; padding: 11px 12px; background: transparent; }
.nav-item:hover { transform: translateX(3px); }
.nav-item.active { background: linear-gradient(135deg, rgba(47,203,255,.18), rgba(209,122,63,.09)); }
.topbar {
    margin: 14px 18px 0;
    border-radius: 18px;
    padding: 13px 16px;
    position: relative;
    top: auto;
}
.topbar-title h1 { font-size: 20px; }
.content { padding: 16px 18px 26px; }
.grid-5, .grid-3, .grid-2 { gap: 12px; }
.card {
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(145deg, rgba(12, 22, 38, .82), rgba(8, 14, 24, .78));
    box-shadow: 0 18px 44px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}
.card::before { background: linear-gradient(90deg, rgba(255,255,255,.035), transparent 16%, transparent 84%, rgba(255,255,255,.02)); }
.card:hover { transform: translateY(-2px); box-shadow: 0 22px 54px rgba(0,0,0,.34), 0 0 24px rgba(73, 222, 255, .08); }
.metric-card { min-height: 106px; }
.metric-card .value { font-size: clamp(28px, 3vw, 36px); }
.section-title { font-size: 17px; }
.table th, .table td { padding: 12px 12px; }
.console-box { height: 390px; }
.result-panel { min-height: 250px; max-height: 320px; }

.page-atmosphere {
    min-height: 148px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 18px;
    padding: 18px 20px 18px 24px;
    background: linear-gradient(145deg, rgba(12, 22, 38, .86), rgba(7, 13, 24, .82));
    box-shadow: 0 18px 44px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}
.page-atmosphere::before {
    background: radial-gradient(420px 180px at 72% 40%, rgba(77,240,214,.12), transparent 70%);
}
.page-atmosphere-copy { min-width: 0; }
.page-atmosphere span { margin-bottom: 7px; letter-spacing: .12em; }
.page-atmosphere strong { font-size: clamp(24px, 2.5vw, 32px); }
.page-atmosphere p { max-width: 680px; font-size: 14px; }
.page-atmosphere-art {
    height: 116px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(87,185,226,.22);
    background: #08111c;
    box-shadow: inset 0 0 30px rgba(0,0,0,.24);
}
.page-atmosphere-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ops-hero { min-height: 150px; padding: 20px; }
.login-hero { min-height: 500px; }
@media (max-width: 1280px) {
    .page-atmosphere { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 960px) {
    .sidebar { width: 260px; }
    .page-atmosphere { grid-template-columns: 1fr; }
    .page-atmosphere-art { height: 150px; }
}
@media (max-width: 640px) {
    .content { padding: 10px; }
    .page-atmosphere { padding: 16px; min-height: auto; }
    .page-atmosphere-art { height: 128px; }
    .topbar { margin: 10px; }
}

.auth-compact { grid-template-columns: .9fr .82fr; max-width: 1040px; }
.auth-links { margin: 14px 0 0; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.auth-links a { color: #9df8ff; }
.auth-links a:hover { color: #fff; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 10px; align-items: end; }
.check-line { flex-direction: row; align-items: center; gap: 10px; color: #dbeeff; }
.check-line input { width: 18px; height: 18px; min-height: 18px; accent-color: var(--cyan); }
@media (max-width: 960px) { .auth-compact { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .code-row { grid-template-columns: 1fr; } }
