/* =====================================================================
   Infoway Stream Hub — Dashboard Styles (Dark Glassmorphic)
   ===================================================================== */

:root {
  --bg-base: #080c14;
  --bg-surface: #0d1320;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --bg-sidebar: #0b1019;
  --border: rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.04);

  --accent: #3b82f6;
  --accent-glow: rgba(59,130,246,0.18);
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-yellow: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;

  --text-primary: #f0f4ff;
  --text-secondary: rgba(240,244,255,0.55);
  --text-muted: rgba(240,244,255,0.3);

  --sidebar-w: 220px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.2s ease;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── Utility ─────────────────────────────── */
.hidden { display: none !important; }
.mt-8 { margin-top: 12px; }

/* ─── Login Screen ────────────────────────── */
.login-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-base);
  z-index: 100;
}

.login-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridFade 4s ease infinite alternate;
}

@keyframes gridFade { from { opacity: 0.3; } to { opacity: 0.8; } }

.login-card {
  position: relative;
  width: 100%; max-width: 400px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 80px rgba(59,130,246,0.12), 0 24px 60px rgba(0,0,0,0.5);
}

.login-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 6px;
}

.logo-orb {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #60a5fa, #1d4ed8);
  box-shadow: 0 0 20px rgba(59,130,246,0.5);
  flex-shrink: 0;
}

.logo-orb.small { width: 24px; height: 24px; box-shadow: 0 0 10px rgba(59,130,246,0.4); }

.logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; }

.login-subtitle { color: var(--text-secondary); font-size: 13px; margin-bottom: 28px; }

.login-form { display: flex; flex-direction: column; gap: 16px; }

.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

input[type="text"], input[type="password"] {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.login-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fca5a5;
  font-size: 13px;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}

.btn-primary:hover { filter: brightness(1.15); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(59,130,246,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-full { width: 100%; }

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.btn-danger:hover { filter: brightness(1.15); transform: translateY(-1px); }

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1a1a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.btn-warning:hover { filter: brightness(1.1); }

.btn-loader {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Dashboard Layout ────────────────────── */
.dashboard {
  display: flex; height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 20px 0;
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px 20px;
  font-size: 16px; font-weight: 700;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: var(--transition);
}

.nav-item:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-item.active { color: var(--accent); background: rgba(59,130,246,0.12); }
.nav-item svg { opacity: 0.7; flex-shrink: 0; }
.nav-item.active svg { opacity: 1; }

.sidebar-status {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-secondary);
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.connected { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); animation: pulse-green 2s infinite; }
.status-dot.disconnected { background: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); }
.status-dot.connecting { background: var(--accent-yellow); animation: pulse-yellow 1s infinite; }

@keyframes pulse-green { 0%,100%{box-shadow:0 0 6px #10b981;} 50%{box-shadow:0 0 14px #10b981;} }
@keyframes pulse-yellow { 0%,100%{opacity:1;} 50%{opacity:0.5;} }

.sidebar-logout {
  margin: 8px 10px 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-logout:hover { border-color: var(--accent-red); color: var(--accent-red); }

/* ─── Main Content ────────────────────────── */
.main-content {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column;
}

.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(13,19,32,0.7);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}

.top-bar h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.breadcrumb { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.top-bar-right { display: flex; align-items: center; gap: 10px; }

.uptime-badge, .tps-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}
.tps-badge { color: var(--accent-cyan); border-color: rgba(6,182,212,0.25); }

/* ─── Panels ──────────────────────────────── */
.panel { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.panel.hidden { display: none; }

/* ─── KPI Row ─────────────────────────────── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
  transition: var(--transition);
}
.kpi-card:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.12); transform: translateY(-1px); }

.kpi-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.icon-stream { background: rgba(59,130,246,0.15); color: var(--accent); }
.icon-ticks { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.icon-latency { background: rgba(139,92,246,0.15); color: var(--accent-purple); }
.icon-symbols { background: rgba(6,182,212,0.15); color: var(--accent-cyan); }
.icon-errors { background: rgba(239,68,68,0.15); color: var(--accent-red); }

.icon-stream::after { content: "📡"; }
.icon-ticks::after { content: "⚡"; }
.icon-latency::after { content: "⏱"; }
.icon-symbols::after { content: "📊"; }
.icon-errors::after { content: "⚠️"; }

.kpi-body { display: flex; flex-direction: column; min-width: 0; }
.kpi-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-value { font-size: 20px; font-weight: 700; font-family: 'JetBrains Mono', monospace; letter-spacing: -0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Cards ───────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-title { font-size: 14px; font-weight: 600; }

.card-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 20px;
}

.live-pulse {
  background: rgba(16,185,129,0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16,185,129,0.3);
  animation: live-blink 2s infinite;
}
@keyframes live-blink { 0%,100%{opacity:1;} 50%{opacity:0.5;} }

.card-desc { padding: 12px 20px 0; color: var(--text-secondary); font-size: 13px; }

/* ─── Chart ───────────────────────────────── */
.chart-card canvas { padding: 16px 20px 20px; display: block; width: 100% !important; }

/* ─── Ticker Feed ─────────────────────────── */
.ticker-feed {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 0;
}
.ticker-feed::-webkit-scrollbar { width: 4px; }
.ticker-feed::-webkit-scrollbar-track { background: transparent; }
.ticker-feed::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.ticker-row {
  display: grid;
  grid-template-columns: 90px 100px 100px 100px 1fr 100px;
  align-items: center;
  padding: 8px 20px;
  border-bottom: 1px solid var(--border-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  animation: fadeSlideIn 0.25s ease;
  transition: background 0.2s;
}
.ticker-row:hover { background: var(--bg-card-hover); }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.ticker-symbol { font-weight: 700; color: var(--text-primary); }
.ticker-bid { color: #34d399; }
.ticker-ask { color: #f87171; }
.ticker-last { color: var(--text-secondary); }
.ticker-change.up { color: var(--accent-green); }
.ticker-change.down { color: var(--accent-red); }
.ticker-change.flat { color: var(--text-muted); }
.ticker-time { color: var(--text-muted); text-align: right; }

/* Toggle */
.toggle-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; color: var(--text-secondary); }
.toggle-label input { display: none; }
.toggle-switch { width: 32px; height: 18px; border-radius: 9px; background: var(--border); position: relative; transition: var(--transition); }
.toggle-switch::after { content:''; position:absolute; left:2px; top:2px; width:14px; height:14px; border-radius:50%; background:white; transition:var(--transition); }
.toggle-label input:checked + .toggle-switch { background: var(--accent); }
.toggle-label input:checked + .toggle-switch::after { left: 16px; }

/* ─── Symbol Table ────────────────────────── */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  padding: 10px 16px; text-align: left; font-size: 11px;
  font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.data-table td { padding: 10px 16px; border-bottom: 1px solid var(--border-light); }
.data-table tr:hover td { background: var(--bg-card-hover); }
.data-table tr:last-child td { border-bottom: none; }

.mono { font-family: 'JetBrains Mono', monospace; }

.badge { padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-green { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.badge-yellow { background: rgba(245,158,11,0.15); color: var(--accent-yellow); }
.badge-red { background: rgba(239,68,68,0.15); color: var(--accent-red); }

.search-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  width: 200px;
  transition: var(--transition);
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ─── Redis Grid ──────────────────────────── */
.redis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }

.redis-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.redis-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.redis-card-title { font-size: 13px; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.redis-metric { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border-light); font-size: 13px; }
.redis-metric:last-child { border-bottom: none; }
.redis-metric-label { color: var(--text-secondary); }
.redis-metric-value { font-family: 'JetBrains Mono', monospace; }

/* ─── Manage Panel ────────────────────────── */
.manage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.code-input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  resize: vertical;
  outline: none;
  margin-top: 12px;
  transition: var(--transition);
}
.code-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.result-msg { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-top: 8px; }
.result-msg.success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); color: #6ee7b7; }
.result-msg.error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }

.symbol-chip-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 20px; }
.symbol-chip {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
}

.action-list { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; }

/* ─── Projects Panel ──────────────────────── */
.projects-header-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}

.btn-icon-sm:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Banner Notice ────────────────────────── */
.banner-notice {
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(139,92,246,0.1));
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 20px;
}
.banner-icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.banner-text strong { font-size: 15px; color: var(--text-primary); display: block; margin-bottom: 4px; }
.banner-text p { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

/* ─── Clients Panel Layout ─────────────────── */
.clients-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .clients-top-grid { grid-template-columns: 1fr; }
}

.client-form { display: flex; flex-direction: column; }

.endpoint-details { display: flex; flex-direction: column; gap: 14px; }
.endpoint-item { display: flex; flex-direction: column; gap: 4px; }
.endpoint-label { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; color: var(--text-muted); }
.endpoint-val-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.endpoint-url { font-size: 12px; color: #93c5fd; overflow-x: auto; white-space: nowrap; }
.endpoint-subtext { font-size: 12px; color: var(--text-secondary); margin: 0; }
.endpoint-subtext code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 11px; }

.btn-copy-sm {
  background: rgba(255,255,255,0.08); border: 1px solid var(--border); color: var(--text-primary);
  border-radius: 4px; padding: 4px 10px; font-size: 11px; font-weight: 600; cursor: pointer;
  transition: var(--transition); flex-shrink: 0; user-select: none;
}
.btn-copy-sm:hover { background: var(--accent); color: white; border-color: var(--accent); }
.btn-copy-sm.copied {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 12px rgba(16,185,129,0.5);
}

.hub-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(13, 19, 32, 0.95);
  color: #f0f4ff;
  border: 1px solid rgba(59,130,246,0.5);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 15px rgba(59,130,246,0.3);
  backdrop-filter: blur(10px);
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.hub-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-count-badge {
  background: rgba(59,130,246,0.15); color: #93c5fd; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px; margin-left: 8px;
}

.badge-status {
  display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 700;
}
.badge-status.active { background: rgba(16,185,129,0.15); color: var(--accent-green); border: 1px solid rgba(16,185,129,0.3); }
.badge-status.revoked { background: rgba(239,68,68,0.15); color: var(--accent-red); border: 1px solid rgba(239,68,68,0.3); }

.key-cell {
  display: flex; align-items: center; gap: 6px;
}
.key-val { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #cbd5e1; }

.btn-table-action {
  background: none; border: 1px solid var(--border); border-radius: 4px; color: var(--text-secondary);
  padding: 4px 8px; font-size: 11px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-table-action:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.btn-table-action.btn-toggle-active { color: var(--accent-yellow); border-color: rgba(245,158,11,0.3); }
.btn-table-action.btn-toggle-active:hover { background: rgba(245,158,11,0.15); }
.btn-table-action.btn-delete { color: var(--accent-red); border-color: rgba(239,68,68,0.3); }
.btn-table-action.btn-delete:hover { background: rgba(239,68,68,0.15); }

/* ─── Setup Guide Layout ───────────────────── */
.guide-container { display: flex; flex-direction: column; }
.guide-header h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.guide-header p { color: var(--text-secondary); font-size: 13px; margin-bottom: 20px; }

.arch-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 20px;
}
@media (max-width: 800px) {
  .arch-box { flex-direction: column; text-align: center; }
  .arch-arrow { transform: rotate(90deg); }
}
.arch-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.arch-col.main { flex: 1.2; }
.arch-title { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; color: var(--text-muted); }
.arch-badge {
  display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700;
  width: fit-content;
}
.arch-badge.safe { background: rgba(16,185,129,0.15); color: var(--accent-green); border: 1px solid rgba(16,185,129,0.3); }
.arch-badge.active { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.arch-badge.client { background: rgba(139,92,246,0.15); color: #c084fc; border: 1px solid rgba(139,92,246,0.3); }
.arch-col p { font-size: 12px; color: var(--text-secondary); margin: 0; line-height: 1.4; }
.arch-arrow { font-size: 20px; color: var(--text-muted); }

.guide-tabs {
  display: flex; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 16px;
}
.guide-tab-btn {
  background: none; border: none; color: var(--text-secondary); font-family: inherit; font-size: 13px;
  font-weight: 600; padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
}
.guide-tab-btn:hover { color: var(--text-primary); background: var(--bg-card); }
.guide-tab-btn.active { color: white; background: var(--accent); }

.code-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border); border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 10px 16px; font-size: 12px; font-weight: 600; color: var(--text-secondary);
}
.code-block {
  background: #060910; border: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 16px 20px; overflow-x: auto; margin: 0;
}
.code-block code {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6; color: #e2e8f0;
}

