/* ========== mSphere Client — vSphere clone for MDCreative ========== */

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

:root {
  --bg-darkest: #101117;
  --bg-deep:    #181921;
  --bg-mid:     #1f2029;
  --bg-card:    #262834;
  --bg-card-2:  #2e303d;
  --border:     #353846;
  --border-soft:#282a35;
  --text:       #eceef1;
  --text-dim:   #a8acb6;
  --text-mute:  #6c7180;
  --accent:     #1aa3ff;
  --accent-2:   #5dbeff;
  --accent-bg:  rgba(26, 163, 255, 0.13);
  --accent-bg-2:rgba(26, 163, 255, 0.22);
  --accent-glow: 0 0 0 1px rgba(26,163,255,0.35), 0 0 12px rgba(26,163,255,0.16);
  --on:         #4ec27a;
  --on-glow:    0 0 8px rgba(78,194,122,0.55);
  --off:        #6b6e76;
  --warn:       #ff9f43;
  --crit:       #ef5350;
  --yellow:     #e9c46a;

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter var", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;

  --topbar-h: 46px;
  --taskbar-h: 220px;
  --taskbar-h-collapsed: 32px;
  --sidebar-w: 320px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.02) inset, 0 1px 2px rgba(0,0,0,0.4);
  --shadow-pop: 0 8px 24px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.3);
}

html, body {
  height: 100%;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "tnum";
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== BOOT OVERLAY ========== */
.boot-overlay {
  position: fixed; inset: 0;
  background: #000;
  z-index: 9999;
  color: #d4d4d4;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  padding: 14px 18px;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-font-smoothing: antialiased;
}
.boot-overlay::-webkit-scrollbar { display: none; }
.boot-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.boot-log { white-space: pre-wrap; word-break: break-word; margin: 0; }
.boot-ok      { color: #4ec27a; }
.boot-warn    { color: #e9c46a; }
.boot-fail    { color: #ef5350; }
.boot-banner  { color: #1aa3ff; font-weight: 600; }
.boot-prompt  { color: #5dbeff; }
.boot-dim     { color: #888; }
.boot-skip {
  position: fixed; bottom: 12px; right: 14px;
  color: #6c7180; font-size: 10.5px;
  font-family: inherit; font-weight: 600; letter-spacing: 0.6px;
  background: rgba(0,0,0,0.4);
  border: 1px solid #2a2c34;
  padding: 5px 10px; border-radius: 4px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.boot-skip:hover { color: #d4d4d4; border-color: #4a4e5a; }
@media (max-width: 768px) {
  .boot-overlay { font-size: 10.5px; padding: 10px 12px; line-height: 1.4; }
  .boot-skip { font-size: 10px; padding: 4px 8px; }
}

/* dark scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a3d46; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4a4e5a; }
::selection { background: var(--accent-bg-2); color: #fff; }

/* ========== ICON SYSTEM ========== */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  display: inline-block;
  width: 16px; height: 16px;
  vertical-align: -3px;
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
  flex-shrink: 0;
}
.ic-sm { width: 13px; height: 13px; vertical-align: -2px; }
.ic-md { width: 16px; height: 16px; }
.ic-lg { width: 18px; height: 18px; vertical-align: -4px; }
.ic-xl { width: 22px; height: 22px; vertical-align: -5px; }
.ic-on  { color: var(--on); }
.ic-off { color: var(--off); }
.ic-warn { color: var(--warn); }
.ic-yellow { color: var(--yellow); }
.ic-blue { color: var(--accent); }

/* ========== TOP BAR ========== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
  background: linear-gradient(180deg, #14151c, #101117);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 14px;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-center { flex: 1; display: flex; justify-content: center; padding: 0 16px; }

.hamburger {
  width: 32px; height: 32px; border-radius: 4px;
  color: var(--text-dim);
  display: inline-flex; align-items: center; justify-content: center;
}
.hamburger:hover { background: var(--bg-mid); color: var(--text); }

.brand { display: flex; align-items: center; }
.brand-name {
  font-weight: 600; color: var(--text); letter-spacing: 0.1px; font-size: 15px;
}
.brand-name .mut { color: var(--text-dim); font-weight: 400; }

.abuse-badge {
  display: inline-flex; align-items: center;
  height: 36px;
  margin-left: 18px;
  padding: 3px 10px;
  border-radius: 5px;
  border: 1px solid var(--border-soft);
  background: var(--bg-mid);
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  text-decoration: none;
  flex-shrink: 0;
}
.abuse-badge:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateY(-1px);
  text-decoration: none;
}
.abuse-badge img {
  display: block;
  height: 30px;
  width: auto;
}

@media (max-width: 1200px) {
  .abuse-badge img { height: 26px; }
  .abuse-badge { height: 32px; padding: 2px 8px; margin-left: 12px; }
}
@media (max-width: 1000px) {
  .abuse-badge { display: none; }
}

.searchbox {
  position: relative; width: 100%; max-width: 560px;
  background: var(--bg-mid); border: 1px solid var(--border-soft);
  border-radius: 5px; display: flex; align-items: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.searchbox:focus-within { border-color: var(--accent); box-shadow: var(--accent-glow); }
.search-icon {
  padding: 0 10px; color: var(--text-mute);
  display: inline-flex; align-items: center;
}
.searchbox input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--text); padding: 8px 4px 8px 0; font: inherit; font-size: 13px;
}
.search-hint {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--text-mute);
  background: var(--bg-darkest);
  border: 1px solid var(--border-soft);
  padding: 2px 6px; border-radius: 3px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* search results dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 6px;
  max-height: 460px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: var(--shadow-pop);
  padding: 4px 0;
}
.search-empty {
  padding: 18px 16px; color: var(--text-mute);
  font-size: 12px; text-align: center;
}
.search-empty .hint {
  display: block; margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--text-mute);
}
.search-cat {
  padding: 8px 14px 4px;
  color: var(--text-mute); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.7px;
  font-family: var(--mono);
}
.search-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 14px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.08s;
}
.search-row:hover, .search-row.selected {
  background: var(--bg-card);
  border-left-color: var(--accent);
}
.search-row .sr-icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.search-row .sr-icon.kind-cert { color: var(--yellow); }
.search-row .sr-icon.kind-game,
.search-row .sr-icon.kind-anime { color: #c77dff; }
.search-row .sr-icon.kind-moto { color: #f97316; }
.search-row .sr-icon.kind-service { color: var(--on); }
.search-row .sr-label { color: var(--text); font-size: 12.5px; }
.search-row .sr-label .hl { color: var(--accent); font-weight: 600; }
.search-row .sr-sub {
  color: var(--text-mute); font-size: 10.5px;
  font-family: var(--mono); letter-spacing: 0.2px;
  white-space: nowrap;
}
.search-footer {
  padding: 6px 14px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-mute); font-size: 10.5px;
  font-family: var(--mono);
  display: flex; justify-content: space-between; align-items: center;
}
.search-footer kbd {
  font-family: var(--mono); font-size: 10px;
  background: var(--bg-darkest); border: 1px solid var(--border-soft);
  padding: 1px 5px; border-radius: 3px; margin: 0 2px;
  color: var(--text-dim);
}

.icon-btn {
  width: 32px; height: 32px; border-radius: 4px;
  color: var(--text-dim);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.icon-btn:hover { background: var(--bg-mid); color: var(--text); }

.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: 16px;
  color: var(--text);
  transition: background 0.12s;
}
.user-chip:hover { background: var(--bg-mid); cursor: pointer; }
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #4ec27a 0%, #2e8a52 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.user-name { font-size: 12.5px; }
.user-caret {
  color: var(--text-mute);
  display: inline-flex; align-items: center;
}

/* ========== LAYOUT ========== */
.layout {
  position: fixed;
  top: var(--topbar-h);
  left: var(--sidebar-w); right: 0;
  bottom: var(--taskbar-h);
  display: flex;
  transition: bottom 0.18s ease;
}
body.taskbar-collapsed .layout { bottom: var(--taskbar-h-collapsed); }

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: var(--taskbar-h);
  width: var(--sidebar-w);
  background: var(--bg-darkest);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
  z-index: 30;
  transition: bottom 0.18s ease;
}
body.taskbar-collapsed .sidebar { bottom: var(--taskbar-h-collapsed); }
.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 6px 8px;
  gap: 2px;
  background: linear-gradient(180deg, var(--bg-mid), var(--bg-darkest));
}
.tab-icon {
  width: 34px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim); border-radius: 4px;
  transition: background 0.12s, color 0.12s;
  position: relative;
}
.tab-icon:hover { background: var(--bg-mid); color: var(--text); }
.tab-icon.active {
  color: var(--accent); background: var(--accent-bg);
}
.tab-icon.active::after {
  content: ''; position: absolute; bottom: -7px; left: 6px; right: 6px; height: 2px;
  background: var(--accent); border-radius: 1px;
}
/* console launcher — view tab'larından farklı görünsün */
.tab-icon.console-launcher {
  color: var(--accent);
  margin-left: 4px;
  border-left: 1px solid var(--border-soft);
  padding-left: 6px;
  border-radius: 0 4px 4px 0;
}
.tab-icon.console-launcher:hover {
  background: var(--accent-bg);
  color: var(--accent-2);
}

.tree {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 8px 0;
  font-size: 12.5px;
}
.tree-node { display: block; user-select: none; }
.tree-node .tw {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 0;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition: background 0.1s;
}
.tree-node:not(.folder):not(.vcenter):not(.datacenter) > .tw:hover { background: var(--bg-mid); }
.tree-node.folder > .tw:hover,
.tree-node.vcenter > .tw:hover,
.tree-node.datacenter > .tw:hover { background: var(--bg-mid); }

.tree-node .caret {
  width: 14px; text-align: center; color: var(--text-mute); font-size: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.tree-node.collapsed > .tw .caret { transform: rotate(-90deg); }
.caret-spacer { width: 14px; display: inline-block; }

.tree-node .icon { display: inline-flex; align-items: center; }
.tree-node .icon .ic { width: 15px; height: 15px; vertical-align: 0; }

/* tree icon colors */
.tree-node.vcenter > .tw .icon { color: var(--yellow); }
.tree-node.datacenter > .tw .icon { color: #8aa8d8; }
.tree-node.folder > .tw .icon { color: #d6b863; }
.tree-node.vm > .tw .icon.vm-on { color: var(--on); }
.tree-node.vm > .tw .icon.vm-off { color: var(--off); }

.tree-children {
  padding-left: 18px;
  border-left: 1px dotted transparent;
}
.tree-node.collapsed > .tree-children { display: none; }
.tree-node.vcenter > .tw,
.tree-node.datacenter > .tw,
.tree-node.folder > .tw { font-weight: 500; }

.tree-node.vm > .tw { padding-left: 10px; }
.tree-node.vm.active > .tw {
  background: var(--accent-bg);
  border-left-color: var(--accent);
  color: #fff;
}
.tree-node.vm > .tw .label { letter-spacing: 0.15px; }

/* ========== CONTENT ========== */
.content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

.vm-page {
  border-bottom: 1px solid var(--border-soft);
  padding: 0 0 24px;
}

.vm-header {
  background: linear-gradient(180deg, #23252e, #1d1f27);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}
.vm-title {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px 10px;
}
.vm-title h1 {
  font-size: 15px; font-weight: 600; letter-spacing: 0.4px;
  text-transform: uppercase;
  font-family: var(--mono);
  color: var(--text);
}
.vm-icon { display: inline-flex; align-items: center; }
.vm-icon.on  { color: var(--on); }
.vm-icon.off { color: var(--off); }

.vm-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.action-btn {
  width: 30px; height: 26px; border-radius: 4px;
  color: var(--text-dim);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.action-btn:hover { background: var(--bg-card-2); color: var(--text); }
.action-btn.green { color: var(--on); }
.action-btn.red { color: var(--crit); }
.action-tx {
  padding: 5px 12px; color: var(--accent); font-size: 11px; font-weight: 600;
  letter-spacing: 0.6px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 4px;
}
.action-tx:hover { background: var(--accent-bg); }

.vm-tabs {
  display: flex; gap: 0; padding: 0 14px;
  border-top: 0;
  overflow-x: auto;
}
.vm-tab {
  padding: 10px 14px;
  color: var(--text-dim);
  font-size: 12.5px;
  position: relative;
  margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: color 0.12s;
}
.vm-tab::after {
  content: '';
  position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px;
  background: var(--accent); border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.vm-tab:hover { color: var(--text); }
.vm-tab.active { color: var(--text); }
.vm-tab.active::after { transform: scaleX(1); }
.vm-tab .ic { width: 14px; height: 14px; vertical-align: -2px; color: currentColor; }

.vm-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px 22px;
}
.card-wide { grid-column: 1 / -1; }

.card {
  background: linear-gradient(180deg, #23252e, #1f2129);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 4px 16px rgba(0,0,0,0.3);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255,255,255,0.018), transparent);
}
.card-head h2 {
  font-size: 12.5px; font-weight: 600; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.6px;
  display: inline-flex; align-items: center; gap: 8px;
}
.card-head h2 .ic { color: var(--accent); }
.card-actions {
  color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.6px;
  cursor: pointer; padding: 3px 8px; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 5px;
}
.card-actions:hover { background: var(--accent-bg); }
.card-sub { color: var(--text-mute); font-size: 11px; font-family: var(--mono); }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 6px 14px 12px;
}
.card-grid.two-col { grid-template-columns: 1fr 1fr; gap: 0 24px; }
.kv {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px;
  align-items: center;
}
.kv:last-child { border-bottom: 0; }
.k { color: var(--text-dim); font-size: 11.5px; letter-spacing: 0.2px; }
.v { color: var(--text); }
.v.mono { font-family: var(--mono); font-size: 12px; }
.v strong { color: var(--accent); font-weight: 600; }

.led {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--on); margin-right: 7px;
  box-shadow: var(--on-glow);
  vertical-align: 0;
}
.led.off { background: var(--off); box-shadow: none; }
.led.warn { background: var(--warn); box-shadow: 0 0 8px rgba(255,159,67,0.5); }

.reveal-btn {
  display: inline-flex; align-items: center;
  margin-left: 8px;
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--text-mute);
  vertical-align: 0;
  border: 1px solid transparent;
  background: transparent;
}
.reveal-btn:hover { color: var(--accent); background: var(--bg-card); border-color: var(--border-soft); }
.reveal-btn .ic { width: 13px; height: 13px; vertical-align: 0; }

.console-preview {
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px; align-items: stretch;
}
.console-screen {
  background: #0a0b0e;
  border: 1px solid var(--border-soft);
  padding: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: #b4d6a8;
  border-radius: 3px;
  min-height: 130px;
  line-height: 1.5;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: center;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid transparent;
  padding: 8px 18px; border-radius: 4px;
  font-weight: 600; letter-spacing: 0.6px; font-size: 11.5px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover {
  background: var(--accent-bg-2);
  text-decoration: none;
  transform: translateY(-1px);
}

.svc-launch {
  padding: 16px;
  display: flex; justify-content: center;
}

/* ---- vSphere style Capacity and Usage ---- */
.capacity { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 18px; }
.capacity-row { display: flex; flex-direction: column; gap: 5px; }
.cap-head, .cap-foot { display: flex; justify-content: space-between; align-items: baseline; }
.cap-label { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.2px; }
.cap-free { font-size: 12px; color: var(--text); font-family: var(--mono); }
.cap-foot { font-size: 11px; color: var(--text-dim); font-family: var(--mono); }
.cap-bar {
  height: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  overflow: hidden;
  margin: 2px 0;
}
.cap-fill {
  height: 100%;
  background: linear-gradient(180deg, #6cc1ff, #1aa3ff);
  border-right: 1px solid rgba(0,0,0,0.25);
  transition: width 0.9s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.usage { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.usage-row { display: grid; grid-template-columns: 110px 1fr 50px; gap: 12px; align-items: center; }
.usage-label { font-family: var(--mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.4px; }
.usage-bar { height: 8px; background: var(--bg-card); border-radius: 2px; overflow: hidden; }
.usage-fill { height: 100%; background: var(--accent); transition: width 0.8s cubic-bezier(0.22, 0.7, 0.3, 1); }
.usage-fill.warn { background: var(--warn); }
.usage-val { font-family: var(--mono); font-size: 11px; color: var(--text); text-align: right; }

.muted { color: var(--text-dim); padding: 12px 14px; font-size: 12.5px; }

.placeholder { padding: 18px; color: var(--text-mute); font-style: italic; }
.placeholder-page .vm-body { padding-bottom: 12px; }

/* ----- Skill tags ----- */
.skill-tags {
  padding: 14px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tag {
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  color: var(--text);
  border: 1px solid var(--border-soft);
  padding: 4px 10px;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2px;
  transition: border-color 0.15s, color 0.15s, transform 0.1s;
}
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ----- Bullet list inside cards ----- */
.bullet-list {
  padding: 12px 16px 16px 30px;
  display: flex; flex-direction: column; gap: 7px;
  list-style: none;
  position: relative;
}
.bullet-list li {
  font-size: 12.5px;
  color: var(--text);
  position: relative;
  line-height: 1.55;
}
.bullet-list li::before {
  content: "›";
  color: var(--accent);
  position: absolute;
  left: -18px;
  font-size: 16px;
  font-weight: 600;
  top: -3px;
}
.bullet-k {
  font-family: var(--mono);
  color: var(--accent);
  margin-right: 10px;
  font-size: 11.5px;
  font-weight: 500;
}

/* ----- Certifications ----- */
.cert-list {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #23252e, #1f2129);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.cert {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.12s;
}
.cert:last-child { border-bottom: 0; }
.cert:hover { background: var(--bg-card); }
.cert-icon {
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.cert-icon img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
  transition: transform 0.18s;
}
.cert:hover .cert-icon img { transform: scale(1.05); }
.cert-meta h3 {
  font-size: 13.5px; color: var(--text); margin-bottom: 4px; font-weight: 600; letter-spacing: 0.1px;
}
.cert-sub {
  font-size: 11.5px; color: var(--text-dim); font-family: var(--mono);
  margin-bottom: 7px;
  letter-spacing: 0.1px;
}
.cert-meta p {
  font-size: 12px; color: var(--text-dim); line-height: 1.55;
}

/* ========== TASKBAR ========== */
.taskbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--taskbar-h);
  background: var(--bg-darkest);
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 40;
  transition: height 0.18s ease;
}
body.taskbar-collapsed .taskbar { height: var(--taskbar-h-collapsed); }
body.taskbar-collapsed .taskbar-body { display: none; }

.taskbar-head {
  display: flex; align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-soft);
  height: 32px; flex-shrink: 0;
  gap: 10px;
}
.taskbar-toggle {
  width: 26px; height: 26px; border-radius: 4px;
  color: var(--text-dim);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.1s, color 0.1s, transform 0.15s;
}
.taskbar-toggle:hover { background: var(--bg-mid); color: var(--text); }
.taskbar-toggle .ic { width: 14px; height: 14px; vertical-align: 0; }
body.taskbar-collapsed .taskbar-toggle { transform: rotate(-90deg); }
.alarm-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 16px; padding: 0 5px;
  background: var(--warn); color: #1a1a1a;
  border-radius: 8px;
  font-size: 10px; font-weight: 700; font-family: var(--mono);
  margin-left: 6px;
  vertical-align: 1px;
}
.taskbar-tab { background: transparent; border: 0; }

.alarms-clear {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 10px; height: 22px;
  color: var(--text-dim);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.5px;
  border-radius: 3px;
  border: 1px solid var(--border-soft);
  background: transparent;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.alarms-clear:hover { color: var(--crit); border-color: var(--crit); background: rgba(239,83,80,0.08); }
/* display:inline-flex, UA'nın [hidden]{display:none} kuralını eziyor — geri kapat */
.alarms-clear[hidden] { display: none; }
.alarms-clear .ic { width: 11px; height: 11px; vertical-align: 0; }

.task-table td.status-info { color: #5dbeff; }
.task-table tr[data-cleared] td { background: rgba(93,190,255,0.04); }
.taskbar-tab {
  padding: 0 10px; height: 32px; line-height: 32px;
  color: var(--text-dim); font-size: 12px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  cursor: pointer;
}
.taskbar-tab.active { color: var(--text); border-bottom-color: var(--accent); }

.taskbar-body {
  flex: 1; overflow-y: auto;
}
.task-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.task-table thead th {
  text-align: left; padding: 6px 12px;
  color: var(--text-mute); font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-deep);
  position: sticky; top: 0;
}
.task-table tbody tr {
  border-bottom: 1px solid var(--border-soft);
}
.task-table tbody td {
  padding: 5px 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
}
.task-table td.status-ok    { color: var(--on); }
.task-table td.status-warn  { color: var(--warn); }
.task-table td.status-crit  { color: var(--crit); }

/* ========== TOAST (permission denied) ========== */
.toast-stack {
  position: fixed; top: calc(var(--topbar-h) + 12px); right: 16px;
  z-index: 80;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
  max-width: 360px;
}
.toast {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-left: 3px solid var(--crit);
  padding: 10px 12px 11px;
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  font-size: 12px;
  pointer-events: auto;
  animation: toast-in 0.22s ease;
  display: grid;
  grid-template-columns: 18px 1fr 16px;
  gap: 8px;
}
.toast.toast-out { animation: toast-out 0.22s ease forwards; }
.toast .t-icon { color: var(--crit); font-size: 14px; line-height: 1.2; }
.toast .t-body strong { color: var(--text); display: block; margin-bottom: 3px; font-weight: 600; }
.toast .t-body .t-msg { color: var(--text-dim); font-size: 11.5px; }
.toast .t-body .t-detail { color: var(--text-mute); font-size: 10.5px; font-family: var(--mono); margin-top: 3px; }
.toast .t-close { color: var(--text-mute); cursor: pointer; font-size: 12px; line-height: 1; text-align: right; }
.toast .t-close:hover { color: var(--text); }
@keyframes toast-in { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateX(20px); opacity: 0; } }

/* ========== TAB CONTENT ========== */
.tab-section {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tab-section .full { grid-column: 1 / -1; }
.tab-section table.tab-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.tab-section table.tab-table th,
.tab-section table.tab-table td {
  text-align: left; padding: 7px 12px;
  border-bottom: 1px solid var(--border-soft);
}
.tab-section table.tab-table th { color: var(--text-mute); font-weight: 500; background: var(--bg-deep); }
.tab-section table.tab-table td { font-family: var(--mono); font-size: 11.5px; }
.empty-state { padding: 28px 18px; color: var(--text-mute); text-align: center; font-style: italic; }

.spark {
  display: block; width: 100%; height: 60px;
  padding: 0 4px;
}
.spark-row {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}
.spark-label { color: var(--text-dim); font-family: var(--mono); font-size: 11px; }
.spark-val { color: var(--text); font-family: var(--mono); font-size: 11px; text-align: right; }

/* ========== NETWORKING VIEW ========== */
.networking-view {
  flex: 1;
  background: var(--bg-deep);
  overflow-y: auto;
  padding: 20px 28px 60px;
}
.nw-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 14px;
}
.nw-header h1 { font-size: 18px; font-weight: 500; }
.nw-header-actions { display: flex; gap: 8px; }
.nw-btn {
  padding: 6px 14px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  border-radius: 3px;
}
.nw-btn:hover { background: var(--accent-bg); }

.nw-switch {
  background: var(--bg-mid);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}
.nw-switch-title {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px;
}
.nw-switch-name { color: var(--accent); font-weight: 600; }
.nw-divider { color: var(--border); }
.nw-link {
  color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  padding: 2px 6px; border-radius: 3px;
}
.nw-link:hover { background: var(--accent-bg); }

.nw-diagram {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  padding: 24px 20px;
  align-items: stretch;
  min-height: 400px;
  position: relative;
}
.nw-col-vlans { display: flex; flex-direction: column; gap: 14px; }
.nw-col-brain { display: flex; align-items: flex-start; justify-content: flex-start; padding-top: 0; }

.nw-vlan-card, .nw-brain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  padding: 12px 14px;
  position: relative;
}
.nw-vlan-card:hover, .nw-brain-card:hover { border-color: var(--accent); }
.nw-vlan-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.nw-vlan-head .nw-icon { color: var(--accent); display: inline-flex; align-items: center; }
.nw-vlan-head .nw-name { font-weight: 600; color: var(--text); flex: 1; letter-spacing: 0.2px; }
.nw-vlan-head .nw-more {
  color: var(--text-mute); cursor: pointer;
  display: inline-flex; align-items: center; padding: 2px;
  border-radius: 3px;
}
.nw-vlan-head .nw-more:hover { color: var(--accent); background: var(--bg-mid); }
.nw-vlan-vid { font-size: 11.5px; color: var(--text-dim); font-family: var(--mono); margin-bottom: 4px; }
.nw-vlan-vms { font-size: 11.5px; color: var(--text-dim); cursor: pointer; }
.nw-vlan-vms:hover { color: var(--accent); }
.nw-vlan-vms .vms-toggle { display: inline-flex; align-items: center; gap: 4px; }
.nw-vlan-vms .vms-toggle .ic { transition: transform 0.15s; transform: rotate(-90deg); }
.nw-vlan-vms.expanded .vms-toggle .ic { transform: rotate(0); }
.nw-vlan-vms.expanded .nw-vlan-list { display: block; }
.nw-vlan-list { display: none; margin-top: 6px; padding-left: 18px; }
.nw-vlan-list .nw-vm {
  font-size: 11.5px; color: var(--text-dim); font-family: var(--mono);
  padding: 3px 0; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.nw-vlan-list .nw-vm:hover { color: var(--accent); }

/* port plug on right of VLAN cards (light up) */
.nw-vlan-card::after {
  content: '';
  position: absolute; right: -7px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px;
  background: var(--on);
  border: 2px solid var(--bg-mid);
  border-radius: 2px;
  z-index: 2;
}

/* spine SVG container */
.nw-spine {
  position: relative;
}
.nw-spine svg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.nw-brain-card {
  width: 100%;
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(26,163,255,0.10);
}
.nw-brain-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  font-weight: 600; color: var(--text);
}
.nw-brain-head .caret { color: var(--text-mute); display: inline-flex; align-items: center; }
.nw-brain-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 12.5px;
}
.nw-brain-row .nw-icon { color: var(--accent); display: inline-flex; align-items: center; }
.nw-brain-row .nw-name { font-weight: 600; color: var(--accent); }
.nw-brain-row .nw-speed { color: var(--text-dim); margin-left: auto; font-family: var(--mono); font-size: 11px; }
.nw-brain-sub {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  font-size: 11.5px; color: var(--text-dim); line-height: 1.55;
}
/* plug on left of brain card */
.nw-brain-card::before {
  content: '';
  position: absolute; left: -7px; top: 28px;
  width: 12px; height: 12px;
  background: var(--on);
  border: 2px solid var(--bg-mid);
  border-radius: 2px;
}

@media (max-width: 800px) {
  .nw-diagram { grid-template-columns: 1fr; gap: 16px; }
  .nw-spine { display: none; }
  .nw-vlan-card::after, .nw-brain-card::before { display: none; }
}

/* ========== ABOUT / HELP DIALOG ========== */
.about-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 11, 14, 0.55);
  z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.about-overlay[hidden] { display: none; }
.about-dialog {
  width: min(620px, 96vw);
  max-height: 90vh;
  background: linear-gradient(180deg, #23252e, #1b1c22);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.about-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-mid);
  flex-shrink: 0;
}
.about-header h2 {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
}
.about-header h2 .ic { color: var(--accent); }
.about-close {
  width: 28px; height: 26px; border-radius: 4px;
  color: var(--text-mute);
  display: inline-flex; align-items: center; justify-content: center;
}
.about-close .ic { width: 13px; height: 13px; vertical-align: 0; }
.about-close:hover { background: rgba(239,83,80,0.18); color: var(--crit); }

.about-body {
  padding: 18px 22px 22px;
  overflow-y: auto;
  flex: 1;
}
.about-section { margin-bottom: 18px; }
.about-section:last-child { margin-bottom: 4px; }
.about-section h3 {
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.7px;
  margin-bottom: 8px;
}
.about-section p {
  font-size: 12.5px; line-height: 1.6;
  color: var(--text-dim);
}
.about-section p strong, .about-section p em { color: var(--text); }
.about-section p em { font-style: normal; font-family: var(--mono); font-size: 12px; }
.about-section a { color: var(--accent); }
.about-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.about-list li {
  font-size: 12.5px; line-height: 1.55;
  color: var(--text-dim);
  padding-left: 16px; position: relative;
}
.about-list li::before {
  content: '›'; position: absolute; left: 0; top: -2px;
  color: var(--accent); font-size: 14px; font-weight: 600;
}
.about-list li strong { color: var(--text); }
.about-list li em { font-style: normal; font-family: var(--mono); color: var(--accent-2); }

.about-code {
  background: #0a0b0e;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 10px 12px;
  font-family: var(--mono); font-size: 11.5px;
  color: #b4d6a8; line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}
.about-kbd {
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
}
.about-kbd td {
  padding: 5px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
}
.about-kbd td:first-child { width: 38%; }
.about-kbd kbd {
  font-family: var(--mono); font-size: 11px;
  background: var(--bg-darkest);
  border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 3px;
  color: var(--text);
  margin-right: 2px;
}
.about-muted { color: var(--text-mute); font-size: 12px; font-style: italic; }

@media (max-width: 768px) {
  .about-overlay { padding: 12px; align-items: flex-start; padding-top: 56px; }
  .about-dialog { max-height: calc(100vh - 70px); }
  .about-header { padding: 10px 14px; }
  .about-header h2 { font-size: 13px; }
  .about-body { padding: 14px 16px 18px; }
  .about-section h3 { font-size: 10.5px; }
  .about-section p, .about-list li, .about-kbd td { font-size: 12px; }
  .about-code { font-size: 10.5px; }
}

/* ========== CONSOLE OVERLAY ========== */
.console-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 11, 14, 0.55);
  z-index: 100;
}
.console-overlay[hidden] { display: none; }
.console-window {
  position: absolute;
  top: 80px; left: 50%;
  transform: translateX(-50%);
  width: min(960px, 92vw); height: min(540px, 78vh);
  min-width: 480px; min-height: 280px;
  max-width: 100vw; max-height: calc(100vh - 80px);
  background: #0a0b0e;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  overflow: hidden;
}
.console-window.maximized {
  top: var(--topbar-h) !important;
  left: 0 !important;
  transform: none !important;
  width: 100vw !important;
  height: calc(100vh - var(--topbar-h) - var(--taskbar-h-collapsed)) !important;
  border-radius: 0;
}
.console-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px;
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim);
  cursor: move;
  user-select: none;
  flex-shrink: 0;
}
.console-title { font-family: var(--mono); }
.console-bar-actions { display: flex; gap: 2px; }
.console-bar-btn {
  width: 26px; height: 22px; border-radius: 3px;
  color: var(--text-dim);
  display: inline-flex; align-items: center; justify-content: center;
}
.console-bar-btn .ic { width: 13px; height: 13px; vertical-align: 0; }
.console-bar-btn:hover { background: var(--bg-card); color: var(--text); }
.console-close {
  width: 26px; height: 22px; border-radius: 3px;
  color: var(--text-dim);
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 4px;
}
.console-close .ic { width: 12px; height: 12px; vertical-align: 0; }
.console-close:hover { background: rgba(239, 83, 80, 0.18); color: var(--crit); }

.console-split {
  flex: 1; display: flex; min-height: 0; overflow: hidden;
}

.console-body {
  flex: 1; min-width: 0;
  overflow-y: auto; padding: 12px 14px;
  font-family: var(--mono); font-size: 12.5px;
  color: #b4d6a8;
  display: flex; flex-direction: column;
  background: #0a0b0e;
}
#consoleOut { white-space: pre-wrap; flex-shrink: 0; }
.console-input-row { display: flex; gap: 8px; align-items: center; padding-top: 4px; }
.prompt { color: var(--accent); white-space: nowrap; flex-shrink: 0; }
#consoleInput {
  flex: 1; background: transparent; border: 0; outline: none;
  color: #e8e9ea; font: inherit; caret-color: var(--accent);
}

/* ----- side reference panel ----- */
.console-panel {
  width: 280px; flex-shrink: 0;
  background: #0e0f14;
  border-left: 1px solid var(--border-soft);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: width 0.18s ease;
}
.console-window.panel-collapsed .console-panel { width: 0; border-left: 0; }
.panel-head {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 11px; color: var(--text-dim);
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-mid);
  flex-shrink: 0;
}
.panel-head > span { font-weight: 600; letter-spacing: 0.4px; }
#panelFilter {
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: 3px; padding: 4px 8px;
  color: var(--text); font: inherit; font-size: 11px;
  outline: none;
}
#panelFilter:focus { border-color: var(--accent); }
.panel-body {
  flex: 1; overflow-y: auto;
  font-size: 11.5px;
  font-family: var(--mono);
  padding: 6px 0;
}
.panel-cat {
  padding: 8px 12px 4px;
  color: var(--text-mute);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.panel-cmd {
  display: grid;
  grid-template-columns: 1fr;
  padding: 4px 12px;
  cursor: pointer;
  border-left: 2px solid transparent;
}
.panel-cmd:hover {
  background: rgba(26,163,255,0.08);
  border-left-color: var(--accent);
}
.panel-cmd .pc-syntax {
  color: #b4d6a8;
  font-size: 11.5px;
}
.panel-cmd .pc-desc {
  color: var(--text-dim);
  font-size: 10.5px;
  font-family: var(--sans);
  margin-top: 1px;
}

/* ----- resize handle ----- */
.console-resize {
  position: absolute;
  right: 0; bottom: 0;
  width: 14px; height: 14px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 50%, var(--text-mute) 50%, var(--text-mute) 60%, transparent 60%, transparent 70%, var(--text-mute) 70%, var(--text-mute) 80%, transparent 80%);
}

@media (max-width: 700px) {
  .console-window { width: 96vw; height: 80vh; left: 2vw; transform: none; }
  .console-panel { width: 0; border-left: 0; }
  .console-window:not(.panel-collapsed) .console-panel { width: 220px; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  :root { --sidebar-w: 240px; }
  .vm-body { grid-template-columns: 1fr; }
  .card-grid.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar-center { display: none; }
  .sidebar { width: 200px; }
}

/* ========================================================================== */
/* ========== MOBILE / TOUCH ADAPTATION (added, no desktop changes) ========== */
/* ========================================================================== */

/* sidebar backdrop — invisible tap-target, only used to close drawer on tap-outside */
/* topbar'ı kaplamaz (hamburger her zaman erişilebilir) */
.sidebar-backdrop {
  position: fixed;
  top: var(--topbar-h);
  right: 0; bottom: 0; left: 0;
  background: transparent;
  opacity: 0; pointer-events: none;
  z-index: 60;
}
.sidebar-backdrop.open {
  opacity: 1; pointer-events: auto;
}

/* ---- ≤ 1024px (narrow tablet) ---- */
@media (max-width: 1024px) {
  .search-hint { display: none; }
}

/* ---- ≤ 768px (phone / portrait tablet) ---- */
@media (max-width: 768px) {
  /* iOS zoom önleme: tüm input/textarea minimum 16px */
  input, textarea, select { font-size: 16px !important; }

  :root { --topbar-h: 40px; --taskbar-h: 180px; --taskbar-h-collapsed: 28px; }

  /* topbar — sıkıştır + her zaman en üstte (drawer açıkken bile tıklanabilir) */
  .topbar { padding: 0 6px; font-size: 12.5px; z-index: 90; }
  .hamburger { position: relative; z-index: 2; }
  .topbar-left { gap: 4px; }
  .topbar-right { gap: 2px; }
  .searchbox input { padding: 4px 6px 4px 0; }
  .searchbox { border-radius: 4px; }
  .search-icon { padding: 0 5px 0 7px; }
  .search-icon .ic { width: 14px; height: 14px; vertical-align: 0; }
  .hamburger { width: 28px; height: 28px; }
  .hamburger .ic { width: 15px; height: 15px; vertical-align: 0; }
  .topbar-right .icon-btn[title="Refresh"] { display: none; }
  .topbar-right .icon-btn[title="Help"] .ic { width: 16px; height: 16px; }
  .user-chip { padding: 2px; }
  .user-chip .user-name,
  .user-chip .user-caret { display: none; }
  .user-avatar { width: 24px; height: 24px; font-size: 11px; }
  .brand-name { font-size: 13px; font-weight: 600; }

  /* search box mobilde görünür kalır (640px gizleme kuralını ezer) */
  .topbar-center { display: flex !important; padding: 0 6px; }
  .searchbox { max-width: none; }

  /* sidebar → off-canvas drawer */
  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    bottom: 0;
    left: 0;
    width: min(85vw, 320px);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 70;
    border-right: 1px solid var(--border);
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 6px 0 28px rgba(0,0,0,0.55);
  }

  /* layout — sidebar artık overlay, content tam genişlik */
  .layout {
    left: 0;
  }
  .content,
  .networking-view {
    width: 100%;
  }

  /* tree touch hedefleri */
  .tree { font-size: 12.5px; padding: 4px 0; }
  .tree-node .tw { padding-top: 7px; padding-bottom: 7px; }
  .tree-node.vm > .tw { padding-left: 12px; }
  .tree-node .icon .ic { width: 14px; height: 14px; }
  .sidebar-tabs { padding: 4px 6px; }
  .sidebar-tabs .tab-icon { width: 36px; height: 32px; }
  .sidebar-tabs .tab-icon .ic { width: 14px; height: 14px; }

  /* taskbar header sıkı */
  .taskbar-head { height: 28px; gap: 6px; padding: 0 8px; }
  .taskbar-toggle { width: 22px; height: 22px; }
  .taskbar-tab { padding: 0 6px; height: 28px; line-height: 28px; font-size: 11px; }
  .taskbar-body { font-size: 11px; }
  .task-table thead th,
  .task-table tbody td { padding: 4px 8px; font-size: 10.5px; }

  /* VM header */
  .vm-title { padding: 9px 12px 5px; gap: 7px; }
  .vm-title h1 { font-size: 12.5px; letter-spacing: 0.3px; }
  .vm-icon .ic { width: 16px; height: 16px; }
  .vm-actions { gap: 0; }
  .action-btn { width: 28px; height: 24px; }
  .action-btn .ic { width: 13px; height: 13px; }
  .action-tx { padding: 4px 8px; font-size: 10.5px; margin-left: 2px; }
  .vm-tabs { padding: 0 8px; }
  .vm-tab { padding: 7px 10px; font-size: 11.5px; gap: 5px; }
  .vm-tab .ic { width: 13px; height: 13px; vertical-align: -2px; }
  .vm-body { padding: 10px; gap: 10px; }
  .vm-header { box-shadow: 0 1px 0 rgba(0,0,0,0.4); }
  .card-head { padding: 8px 12px; }
  .card-head h2 { font-size: 11.5px; letter-spacing: 0.5px; }
  .card-head h2 .ic { width: 13px; height: 13px; }
  .card-actions { font-size: 10.5px; padding: 2px 6px; }
  .muted { padding: 10px 12px; font-size: 12px; }

  /* kv — sıkı ama hâlâ iki sütun */
  .kv { grid-template-columns: 120px 1fr; padding: 5px 0; font-size: 11.5px; }
  .k { font-size: 10.5px; }
  .v { font-size: 12px; }
  .v.mono { font-size: 11.5px; }

  /* skill tags daha küçük */
  .skill-tags { padding: 10px 12px; gap: 5px; }
  .tag { padding: 3px 8px; font-size: 10.5px; }

  /* bullet list */
  .bullet-list { padding: 8px 12px 12px 26px; gap: 5px; }
  .bullet-list li { font-size: 11.5px; }

  /* cert kartlar mobilde küçük badge */
  .cert { grid-template-columns: 50px 1fr; gap: 12px; padding: 10px 12px; }
  .cert-icon { width: 50px; height: 50px; }
  .cert-meta h3 { font-size: 12px; }
  .cert-sub { font-size: 10.5px; margin-bottom: 5px; }
  .cert-meta p { font-size: 11px; }

  /* networking view — başlıklar mobil */
  .networking-view { padding: 14px 14px 40px; }
  .nw-header h1 { font-size: 17px; }
  .nw-header-actions .nw-btn { padding: 5px 10px; font-size: 10.5px; }
  .nw-switch-title { flex-wrap: wrap; gap: 6px; padding: 10px 12px; }

  /* web console — full-screen on mobile */
  .console-window {
    top: var(--topbar-h) !important;
    left: 0 !important;
    transform: none !important;
    width: 100vw !important;
    height: calc(100vh - var(--topbar-h)) !important;
    min-width: 0; min-height: 0;
    border-radius: 0;
    border: 0;
  }
  .console-bar { cursor: default; user-select: none; }
  .console-bar-actions #consoleMaximize { display: none; }
  .console-resize { display: none; }
  /* console panel mobilde overlay slide-over olur — toggle ile açılır */
  .console-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(85%, 320px) !important;
    z-index: 5;
    box-shadow: -6px 0 18px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 0.2s;
    border-left: 1px solid var(--border) !important;
  }
  .console-window:not(.panel-collapsed) .console-panel { transform: translateX(0); }
  #consoleInput { font-size: 16px; }
  #consoleOut { font-size: 13px; }
  .prompt { font-size: 13px; }

  /* search results — daha az yer */
  .search-results { max-height: 70vh; }

  /* toast — alt değil üst, ama geniş */
  .toast-stack { left: 8px; right: 8px; max-width: none; top: calc(var(--topbar-h) + 8px); }
  .toast { font-size: 12.5px; }
}

/* ---- ≤ 480px (small phone) ---- */
@media (max-width: 480px) {
  /* kv tek sütun */
  .kv { grid-template-columns: 1fr; padding: 8px 0 6px; gap: 2px; }
  .kv .k {
    color: var(--text-mute); font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
  }
  .kv .v { font-size: 13px; }

  /* card padding daha sıkı */
  .card-grid { padding: 6px 12px 10px; }
  .card-grid.two-col { gap: 0; }
  .vm-body { padding: 10px; gap: 10px; }
  .card-head { padding: 10px 12px; }
  .card-head h2 { font-size: 11.5px; }

  /* VM action buttons */
  .vm-actions { gap: 0; }
  .action-btn { width: 36px; height: 32px; }
  .action-tx { padding: 5px 8px; }
  .action-tx span,
  .action-tx { font-size: 0; }
  .action-tx .ic { width: 16px; height: 16px; }

  /* tabs */
  .vm-tab { padding: 9px 10px; font-size: 11.5px; }

  /* cert mobile sıkı */
  .cert { padding: 10px 12px; gap: 10px; }
  .cert-icon { width: 48px; height: 48px; }
  .cert-meta h3 { font-size: 12px; line-height: 1.35; }
  .cert-sub { font-size: 10.5px; margin-bottom: 5px; }
  .cert-meta p { font-size: 11px; }

  /* search dropdown — sub gizle, label tam genişlik */
  .search-row { grid-template-columns: 22px 1fr; padding: 9px 12px; }
  .search-row .sr-sub { display: none; }
  .search-footer { font-size: 10px; }

  /* topbar daha kısa */
  .brand-name { font-size: 13px; }
  .brand-name .mut { display: none; }
  .user-avatar { width: 24px; height: 24px; font-size: 11px; }

  /* tags wrap nicely */
  .skill-tags { padding: 10px 12px; }

  /* networking view smaller */
  .nw-header h1 { font-size: 15px; }
  .nw-header-actions { gap: 4px; }
  .nw-header-actions .nw-btn { padding: 4px 8px; font-size: 10px; }

  /* taskbar header sıkı */
  .taskbar-head { gap: 6px; padding: 0 8px; }
  .taskbar-tab { padding: 0 6px; font-size: 11.5px; }

  /* hide some less-critical task table columns */
  .task-table thead th:nth-child(4),
  .task-table tbody td:nth-child(4) { display: none; }

  /* certifications-vm head action shrink */
  .cert-list .card-head { padding: 10px 12px; }

  /* bullet list daha az padding */
  .bullet-list { padding: 10px 14px 14px 26px; }
}

/* ========================================================================== */
/* ========== MICRO-ANIMATIONS & POLISH ===================================== */
/* ========================================================================== */

/* klavye focus görünürlüğü */
:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.tree .tw:focus-visible { outline-offset: -2px; }

/* ---- kart reveal — JS .will-reveal ekler (JS yoksa kartlar normal görünür) ---- */
.will-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.will-reveal.revealed { opacity: 1; transform: none; }
.will-reveal .tag {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.will-reveal.revealed .tag { opacity: 1; transform: none; }

/* ---- tree: children yumuşak girsin, satır highlight geçişli ---- */
.tree-node:not(.collapsed) > .tree-children { animation: tree-in 0.18s ease; }
@keyframes tree-in { from { opacity: 0; transform: translateY(-3px); } }
.tree-node .tw { transition: background 0.12s, border-color 0.12s; }

/* ---- search dropdown pop ---- */
.search-results:not([hidden]) {
  animation: pop-in 0.16s cubic-bezier(0.22, 0.7, 0.3, 1);
  transform-origin: top center;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-5px) scale(0.985); } }

/* ---- console & about pencere girişi (scale: bağımsız property — transform'u ezmez) ---- */
.console-overlay:not([hidden]),
.about-overlay:not([hidden]) { animation: fade-in 0.18s ease; }
.console-overlay:not([hidden]) .console-window,
.about-overlay:not([hidden]) .about-dialog { animation: win-in 0.24s cubic-bezier(0.22, 0.7, 0.3, 1); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes win-in { from { opacity: 0; scale: 0.965; } }

/* ---- toast zaten animasyonlu; taskbar'a yeni düşen satır yumuşak girsin ---- */
#taskTbody tr { animation: task-in 0.3s ease; }
@keyframes task-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---- LED nabız — yalnızca yeşil (on) LED'ler ---- */
.led:not(.off):not(.warn) { animation: led-pulse 2.8s ease-in-out infinite; }
@keyframes led-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(78,194,122,0.35); }
  50%      { box-shadow: 0 0 10px rgba(78,194,122,0.8); }
}

/* ---- view geçişleri (VMs ↔ Networking) ---- */
.content:not([hidden]),
.networking-view:not([hidden]) { animation: fade-in 0.2s ease; }

/* ---- networking: VLAN kartları kademeli, spine hatları çizilerek gelsin ---- */
.nw-vlan-card, .nw-brain-card { animation: rise-in 0.45s cubic-bezier(0.22, 0.7, 0.3, 1) both; }
.nw-vlan-card:nth-child(1) { animation-delay: 0.03s; }
.nw-vlan-card:nth-child(2) { animation-delay: 0.08s; }
.nw-vlan-card:nth-child(3) { animation-delay: 0.13s; }
.nw-vlan-card:nth-child(4) { animation-delay: 0.18s; }
.nw-vlan-card:nth-child(5) { animation-delay: 0.23s; }
.nw-vlan-card:nth-child(6) { animation-delay: 0.28s; }
.nw-brain-card { animation-delay: 0.3s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
.nw-spine svg.draw line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: line-draw 0.6s ease-out 0.35s forwards;
}
@keyframes line-draw { to { stroke-dashoffset: 0; } }

/* ---- boot ekranı: CRT scanline + hafif fosfor parlaması ---- */
.boot-overlay::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 3px);
}
.boot-log { text-shadow: 0 0 8px rgba(120,200,140,0.14); }

/* ---- console ekranlarına hafif CRT glow ---- */
.console-body, .console-screen { text-shadow: 0 0 6px rgba(180,214,168,0.16); }

/* ---- butonlara basma hissi ---- */
.action-btn:active, .icon-btn:active, .tab-icon:active,
.btn-primary:active, .nw-btn:active { transform: translateY(1px) scale(0.97); }

/* ---- reduced motion: hepsini kapat ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .content { scroll-behavior: auto; }
}
