:root{
--bg:#07101f;--surface:#0b1628;--surface2:#101d32;--surface3:#15243b;
--border:#20314d;--soft:rgba(255,255,255,.065);--text:#eef4ff;--muted:#8fa2bd;
--muted2:#62748f;--primary:#3d8bfd;--green:#31c48d;--amber:#f6b84a;
--red:#f05e6b;--purple:#9a7cff;--sidebar:248px;--topbar:72px;--radius:14px;
--shadow:0 18px 45px rgba(0,0,0,.22)}
*{box-sizing:border-box}html{min-height:100%;background:var(--bg)}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 76% -10%,rgba(61,139,253,.11),transparent 30%),var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,select{font:inherit}a{color:inherit}button{color:inherit}::selection{background:rgba(61,139,253,.35)}
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:rgba(9,19,35,.97);border-right:1px solid var(--soft);display:flex;flex-direction:column;z-index:30;backdrop-filter:blur(18px)}
.brand{height:var(--topbar);display:flex;align-items:center;gap:12px;padding:0 22px;text-decoration:none;border-bottom:1px solid var(--soft)}
.brand-mark{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,var(--primary),#5e6bff);box-shadow:0 8px 24px rgba(61,139,253,.28);font-size:19px}
.brand-mark.large{width:52px;height:52px;border-radius:16px;font-size:24px}.brand strong,.auth-brand strong{display:block;font-size:18px}.brand small,.auth-brand small{display:block;color:var(--muted);margin-top:2px;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.nav{padding:18px 12px;display:flex;flex-direction:column;gap:3px;overflow-y:auto}.nav-label{padding:16px 12px 7px;color:var(--muted2);font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.nav a,.sidebar-footer a{display:flex;align-items:center;gap:12px;min-height:42px;padding:0 12px;border-radius:10px;text-decoration:none;color:var(--muted);font-size:14px;font-weight:600;transition:.18s}
.nav a i,.sidebar-footer a i{width:20px;font-size:16px;text-align:center}.nav a:hover,.sidebar-footer a:hover{background:rgba(255,255,255,.045);color:var(--text)}.nav a.active{color:#fff;background:linear-gradient(90deg,rgba(61,139,253,.22),rgba(61,139,253,.08));box-shadow:inset 3px 0 var(--primary)}
.sidebar-footer{margin-top:auto;padding:12px;border-top:1px solid var(--soft)}.environment{display:flex;align-items:center;gap:8px;margin:0 12px 10px;color:var(--muted);font-size:12px}
.app-content{margin-left:var(--sidebar);min-height:100vh}.topbar{position:sticky;top:0;height:var(--topbar);display:flex;align-items:center;gap:18px;padding:0 28px;background:rgba(7,16,31,.82);border-bottom:1px solid var(--soft);backdrop-filter:blur(18px);z-index:20}
.topbar-search{height:40px;flex:1;max-width:620px;display:flex;align-items:center;gap:10px;padding:0 13px;background:rgba(255,255,255,.035);border:1px solid var(--soft);border-radius:11px;color:var(--muted)}
.topbar-search input{flex:1;border:0;outline:0;background:transparent;color:var(--text);min-width:0}.topbar-search input::placeholder{color:var(--muted2)}.topbar-search kbd{padding:3px 6px;border:1px solid var(--border);border-radius:5px;color:var(--muted);font-size:10px;background:var(--surface)}
.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.profile-chip{display:flex;align-items:center;gap:10px;padding-left:5px}.avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#2e75da,#7b5fea);font-weight:800}
.profile-text strong,.profile-text small{display:block}.profile-text strong{font-size:13px}.profile-text small{margin-top:2px;color:var(--muted);font-size:11px}.balance-chip{padding:7px 12px;border:1px solid rgba(49,196,141,.22);border-radius:10px;background:rgba(49,196,141,.08)}
.balance-chip span,.balance-chip strong{display:block}.balance-chip span{color:var(--muted);font-size:10px;text-transform:uppercase}.balance-chip strong{margin-top:2px;font-size:13px;color:#a7f3d0}
.notification-dot{position:absolute;top:8px;right:8px;width:6px;height:6px;border-radius:50%;background:var(--red);box-shadow:0 0 0 3px var(--bg)}
.icon-button{position:relative;width:36px;height:36px;border:1px solid var(--soft);border-radius:10px;display:inline-grid;place-items:center;background:rgba(255,255,255,.035);cursor:pointer;transition:.18s}.icon-button:hover{border-color:rgba(61,139,253,.45);background:rgba(61,139,253,.1)}.mobile-menu{display:none}
.page{padding:30px 28px 48px;max-width:1760px;margin:0 auto}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.page-header h1{margin:5px 0;font-size:clamp(28px,3vw,38px);letter-spacing:-.045em}.page-header p,.panel-header p{margin:0;color:var(--muted);font-size:13px}
.eyebrow{color:#68a6ff;font-size:10px;font-weight:850;letter-spacing:.16em;text-transform:uppercase}.count{display:inline-flex;vertical-align:middle;min-width:30px;height:26px;align-items:center;justify-content:center;padding:0 8px;border-radius:20px;background:rgba(61,139,253,.12);color:#80b5ff;font-size:14px}
.header-actions{display:flex;align-items:center;gap:10px}.secure-badge{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border-radius:10px;color:#9ce6c7;background:rgba(49,196,141,.08);border:1px solid rgba(49,196,141,.2);font-size:12px}
.button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;border-radius:10px;border:1px solid transparent;text-decoration:none;font-weight:700;font-size:13px;cursor:pointer;transition:.18s}
.button-primary{background:linear-gradient(180deg,#4a95ff,#2475ee);color:#fff;box-shadow:0 8px 24px rgba(37,117,238,.23)}.button-primary:hover{transform:translateY(-1px);filter:brightness(1.06)}.button-ghost{border-color:var(--border);background:rgba(255,255,255,.025);color:var(--muted)}.button-ghost:hover{color:var(--text);border-color:rgba(61,139,253,.42);background:rgba(61,139,253,.08)}.button-block{width:100%;min-height:46px}
.metrics{display:grid;gap:14px;margin-bottom:18px}.metrics-4{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-card{min-height:118px;display:flex;align-items:center;gap:16px;padding:20px;border:1px solid var(--soft);border-radius:var(--radius);background:linear-gradient(145deg,rgba(16,29,50,.93),rgba(10,22,40,.93));box-shadow:0 8px 30px rgba(0,0,0,.12)}
.metric-icon{width:45px;height:45px;flex:0 0 45px;display:grid;place-items:center;border-radius:13px;font-size:19px}.metric-icon.blue{color:#8cbaff;background:rgba(61,139,253,.13)}.metric-icon.green{color:#79ddb5;background:rgba(49,196,141,.12)}.metric-icon.amber{color:#ffd17a;background:rgba(246,184,74,.13)}.metric-icon.purple{color:#c0adff;background:rgba(154,124,255,.13)}
.metric-card span,.metric-card strong,.metric-card small{display:block}.metric-card>div>span{color:var(--muted);font-size:12px}.metric-card strong{margin-top:5px;font-size:29px;letter-spacing:-.04em}.metric-card small{margin-top:3px;color:var(--muted2);font-size:11px}
.panel{border:1px solid var(--soft);border-radius:var(--radius);background:rgba(11,22,40,.9);box-shadow:0 10px 32px rgba(0,0,0,.12);overflow:hidden}.panel-header{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 18px;border-bottom:1px solid var(--soft)}.panel-header h2{margin:0 0 4px;font-size:15px}
.content-grid{display:grid;gap:18px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 330px}.stack{display:flex;flex-direction:column;gap:18px}.compact-panel{padding-bottom:8px}.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);padding:18px;gap:10px}.mini-stats div{padding:12px;border-radius:11px;background:rgba(255,255,255,.025);border:1px solid var(--soft)}.mini-stats span,.mini-stats strong{display:block}.mini-stats span{color:var(--muted);font-size:10px}.mini-stats strong{margin-top:7px;font-size:17px}
.progress-list{padding:16px 18px 12px;display:grid;gap:13px}.progress-list span{display:flex;justify-content:space-between;margin-bottom:7px;color:var(--muted);font-size:11px}progress{width:100%;height:5px;border:0;border-radius:10px;overflow:hidden;background:var(--surface3)}progress::-webkit-progress-bar{background:var(--surface3)}progress::-webkit-progress-value{background:linear-gradient(90deg,var(--primary),#7f68ff)}progress::-moz-progress-bar{background:linear-gradient(90deg,var(--primary),#7f68ff)}
.notice-panel{display:flex;gap:12px;align-items:flex-start;padding:16px;color:var(--muted)}.notice-panel>i{color:#6aa8ff;font-size:19px}.notice-panel strong{color:var(--text);font-size:13px}.notice-panel p{margin:4px 0 0;font-size:12px;line-height:1.5}
.toolbar{display:grid;grid-template-columns:minmax(280px,1fr) 180px 220px auto;align-items:center;gap:10px;margin-bottom:14px;padding:12px;overflow:visible}.toolbar-search,.input-wrap{min-height:40px;display:flex;align-items:center;gap:10px;padding:0 12px;border-radius:10px;background:rgba(255,255,255,.028);border:1px solid var(--soft);color:var(--muted)}.toolbar-search input,.input-wrap input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--text)}select{min-height:40px;padding:0 34px 0 12px;border-radius:10px;border:1px solid var(--soft);background:var(--surface2);color:var(--text);outline:0}
.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;min-width:920px}.data-table th{height:44px;padding:0 14px;border-bottom:1px solid var(--soft);color:var(--muted2);font-size:10px;font-weight:800;letter-spacing:.08em;text-align:left;text-transform:uppercase;white-space:nowrap}.data-table td{height:66px;padding:10px 14px;border-bottom:1px solid rgba(255,255,255,.045);color:#cfdaea;font-size:12px;vertical-align:middle}.data-table tbody tr:hover{background:rgba(61,139,253,.045)}.data-table tbody tr:last-child td{border-bottom:0}
.primary-cell{display:flex;align-items:center;gap:11px;min-width:210px}.primary-cell strong,.primary-cell small,.license-cell strong,.license-cell small,.network-cell strong,.network-cell small{display:block}.primary-cell strong{color:var(--text);font-size:12px}.primary-cell small,.license-cell small,.network-cell small{margin-top:3px;color:var(--muted2);font-size:10px}
.device-icon{position:relative;width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:10px;background:rgba(61,139,253,.1);color:#85b7ff}.device-icon:after{content:"";position:absolute;right:-1px;bottom:-1px;width:8px;height:8px;border-radius:50%;border:2px solid var(--surface);background:var(--muted2)}.device-icon.online:after{background:var(--green)}.device-icon.recent:after{background:var(--amber)}
.license-cell strong,.key-cell strong{color:#9fc4ff;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.network-cell{position:relative;padding-left:13px}.network-cell .presence-dot{position:absolute;left:0;top:4px}.presence-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:var(--muted2)}.presence-dot.online{background:var(--green);box-shadow:0 0 0 4px rgba(49,196,141,.09)}.presence-dot.recent{background:var(--amber)}
.status{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:0 9px;border-radius:20px;border:1px solid transparent;font-size:10px;font-weight:750;white-space:nowrap}.status>span{width:6px;height:6px;border-radius:50%;background:currentColor}.status-success{color:#83e1bb;background:rgba(49,196,141,.09);border-color:rgba(49,196,141,.17)}.status-warning{color:#ffd07a;background:rgba(246,184,74,.09);border-color:rgba(246,184,74,.17)}.status-danger{color:#ff9aa3;background:rgba(240,94,107,.09);border-color:rgba(240,94,107,.17)}.status-muted{color:#a6b3c7;background:rgba(143,162,189,.08);border-color:rgba(143,162,189,.14)}.status-note{display:block;margin:4px 0 0 5px;color:var(--muted2);font-size:9px}
.actions-cell{width:52px;text-align:right}.key-cell{display:flex;align-items:center;gap:8px;min-width:150px}.copy-button{border:0;padding:3px;background:transparent;color:var(--muted2);cursor:pointer}.copy-button:hover{color:#9fc4ff}.type-badge{display:inline-flex;padding:5px 9px;border-radius:8px;color:#9fc4ff;background:rgba(61,139,253,.1);font-size:10px;font-weight:750}.type-yearly{color:#c4b4ff;background:rgba(154,124,255,.1)}.type-lifetime{color:#8ae1bd;background:rgba(49,196,141,.1)}.type-trial,.type-operator,.type-client{color:#ffd17c;background:rgba(246,184,74,.1)}.usage-cell{width:110px}.usage-cell span{display:block;margin-bottom:5px;color:var(--muted);font-size:10px}.lifetime{color:#81ddb8;white-space:nowrap}.empty-state{padding:30px!important;text-align:center;color:var(--muted)!important}
.drawer{position:fixed;top:0;right:0;width:min(440px,94vw);height:100vh;z-index:60;background:#0b1628;border-left:1px solid var(--border);transform:translateX(102%);transition:transform .24s;box-shadow:-25px 0 70px rgba(0,0,0,.32)}.drawer.open{transform:translateX(0)}.drawer-header{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--soft)}.drawer-header h2{margin:4px 0 0;font-size:20px}.drawer-body{padding:20px}.drawer-backdrop,.sidebar-backdrop{position:fixed;inset:0;z-index:55;background:rgba(1,6,14,.62);opacity:0;pointer-events:none;transition:.2s}.drawer-backdrop.open{opacity:1;pointer-events:auto}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.detail-grid>div{padding:13px;border-radius:11px;border:1px solid var(--soft);background:rgba(255,255,255,.025);min-width:0}.detail-grid .wide{grid-column:1/-1}.detail-grid span,.detail-grid strong{display:block}.detail-grid span{color:var(--muted);font-size:10px}.detail-grid strong{margin-top:6px;overflow-wrap:anywhere;font-size:12px}.drawer-notice{display:flex;gap:12px;margin-top:16px;padding:14px;border-radius:11px;color:var(--muted);background:rgba(61,139,253,.07);border:1px solid rgba(61,139,253,.16)}.drawer-notice i{color:#75adff;font-size:19px}.drawer-notice strong{color:var(--text);font-size:12px}.drawer-notice p{margin:4px 0 0;font-size:11px;line-height:1.5}
.invoice-list{padding:8px 16px}.invoice-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 2px;border-bottom:1px solid var(--soft)}.invoice-list>div:last-child{border-bottom:0}.invoice-list span,.invoice-list strong,.invoice-list small{display:block}.invoice-list small{margin-top:4px;color:var(--muted2);font-size:10px}.invoice-list b{display:block;margin-bottom:5px;font-size:12px;text-align:right}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(400px,1.08fr) minmax(420px,.92fr)}.auth-brand-panel{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:44px clamp(35px,6vw,90px);background:linear-gradient(150deg,rgba(61,139,253,.18),transparent 45%),radial-gradient(circle at 20% 85%,rgba(154,124,255,.17),transparent 28%),#09162a;border-right:1px solid var(--soft)}.auth-brand-panel:after{content:"";position:absolute;width:520px;height:520px;right:-180px;bottom:-220px;border-radius:50%;border:1px solid rgba(61,139,253,.13);box-shadow:0 0 0 70px rgba(61,139,253,.025),0 0 0 140px rgba(61,139,253,.018)}.auth-brand{position:relative;z-index:1;display:flex;align-items:center;gap:14px}.auth-copy{position:relative;z-index:1;max-width:650px;margin:auto 0}.auth-copy h1{margin:14px 0;max-width:620px;font-size:clamp(38px,5vw,64px);line-height:1.02;letter-spacing:-.055em}.auth-copy p{max-width:560px;color:var(--muted);font-size:16px;line-height:1.65}.auth-features{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:18px;color:var(--muted);font-size:12px}.auth-features span{display:inline-flex;align-items:center;gap:7px}.auth-features i{color:#69a7ff}
.auth-form-panel{display:grid;place-items:center;padding:30px}.auth-card{width:min(420px,100%);padding:30px;border:1px solid var(--soft);border-radius:18px;background:rgba(11,22,40,.9);box-shadow:var(--shadow)}.auth-card h2{margin:8px 0 6px;font-size:27px}.auth-card>p{margin:0 0 24px;color:var(--muted);font-size:13px}.field{display:block;margin-bottom:15px}.field>span{display:block;margin-bottom:7px;color:#bdc9d9;font-size:11px;font-weight:700}.input-wrap:focus-within,.toolbar-search:focus-within{border-color:rgba(61,139,253,.58);box-shadow:0 0 0 3px rgba(61,139,253,.08)}.alert{display:flex;align-items:center;gap:9px;margin-bottom:16px;padding:11px 12px;border-radius:10px;font-size:12px}.alert-danger{color:#ffabb2;background:rgba(240,94,107,.09);border:1px solid rgba(240,94,107,.18)}.auth-note{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:15px;color:var(--muted2);font-size:10px}
.toast-container{position:fixed;right:18px;bottom:18px;z-index:100;display:grid;gap:8px}.toast{min-width:250px;max-width:360px;padding:12px 14px;border:1px solid var(--border);border-radius:11px;background:var(--surface2);box-shadow:var(--shadow);font-size:12px;animation:toastIn .2s}@keyframes toastIn{from{opacity:0;transform:translateY(8px)}}
@media(max-width:1180px){.metrics-4{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.toolbar{grid-template-columns:minmax(240px,1fr) 170px 190px}}
@media(max-width:850px){:root{--sidebar:270px}.sidebar{transform:translateX(-102%);transition:transform .22s;box-shadow:30px 0 70px rgba(0,0,0,.35)}.sidebar.open{transform:translateX(0)}.sidebar-backdrop.open{opacity:1;pointer-events:auto;z-index:25}.app-content{margin-left:0}.mobile-menu{display:inline-grid}.topbar{padding:0 16px}.topbar-search kbd,.profile-text{display:none}.page{padding:24px 16px 40px}.page-header{align-items:flex-start;flex-direction:column}.toolbar{grid-template-columns:1fr 1fr}.toolbar-search{grid-column:1/-1}.auth-shell{grid-template-columns:1fr}.auth-brand-panel{min-height:410px;padding:30px}.auth-copy h1{font-size:42px}}
@media(max-width:560px){.metrics-4{grid-template-columns:1fr}.toolbar{grid-template-columns:1fr}.toolbar-search{grid-column:auto}.header-actions{width:100%;flex-wrap:wrap}.header-actions .button{flex:1}.topbar-search{display:none}.topbar-actions{width:100%}.balance-chip{margin-left:auto}.profile-chip{display:none}.mini-stats{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}.detail-grid .wide{grid-column:auto}.auth-brand-panel{min-height:360px}.auth-copy h1{font-size:34px}.auth-features{display:grid;gap:9px}.auth-form-panel{padding:18px}.auth-card{padding:22px}}

/* Phase 2 controls */
.drawer-wide{width:min(560px,96vw)}.drawer-body.scrollable{height:calc(100vh - 78px);overflow-y:auto;padding-bottom:42px}.drawer-section{display:block;padding:18px 0;border-bottom:1px solid var(--soft)}.drawer-section:first-child{padding-top:0}.drawer-section:last-child{border-bottom:0}.section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.section-title h3{margin:0 0 4px;font-size:14px}.section-title p{margin:0;color:var(--muted);font-size:11px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid .wide{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;border:1px solid var(--soft);border-radius:10px;background:rgba(255,255,255,.028);color:var(--text);outline:0}.field input,.field select{min-height:40px;padding:0 12px}.field textarea{padding:11px 12px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:rgba(61,139,253,.58);box-shadow:0 0 0 3px rgba(61,139,253,.08)}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}.split-actions{justify-content:space-between}.button-danger{border-color:rgba(240,94,107,.28);background:rgba(240,94,107,.1);color:#ff9aa3}.button-danger:hover{background:rgba(240,94,107,.17)}.check-row{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--soft);border-radius:10px;background:rgba(255,255,255,.022);cursor:pointer}.check-row input{margin-top:2px}.check-row span,.check-row strong,.check-row small{display:block}.check-row strong{font-size:12px}.check-row small{margin-top:3px;color:var(--muted);font-size:10px;line-height:1.45}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.action-grid.two-cols{grid-template-columns:1fr 1fr}.action-button{display:flex;align-items:center;gap:11px;min-height:72px;padding:12px;border:1px solid var(--soft);border-radius:11px;background:rgba(255,255,255,.025);text-align:left;cursor:pointer;transition:.18s}.action-button:hover{transform:translateY(-1px);border-color:rgba(61,139,253,.38);background:rgba(61,139,253,.07)}.action-button>i{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(61,139,253,.1);color:#8bb9ff;font-size:17px}.action-button span,.action-button strong,.action-button small{display:block}.action-button strong{font-size:12px}.action-button small{margin-top:3px;color:var(--muted);font-size:10px}.action-button.success>i{color:#83e1bb;background:rgba(49,196,141,.1)}.action-button.warning>i{color:#ffd07a;background:rgba(246,184,74,.1)}.action-button.danger>i{color:#ff9aa3;background:rgba(240,94,107,.1)}.danger-icon{color:#ff9aa3}.usage-cell small{display:block;margin-top:3px;color:var(--muted2);font-size:9px}
.modal-backdrop{position:fixed;inset:0;z-index:70;background:rgba(1,6,14,.68);opacity:0;pointer-events:none;transition:.2s}.modal-backdrop.open{opacity:1;pointer-events:auto}.modal{position:fixed;z-index:75;top:50%;left:50%;width:min(620px,94vw);max-height:92vh;overflow:auto;transform:translate(-50%,-46%) scale(.98);opacity:0;pointer-events:none;border:1px solid var(--border);border-radius:18px;background:#0b1628;box-shadow:0 30px 90px rgba(0,0,0,.48);transition:.2s}.modal.open{transform:translate(-50%,-50%) scale(1);opacity:1;pointer-events:auto}.modal-header{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 20px;border-bottom:1px solid var(--soft)}.modal-header h2{margin:5px 0 0;font-size:21px}.modal-body{padding:20px}.modal-actions{padding-top:4px}.modal-note{display:flex;gap:9px;margin-top:14px;padding:12px;border-radius:10px;color:var(--muted);background:rgba(61,139,253,.07);border:1px solid rgba(61,139,253,.16);font-size:11px;line-height:1.45}.modal-note i{color:#78adff}.toast-success{border-color:rgba(49,196,141,.28);color:#a7f3d0}.toast-error{border-color:rgba(240,94,107,.3);color:#ffb0b7}.spin{display:inline-block;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}button:disabled{opacity:.58;cursor:not-allowed;transform:none!important}
@media(max-width:560px){.form-grid,.action-grid,.action-grid.two-cols{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.split-actions{flex-direction:column}.split-actions .button{width:100%}.modal-body{padding:16px}}


.license-status-badge{
    display:inline-flex;
    align-items:center;
    padding:5px 9px;
    border-radius:8px;
    font-size:10px;
    font-weight:750;
    white-space:nowrap
}
.license-status-active{
    color:#8ae1bd;
    background:rgba(49,196,141,.1)
}
.license-status-revoked{
    color:#ff9b9b;
    background:rgba(239,83,80,.12)
}
.license-status-expired{
    color:#ffd17c;
    background:rgba(246,184,74,.1)
}
.license-status-suspended{
    color:#c4b4ff;
    background:rgba(154,124,255,.1)
}
.license-status-refunded{
    color:#9fc4ff;
    background:rgba(61,139,253,.1)
}
.license-row-revoked{
    opacity:.62
}
.license-note-cell{
    max-width:220px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--muted)
}
.muted-action{
    color:var(--muted2)
}

.table-sort-button{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:0;
    border:0;
    background:transparent;
    color:inherit;
    font:inherit;
    font-weight:inherit;
    letter-spacing:inherit;
    text-transform:inherit;
    white-space:nowrap;
    cursor:pointer;
}
.table-sort-button:hover{
    color:#cfe1ff;
}
.table-sort-button i{
    font-size:10px;
    opacity:.75;
}


/* ADMIN-ACCOUNT-NAV-V1 */
.admin-account-menu {
    position: relative;
    flex-shrink: 0;
    margin-left: 2px;
}

.admin-account-menu > summary {
    list-style: none;
    cursor: pointer;
}

.admin-account-menu > summary::-webkit-details-marker {
    display: none;
}

.admin-account-menu > .admin-account-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: background .18s, border-color .18s;
}

.admin-account-menu > summary:hover,
.admin-account-menu[open] > summary {
    background: rgba(255,255,255,.055);
    border-color: var(--border);
}

.admin-account-menu > summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.admin-account-chevron {
    color: var(--muted);
    font-size: 12px;
    transition: transform .18s;
}

.admin-account-menu[open] .admin-account-chevron {
    transform: rotate(180deg);
}

.admin-account-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 100;
    width: 260px;
    max-width: calc(100vw - 24px);
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #101d32;
    box-shadow: 0 18px 50px rgba(0,0,0,.48);
}

.admin-account-heading {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 13px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--soft);
}

.admin-account-heading strong {
    color: var(--text);
    font-size: 14px;
}

.admin-account-heading small {
    color: var(--muted);
    font-size: 12px;
}

.admin-account-panel > a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 9px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}

.admin-account-panel > a:hover,
.admin-account-panel > a:focus-visible {
    background: rgba(255,255,255,.075);
}

.admin-account-panel > a i {
    width: 19px;
    font-size: 16px;
    color: var(--muted);
}

.admin-account-divider {
    height: 1px;
    margin: 7px 5px;
    background: var(--soft);
}

.admin-account-panel > .admin-account-logout,
.admin-account-panel > .admin-account-logout i {
    color: var(--red);
}

.admin-alert-link {
    text-decoration: none;
}

@media (max-width: 560px) {
    .admin-account-menu {
        margin-left: auto;
    }

    .admin-account-menu > .admin-account-trigger {
        display: flex;
    }

    .admin-account-panel {
        right: 0;
    }
}

/* FIBERNET-SETTINGS-V2-2-FIX */

/* COMMON PANELS */

.settings-v2-page {
    --s22-border: rgba(126,158,204,.18);
    --s22-card: #102039;
}

.settings-v2-page section.panel {
    border: 1px solid var(--s22-border);
    border-radius: 14px;
    overflow: hidden;
}

.settings-v2-page .panel-header {
    padding: 19px 22px;
    border-bottom: 1px solid var(--s22-border);
}

.settings-v2-page .panel-header h3 {
    margin: 5px 0 8px;
    font-size: 19px;
}

.settings-v2-page .panel-header p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.settings-v2-page section.panel form {
    padding: 20px 22px !important;
}

.settings-v2-page section.panel form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.settings-v2-page section.panel form textarea,
.settings-v2-page section.panel form select {
    min-height: 40px;
    box-sizing: border-box;
    background: #15253e !important;
    color: #ebf2ff !important;
    border: 1px solid #354963 !important;
    border-radius: 9px;
    padding: 8px 12px;
}

.settings-v2-page section.panel form input:focus-visible,
.settings-v2-page section.panel form textarea:focus-visible {
    outline: 2px solid #498fff;
    outline-offset: 1px;
}

.settings-v2-page section.panel form small {
    color: var(--muted);
    line-height: 1.5;
}

.settings-v2-page section.panel form button[type=submit] {
    min-height: 40px;
    border-radius: 9px;
    white-space: nowrap;
}

/* GENERAL */

.settings-v2-page .settings-v2-summary {
    gap: 13px !important;
    margin-bottom: 16px;
}

.settings-v2-page .settings-v2-summary .metric-card {
    min-height: 96px;
    padding: 16px 18px;
    border: 1px solid var(--s22-border);
}

.settings-v2-page .settings-v2-summary .metric-card strong {
    font-size: 27px;
}

.settings-v2-page #settings-panel-general textarea {
    min-height: 76px;
}

/* LICENSING */

.settings-v2-page #settings-panel-licensing > form > div:first-child {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 18px !important;
}

/* SECURITY */

.settings-v2-page #settings-panel-security > form > div:first-child {
    display: grid !important;
    grid-template-columns: repeat(5,minmax(0,1fr)) !important;
    gap: 14px !important;
    align-items: start;
}

.settings-v2-page #settings-panel-security > form > div:first-child > div {
    min-width: 0;
}

/* RETENTION */

.settings-v2-page #settings-panel-retention > form > div:first-child {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 18px !important;
}

/* UPDATES */

.settings-v2-page #settings-panel-updates > div:last-child {
    margin: 0 20px 20px !important;
    padding: 18px !important;
    border: 1px solid var(--s22-border) !important;
    border-radius: 12px !important;
    background: var(--s22-card);
}

.settings-v2-page #settings-panel-updates > div:last-child strong {
    overflow-wrap: anywhere;
}

/* PRICING */

.settings-v2-page #settings-panel-pricing #pricingSettingsForm > div:first-child {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 15px !important;
}

.settings-v2-page #pricingSettingsForm > div:first-child > div {
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--s22-border);
    border-radius: 12px;
    background: var(--s22-card);
}

.settings-v2-page #pricingSettingsForm > div:first-child > div label {
    display: block;
    font-weight: 650;
    margin-bottom: 10px !important;
}

.settings-v2-page #pricingSettingsForm input {
    font-size: 17px !important;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* DISCOUNTS */

.settings-v2-page #settings-panel-discounts {
    padding: 20px !important;
}

.settings-v2-page #settings-panel-discounts > div:first-child {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--s22-border);
}

.settings-v2-page #settings-panel-discounts .data-table thead {
    display: none;
}

.settings-v2-page #settings-panel-discounts .data-table,
.settings-v2-page #settings-panel-discounts .data-table tbody,
.settings-v2-page #settings-panel-discounts .data-table tr {
    display: block;
    width: 100%;
}

.settings-v2-page #settings-panel-discounts .data-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--s22-border);
    border-radius: 12px;
    background: var(--s22-card);
}

.settings-v2-page #settings-panel-discounts .data-table td[colspan="3"] {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 100px 100px;
    gap: 10px;
    align-items: end;
    box-sizing: border-box;
    width: 100%;
    padding: 16px !important;
    border: none;
}

.settings-v2-page #settings-panel-discounts .operator-discount-tier-edit-form {
    display: grid !important;
    grid-template-columns:
        minmax(0,1fr)
        minmax(0,1fr)
        90px
        90px;
    gap: 12px !important;
    align-items: end !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.settings-v2-page #settings-panel-discounts .operator-discount-tier-edit-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0 !important;
    margin: 0;
}

.settings-v2-page #settings-panel-discounts .operator-discount-tier-edit-form label input {
    width: 100%;
    min-width: 0;
}

.settings-v2-page #settings-panel-discounts .operator-discount-tier-edit-form > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0 !important;
    min-height: 40px;
    padding: 0 5px;
    border: 1px solid var(--s22-border);
    border-radius: 9px;
    background: #1b304d;
    font-size: 11px;
    white-space: nowrap;
}

.settings-v2-page #settings-panel-discounts .operator-discount-tier-edit-form > button {
    width: 100%;
    min-height: 40px;
}

.settings-v2-page #settings-panel-discounts td[colspan="3"] > div:has(.operator-discount-tier-toggle),
.settings-v2-page #settings-panel-discounts td[colspan="3"] > div:has(.operator-discount-tier-delete) {
    margin: 0 !important;
}

.settings-v2-page #settings-panel-discounts .operator-discount-tier-toggle,
.settings-v2-page #settings-panel-discounts .operator-discount-tier-delete {
    width: 100%;
    min-height: 40px;
    border-radius: 9px;
    padding: 8px 10px;
    white-space: nowrap;
}

.settings-v2-page #settings-panel-discounts .operator-discount-tier-delete {
    border: 1px solid rgba(240,94,115,.35);
    background: rgba(240,94,115,.09);
    color: #ff9dab;
}

/* CREATE DISCOUNT TIER */

.settings-v2-page #operatorDiscountTierCreateForm {
    margin-top: 18px !important;
    padding: 18px !important;
    background: var(--s22-card);
    border: 1px solid var(--s22-border);
    border-radius: 12px;
}

.settings-v2-page #operatorDiscountTierCreateForm::before {
    content: "Добавяне на нов праг";
    display: block;
    margin-bottom: 17px;
    font-size: 15px;
    font-weight: 700;
}

.settings-v2-page #operatorDiscountTierCreateForm > div {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) 175px !important;
    gap: 14px !important;
    align-items: end !important;
}

.settings-v2-page #operatorDiscountTierCreateForm .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.settings-v2-page #operatorDiscountTierCreateForm button[type=submit] {
    width: 100%;
}

/* RESPONSIVE */

@media(max-width:1250px) {
    .settings-v2-page #settings-panel-security > form > div:first-child {
        grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    }

    .settings-v2-page #settings-panel-discounts .data-table td[colspan="3"] {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .settings-v2-page #settings-panel-discounts .operator-discount-tier-edit-form {
        grid-column: 1 / -1;
    }
}

@media(max-width:850px) {
    .settings-v2-page #settings-panel-security > form > div:first-child {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }

    .settings-v2-page #settings-panel-pricing #pricingSettingsForm > div:first-child {
        grid-template-columns: 1fr !important;
    }

    .settings-v2-page #settings-panel-discounts .operator-discount-tier-edit-form {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .settings-v2-page #operatorDiscountTierCreateForm > div {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }

    .settings-v2-page #operatorDiscountTierCreateForm button[type=submit] {
        grid-column: 1 / -1;
    }
}

@media(max-width:600px) {
    .settings-v2-page #settings-panel-licensing > form > div:first-child,
    .settings-v2-page #settings-panel-security > form > div:first-child,
    .settings-v2-page #settings-panel-retention > form > div:first-child {
        grid-template-columns: 1fr !important;
    }

    .settings-v2-page #settings-panel-discounts {
        padding: 12px !important;
    }

    .settings-v2-page #settings-panel-discounts .data-table td[colspan="3"] {
        padding: 12px !important;
    }
}

/* END FIBERNET-SETTINGS-V2-2-FIX */

/* ========================================================
   FIBERNET-SETTINGS-DISCOUNTS-PREMIUM-V23
   CSS-ONLY PREMIUM DESIGN
   ======================================================== */

/* Main premium panel */

.settings-v2-page #settings-panel-discounts {
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(68,133,235,.32);
    border-radius: 17px;
    background:
        radial-gradient(
            ellipse at 94% 0%,
            rgba(38,105,224,.11),
            transparent 50%
        ),
        linear-gradient(155deg,#0d203a,#091729 85%);
    box-shadow:
        0 14px 35px rgba(0,0,0,.13),
        inset 0 1px rgba(133,180,255,.07);
}

/* Header with large percentage icon and notice */

.settings-v2-page #settings-panel-discounts > div:first-child {
    display: grid !important;
    grid-template-columns: 58px minmax(0,1fr) minmax(220px,330px);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 17px;
    padding: 24px !important;
    margin: 0 0 20px !important;
    border-bottom: 1px solid rgba(87,139,218,.19);
    background: linear-gradient(
        100deg,
        rgba(36,98,192,.12),
        rgba(36,98,192,.015)
    );
}

.settings-v2-page #settings-panel-discounts > div:first-child::before {
    content: "%";
    grid-column: 1;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: linear-gradient(145deg,#6554bf,#344f9a);
    border: 1px solid #9088e9;
    box-shadow: 0 8px 25px rgba(100,79,206,.18);
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}

.settings-v2-page #settings-panel-discounts > div:first-child h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 6px !important;
    font-size: 23px;
    letter-spacing: -.4px;
    color: #f2f6ff;
}

.settings-v2-page #settings-panel-discounts > div:first-child p {
    grid-column: 2;
    grid-row: 2;
    margin: 0 !important;
    max-width: 720px;
    color: #9fb8dd;
    font-size: 12px;
    line-height: 1.55;
}

.settings-v2-page #settings-panel-discounts > div:first-child::after {
    content: "ⓘ  Важно: отстъпките се прилагат само след ръчно административно одобрение.";
    grid-column: 3;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 1px solid rgba(61,139,253,.35);
    border-radius: 12px;
    background: rgba(44,107,211,.11);
    color: #aacbfa;
    font-size: 12px;
    line-height: 1.55;
}

/* Remove old table scrolling */

.settings-v2-page #settings-panel-discounts .table-wrap {
    width: auto;
    margin: 0 20px;
    overflow: visible !important;
}

.settings-v2-page #settings-panel-discounts .data-table,
.settings-v2-page #settings-panel-discounts .data-table tbody {
    display: block !important;
    min-width: 0 !important;
    max-width: 100%;
    width: 100% !important;
    table-layout: auto;
}

.settings-v2-page #settings-panel-discounts .data-table thead {
    display: none !important;
}

/* Premium discount tier rows */

.settings-v2-page #settings-panel-discounts .data-table tbody tr {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 12px;
    border: 1px solid rgba(72,137,236,.24);
    border-radius: 13px;
    background: linear-gradient(105deg,#112a4a,#0e2139);
    box-shadow: inset 0 1px rgba(180,210,255,.035);
    transition: border-color .16s, background .16s;
}

.settings-v2-page #settings-panel-discounts .data-table tbody tr:hover {
    border-color: rgba(88,157,255,.55);
    background: linear-gradient(105deg,#153154,#112744);
}

/* Fields and all three actions on one desktop row */

.settings-v2-page #settings-panel-discounts .data-table td[colspan="3"] {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 116px 108px !important;
    align-items: end !important;
    gap: 12px !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    padding: 17px !important;
    border: 0 !important;
}

.settings-v2-page #settings-panel-discounts
.operator-discount-tier-edit-form {
    display: grid !important;
    grid-template-columns:
        minmax(0,1fr)
        minmax(0,1fr)
        102px
        114px !important;
    align-items: end !important;
    gap: 12px !important;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.settings-v2-page #settings-panel-discounts
.operator-discount-tier-edit-form .field {
    display: flex !important;
    flex-direction: column;
    gap: 9px;
    min-width: 0 !important;
    margin: 0 !important;
}

.settings-v2-page #settings-panel-discounts
.operator-discount-tier-edit-form .field span {
    font-size: 11px;
    font-weight: 650;
    color: #9ab5dc;
}

.settings-v2-page #settings-panel-discounts
.operator-discount-tier-edit-form input {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 43px !important;
    padding: 9px 12px !important;
    border: 1px solid #315580 !important;
    border-radius: 9px !important;
    background: rgba(18,45,82,.85) !important;
    color: #f2f7ff !important;
    font-size: 17px !important;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

/* Status badge */

.settings-v2-page #settings-panel-discounts
.operator-discount-tier-edit-form > span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0 !important;
    min-height: 43px !important;
    padding: 0 8px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(44,209,145,.20);
    background: rgba(17,154,105,.15);
    color: #66efb0;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.settings-v2-page #settings-panel-discounts
.operator-discount-tier-edit-form > span::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: #27dda0;
    box-shadow: 0 0 9px rgba(39,221,160,.42);
}

/* Inactive tiers, determined by existing button data */

.settings-v2-page #settings-panel-discounts
td:has(.operator-discount-tier-toggle[data-enabled="1"])
.operator-discount-tier-edit-form > span {
    color: #afc0d7;
    background: rgba(126,150,182,.1);
    border-color: rgba(126,150,182,.22);
}

.settings-v2-page #settings-panel-discounts
td:has(.operator-discount-tier-toggle[data-enabled="1"])
.operator-discount-tier-edit-form > span::before {
    background: #8299b5;
    box-shadow: none;
}

/* Save button */

.settings-v2-page #settings-panel-discounts
.operator-discount-tier-edit-form > button {
    min-height: 43px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 9px 10px !important;
    border: 1px solid #438ffc;
    border-radius: 10px;
    color: white;
    background: linear-gradient(180deg,#438fff,#1663dd);
    box-shadow: 0 5px 17px rgba(26,109,241,.19);
    font-weight: 750;
}

/* Toggle and delete wrapper alignment */

.settings-v2-page #settings-panel-discounts
.data-table td[colspan="3"] > div:has(> .operator-discount-tier-toggle),
.settings-v2-page #settings-panel-discounts
.data-table td[colspan="3"] > div:has(> .operator-discount-tier-delete) {
    align-self: end;
    margin: 0 !important;
    min-width: 0;
}

/* Toggle button */

.settings-v2-page #settings-panel-discounts
.operator-discount-tier-toggle {
    width: 100% !important;
    min-height: 43px !important;
    margin: 0 !important;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid #41628c;
    background: linear-gradient(180deg,#344e73,#243955);
    color: #f2f6ff;
    font-size: 12px;
    font-weight: 700;
}

.settings-v2-page #settings-panel-discounts
.operator-discount-tier-toggle[data-enabled="1"] {
    border-color: #258d71;
    background: linear-gradient(180deg,#159c75,#107353);
    color: #fff;
}

/* Delete button */

.settings-v2-page #settings-panel-discounts
.operator-discount-tier-delete {
    width: 100% !important;
    min-height: 43px !important;
    margin: 0 !important;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid #aa3f59;
    background: linear-gradient(180deg,#793049,#602337);
    color: #ffb7c3;
    font-size: 12px;
    font-weight: 700;
}

.settings-v2-page #settings-panel-discounts
.operator-discount-tier-delete:hover {
    background: #963b54;
    color: #fff;
}

/* New threshold: separate premium panel */

.settings-v2-page #operatorDiscountTierCreateForm {
    position: relative;
    margin: 19px 20px 16px !important;
    padding: 24px 20px 20px !important;
    border: 1px solid rgba(65,135,240,.25);
    border-radius: 14px;
    background:
        linear-gradient(125deg,#112847,#0e2038);
    box-shadow: inset 0 1px rgba(160,200,255,.04);
}

.settings-v2-page #operatorDiscountTierCreateForm::before {
    content: "✚  Добавяне на нов праг";
    display: block !important;
    margin-bottom: 21px;
    color: #f1f6ff;
    font-size: 18px;
    font-weight: 750;
}

.settings-v2-page #operatorDiscountTierCreateForm > div {
    display: grid !important;
    grid-template-columns:
        minmax(0,1fr)
        minmax(0,1fr)
        210px !important;
    gap: 16px !important;
    align-items: end !important;
}

.settings-v2-page #operatorDiscountTierCreateForm .field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0 !important;
}

.settings-v2-page #operatorDiscountTierCreateForm .field span {
    font-size: 12px;
    font-weight: 650;
    color: #aac4e6;
}

.settings-v2-page #operatorDiscountTierCreateForm input {
    width: 100%;
    min-width: 0;
    min-height: 46px !important;
    border: 1px solid #315580 !important;
    border-radius: 10px;
    background: #112744 !important;
}

.settings-v2-page #operatorDiscountTierCreateForm button[type="submit"] {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    background: linear-gradient(180deg,#418fff,#1268e9);
    box-shadow: 0 6px 20px rgba(21,101,235,.2);
    font-weight: 750;
}

/* Informational note */

.settings-v2-page #settings-panel-discounts > small:last-child {
    display: block;
    margin: 0 20px 20px !important;
    padding: 13px 16px;
    border: 1px solid rgba(61,139,253,.23);
    border-radius: 10px;
    background: rgba(40,94,175,.08);
    color: #a6c2e6;
    font-size: 11px;
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 1350px) {
    .settings-v2-page #settings-panel-discounts
    .data-table td[colspan="3"] {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }

    .settings-v2-page #settings-panel-discounts
    .operator-discount-tier-edit-form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 950px) {
    .settings-v2-page #settings-panel-discounts > div:first-child {
        grid-template-columns: 48px minmax(0,1fr);
        gap: 12px;
    }

    .settings-v2-page #settings-panel-discounts > div:first-child::before {
        width: 48px;
        height: 48px;
        font-size: 25px;
    }

    .settings-v2-page #settings-panel-discounts > div:first-child::after {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 14px;
    }

    .settings-v2-page #settings-panel-discounts
    .operator-discount-tier-edit-form {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }

    .settings-v2-page #operatorDiscountTierCreateForm > div {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }

    .settings-v2-page #operatorDiscountTierCreateForm button[type="submit"] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 580px) {
    .settings-v2-page #settings-panel-discounts > div:first-child {
        padding: 16px !important;
    }

    .settings-v2-page #settings-panel-discounts .table-wrap {
        margin: 0 12px;
    }

    .settings-v2-page #settings-panel-discounts
    .data-table td[colspan="3"] {
        padding: 12px !important;
        gap: 9px !important;
    }

    .settings-v2-page #operatorDiscountTierCreateForm {
        margin: 13px 12px !important;
        padding: 18px 12px !important;
    }

    .settings-v2-page #settings-panel-discounts > small:last-child {
        margin: 0 12px 13px !important;
    }
}

/* END FIBERNET-SETTINGS-DISCOUNTS-PREMIUM-V23 */

/* ==================================================
   FIBERNET-PREMIUM-TIER-HEIGHT-FIX-R1
   FIX CLIPPED TIER ROWS AND INNER SCROLLBARS
   ================================================== */

/* Remove inherited scroll and height restrictions */

.settings-v2-page #settings-panel-discounts .table-wrap,
.settings-v2-page #settings-panel-discounts .data-table,
.settings-v2-page #settings-panel-discounts .data-table tbody,
.settings-v2-page #settings-panel-discounts .data-table tbody tr,
.settings-v2-page #settings-panel-discounts .data-table td {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Each tier must expand to its actual content height */

.settings-v2-page #settings-panel-discounts
.data-table tbody tr {
    display: flow-root !important;
    box-sizing: border-box !important;
    min-height: 116px !important;
    margin-bottom: 18px !important;
    position: relative;
}

/* Complete grid row without clipping the inputs */

.settings-v2-page #settings-panel-discounts
.data-table td[colspan="3"] {
    display: grid !important;
    grid-template-columns:
        minmax(0,1fr)
        116px
        108px !important;
    align-items: end !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    min-height: 108px !important;
    padding: 18px !important;
    overflow: visible !important;
}

/* Keep fields and buttons naturally sized */

.settings-v2-page #settings-panel-discounts
.operator-discount-tier-edit-form {
    min-height: 69px;
    height: auto !important;
    align-self: end;
    overflow: visible !important;
}

.settings-v2-page #settings-panel-discounts
.operator-discount-tier-edit-form .field {
    min-width: 0;
}

.settings-v2-page #settings-panel-discounts
.operator-discount-tier-edit-form input {
    box-sizing: border-box;
    min-height: 43px;
}

/* Action buttons must not be compressed */

.settings-v2-page #settings-panel-discounts
.data-table td[colspan="3"] > div:has(> .operator-discount-tier-toggle),
.settings-v2-page #settings-panel-discounts
.data-table td[colspan="3"] > div:has(> .operator-discount-tier-delete) {
    display: flex !important;
    align-items: flex-end;
    min-height: 43px;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
}

/* Visually separate the create section */

.settings-v2-page #operatorDiscountTierCreateForm {
    clear: both;
    margin: 26px 20px 17px !important;
    position: relative;
}

/* Responsive layout */

@media (max-width: 1350px) {
    .settings-v2-page #settings-panel-discounts
    .data-table td[colspan="3"] {
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }

    .settings-v2-page #settings-panel-discounts
    .operator-discount-tier-edit-form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 950px) {
    .settings-v2-page #settings-panel-discounts
    .operator-discount-tier-edit-form {
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }
}

@media (max-width: 580px) {
    .settings-v2-page #settings-panel-discounts
    .data-table td[colspan="3"] {
        padding: 13px !important;
        gap: 10px !important;
    }

    .settings-v2-page #operatorDiscountTierCreateForm {
        margin: 19px 12px 14px !important;
    }
}

/* END FIBERNET-PREMIUM-TIER-HEIGHT-FIX-R1 */

/* ===========================================================
   FIBERNET-SETTINGS-PREMIUM-SIX-V24
   PREMIUM DARK THEME — SIX SETTINGS TABS
   DISCOUNTS V2.3 IS NOT MODIFIED
   =========================================================== */

/* SECTION COLOR SYSTEM */

.settings-v2-page #settings-panel-general {
    --sp-accent: #488fff;
    --sp-glow: rgba(56,122,243,.16);
}

.settings-v2-page #settings-panel-licensing {
    --sp-accent: #a48bff;
    --sp-glow: rgba(139,102,238,.16);
}

.settings-v2-page #settings-panel-security {
    --sp-accent: #42d6ac;
    --sp-glow: rgba(40,196,153,.14);
}

.settings-v2-page #settings-panel-retention {
    --sp-accent: #f5be69;
    --sp-glow: rgba(235,161,56,.12);
}

.settings-v2-page #settings-panel-updates {
    --sp-accent: #62b9ff;
    --sp-glow: rgba(55,151,235,.15);
}

.settings-v2-page #settings-panel-pricing {
    --sp-accent: #b39bff;
    --sp-glow: rgba(149,110,240,.15);
}

/* MAIN PREMIUM PANELS */

.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) {
    border: 1px solid rgba(73,138,234,.27) !important;
    border-radius: 17px !important;

    background:
        radial-gradient(
            ellipse at 94% 0%,
            var(--sp-glow),
            transparent 53%
        ),
        linear-gradient(155deg,#0d203a,#091729 90%);

    box-shadow:
        0 14px 36px rgba(0,0,0,.13),
        inset 0 1px rgba(150,194,255,.06);

    overflow: hidden;
}

/* PREMIUM HEADER WITH ACCENT ICON */

.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) .panel-header {
    position: relative;
    display: flex;
    align-items: center;

    min-height: 104px;
    padding: 22px 24px 22px 100px !important;

    background:
        linear-gradient(
            100deg,
            var(--sp-glow),
            rgba(15,36,65,.12)
        );

    border-bottom: 1px solid rgba(88,148,230,.17);
}

.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) .panel-header::before {
    content: "✦";

    position: absolute;
    left: 24px;
    top: 23px;

    display: grid;
    place-items: center;

    width: 56px;
    height: 56px;

    border: 1px solid var(--sp-accent);
    border-radius: 15px;

    background: var(--sp-glow);

    color: var(--sp-accent);
    font-size: 28px;
    font-weight: 800;

    box-shadow: 0 8px 22px var(--sp-glow);
}

.settings-v2-page #settings-panel-general .panel-header::before {
    content: "⚙";
}

.settings-v2-page #settings-panel-licensing .panel-header::before {
    content: "✦";
}

.settings-v2-page #settings-panel-security .panel-header::before {
    content: "⬡";
}

.settings-v2-page #settings-panel-retention .panel-header::before {
    content: "◷";
}

.settings-v2-page #settings-panel-updates .panel-header::before {
    content: "⇧";
}

.settings-v2-page #settings-panel-pricing .panel-header::before {
    content: "€";
}

.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) .panel-header > div {
    min-width: 0;
}

.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) .panel-header .eyebrow {
    color: var(--sp-accent);
    font-size: 10px;
    letter-spacing: 1.4px;
}

.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) .panel-header h3 {
    margin: 7px 0 8px;
    font-size: 21px;
    font-weight: 750;
    color: #f0f5ff;
    letter-spacing: -.35px;
}

.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) .panel-header p {
    margin: 0;
    max-width: 950px;
    font-size: 12px;
    line-height: 1.65;
    color: #9db5d6;
}

/* SHARED PREMIUM FORM ELEMENTS */

.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) form {
    padding: 22px 24px !important;
}

.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) form textarea,
.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) form select {
    min-height: 43px;

    background: #132a49 !important;
    border: 1px solid #345984 !important;

    color: #edf5ff !important;

    border-radius: 10px;
    padding: 10px 12px;

    font-size: 13px;

    transition:
        border-color .16s,
        box-shadow .16s;
}

.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) form input:focus,
.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) form textarea:focus {
    outline: none;
    border-color: var(--sp-accent) !important;
    box-shadow: 0 0 0 3px var(--sp-glow);
}

/* SAVE ACTIONS */

.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) form button[type="submit"].button-primary {
    min-height: 43px;
    padding: 10px 19px;

    border-radius: 10px;
    border: 1px solid #488fff;

    background:
        linear-gradient(180deg,#4895ff,#1566df);

    color: white;
    font-weight: 750;
    font-size: 12px;

    box-shadow: 0 6px 21px rgba(30,113,234,.2);
}

.settings-v2-page :is(
    #settings-panel-general,
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention,
    #settings-panel-updates,
    #settings-panel-pricing
) form > div:last-child:has(> button[type="submit"]) {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center;
    gap: 12px;
}

/* GENERAL — PRICE OVERVIEW */

.settings-v2-page .settings-v2-summary {
    gap: 15px !important;
    margin-bottom: 18px;
}

.settings-v2-page .settings-v2-summary .metric-card {
    min-height: 112px;

    border: 1px solid rgba(80,144,236,.3);
    border-radius: 15px;

    background:
        linear-gradient(120deg,#122f53,#0d2038);

    box-shadow: inset 0 1px rgba(160,205,255,.05);
}

.settings-v2-page .settings-v2-summary .metric-card:nth-child(2) {
    background: linear-gradient(120deg,#24254c,#111c38);
    border-color: rgba(162,127,248,.27);
}

.settings-v2-page .settings-v2-summary .metric-card:nth-child(3) {
    background: linear-gradient(120deg,#302b36,#161e30);
    border-color: rgba(242,181,91,.22);
}

.settings-v2-page .settings-v2-summary .metric-card strong {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.55px;
}

.settings-v2-page .settings-v2-summary .metric-icon {
    width: 49px;
    height: 49px;
    border-radius: 13px;
}

/*  SUPPORT FIELDS */GENERAL 

.settings-v2-page #settings-panel-general
form > div:first-child > div {
    min-width: 0;
}

.settings-v2-page #settings-panel-general
form > div[style*="border"] {
    border: 1px solid rgba(77,145,243,.23) !important;
    border-radius: 13px !important;
    background: rgba(27,64,115,.11);
    padding: 16px !important;
}

/* LICENSING — TWO PREMIUM FIELD CARDS */

.settings-v2-page #settings-panel-licensing
form > div:first-child > div {
    min-width: 0;
    padding: 17px;

    border: 1px solid rgba(149,116,247,.25);
    border-radius: 12px;

    background:
        linear-gradient(140deg,#1b2448,#101f37);
}

.settings-v2-page #settings-panel-licensing
form > div:first-child > div label {
    color: #dbcfff;
    font-size: 13px;
    font-weight: 700;
}

/* SECURITY — FIVE PARAMETER CARDS */

.settings-v2-page #settings-panel-security
form > div:first-child > div {
    min-width: 0;
    padding: 15px;

    border: 1px solid rgba(51,190,158,.21);
    border-radius: 12px;

    background:
        linear-gradient(150deg,#102e3d,#102239);
}

.settings-v2-page #settings-panel-security
form > div:first-child > div label {
    color: #a5f0d8;
    font-size: 12px;
    font-weight: 700;
}

/* RETENTION — TWO DISTINCT CARDS */

.settings-v2-page #settings-panel-retention
form > div:first-child > div {
    min-width: 0;
    padding: 18px;

    border: 1px solid rgba(233,164,78,.23);
    border-radius: 12px;

    background:
        linear-gradient(135deg,#2b2732,#122139);
}

.settings-v2-page #settings-panel-retention
form > div:first-child > div label {
    color: #f5d39c;
    font-size: 13px;
    font-weight: 700;
}

/* INFORMATION BOXES */

.settings-v2-page :is(
    #settings-panel-licensing,
    #settings-panel-security,
    #settings-panel-retention
) form > div[style*="border"] {
    border: 1px solid rgba(83,146,233,.23) !important;
    border-radius: 12px !important;

    background: rgba(31,67,118,.11);
    padding: 17px !important;
}

/* UPDATES — STABLE RELEASE CARD */

.settings-v2-page #settings-panel-updates
> div:last-child {
    margin: 0 22px 22px !important;
    padding: 20px !important;

    border: 1px solid rgba(83,155,249,.3) !important;
    border-radius: 14px !important;

    background:
        linear-gradient(125deg,#122a4b,#0e2038);
}

.settings-v2-page #settings-panel-updates
> div:last-child > div[style*="display:grid"] > div {
    min-width: 0;
    padding: 12px;

    border-radius: 10px;
    border: 1px solid rgba(96,154,227,.15);

    background: rgba(48,90,150,.08);

    overflow-wrap: anywhere;
}

/* PRICING — THREE PREMIUM PRICE CARDS */

.settings-v2-page #pricingSettingsForm
> div:first-child > div {
    min-width: 0;
    padding: 22px;

    border: 1px solid rgba(85,149,239,.28);
    border-radius: 14px;

    background:
        linear-gradient(145deg,#122d50,#0e2039);
}

.settings-v2-page #pricingSettingsForm
> div:first-child > div:nth-child(2) {
    border-color: rgba(164,135,250,.29);
    background: linear-gradient(145deg,#252747,#111e37);
}

.settings-v2-page #pricingSettingsForm
> div:first-child > div:nth-child(3) {
    border-color: rgba(235,176,84,.27);
    background: linear-gradient(145deg,#302a32,#141e33);
}

.settings-v2-page #pricingSettingsForm
> div:first-child > div label {
    margin-bottom: 15px !important;
    color: #e4edff;
    font-size: 14px;
    font-weight: 750;
}

.settings-v2-page #pricingSettingsForm input {
    min-height: 48px !important;
    font-size: 19px !important;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* RESPONSIVE */

@media (max-width: 1350px) {
    .settings-v2-page #settings-panel-security
    > form > div:first-child {
        grid-template-columns:
            repeat(3,minmax(0,1fr)) !important;
    }
}

@media (max-width: 900px) {
    .settings-v2-page #settings-panel-security
    > form > div:first-child {
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }

    .settings-v2-page #pricingSettingsForm
    > div:first-child {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 650px) {
    .settings-v2-page :is(
        #settings-panel-general,
        #settings-panel-licensing,
        #settings-panel-security,
        #settings-panel-retention,
        #settings-panel-updates,
        #settings-panel-pricing
    ) .panel-header {
        min-height: 90px;
        padding: 17px 14px 17px 73px !important;
    }

    .settings-v2-page :is(
        #settings-panel-general,
        #settings-panel-licensing,
        #settings-panel-security,
        #settings-panel-retention,
        #settings-panel-updates,
        #settings-panel-pricing
    ) .panel-header::before {
        left: 14px;
        top: 20px;
        width: 45px;
        height: 45px;
        font-size: 23px;
    }

    .settings-v2-page :is(
        #settings-panel-general,
        #settings-panel-licensing,
        #settings-panel-security,
        #settings-panel-retention,
        #settings-panel-updates,
        #settings-panel-pricing
    ) form {
        padding: 14px !important;
    }

    .settings-v2-page #settings-panel-licensing
    > form > div:first-child,
    .settings-v2-page #settings-panel-security
    > form > div:first-child,
    .settings-v2-page #settings-panel-retention
    > form > div:first-child {
        grid-template-columns: 1fr !important;
    }

    .settings-v2-page #settings-panel-updates
    > div:last-child {
        margin: 0 14px 14px !important;
        padding: 14px !important;
    }
}

/* END FIBERNET-SETTINGS-PREMIUM-SIX-V24 */

/* =====================================================
   FIBERNET-SETTINGS-FINAL-V25
   Maintenance mode — Premium ON/OFF switch
   ===================================================== */

.settings-v2-page
#settings-panel-general input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;

    position: relative;
    display: inline-block !important;

    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;

    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;

    box-sizing: border-box;

    margin: 0 11px 0 0 !important;
    padding: 0 !important;

    vertical-align: middle;

    border: 1px solid #466080 !important;
    border-radius: 999px !important;

    background: #263b58 !important;

    cursor: pointer;

    box-shadow: inset 0 2px 5px rgba(0,0,0,.20);

    transition:
        background .18s,
        border-color .18s;
}

.settings-v2-page
#settings-panel-general input[type="checkbox"]::before {
    content: "";

    position: absolute;
    left: 3px;
    top: 3px;

    width: 17px;
    height: 17px;

    border-radius: 50%;
    background: #dce8f8;

    box-shadow: 0 2px 5px rgba(0,0,0,.25);

    transition: transform .18s;
}

.settings-v2-page
#settings-panel-general input[type="checkbox"]:checked {
    border-color: #4d9aff !important;

    background:
        linear-gradient(90deg,#1767d8,#449cff)
        !important;

    box-shadow:
        0 0 15px rgba(50,139,255,.20);
}

.settings-v2-page
#settings-panel-general input[type="checkbox"]:checked::before {
    transform: translateX(21px);
    background: #fff;
}

.settings-v2-page
#settings-panel-general input[type="checkbox"]:focus-visible {
    outline: 2px solid #95bdff !important;
    outline-offset: 3px;
}

.settings-v2-page
#settings-panel-general input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: .5;
}

/* Minor consistency refinements */

.settings-v2-page
#settings-panel-security form label {
    line-height: 1.4;
}

.settings-v2-page
#settings-panel-discounts > small:last-child {
    line-height: 1.6;
    color: #aac7ea;
}

/* END FIBERNET-SETTINGS-FINAL-V25 */

/* =====================================================
   FIBERNET-LOGIN-SECURITY-PREMIUM-V1
   CSS ONLY — SECURITY ADMINISTRATION
   ===================================================== */

.login-security-premium-v1 {
    --ls-border: rgba(80,145,237,.23);
    --ls-blue: #468fff;
    --ls-muted: #93aace;
}

/* Page title */

.login-security-premium-v1 .page-header {
    margin-bottom: 20px;
}

.login-security-premium-v1 .page-header h1 {
    color: #f2f6ff;
    letter-spacing: -.6px;
}

/* Statistics */

.login-security-premium-v1 .metrics {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 15px;
    margin-bottom: 18px;
}

.login-security-premium-v1 .metric-card {
    position: relative;
    min-width: 0;
    min-height: 118px;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--ls-border);
    background: linear-gradient(135deg,#132a49,#0e1d33);
    box-shadow: inset 0 1px rgba(160,200,255,.05);
}

.login-security-premium-v1 .metric-card:nth-child(1) {
    background: linear-gradient(135deg,#302136,#131d32);
    border-color: rgba(239,98,123,.23);
}

.login-security-premium-v1 .metric-card:nth-child(2) {
    background: linear-gradient(135deg,#302a2b,#151e31);
    border-color: rgba(237,177,86,.23);
}

.login-security-premium-v1 .metric-card:nth-child(3) {
    background: linear-gradient(135deg,#142f4d,#0d2038);
}

.login-security-premium-v1 .metric-card:nth-child(4) {
    background: linear-gradient(135deg,#302038,#141d32);
    border-color: rgba(226,108,144,.22);
}

.login-security-premium-v1 .metric-card strong {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.login-security-premium-v1 .metric-card small {
    color: var(--ls-muted);
}

/* Main panels */

.login-security-premium-v1 section.panel {
    overflow: hidden;
    margin-top: 17px !important;
    border: 1px solid var(--ls-border);
    border-radius: 16px;
    background:
        radial-gradient(
            ellipse at 94% 0%,
            rgba(44,107,204,.08),
            transparent 50%
        ),
        #0b192d;
    box-shadow:
        0 12px 30px rgba(0,0,0,.10),
        inset 0 1px rgba(140,190,255,.04);
}

/* Panel headings */

.login-security-premium-v1 .panel-header {
    padding: 21px 22px !important;
    border-bottom: 1px solid rgba(96,145,213,.17);
    background: linear-gradient(
        90deg,
        rgba(48,110,209,.12),
        rgba(48,110,209,.015)
    );
}

.login-security-premium-v1 .panel-header h3 {
    margin: 7px 0 0;
    font-size: 19px;
    font-weight: 750;
    color: #f1f6ff;
}

.login-security-premium-v1 .panel-header .eyebrow {
    color: #73acff;
}

/* Tables */

.login-security-premium-v1 .table-wrap {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
}

.login-security-premium-v1 .login-security-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    margin: 0;
}

.login-security-premium-v1 .login-security-table th {
    height: auto;
    padding: 15px 15px;
    background: #10223b;
    color: #8fa8cd;
    border-bottom: 1px solid rgba(96,145,213,.18);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    white-space: nowrap;
    text-align: left;
}

.login-security-premium-v1 .login-security-table td {
    height: auto;
    min-height: 56px;
    padding: 14px 15px;
    border-bottom: 1px solid rgba(108,152,209,.10);
    color: #d5e2f5;
    font-size: 12px;
    line-height: 1.5;
    vertical-align: middle;
}

.login-security-premium-v1 .login-security-table tbody tr {
    transition: background .15s;
}

.login-security-premium-v1 .login-security-table tbody tr:nth-child(even) {
    background: rgba(54,101,166,.035);
}

.login-security-premium-v1 .login-security-table tbody tr:hover {
    background: rgba(53,118,217,.12);
}

.login-security-premium-v1 .login-security-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Text values */

.login-security-premium-v1 .login-security-table code {
    padding: 4px 7px;
    border-radius: 6px;
    background: rgba(64,105,162,.12);
    color: #b7d6ff;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.login-security-premium-v1 .login-security-table td:first-child {
    font-variant-numeric: tabular-nums;
}

.login-security-premium-v1 .login-security-table td:last-child {
    white-space: nowrap;
}

.login-security-premium-v1 .login-security-table button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 37px;
    padding: 8px 13px;
    margin: 0;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.login-security-premium-v1 .login-security-table .button-danger {
    background: rgba(211,66,96,.15);
    border: 1px solid rgba(246,95,126,.35);
    color: #ff9bae;
}

.login-security-premium-v1 .login-security-table .button-danger:hover {
    background: rgba(211,66,96,.28);
}

.login-security-premium-v1 .login-security-table .button-ghost {
    background: rgba(50,135,237,.10);
    border: 1px solid rgba(80,150,244,.28);
    color: #a6cfff;
}

/* Current profile */

.login-security-premium-v1 section.panel:first-of-type
.login-security-table {
    min-width: 810px;
}

/* Blocked IP listing */

.login-security-premium-v1 section.panel:nth-of-type(3)
.login-security-table {
    min-width: 1080px;
}

/* Search */

.login-security-premium-v1 .table-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-security-premium-v1 .search-box {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 230px;
    padding: 0 13px;
    min-height: 38px;
    border: 1px solid rgba(103,153,223,.25);
    border-radius: 10px;
    background: #13253e;
}

.login-security-premium-v1 .search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #eaf3ff;
    background: transparent;
    font-size: 12px;
}

/* Events */

.login-security-premium-v1 #login-security-events {
    min-width: 1050px;
}

.login-security-premium-v1 .login-security-event {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(74,143,244,.12);
    border: 1px solid rgba(74,143,244,.22);
    color: #a9ceff;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.login-security-premium-v1
.login-security-event[data-login-event="login_success"] {
    background: rgba(33,189,128,.12);
    border-color: rgba(33,189,128,.25);
    color: #65e9ae;
}

.login-security-premium-v1
.login-security-event[data-login-event="failed_login"] {
    background: rgba(240,84,105,.12);
    border-color: rgba(240,84,105,.28);
    color: #ff9baa;
}

.login-security-premium-v1
.login-security-event[data-login-event*="lock"],
.login-security-premium-v1
.login-security-event[data-login-event*="blocked"] {
    background: rgba(237,176,72,.12);
    border-color: rgba(237,176,72,.26);
    color: #ffd18a;
}

/* Responsive */

@media(max-width:1150px) {
    .login-security-premium-v1 .metrics {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .login-security-premium-v1 .table-tools {
        flex-wrap: wrap;
    }
}

@media(max-width:650px) {
    .login-security-premium-v1 .metrics {
        grid-template-columns: 1fr;
    }

    .login-security-premium-v1 .metric-card {
        min-height: 90px;
    }

    .login-security-premium-v1 .panel-header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px !important;
    }

    .login-security-premium-v1 .search-box {
        min-width: 0;
        width: 100%;
    }

    .login-security-premium-v1 .login-security-table th,
    .login-security-premium-v1 .login-security-table td {
        padding: 12px;
    }
}

/* END FIBERNET-LOGIN-SECURITY-PREMIUM-V1 */

/* ===================================================
   FIBERNET-LOGIN-SECURITY-V11-BG
   Bulgarian event labels and blocked IP status
   =================================================== */

.login-security-premium-v1 .ls-v11-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 29px;
    padding: 5px 11px;

    box-sizing: border-box;
    border-radius: 8px;

    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;
    white-space: nowrap;
}

.login-security-premium-v1 .ls-v11-blocked {
    color: #ff9aaa;
    background: rgba(239,80,108,.13);
    border: 1px solid rgba(239,80,108,.30);
}

.login-security-premium-v1 .ls-v11-unblocked {
    color: #67e6ad;
    background: rgba(34,195,134,.12);
    border: 1px solid rgba(34,195,134,.27);
}

.login-security-premium-v1 .ls-v11-status i {
    font-size: 12px;
}

/* Keep all event badge colors from Premium V1. */

.login-security-premium-v1 .login-security-event {
    max-width: 100%;
    line-height: 1.4;
    text-align: center;
}

/* END FIBERNET-LOGIN-SECURITY-V11-BG */


/* FIBERNET-AUDIT-PREMIUM-V1 */

.audit-premium-v1 {
    --audit-stroke: rgba(126,155,201,.15);
    --audit-muted: #93a7c5;
}

.audit-premium-v1 .page-header {
    margin-bottom: 20px;
}

.audit-premium-v1 .audit-metrics {
    gap: 14px;
    margin-bottom: 17px;
}

.audit-premium-v1 .audit-metrics .metric-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 105px;
    padding: 19px 20px;
    border: 1px solid var(--audit-stroke);
    border-radius: 15px;
    background: linear-gradient(145deg,#111e34,#0a172a);
    box-shadow: 0 10px 26px rgba(2,7,19,.12);
}

.audit-premium-v1 .audit-metrics .metric-card strong {
    color: #f0f5ff;
    font-size: 28px;
    letter-spacing: -.6px;
}

.audit-premium-v1 .audit-metrics .metric-card small {
    color: var(--audit-muted);
}

.audit-premium-v1 .audit-filter-panel,
.audit-premium-v1 .audit-history-panel {
    overflow: hidden;
    border: 1px solid var(--audit-stroke);
    border-radius: 16px;
    background: #0b172a;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.audit-premium-v1 .audit-history-panel {
    margin-top: 16px;
}

.audit-premium-v1 .audit-filter-panel .panel-header,
.audit-premium-v1 .audit-history-panel .panel-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--audit-stroke);
}

.audit-premium-v1 .panel-header h3 {
    display: flex;
    align-items: center;
    gap: 9px;
}

.audit-premium-v1 .panel-header h3 > i {
    color: #5b9bff;
    font-size: 16px;
}

.audit-premium-v1 .audit-filter-form {
    display: grid;
    grid-template-columns: minmax(185px,280px) minmax(220px,1fr) auto auto;
    align-items: end;
    gap: 13px;
    padding: 18px 20px 20px;
}

.audit-premium-v1 .audit-filter-field {
    min-width: 0;
}

.audit-premium-v1 .audit-filter-field label {
    display: block;
    margin: 0 0 8px;
    color: #c8d8f0;
    font-size: 12px;
    font-weight: 700;
}

.audit-premium-v1 .audit-filter-field input,
.audit-premium-v1 .audit-filter-field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid #2a3955;
    border-radius: 9px;
    color: #edf4ff;
    background: #121f35;
    outline: none;
}

.audit-premium-v1 .audit-filter-field input:focus,
.audit-premium-v1 .audit-filter-field select:focus {
    border-color: #5897ff;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.audit-premium-v1 .audit-filter-field input::placeholder {
    color: #7890b1;
}

.audit-premium-v1 .audit-filter-form > .button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
}

.audit-premium-v1 .audit-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.audit-premium-v1 .audit-table {
    min-width: 1030px;
    border-collapse: separate;
    border-spacing: 0;
}

.audit-premium-v1 .audit-table thead th {
    padding: 14px 15px;
    border-bottom: 1px solid var(--audit-stroke);
    color: #b5c6e1;
    background: #101e34;
    font-size: 12px;
    font-weight: 750;
    text-align: left;
}

.audit-premium-v1 .audit-table tbody td {
    padding: 14px 15px;
    border-bottom: 1px solid rgba(111,143,194,.11);
    color: #dce6f8;
    font-size: 12px;
    line-height: 1.5;
    vertical-align: middle;
}

.audit-premium-v1 .audit-table tbody tr:nth-child(even) {
    background: rgba(42,67,109,.07);
}

.audit-premium-v1 .audit-table tbody tr:hover {
    background: rgba(58,98,170,.13);
}

.audit-premium-v1 .audit-table tbody tr:last-child td {
    border-bottom: none;
}

.audit-premium-v1 .audit-table tbody td strong {
    color: #f1f5ff;
    font-weight: 700;
}

.audit-premium-v1 .audit-entity-type {
    display: block;
    margin-bottom: 3px;
    color: #91aacf;
    font-size: 11px;
    font-weight: 600;
}

.audit-premium-v1 .audit-action-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}

.audit-premium-v1 .audit-tone-green {
    color: #70e7b2;
    background: rgba(30,171,117,.13);
    border-color: rgba(44,202,142,.22);
}

.audit-premium-v1 .audit-tone-blue {
    color: #90bcff;
    background: rgba(60,128,238,.13);
    border-color: rgba(74,145,255,.22);
}

.audit-premium-v1 .audit-tone-amber {
    color: #f7cc80;
    background: rgba(224,158,54,.12);
    border-color: rgba(236,175,66,.20);
}

.audit-premium-v1 .audit-tone-red {
    color: #ffa0ac;
    background: rgba(233,78,106,.12);
    border-color: rgba(241,97,125,.22);
}

.audit-premium-v1 .audit-ip {
    display: inline-block;
    padding: 5px 8px;
    border: 1px solid rgba(115,149,200,.17);
    border-radius: 7px;
    background: rgba(37,57,91,.4);
    color: #a9cdfb;
    font-size: 11px;
    white-space: nowrap;
}

.audit-premium-v1 .audit-diff-cell {
    min-width: 0;
}

.audit-premium-v1 .audit-change > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #233552;
    border-radius: 9px;
    background: #101f36;
    cursor: pointer;
    list-style: none;
}

.audit-premium-v1 .audit-change > summary::-webkit-details-marker {
    display: none;
}

.audit-premium-v1 .audit-change > summary:hover {
    border-color: #4272b7;
    background: #152842;
}

.audit-premium-v1 .audit-change-preview {
    min-width: 0;
    overflow: hidden;
    color: #aebfda;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
    font-size: 10.5px;
}

.audit-premium-v1 .audit-change-hint {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #76aeff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.audit-premium-v1 .audit-change[open] .audit-change-hint i {
    transform: rotate(180deg);
}

.audit-premium-v1 .audit-change-body {
    display: grid;
    gap: 9px;
    margin-top: 9px;
}

.audit-premium-v1 .audit-change-side {
    min-width: 0;
}

.audit-premium-v1 .audit-diff-before,
.audit-premium-v1 .audit-diff-after {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.audit-premium-v1 .audit-diff-before {
    color: #ffbd8c;
}

.audit-premium-v1 .audit-diff-after {
    color: #79e4b7;
}

.audit-premium-v1 .audit-change pre {
    box-sizing: border-box;
    width: 100%;
    max-height: 220px;
    margin: 0;
    padding: 10px;
    overflow: auto;
    border: 1px solid rgba(111,143,194,.18);
    border-radius: 8px;
    background: #070f1f;
    color: #c7d9f0;
    font-size: 10px;
    font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.audit-premium-v1 .audit-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 14px;
    border-top: 1px solid var(--audit-stroke);
}

.audit-premium-v1 .audit-pagination .button {
    min-width: 36px;
    justify-content: center;
}

@media (max-width:1150px) {
    .audit-premium-v1 .audit-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width:790px) {
    .audit-premium-v1 .audit-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .audit-premium-v1 .audit-filter-action,
    .audit-premium-v1 .audit-filter-search {
        grid-column: 1/-1;
    }
}

@media (max-width:650px) {
    .audit-premium-v1 .audit-metrics {
        grid-template-columns: 1fr;
    }

    .audit-premium-v1 .audit-filter-form {
        padding: 14px;
        gap: 10px;
    }
}

/* END FIBERNET-AUDIT-PREMIUM-V1 */

/* FIBERNET-SHARING-PREMIUM-V1 */

.sharing-premium-v1 {
    --sharing-stroke: rgba(128,158,207,.16);
    --sharing-muted: #92a7c7;
}

.sharing-premium-v1 > .page-header {
    padding-top: 12px;
    margin-bottom: 20px;
}

/* Statistics */

.sharing-premium-v1 .sharing-metrics {
    gap: 14px;
    margin-bottom: 17px;
}

.sharing-premium-v1 .sharing-metrics .metric-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 110px;
    padding: 19px 20px;
    border: 1px solid var(--sharing-stroke);
    border-radius: 15px;
    background: linear-gradient(145deg,#111f36,#0b182c);
    box-shadow: 0 10px 25px rgba(0,0,0,.13);
}

.sharing-premium-v1 .sharing-metrics .metric-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 21px;
}

.sharing-premium-v1 .sharing-metrics .metric-card:nth-child(1) .metric-icon {
    color: #ff9aaa;
    background: rgba(235,79,108,.13);
}

.sharing-premium-v1 .sharing-metrics .metric-card:nth-child(2) .metric-icon {
    color: #8ab9ff;
    background: rgba(64,128,235,.14);
}

.sharing-premium-v1 .sharing-metrics .metric-card:nth-child(3) .metric-icon {
    color: #ffd18a;
    background: rgba(228,159,45,.14);
}

.sharing-premium-v1 .sharing-metrics .metric-card:nth-child(4) .metric-icon {
    color: #71e6b4;
    background: rgba(35,183,132,.13);
}

.sharing-premium-v1 .sharing-metrics .metric-card strong {
    color: #f0f5ff;
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -.5px;
}

.sharing-premium-v1 .sharing-metrics .metric-card small {
    color: var(--sharing-muted);
}

/* Panels */

.sharing-premium-v1 .sharing-settings-panel,
.sharing-premium-v1 .sharing-alerts-panel {
    overflow: hidden;
    border: 1px solid var(--sharing-stroke);
    border-radius: 16px;
    background: #0b182b;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.sharing-premium-v1 .sharing-alerts-panel {
    margin-top: 16px;
}

.sharing-premium-v1 .sharing-settings-panel .panel-header,
.sharing-premium-v1 .sharing-alerts-panel .panel-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--sharing-stroke);
}

.sharing-premium-v1 .panel-header h3 {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sharing-premium-v1 .panel-header h3 > i {
    color: #66a4ff;
    font-size: 17px;
}

/* Settings form */

.sharing-premium-v1 .sharing-settings-form {
    display: grid;
    grid-template-columns: minmax(190px,260px) minmax(280px,1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px;
}

.sharing-premium-v1 .sharing-setting-field label {
    display: block;
    margin-bottom: 8px;
    color: #c6d6f0;
    font-size: 12px;
    font-weight: 750;
}

.sharing-premium-v1 .sharing-window-input {
    box-sizing: border-box;
    width: 100%;
    max-width: 190px;
    height: 42px;
    padding: 8px 13px;
    border: 1px solid #304366;
    border-radius: 9px;
    background: #14243e;
    color: #f1f6ff;
    font-size: 15px;
    font-weight: 750;
    outline: none;
}

.sharing-premium-v1 .sharing-window-input:focus {
    border-color: #609fff;
    box-shadow: 0 0 0 3px rgba(62,134,247,.16);
}

.sharing-premium-v1 .sharing-mode-info {
    min-width: 0;
    padding: 12px 15px;
    border: 1px solid rgba(62,187,140,.18);
    border-radius: 11px;
    background: rgba(24,125,93,.07);
}

.sharing-premium-v1 .sharing-mode-info > small:first-child {
    display: block;
    color: #a9bdd9;
    font-size: 11px;
    font-weight: 750;
}

.sharing-premium-v1 .sharing-mode-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    color: #78e6b6;
    font-size: 16px;
    font-weight: 800;
}

.sharing-premium-v1 .sharing-mode-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #35d79a;
}

.sharing-premium-v1 .sharing-mode-info > small:last-child {
    color: #91b5aa;
    line-height: 1.5;
}

.sharing-premium-v1 .sharing-save-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.sharing-premium-v1 .sharing-save-action .button {
    min-height: 42px;
    padding: 10px 17px;
    white-space: nowrap;
}

/* Search */

.sharing-premium-v1 .sharing-alerts-panel .table-tools {
    min-width: 0;
}

.sharing-premium-v1 .sharing-search-box {
    width: 270px;
    max-width: 100%;
    min-height: 40px;
    border: 1px solid #30405d;
    border-radius: 9px;
    background: #13223b;
}

.sharing-premium-v1 .sharing-search-box input {
    width: 100%;
    min-height: 38px;
    border: 0;
    outline: none;
    background: transparent;
    color: #edf4ff;
}

.sharing-premium-v1 .sharing-search-box input::placeholder {
    color: #8197b9;
}

/* Active alerts table */

.sharing-premium-v1 .sharing-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.sharing-premium-v1 .sharing-alert-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: separate;
    border-spacing: 0;
}

.sharing-premium-v1 .sharing-alert-table th {
    padding: 13px 14px;
    border-bottom: 1px solid var(--sharing-stroke);
    background: #102039;
    color: #b9c9e2;
    font-size: 12px;
    font-weight: 750;
    text-align: left;
    white-space: nowrap;
}

.sharing-premium-v1 .sharing-alert-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(126,158,208,.11);
    color: #d9e4f6;
    font-size: 12px;
    line-height: 1.55;
    vertical-align: middle;
}

.sharing-premium-v1 .sharing-alert-table tbody tr:nth-child(even) {
    background: rgba(49,76,119,.07);
}

.sharing-premium-v1 .sharing-alert-table tbody tr:hover {
    background: rgba(58,104,174,.13);
}

.sharing-premium-v1 .sharing-mac,
.sharing-premium-v1 .sharing-ip {
    display: inline-block;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(103,146,214,.2);
    border-radius: 7px;
    background: rgba(43,69,111,.3);
    color: #a8cbff;
    font-size: 11px;
    white-space: nowrap;
}

.sharing-premium-v1 .sharing-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sharing-premium-v1 .sharing-row-actions .button {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
}

/* Empty state */

.sharing-premium-v1 .sharing-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 46px 20px 52px;
    text-align: center;
}

.sharing-premium-v1 .sharing-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    border: 1px solid rgba(54,192,139,.24);
    border-radius: 18px;
    background: rgba(32,176,122,.10);
    color: #6fe1b0;
    font-size: 34px;
}

.sharing-premium-v1 .sharing-empty-state h3 {
    color: #edf5ff;
    font-size: 17px;
}

.sharing-premium-v1 .sharing-empty-text {
    margin-top: 7px;
    color: #8fa5c5;
    font-size: 13px;
}

/* Responsive */

@media (max-width:1150px) {
    .sharing-premium-v1 .sharing-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .sharing-premium-v1 .sharing-settings-form {
        grid-template-columns: minmax(180px,1fr) minmax(220px,2fr);
    }

    .sharing-premium-v1 .sharing-save-action {
        grid-column: 1/-1;
        justify-content: flex-end;
    }
}

@media (max-width:700px) {
    .sharing-premium-v1 .sharing-metrics {
        grid-template-columns: 1fr;
    }

    .sharing-premium-v1 .sharing-settings-form {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .sharing-premium-v1 .sharing-save-action {
        grid-column: auto;
        justify-content: stretch;
    }

    .sharing-premium-v1 .sharing-save-action .button {
        width: 100%;
    }

    .sharing-premium-v1 .sharing-alerts-panel .panel-header {
        flex-wrap: wrap;
        gap: 14px;
    }

    .sharing-premium-v1 .sharing-search-box {
        width: 100%;
    }
}

/* END FIBERNET-SHARING-PREMIUM-V1 */

/* FIBERNET-AUDIT-PREMIUM-V11-ALIGN */

/* Keep the page heading clear of the top navigation */
.audit-premium-v1 > .page-header {
    padding-top: 18px;
}

/* Align expanded audit details at the top of their row */
.audit-premium-v1 .audit-table tbody tr:has(.audit-change[open]) > td {
    vertical-align: top;
}

/* END FIBERNET-AUDIT-PREMIUM-V11-ALIGN */

/* FIBERNET-SHARING-SEARCH-V11 */

.sharing-premium-v1 .sharing-search-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    box-sizing: border-box;
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
}

.sharing-premium-v1 .sharing-search-box > i {
    position: static;
    inset: auto;
    display: inline-block;
    flex: 0 0 auto;
    margin: 0;
    transform: none;
    color: #85a6d6;
    font-size: 15px;
    line-height: 1;
}

.sharing-premium-v1 .sharing-search-box input {
    display: block;
    flex: 1 1 auto;
    box-sizing: border-box;
    min-width: 0;
    width: auto;
    height: 38px;
    min-height: 0;
    margin: 0;
    padding: 0;
    line-height: normal;
}

/* END FIBERNET-SHARING-SEARCH-V11 */

/* FIBERNET-ADMIN-DEVICE-FULLPAGE-V1 */

.device-name-link {
    color: inherit;
    text-decoration: none;
}
.device-name-link:hover strong {
    color: #69a7ff;
}

.device-detail-page {
    max-width: 1700px;
    padding-bottom: 48px;
}

.device-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #8296b3;
    font-size: 13px;
}

.device-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #a9c5eb;
    text-decoration: none;
    font-weight: 650;
    transition: color .2s ease;
}
.device-back-link:hover {
    color: #fff;
}
.device-back-link i {
    font-size: 17px;
}
.device-breadcrumb-separator {
    color: #40536e;
}

.device-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 27px 30px;
    margin-bottom: 18px;
    border: 1px solid rgba(91, 139, 205, .24);
    border-radius: 19px;
    background:
        radial-gradient(ellipse at 8% 0%, rgba(54, 113, 211, .20), transparent 48%),
        linear-gradient(120deg, #101f35, #0b1729 75%);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .14);
}

.device-detail-hero-main {
    display: flex;
    align-items: center;
    gap: 21px;
    min-width: 0;
}

.device-detail-icon {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #8dbaff;
    font-size: 29px;
    background: linear-gradient(145deg, #1e477f, #142d50);
    border: 1px solid rgba(117, 170, 255, .24);
    box-shadow: 0 8px 24px rgba(28, 83, 160, .20);
}

.device-detail-heading {
    min-width: 0;
}
.device-detail-eyebrow,
.device-card-index {
    display: block;
    color: #70aaff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.55px;
}
.device-detail-heading h1 {
    margin: 7px 0 9px;
    color: #f0f5ff;
    font-size: clamp(23px, 2.1vw, 31px);
    font-weight: 760;
    letter-spacing: -.7px;
    line-height: 1.2;
}
.device-detail-identity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #91a7c5;
    font-size: 12px;
}
.device-detail-identity strong {
    color: #dce9fb;
    font-weight: 700;
}
.device-identity-divider {
    width: 1px;
    height: 13px;
    background: #40536e;
}

.device-detail-hero-state {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
.device-presence-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(133, 158, 193, .18);
    border-radius: 30px;
    color: #aebed3;
    background: rgba(15, 29, 49, .78);
    font-size: 12px;
    font-weight: 700;
}
.device-presence-pill.online {
    color: #70e0b1;
    border-color: rgba(58, 202, 143, .25);
}
.device-presence-pill.recent {
    color: #f1c777;
}
.device-presence-pill.offline {
    color: #9aaac0;
}

.device-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 19px;
}
.device-stat-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 17px;
    border: 1px solid rgba(105, 135, 177, .16);
    border-radius: 15px;
    background: linear-gradient(145deg, #101e32, #0c1829);
}
.device-stat-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 19px;
}
.device-stat-icon.blue {
    color: #82b7ff;
    background: rgba(55, 117, 205, .17);
}
.device-stat-icon.violet {
    color: #b4a0ff;
    background: rgba(125, 95, 216, .17);
}
.device-stat-icon.cyan {
    color: #72d8ed;
    background: rgba(51, 163, 189, .16);
}
.device-stat-icon.amber {
    color: #efc477;
    background: rgba(196, 144, 55, .15);
}
.device-stat-card > div:last-child {
    min-width: 0;
}
.device-stat-card span {
    display: block;
    margin-bottom: 5px;
    color: #8196b2;
    font-size: 11px;
}
.device-stat-card strong {
    display: block;
    overflow-wrap: anywhere;
    color: #e8f0fc;
    font-size: 14px;
    font-weight: 750;
}
.device-stat-card small {
    display: block;
    margin-top: 4px;
    color: #7186a3;
    font-size: 10px;
}

.device-detail-nav {
    position: sticky;
    top: 75px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    padding: 8px;
    margin-bottom: 19px;
    border: 1px solid rgba(105, 135, 177, .15);
    border-radius: 13px;
    background: rgba(10, 22, 38, .96);
    backdrop-filter: blur(14px);
}
.device-detail-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 11px 16px;
    border-radius: 9px;
    color: #9bafca;
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
    transition: .2s ease;
}
.device-detail-nav a:hover {
    color: #fff;
    background: rgba(68, 119, 190, .16);
}
.device-detail-nav a i {
    font-size: 15px;
}

.device-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(270px, .78fr);
    align-items: start;
    gap: 19px;
}
.device-detail-main,
.device-detail-sidebar {
    display: grid;
    gap: 19px;
    min-width: 0;
}
.device-detail-sidebar {
    position: sticky;
    top: 145px;
}

.device-detail-card {
    min-width: 0;
    padding: 23px;
    border: 1px solid rgba(105, 135, 177, .17);
    border-radius: 16px;
    background: linear-gradient(145deg, #101e32, #0b1728);
    box-shadow: 0 9px 26px rgba(0, 0, 0, .10);
    scroll-margin-top: 150px;
}
.device-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.device-card-heading h2 {
    margin: 7px 0 5px;
    color: #e9f1fd;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.3px;
}
.device-card-heading p {
    margin: 0;
    color: #8398b5;
    font-size: 12px;
    line-height: 1.5;
}
.device-card-heading-icon {
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #82b7ff;
    background: rgba(57, 115, 195, .16);
    font-size: 18px;
}
.device-card-heading > i {
    color: #78aef5;
    font-size: 20px;
}

.device-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}
.device-info-item {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid rgba(111, 142, 184, .12);
    border-radius: 11px;
    background: rgba(18, 34, 56, .78);
}
.device-info-item span,
.device-side-info span {
    display: block;
    margin-bottom: 7px;
    color: #8298b6;
    font-size: 11px;
}
.device-info-item strong,
.device-side-info strong {
    display: block;
    color: #e0eafa;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.device-info-item.wide {
    grid-column: 1 / -1;
}

.device-detail-page .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.device-detail-page .field {
    min-width: 0;
}
.device-detail-page .field.wide {
    grid-column: 1 / -1;
}
.device-detail-page .field > span {
    display: block;
    margin-bottom: 8px;
    color: #a8bad2;
    font-size: 12px;
    font-weight: 650;
}
.device-detail-page .field input,
.device-detail-page .field select {
    width: 100%;
    min-height: 44px;
    color: #e8f0fc;
    border: 1px solid rgba(115, 148, 193, .20);
    border-radius: 10px;
    background: #101f34;
}
.device-detail-page .field input:focus,
.device-detail-page .field select:focus {
    border-color: #438df0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 141, 240, .12);
}
.device-detail-page .form-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 19px;
}
.device-detail-page .check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 17px;
    color: #d5e2f4;
}
.device-detail-page .check-row small {
    display: block;
    margin-top: 4px;
    color: #8196b2;
    font-size: 11px;
}

.device-license-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 21px;
}
.device-license-summary > div {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(111, 142, 184, .13);
    border-radius: 10px;
    background: rgba(19, 37, 61, .70);
}
.device-license-summary span {
    display: block;
    margin-bottom: 7px;
    color: #8196b2;
    font-size: 10px;
}
.device-license-summary strong {
    display: block;
    overflow-wrap: anywhere;
    color: #e5eefb;
    font-size: 12px;
}

.device-operation-block {
    padding: 19px 0;
    border-top: 1px solid rgba(112, 143, 184, .14);
}
.device-operation-block:first-of-type {
    padding-top: 0;
    border-top: 0;
}
.device-operation-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}
.device-operation-title h3 {
    margin: 0 0 5px;
    color: #e2ecfa;
    font-size: 15px;
}
.device-operation-title p {
    margin: 0;
    color: #8196b2;
    font-size: 11px;
}
.device-operation-title > i {
    color: #80b4f8;
    font-size: 21px;
}
.device-detail-page .device-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.device-detail-page .action-button {
    min-width: 0;
    padding: 14px 12px;
    border: 1px solid rgba(112, 143, 184, .16);
    border-radius: 11px;
    background: rgba(18, 34, 56, .78);
}
.device-detail-page .action-button strong {
    display: block;
    color: #e5eefb;
    font-size: 12px;
}
.device-detail-page .action-button small {
    display: block;
    margin-top: 4px;
    color: #8196b2;
    font-size: 10px;
}
.google-release-block {
    padding: 18px;
    margin: 6px 0;
    border: 1px solid rgba(73, 145, 235, .25);
    border-radius: 12px;
    background: rgba(34, 91, 155, .10);
}

.device-side-card {
    padding: 20px;
}
.device-side-card .device-card-heading {
    margin-bottom: 17px;
}
.device-side-card .device-card-heading h2 {
    font-size: 16px;
}
.device-side-info {
    padding: 13px 0;
    border-top: 1px solid rgba(112, 143, 184, .12);
}
.device-side-info:first-of-type {
    border-top: 0;
}
.device-side-info strong {
    line-height: 1.45;
}
.device-break-word {
    overflow-wrap: anywhere;
}
.device-activity-status {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    margin-bottom: 9px;
    border-radius: 10px;
    color: #d9e8f8;
    background: rgba(22, 42, 67, .8);
    font-size: 12px;
}
.device-diagnostics-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    margin: 13px 0;
    border: 1px solid rgba(85, 145, 220, .20);
    border-radius: 10px;
    color: #8dbbfa;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    background: rgba(48, 101, 169, .10);
}
.device-diagnostics-link i:last-child {
    margin-left: auto;
}
.device-side-card .muted {
    color: #8196b2;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 1150px) {
    .device-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .device-detail-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .device-detail-sidebar > :last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .device-detail-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }
    .device-detail-hero-state {
        justify-content: flex-start;
    }
    .device-detail-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .device-detail-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
    .device-detail-sidebar > :last-child {
        grid-column: auto;
    }
    .device-detail-card {
        padding: 17px;
    }
    .device-info-grid,
    .device-detail-page .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .device-detail-page .field.wide {
        grid-column: auto;
    }
    .device-license-summary {
        grid-template-columns: minmax(0, 1fr);
    }
    .device-detail-page .device-action-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .device-detail-nav {
        top: 60px;
    }
}

@media (max-width: 430px) {
    .device-detail-stats {
        grid-template-columns: minmax(0, 1fr);
    }
    .device-detail-icon {
        width: 51px;
        height: 51px;
        flex-basis: 51px;
        font-size: 23px;
    }
    .device-detail-hero-main {
        gap: 13px;
    }
    .device-detail-identity {
        font-size: 10px;
    }
}

/* =========================================================
   FIBERNET-ADMIN-DEVICE-PREMIUM-R3
   Premium Device Management Interface
   Visual layer only - existing functionality preserved
   ========================================================= */

.device-detail-page {
    width: 100%;
    max-width: 1840px;
    padding: 28px clamp(18px, 2.2vw, 40px) 60px;
    box-sizing: border-box;
    color: #e8f0fc;
}

/* BREADCRUMB */

.device-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 25px;
    color: #8499b7;
    font-size: 12px;
    font-weight: 600;
}

.device-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #a9c9f5;
    text-decoration: none;
    transition: color .2s ease;
}

.device-back-link:hover {
    color: #ffffff;
}

.device-back-link i {
    font-size: 17px;
}

.device-breadcrumb-separator {
    color: #415675;
}

/* HERO */

.device-detail-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 166px;
    padding: 34px 38px;
    margin-bottom: 20px;
    border: 1px solid rgba(100, 158, 239, .27);
    border-radius: 22px;
    background:
        radial-gradient(
            ellipse at 92% 10%,
            rgba(54, 117, 221, .27),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 5% 100%,
            rgba(29, 91, 171, .20),
            transparent 42%
        ),
        linear-gradient(115deg, #142945 0%, #0c1b30 55%, #101c32 100%);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, .19),
        inset 0 1px 0 rgba(255,255,255,.035);
}

.device-detail-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 390px;
    height: 390px;
    right: -155px;
    top: -250px;
    border: 1px solid rgba(110, 166, 248, .12);
    border-radius: 50%;
    box-shadow:
        0 0 0 32px rgba(110,166,248,.025),
        0 0 0 70px rgba(110,166,248,.02);
    pointer-events: none;
}

.device-detail-hero-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 23px;
    min-width: 0;
}

.device-detail-icon {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    display: grid;
    place-items: center;
    border-radius: 21px;
    color: #9bc6ff;
    font-size: 34px;
    background:
        linear-gradient(145deg, #28558d, #15335a);
    border: 1px solid rgba(135, 185, 255, .29);
    box-shadow:
        0 12px 30px rgba(15, 70, 143, .27),
        inset 0 1px 0 rgba(255,255,255,.09);
}

.device-detail-heading {
    min-width: 0;
}

.device-detail-eyebrow,
.device-card-index {
    display: block;
    color: #77adfa;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.8px;
}

.device-detail-heading h1 {
    margin: 9px 0 11px;
    color: #f4f8ff;
    font-size: clamp(25px, 2.3vw, 35px);
    font-weight: 800;
    letter-spacing: -1.1px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.device-detail-identity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #9aafca;
    font-size: 12px;
}

.device-detail-identity strong {
    color: #e4efff;
    font-weight: 750;
}

.device-identity-divider {
    width: 1px;
    height: 14px;
    background: rgba(142, 174, 216, .32);
}

.device-detail-hero-state {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 11px;
}

.device-detail-hero-state .status {
    padding: 9px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 750;
}

.device-presence-pill {
    padding: 10px 15px;
    border: 1px solid rgba(137, 166, 203, .22);
    border-radius: 30px;
    background: rgba(8, 19, 34, .65);
    font-size: 12px;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.device-presence-pill.online {
    color: #70e3b4;
    border-color: rgba(58, 207, 143, .32);
    background: rgba(30, 137, 96, .13);
}

.device-presence-pill.recent {
    color: #f1c777;
    border-color: rgba(241, 199, 119, .25);
}

.device-presence-pill.offline {
    color: #a5b3c7;
}

/* FOUR SUMMARY CARDS */

.device-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.device-stat-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    min-height: 112px;
    padding: 19px;
    border: 1px solid rgba(119, 151, 195, .17);
    border-radius: 17px;
    background:
        linear-gradient(145deg, #13243b, #0d1b2e);
    box-shadow: 0 8px 25px rgba(0,0,0,.10);
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.device-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(100, 163, 246, .36);
    box-shadow: 0 13px 30px rgba(0,0,0,.17);
}

.device-stat-icon {
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 21px;
}

.device-stat-icon.blue {
    color: #8bbdff;
    background: rgba(55, 117, 205, .19);
}

.device-stat-icon.violet {
    color: #c0aaff;
    background: rgba(125, 95, 216, .19);
}

.device-stat-icon.cyan {
    color: #79e0f2;
    background: rgba(51, 163, 189, .17);
}

.device-stat-icon.amber {
    color: #f1cb81;
    background: rgba(196, 144, 55, .17);
}

.device-stat-card > div:last-child {
    min-width: 0;
}

.device-stat-card span {
    display: block;
    margin-bottom: 6px;
    color: #91a5c0;
    font-size: 11px;
    font-weight: 600;
}

.device-stat-card strong {
    display: block;
    overflow-wrap: anywhere;
    color: #eff5ff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.device-stat-card small {
    display: block;
    margin-top: 5px;
    color: #8297b3;
    font-size: 10px;
}

/* SECTION NAVIGATION */

.device-detail-nav {
    position: sticky;
    top: 78px;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    padding: 8px;
    margin-bottom: 22px;
    border: 1px solid rgba(112, 150, 200, .19);
    border-radius: 15px;
    background: rgba(9, 21, 37, .94);
    box-shadow: 0 8px 26px rgba(0,0,0,.14);
    backdrop-filter: blur(18px);
    scrollbar-width: thin;
    scrollbar-color: #38577e transparent;
}

.device-detail-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 12px 18px;
    border-radius: 10px;
    color: #9fb2cd;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: all .2s ease;
}

.device-detail-nav a:hover,
.device-detail-nav a:focus-visible {
    color: #ffffff;
    background: linear-gradient(
        120deg,
        rgba(49, 111, 197, .27),
        rgba(54, 89, 151, .15)
    );
    outline: none;
}

.device-detail-nav a i {
    color: #82b5f8;
    font-size: 16px;
}

/* MAIN TWO-COLUMN LAYOUT */

.device-detail-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(300px, .78fr);
    align-items: start;
    gap: 21px;
}

.device-detail-main,
.device-detail-sidebar {
    display: grid;
    gap: 21px;
    min-width: 0;
}

.device-detail-sidebar {
    position: sticky;
    top: 145px;
}

/* MAIN PANELS */

.device-detail-card {
    min-width: 0;
    padding: 27px;
    border: 1px solid rgba(112, 149, 194, .19);
    border-radius: 19px;
    background:
        linear-gradient(145deg, #12233a 0%, #0d1b2e 100%);
    box-shadow:
        0 11px 32px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.025);
    scroll-margin-top: 150px;
}

.device-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 17px;
    margin-bottom: 23px;
}

.device-card-heading h2 {
    margin: 8px 0 6px;
    color: #edf4ff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.45px;
}

.device-card-heading p {
    margin: 0;
    color: #91a5c0;
    font-size: 12px;
    line-height: 1.6;
}

.device-card-heading-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(105, 159, 236, .17);
    border-radius: 14px;
    color: #8cbaff;
    background: rgba(57, 115, 195, .17);
    font-size: 19px;
}

.device-card-heading > i {
    color: #86b8f9;
    font-size: 21px;
}

/* TECHNICAL INFORMATION */

.device-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.device-info-item {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(119, 151, 195, .14);
    border-radius: 13px;
    background: rgba(19, 38, 62, .76);
    transition: border-color .2s ease, background .2s ease;
}

.device-info-item:hover {
    border-color: rgba(100, 160, 237, .29);
    background: rgba(24, 47, 77, .83);
}

.device-info-item span,
.device-side-info span {
    display: block;
    margin-bottom: 8px;
    color: #8fa5c2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .35px;
}

.device-info-item strong,
.device-side-info strong {
    display: block;
    color: #e5eefb;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.device-info-item.wide {
    grid-column: 1 / -1;
}

/* FORMS */

.device-detail-page .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.device-detail-page .field {
    display: block;
    min-width: 0;
}

.device-detail-page .field.wide {
    grid-column: 1 / -1;
}

.device-detail-page .field > span {
    display: block;
    margin-bottom: 9px;
    color: #bdcde1;
    font-size: 12px;
    font-weight: 700;
}

.device-detail-page .field input,
.device-detail-page .field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 47px;
    padding: 0 14px;
    color: #edf4ff;
    border: 1px solid rgba(125, 158, 202, .23);
    border-radius: 11px;
    background: #0c1b2e;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.device-detail-page .field input::placeholder {
    color: #687e9c;
}

.device-detail-page .field input:focus,
.device-detail-page .field select:focus {
    border-color: #5299f3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 141, 240, .14);
}

.device-detail-page .field select option {
    color: #edf4ff;
    background: #102039;
}

.device-detail-page .form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 21px;
}

.device-detail-page .button {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 11px;
    font-weight: 750;
    transition: transform .2s ease, filter .2s ease;
}

.device-detail-page .button:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.device-detail-page .check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 19px;
    padding: 14px;
    border: 1px solid rgba(111, 146, 189, .14);
    border-radius: 12px;
    background: rgba(17, 35, 57, .66);
    color: #dbe7f7;
}

.device-detail-page .check-row input {
    margin-top: 3px;
    accent-color: #4f99f5;
}

.device-detail-page .check-row strong {
    font-size: 12px;
}

.device-detail-page .check-row small {
    display: block;
    margin-top: 5px;
    color: #91a5c0;
    font-size: 11px;
    line-height: 1.5;
}

/* LICENSE SUMMARY */

.device-license-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 22px;
}

.device-license-summary > div {
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(113, 153, 204, .17);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(26, 52, 83, .78), rgba(15, 31, 51, .8));
}

.device-license-summary span {
    display: block;
    margin-bottom: 8px;
    color: #91a7c3;
    font-size: 10px;
    font-weight: 650;
}

.device-license-summary strong {
    display: block;
    overflow-wrap: anywhere;
    color: #edf4ff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

/* OPERATIONS */

.device-operation-block {
    padding: 22px 0;
    border-top: 1px solid rgba(112, 149, 194, .17);
}

.device-operation-block:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.device-operation-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    margin-bottom: 18px;
}

.device-operation-title h3 {
    margin: 0 0 6px;
    color: #eaf2ff;
    font-size: 15px;
    font-weight: 800;
}

.device-operation-title p {
    margin: 0;
    color: #91a5c0;
    font-size: 11px;
    line-height: 1.5;
}

.device-operation-title > i {
    color: #8bb9f5;
    font-size: 23px;
}

.device-detail-page .device-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.device-detail-page .action-button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 79px;
    padding: 14px;
    text-align: left;
    border: 1px solid rgba(112, 149, 194, .18);
    border-radius: 13px;
    background: rgba(18, 37, 61, .82);
    cursor: pointer;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.device-detail-page .action-button:hover {
    transform: translateY(-2px);
    border-color: rgba(126, 175, 240, .38);
    background: rgba(26, 50, 80, .95);
}

.device-detail-page .action-button > i {
    flex: 0 0 auto;
    font-size: 21px;
}

.device-detail-page .action-button strong {
    display: block;
    color: #edf4ff;
    font-size: 12px;
    font-weight: 800;
}

.device-detail-page .action-button small {
    display: block;
    margin-top: 5px;
    color: #91a5c0;
    font-size: 10px;
    line-height: 1.4;
}

.device-detail-page .action-button.success > i {
    color: #66d9a9;
}

.device-detail-page .action-button.warning > i {
    color: #efc36f;
}

.device-detail-page .action-button.danger > i {
    color: #f28d9b;
}

.google-release-block {
    padding: 20px;
    margin: 8px 0;
    border: 1px solid rgba(73, 145, 235, .28);
    border-radius: 15px;
    background:
        linear-gradient(120deg, rgba(34, 91, 155, .16), rgba(20, 45, 77, .18));
}

.device-detail-page .muted {
    color: #91a5c0;
    font-size: 11px;
    line-height: 1.65;
}

/* RIGHT SIDEBAR */

.device-side-card {
    padding: 23px;
}

.device-side-card .device-card-heading {
    margin-bottom: 18px;
}

.device-side-card .device-card-heading h2 {
    font-size: 17px;
}

.device-side-info {
    padding: 14px 0;
    border-top: 1px solid rgba(112, 149, 194, .14);
}

.device-side-info:first-of-type {
    border-top: 0;
}

.device-side-info strong {
    line-height: 1.55;
}

.device-break-word {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.device-activity-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(75, 175, 134, .16);
    border-radius: 12px;
    color: #bcebd6;
    background: rgba(25, 115, 81, .13);
    font-size: 12px;
    font-weight: 750;
}

.device-diagnostics-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    margin: 15px 0;
    border: 1px solid rgba(85, 145, 220, .26);
    border-radius: 12px;
    color: #9bc5ff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    background: rgba(48, 101, 169, .13);
    transition: all .2s ease;
}

.device-diagnostics-link:hover {
    color: #ffffff;
    border-color: rgba(105, 167, 255, .48);
    background: rgba(48, 101, 169, .23);
}

.device-diagnostics-link i:last-child {
    margin-left: auto;
}

/* ANCHOR OFFSET */

.device-detail-page #device-overview,
.device-detail-page #device-customer,
.device-detail-page #device-license,
.device-detail-page #device-operations,
.device-detail-page #device-activity {
    scroll-margin-top: 145px;
}

/* RESPONSIVE TABLET */

@media (max-width: 1180px) {
    .device-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .device-detail-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .device-detail-sidebar > :last-child {
        grid-column: 1 / -1;
    }
}

/* RESPONSIVE MOBILE */

@media (max-width: 760px) {
    .device-detail-page {
        padding: 20px 15px 40px;
    }

    .device-detail-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 23px;
        gap: 20px;
    }

    .device-detail-icon {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
        font-size: 26px;
        border-radius: 16px;
    }

    .device-detail-hero-main {
        gap: 15px;
    }

    .device-detail-heading h1 {
        font-size: 25px;
    }

    .device-detail-hero-state {
        justify-content: flex-start;
    }

    .device-detail-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .device-stat-card {
        min-height: 95px;
        padding: 13px;
        gap: 10px;
    }

    .device-stat-icon {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        font-size: 17px;
    }

    .device-stat-card strong {
        font-size: 12px;
    }

    .device-detail-nav {
        top: 60px;
        gap: 3px;
    }

    .device-detail-nav a {
        padding: 11px 13px;
        font-size: 11px;
    }

    .device-detail-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .device-detail-sidebar > :last-child {
        grid-column: auto;
    }

    .device-detail-card {
        padding: 19px;
    }

    .device-detail-page .device-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* SMALL MOBILE */

@media (max-width: 520px) {
    .device-detail-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .device-info-grid,
    .device-detail-page .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .device-detail-page .field.wide,
    .device-info-item.wide {
        grid-column: auto;
    }

    .device-license-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .device-detail-page .device-action-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .device-detail-identity {
        gap: 8px;
        font-size: 10px;
    }

    .device-detail-page .form-actions {
        justify-content: stretch;
    }

    .device-detail-page .form-actions .button {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .device-detail-page *,
    .device-detail-page *::before,
    .device-detail-page *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* END FIBERNET-ADMIN-DEVICE-PREMIUM-R3 */



/* FIBERNET-V4-ADMIN-R2-FILTER-LAYOUT */

.diag-v4 .diag-r2-filters {
    display: grid !important;
    grid-template-columns:
        minmax(240px, 2fr)
        repeat(3, minmax(135px, 1fr))
        minmax(130px, 0.8fr);
    gap: 16px;
    align-items: end;
    width: 100%;
    max-width: none !important;
}

.diag-v4 .diag-r2-filters > label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    max-width: none !important;
    width: 100%;
    margin: 0;
}

.diag-v4 .diag-r2-filters input,
.diag-v4 .diag-r2-filters select {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none !important;
}

.diag-v4 .diag-r2-filters #diag-reset {
    width: 100%;
    align-self: end;
    min-height: 40px;
}

.diag-v4 .diag-stage-badge {
    color: #34d399;
    border-color: rgba(52,211,153,.35);
    background: rgba(16,185,129,.10);
}

@media (max-width: 1250px) {
    .diag-v4 .diag-r2-filters {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .diag-v4 .diag-r2-filters > label:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .diag-v4 .diag-r2-filters {
        grid-template-columns: minmax(0,1fr);
    }

    .diag-v4 .diag-r2-filters > label:first-child {
        grid-column: auto;
    }
}

/* END FIBERNET-V4-ADMIN-R2-FILTER-LAYOUT */
