/* HypesAC Panel — kurumsal koyu tema */
:root {
  --bg: #07090d;
  --bg2: #0b0e14;
  --surface: #0f131b;
  --surface2: #141a24;
  --surface3: #1a212d;
  --line: #1c2330;
  --line2: #273041;
  --text: #e9ecf3;
  --text2: #c3c9d6;
  --muted: #8790a4;
  --faint: #5a6377;
  --accent: #7c5cff;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --info: #3b82f6;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px -12px rgba(0,0,0,.6);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.sp { justify-content: space-between; }
.hide { display: none !important; }

.boot { height: 100vh; display: grid; place-items: center; }
.boot img { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.94); } }

/* ---------- Kabuk ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--bg2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 85%, #fff), color-mix(in srgb, var(--accent) 80%, #000));
  display: grid; place-items: center; box-shadow: 0 6px 18px -6px var(--accent);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-weight: 700; letter-spacing: -.01em; font-size: 15px; line-height: 1.2; }
.brand-sub { font-size: 11.5px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px;
  color: var(--text2); font-weight: 500; transition: background .12s, color .12s;
}
.nav a svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.nav a:hover { background: var(--surface2); color: var(--text); }
.nav a.on { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.nav a.on svg { color: var(--accent); }
.nav .count { margin-left: auto; font-size: 11px; background: var(--surface3); color: var(--text2); padding: 1px 7px; border-radius: 999px; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--surface3); display: grid; place-items: center;
  font-weight: 600; font-size: 12px; color: var(--text2); flex: none;
}
.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 14px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.top h1 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.top .crumb { color: var(--muted); font-size: 12.5px; }
.page { padding: 24px 28px 60px; display: flex; flex-direction: column; gap: 18px; max-width: 1480px; width: 100%; }
.btn.menu-btn { display: none; }

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-h h3 { margin: 0; font-size: 13.5px; font-weight: 600; }
.card-h .sub { color: var(--muted); font-size: 12.5px; }
.card-b { padding: 16px 18px; }
.card-b.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.kpi .lbl { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kpi .lbl svg { width: 15px; height: 15px; }
.kpi .val { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .foot { font-size: 12px; color: var(--muted); }
.kpi::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow, var(--accent-soft)), transparent 70%); pointer-events: none;
}

/* ---------- Butonlar ve alanlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px;
  border-radius: 8px; border: 1px solid var(--line2); background: var(--surface2); color: var(--text);
  font-weight: 550; font-size: 13px; cursor: pointer; transition: background .12s, border-color .12s, opacity .12s;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { background: var(--surface3); border-color: #34405a; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.pri { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -8px var(--accent); }
.btn.pri:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn.danger { background: color-mix(in srgb, var(--bad) 14%, transparent); border-color: color-mix(in srgb, var(--bad) 40%, transparent); color: #fecaca; }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 24%, transparent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text2); }
.btn.ghost:hover { background: var(--surface2); }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12.5px; border-radius: 7px; }
.btn.icon { width: 30px; padding: 0; height: 30px; }
.input, .select, .textarea {
  height: 36px; width: 100%; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line2);
  background: var(--bg2); color: var(--text); outline: none; transition: border-color .12s, box-shadow .12s;
}
.textarea { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.sm, .select.sm { height: 30px; font-size: 13px; }
.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238790a4' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; font-weight: 550; color: var(--text2); }
.help { font-size: 12px; color: var(--muted); line-height: 1.45; }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--faint); }
.search .input { padding-left: 32px; }

.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface3); border: 1px solid var(--line2); transition: .15s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #9aa3b5; transition: .15s; }
.switch input:checked + span { background: var(--accent); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Rozetler ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; background: var(--surface3); color: var(--text2); white-space: nowrap;
}
.badge.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: #86efac; }
.badge.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: #fcd34d; }
.badge.bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: #fca5a5; }
.badge.info { background: color-mix(in srgb, var(--info) 15%, transparent); color: #93c5fd; }
.badge.acc { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 60%, #fff); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.dot.bad { background: var(--bad); }
.dot.live { background: var(--ok); animation: blink 2s infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 10%, transparent); } }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); font-size: 12.5px; color: var(--text2); }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { text-align: left; font-weight: 550; font-size: 11.5px; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; white-space: nowrap; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .1s; }
.t tbody tr:hover { background: color-mix(in srgb, var(--surface2) 70%, transparent); }
.t tr.click { cursor: pointer; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .n { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .l { font-size: 11.5px; color: var(--faint); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.empty { padding: 42px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg { width: 30px; height: 30px; color: var(--faint); }

.risk { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.risk .bar { flex: 1; height: 6px; background: var(--surface3); border-radius: 999px; overflow: hidden; }
.risk .bar i { display: block; height: 100%; border-radius: inherit; }
.risk b { font-size: 12px; font-variant-numeric: tabular-nums; width: 28px; text-align: right; }

/* ---------- Grafikler ---------- */
.chart { width: 100%; height: 190px; display: block; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--faint); font-size: 10.5px; }
.hbar { display: flex; flex-direction: column; gap: 11px; }
.hbar .it { display: grid; grid-template-columns: 150px 1fr 38px; align-items: center; gap: 10px; font-size: 12.5px; }
.hbar .tr { height: 8px; background: var(--surface3); border-radius: 999px; overflow: hidden; }
.hbar .tr i { display: block; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, transparent), var(--accent)); border-radius: inherit; }
.hbar .it b { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Canlı akış ---------- */
.feed { display: flex; flex-direction: column; }
.feed-it { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.feed-it:last-child { border-bottom: 0; }
.feed-it:hover { background: var(--surface2); }
.feed-it.new { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--accent-soft); } }
.t tr.flash { animation: flash 1.6s ease-out; }
.ico-b { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface3); }
.ico-b svg { width: 16px; height: 16px; }
.ico-b.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: #fca5a5; }
.ico-b.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: #fcd34d; }
.ico-b.info { background: color-mix(in srgb, var(--info) 14%, transparent); color: #93c5fd; }
.feed-it .t1 { font-weight: 550; font-size: 13px; }
.feed-it .t2 { font-size: 12px; color: var(--muted); }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; width: fit-content; }
.tabs button { border: 0; background: transparent; padding: 6px 13px; border-radius: 7px; color: var(--muted); font-weight: 550; cursor: pointer; font-size: 13px; }
.tabs button.on { background: var(--surface3); color: var(--text); }

/* ---------- Pencereler ---------- */
.overlay { position: fixed; inset: 0; background: rgba(3, 5, 9, .66); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .14s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 30px 80px -20px #000; animation: rise .16s ease-out; }
.modal.wide { width: min(820px, 100%); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-h h3 { margin: 0; font-size: 15px; font-weight: 650; }
.modal-b { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg2); border-radius: 0 0 14px 14px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--surface); border-left: 1px solid var(--line2); z-index: 101; display: flex; flex-direction: column; animation: slide .18s ease-out; box-shadow: -30px 0 60px -20px #000; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer .modal-b { overflow: auto; flex: 1; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.shot { width: 100%; border-radius: 10px; border: 1px solid var(--line2); display: block; background: var(--bg2); }
.keybox { font-family: var(--mono); font-size: 15px; letter-spacing: .04em; padding: 14px 16px; border-radius: 10px; background: var(--bg2); border: 1px dashed var(--accent-line); color: #fff; text-align: center; user-select: all; word-break: break-all; }
pre.code { margin: 0; font-family: var(--mono); font-size: 12.5px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; overflow-x: auto; color: #cfd6e4; line-height: 1.6; }
.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--accent-line); background: var(--accent-soft); font-size: 13px; }
.callout svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 1px; }
.callout.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.callout.warn svg { color: var(--warn); }

/* ---------- Toast ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { min-width: 280px; max-width: 380px; padding: 12px 14px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line2); box-shadow: 0 16px 40px -12px #000; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; animation: rise .18s ease-out; }
.toast svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.toast.ok svg { color: var(--ok); }
.toast.bad svg { color: var(--bad); }
.toast.warn svg { color: var(--warn); }
.toast b { display: block; }

/* ---------- Ayarlar ---------- */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.snav { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 2px; }
.snav a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.snav a:hover { color: var(--text); background: var(--surface); }
.snav a .dot { width: 6px; height: 6px; }
.mod { scroll-margin-top: 84px; }
.mod-h { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; }
.mod-h .ttl { font-weight: 650; font-size: 14.5px; }
.mod-h .desc { color: var(--muted); font-size: 12.5px; margin-top: 3px; max-width: 640px; }
.mod-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.mod-b { padding: 4px 18px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.mod-b .full { grid-column: 1 / -1; }
.mod.off .mod-b { opacity: .45; }
.tgl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; }
.tgl-row .t { font-size: 13px; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line2); border-radius: 9px; background: var(--bg2); min-height: 44px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 9px; border-radius: 6px; background: var(--surface3); font-family: var(--mono); font-size: 12px; }
.tag button { border: 0; background: transparent; color: var(--muted); cursor: pointer; width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; }
.tag button:hover { background: var(--line2); color: var(--text); }
.tags input { border: 0; outline: 0; background: transparent; min-width: 160px; flex: 1; height: 26px; font-family: var(--mono); font-size: 12px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.chk { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg2); font-size: 12.5px; cursor: pointer; user-select: none; }
.chk input { accent-color: var(--accent); }
.chk.on { border-color: var(--accent-line); background: var(--accent-soft); }
.pairs { display: flex; flex-direction: column; gap: 6px; }
.pairs .pr { display: grid; gap: 6px; align-items: center; }
.savebar { position: sticky; bottom: 16px; z-index: 30; margin-top: 4px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--accent-line); box-shadow: 0 20px 50px -20px #000; animation: rise .16s; }

/* ---------- Giriş ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(1200px 600px at -10% -10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%), radial-gradient(800px 500px at 110% 110%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--bg2); border-right: 1px solid var(--line); }
.auth-hero h2 { font-size: 36px; line-height: 1.12; letter-spacing: -.03em; margin: 0 0 14px; max-width: 520px; }
.auth-hero p { color: var(--text2); max-width: 470px; margin: 0; font-size: 15px; }
.auth-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); opacity: .5; pointer-events: none; }
.auth-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; position: relative; }
.auth-feat { padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); font-size: 12.5px; color: var(--text2); display: flex; gap: 10px; }
.auth-feat svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }
.auth-form { display: grid; place-items: center; padding: 32px; }
.auth-form form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.auth-form h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.err { color: #fca5a5; font-size: 13px; min-height: 18px; }

/* ---------- Sunucu kartları ---------- */
.srv { padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: border-color .15s, transform .15s; }
.srv:hover { border-color: var(--line2); transform: translateY(-1px); }
.srv .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.srv .stats div { background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.srv .stats b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.srv .stats span { font-size: 11.5px; color: var(--muted); }

.steps { counter-reset: s; display: flex; flex-direction: column; gap: 18px; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.step::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 55%, #fff); font-weight: 700; font-size: 13px; border: 1px solid var(--accent-line); }
.step h4 { margin: 3px 0 6px; font-size: 14px; }

@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g21, .g3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 90; width: 260px; left: 0; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 30px 0 60px #000; }
  .btn.menu-btn { display: inline-flex; }
  .top .crumb { display: none; }
  .pill { padding: 0 10px; }
  .top, .page { padding-left: 16px; padding-right: 16px; }
  .settings { grid-template-columns: 1fr; }
  .snav { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .g2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .hbar .it { grid-template-columns: 110px 1fr 32px; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi .val { font-size: 22px; }
  .kpi .foot { display: none; }
  #agent-pill { font-size: 0; gap: 0; width: 30px; padding: 0; justify-content: center; }
}
.toplist { display: flex; flex-direction: column; }
.toplist .it { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 14px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.toplist .it:last-child { border-bottom: 0; }
.toplist .risk { min-width: 0; }

/* ---------- Canlı izleme ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; }
.watch-screen { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); display: grid; place-items: center; }
.watch-screen img { width: 100%; height: 100%; object-fit: contain; display: block; }
.watch-wait { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.watch-wait svg { width: 28px; height: 28px; }
.watch-live { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; }
.watch-side { display: flex; flex-direction: column; gap: 12px; }
.watch-side .kv { grid-template-columns: 110px 1fr; }
.modal.wide { width: min(1080px, 100%); }
.matrix { overflow-x: auto; }
.matrix table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.matrix th, .matrix td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.matrix th { color: var(--muted); font-weight: 550; font-size: 11.5px; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.matrix .input.sm { height: 28px; }
.hook-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
@media (max-width: 900px) { .watch { grid-template-columns: 1fr; } }
