/* ==========================================================================
   Home Infrastructure Diagram — Modern Design System
   Premium dark theme with glassmorphism, animated backgrounds, and smooth interactions
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Background — deep space with subtle gradient */
  --bg-base: #06080f;
  --bg-surface: #0d1117;
  --bg-elevated: #161b22;
  --bg-glass: rgba(13, 17, 23, 0.75);
  --bg-glass-light: rgba(22, 27, 34, 0.85);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-medium: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(88, 166, 255, 0.25);

  /* Text */
  --text-primary: #f0f6fc;
  --text-secondary: #a5b4c8;
  --text-muted: #6e7d8e;
  --text-bright: #ffffff;

  /* Accent palette — vibrant, modern */
  --accent-blue: #58a6ff;
  --accent-blue-soft: rgba(88, 166, 255, 0.15);
  --accent-green: #3fb950;
  --accent-green-soft: rgba(63, 185, 80, 0.15);
  --accent-orange: #f0883e;
  --accent-orange-soft: rgba(240, 136, 62, 0.15);
  --accent-purple: #bc8cff;
  --accent-purple-soft: rgba(188, 140, 255, 0.15);
  --accent-pink: #f78166;
  --accent-pink-soft: rgba(247, 129, 102, 0.15);
  --accent-cyan: #56d4dd;
  --accent-cyan-soft: rgba(86, 212, 221, 0.15);
  --accent-gold: #d29922;
  --accent-gold-soft: rgba(210, 153, 34, 0.15);

  /* Category colors — richer gradients */
  --cat-public: #f0883e;
  --cat-public-grad: linear-gradient(135deg, #f0883e, #db6d28);
  --cat-lan: #3fb950;
  --cat-lan-grad: linear-gradient(135deg, #3fb950, #2ea043);
  --cat-proxy: #58a6ff;
  --cat-proxy-grad: linear-gradient(135deg, #58a6ff, #1f6feb);
  --cat-ai: #bc8cff;
  --cat-ai-grad: linear-gradient(135deg, #bc8cff, #8957e5);
  --cat-model: #f78166;
  --cat-model-grad: linear-gradient(135deg, #f78166, #da3633);
  --cat-net: #8b949e;
  --cat-net-grad: linear-gradient(135deg, #8b949e, #6e7681);

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow-blue: 0 0 24px rgba(88, 166, 255, 0.25);
  --shadow-glow-green: 0 0 24px rgba(63, 185, 80, 0.25);
  --shadow-glow-purple: 0 0 24px rgba(188, 140, 255, 0.25);
  --shadow-glow-orange: 0 0 24px rgba(240, 136, 62, 0.25);

  /* Layout */
  --header-height: 68px;
  --footer-height: 52px;
  --detail-width: 440px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --spacing-xs: 6px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 32px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.15, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 350ms;
  --duration-xslow: 600ms;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --font-size-xs: 0.7rem;
  --font-size-sm: 0.8rem;
  --font-size-md: 0.9rem;
  --font-size-lg: 1.05rem;
  --font-size-xl: 1.25rem;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-base);
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------------------
   Animated Background Mesh
   -------------------------------------------------------------------------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-mesh::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(88, 166, 255, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 70%, rgba(188, 140, 255, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(63, 185, 80, 0.04) 0%, transparent 70%);
  animation: meshFloat 30s ease-in-out infinite;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-2%, 1%) rotate(0.5deg); }
  50% { transform: translate(1%, -1%) rotate(-0.3deg); }
  75% { transform: translate(-1%, 2%) rotate(0.2deg); }
}

/* Subtle dot grid overlay */
.bg-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.025) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
header {
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 200;
  position: relative;
}

/* Subtle top glow line */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-purple), transparent);
  opacity: 0.4;
}

.header-left h1 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-bright) 0%, var(--accent-blue) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.header-left .subtitle {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   View Tabs — Modern Pill Style
   -------------------------------------------------------------------------- */
.view-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.view-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.view-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
  border-radius: inherit;
}

.view-tab:hover {
  color: var(--text-bright);
}

.view-tab:hover::before {
  opacity: 0.1;
}

.view-tab.active {
  color: var(--text-bright);
  box-shadow: var(--shadow-glow-blue);
}

.view-tab.active::before {
  opacity: 1;
}

.view-tab span {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Main Layout
   -------------------------------------------------------------------------- */
main {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   Canvas Panel (Diagram)
   -------------------------------------------------------------------------- */
.canvas-panel {
  flex: 1;
  position: relative;
  background: transparent;
  overflow: hidden;
  min-width: 0;
}

.cytoscape-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  cursor: grab;
  touch-action: none; /* Enable pinch-to-zoom on touch devices */
}

.cytoscape-container:active {
  cursor: grabbing;
}

/* Particle overlay canvas for edge animations */
.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Controls — Floating Glass Buttons
   -------------------------------------------------------------------------- */
.controls {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  z-index: 100;
}

.zoom-controls {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-glass-light);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  box-shadow: var(--shadow-md);
}

.ctrl-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.ctrl-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.2), rgba(188, 140, 255, 0.2));
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out-expo);
  border-radius: inherit;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-medium);
  color: var(--text-bright);
  transform: scale(1.05);
}

.ctrl-btn:hover::before {
  opacity: 1;
}

.ctrl-btn:active {
  transform: scale(0.95);
  background: rgba(88, 166, 255, 0.2);
  color: var(--accent-blue);
}

.ctrl-btn span {
  position: relative;
  z-index: 1;
}

.zoom-indicator {
  background: var(--bg-glass-light);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-align: center;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Canvas Hint
   -------------------------------------------------------------------------- */
.canvas-hint {
  position: absolute;
  bottom: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-glass-light);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 10px 20px;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  z-index: 100;
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--duration-slow) var(--ease-out-expo);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.canvas-hint .hint-icon {
  font-size: 0.9rem;
  opacity: 0.6;
}

.canvas-hint.hidden {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Detail Panel — Modern Glass Sidebar
   -------------------------------------------------------------------------- */
.detail-panel {
  width: var(--detail-width);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-left: 1px solid var(--border-subtle);
  padding: var(--spacing-lg) var(--spacing-md);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex-shrink: 0;
  z-index: 50;
  position: relative;
}

/* Subtle left glow line */
.detail-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--accent-blue), var(--accent-purple), transparent);
  opacity: 0.3;
}

.detail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
}

.placeholder-icon {
  font-size: 3.5rem;
  opacity: 0.15;
  animation: placeholderPulse 3s ease-in-out infinite;
}

@keyframes placeholderPulse {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.05); opacity: 0.25; }
}

.detail-placeholder p {
  font-size: var(--font-size-md);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 280px;
}

/* Detail content */
.detail-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-subtle);
}

.detail-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.detail-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-bright);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.tag:hover {
  transform: scale(1.05);
}

.tag-public {
  background: var(--accent-orange-soft);
  color: var(--accent-orange);
  border: 1px solid rgba(240, 136, 62, 0.25);
}

.tag-lan {
  background: var(--accent-green-soft);
  color: var(--accent-green);
  border: 1px solid rgba(63, 185, 80, 0.25);
}

.tag-proxy {
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
  border: 1px solid rgba(88, 166, 255, 0.25);
}

.tag-ai {
  background: var(--accent-purple-soft);
  color: var(--accent-purple);
  border: 1px solid rgba(188, 140, 255, 0.25);
}

.tag-tls {
  background: var(--accent-cyan-soft);
  color: var(--accent-cyan);
  border: 1px solid rgba(86, 212, 221, 0.25);
}

.tag-model {
  background: var(--accent-pink-soft);
  color: var(--accent-pink);
  border: 1px solid rgba(247, 129, 102, 0.25);
}

.tag-net {
  background: rgba(139, 148, 158, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(139, 148, 158, 0.25);
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.detail-section h3 {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-section h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  opacity: 0.5;
}

.detail-section p {
  font-size: var(--font-size-md);
  line-height: 1.7;
  color: var(--text-secondary);
}

.detail-section code {
  display: inline-block;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  font-family: var(--font-mono);
  color: var(--accent-purple);
  font-weight: 500;
}

/* Connection list in detail panel */
.connection-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.connection-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.connection-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border-medium);
  color: var(--text-bright);
  transform: translateX(4px);
}

.connection-item .conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  flex-shrink: 0;
}

.connection-item .conn-arrow {
  color: var(--text-muted);
  font-size: 0.8em;
}

/* --------------------------------------------------------------------------
   Legend (Footer)
   -------------------------------------------------------------------------- */
.legend {
  height: var(--footer-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border-subtle);
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-shrink: 0;
  z-index: 200;
  overflow-x: auto;
  position: relative;
}

.legend::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-purple), transparent);
  opacity: 0.3;
}

.legend-title {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.legend-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-bright);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  flex-shrink: 0;
}

.dot-public { background: var(--cat-public); color: var(--cat-public); }
.dot-lan { background: var(--cat-lan); color: var(--cat-lan); }
.dot-proxy { background: var(--cat-proxy); color: var(--cat-proxy); }
.dot-ai { background: var(--cat-ai); color: var(--cat-ai); }
.dot-model { background: var(--cat-model); color: var(--cat-model); }
.dot-net { background: var(--cat-net); color: var(--cat-net); }

/* --------------------------------------------------------------------------
   Scrollbar Styling
   -------------------------------------------------------------------------- */
.detail-panel::-webkit-scrollbar {
  width: 6px;
}

.detail-panel::-webkit-scrollbar-track {
  background: transparent;
}

.detail-panel::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 3px;
}

.detail-panel::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.legend::-webkit-scrollbar {
  height: 4px;
}

.legend::-webkit-scrollbar-track {
  background: transparent;
}

.legend::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --detail-width: 380px;
    --header-height: 60px;
  }
}

@media (max-width: 768px) {
  :root {
    --detail-width: 100%;
    --footer-height: 48px;
  }

  main {
    flex-direction: column;
  }

  .detail-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    max-height: 45vh;
    padding: var(--spacing-md);
  }

  .detail-panel::before {
    display: none;
  }

  .detail-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-purple), transparent);
    opacity: 0.3;
  }

  .canvas-hint {
    font-size: 0.65rem;
    padding: 8px 14px;
    bottom: var(--spacing-sm);
  }

  .controls {
    top: var(--spacing-sm);
    right: var(--spacing-sm);
  }

  .ctrl-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .view-tabs {
    padding: 2px;
    gap: 1px;
  }

  .view-tab {
    padding: 6px 14px;
    font-size: 0.72rem;
  }

  .header-left h1 {
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.detail-panel > *:not(.detail-placeholder) {
  animation: fadeInUp var(--duration-slow) var(--ease-out-expo) both;
}

.detail-panel > *:not(.detail-placeholder):nth-child(1) { animation-delay: 0ms; }
.detail-panel > *:not(.detail-placeholder):nth-child(2) { animation-delay: 50ms; }
.detail-panel > *:not(.detail-placeholder):nth-child(3) { animation-delay: 100ms; }
.detail-panel > *:not(.detail-placeholder):nth-child(4) { animation-delay: 150ms; }
.detail-panel > *:not(.detail-placeholder):nth-child(5) { animation-delay: 200ms; }
.detail-panel > *:not(.detail-placeholder):nth-child(6) { animation-delay: 250ms; }

/* --------------------------------------------------------------------------
   Loading State
   -------------------------------------------------------------------------- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  z-index: 1000;
  transition: opacity var(--duration-slow) var(--ease-out-expo);
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-blue);
  border-right-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
