@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --sb-bg: #0F172A; --sb-hover: rgba(255,255,255,0.055);
    --sb-active-bg: rgba(99,102,241,0.14); --sb-active-bd: #6366F1;
    --sb-text: #94A3B8; --sb-text-hi: #E2E8F0; --sb-label: #475569;
    --bg: #F8FAFC; --surface: #FFFFFF; --border: #E2E8F0; --border-faint: #F1F5F9;
    --text-1: #0F172A; --text-2: #64748B; --text-3: #94A3B8;
    --indigo: #6366F1; --indigo-dk: #4F46E5; --indigo-bg: #EEF2FF;
    --emerald: #10B981; --emerald-bg: #ECFDF5; --emerald-text: #065F46;
    --amber: #F59E0B; --amber-bg: #FFFBEB; --amber-text: #92400E;
    --red: #EF4444; --red-bg: #FEF2F2; --red-text: #991B1B;
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.03);
    --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.06), 0 2px 4px -1px rgba(15,23,42,0.04);
    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text-1); display: flex; height: 100vh; overflow: hidden; font-size: 14px; -webkit-font-smoothing: antialiased; }

/* ── SIDEBAR ── */
.sidebar { width: 248px; flex-shrink: 0; background: var(--sb-bg); display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
.sidebar::-webkit-scrollbar { width: 0; }
.sidebar-header { padding: 20px 18px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.06); text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg,#6366F1,#4F46E5); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-text { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 15px; font-weight: 800; color: #F1F5F9; letter-spacing: -0.3px; }
.logo-text span { color: #818CF8; }
.sidebar-section { padding: 20px 0 4px; }
.sb-label { padding: 0 18px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.7px; color: var(--sb-label); }
.sb-item { display: flex; align-items: center; gap: 10px; padding: 9px 18px; cursor: pointer; color: var(--sb-text); font-size: 13.5px; font-weight: 500; border-left: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; text-decoration: none; }
.sb-item:hover { background: var(--sb-hover); color: var(--sb-text-hi); }
.sb-item.active { background: var(--sb-active-bg); border-left-color: var(--sb-active-bd); color: #C7D2FE; }
.sb-item.active .sb-icon { color: #818CF8; }
.sb-icon { width: 17px; height: 17px; flex-shrink: 0; color: var(--sb-label); transition: color .15s; }
.sb-item:hover .sb-icon { color: var(--sb-text-hi); }
.sb-badge { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 20px; background: rgba(255,255,255,0.08); color: var(--sb-text); }
.sb-badge.green { background: rgba(16,185,129,0.15); color: #6EE7B7; }
.sb-badge.amber { background: rgba(245,158,11,0.15); color: #FCD34D; }
.sb-badge.red   { background: rgba(239,68,68,0.15);  color: #FCA5A5; }
.sidebar-footer { margin-top: auto; padding: 16px 18px; border-top: 1px solid rgba(255,255,255,0.06); }
.user-row { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px; border-radius: 8px; transition: background .15s; }
.user-row:hover { background: var(--sb-hover); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#6366F1,#8B5CF6); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: white; flex-shrink: 0; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12.5px; font-weight: 600; color: #E2E8F0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--sb-label); margin-top: 1px; }

/* ── MAIN ── */
.main-wrap { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* ── TOPBAR ── */
.topbar { height: 60px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 24px; gap: 12px; flex-shrink: 0; }
.search-wrap { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; height: 38px; width: 256px; transition: border-color .15s, box-shadow .15s; }
.search-wrap:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.search-wrap input { flex: 1; border: none; background: transparent; outline: none; font-size: 13.5px; color: var(--text-1); font-family: inherit; }
.search-wrap input::placeholder { color: var(--text-3); }
.topbar-spacer { flex: 1; }
.tb-btn { width: 36px; height: 36px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-2); transition: background .15s, border-color .15s, color .15s; position: relative; }
.tb-btn:hover { background: var(--bg); border-color: #CBD5E1; color: var(--text-1); }
.notif-dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); border: 1.5px solid var(--surface); }
.btn-primary { display: inline-flex; align-items: center; gap: 6px; background: var(--indigo); color: #fff; border: none; border-radius: var(--radius-sm); padding: 0 14px; height: 36px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s, box-shadow .15s, transform .1s; font-family: inherit; white-space: nowrap; text-decoration: none; }
.btn-primary:hover { background: var(--indigo-dk); box-shadow: 0 4px 12px rgba(99,102,241,0.35); }
.btn-primary:active { transform: translateY(1px); }
.btn-outline { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--text-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 14px; height: 36px; font-size: 13.5px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all .15s; text-decoration: none; }
.btn-outline:hover { border-color: var(--text-2); color: var(--text-1); background: var(--bg); }
.btn-danger-sm { display: inline-flex; align-items: center; gap: 5px; background: var(--red-bg); color: var(--red-text); border: 1px solid #FECACA; border-radius: var(--radius-sm); padding: 0 12px; height: 32px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s; }
.btn-danger-sm:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ── BODY ── */
.body-flex { flex: 1; display: flex; overflow: hidden; }
.content { flex: 1; overflow-y: auto; padding: 28px 28px 40px; }
.content::-webkit-scrollbar { width: 5px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.page-head { margin-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.page-head-left {}
.page-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 22px; font-weight: 800; color: var(--text-1); letter-spacing: -0.4px; margin-bottom: 4px; }
.page-sub { font-size: 13.5px; color: var(--text-2); }

/* ── STAT CARDS ── */
.stats-grid   { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stats-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.stats-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.stat-icon-wrap { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat-icon-wrap.indigo  { background: var(--indigo-bg); color: var(--indigo); }
.stat-icon-wrap.emerald { background: var(--emerald-bg); color: var(--emerald); }
.stat-icon-wrap.blue    { background: #EFF6FF; color: #3B82F6; }
.stat-icon-wrap.amber   { background: var(--amber-bg); color: var(--amber); }
.stat-icon-wrap.red     { background: var(--red-bg); color: var(--red); }
.stat-icon-wrap.purple  { background: #F5F3FF; color: #7C3AED; }
.stat-trend { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.stat-trend.up      { background: var(--emerald-bg); color: var(--emerald-text); }
.stat-trend.neutral { background: var(--bg); color: var(--text-2); }
.stat-trend.down    { background: var(--red-bg); color: var(--red-text); }
.stat-value { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 30px; font-weight: 800; color: var(--text-1); letter-spacing: -0.8px; line-height: 1; margin-bottom: 5px; }
.stat-label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }

/* ── SECTION CARD ── */
.section-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-faint); gap: 12px; }
.section-head-left {}
.section-title { font-weight: 700; font-size: 14.5px; color: var(--text-1); }
.section-sub   { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.section-head-right { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ── TABLE ── */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--bg); }
th { padding: 11px 18px; text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-2); white-space: nowrap; border-bottom: 1px solid var(--border-faint); }
td { padding: 14px 18px; border-bottom: 1px solid var(--border-faint); font-size: 13.5px; color: var(--text-1); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: #FAFBFF; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.badge.online   { background: var(--emerald-bg); color: var(--emerald-text); }
.badge.online   .badge-dot { background: var(--emerald); }
.badge.away     { background: var(--amber-bg);   color: var(--amber-text); }
.badge.away     .badge-dot { background: var(--amber); }
.badge.offline  { background: #F8FAFC; color: var(--text-2); }
.badge.offline  .badge-dot { background: var(--text-3); }
.badge.active   { background: var(--indigo-bg); color: #4338CA; }
.badge.active   .badge-dot { background: var(--indigo); }
.badge.ended    { background: #F8FAFC; color: var(--text-2); }
.badge.ended    .badge-dot { background: var(--text-3); }
.badge.admin    { background: #F5F3FF; color: #5B21B6; }
.badge.manager  { background: var(--indigo-bg); color: #3730A3; }
.badge.techni   { background: #EFF6FF; color: #1D4ED8; }
.badge.viewer   { background: var(--bg); color: var(--text-2); }
.badge.success  { background: var(--emerald-bg); color: var(--emerald-text); }
.badge.warning  { background: var(--amber-bg); color: var(--amber-text); }
.badge.danger   { background: var(--red-bg); color: var(--red-text); }

/* ── DEV CELL ── */
.dev-cell { display: flex; align-items: center; gap: 10px; }
.dev-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dev-icon.slate   { background: #F1F5F9; color: #475569; }
.dev-icon.blue    { background: #EFF6FF; color: #3B82F6; }
.dev-icon.amber   { background: var(--amber-bg); color: #D97706; }
.dev-icon.emerald { background: var(--emerald-bg); color: #059669; }
.dev-icon.red     { background: var(--red-bg); color: #DC2626; }
.dev-icon.purple  { background: #F5F3FF; color: #7C3AED; }
.dev-name { font-weight: 600; font-size: 13.5px; color: var(--text-1); }
.dev-id   { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.text-muted { font-size: 13px; color: var(--text-2); }
.text-small { font-size: 12px; color: var(--text-3); }

/* ── SCORE ── */
.score-cell { display: flex; flex-direction: column; gap: 5px; min-width: 80px; }
.score-num { font-size: 13px; font-weight: 700; }
.score-num.high { color: #047857; } .score-num.mid { color: #B45309; } .score-num.low { color: #B91C1C; }
.score-bar-bg { height: 4px; border-radius: 99px; background: var(--border-faint); overflow: hidden; width: 80px; }
.score-bar-fill { height: 100%; border-radius: 99px; }
.score-bar-fill.high { background: var(--emerald); }
.score-bar-fill.mid  { background: var(--amber); }
.score-bar-fill.low  { background: var(--red); }

/* ── ROW ACTIONS ── */
.row-acts { display: flex; gap: 4px; align-items: center; }
.ra-btn { width: 30px; height: 30px; border: 1px solid var(--border); background: var(--surface); border-radius: 7px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-2); transition: all .15s; }
.ra-btn:hover { background: var(--indigo-bg); border-color: var(--indigo); color: var(--indigo); }
.ra-btn.connect { background: var(--indigo); border-color: var(--indigo); color: white; }
.ra-btn.connect:hover { background: var(--indigo-dk); box-shadow: 0 2px 8px rgba(99,102,241,0.3); }
.ra-btn.danger:hover { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.ra-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── FILTER BAR ── */
.filter-bar { display: flex; gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--border-faint); overflow-x: auto; flex-wrap: wrap; }
.filter-chip { padding: 5px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); transition: all .15s; white-space: nowrap; }
.filter-chip:hover { border-color: var(--indigo); color: var(--indigo); }
.filter-chip.active { background: var(--indigo-bg); border-color: var(--indigo); color: var(--indigo); font-weight: 600; }

/* ── VIEW BTNS ── */
.view-btns { display: flex; gap: 4px; }
.view-btn { width: 32px; height: 32px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-3); transition: all .15s; }
.view-btn.active { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.view-btn:not(.active):hover { background: var(--bg); color: var(--text-1); }
.filter-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .15s; background: var(--surface); }
.filter-pill:hover { border-color: var(--indigo); color: var(--indigo); }

/* ── RIGHT PANEL ── */
.right-panel { width: 272px; flex-shrink: 0; border-left: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; overflow-y: auto; }
.right-panel::-webkit-scrollbar { width: 0; }
.rp-section { padding: 20px; border-bottom: 1px solid var(--border-faint); }
.rp-section:last-child { border-bottom: none; }
.rp-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-3); margin-bottom: 14px; }
.connect-card { border: 1.5px dashed var(--border); border-radius: var(--radius-md); padding: 18px 16px; text-align: center; transition: border-color .15s; }
.connect-card:hover { border-color: var(--indigo); }
.connect-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--indigo-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; color: var(--indigo); }
.connect-title { font-weight: 700; font-size: 14px; color: var(--text-1); margin-bottom: 4px; }
.connect-sub { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.action-list { display: flex; flex-direction: column; gap: 2px; }
.act-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; transition: background .12s; color: var(--text-1); text-decoration: none; }
.act-item:hover { background: var(--bg); }
.act-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.act-icon.indigo  { background: var(--indigo-bg); color: var(--indigo); }
.act-icon.emerald { background: var(--emerald-bg); color: var(--emerald); }
.act-icon.amber   { background: var(--amber-bg); color: #D97706; }
.act-icon.slate   { background: var(--bg); color: var(--text-2); }
.act-icon.blue    { background: #EFF6FF; color: #3B82F6; }
.act-icon.red     { background: var(--red-bg); color: var(--red); }
.act-text { flex: 1; }
.act-label { font-size: 13px; font-weight: 600; }
.act-desc  { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.act-arrow { color: var(--text-3); flex-shrink: 0; }
.status-list { display: flex; flex-direction: column; gap: 10px; }
.status-item { display: flex; align-items: center; justify-content: space-between; }
.status-lbl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.status-indicator { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-indicator.green { background: var(--emerald); box-shadow: 0 0 0 2px rgba(16,185,129,0.2); }
.status-indicator.amber { background: var(--amber);   box-shadow: 0 0 0 2px rgba(245,158,11,0.2); }
.status-indicator.red   { background: var(--red);     box-shadow: 0 0 0 2px rgba(239,68,68,0.2); }
.status-val { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.status-val.ok   { background: var(--emerald-bg); color: var(--emerald-text); }
.status-val.warn { background: var(--amber-bg);   color: var(--amber-text); }

/* ── AVATAR ── */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: white; flex-shrink: 0; }
.avatar.indigo  { background: linear-gradient(135deg,#6366F1,#4F46E5); }
.avatar.emerald { background: linear-gradient(135deg,#10B981,#059669); }
.avatar.amber   { background: linear-gradient(135deg,#F59E0B,#D97706); }
.avatar.blue    { background: linear-gradient(135deg,#3B82F6,#2563EB); }
.avatar.red     { background: linear-gradient(135deg,#EF4444,#DC2626); }
.avatar.purple  { background: linear-gradient(135deg,#8B5CF6,#7C3AED); }

/* ── ACTIVITY FEED ── */
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border-faint); transition: background .1s; align-items: flex-start; }
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: #FAFBFF; }
.act-evt-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.activity-body { flex: 1; }
.activity-title { font-size: 13.5px; color: var(--text-1); line-height: 1.4; }
.activity-title strong { font-weight: 600; }
.activity-meta { font-size: 11.5px; color: var(--text-3); margin-top: 3px; display: flex; gap: 8px; align-items: center; }
.activity-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

/* ── SETTINGS ── */
.settings-wrap { display: grid; grid-template-columns: 196px 1fr; gap: 24px; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; }
.settings-nav-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .15s; text-decoration: none; }
.settings-nav-item:hover { background: var(--border-faint); color: var(--text-1); }
.settings-nav-item.active { background: var(--indigo-bg); color: var(--indigo); font-weight: 600; }
.settings-nav-item .sn-icon { width: 16px; height: 16px; color: inherit; flex-shrink: 0; }
.settings-form { display: flex; flex-direction: column; gap: 20px; }
.settings-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.settings-section-title { font-weight: 700; font-size: 15px; color: var(--text-1); margin-bottom: 4px; }
.settings-section-sub   { font-size: 13px; color: var(--text-2); margin-bottom: 20px; line-height: 1.5; }
.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 6px; display: block; }
.form-input, .form-select, .form-textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 12px; font-size: 13.5px; font-family: inherit; color: var(--text-1); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
.form-input, .form-select { height: 40px; }
.form-textarea { height: 80px; padding: 10px 12px; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-faint); }
.btn-save { display: inline-flex; align-items: center; gap: 6px; background: var(--indigo); color: #fff; border: none; border-radius: var(--radius-sm); padding: 0 20px; height: 38px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s, box-shadow .15s; }
.btn-save:hover { background: var(--indigo-dk); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-faint); }
.toggle-row:last-child { border-bottom: none; padding-bottom: 0; }
.toggle-info .toggle-label { font-size: 13.5px; font-weight: 600; color: var(--text-1); margin-bottom: 2px; }
.toggle-info .toggle-desc  { font-size: 12px; color: var(--text-3); }
.toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 22px; cursor: pointer; transition: background .2s; }
.toggle-slider:before { content: ''; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle input:checked + .toggle-slider { background: var(--indigo); }
.toggle input:checked + .toggle-slider:before { transform: translateX(18px); }
.danger-zone { border-color: #FECACA; }
.danger-zone .settings-section-title { color: var(--red-text); }
.settings-divider { border: none; border-top: 1px solid var(--border-faint); margin: 20px 0; }
.key-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-faint); }
.key-row:last-child { border-bottom: none; }
.key-mono { font-family: 'Courier New', monospace; font-size: 12.5px; color: var(--text-2); background: var(--bg); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── GRID CONTENT ── */
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ── EMPTY STATE ── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; }
.empty-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--indigo-bg); color: var(--indigo); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.empty-title { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.empty-sub   { font-size: 13px; color: var(--text-3); max-width: 280px; line-height: 1.5; margin-bottom: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 1280px) { .right-panel { display: none; } .stats-grid { grid-template-columns: repeat(2,1fr); } .two-col { grid-template-columns: 1fr; } }
@media (max-width: 1024px) { .settings-wrap { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }
@media (max-width: 900px)  { .sidebar { width: 0; overflow: hidden; } .stats-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
