:root{
--bg:#0a101b;
--bg-soft:#121b2d;
--surface:#ffffff;
--surface-soft:#f5f8ff;
--text:#182133;
--muted:#6f7990;
--line:#dbe4f2;
--line-strong:#bfd0ec;
--brand:#1d8fff;
--brand-2:#4fd1ff;
--brand-3:#0d5eff;
--success:#22b36a;
--warning:#dd9c1f;
--danger:#da4d68;
--shadow:0 26px 80px rgba(9,20,44,.18);
--shadow-soft:0 16px 50px rgba(9,20,44,.10);
}
*{box-sizing:border-box}
html{font-family:"Segoe UI",Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:var(--text)}
body{margin:0;background:
radial-gradient(circle at 15% 10%,rgba(62,116,255,.18),transparent 25%),
radial-gradient(circle at 85% 12%,rgba(79,209,255,.18),transparent 20%),
linear-gradient(180deg,#eef4ff 0,#f6f8fc 35%,#eef3fb 100%)}
button,input,select,textarea{font:inherit}
a{text-decoration:none}
.brand{display:flex;align-items:center;gap:10px;font-size:20px}
.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;color:#fff;background:linear-gradient(135deg,var(--brand-3),var(--brand-2));font-size:13px;box-shadow:0 12px 24px rgba(32,105,255,.28)}
.brand em{font-style:normal;font-size:12px;color:var(--muted);padding-left:9px;border-left:1px solid var(--line)}
.primary,.ghost{border:0;border-radius:14px;padding:12px 18px;font-weight:800;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.primary{color:#fff;background:linear-gradient(135deg,var(--brand-3),var(--brand-2));box-shadow:0 14px 32px rgba(35,110,255,.28)}
.primary:hover,.ghost:hover{transform:translateY(-1px)}
.primary span{margin-left:12px}
.wide{width:100%;margin-top:8px}
.ghost{background:#fff;border:1px solid var(--line);color:var(--text);box-shadow:var(--shadow-soft)}
.ghost:hover{border-color:var(--line-strong)}
label{display:grid;gap:7px;font-size:12px;font-weight:700;color:#4f5a73;margin:15px 0}
input,select,textarea{width:100%;border:1px solid #d9e3f1;background:#fff;border-radius:13px;padding:13px 14px;color:var(--text);outline:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
input:focus,select:focus,textarea:focus{border-color:#7caeff;box-shadow:0 0 0 4px rgba(63,125,255,.12)}
textarea{min-height:82px;resize:vertical}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.alert{padding:13px 15px;border-radius:13px;margin:14px 0;font-size:13px;transition:opacity .28s ease,transform .28s ease,max-height .32s ease,margin .32s ease,padding .32s ease}
.alert.bad{background:#fff1f3;color:#b53f56;border:1px solid #ffd1d9}
.alert.good{background:#eefbf3;color:#227a4a;border:1px solid #cfeed9}
.alert.is-hiding{opacity:0;transform:translateY(-6px);max-height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;overflow:hidden}
.eyebrow,.step{text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:900;color:#4f66ff}
.lead{color:var(--muted);line-height:1.72}

.login-page{min-height:100vh;background:
radial-gradient(circle at 12% 18%,rgba(63,125,255,.25),transparent 26%),
radial-gradient(circle at 80% 8%,rgba(79,209,255,.22),transparent 18%),
linear-gradient(120deg,#0d1424 0 52%,#f3f7ff 52%)}
.login-shell{min-height:100vh;display:grid;grid-template-columns:1.08fr .92fr;align-items:center;max-width:1280px;margin:auto;padding:72px}
.login-copy{color:#fff;padding-right:92px}
.brand.light em{color:#b1bbd8;border-color:rgba(255,255,255,.14)}
.login-copy .eyebrow{display:block;margin-top:100px;color:#6bd7ff}
.login-copy h1{font-size:58px;line-height:1.03;margin:20px 0 16px}
.login-copy h1 span{color:#8de2ff}
.login-copy p{color:#afbad5;font-size:16px;max-width:540px;line-height:1.76}
.feature-row{display:flex;gap:10px;margin-top:34px;flex-wrap:wrap}
.feature-row span{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.07);backdrop-filter:blur(8px);border-radius:999px;padding:8px 12px;color:#d5dcf0;font-size:12px}
.login-card{width:min(450px,100%);justify-self:center;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.7);border-radius:28px;padding:42px;box-shadow:var(--shadow)}
.login-card h2{font-size:28px;margin:0 0 6px}
.login-card>p{color:var(--muted);margin:0 0 25px}
.login-card small{display:block;text-align:center;color:#96a0b3;margin-top:22px}
.mobile-brand{display:none}

.installer-page{min-height:100vh;background:
radial-gradient(circle at 50% 0,rgba(132,136,255,.20) 0,transparent 32%),
radial-gradient(circle at 10% 10%,rgba(79,209,255,.14),transparent 24%),
linear-gradient(135deg,#eef4ff,#f8f7ff)}
.install-shell{max-width:760px;margin:auto;padding:48px 24px}
.install-shell>.brand{justify-content:center;margin-bottom:30px}
.install-card{background:rgba(255,255,255,.88);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.8);border-radius:30px;padding:40px 40px 36px;box-shadow:var(--shadow)}
.install-card h1{font-size:38px;line-height:1.04;margin:10px 0 12px}
.footer-note{text-align:center;color:#8d95a7;font-size:12px;margin-top:22px}

.requirements{border:1px solid var(--line);border-radius:16px;overflow:hidden;margin:22px 0;background:rgba(248,250,255,.8)}
.requirements div{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;border-bottom:1px solid var(--line);font-size:12px}
.requirements div:last-child{border:0}
.requirements b.ok{color:#258152}
.requirements b.fail{color:#bd3d4f}
.primary:disabled{opacity:.45;cursor:not-allowed;transform:none}

.dashboard{min-height:100vh;background:
radial-gradient(circle at 10% 8%,rgba(61,126,255,.18),transparent 20%),
radial-gradient(circle at 88% 12%,rgba(79,209,255,.14),transparent 22%),
linear-gradient(180deg,#eef4ff 0,#f5f7fb 46%,#edf2fa 100%)}
.dashboard header{position:sticky;top:0;z-index:20;height:84px;background:rgba(255,255,255,.78);backdrop-filter:blur(18px);border-bottom:1px solid rgba(213,223,240,.9);display:grid;grid-template-columns:auto minmax(260px,1fr) auto;align-items:center;gap:18px;padding:0 max(28px,calc((100vw - 1240px)/2))}
.top-nav{justify-self:center;display:inline-flex;align-items:center;gap:4px;padding:5px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.86);box-shadow:var(--shadow-soft)}
.top-nav a{display:inline-flex;align-items:center;justify-content:center;min-width:102px;border:1px solid transparent;border-radius:11px;padding:9px 13px;color:#536077;font-size:13px;font-weight:800;line-height:1;white-space:nowrap}
.top-nav a:hover{background:#f7faff;border-color:#d7e3f4;color:#245d9f}
.top-nav a.active{background:#10192b;color:#fff;border-color:#10192b;box-shadow:0 10px 22px rgba(16,25,43,.16)}
.header-actions{display:flex;align-items:center;gap:16px}
.header-actions form{margin:0}
.online{font-size:12px;color:#536077;background:#fff;border:1px solid var(--line);padding:8px 11px;border-radius:999px;box-shadow:var(--shadow-soft)}
.online i{display:inline-block;width:8px;height:8px;background:#35c879;border-radius:50%;margin-right:7px;box-shadow:0 0 0 4px rgba(53,200,121,.12)}
.dashboard main{max-width:1240px;margin:0 auto;padding:42px 28px 60px}

.hero{position:relative;display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px;padding:34px 36px;border-radius:28px;overflow:hidden;background:
linear-gradient(135deg,#10192b 0,#132340 56%,#173164 100%);box-shadow:0 28px 80px rgba(12,23,49,.20)}
.compact-hero{align-items:flex-start;padding:28px 32px}
.hero::before{content:"";position:absolute;inset:auto -60px -80px auto;width:280px;height:280px;border-radius:50%;background:radial-gradient(circle,rgba(79,209,255,.34) 0,rgba(79,209,255,0) 68%)}
.hero::after{content:"";position:absolute;left:-70px;top:-90px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(58,121,255,.38) 0,rgba(58,121,255,0) 68%)}
.hero>*{position:relative;z-index:1}
.hero .eyebrow{color:#7fd9ff}
.hero h1{font-size:40px;line-height:1.02;margin:8px 0 10px;color:#fff}
.hero p{color:#b9c4dd;margin:0;max-width:620px;line-height:1.7}

.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}
.stats article{position:relative;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);border:1px solid rgba(215,225,241,.95);border-radius:22px;padding:24px;box-shadow:var(--shadow-soft)}
.stats span{display:block;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.stats strong{display:block;font-size:36px;line-height:1;margin-top:8px}
.stats i{position:absolute;right:22px;top:22px;width:44px;height:44px;display:grid;place-items:center;border-radius:14px;font-style:normal;font-size:16px}
.stats .blue{background:#eaf4ff;color:#258bf0}
.stats .green{background:#eafaf0;color:#32aa67}
.stats .amber{background:#fff6df;color:#b87917}
.stats .violet{background:#f0edff;color:#735be8}

.insights{display:grid;grid-template-columns:1.25fr .95fr;gap:16px;margin-bottom:22px}
.insights article{background:rgba(255,255,255,.84);backdrop-filter:blur(14px);border:1px solid rgba(215,225,241,.95);border-radius:22px;padding:22px 24px;box-shadow:var(--shadow-soft)}
.insight-kicker{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:#5e73ff;font-weight:900;margin-bottom:10px}
.insights h3{margin:0 0 8px;font-size:22px;line-height:1.18}
.insights p{margin:0;color:var(--muted);line-height:1.7}
.insights code{display:block;margin-top:4px;padding:12px 14px;border-radius:14px;background:#10192b;color:#83defe;font-size:13px;word-break:break-all}
.security-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.9fr);gap:18px;align-items:start;margin-bottom:22px;background:rgba(255,255,255,.86);backdrop-filter:blur(14px);border:1px solid rgba(215,225,241,.95);border-radius:22px;padding:22px 24px;box-shadow:var(--shadow-soft)}
.security-panel h3{margin:0 0 8px;font-size:22px;line-height:1.18}
.security-panel p{margin:0;color:var(--muted);line-height:1.7}
.security-actions{display:grid;gap:10px;justify-items:end}
.security-actions form{margin:0}
.totp-setup{display:grid;gap:10px;width:100%}
.totp-setup label{margin:0}
.totp-qr{position:relative;display:grid;place-items:center;justify-self:start;width:220px;height:220px;padding:14px;border:1px solid #dbe4f2;border-radius:22px;background:#fff;box-shadow:var(--shadow-soft)}
.totp-qr svg,.totp-qr img{display:block;width:190px;height:190px}
.totp-qr i{position:absolute;width:24px;height:24px;border-color:#4f66ff}
.totp-qr i:nth-child(1){left:12px;top:12px;border-left:3px solid;border-top:3px solid;border-radius:10px 0 0 0}
.totp-qr i:nth-child(2){right:12px;top:12px;border-right:3px solid;border-top:3px solid;border-radius:0 10px 0 0}
.totp-qr i:nth-child(3){left:12px;bottom:12px;border-left:3px solid;border-bottom:3px solid;border-radius:0 0 0 10px}
.totp-qr i:nth-child(4){right:12px;bottom:12px;border-right:3px solid;border-bottom:3px solid;border-radius:0 0 10px 0}
.totp-secret{display:block;margin-top:7px;padding:12px 14px;border-radius:13px;background:#10192b;color:#83defe;font-size:13px;word-break:break-all}
.totp-confirm-form{display:grid;gap:12px;margin-top:2px}
.totp-confirm-form label{margin:0}
.totp-confirm-form .primary{justify-self:start;min-width:162px}
.recovery-panel{grid-template-columns:1fr 1.2fr;background:#fffefa}
.recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.recovery-grid code{padding:10px 12px;border-radius:11px;background:#10192b;color:#83defe;font-size:12px;text-align:center}
.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:22px}
.settings-grid article{background:rgba(255,255,255,.86);backdrop-filter:blur(14px);border:1px solid rgba(215,225,241,.95);border-radius:22px;padding:22px 24px;box-shadow:var(--shadow-soft)}
.settings-grid h3{margin:0 0 8px;font-size:20px}
.settings-grid p{margin:10px 0 0;color:var(--muted);line-height:1.6}
.settings-grid code{display:block;padding:11px 12px;border-radius:12px;background:#10192b;color:#83defe;font-size:12px;word-break:break-all}

.panel{background:rgba(255,255,255,.90);backdrop-filter:blur(14px);border:1px solid rgba(215,225,241,.95);border-radius:22px;overflow:hidden;box-shadow:var(--shadow-soft)}
.panel-head{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;border-bottom:1px solid var(--line)}
.panel-head.compact{padding:18px 22px}
.panel-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.panel h2{font-size:18px;margin:0 0 4px}
.panel-head p{color:var(--muted);margin:0}
.panel-action{box-shadow:none}
.license-filters{display:grid;grid-template-columns:minmax(320px,1fr) 220px 108px 108px;align-items:end;gap:14px;padding:18px 22px;border-bottom:1px solid var(--line);background:#fbfcfe}
.audit-filters{grid-template-columns:1fr 1fr 180px auto auto}
.license-filters label{margin:0;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#6f7990}
.license-filters input,.license-filters select{height:44px;border-radius:14px;padding:10px 14px;text-transform:none;letter-spacing:0;font-size:12px;font-weight:700;color:#263047}
.license-filters .ghost,.license-filters .filter-reset{height:44px;box-shadow:none;text-align:center}
.filter-reset{display:inline-flex;align-items:center;justify-content:center;border-radius:14px;padding:12px 18px;font-weight:800;color:#253149}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;min-width:980px}
th,td{text-align:left;padding:16px 18px;border-bottom:1px solid #e9eef6;vertical-align:middle}
th{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#8993a4;background:#fbfcfe}
td{font-size:13px}
td small{display:block;color:#8f97a7;margin-top:5px}
.key{border:0;background:none;color:#216cde;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:800;padding:0;cursor:pointer}
.plan-chip{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#ebf3ff;color:#1f66c8;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.status{display:inline-flex;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800}
.status.active{background:#eaf9f0;color:#258152}
.status.suspended{background:#fff6df;color:#a86a10}
.status.revoked{background:#ffebee;color:#bd3d4f}
.status.archived{background:#eef2f7;color:#59677d}
.status.expired{background:#fff0f3;color:#bb3d55}
.muted{color:#8c95a5}
.domain{display:flex;align-items:center;gap:7px;margin:4px 0;flex-wrap:wrap}
.domain span{background:#f2f5fa;border-radius:8px;padding:5px 8px}
.domain form{margin:0}
.domain button{border:0;background:none;color:#9aa3b2;cursor:pointer;font-size:16px;line-height:1}
.domain .domain-reset{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:28px;border:1px solid #cfe0f7;background:#eef6ff;color:#245d9f;border-radius:9px;padding:5px 9px;font-size:11px;font-weight:800;line-height:1.2}
.domain .domain-reset:hover{background:#287fff;border-color:#287fff;color:#fff}
.empty{text-align:center;padding:54px;color:#8d95a7}
.row-actions{display:grid;grid-template-columns:1fr;gap:7px;min-width:106px}
.row-actions form{margin:0}
.row-actions button{appearance:none;width:100%;font:inherit}
.manage-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:92px;padding:10px 13px;border:1px solid #2078e8;border-radius:11px;background:linear-gradient(135deg,#2b8cff,#1469d8);color:#fff;font-weight:900;font-size:12px;line-height:1.1;cursor:pointer;box-shadow:0 10px 20px rgba(31,111,220,.18);transition:.18s ease}
.manage-button:hover{color:#fff;border-color:#075bd0;background:linear-gradient(135deg,#197cff,#075bd0);box-shadow:0 13px 26px rgba(31,111,220,.26)}
.manage-button b{font-size:14px;font-weight:500}
.row-archive,.row-delete{appearance:none;border-radius:11px;padding:10px 12px;font-weight:800;font-size:12px;line-height:1.1;cursor:pointer;transition:.18s ease}
.row-archive{border:1px solid #b7c5d8;background:#f2f6fc;color:#334257}
.row-archive:hover{border-color:#7d8da4;background:#e7eef8;color:#1e2a3b}
.row-delete{border:1px solid #ee9caf;background:#fff0f3;color:#c53452}
.row-delete:hover{background:#da4d68;color:#fff;border-color:#da4d68;box-shadow:0 12px 24px rgba(218,77,104,.20)}
.manage-dialog{width:min(780px,calc(100% - 32px));max-height:calc(100vh - 40px);overflow:hidden}
.manage-dialog::backdrop{background:rgba(14,25,45,.54);backdrop-filter:blur(7px)}
.manage-form{padding:0;background:#fff}
.manage-head{padding:26px 28px 20px;border-bottom:1px solid var(--line)}
.manage-head h2{margin:5px 0 3px;font-size:25px;color:#172033}
.license-key-line{margin:0;color:#3575cc;font:700 12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace}
.license-summary{display:grid;grid-template-columns:1.3fr 1fr auto;gap:12px;padding:15px 28px;background:#f7f9fd;border-bottom:1px solid #e2e8f1}
.license-summary>div{display:grid;gap:4px;align-content:center}
.license-summary span{font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#929caf}
.license-summary strong{font-size:12px;color:#354057;overflow:hidden;text-overflow:ellipsis}
.license-summary .status{justify-self:start}
.manage-section{margin:0;padding:20px 28px 18px;border:0;border-bottom:1px solid #e3e9f2;border-radius:0;background:#fff}
.manage-section-title{display:block;margin-bottom:13px}
.manage-section-title>div{display:flex;align-items:baseline;gap:10px}
.manage-section-title strong{font-size:14px}
.manage-section-title small{font-size:11px;color:#8a95a8}
.status-choice{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.status-option{display:block;margin:0;cursor:pointer}
.status-option input{position:absolute;opacity:0;pointer-events:none}
.status-option>span{position:relative;display:grid;gap:3px;min-height:70px;padding:13px 14px 12px 40px;border:1px solid #dce5f1;border-radius:13px;background:#fff;transition:.18s ease}
.status-option>span i{position:absolute;left:15px;top:17px;width:10px;height:10px;border-radius:50%;background:#b9c3d2;box-shadow:0 0 0 4px #f0f3f7}
.status-option>span strong{font-size:13px;color:#263047}
.status-option>span small{font-size:10px;color:#8b95a7}
.status-option input:checked+span{border-color:#6ca7ff;background:#f3f8ff;box-shadow:0 0 0 3px rgba(62,126,255,.10)}
.status-option.active input:checked+span{border-color:#60c98b;background:#f1fbf5}
.status-option.active input:checked+span i{background:#32ad69;box-shadow:0 0 0 5px #e1f7e9}
.status-option.suspended input:checked+span{border-color:#e7b85e;background:#fff9ec}
.status-option.suspended input:checked+span i{background:#d8941d;box-shadow:0 0 0 5px #fff0cf}
.status-option.revoked input:checked+span{border-color:#e8788d;background:#fff4f6}
.status-option.revoked input:checked+span i{background:#d94e68;box-shadow:0 0 0 5px #ffe4e9}
.status-option.archived input:checked+span{border-color:#a7b3c5;background:#f4f7fb}
.status-option.archived input:checked+span i{background:#687789;box-shadow:0 0 0 5px #e9eef5}
.restriction-fields{padding:19px 28px 8px}
.restriction-heading{display:flex;align-items:baseline;gap:10px;margin-bottom:12px}
.restriction-heading strong{font-size:14px}
.restriction-heading small{font-size:11px;color:#8a95a8}
.reason-select-label{margin:10px 0 4px}
.reason-select{height:44px;background:#fff;color:#263047;font-weight:600}
.support-input{position:relative;display:block}
.support-input input{padding-left:48px}
.support-provider{position:absolute;z-index:1;left:10px;top:50%;transform:translateY(-50%);width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#eef2f7;color:#6b7588;font-style:normal;font-size:10px;font-weight:900}
.support-provider.telegram{background-color:#27a7e7;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M21.8 3.2 18.6 19c-.2 1.1-.9 1.4-1.8.9l-4.9-3.6-2.4 2.3c-.3.3-.5.5-1 .5l.4-5 9.1-8.2c.4-.4-.1-.6-.6-.2L6.1 12.8 1.3 11.3c-1-.3-1-1 .2-1.5L20.2 2.6c.9-.3 1.8.2 1.6.6Z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:18px}
.support-provider.yandex{background-color:#ef3d35;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M13.7 3.2h-1.4c-2.6 0-4 1.3-4 3.4 0 2.4 1.1 3.5 3.3 4.9l1.6 1.1-4.6 7.9H5.2l4.2-7.2C7 11.6 5.7 9.8 5.7 6.8 5.7 3.1 8.3.9 12.3.9h4v19.6h-2.6V3.2Z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:17px 19px}
.support-provider.mailru{background:#edf4ff;color:#1769d2}
.support-provider.email{background:#eef8f2;color:#258152}
.support-provider.link{background:#f2efff;color:#735be8}
.compact-grid{gap:10px}
.restriction-fields label{margin:11px 0}
.restriction-fields textarea{min-height:76px}
.manage-actions{display:flex;justify-content:flex-end;gap:10px;padding:17px 28px 20px;background:#fff;border-top:1px solid var(--line)}
.manage-actions .ghost,.manage-actions .primary{min-width:116px;box-shadow:none}
.restriction-fields.is-disabled{display:none}
.inline-actions{display:flex;justify-content:flex-end;margin-top:10px}
.inline-actions .primary{box-shadow:none}
.hidden-form{display:none}
.quick-extend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 14px}
.quick-extend span{font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#8290a6;margin-right:2px}
.quick-extend button{border:1px solid #d9e3f1;background:#fff;color:#245d9f;border-radius:10px;padding:8px 10px;font-size:12px;font-weight:800;cursor:pointer}
.quick-extend button:hover{border-color:#7caeff;background:#f3f8ff}
.activations-section{background:#fbfcff}
.activation-empty{border:1px dashed #ccd8ea;border-radius:14px;padding:14px;color:#8792a6;background:#fff;font-size:13px}
.activation-list{display:grid;gap:10px}
.activation-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #e0e8f3;border-radius:14px;background:#fff;padding:13px 14px}
.activation-row strong{display:block;font-size:13px;color:#263047}
.activation-row small{display:block;margin-top:4px;color:#8a95a8}
.activation-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.activation-actions form{margin:0}
.activation-actions .ghost,.danger-button.subtle{box-shadow:none;padding:9px 12px;border-radius:11px;font-size:12px}
.danger-button.subtle{background:#fff;border-color:#ffd7de;color:#bd3d4f}
.danger-button.subtle:hover{background:#da4d68;color:#fff;border-color:#da4d68}
.danger-zone{background:#fffafa}
.danger-actions{display:flex;gap:10px;flex-wrap:wrap}
.danger-actions form{margin:0}
.danger-actions .ghost{box-shadow:none}
.danger-button{border:1px solid #ffd0d8;background:#fff0f3;color:#bb3d55;border-radius:14px;padding:12px 18px;font-weight:900;cursor:pointer}
.danger-button:hover{background:#da4d68;color:#fff;border-color:#da4d68}

.audit-panel{margin-top:20px;background:rgba(255,255,255,.90);backdrop-filter:blur(14px);border:1px solid rgba(215,225,241,.95);border-radius:22px;overflow:hidden;box-shadow:var(--shadow-soft)}
.audit-list{display:grid}
.audit-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 22px;border-top:1px solid #e9eef6}
.audit-row strong{display:block;font-size:13px;color:#263047}
.audit-row small{display:block;margin-top:4px;color:#8a95a8}
.audit-row time{white-space:nowrap;color:#8a95a8;font-size:12px}
.compact-empty{padding:22px}

.api-note{margin-top:20px;border-radius:22px;padding:20px 22px;background:linear-gradient(135deg,#0f1729,#182745);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 24px 60px rgba(16,25,43,.18)}
.api-note>div{display:flex;gap:14px;align-items:center}
.api-note p{margin:4px 0 0;color:#adb8d0;font-size:12px}
.api-note code{color:#77dbff}
.api-icon{display:grid;place-items:center;width:44px;height:44px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:14px;color:#6ddaff;font-weight:900}

dialog{width:min(640px,calc(100% - 30px));border:0;border-radius:26px;padding:0;box-shadow:0 38px 100px rgba(14,21,39,.34)}
dialog::backdrop{background:rgba(18,24,38,.56);backdrop-filter:blur(4px)}
dialog form{padding:32px;background:#fff}
.modal-head{display:flex;justify-content:space-between;align-items:start}
.modal-head h2{margin:5px 0;font-size:27px}
.modal-lead{margin:10px 0 0;color:var(--muted);line-height:1.7;max-width:460px}
.close{border:0;background:#f1f4f8;border-radius:10px;width:38px;height:38px;cursor:pointer;font-size:22px}
.confirm-dialog{width:min(560px,calc(100% - 30px));border-radius:24px;overflow:hidden}
.confirm-dialog form{padding:0;background:#fff}
.confirm-head{padding:28px 30px 20px;background:linear-gradient(135deg,#10192b,#172a4c);color:#fff}
.confirm-head .eyebrow{color:#7fd9ff}
.confirm-head h2{color:#fff}
.confirm-head .modal-lead{color:#bfcae0}
.confirm-head .close{background:rgba(255,255,255,.10);color:#fff}
.confirm-body{display:grid;gap:14px;padding:24px 30px 8px;background:#fff}
.confirm-body label{margin:0}
.confirm-body code{display:block;margin-top:7px;padding:12px 14px;border-radius:13px;background:#10192b;color:#83defe;font-size:12px;word-break:break-all}
.confirm-body input{height:48px;border:1px solid #bfd0ec;background:#f8fbff;border-radius:14px;font-weight:800;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#172033}
.confirm-body input:focus{background:#fff;border-color:#4d9bff;box-shadow:0 0 0 4px rgba(29,143,255,.14)}
.confirm-error{display:none;margin:0;padding:11px 13px;border:1px solid #ffd0d8;border-radius:13px;background:#fff0f3;color:#bb3d55;font-size:12px;font-weight:800}
.confirm-error.is-visible{display:block}
.confirm-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 30px 28px;background:#fff}
.confirm-actions .ghost,.confirm-actions .danger-button{min-width:128px;box-shadow:none}
.confirm-actions .confirm-primary{min-width:148px;box-shadow:0 14px 30px rgba(35,110,255,.22)}
.danger-button.bright{border:0;background:linear-gradient(135deg,#e84864,#bd3150);color:#fff;box-shadow:0 14px 30px rgba(218,77,104,.28)}
.danger-button.bright:hover{background:linear-gradient(135deg,#f0526d,#a92844);box-shadow:0 18px 36px rgba(218,77,104,.34)}

@media(max-width:800px){
.login-page{background:linear-gradient(160deg,#171a34 0 26%,#f7f8fc 26%)}
.login-shell{display:block;padding:30px 20px}
.login-copy{padding:0}
.login-copy>.brand,.login-copy .eyebrow,.login-copy h1,.login-copy p,.feature-row{display:none}
.login-card{margin:70px auto 0;padding:28px}
.mobile-brand{display:flex;margin-bottom:35px}
.install-card{padding:30px 22px}
.install-card h1{font-size:30px}
.stats{grid-template-columns:1fr}
.top-nav{order:3;width:100%;justify-content:center;justify-self:stretch}
.security-panel,.recovery-panel{grid-template-columns:1fr}
.security-actions{justify-items:stretch}
.recovery-grid{grid-template-columns:1fr}
.settings-grid{grid-template-columns:1fr}
.license-filters{grid-template-columns:1fr}
.audit-filters{grid-template-columns:1fr}
.insights{grid-template-columns:1fr}
.hero{padding:28px 22px;align-items:start;flex-direction:column}
.hero h1{font-size:30px}
.dashboard header{grid-template-columns:1fr auto;height:auto;min-height:84px;gap:10px;padding:12px 18px}
.dashboard header .brand{min-width:0}
.dashboard header .header-actions{justify-content:end}
.dashboard main{padding:28px 16px}
.online{display:none}
.api-note{align-items:flex-start;flex-direction:column}
.audit-row{align-items:flex-start;flex-direction:column}
.form-grid{grid-template-columns:1fr}
.manage-dialog{width:calc(100% - 20px);max-height:calc(100vh - 20px);overflow:auto}
.confirm-actions{display:grid;grid-template-columns:1fr;padding-left:18px;padding-right:18px}
.confirm-body,.confirm-head{padding-left:18px;padding-right:18px}
.manage-head,.manage-section,.restriction-fields,.manage-actions{padding-left:18px;padding-right:18px}
.license-summary{grid-template-columns:1fr;padding-left:18px;padding-right:18px}
.status-choice{grid-template-columns:1fr}
.manage-section-title>div,.restriction-heading{display:grid;gap:2px}
}
