:root {
  --bg: #080b10;
  --bg-elevated: #0f1319;
  --bg-card: #141922;
  --bg-card-hover: #1a2030;
  --border: #232b3a;
  --border-light: #2d3748;
  --text: #eef2f7;
  --text-muted: #8b95a8;
  --text-dim: #5c6578;
  --accent: #3b82f6;
  --accent-glow: #3b82f633;
  --purple: #8b5cf6;
  --green: #22c55e;
  --green-dim: #22c55e22;
  --yellow: #eab308;
  --yellow-dim: #eab30822;
  --red: #ef4444;
  --red-dim: #ef444422;
  --radius: 14px;
  --radius-sm: 10px;
  --sidebar-w: 252px;
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, #3b82f612, transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, #8b5cf60a, transparent);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.layout { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 20;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 22px 18px;
  border-bottom: 1px solid var(--border);
}

.brand-title { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }

.nav { flex: 1; padding: 14px 10px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 3px;
  transition: background 0.15s, color 0.15s;
}

.nav-icon { opacity: 0.5; font-size: 0.75rem; width: 16px; text-align: center; }
.nav-item:hover { background: var(--bg-card); color: var(--text); }
.nav-item.active {
  background: linear-gradient(135deg, var(--accent-glow), #8b5cf622);
  color: var(--text);
  border: 1px solid #3b82f644;
}
.nav-item.active .nav-icon { opacity: 1; color: var(--accent); }

.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--border);
}

.refresh-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.pulse {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.5s ease infinite;
}
.pulse.err { background: var(--red); box-shadow: 0 0 8px var(--red); animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.btn-refresh {
  width: 100%;
  padding: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s;
}
.btn-refresh:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ── Main ── */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 28px 36px 56px;
  max-width: 1480px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.topbar h1 { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.03em; }
.subtitle { color: var(--text-muted); font-size: 0.88rem; margin-top: 6px; }

.health-ring { position: relative; width: 96px; height: 96px; }
.health-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 7; }
.ring-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 0;
  transition: stroke 0.5s, stroke-dashoffset 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.health-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.health-value span { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.health-value small { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.section { display: none; animation: fadeIn 0.25s ease; }
.section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.section-head { margin: 28px 0 14px; }
.section-head h2 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.section-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

/* ── Stat cards ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.15s, transform 0.15s;
}
.stat-card:hover { border-color: var(--border-light); transform: translateY(-1px); }
.stat-card.ok .stat-icon { color: var(--green); }
.stat-card.warn .stat-value { color: var(--yellow); }
.stat-card.err .stat-value { color: var(--red); }

.stat-icon { width: 36px; height: 36px; color: var(--accent); opacity: 0.85; flex-shrink: 0; }
.stat-icon svg { width: 100%; height: 100%; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.stat-value { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 2px; }

/* ── Tool cards (platform logos) ── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.tool-card:hover {
  border-color: #3b82f666;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.tool-card:hover::before { opacity: 1; }
.tool-card:hover .tool-arrow { opacity: 1; transform: translate(2px, -2px); }

.tool-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 8px;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.tool-logo svg { width: 100%; height: 100%; display: block; }

.tool-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.tool-name { font-weight: 600; font-size: 0.92rem; }
.tool-url { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tool-arrow {
  font-size: 1rem;
  color: var(--accent);
  opacity: 0;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

/* ── Node cards ── */
.node-grid { display: flex; flex-direction: column; gap: 10px; }

.node-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  border-left: 3px solid var(--green);
}
.node-card.err { border-left-color: var(--red); }

.node-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.node-icon { width: 28px; height: 28px; opacity: 0.9; }
.node-icon svg { width: 100%; height: 100%; }
.node-name { font-weight: 600; font-size: 0.92rem; }
.node-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.node-specs { display: flex; gap: 12px; margin-top: 10px; font-size: 0.78rem; color: var(--text-dim); }

/* ── Namespace mini cards ── */
.ns-card-grid { display: flex; flex-direction: column; gap: 8px; }

.ns-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.ns-mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ns-mini-name { font-weight: 600; font-size: 0.82rem; font-family: var(--mono); }
.ns-mini-count { font-size: 0.72rem; color: var(--text-muted); }

.ns-mini-bar {
  height: 5px;
  background: var(--bg-elevated);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.ns-mini-fill { height: 100%; background: linear-gradient(90deg, var(--green), #16a34a); border-radius: 99px; transition: width 0.5s; }

.ns-mini-stats { display: flex; gap: 10px; font-size: 0.72rem; color: var(--text-muted); }
.dot::before { content: "● "; }
.dot.ok { color: var(--green); }
.dot.warn { color: var(--yellow); }
.dot.err { color: var(--red); }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge.ok { background: var(--green-dim); color: var(--green); }
.badge.warn { background: var(--yellow-dim); color: var(--yellow); }
.badge.err { background: var(--red-dim); color: var(--red); }
.badge.muted { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Toolbar ── */
.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.search {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  padding: 11px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.toggle-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.toggle-chip:has(input:checked) { border-color: var(--accent); color: var(--text); background: var(--accent-glow); }
.toggle-chip input { accent-color: var(--accent); }

/* ── Service groups ── */
.ns-group { margin-bottom: 32px; }

.ns-group-head { margin-bottom: 14px; }
.ns-group-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.ns-badge {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--accent-glow), #8b5cf622);
  border: 1px solid #3b82f644;
  border-radius: 8px;
  color: var(--accent);
}

.ns-group-meta { font-size: 0.8rem; color: var(--text-muted); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

/* ── Service card ── */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); }
.service-card.unhealthy { border-color: #ef444455; }

.service-card-head { display: flex; align-items: flex-start; gap: 12px; }

.service-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.service-status-dot.ok { background: var(--green); color: var(--green); }
.service-status-dot.err { background: var(--red); color: var(--red); }

.service-title-block { flex: 1; min-width: 0; }
.service-name { font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; word-break: break-word; }
.service-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.btn-open {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid #3b82f655;
  border-radius: 9px;
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.15s;
}
.btn-open:hover { background: var(--accent); color: #fff; }

.service-links { display: flex; flex-wrap: wrap; gap: 6px; }

.link-chip {
  font-size: 0.72rem;
  font-family: var(--mono);
  padding: 5px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-chip.primary {
  color: var(--accent);
  border-color: #3b82f644;
  background: var(--accent-glow);
}
a.link-chip:hover { border-color: var(--accent); color: var(--accent); }

.service-replicas { display: flex; align-items: center; gap: 10px; }
.replica-bar {
  flex: 1;
  height: 5px;
  background: var(--bg-elevated);
  border-radius: 99px;
  overflow: hidden;
}
.replica-fill { height: 100%; border-radius: 99px; transition: width 0.4s; }
.replica-fill.ok { background: var(--green); }
.replica-fill.err { background: var(--red); }
.replica-text { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }

/* ── Pods under service ── */
.pod-section {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}

.pod-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
}
.pod-toggle:hover { color: var(--text); }
.pod-toggle-label { font-weight: 600; color: var(--text); }
.pod-summary-chips { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.chevron { transition: transform 0.2s; font-size: 0.7rem; opacity: 0.5; }
.pod-toggle.open .chevron { transform: rotate(180deg); }

.mini-chip {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.mini-chip.ok { background: var(--green-dim); color: var(--green); }
.mini-chip.warn { background: var(--yellow-dim); color: var(--yellow); }
.mini-chip.err { background: var(--red-dim); color: var(--red); }
.mini-chip.muted { background: var(--bg-elevated); color: var(--text-dim); }

.pod-list {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 2px;
  max-height: 240px;
  overflow-y: auto;
}
.pod-list.open { display: flex; }

.pod-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.78rem;
}
.pod-chip.has-issue { border-color: #ef444444; background: #ef44440a; }

.pod-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.pod-chip.ok .pod-dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.pod-chip.warn .pod-dot { background: var(--yellow); }
.pod-chip.err .pod-dot { background: var(--red); }
.pod-chip.muted .pod-dot { background: var(--text-dim); }

.pod-chip-body { flex: 1; min-width: 0; }
.pod-chip-name { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; display: block; word-break: break-all; }
.pod-chip-meta { font-size: 0.68rem; color: var(--text-muted); display: block; margin-top: 2px; }
.pod-chip-issue { font-size: 0.68rem; color: var(--red); display: block; margin-top: 3px; font-weight: 500; }
.pod-empty { font-size: 0.78rem; color: var(--text-dim); font-style: italic; padding: 8px 4px; }

/* ── Ingress cards ── */
.ingress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.ingress-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}
.ingress-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ingress-card-top { display: flex; justify-content: space-between; align-items: center; }
.ingress-globe { font-size: 1.4rem; }
.ingress-host { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; word-break: break-all; }
.ingress-meta { font-size: 0.78rem; color: var(--text-muted); }
.ingress-paths { display: flex; flex-wrap: wrap; gap: 5px; }
.path-tag {
  font-size: 0.68rem;
  font-family: var(--mono);
  padding: 4px 8px;
  background: var(--bg-elevated);
  border-radius: 6px;
  color: var(--text-muted);
}
.ingress-open { font-size: 0.82rem; color: var(--accent); font-weight: 500; margin-top: auto; }

/* ── Deploy cards ── */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.deploy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.deploy-card.unhealthy { border-color: #ef444444; }

.deploy-card-head { display: flex; align-items: center; gap: 10px; text-align: left; margin-bottom: 14px; }
.deploy-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.deploy-status.ok { background: var(--green); box-shadow: 0 0 6px var(--green); }
.deploy-status.err { background: var(--red); }
.deploy-name { font-weight: 600; font-size: 0.88rem; }
.deploy-ns { font-size: 0.72rem; color: var(--text-muted); font-family: var(--mono); }

.deploy-replica-ring {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
}
.deploy-replica-ring svg { width: 100%; height: 100%; }
.deploy-replica-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.deploy-label { font-size: 0.75rem; color: var(--text-muted); }

/* ── Event cards ── */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.event-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.event-ns { font-family: var(--mono); font-size: 0.75rem; color: var(--text-muted); }
.event-msg { font-size: 0.85rem; color: var(--text); line-height: 1.45; }
.event-time { font-size: 0.72rem; color: var(--text-dim); margin-top: 10px; display: block; }

/* Ops / sunucu izleme */
.node-metrics { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.metric-row {
  display: grid;
  grid-template-columns: 36px 1fr 40px;
  gap: 8px;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.metric-row.hot { color: var(--yellow); }
.metric-bar {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.metric-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}
.metric-fill.ram { background: var(--purple); }
.metric-row.hot .metric-fill.ram { background: var(--yellow); }

.ops-timeline { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ops-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
}
.ops-item.sev-warning { border-left-color: var(--yellow); }
.ops-item.sev-critical { border-left-color: var(--red); }
.ops-item.sev-info { border-left-color: var(--green); }
.ops-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.ops-item-head time { margin-left: auto; font-size: 0.72rem; color: var(--text-dim); }
.ops-title { font-size: 0.92rem; font-weight: 600; }
.ops-detail { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }
.ops-meta { font-size: 0.72rem; color: var(--text-dim); margin-top: 8px; }

.empty-state {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ── ays-data connections ── */
.conn-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: -0.5rem 0 1.25rem;
}
.conn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.conn-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.conn-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.conn-name { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.conn-meta { font-size: 0.72rem; color: var(--text-dim); margin-top: 4px; font-family: var(--mono); }
.btn-copy-all {
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-copy-all:hover { color: var(--text); border-color: var(--accent); }
.conn-list { list-style: none; }
.conn-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.conn-row:last-child { border-bottom: none; }
.conn-row:hover { background: var(--bg-card-hover); }
.conn-label { font-size: 0.72rem; color: var(--text-dim); font-weight: 500; }
.conn-value {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conn-copy-icon { color: var(--text-dim); font-size: 0.85rem; opacity: 0.6; }
.conn-row:hover .conn-copy-icon { opacity: 1; color: var(--accent); }

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .sidebar { width: 68px; }
  .sidebar .brand-title, .sidebar .brand-sub, .nav-item span:not(.nav-icon), .refresh-info { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
  .main { margin-left: 68px; padding: 20px 16px 40px; }
  .grid-2 { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
}

/* Scrollbar */
.pod-list::-webkit-scrollbar { width: 4px; }
.pod-list::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }
