:root{
    --bg:#050507;--bg2:#0d0d12;--card:rgba(17,18,25,.92);--card2:rgba(255,255,255,.045);
    --red:#ff1b2d;--red2:#8f0610;--text:#f7f8fc;--muted:#a4a9b8;--line:rgba(255,255,255,.11);
    --redline:rgba(255,27,45,.42);--green:#27db83;--yellow:#ffcc4d;--shadow:0 24px 70px rgba(0,0,0,.46);
}
*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;color:var(--text);font-family:Inter,Arial,sans-serif;background:radial-gradient(circle at 16% 10%,rgba(255,27,45,.18),transparent 31%),radial-gradient(circle at 88% 7%,rgba(255,255,255,.06),transparent 25%),linear-gradient(135deg,#030304,#0b0b10 52%,#180005);background-attachment:fixed;overflow-x:hidden}body:before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);background-size:42px 42px;z-index:-1}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}
#js-particles{position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.32}#js-particles canvas{display:block;width:100%;height:100%}.app-shell{position:relative;z-index:1}
.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:286px;padding:0 14px 22px;background:linear-gradient(180deg,rgba(18,18,25,.98),rgba(4,4,7,.99));border-right:1px solid var(--redline);box-shadow:14px 0 55px rgba(0,0,0,.46);z-index:30;overflow-y:auto}.brand-block{text-align:center;padding:24px 10px 18px;border-bottom:1px solid var(--line)}.brand-orbit{width:102px;height:102px;margin:0 auto 12px;padding:4px;border-radius:50%;background:linear-gradient(135deg,var(--red),transparent 45%,#fff 130%);box-shadow:0 0 34px rgba(255,27,45,.34)}.brand-orbit img{width:94px;height:94px;border-radius:50%;object-fit:cover;background:#000;border:1px solid rgba(255,255,255,.14)}.brand-block strong{display:block;font-family:Orbitron,sans-serif;letter-spacing:.08em}.brand-block span{display:block;margin-top:4px;color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.17em}.side-menu{display:grid;gap:7px;padding:15px 0 92px}.side-menu a{display:flex;align-items:center;gap:12px;padding:11px 13px;border:1px solid transparent;border-radius:16px;color:#dde0e9;font-weight:700;transition:.18s ease}.side-menu a i{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;color:#ff5360;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.055)}.side-menu a:hover,.side-menu a.active{transform:translateX(3px);color:#fff;background:linear-gradient(135deg,rgba(255,27,45,.24),rgba(255,255,255,.055));border-color:var(--redline);box-shadow:0 12px 26px rgba(255,27,45,.11)}.side-menu a.active i{color:#fff;background:linear-gradient(135deg,var(--red),var(--red2));box-shadow:0 0 20px rgba(255,27,45,.34)}.sidebar-status{position:absolute;left:16px;right:16px;bottom:18px;display:flex;align-items:center;gap:12px;padding:12px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid var(--line)}.sidebar-status strong,.sidebar-status small{display:block}.sidebar-status small{color:var(--muted);font-size:.72rem;margin-top:3px}.status-dot{width:10px;height:10px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(39,219,131,.12),0 0 16px rgba(39,219,131,.72)}
.content-shell{width:calc(100% - 286px);margin-left:286px;min-width:0}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;min-height:72px;padding:12px 24px;background:rgba(8,8,12,.78);border-bottom:1px solid var(--line);backdrop-filter:blur(16px)}.menu-toggle{display:none;width:44px;height:44px;border:1px solid var(--redline);border-radius:14px;color:#fff;background:linear-gradient(135deg,var(--red),var(--red2))}.topbar-brand{display:flex;align-items:center;gap:10px}.topbar-brand img{width:40px;height:40px;border-radius:12px;object-fit:cover;border:1px solid var(--line)}.topbar-brand strong,.topbar-brand small{display:block}.topbar-brand strong{font-family:Orbitron,sans-serif;font-size:.92rem;letter-spacing:.07em}.topbar-brand small{margin-top:3px;color:var(--muted);font-size:.73rem}.logout-button{margin-left:auto;display:flex;align-items:center;gap:8px;padding:10px 15px;border-radius:14px;background:linear-gradient(135deg,#2b2c35,#121319);border:1px solid var(--line);font-weight:800}.logout-button:hover{background:linear-gradient(135deg,var(--red),var(--red2))}.content-wrap{padding:25px 26px 0}.hero-panel{position:relative;display:flex;align-items:center;gap:18px;margin-bottom:22px;padding:22px;border-radius:28px;overflow:hidden;background:linear-gradient(135deg,rgba(255,27,45,.18),rgba(255,255,255,.055)),linear-gradient(135deg,rgba(20,20,28,.94),rgba(8,8,12,.94));border:1px solid var(--redline);box-shadow:var(--shadow)}.hero-panel:after{content:"";position:absolute;right:-55px;top:-70px;width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,rgba(255,27,45,.22),transparent 68%)}.hero-icon{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border-radius:22px;background:linear-gradient(135deg,var(--red),var(--red2));font-size:27px;box-shadow:0 18px 35px rgba(255,27,45,.28)}.hero-panel h1{position:relative;z-index:1;margin:0 0 5px;font:800 1.55rem Orbitron,sans-serif;letter-spacing:.03em}.hero-panel p{position:relative;z-index:1;margin:0;color:var(--muted)}.hero-badge{position:relative;z-index:1;margin-left:auto;padding:10px 14px;border-radius:999px;white-space:nowrap;background:rgba(0,0,0,.34);border:1px solid var(--line);font-weight:800}.alert{display:flex;align-items:center;gap:10px;margin-bottom:18px;padding:14px 16px;border-radius:16px;border:1px solid rgba(39,219,131,.35);background:rgba(39,219,131,.11);transition:.35s ease}.alert.error{border-color:rgba(255,62,76,.4);background:rgba(255,62,76,.12)}.alert.info{border-color:rgba(89,160,255,.4);background:rgba(89,160,255,.11)}.alert.fade-out{opacity:0;transform:translateY(-8px)}
.panel-card{margin-bottom:22px;border-radius:24px;background:linear-gradient(180deg,var(--card),rgba(9,9,13,.95));border:1px solid var(--redline);box-shadow:var(--shadow);overflow:hidden}.panel-card-head{display:flex;align-items:center;gap:14px;padding:18px 20px;background:linear-gradient(135deg,rgba(255,27,45,.25),rgba(255,255,255,.05));border-bottom:1px solid var(--redline)}.panel-card-head h2{margin:0;font:800 1.03rem Orbitron,sans-serif;letter-spacing:.02em}.panel-card-head p{margin:5px 0 0;color:var(--muted);font-size:.9rem}.panel-card-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:15px;background:linear-gradient(135deg,var(--red),var(--red2));box-shadow:0 10px 24px rgba(255,27,45,.22)}.panel-card-body{padding:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;padding:20px}.form-field{display:grid;gap:7px}.form-field.field-wide{grid-column:1/-1}.form-field label{font-weight:800;color:#f3f4fb}.form-field small{color:var(--muted);line-height:1.4}.form-field input,.form-field select,.form-field textarea,.search-input{width:100%;min-height:47px;padding:11px 13px;color:#fff;background:rgba(4,4,8,.74);border:1px solid rgba(255,255,255,.12);border-radius:14px;outline:none}.form-field textarea{resize:vertical}.form-field input:focus,.form-field select:focus,.form-field textarea:focus,.search-input:focus{border-color:var(--red);box-shadow:0 0 0 4px rgba(255,27,45,.15)}.form-actions{position:sticky;bottom:12px;z-index:10;display:flex;justify-content:flex-end;gap:10px;margin:0 0 24px;padding:14px;border-radius:18px;background:rgba(8,8,12,.88);border:1px solid var(--line);backdrop-filter:blur(14px)}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:10px 15px;border-radius:14px;border:1px solid var(--line);color:#fff;background:#242630;font-weight:800}.button.primary{background:linear-gradient(135deg,var(--red),var(--red2));border-color:var(--redline);box-shadow:0 12px 24px rgba(255,27,45,.18)}.button.success{background:linear-gradient(135deg,#1ca96b,#0b6640)}.button.danger{background:linear-gradient(135deg,#d61e31,#7c0712)}.button.ghost{background:rgba(255,255,255,.055)}.button:hover{transform:translateY(-1px)}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat-card{padding:18px;border-radius:22px;background:linear-gradient(180deg,var(--card),rgba(8,8,12,.95));border:1px solid var(--line);box-shadow:var(--shadow)}.stat-card .stat-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;margin-bottom:15px;background:linear-gradient(135deg,var(--red),var(--red2))}.stat-card span{display:block;color:var(--muted);font-size:.84rem}.stat-card strong{display:block;margin-top:4px;font:800 1.8rem Orbitron,sans-serif}.dashboard-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:20px}.quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:20px}.quick-link{display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid var(--line);font-weight:800}.quick-link i{color:#ff5360}.quick-link:hover{border-color:var(--redline);background:rgba(255,27,45,.1)}
.table-wrap{overflow:auto;padding:0 20px 20px}.data-table{width:100%;border-collapse:collapse;min-width:800px}.data-table th,.data-table td{padding:13px 11px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}.data-table th{color:#fff;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}.data-table td{color:#dfe2eb}.data-table code,.code-box code{color:#9be8f3;word-break:break-all}.table-actions{display:flex;flex-wrap:wrap;gap:8px}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;border:1px solid var(--line);font-size:.76rem;font-weight:800}.badge.online,.badge.active{color:#8ff1b9;border-color:rgba(39,219,131,.4);background:rgba(39,219,131,.1)}.badge.offline,.badge.inactive{color:#ffafb7;border-color:rgba(255,62,76,.4);background:rgba(255,62,76,.1)}.badge.pending{color:#ffe194;border-color:rgba(255,204,77,.4);background:rgba(255,204,77,.1)}.muted{color:var(--muted)}.code-list{display:grid;gap:12px;padding:20px}.code-box{padding:14px;border-radius:16px;background:rgba(0,0,0,.25);border:1px solid var(--line)}.code-box strong{display:block;margin-bottom:6px}.split-grid{display:grid;grid-template-columns:minmax(320px,.75fr) minmax(0,1.25fr);gap:20px}.empty-state{padding:34px;text-align:center;color:var(--muted)}.empty-state i{display:block;margin-bottom:12px;font-size:2rem;color:#ff5360}.footer-panel{display:flex;justify-content:space-between;gap:18px;margin-top:18px;padding:22px 4px 26px;color:var(--muted);font-size:.83rem}.footer-panel strong{color:#fff}.sidebar-overlay{display:none}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-shell{width:min(1120px,96vw);display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:stretch}.auth-hero,.auth-card{border-radius:30px;border:1px solid var(--redline);box-shadow:var(--shadow);background:linear-gradient(145deg,rgba(255,27,45,.14),rgba(255,255,255,.045)),rgba(10,10,15,.91);backdrop-filter:blur(16px)}.auth-hero{padding:34px;display:flex;flex-direction:column;justify-content:center}.auth-logo{width:112px;height:112px;border-radius:50%;object-fit:cover;border:2px solid var(--line);box-shadow:0 0 0 5px rgba(255,27,45,.15),0 0 42px rgba(255,27,45,.35)}.auth-hero h1{margin:22px 0 10px;font:800 clamp(2rem,5vw,3.8rem)/1 Orbitron,sans-serif}.auth-hero p{color:#d4d7e2;line-height:1.65}.auth-features{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:22px}.auth-feature{padding:14px;border-radius:16px;background:rgba(0,0,0,.24);border:1px solid var(--line)}.auth-feature i{color:#ff5360;margin-right:6px}.auth-card{padding:30px;display:flex;flex-direction:column;justify-content:center}.auth-card h2{margin:0 0 6px;font:800 1.45rem Orbitron,sans-serif}.auth-card>p{margin:0 0 22px;color:var(--muted)}.auth-card .form-field{margin-bottom:16px}.auth-error{margin-bottom:18px;padding:13px;border-radius:14px;border:1px solid rgba(255,62,76,.4);background:rgba(255,62,76,.12);color:#ffd6da}
@media(max-width:1180px){.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.split-grid{grid-template-columns:1fr}}
@media(max-width:920px){.sidebar{transform:translateX(-100%);transition:.24s ease}.content-shell{width:100%;margin-left:0}.menu-toggle{display:grid;place-items:center}body.menu-open .sidebar{transform:translateX(0)}body.menu-open .sidebar-overlay{display:block;position:fixed;inset:0;background:rgba(0,0,0,.62);z-index:25}.auth-shell{grid-template-columns:1fr}.auth-hero{display:none}}
@media(max-width:680px){.content-wrap{padding:16px 14px 0}.topbar{padding:10px 14px}.topbar-brand small{display:none}.hero-panel{align-items:flex-start;padding:18px}.hero-icon{width:52px;height:52px;flex-basis:52px;border-radius:17px;font-size:22px}.hero-panel h1{font-size:1.16rem}.hero-panel p{font-size:.86rem}.hero-badge{display:none}.form-grid,.stats-grid,.quick-links{grid-template-columns:1fr}.form-actions{position:static}.footer-panel{display:block}.footer-panel span{display:block;margin-top:5px}.logout-button span{display:none}.panel-card-head{align-items:flex-start}.auth-card{padding:22px}.auth-features{grid-template-columns:1fr}}
