/* ── Temel değişkenler ───────────────────────────────────────────────────── */
:root {
  /* Renk paleti — Botlar/Vnc koyu slate */
  --bg:          #060c1a;
  --surface:     #0d1526;
  --surface-2:   #111827;
  --surface-3:   #1e2d45;
  --border:      rgba(51, 65, 85, 0.65);
  --border-soft: rgba(51, 65, 85, 0.4);

  --text:        #f1f5f9;
  --text-2:      #cbd5e1;
  --muted:       #64748b;

  --accent:      #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.18);
  --accent-ring: rgba(59, 130, 246, 0.4);

  --online:  #34d399;
  --offline: #f87171;
  --warn:    #fbbf24;
  --danger:  #ef4444;

  /* Layout */
  --sidebar-w: 58px;
  --detail-w:  300px;

  /* Tipografi */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Efektler */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow:    0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; max-height: 100%;
  font-family: var(--font); font-size: 13.5px;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow: hidden;
}
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Yardımcılar ─────────────────────────────────────────────────────────── */
.hidden  { display: none !important; }
.muted   { color: var(--muted); }
.mono    { font-family: var(--mono); font-size: 0.85em; }
.tiny    { font-size: 0.8rem; line-height: 1.5; }

/* ── Kayıt ekranı ────────────────────────────────────────────────────────── */
.login-view {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(37, 99, 235, 0.22), transparent 55%),
    radial-gradient(700px 500px at 90% 110%, rgba(15, 23, 42, 0.5), transparent 60%),
    linear-gradient(160deg, #060c1a 0%, #0d1526 50%, #111827 100%);
}
.auth-shell {
  min-height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.auth-wrap { width: 100%; max-width: 420px; padding: 20px; }

.login-card.auth-card {
  width: 100%; padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.96), rgba(13, 21, 38, 0.94));
  border: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  display: flex; flex-direction: column; gap: 14px;
}

.auth-head {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-bottom: 4px;
}
.auth-icon { width: 160px; display: grid; place-items: center; }
.auth-logo  { display: block; width: 100%; height: 100%; object-fit: contain; }

.auth-label {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
  color: #94a3b8; font-size: 12.5px; font-weight: 600;
}
.auth-input {
  background: rgba(15, 23, 42, 0.9) !important;
  color: #e2e8f0;
  border: 1px solid rgba(71, 85, 105, 0.7) !important;
  border-radius: var(--radius);
  padding: 11px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: none !important;
}
.auth-input::placeholder { color: #475569; }
.auth-input:focus {
  border-color: rgba(59, 130, 246, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}
.auth-button {
  margin-top: 2px; border: 0;
  border-radius: var(--radius);
  padding: 13px 14px;
  font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38);
  transition: filter 0.2s;
}
.auth-button:hover { filter: brightness(1.08); }

.login-alert {
  display: flex; align-items: center;
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius);
  background: rgba(127, 29, 29, 0.25);
  color: #fda4af; font-size: 13px; padding: 10px 12px;
}

/* ── Uygulama kabuğu ─────────────────────────────────────────────────────── */
.shell {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--detail-w);
  height: 100%; max-height: 100%; width: 100%;
  gap: 10px; padding: 10px; overflow: hidden;
  background: var(--bg);
}
.shell > * { min-height: 0; max-height: 100%; }

/* ── Sol kenar çubuğu ────────────────────────────────────────────────────── */
.sidebar {
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.sidebar-top {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; flex: 1;
}
.sidebar-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.sidebar-brand {
  font-size: 8px; letter-spacing: 0.1em; color: var(--muted);
  text-align: center; line-height: 1.3; margin-top: 8px; font-weight: 600;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: transparent; display: grid; place-items: center; flex-shrink: 0;
}
.sidebar-logo {
  width: 100%; height: 100%; object-fit: contain; border-radius: inherit;
}

.nav-icons { display: flex; flex-direction: column; gap: 4px; width: 100%; align-items: center; }
.nav-btn {
  width: 40px; height: 40px; border-radius: var(--radius);
  color: var(--muted); display: grid; place-items: center;
  transition: background 0.18s, color 0.18s;
}
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn:hover { color: var(--text-2); background: var(--surface-3); }
.nav-btn.active {
  color: var(--accent); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}

/* ── Ana sütun ───────────────────────────────────────────────────────────── */
.main-col {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0; height: 100%; overflow: hidden; gap: 10px;
}

/* ── Üst çubuk ───────────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-xl);
  background: var(--surface); border: 1px solid var(--border);
  flex-shrink: 0;
}
.page-title {
  margin: 0; font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.03em; white-space: nowrap; color: var(--text);
}

/* Arama */
.search-wrap { position: relative; flex: 1; max-width: 340px; }
.search-wrap input {
  width: 100%; height: 36px; padding: 0 14px 0 38px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap input:focus {
  border-color: var(--accent-ring);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--muted); pointer-events: none;
}

/* Aksiyon çubuğu */
.action-bar {
  display: flex; gap: 6px; margin-left: auto;
  flex-wrap: wrap; justify-content: flex-end;
}
.action-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px;
  min-width: 52px; height: 46px; padding: 0 8px;
  border-radius: var(--radius);
  font-size: 10px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); transition: background 0.18s, border-color 0.18s;
}
.action-btn svg { width: 16px; height: 16px; color: var(--muted); }
.action-btn:hover { background: var(--surface-3); border-color: rgba(99, 116, 135, 0.6); }
.action-btn:hover svg { color: var(--text-2); }
.action-btn.accent {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff; border-color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.action-btn.accent svg { color: #fff; }
.action-btn.accent:hover { filter: brightness(1.06); }

.glass-btn { /* Alias — aynı stil */
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}

/* ── Meta çubuk ──────────────────────────────────────────────────────────── */
.table-meta {
  display: flex; align-items: center; gap: 10px; padding: 0 2px; flex-shrink: 0;
}
.meta-pill {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 4px 10px;
  font-size: 11.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted);
}
.meta-pill b { color: var(--text); }
.meta-label { color: var(--muted); font-weight: 500; }
.meta-apk {
  margin-left: auto; color: var(--accent); text-decoration: none;
  font-weight: 600; font-size: 11.5px;
  border-radius: 999px; padding: 5px 12px;
  background: var(--surface); border: 1px solid var(--border);
  transition: background 0.15s;
}
.meta-apk:hover { background: var(--surface-3); }
.meta-check {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 12px; user-select: none;
}

/* ── Toplu seçim çubuğu ──────────────────────────────────────────────────── */
.bulk-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: var(--radius);
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.06);
  animation: toast-in 0.2s ease;
}
.bulk-bar #bulk-count { font-size: 13px; font-weight: 600; color: var(--text-2); }
.action-btn.danger { color: var(--danger); border-color: rgba(239, 68, 68, 0.4); }
.action-btn.danger:hover { background: rgba(239, 68, 68, 0.1); }
tr.bulk-selected td { background: rgba(99, 116, 135, 0.08); }
.meta-check input[type="checkbox"] { accent-color: var(--accent); }

/* ── Cihaz tablosu ───────────────────────────────────────────────────────── */
.center-stack {
  flex: 1 1 0; min-height: 0; position: relative;
  display: flex; flex-direction: column;
}
.table-wrap {
  flex: 1 1 0; overflow-x: auto; overflow-y: auto;
  border-radius: var(--radius-xl);
  padding: 6px 8px 12px;
  background: var(--surface); border: 1px solid var(--border);
  min-height: 0; height: 0;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.table-wrap.hidden { display: none !important; }

.devices-table {
  width: 100%; border-collapse: separate;
  border-spacing: 0 3px; table-layout: fixed;
}
.devices-table thead th {
  position: sticky; top: 0; z-index: 5;
  background: var(--surface-2);
  color: var(--muted); font-weight: 600; font-size: 11px;
  text-align: left; padding: 9px 8px;
  border-bottom: 1px solid var(--border);
}
.devices-table tbody tr {
  background: var(--surface-2); cursor: pointer;
  transition: background 0.15s;
}
.devices-table tbody tr:hover { background: var(--surface-3); }
.devices-table tbody tr.selected {
  background: rgba(37, 99, 235, 0.15);
  box-shadow: inset 3px 0 0 var(--accent);
}
.devices-table tbody tr.offline { opacity: 0.5; }
.devices-table td {
  padding: 9px 8px; vertical-align: middle;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.devices-table td:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.devices-table td:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }

/* Kolon genişlikleri */
.col-check    { width: 36px; text-align: center; }
.col-check input[type="checkbox"] { accent-color: var(--accent); cursor: pointer; width: 15px; height: 15px; }
.col-avatar   { width: 48px; }
.col-status   { width: 60px; }
.col-name     { width: 14%; }
.col-model    { width: 16%; }
.col-adb      { width: 16%; }
.col-os       { width: 9%; }
.col-note     { width: 10%; }
.col-uptime   { width: 10%; }
.col-battery  { width: 84px; }
.col-activity { width: 11%; }
.col-action   { width: 40px; }

/* Hücre stilleri */
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #3b82f6, #6366f1);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.avatar span {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); color: var(--text);
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}

.status-phone { width: 22px; height: 22px; color: var(--muted); }
.status-phone.on  { color: var(--online); filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.4)); }
.status-phone svg { width: 100%; height: 100%; }

/* Durum noktaları */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  display: inline-block;
}
.status-dot.online  { background: var(--online);  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6); }
.status-dot.offline { background: var(--muted); }
.status-dot.warn    { background: var(--warn); }

.name-cell  { font-weight: 600; letter-spacing: -0.02em; }
.adb-cell   { font-family: var(--mono); font-size: 11px; color: #60a5fa; }
.note-cell, .seen-cell, .activity-cell { color: var(--muted); font-size: 12px; }

/* Pil göstergesi */
.batt-cell {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
}
.batt-ico {
  width: 22px; height: 11px; border: 1.5px solid currentColor;
  border-radius: 3px; position: relative; opacity: 0.85;
}
.batt-ico::after {
  content: ""; position: absolute; right: -4px; top: 2px;
  width: 2px; height: 5px; background: currentColor; border-radius: 0 1px 1px 0;
}
.batt-ico > i { display: block; height: 100%; background: currentColor; border-radius: 1px; }
.batt-cell.ok  { color: var(--online); }
.batt-cell.mid { color: var(--warn); }
.batt-cell.low { color: var(--danger); }

/* Satır aksiyon butonu */
.row-act {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  color: var(--muted); display: grid; place-items: center;
  transition: background 0.15s, color 0.15s;
}
.row-act:hover { background: var(--accent-soft); color: var(--accent); }
.row-act svg { width: 15px; height: 15px; }

/* Boş durum */
.empty {
  position: absolute; inset: 48px 0 0;
  display: grid; place-items: center;
  color: var(--muted); text-align: center; pointer-events: none;
}
.empty::before {
  content: "📱";
  display: block; font-size: 2.5rem;
  margin-bottom: 12px; opacity: 0.3;
}

/* Siyah ekran butonu aktif hali */
.activity-cell.black-on { color: var(--danger); font-weight: 700; }
.detail-black-on { color: var(--danger); font-weight: 700; }
.detail-black-off { color: var(--muted); }

/* ── Durum chip'leri (tablo içi) ─────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}
.chip.online  { background: rgba(16, 185, 129, 0.12); border-color: rgba(52, 211, 153, 0.35); color: #6ee7b7; }
.chip.offline { background: rgba(239, 68, 68, 0.12);  border-color: rgba(248, 113, 113, 0.35); color: #fca5a5; }
.chip.warn    { background: rgba(245, 158, 11, 0.12); border-color: rgba(251, 191, 36, 0.35);  color: #fcd34d; }

/* ── Telefon ekran görünümü ──────────────────────────────────────────────── */
.screens-stage {
  flex: 1 1 0; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 40px; padding: 8px 10px 10px;
  border-radius: var(--radius-xl);
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; position: relative;
  container-type: size; container-name: screens;
}
.screens-stage.hidden { display: none !important; }
.screens-stage.single .phone-slot {
  width: min(400px, 90cqi, calc((100cqh - 120px) * 9 / 19.5));
  max-width: 90cqi;
}

.phone-slot {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: stretch;
  gap: 8px; height: 100%; min-height: 0; flex: 0 0 auto;
  width: min(360px, 44cqi, calc((100cqh - 120px) * 9 / 19.5));
  max-width: 44cqi;
}
.phone-slot.hidden { display: none !important; }

.phone-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  width: 100%; flex-shrink: 0; padding: 0 4px;
}
.phone-label-meta {
  flex: 1; min-width: 0; font-weight: 500; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right;
}
.phone-close {
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 11px; color: var(--muted); display: grid; place-items: center; flex-shrink: 0;
}
.phone-close:hover { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.phone-frame {
  flex: 1 1 0; min-height: 0; width: 100%;
  display: flex; flex-direction: column; align-items: stretch;
  background: transparent; border: 0; overflow: visible;
}
.phone-body {
  position: relative; width: 100%;
  aspect-ratio: 9 / 19.5; height: auto; flex: 0 0 auto;
  max-height: calc(100% - 84px); padding: 10px; border-radius: 42px;
  background: linear-gradient(165deg, #3a3a3c 0%, #1c1c1e 42%, #0c0c0d 100%);
  box-shadow: 0 28px 56px rgba(0,0,0,.45),
              0 0 0 1px rgba(255,255,255,.12) inset,
              0 1px 0 rgba(255,255,255,.2) inset;
}
.phone-bezel {
  position: relative; width: 100%; height: 100%;
  padding: 0; background: #000; border-radius: 34px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.7);
}
.phone-island {
  position: absolute; top: 9px; left: 50%; z-index: 3;
  width: 30%; min-width: 72px; max-width: 110px; height: 20px;
  transform: translateX(-50%); border-radius: 999px;
  background: #000; pointer-events: none;
}
.phone-screen {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: 0; background: #000; display: block;
}
.phone-btn {
  position: absolute;
  background: linear-gradient(180deg, #4a4a4c, #2a2a2c);
  border-radius: 2px; pointer-events: none;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,.5);
}
.phone-btn-silent   { left:-2px; top:14%; width:3px; height:4.5%; border-radius:2px 0 0 2px; }
.phone-btn-vol-up   { left:-2px; top:22%; width:3px; height:7%;   border-radius:2px 0 0 2px; }
.phone-btn-vol-down { left:-2px; top:31%; width:3px; height:7%;   border-radius:2px 0 0 2px; }
.phone-btn-power    { right:-2px;top:26%; width:3px; height:10%;  border-radius:0 2px 2px 0; }

.phone-nav {
  flex-shrink: 0; width: 100%;
  display: flex; align-items: center; justify-content: space-evenly;
  gap: 2px; padding: 8px 10px 4px;
}
.phone-nav-btn {
  flex: 1 1 0; height: 34px; border-radius: 999px;
  background: rgba(30, 41, 59, 0.9); color: rgba(255,255,255,.85);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
  transition: background 0.12s, transform 0.08s;
}
.phone-nav-btn:hover  { background: var(--surface-3); color: #fff; }
.phone-nav-btn:active { transform: scale(0.95); }

.phone-type {
  flex-shrink: 0; display: flex; align-items: center;
  gap: 6px; padding: 4px 4px 2px;
}
.phone-type-input {
  flex: 1 1 0; height: 34px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-2); color: var(--text);
  padding: 0 14px; font-size: 13px; outline: none;
}
.phone-type-input::placeholder { color: var(--muted); }
.phone-type-input:focus {
  border-color: var(--accent-ring);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.phone-type-send {
  flex-shrink: 0; width: 34px; height: 34px;
  border-radius: 50%; background: var(--accent);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: filter 0.15s;
}
.phone-type-send:hover { filter: brightness(1.1); }

/* ── Sağ panel (detay) ───────────────────────────────────────────────────── */
.detail-panel {
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  min-height: 0;
}
.detail-placeholder {
  flex: 1; display: grid; place-items: center; padding: 24px;
}
.detail-body {
  flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 14px; display: flex; flex-direction: column; gap: 14px;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.detail-head { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.detail-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6, #6366f1);
  display: grid; place-items: center; font-weight: 700; color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); flex-shrink: 0;
}
.detail-title { flex: 1; min-width: 0; }
.detail-title h2 {
  margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text);
}
.detail-status { font-size: 12px; font-weight: 600; color: var(--muted); }
.detail-status.on { color: var(--online); }

.detail-list {
  margin: 0; display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border-radius: var(--radius-lg);
  background: var(--surface-2); border: 1px solid var(--border);
  flex-shrink: 0;
}
.detail-list > div {
  display: grid; grid-template-columns: 86px 1fr; gap: 8px; align-items: baseline;
}
.detail-list > .detail-port-row { align-items: center; }
.detail-list dt { margin: 0; color: var(--muted); font-size: 11px; font-weight: 600; }
.detail-list dd { margin: 0; font-size: 12.5px; word-break: break-all; color: var(--text); }

.detail-port-edit { display: flex; align-items: center; gap: 5px; min-width: 0; }
.detail-port-edit input {
  width: 82px; min-width: 0; padding: 6px 7px;
  border-radius: var(--radius-sm);
  font: 600 12px/1.2 var(--mono);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  outline: none;
}
.detail-port-edit input:focus {
  border-color: var(--accent-ring); box-shadow: 0 0 0 3px var(--accent-soft);
}
.detail-port-edit button {
  padding: 6px 9px; border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa; font-size: 11px; font-weight: 700;
  transition: background 0.15s;
}
.detail-port-edit button:hover { background: rgba(59, 130, 246, 0.2); }
.detail-port-edit button:disabled { opacity: 0.4; }

.detail-section { flex-shrink: 0; }
.detail-section h3 {
  margin: 0 0 8px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.detail-actions { display: flex; flex-direction: column; gap: 4px; }
.detail-btn {
  text-align: left; padding: 9px 11px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
  font-weight: 500; font-size: 12.5px; color: var(--text-2);
  transition: background 0.15s, border-color 0.15s;
}
.detail-btn:hover { background: var(--surface-3); border-color: rgba(100, 116, 139, 0.5); }
.detail-btn.accent-btn {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff; border-color: #1d4ed8; font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.detail-btn.accent-btn:hover { filter: brightness(1.06); }
.detail-btn.danger { color: var(--danger); border-color: rgba(239, 68, 68, 0.25); }
.detail-btn.danger:hover { background: rgba(239, 68, 68, 0.1); }
.detail-btn.black-on {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35); color: var(--danger); font-weight: 700;
}

.detail-shot-wrap h3 {
  margin: 0 0 8px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.detail-shot-wrap img {
  width: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: #000; display: block;
}

/* ── Modaller ─────────────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  background: rgba(6, 12, 26, 0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: grid; place-items: center; z-index: 100;
}
.modal-card {
  width: 440px; max-width: 92vw; padding: 28px; border-radius: var(--radius-xl);
  background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.modal-card h2 {
  margin: 0 0 14px; font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
}
.modal-card label {
  display: flex; flex-direction: column; gap: 6px;
  color: var(--muted); font-size: 0.875rem; margin-bottom: 10px;
}
.modal-card input,
.modal-card select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 11px; color: var(--text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-card input:focus,
.modal-card select:focus {
  border-color: var(--accent-ring); box-shadow: 0 0 0 3px var(--accent-soft);
}
.modal-card select { appearance: none; }

.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.enroll-result { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.enroll-result pre {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; overflow-x: auto;
  font-size: 0.78rem; margin: 0; font-family: var(--mono); color: var(--text-2);
}

.checkbox {
  display: flex !important; flex-direction: row !important;
  align-items: center; gap: 8px; margin: 8px 0 4px;
  color: var(--text-2); font-size: 13px;
}
.checkbox input[type="checkbox"] { accent-color: var(--accent); }

/* Modal butonlar */
.btn-primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff; border-radius: var(--radius-sm); padding: 10px 16px;
  font-weight: 700; border: 1px solid #1d4ed8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: filter 0.15s;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 14px; font-weight: 600;
  color: var(--text-2); transition: background 0.15s;
}
.btn-secondary:hover { background: var(--surface); }
.btn-ghost {
  background: transparent; color: var(--muted);
  padding: 9px 14px; border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }

/* ── Toast bildirimi ─────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  padding: 12px 20px; border-radius: 999px; z-index: 200;
  font-weight: 600; font-size: 13px;
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text); box-shadow: var(--shadow);
  animation: toast-in 0.25s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ── Denetçi katmanı ─────────────────────────────────────────────────────── */
.inspect-layer {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--bg); display: flex; flex-direction: column;
}
.inspect-layer.hidden { display: none !important; }
.inspect-layer iframe { flex: 1; width: 100%; height: 100%; border: 0; }

/* ── Uyarı / hata satır içi ──────────────────────────────────────────────── */
.error { color: var(--danger); font-size: 0.875rem; }
.inline-ok    { color: var(--online); font-size: 12px; font-weight: 600; }
.inline-error { color: var(--danger); font-size: 12px; font-weight: 600; }

/* ── Duyarlı ─────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .shell { grid-template-columns: var(--sidebar-w) 1fr; }
  .detail-panel {
    position: fixed; right: 10px; top: 10px; bottom: 10px;
    width: min(300px, 88vw); z-index: 40;
    box-shadow: var(--shadow-lg);
  }
  .col-note, .col-activity { display: none; }
}
@media (max-width: 800px) {
  .action-btn span { display: none; }
  .action-btn { min-width: 40px; width: 40px; height: 40px; }
  .col-model, .col-os, .col-uptime { display: none; }
  .phone-slot { max-width: min(360px, 90cqi); }
}

/* ── Scrollbar (webkit) ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.4); border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.7); }

/* ── Seçim rengi ─────────────────────────────────────────────────────────── */
::selection { background: var(--accent-soft); color: var(--text); }
