/* ==========================================================================
   ELUNO MISSION CONTROL — OPERATIONS MANAGER STYLESHEET
   Aesthetic: Bespoke Obsidian Monolith / Linear-Class Restraint & Precision
   ========================================================================== */

:root {
  /* Color Foundation */
  --bg: #07090e;
  --bg-surface: #0c1017;
  --bg-card: rgba(16, 21, 32, 0.72);
  --bg-card-hover: rgba(22, 29, 45, 0.88);
  --bg-card-active: rgba(28, 38, 60, 0.95);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-glow: rgba(0, 240, 255, 0.4);
  --border-focus: #00f0ff;
  
  --text: #f1f5fd;
  --text-muted: #8493a8;
  --text-dim: #4b586e;

  /* Tactical Semantic Accents */
  --cyan: #00f0ff;
  --emerald: #10b981;
  --purple: #a855f7;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --sky: #38bdf8;
  --blue: #3b82f6;
  --indigo: #6366f1;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* Shadow & Glow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.25);
  --glow-purple: 0 0 20px rgba(168, 85, 247, 0.25);

  /* Dynamic Cursor Spotlight */
  --mouse-x: 50%;
  --mouse-y: 50%;
}

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

html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.035) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.035) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}

/* Ambient dynamic cursor spotlight */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(650px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.035), transparent 70%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   TOP TELEMETRY COCKPIT
   ========================================================================== */
.cockpit-header {
  background: rgba(9, 12, 19, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.25rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.cockpit-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-badge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(14, 20, 32, 0.95), rgba(8, 11, 18, 0.95));
  border: 1px solid rgba(0, 240, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.brand-badge:hover {
  transform: scale(1.05);
  border-color: var(--cyan);
}

.brand-pulse-beacon {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: beaconPulse 2.5s infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px var(--cyan); }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--cyan); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px var(--cyan); }
}

.brand-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.brand-title h1 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.oci-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.brand-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Pills */
.stream-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.stream-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: streamPulse 2s infinite;
}

@keyframes streamPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.stream-pill.disconnected {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--rose);
}

.stream-pill.disconnected .stream-dot {
  background: var(--rose);
  box-shadow: 0 0 8px var(--rose);
  animation: none;
}

.mail-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.mail-pill.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--amber);
}

.health-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-optimal {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.15);
}

.status-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-critical {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

/* Action Button Group */
.action-btn-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-action-btn {
  background: rgba(20, 26, 39, 0.8);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.38rem 0.7rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.icon-action-btn:hover {
  background: rgba(30, 40, 60, 0.95);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.icon-action-btn:active {
  transform: scale(0.97);
}

.icon-action-btn.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.4);
}

.key-hint {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
}

/* ==========================================================================
   TELEMETRY HUD
   ========================================================================== */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hud-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.hud-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hud-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hud-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hud-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Sparklines */
.sparkline-wrapper {
  height: 38px;
  width: 100%;
  margin-top: 0.2rem;
  overflow: hidden;
  position: relative;
}

.sparkline-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sparkline-area {
  fill: url(#cpuGrad, rgba(0, 240, 255, 0.12));
  transition: d 0.3s ease;
}

.sparkline-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: d 0.3s ease;
}

.net-area {
  fill: rgba(168, 85, 247, 0.12);
}

.net-line {
  stroke: var(--purple);
}

/* Progress Track for RAM & Disk */
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  margin-top: 0.4rem;
}

.progress-bar {
  height: 100%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-used {
  background: linear-gradient(90deg, var(--cyan), var(--sky));
}

.bar-cached {
  background: rgba(168, 85, 247, 0.6);
}

.bar-disk {
  background: linear-gradient(90deg, var(--emerald), #34d399);
}

/* ==========================================================================
   NAVIGATION & TOOLBAR
   ========================================================================== */
.nav-toolbar-container {
  padding: 0.9rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.nav-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tab-pill {
  background: rgba(16, 21, 32, 0.65);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pill:hover {
  background: rgba(26, 34, 52, 0.85);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.tab-pill.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

.tab-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-omnibar {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-dim);
  font-size: 1rem;
  pointer-events: none;
}

.search-omnibar input {
  width: 100%;
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.45rem 2.4rem 0.45rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-omnibar input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
  background: rgba(18, 24, 38, 0.95);
}

.shortcut-badge {
  position: absolute;
  right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.clear-search-btn {
  position: absolute;
  right: 0.6rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.2rem;
}

/* ==========================================================================
   MAIN CONTENT & SERVICE CARDS GRID
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 0 1.5rem 3rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.content-container {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.category-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.category-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.category-accent-bar {
  width: 3px;
  height: 16px;
  border-radius: 2px;
}

.category-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.category-count {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.category-collapse-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-section.collapsed .category-collapse-icon {
  transform: rotate(-90deg);
}

.category-section.collapsed .cards-grid {
  display: none;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.1rem;
}

/* Interactive Project Card with Spotlight Glow */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.25rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.22s ease, 
              background 0.22s ease, 
              box-shadow 0.22s ease;
}

/* Dynamic Spotlight Glow overlay on Card */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%),
    rgba(0, 240, 255, 0.08),
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 240, 255, 0.12);
}

.project-card:focus-visible,
.project-card.focused {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-color: var(--cyan);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card-url-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.card-shortcut-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
}

/* Status Indicator Dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.up {
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.status-dot.degraded {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.status-dot.down {
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
  animation: downBlink 1.5s infinite;
}

@keyframes downBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.status-dot.checking {
  background: var(--text-dim);
  animation: checkingPulse 1.2s infinite ease-in-out;
}

@keyframes checkingPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.6rem;
}

/* Telemetry Chips Row */
.card-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.stat-chip .val {
  color: var(--text);
  font-weight: 600;
}

/* Latency colors */
.latency-fast .val { color: var(--emerald); }
.latency-slow .val { color: var(--amber); }
.latency-down .val { color: var(--rose); }

.version-update-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.version-update-chip:hover {
  background: rgba(168, 85, 247, 0.25);
}

.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.incident-pill {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.card-action-btns {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-card-action {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-restart {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-restart:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

.btn-logs {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--cyan);
}

.btn-logs:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--cyan);
}

.btn-launch {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--sky);
}

.btn-launch:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--sky);
}

/* ==========================================================================
   HIGH-DENSITY DEVOPS TABLE VIEW
   ========================================================================== */
.table-view-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.ops-table th {
  background: rgba(14, 18, 28, 0.95);
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  white-space: nowrap;
}

.ops-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  white-space: nowrap;
  vertical-align: middle;
}

.ops-table tr {
  transition: background 0.15s ease;
  cursor: pointer;
}

.ops-table tr:hover {
  background: var(--bg-card-hover);
}

.ops-table tr.focused {
  background: rgba(0, 240, 255, 0.08);
  outline: 1px solid var(--cyan);
}

/* ==========================================================================
   SERVICE LOGS SLIDE-OUT DRAWER
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
}

.log-drawer {
  width: 720px;
  max-width: 95vw;
  height: 100vh;
  background: #06090e;
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 1.1rem 1.4rem;
  background: #0a0e17;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.drawer-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.drawer-service-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.drawer-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawer-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  transition: color 0.15s ease;
}

.drawer-close-btn:hover {
  color: var(--rose);
}

.drawer-filter-bar {
  padding: 0.6rem 1.4rem;
  background: #080b12;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.drawer-filter-bar input {
  flex: 1;
  background: rgba(14, 18, 28, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text);
  outline: none;
}

.drawer-filter-bar input:focus {
  border-color: var(--cyan);
}

.drawer-line-count {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.drawer-terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.4rem;
  background: #030508;
  display: flex;
  flex-direction: column;
}

.terminal-screen {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #a7f3d0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ==========================================================================
   MODALS (Processes, Command Palette, Shortcuts, Auth)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: #0d121c;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 520px;
  max-width: 100%;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.1);
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-large {
  width: 820px;
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header h2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}

.modal-subtitle {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.modal-header-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem;
}

.modal-close-btn:hover {
  color: var(--text);
}

/* Processes Table in Modal */
.processes-table-wrap {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.processes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  text-align: left;
}

.processes-table th {
  background: #111724;
  padding: 0.6rem 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

.processes-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.processes-table tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Command Palette */
.palette-modal {
  width: 640px;
  max-width: 95vw;
  background: #0d121c;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 240, 255, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.palette-input-wrap {
  padding: 1rem 1.25rem;
  background: #111724;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.palette-search-icon {
  font-size: 1.1rem;
  color: var(--cyan);
}

.palette-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
}

.palette-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.palette-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.palette-item {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.palette-item:hover,
.palette-item.active {
  background: rgba(0, 240, 255, 0.1);
  border-left: 3px solid var(--cyan);
  padding-left: 0.75rem;
}

.palette-item-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.palette-item-icon {
  font-size: 0.9rem;
}

.palette-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.palette-item-cat {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.palette-item-shortcut {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.palette-footer {
  padding: 0.6rem 1.25rem;
  background: #080b12;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.palette-footer kbd {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--text-muted);
}

/* Shortcuts Modal Details */
.shortcuts-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shortcut-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.shortcut-row kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--cyan);
  min-width: 24px;
  text-align: center;
}

/* Forms & Inputs */
.modal-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-group input {
  width: 100%;
  background: rgba(14, 18, 28, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
}

.input-group input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.auth-error-msg {
  font-size: 0.78rem;
  color: var(--rose);
  padding: 0.4rem 0.6rem;
  background: rgba(244, 63, 94, 0.1);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.restart-target-box {
  padding: 0.65rem 0.9rem;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-sm);
  color: #fb7185;
  font-size: 0.82rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
}

.btn-submit {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border: none;
  color: #03060a;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
}

.btn-danger {
  background: var(--rose);
  border: none;
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  background: #111724;
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  animation: toastSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cockpit-header {
    padding: 1rem;
  }

  .brand-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .brand-right {
    width: 100%;
    justify-content: space-between;
  }

  .action-btn-group {
    flex-wrap: wrap;
  }

  .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .nav-toolbar-container {
    padding: 0.75rem 1rem;
  }

  .search-omnibar {
    width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .log-drawer {
    width: 100vw;
    max-width: 100vw;
  }
}
