:root {
  --bg: #070a10;
  --surface: #0c111b;
  --surface-2: #101725;
  --surface-3: #151e2e;
  --border: rgba(255,255,255,.075);
  --border-strong: rgba(255,255,255,.12);
  --text: #f5f7fb;
  --muted: #8995a8;
  --muted-2: #647086;
  --primary: #6ee7c7;
  --primary-2: #36d4ad;
  --primary-soft: rgba(78, 219, 182, .12);
  --blue: #6da5ff;
  --warning: #f5c56b;
  --danger: #ff747d;
  --success: #65e3b1;
  --shadow: 0 20px 60px rgba(0,0,0,.34);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid rgba(110,231,199,.6); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 260px; position: fixed; inset: 0 auto 0 0; background: linear-gradient(180deg,#0b1019 0%, #090e16 100%); border-right: 1px solid var(--border); padding: 22px 16px; display: flex; flex-direction: column; z-index: 50; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 6px 22px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--primary); background: linear-gradient(145deg,rgba(110,231,199,.16),rgba(109,165,255,.08)); border: 1px solid rgba(110,231,199,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.brand-mark svg { width: 28px; height: 28px; }
.brand-title { font-weight: 800; font-size: 16px; letter-spacing: -.3px; }
.brand-subtitle { color: var(--muted); font-size: 11px; margin-top: 2px; }
.nav-menu { display: flex; flex-direction: column; gap: 5px; }
.nav-menu.compact { margin-bottom: 8px; }
.nav-item { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 11px; color: #9ca7b8; padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: .2s ease; text-align: left; font-weight: 600; font-size: 13px; }
.nav-item:hover { background: rgba(255,255,255,.035); color: #dfe6ef; }
.nav-item.active { color: #dcfff5; background: linear-gradient(90deg,rgba(78,219,182,.12),rgba(78,219,182,.04)); box-shadow: inset 2px 0 0 var(--primary); }
.nav-icon { width: 20px; color: #7d8ca0; text-align: center; }
.nav-item.active .nav-icon { color: var(--primary); }
.nav-badge { margin-left: auto; font-size: 10px; padding: 3px 6px; border-radius: 999px; background: rgba(255,255,255,.06); color: #aab5c5; }
.sidebar-section-label { color: #4f5b6c; font-size: 9px; font-weight: 800; letter-spacing: .16em; padding: 22px 12px 9px; }
.sidebar-card { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 12px; }
.sidebar-card strong { display: block; font-size: 11px; }
.sidebar-card span { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.pulse-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(101,227,177,.08); }
.sidebar-footer { display: flex; align-items: center; gap: 9px; padding: 16px 4px 0; margin-top: 12px; border-top: 1px solid var(--border); }
.user-avatar, .admin-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #141d2a; border: 1px solid var(--border); color: #d6e2f1; font-weight: 800; font-size: 11px; }
.user-meta { min-width: 0; flex: 1; }
.user-meta strong { display: block; font-size: 11px; }
.user-meta span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ghost-icon { border: 0; background: transparent; color: #708096; cursor: pointer; }

.main-area { margin-left: 260px; width: calc(100% - 260px); min-height: 100vh; }
.topbar { min-height: 86px; padding: 18px 30px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: rgba(7,10,16,.82); backdrop-filter: blur(18px); }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.eyebrow, .panel-kicker { color: #66758a; font-size: 9px; letter-spacing: .15em; font-weight: 800; }
.topbar h1 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.5px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search-box { width: 330px; display: flex; align-items: center; gap: 9px; height: 40px; background: #0c121c; border: 1px solid var(--border); border-radius: 11px; padding: 0 10px; color: #6d798d; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-box input::placeholder { color: #586578; }
kbd { border: 1px solid var(--border-strong); background: #111927; color: #69778c; padding: 2px 6px; border-radius: 6px; font-size: 9px; }
.icon-btn, .mobile-menu { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; background: #0c121c; color: #94a1b4; cursor: pointer; }
.notification-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); top: 8px; right: 9px; box-shadow: 0 0 0 3px #0c121c; }
.mobile-menu { display: none; }
.primary-btn, .secondary-btn { border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; cursor: pointer; font-weight: 700; font-size: 12px; transition: .2s ease; }
.primary-btn { color: #05281f; background: linear-gradient(180deg,#76e9cb,#45d7b2); box-shadow: 0 8px 24px rgba(70,215,178,.12), inset 0 1px 0 rgba(255,255,255,.35); }
.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.secondary-btn { color: #c2ccda; background: #101722; border-color: var(--border-strong); }
.secondary-btn:hover { background: #141d29; }
.secondary-btn.small { padding: 8px 11px; font-size: 10px; }
.full-width { width: 100%; }
.large-btn { min-height: 46px; }

.content-view { display: none; padding: 28px 30px 44px; animation: fade .25s ease; }
.content-view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hero-strip { min-height: 190px; border-radius: 22px; padding: 30px; display: flex; align-items: end; justify-content: space-between; gap: 24px; background:
radial-gradient(circle at 85% 15%, rgba(109,165,255,.11), transparent 26%),
radial-gradient(circle at 14% 0%, rgba(110,231,199,.12), transparent 30%),
linear-gradient(135deg,#101824,#0c121c 60%,#0a1018); border: 1px solid rgba(255,255,255,.085); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero-strip::after { content:""; position:absolute; inset:auto -80px -140px auto; width:320px; height:320px; border-radius:50%; border:1px solid rgba(110,231,199,.08); box-shadow:0 0 0 35px rgba(110,231,199,.015),0 0 0 70px rgba(110,231,199,.01); }
.hero-strip > * { position: relative; z-index: 2; }
.status-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 800; letter-spacing: .12em; padding: 6px 8px; border-radius: 999px; border: 1px solid var(--border); }
.status-chip.success { color: #86eccf; background: rgba(101,227,177,.08); border-color: rgba(101,227,177,.15); }
.status-chip.neutral { color: #9fb0c6; background: rgba(159,176,198,.07); }
.warning-chip { color: #eac477; background: rgba(245,197,107,.07); border-color: rgba(245,197,107,.16); }
.subtle-chip { font-size: 7px; }
.hero-strip h2 { max-width: 680px; font-size: clamp(26px,3vw,40px); line-height: 1.05; letter-spacing: -1.3px; margin: 14px 0 12px; }
.hero-strip p, .section-toolbar p, .muted { color: var(--muted); font-size: 12px; line-height: 1.7; max-width: 700px; }
.hero-actions { display: flex; gap: 10px; flex-shrink: 0; }
.metrics-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.metric-card { min-height: 136px; padding: 18px; border-radius: 16px; background: linear-gradient(180deg,#0e1520,#0b111a); border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255,255,255,.02); }
.metric-head { display: flex; align-items: center; justify-content: space-between; color: #8b98aa; font-size: 10px; font-weight: 700; }
.metric-icon { width: 27px; height: 27px; display: grid; place-items:center; border-radius: 8px; color: #8fa3b8; background: #131d2a; border: 1px solid var(--border); }
.metric-icon.warning { color: var(--warning); }
.metric-icon.danger { color: var(--danger); }
.metric-value { margin-top: 14px; font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.metric-foot { margin-top: 6px; color: #6f7d90; font-size: 9px; }
.metric-foot.positive { color: #72d9b5; }
.metric-foot span { color: #667386; }
.warning-text { color: #c5a057; }
.danger-text { color: #c2646a; }
.mini-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 3px; }
.mini-dot.green { background: var(--success); }
.dashboard-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; margin-top: 12px; }
.panel { background: linear-gradient(180deg,#0d141f,#0a1018); border: 1px solid var(--border); border-radius: 17px; padding: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.02); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-header h3, .renewal-panel h3 { margin: 5px 0 0; font-size: 15px; }
.select-control, .input-control { appearance: none; border: 1px solid var(--border-strong); background: #0e1622; color: #c5cfdd; border-radius: 9px; padding: 9px 10px; font-size: 10px; outline: none; }
.donut-wrap { display: flex; align-items: center; justify-content: space-around; gap: 30px; min-height: 210px; }
.donut { --pct: 90; width: 140px; height: 140px; border-radius: 50%; display:grid; place-items:center; background: conic-gradient(var(--primary) calc(var(--pct)*1%), #172231 0); position: relative; box-shadow: 0 0 35px rgba(110,231,199,.06); }
.donut::after { content:""; width: 108px; height:108px; background:#0c131d; border-radius:50%; position:absolute; box-shadow: inset 0 0 0 1px var(--border); }
.donut-inner { z-index:2; text-align:center; }
.donut-inner strong { display:block; font-size:24px; }
.donut-inner span { display:block; color:var(--muted); font-size:9px; margin-top:3px; }
.legend-list { min-width: 200px; }
.legend-list div { display:grid; grid-template-columns: 12px 1fr auto; align-items:center; gap:8px; padding:9px 0; border-bottom:1px solid rgba(255,255,255,.035); font-size:10px; color:#8f9caf; }
.legend-list strong { color:#dce4ee; font-size:11px; }
.legend-dot { width:7px; height:7px; border-radius:50%; }
.active-l { background:var(--primary); } .soon-l { background:var(--warning); } .expired-l { background:var(--danger); } .blocked-l { background:#8996a8; }
.quick-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:18px; }
.quick-card { min-height:96px; text-align:left; border:1px solid var(--border); background:#0f1722; border-radius:13px; padding:13px; cursor:pointer; transition:.2s ease; }
.quick-card:hover { transform:translateY(-1px); border-color:rgba(110,231,199,.18); background:#111b27; }
.quick-icon { width:27px; height:27px; display:grid; place-items:center; border-radius:8px; background:var(--primary-soft); color:var(--primary); font-size:13px; }
.quick-card strong { display:block; margin-top:10px; font-size:10px; }
.quick-card small { display:block; margin-top:3px; color:#667487; font-size:8px; }
.table-panel { margin-top:12px; padding:0; overflow:hidden; }
.table-head { padding:17px 18px; }
.table-actions { display:flex; gap:7px; }
.table-scroll { overflow-x:auto; }
table { width:100%; border-collapse:collapse; min-width:800px; }
th { text-align:left; color:#59667a; font-size:8px; letter-spacing:.08em; text-transform:uppercase; font-weight:800; padding:11px 18px; background:#0b121b; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
td { padding:13px 18px; border-bottom:1px solid rgba(255,255,255,.04); color:#aab6c5; font-size:10px; }
tr:hover td { background:rgba(255,255,255,.012); }
.outlet-cell { display:flex; align-items:center; gap:10px; min-width:190px; }
.outlet-logo { width:31px; height:31px; border-radius:9px; display:grid; place-items:center; background:linear-gradient(145deg,#172333,#111a26); border:1px solid var(--border); font-size:9px; font-weight:800; color:#a9bacd; }
.outlet-cell strong { display:block; color:#dbe3ec; font-size:10px; }
.outlet-cell span { display:block; margin-top:2px; color:#5e6b7e; font-size:8px; }
.status-pill { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:5px 8px; font-size:8px; font-weight:800; border:1px solid transparent; }
.status-pill.active { color:#6eddb8; background:rgba(101,227,177,.07); border-color:rgba(101,227,177,.12); }
.status-pill.expiring { color:#e4bb68; background:rgba(245,197,107,.07); border-color:rgba(245,197,107,.12); }
.status-pill.expired { color:#f07d84; background:rgba(255,116,125,.07); border-color:rgba(255,116,125,.12); }
.status-pill.blocked { color:#9da9b8; background:rgba(157,169,184,.07); border-color:rgba(157,169,184,.11); }
.neutral-pill { color:#9fb0c6; background:rgba(159,176,198,.07); border-color:rgba(159,176,198,.12); }
.row-actions { display:flex; gap:6px; }
.row-btn { border:1px solid var(--border); background:#101823; color:#8e9cad; width:28px; height:28px; border-radius:8px; cursor:pointer; }
.row-btn:hover { color:#d6e1ed; border-color:var(--border-strong); }
.section-toolbar { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:16px; }
.section-toolbar h2 { margin:10px 0 4px; font-size:25px; letter-spacing:-.7px; }
.compact-metrics { margin:0 0 12px; }
.filter-row { padding:14px 18px; display:flex; align-items:center; gap:8px; }
.table-search { width:300px; height:36px; }
.device-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.device-card { padding:17px; border-radius:16px; background:linear-gradient(180deg,#0e1520,#0b111a); border:1px solid var(--border); }
.device-card-top { display:flex; justify-content:space-between; align-items:start; }
.device-icon { width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#141e2b;border:1px solid var(--border);color:var(--primary); }
.device-card h3 { margin:14px 0 4px; font-size:13px; }
.device-card p { margin:0; color:var(--muted); font-size:9px; }
.device-meta { margin-top:14px; display:grid; gap:8px; }
.device-meta div { display:flex; justify-content:space-between; gap:15px; color:#657286; font-size:9px; }
.device-meta strong { color:#aab6c6; font-weight:600; }
.device-actions { display:flex; gap:8px; margin-top:14px; }
.renewal-panel { padding:22px; }
.renewal-layout { display:grid; grid-template-columns:1fr .8fr; gap:30px; }
.form-label { display:block; color:#77869a; font-size:9px; font-weight:700; margin:15px 0 7px; }
.renewal-layout .input-control { width:100%; min-height:42px; }
.period-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin-bottom:16px; }
.period-btn { border:1px solid var(--border); background:#101722; color:#8996a8; padding:10px 7px; border-radius:9px; cursor:pointer; font-size:9px; font-weight:700; }
.period-btn.active { color:#baffec; border-color:rgba(110,231,199,.24); background:rgba(110,231,199,.08); }
.renewal-preview { border-left:1px solid var(--border); padding-left:28px; }
.token-card { margin-top:15px; padding:18px; border-radius:16px; border:1px solid rgba(110,231,199,.13); background:radial-gradient(circle at 90% 5%,rgba(110,231,199,.08),transparent 28%),linear-gradient(180deg,#101a25,#0c131d); }
.token-top { display:flex; align-items:center; gap:8px; color:#8594a8; font-size:8px; letter-spacing:.12em; font-weight:800; margin-bottom:16px; }
.brand-mark.tiny { width:25px; height:25px; border-radius:7px; }
.token-row { display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid rgba(255,255,255,.045); font-size:9px; color:#66758a; }
.token-row strong { color:#bdc8d5; }
.signature { color:var(--primary)!important; }
.token-hash { margin-top:14px; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; color:#57687a; font-size:8px; }
.timeline { display:grid; }
.timeline-item { display:grid; grid-template-columns:32px 1fr auto; gap:12px; padding:13px 0; border-bottom:1px solid rgba(255,255,255,.045); align-items:start; }
.timeline-icon { width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#131d29;border:1px solid var(--border);color:var(--primary);font-size:10px; }
.timeline-item strong { display:block; font-size:10px; }
.timeline-item p { margin:3px 0 0; color:#69778a; font-size:9px; }
.timeline-item time { color:#536175; font-size:8px; }
.admin-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.admin-card { display:flex; align-items:center; gap:11px; padding:16px; border-radius:15px; border:1px solid var(--border); background:#0d141f; }
.admin-card > div:nth-child(2) { flex:1; }
.admin-card strong { display:block; font-size:10px; }
.admin-card span:not(.status-pill) { display:block; color:#66758a; font-size:8px; margin-top:3px; }
.settings-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.setting-card { display:flex; justify-content:space-between; gap:15px; align-items:flex-start; }
.setting-card h3 { margin:6px 0 6px; font-size:13px; }
.setting-card p { margin:0; color:#69778b; font-size:9px; line-height:1.6; }

.modal-backdrop { position:fixed; inset:0; background:rgba(2,5,9,.7); backdrop-filter:blur(8px); z-index:100; display:none; place-items:center; padding:20px; }
.modal-backdrop.open { display:grid; }
.modal { width:min(700px,100%); max-height:90vh; overflow:auto; background:#0d141f; border:1px solid var(--border-strong); border-radius:20px; box-shadow:0 30px 100px rgba(0,0,0,.6); }
.modal-header, .modal-footer { padding:18px 20px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.modal-header { border-bottom:1px solid var(--border); }
.modal-footer { border-top:1px solid var(--border); justify-content:flex-end; }
.modal-header h3 { margin:5px 0 0; }
.modal-body { padding:20px; }
.close-btn { border:0; background:transparent; color:#7f8ca0; font-size:24px; cursor:pointer; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-group label { display:block; margin-bottom:7px; color:#7b899c; font-size:9px; font-weight:700; }
.form-group .input-control { width:100%; min-height:40px; }
.span-2 { grid-column:span 2; }
.textarea { min-height:82px; resize:vertical; }
.security-note { display:flex; gap:10px; margin-top:16px; padding:12px; border-radius:11px; background:rgba(110,231,199,.055); border:1px solid rgba(110,231,199,.1); }
.security-note > span { color:var(--primary); }
.security-note strong { font-size:9px; }
.security-note p { margin:3px 0 0; color:#738197; font-size:8px; line-height:1.6; }
.toast { position:fixed; right:24px; bottom:24px; z-index:120; min-width:300px; max-width:420px; display:flex; align-items:center; gap:11px; padding:13px 15px; border-radius:12px; background:#101923; border:1px solid rgba(110,231,199,.14); box-shadow:0 18px 50px rgba(0,0,0,.4); transform:translateY(20px); opacity:0; pointer-events:none; transition:.25s ease; }
.toast.show { transform:none; opacity:1; }
.toast-icon { width:27px;height:27px;display:grid;place-items:center;border-radius:8px;color:#092b22;background:var(--primary);font-weight:900; }
.toast strong { display:block; font-size:10px; }
.toast span:not(.toast-icon) { display:block; margin-top:2px; color:#758398; font-size:8px; }

.login-page { overflow:hidden; background:radial-gradient(circle at 20% 10%,rgba(110,231,199,.08),transparent 28%),radial-gradient(circle at 80% 80%,rgba(109,165,255,.08),transparent 28%),#070a10; }
.login-shell { min-height:100vh; display:grid; grid-template-columns:1.1fr .9fr; position:relative; z-index:2; }
.login-showcase { padding:42px 55px; display:flex; flex-direction:column; border-right:1px solid var(--border); }
.large-brand { padding:0; }
.showcase-copy { margin:auto 0; max-width:700px; }
.showcase-copy h1 { font-size:clamp(38px,5vw,70px); line-height:.98; letter-spacing:-2.5px; margin:18px 0; }
.showcase-copy p { max-width:570px; color:#7c899b; line-height:1.75; font-size:13px; }
.showcase-stats { display:flex; gap:45px; }
.showcase-stats div { display:grid; gap:5px; }
.showcase-stats strong { font-size:18px; }
.showcase-stats span { color:#627085; font-size:8px; text-transform:uppercase; letter-spacing:.12em; }
.login-card-wrap { display:grid; place-items:center; padding:30px; }
.login-card { width:min(430px,100%); padding:30px; border-radius:22px; background:rgba(13,20,31,.83); border:1px solid var(--border-strong); box-shadow:0 30px 100px rgba(0,0,0,.38); backdrop-filter:blur(14px); }
.login-card-head h2 { font-size:26px; margin:8px 0 6px; letter-spacing:-.7px; }
.login-card-head p { margin:0 0 20px; color:#738095; font-size:10px; }
.login-input { width:100%; min-height:44px; }
.password-label { display:flex; justify-content:space-between; align-items:center; }
.password-label a { color:#7fcfb9; font-size:8px; text-decoration:none; margin-top:15px; }
.password-wrap { position:relative; }
.password-wrap input { padding-right:58px; }
.password-wrap button { position:absolute; right:8px; top:50%; transform:translateY(-50%); border:0; background:transparent; color:#7a879a; font-size:8px; cursor:pointer; }
.remember-row { display:flex; justify-content:space-between; align-items:center; margin:15px 0; color:#728095; font-size:8px; }
.remember-row label { display:flex; align-items:center; gap:7px; }
.login-foot { text-align:center; color:#4f5d70; font-size:8px; margin-top:15px; }
.login-orb { position:fixed; border-radius:50%; filter:blur(1px); opacity:.22; }
.orb-one { width:420px;height:420px;left:-180px;top:-180px;border:1px solid rgba(110,231,199,.2);box-shadow:0 0 0 40px rgba(110,231,199,.01),0 0 0 80px rgba(110,231,199,.008); }
.orb-two { width:360px;height:360px;right:-120px;bottom:-120px;border:1px solid rgba(109,165,255,.14);box-shadow:0 0 0 38px rgba(109,165,255,.01); }

@media (max-width: 1100px) {
  .metrics-grid { grid-template-columns:1fr 1fr; }
  .dashboard-grid { grid-template-columns:1fr; }
  .device-grid, .admin-grid, .settings-grid { grid-template-columns:1fr 1fr; }
  .search-box { width:250px; }
  .login-showcase { padding:35px; }
}
@media (max-width: 820px) {
  .sidebar { transform:translateX(-100%); transition:.25s ease; box-shadow:20px 0 60px rgba(0,0,0,.4); }
  .sidebar.open { transform:none; }
  .main-area { margin-left:0; width:100%; }
  .mobile-menu { display:grid; }
  .topbar { padding:14px 18px; }
  .topbar-actions .search-box { display:none; }
  .content-view { padding:20px 18px 35px; }
  .hero-strip { align-items:flex-start; flex-direction:column; }
  .hero-actions { width:100%; }
  .hero-actions button { flex:1; }
  .renewal-layout { grid-template-columns:1fr; }
  .renewal-preview { border-left:0; border-top:1px solid var(--border); padding:22px 0 0; }
  .login-shell { grid-template-columns:1fr; }
  .login-showcase { display:none; }
}
@media (max-width: 620px) {
  .metrics-grid, .device-grid, .admin-grid, .settings-grid { grid-template-columns:1fr; }
  .quick-grid { grid-template-columns:1fr; }
  .donut-wrap { flex-direction:column; padding:20px 0; }
  .legend-list { width:100%; }
  .section-toolbar { align-items:flex-start; flex-direction:column; }
  .filter-row { flex-wrap:wrap; }
  .table-search { width:100%; }
  .form-grid { grid-template-columns:1fr; }
  .span-2 { grid-column:span 1; }
  .period-grid { grid-template-columns:1fr 1fr; }
  .topbar h1 { font-size:18px; }
  .topbar .primary-btn { padding:9px 10px; font-size:10px; }
  .login-card-wrap { padding:18px; }
}

/* Production package overrides */
html,body,button,input,select,textarea{font-family:Inter,Segoe UI,Arial,sans-serif}
#codeModal .signature{font-size:1.05rem;letter-spacing:.08em}
.login-foot{min-height:20px}
