/* ==========================================================================
   World-Tree OS — Ultra-Premium Design System v2.0
   Dark Glassmorphism SaaS Control Panel
   ========================================================================== */

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

:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition-fast: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-mid: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.4s ease;
}

/* ==========================================================================
   THEME 1: VORTEX DARK — Deep Indigo / Violet (Default)
   ========================================================================== */
body.theme-cyberpunk, body:not([class*="theme-"]) {
  --bg-main:    #05060f;
  --bg-sidebar: rgba(8, 10, 22, 0.85);
  --bg-panel:   rgba(12, 16, 35, 0.55);
  --bg-card:    rgba(18, 22, 48, 0.4);
  --bg-input:   rgba(6, 8, 20, 0.9);

  --accent-color:     #818cf8;
  --accent-rgb:       129, 140, 248;
  --accent-secondary: #c084fc;
  --accent-glow:      rgba(129, 140, 248, 0.18);
  --accent-gradient:  linear-gradient(135deg, #6366f1, #a855f7, #ec4899);

  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-danger:  #f87171;

  --text-primary:   #eef2ff;
  --text-secondary: #a5b4fc;
  --text-muted:     #4c5382;
  --border-color:   rgba(99, 102, 241, 0.1);
  --border-active:  rgba(129, 140, 248, 0.4);

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Fira Code', monospace;
  --panel-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8);
  --glass-blur:   blur(32px);
}

/* ==========================================================================
   THEME 2: GLACIER ICE — Vivid Sky Blue / Cyan
   ========================================================================== */
body.theme-synthwave {
  --bg-main:    #020b18;
  --bg-sidebar: rgba(4, 14, 30, 0.88);
  --bg-panel:   rgba(6, 22, 44, 0.55);
  --bg-card:    rgba(10, 32, 60, 0.4);
  --bg-input:   rgba(3, 10, 22, 0.92);

  --accent-color:     #38bdf8;
  --accent-rgb:       56, 189, 248;
  --accent-secondary: #67e8f9;
  --accent-glow:      rgba(56, 189, 248, 0.18);
  --accent-gradient:  linear-gradient(135deg, #0ea5e9, #22d3ee, #6ee7f7);

  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-danger:  #f87171;

  --text-primary:   #e0f2fe;
  --text-secondary: #7dd3fc;
  --text-muted:     #1e4060;
  --border-color:   rgba(56, 189, 248, 0.1);
  --border-active:  rgba(56, 189, 248, 0.4);

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Fira Code', monospace;
  --panel-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.85);
  --glass-blur:   blur(32px);
}

/* ==========================================================================
   THEME 3: GHOST SLATE — Stealth Silver / White
   ========================================================================== */
body.theme-ghost {
  --bg-main:    #090d16;
  --bg-sidebar: #0f131c;
  --bg-panel:   #181c25;
  --bg-card:    #1e232d;
  --bg-input:   #090d16;

  --accent-color:     #cbd5e1;
  --accent-rgb:       203, 213, 225;
  --accent-secondary: #f1f5f9;
  --accent-glow:      rgba(203, 213, 225, 0.04);
  --accent-gradient:  linear-gradient(135deg, #94a3b8, #cbd5e1, #f1f5f9);

  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger:  #ef4444;

  --text-primary:   #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted:     #64748b;
  --border-color:   #272d3d;
  --border-active:  #3e475e;

  --font-display: 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Fira Code', monospace;
  --panel-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  --glass-blur:   none;
}

/* ==========================================================================
   THEME 4: ELYSIUM EMERALD — Neon Green / Mint
   ========================================================================== */
body.theme-biohazard {
  --bg-main:    #020c08;
  --bg-sidebar: rgba(4, 14, 10, 0.88);
  --bg-panel:   rgba(6, 22, 16, 0.55);
  --bg-card:    rgba(10, 32, 22, 0.4);
  --bg-input:   rgba(3, 10, 6, 0.92);

  --accent-color:     #34d399;
  --accent-rgb:       52, 211, 153;
  --accent-secondary: #6ee7b7;
  --accent-glow:      rgba(52, 211, 153, 0.18);
  --accent-gradient:  linear-gradient(135deg, #10b981, #34d399, #86efac);

  --color-success: #10b981;
  --color-warning: #fbbf24;
  --color-danger:  #f87171;

  --text-primary:   #d1fae5;
  --text-secondary: #6ee7b7;
  --text-muted:     #1d4a38;
  --border-color:   rgba(52, 211, 153, 0.1);
  --border-active:  rgba(52, 211, 153, 0.4);

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Fira Code', monospace;
  --panel-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8);
  --glass-blur:   blur(32px);
}

/* ==========================================================================
   THEME 5: ROSE GOLD — Blush Pink / Coral
   ========================================================================== */
body.theme-solaris {
  --bg-main:    #0f080c;
  --bg-sidebar: rgba(20, 10, 15, 0.88);
  --bg-panel:   rgba(30, 14, 22, 0.55);
  --bg-card:    rgba(44, 18, 30, 0.4);
  --bg-input:   rgba(12, 6, 10, 0.92);

  --accent-color:     #fb7185;
  --accent-rgb:       251, 113, 133;
  --accent-secondary: #f9a8d4;
  --accent-glow:      rgba(251, 113, 133, 0.18);
  --accent-gradient:  linear-gradient(135deg, #f43f5e, #fb7185, #fda4af);

  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-danger:  #f43f5e;

  --text-primary:   #fff1f2;
  --text-secondary: #fda4af;
  --text-muted:     #5c2535;
  --border-color:   rgba(251, 113, 133, 0.1);
  --border-active:  rgba(251, 113, 133, 0.4);

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Fira Code', monospace;
  --panel-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8);
  --glass-blur:   blur(32px);
}

/* ==========================================================================
   BACKGROUND: ANIMATED GRID & CANVAS
   ========================================================================== */

.cyber-grid {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(var(--accent-rgb), 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 100%, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%),
    linear-gradient(rgba(255,255,255,0.005) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.005) 1px, transparent 1px),
    var(--bg-main);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px, 100%;
}

/* Scanning line effect on body */
.cyber-grid::before {
  content: '';
  position: fixed;
  top: -100%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.4), transparent);
  animation: scanLine 8s linear infinite;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes scanLine {
  0%   { top: -2px; }
  100% { top: 100vh; }
}

.particle-background {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
  pointer-events: none;
  opacity: 0.6;
}

/* ==========================================================================
   GLOW ORBS — Ambient depth effects
   ========================================================================== */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.12;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 {
  width: 400px; height: 400px;
  background: var(--accent-color);
  top: -120px; left: -80px;
  animation-delay: 0s;
}
.orb-2 {
  width: 300px; height: 300px;
  background: var(--accent-secondary);
  bottom: -80px; right: 10%;
  animation-delay: -4s;
}
.orb-3 {
  width: 200px; height: 200px;
  background: var(--accent-color);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shinyText 6s linear infinite;
}

@keyframes shinyText {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.text-cyan      { color: var(--accent-color) !important; }
.text-purple    { color: var(--accent-secondary) !important; }
.text-green     { color: var(--color-success) !important; }
.text-yellow    { color: var(--color-warning) !important; }
.text-red       { color: var(--color-danger) !important; }

.text-neon-cyan {
  color: var(--accent-color) !important;
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6), 0 0 24px rgba(var(--accent-rgb), 0.3);
}
.text-glow       { text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5); }
.text-glow-heavy { text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.8), 0 0 40px rgba(var(--accent-rgb), 0.4); }

/* ==========================================================================
   GLASS PANEL — Radial spotlight cursor effect
   ========================================================================== */

.glass-panel, .metric-card, .server-card, .task-card {
  position: relative;
  overflow: hidden;
}

.glass-panel::after,
.metric-card::after,
.server-card::after,
.task-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
    rgba(var(--accent-rgb), 0.1),
    transparent 80%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glass-panel:hover::after,
.metric-card:hover::after,
.server-card:hover::after,
.task-card:hover::after {
  opacity: 1;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.07), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: inherit;
}
.btn:hover::before { opacity: 1; }

.btn-lg { padding: 13px 28px; font-size: 0.95rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 14px; font-size: 0.78rem; border-radius: var(--radius-sm); }

.btn-primary {
  background: var(--accent-color);
  color: #fff;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  background: #1e2a3a;
  color: #3d5068;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.btn-cyber {
  background: rgba(255,255,255,0.02);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-cyber:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255,255,255,0.02);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.18);
  color: var(--text-primary);
}

.btn-link {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}
.btn-link:hover { color: var(--accent-color); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-active);
  color: var(--text-primary);
}
.btn-outline:hover {
  background: rgba(var(--accent-rgb), 0.06);
  border-color: var(--accent-color);
}

.btn-block { width: 100%; }

/* Glow Button */
.glow-btn {
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
  transition: var(--transition-fast), box-shadow 0.4s ease;
}
.glow-btn:hover {
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3), 0 0 40px rgba(var(--accent-rgb), 0.12);
}

/* ==========================================================================
   GLASS PANEL BASE
   ========================================================================== */

.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Border glow variants */
.border-glow:hover {
  border-color: var(--border-active);
  box-shadow: var(--panel-shadow), 0 0 25px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.08);
}

.border-glow-purple {
  border-color: rgba(var(--accent-rgb), 0.18) !important;
}
.border-glow-purple:hover {
  border-color: var(--accent-secondary) !important;
  box-shadow: var(--panel-shadow), 0 0 25px rgba(var(--accent-rgb), 0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}

.border-glow-cyan {
  border-color: rgba(var(--accent-rgb), 0.18) !important;
}
.border-glow-cyan:hover {
  border-color: var(--accent-color) !important;
  box-shadow: var(--panel-shadow), 0 0 25px rgba(var(--accent-rgb), 0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}

.border-glow-green {
  border-color: rgba(52, 211, 153, 0.18) !important;
}
.border-glow-green:hover {
  border-color: var(--color-success) !important;
  box-shadow: var(--panel-shadow), 0 0 25px rgba(52, 211, 153, 0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}

.border-glow-red {
  border-color: rgba(248, 113, 113, 0.14) !important;
}
.border-glow-red:hover {
  border-color: var(--color-danger) !important;
  box-shadow: var(--panel-shadow), 0 0 25px rgba(248, 113, 113, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

.border-glow-yellow {
  border-color: rgba(251, 191, 36, 0.14) !important;
}
.border-glow-yellow:hover {
  border-color: var(--color-warning) !important;
  box-shadow: var(--panel-shadow), 0 0 25px rgba(251, 191, 36, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ==========================================================================
   ANIMATION SYSTEM
   ========================================================================== */

.tab-content.active {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes loadingAnim {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes pulseAnim {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes barGrow  { 0% { width: 40%; } 100% { width: 78.4%; } }
@keyframes barGrow2 { 0% { width: 25%; } 100% { width: 65%; } }

/* ==========================================================================
   SPA ROUTER VIEWS
   ========================================================================== */

.view {
  display: none;
  width: 100vw;
  min-height: 100vh;
}
.view.active {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   VIEW 1: LANDING PAGE — Immersive Hero
   ========================================================================== */

#landing-view {
  padding: 0;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: radial-gradient(ellipse 100% 60% at 50% -10%, rgba(var(--accent-rgb), 0.18) 0%, transparent 55%);
}

/* Sticky header with progressive blur */
.landing-header {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding: 0 8vw;
  background: rgba(5, 6, 15, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition-mid);
}

.landing-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.3), transparent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-box {
  width: 34px;
  height: 34px;
  background: var(--accent-gradient);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: var(--transition-mid);
  flex-shrink: 0;
}
.logo-box:hover { transform: rotate(12deg) scale(1.08); }
.logo-box svg  { width: 16px; height: 16px; }

.hex-ball-spin {
  animation: hexSpin 8s linear infinite;
}

@keyframes hexSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.landing-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}
.landing-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}
.landing-nav a:hover { color: var(--text-primary); }
.landing-nav a:hover::after { width: 100%; }

/* Hero Section */
.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 88px 8vw 110px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 30px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.hero-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.15), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-description {
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 80px;
}

/* Interactive Browser Mockup */
.interactive-preview {
  width: 100%;
  max-width: 900px;
  height: 390px;
  border-radius: 18px;
  background: rgba(8, 12, 28, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.9),
    0 0 0 1px rgba(var(--accent-rgb), 0.04),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-mid);
}

.interactive-preview:hover {
  border-color: var(--border-active);
  box-shadow:
    0 50px 100px -20px rgba(0,0,0,0.95),
    0 0 40px rgba(var(--accent-rgb), 0.1),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.mockup-header {
  height: 44px;
  background: rgba(8, 12, 24, 0.9);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 18px;
  justify-content: space-between;
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.mockup-dots .dot:hover { transform: scale(1.2); }
.mockup-dots .dot.red    { background-color: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.4); }
.mockup-dots .dot.yellow { background-color: #fbbf24; box-shadow: 0 0 6px rgba(251,191,36,0.4); }
.mockup-dots .dot.green  { background-color: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.4); }

.mockup-address {
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 4px 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mockup-address svg { width: 10px; height: 10px; color: var(--accent-color); }

.mockup-badge {
  background: rgba(52, 211, 153, 0.1);
  color: var(--color-success);
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid rgba(52, 211, 153, 0.2);
  letter-spacing: 0.5px;
}

.mockup-body { flex: 1; display: flex; background: rgba(4, 6, 16, 0.5); }

.mockup-sidebar {
  width: 62px;
  background: rgba(8, 12, 24, 0.7);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
  gap: 16px;
  color: var(--text-muted);
}

.mockup-item {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  cursor: pointer;
}
.mockup-item svg { width: 15px; height: 15px; }
.mockup-item:hover { background: rgba(var(--accent-rgb), 0.08); color: var(--accent-color); }
.mockup-item.active {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-color);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.1);
}

.mockup-content { flex: 1; padding: 20px; }

.mockup-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 14px;
  height: 100%;
}

.mockup-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.2s ease;
}
.mockup-card:hover { border-color: var(--border-active); }

.mockup-card.p-stats { grid-column: 1; gap: 10px; }

.mockup-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-bar-container {
  width: 100%; height: 5px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  overflow: hidden;
}
.card-bar {
  height: 100%; border-radius: 4px;
  background: var(--accent-gradient);
}
.animate-bar  { animation: barGrow  2s cubic-bezier(0.16,1,0.3,1) infinite alternate; }
.animate-bar-2{ animation: barGrow2 2.5s cubic-bezier(0.16,1,0.3,1) infinite alternate; }

.mockup-card.p-chart { grid-column: 2; grid-row: 1 / span 2; justify-content: space-between; }

.mini-chart-header {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.mini-chart { width: 100%; height: 120px; margin-top: 10px; }

.mockup-card.p-servers {
  grid-column: 1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
}

.mockup-server-pill {
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  transition: var(--transition-fast);
}
.mockup-server-pill:hover { border-color: var(--border-active); background: rgba(255,255,255,0.03); }

/* Pulse dots */
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.pulse-dot.green  { background: var(--color-success); box-shadow: 0 0 7px var(--color-success); }
.pulse-dot.red    { background: var(--color-danger);  box-shadow: 0 0 7px var(--color-danger); }
.pulse-dot.yellow { background: var(--color-warning); box-shadow: 0 0 7px var(--color-warning); }

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid currentColor;
  animation: pulseAnim 2s infinite ease-out;
}
.pulse-dot.green::after  { border-color: var(--color-success); }
.pulse-dot.red::after    { border-color: var(--color-danger); }
.pulse-dot.yellow::after { border-color: var(--color-warning); }

/* Features grid */
.landing-section {
  padding: 100px 8vw;
  background: rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.landing-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 300px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.4), transparent);
}

.section-divider {
  width: 80px; height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin-bottom: 20px;
}

.section-header-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 56px;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

.feature-item-card {
  padding: 32px 24px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: var(--transition-mid);
}

.feature-item-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5), 0 0 25px rgba(var(--accent-rgb), 0.07);
}

.feat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent-color);
  transition: var(--transition-mid);
}
.feat-icon svg { width: 20px; height: 20px; }
.feature-item-card:hover .feat-icon {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: var(--accent-color);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.25);
  transform: scale(1.08) rotate(-3deg);
}

.feature-item-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-item-card p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.landing-footer {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  padding: 0 8vw;
}

/* Systems Architecture Section Styles */
.landing-section.alt-bg {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.architecture-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  width: 100%;
  max-width: 1200px;
  text-align: left;
  align-items: center;
}

.arch-text-content h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.arch-text-content p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 35px;
}

.arch-points-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.arch-points-list li {
  display: flex;
  gap: 16px;
}

.arch-point-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.arch-points-list li:hover .arch-point-icon {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.15);
  transform: scale(1.05);
}

.arch-point-icon svg {
  width: 16px;
  height: 16px;
}

.arch-point-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.arch-point-text strong {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 600;
}

.arch-point-text span {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.arch-visual-diagram {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 16px;
}

.diagram-nodes-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 30px;
}

.diag-node {
  width: 110px;
  height: 90px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.diag-node:hover {
  border-color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.08);
  transform: translateY(-2px);
  color: var(--text-primary);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}

.diag-node.core {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}

.diag-node svg {
  width: 22px;
  height: 22px;
  color: var(--accent-color);
}

.diag-node.core svg {
  color: var(--accent-secondary);
}

.diag-arrow-bidirectional {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 5px;
}

.arrow-text {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.arrow-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border-color) 0%, var(--accent-color) 50%, var(--border-color) 100%);
  position: relative;
}

.arrow-line::before, .arrow-line::after {
  content: '';
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--accent-color);
  border-left: 1px solid var(--accent-color);
}

.arrow-line::before {
  left: 0;
  transform: rotate(-45deg);
}

.arrow-line::after {
  right: 0;
  transform: rotate(135deg);
}

.diagram-footer {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  border-top: 1px solid var(--border-color);
  width: 100%;
  text-align: center;
  padding-top: 20px;
}

/* ==========================================================================
   VIEW 2: LOGIN PORTAL
   ========================================================================== */

#login-view {
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow-y: auto;
  padding: 40px 20px;
}
.login-container { width: 100%; max-width: 440px; }

.login-card {
  padding: 44px;
  border-radius: 20px;
  border-color: var(--border-active) !important;
  box-shadow: var(--panel-shadow), 0 0 60px rgba(var(--accent-rgb), 0.08);
}

.login-header { text-align: center; margin-bottom: 28px; }
.login-header .logo { justify-content: center; margin-bottom: 20px; }
.login-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.login-header p { font-size: 0.86rem; color: var(--text-secondary); }

.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.select-wrapper { position: relative; }
.select-wrapper::after {
  content: '';
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  pointer-events: none;
}

select {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
}
select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.input-wrapper { position: relative; }
.input-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--text-muted);
}
.input-wrapper input,
.modal input[type="text"] {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
}
.input-wrapper input:focus,
.modal input[type="text"]:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.form-helper { font-size: 0.72rem; color: var(--text-muted); }
.form-helper code {
  background: rgba(var(--accent-rgb), 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-color);
  font-family: var(--font-mono);
}

.alert {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  margin-bottom: 16px;
}
.alert svg { width: 14px; height: 14px; flex-shrink: 0; }
.alert-danger {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  color: var(--color-danger);
}
.hidden { display: none !important; }

.login-footer { text-align: center; margin-top: 20px; }

/* ==========================================================================
   VIEW 3: DASHBOARD LAYOUT
   ========================================================================== */

.dashboard-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* SIDEBAR */
.dashboard-sidebar {
  width: 256px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.sidebar-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.3), transparent);
}
.sidebar-header .logo { margin-bottom: 14px; }

.vps-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 16px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}

.nav-item {
  background: transparent;
  border: none;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 500;
  transition: var(--transition-fast);
  width: 100%;
  font-family: var(--font-body);
  position: relative;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-item:hover {
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  transform: translateX(3px);
}
.nav-item:hover svg { color: var(--accent-color); transform: scale(1.08); }
.nav-item svg { transition: var(--transition-fast); width: 16px; height: 16px; flex-shrink: 0; }

.nav-item.active {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}
.nav-item.active::before { opacity: 1; }
.nav-item.active i,
.nav-item.active svg { color: var(--accent-color); }

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.2);
}
.user-profile { display: flex; align-items: center; gap: 10px; max-width: 175px; }
.user-avatar {
  width: 34px; height: 34px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.user-name  { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role  { font-size: 0.65rem; color: var(--text-muted); }

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 7px;
  border-radius: var(--radius-sm);
  display: flex;
  transition: var(--transition-fast);
}
.btn-logout:hover { color: var(--color-danger); background: rgba(248,113,113,0.1); }
.btn-logout svg { width: 16px; height: 16px; }

/* MAIN PANEL */
.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* TOPBAR */
.dashboard-topbar {
  height: 68px;
  border-radius: 0;
  border-left: none; border-right: none; border-top: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.topbar-left { display: flex; flex-direction: column; gap: 2px; }
.dashboard-header-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}
#topbar-subtitle { font-size: 0.72rem; color: var(--text-muted); }

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

.stat-pill {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
}
.stat-pill i, .stat-pill svg { width: 13px; height: 13px; color: var(--accent-color); }

.btn-refresh {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  padding: 7px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}
.btn-refresh:hover { border-color: var(--accent-color); color: var(--text-primary); transform: rotate(45deg); }
.btn-refresh svg { width: 14px; height: 14px; }

.btn-chat-toggle {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}
.btn-chat-toggle:hover { border-color: var(--accent-color); box-shadow: 0 0 12px var(--accent-glow); }
.btn-chat-toggle svg { width: 14px; height: 14px; }

.chat-count {
  background: var(--color-danger);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(248,113,113,0.4);
}

.tab-content {
  display: none;
  flex: 1;
  padding: 22px 24px;
  overflow-y: auto;
}
.tab-content.active { display: flex; flex-direction: column; }

/* ==========================================================================
   TAB: MONITORING / OVERVIEW
   ========================================================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.metric-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  height: 255px;
  border-radius: 16px;
  transition: var(--transition-mid);
}

.metric-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.metric-card .card-header h3 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
}
.metric-card .card-header svg { width: 18px; height: 18px; opacity: 0.7; }

.metric-val { margin: 10px 0 6px; }
.metric-val span:first-child {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.metric-sub { font-size: 0.72rem; color: var(--text-muted); display: block; margin-top: 2px; }

.progress-bar-container {
  height: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-bar { height: 100%; border-radius: 3px; transition: width 1s cubic-bezier(0.16,1,0.3,1); }
.bg-purple { background: linear-gradient(90deg, var(--accent-secondary), #e879f9); }
.bg-cyan   { background: linear-gradient(90deg, var(--accent-color), #67e8f9); }
.bg-green  { background: linear-gradient(90deg, var(--color-success), #86efac); }

.chart-container { flex: 1; min-height: 60px; }

.disk-meta { border-top: 1px solid var(--border-color); padding-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.disk-meta-item { display: flex; justify-content: space-between; font-size: 0.73rem; }
.disk-meta-item span:first-child { color: var(--text-muted); }
.disk-meta-item span:last-child  { color: var(--text-secondary); font-weight: 600; }

.section-title {
  margin-top: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-title h3 { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; }
.helper-text { font-size: 0.72rem; color: var(--text-muted); }

/* Game Server Cards */
.game-servers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.server-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  transition: var(--transition-mid);
}

.server-card.running  { border-left: 3px solid var(--color-success); background: rgba(52, 211, 153, 0.02); }
.server-card.restarting { border-left: 3px solid var(--color-warning); background: rgba(251,191,36,0.02); }
.server-card.stopped  { border-left: 3px solid var(--color-danger);  background: rgba(248,113,113,0.02); }
.server-card:hover { transform: translateY(-2px); border-color: var(--border-active); }

.s-header { display: flex; justify-content: space-between; align-items: flex-start; }
.s-info h4 { font-size: 0.9rem; font-weight: 700; }
.s-info p  { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }
.status-pill { font-size: 0.62rem; font-weight: 700; padding: 3px 8px; border-radius: 30px; text-transform: uppercase; letter-spacing: 0.5px; }
.server-card.running   .status-pill { background: rgba(52,211,153,0.1); color: var(--color-success); border: 1px solid rgba(52,211,153,0.2); }
.server-card.restarting .status-pill { background: rgba(251,191,36,0.1); color: var(--color-warning); border: 1px solid rgba(251,191,36,0.2); }
.server-card.stopped   .status-pill { background: rgba(248,113,113,0.1); color: var(--color-danger);  border: 1px solid rgba(248,113,113,0.2); }

.s-body { margin: 14px 0; display: flex; justify-content: space-between; }
.s-stat { display: flex; flex-direction: column; gap: 2px; }
.s-stat span:first-child { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.s-stat span:last-child  { font-size: 0.84rem; color: var(--text-secondary); font-weight: 600; }

.s-footer { display: flex; gap: 8px; }
.s-footer .btn { flex: 1; }

.loading-skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.01) 0%,
    rgba(255,255,255,0.04) 50%,
    rgba(255,255,255,0.01) 100%);
  background-size: 200% 100%;
  animation: loadingAnim 1.8s ease-in-out infinite;
  min-height: 190px;
}

/* ==========================================================================
   TAB: FILE MANAGER
   ========================================================================== */

.filemanager-container {
  flex: 1;
  display: flex;
  overflow: hidden;
  border-radius: 14px;
}

.file-explorer-sidebar {
  width: 240px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.explorer-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.explorer-header svg { width: 13px; height: 13px; color: var(--accent-color); }

.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  display: flex;
  transition: var(--transition-fast);
}
.btn-icon:hover { color: var(--accent-color); background: rgba(var(--accent-rgb), 0.08); }

.file-tree { list-style: none; padding: 8px; overflow-y: auto; flex: 1; }
.file-tree li {
  padding: 7px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-tree li:hover { background: rgba(255,255,255,0.03); color: var(--text-primary); }
.file-tree li.active-file {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}
.file-tree li svg { width: 11px; height: 11px; flex-shrink: 0; }
.loading-text { color: var(--text-muted); font-style: italic; font-size: 0.76rem; padding: 12px 10px; }

.file-editor-area { flex: 1; display: flex; flex-direction: column; background: rgba(0,0,0,0.25); overflow: hidden; }

.editor-header {
  height: 50px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.active-file-info { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; }
.active-file-info svg { width: 12px; height: 12px; color: var(--accent-secondary); }

.editor-actions { display: flex; align-items: center; gap: 12px; }
.file-status-indicator { font-size: 0.7rem; color: var(--color-success); }

.editor-wrapper { flex: 1; display: flex; overflow: hidden; }
.line-numbers {
  width: 46px;
  background: rgba(0,0,0,0.3);
  border-right: 1px solid var(--border-color);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  user-select: none;
  gap: 0;
}
.line-numbers span { height: 1.5em; display: flex; align-items: center; padding: 0 8px; }

textarea#code-editor-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-y: auto;
  white-space: pre;
  tab-size: 2;
}
textarea#code-editor-textarea:disabled { color: var(--text-muted); cursor: not-allowed; }

.editor-footer {
  height: 30px;
  border-top: 1px solid var(--border-color);
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/* ==========================================================================
   TAB: SSH TERMINAL
   ========================================================================== */

.terminal-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(4, 8, 20, 0.7);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.terminal-header {
  height: 46px;
  background: rgba(6, 10, 24, 0.95);
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.terminal-title { display: flex; align-items: center; gap: 10px; }
.term-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
  animation: pulseAnim 2.5s ease-in-out infinite;
}
.terminal-meta { display: flex; gap: 16px; color: var(--text-muted); font-family: var(--font-mono); }

.terminal-body {
  flex: 1;
  padding: 14px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.term-line.welcome { color: var(--accent-color); font-weight: 700; }
.term-line.info    { color: var(--text-muted); }
.term-line.command-echo { color: var(--accent-secondary); font-weight: 700; margin-top: 8px; }
.term-line.output {
  color: var(--text-primary);
  background: rgba(255,255,255,0.015);
  padding: 5px 12px;
  border-left: 2px solid var(--border-color);
  border-radius: 0 4px 4px 0;
  margin: 2px 0;
}
.term-line.error {
  color: var(--color-danger);
  background: rgba(248,113,113,0.04);
  padding: 5px 12px;
  border-left: 2px solid var(--color-danger);
  border-radius: 0 4px 4px 0;
}

.terminal-command-shortcuts {
  padding: 8px 16px;
  border-top: 1px solid var(--border-color);
  background: rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  color: var(--text-muted);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-term-shortcut {
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  color: var(--accent-color);
  padding: 3px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  transition: var(--transition-fast);
}
.btn-term-shortcut:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--accent-color);
  color: var(--text-primary);
}

.terminal-prompt-line {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(4, 8, 20, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 10px 18px;
  flex-shrink: 0;
}
.prompt-user { color: var(--accent-color); font-weight: 700; font-size: 0.78rem; font-family: var(--font-mono); }
input#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* ==========================================================================
   TAB: KANBAN BOARD
   ========================================================================== */

.board-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-shrink: 0; }
.board-header h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }

.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  flex: 1;
  overflow: hidden;
}

.kanban-lane {
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.12);
  border-radius: 14px;
  overflow: hidden;
}

.lane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.lane-header h4 {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.lane-count {
  background: rgba(255,255,255,0.04);
  color: var(--accent-color);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.lane-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  min-height: 200px;
  padding-right: 2px;
}

.task-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  cursor: grab;
  transition: var(--transition-fast);
}
.task-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2), 0 0 10px var(--accent-glow);
}
.task-card:active { cursor: grabbing; transform: scale(0.98); }

.task-card h5 { font-size: 0.84rem; font-weight: 700; margin-bottom: 5px; }
.task-card p  { font-size: 0.73rem; color: var(--text-muted); line-height: 1.45; margin-bottom: 12px; }

.task-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 9px; }
.task-assignee { display: flex; align-items: center; gap: 6px; font-size: 0.67rem; color: var(--text-muted); }
.avatar-mini { width: 20px; height: 20px; border-radius: 50%; background: rgba(var(--accent-rgb), 0.08); border: 1px solid rgba(var(--accent-rgb), 0.15); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.task-actions { display: flex; gap: 2px; }
.btn-task-action { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 4px; display: flex; transition: var(--transition-fast); }
.btn-task-action:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.btn-task-action.delete:hover { color: var(--color-danger); background: rgba(248,113,113,0.08); }
.btn-task-action svg { width: 12px; height: 12px; }

/* ==========================================================================
   TAB: SETTINGS
   ========================================================================== */

.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.settings-card {
  padding: 24px;
  border-radius: 14px;
}
.settings-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.settings-desc { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }

.settings-form { display: flex; flex-direction: column; gap: 10px; }
.form-group-inline {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border-color);
}
.form-group-inline:last-child { border-bottom: none; padding-bottom: 0; }
.form-group-inline label { font-size: 0.8rem; color: var(--text-secondary); }
.form-group-inline input {
  width: 100px; padding: 5px 10px;
  text-align: right;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  outline: none;
}

.team-users-list { display: flex; flex-direction: column; gap: 8px; }
.team-user-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 9px;
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}
.team-user-item:hover { border-color: var(--border-active); background: rgba(var(--accent-rgb), 0.03); }
.t-avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(var(--accent-rgb), 0.08); border: 1px solid rgba(var(--accent-rgb), 0.15); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.t-details { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.t-details strong { font-size: 0.8rem; font-weight: 700; }
.t-details span   { font-size: 0.68rem; color: var(--text-muted); }
.status-badge { font-size: 0.62rem; font-weight: 700; padding: 3px 8px; border-radius: 30px; letter-spacing: 0.4px; }
.status-badge.full { background: rgba(52,211,153,0.1); color: var(--color-success); border: 1px solid rgba(52,211,153,0.2); }
.status-badge.read-write { background: rgba(var(--accent-rgb),0.1); color: var(--accent-color); border: 1px solid rgba(var(--accent-rgb),0.2); }

/* THEME SELECTOR — Premium Visual Grid */
.theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.theme-card {
  border: 1px solid var(--border-color);
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 14px 10px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.theme-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 0 0 12px 12px;
}

.theme-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.theme-card:hover::before { transform: scaleX(1); }

.theme-card.active {
  border-color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.06);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15), 0 8px 20px rgba(0,0,0,0.2);
}
.theme-card.active::before { transform: scaleX(1); }

.theme-preview-dots { display: flex; justify-content: center; gap: 5px; margin-bottom: 10px; }
.theme-dot-preview {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s ease;
}
.theme-card:hover .theme-dot-preview { transform: scale(1.15); }
.theme-card.active .theme-dot-preview { box-shadow: 0 0 6px currentColor; }

.theme-card span { font-size: 0.68rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.theme-card.active span { color: var(--accent-color); }

/* ==========================================================================
   CHAT DRAWER
   ========================================================================== */

.chat-drawer {
  width: 340px;
  height: 100vh;
  position: absolute;
  top: 0; right: -342px;
  border-radius: 0;
  border-top: none; border-bottom: none; border-right: none;
  z-index: 100;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-drawer.open { right: 0; box-shadow: -15px 0 40px rgba(0,0,0,0.35); }

.chat-header {
  height: 68px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.chat-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.88rem; }
.chat-title svg { color: var(--accent-color); }
.btn-close-chat { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 5px; display: flex; border-radius: 5px; transition: var(--transition-fast); }
.btn-close-chat:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.chat-messages-container { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.chat-loading { text-align: center; font-size: 0.72rem; color: var(--text-muted); padding: 20px 0; }

.message-bubble { display: flex; gap: 9px; max-width: 92%; }
.message-bubble.own { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar { width: 26px; height: 26px; border-radius: 50%; background: rgba(var(--accent-rgb), 0.08); border: 1px solid rgba(var(--accent-rgb), 0.15); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }
.msg-content { display: flex; flex-direction: column; gap: 2px; }
.msg-sender { font-size: 0.66rem; font-weight: 700; color: var(--accent-color); }
.msg-text-wrapper {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  padding: 9px 13px;
  border-radius: 3px 12px 12px 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.message-bubble.own .msg-text-wrapper {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--text-primary);
  border-radius: 12px 3px 12px 12px;
  border-color: rgba(var(--accent-rgb), 0.25);
}
.msg-time { font-size: 0.62rem; color: var(--text-muted); align-self: flex-end; }
.message-bubble.own .msg-time { align-self: flex-start; }

.chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
  background: rgba(0,0,0,0.15);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.chat-input-area input {
  flex: 1; padding: 9px 14px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.8rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-input-area input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}
.btn-icon-only { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-md); flex-shrink: 0; align-self: flex-end; }

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-backdrop.hidden { display: none !important; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 460px;
  padding: 28px;
  border-radius: 18px;
  animation: scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.modal-header h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }

textarea {
  width: 100%; min-height: 84px;
  padding: 10px 12px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.84rem;
  font-family: var(--font-body);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ==========================================================================
   SCROLLBAR STYLING
   ========================================================================== */

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb), 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), 0.4); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  .metrics-grid, .game-servers-grid, .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-selector-grid { grid-template-columns: repeat(3, 1fr); }
  .architecture-container { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .metrics-grid, .game-servers-grid, .kanban-board, .settings-grid {
    grid-template-columns: 1fr;
  }
  .hero-title { font-size: 3rem; letter-spacing: -1px; }
  .landing-nav { display: none; }
  .interactive-preview { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .architecture-container { grid-template-columns: 1fr; gap: 30px; }
  .diag-node { width: 95px; height: 80px; font-size: 0.65rem; gap: 6px; }
  .theme-selector-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-actions .btn { width: 100%; }
  .landing-header, .landing-hero, .landing-section, .landing-footer {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

/* ==========================================================================
   TAB: 3D & GAME BUILDER ENGINE
   ========================================================================== */
.builder-container {
  display: flex;
  height: calc(100vh - 190px);
  min-height: 480px;
  overflow: hidden;
  border-radius: 14px;
}

.builder-sidebar {
  width: 240px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
}

.builder-properties-area {
  width: 270px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  border-left: 1px solid var(--border-color);
}

.sidebar-block {
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

details.sidebar-block {
  padding: 0;
  display: flex;
  flex-direction: column;
}

details.sidebar-block summary {
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
  background: rgba(255, 255, 255, 0.01);
  transition: background var(--transition-fast);
}

details.sidebar-block summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

details.sidebar-block summary::-webkit-details-marker {
  display: none;
}

details.sidebar-block summary h4 {
  margin: 0;
}

.sidebar-block-content {
  padding: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-chevron {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

details[open] .summary-chevron {
  transform: rotate(180deg);
}

.sidebar-block.flex-grow-1 {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

details.sidebar-block.flex-grow-1[open] {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

details.sidebar-block.flex-grow-1:not([open]) {
  flex: 0 0 auto;
}

.sidebar-block h4, .properties-header, .publisher-card h4 {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.spawner-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.spawner-buttons .btn {
  padding: 8px 10px;
  font-size: 0.72rem;
  justify-content: flex-start;
  gap: 6px;
}

.spawner-buttons .btn svg, .spawner-buttons .btn i {
  width: 12px;
  height: 12px;
}

.outliner-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px;
}

.outliner-list li {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.outliner-list li:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.outliner-list li.active-entity {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  font-weight: 600;
}

.outliner-item-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.outliner-list li:hover .outliner-item-actions {
  opacity: 1;
}

.builder-viewport-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: rgba(5, 6, 15, 0.3);
}

.viewport-header {
  height: 48px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.viewport-mode-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.viewport-mode-indicator svg {
  width: 14px;
  height: 14px;
}

.viewport-mode-selector {
  display: flex;
  gap: 6px;
}

.viewport-mode-selector .btn {
  padding: 5px 12px;
  font-size: 0.72rem;
}

.viewport-mode-selector .btn.active {
  background: var(--accent-color);
  color: #fff;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 0 12px var(--accent-glow);
}

.viewport-canvas-wrapper {
  flex: 1;
  position: relative;
  background: #04060e;
  overflow: hidden;
}

.viewport-canvas-wrapper canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

#play-mode-overlay {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}

#play-mode-overlay .overlay-content {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  padding: 10px 18px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-container {
  height: 80px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.timeline-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-controls span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.timeline-slider-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

.timeline-slider-wrapper input[type="range"] {
  width: 100%;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  height: 6px;
  border-radius: 3px;
  outline: none;
}

.timeline-slider-wrapper input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
}

.timeline-ticks {
  position: relative;
  width: 100%;
  height: 6px;
  margin-top: 4px;
}

.timeline-tick-marker {
  position: absolute;
  width: 2px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  top: 0;
  transform: translateX(-50%);
}

.timeline-tick-marker.keyframe {
  background: var(--accent-secondary);
  height: 10px;
  width: 6px;
  border-radius: 1px;
  top: -2px;
  box-shadow: 0 0 6px var(--accent-secondary);
}

.properties-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.properties-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.no-selection-message {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin-top: 40px;
}

.inspector-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.inspector-section h5 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.inspector-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.inspector-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inspector-field label {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 600;
}

.inspector-field input[type="number"], .inspector-field input[type="text"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.76rem;
  outline: none;
  font-family: var(--font-mono);
}

.inspector-field input:focus {
  border-color: var(--accent-color);
}

.inspector-row-2 {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-wrapper input {
  cursor: pointer;
}

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.color-input-wrapper input[type="color"] {
  appearance: none;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch {
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.publisher-card {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background: rgba(var(--accent-rgb), 0.02);
  flex-shrink: 0;
}

.publisher-card p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.publish-status {
  font-size: 0.72rem;
  margin-top: 8px;
  text-align: center;
  font-family: var(--font-mono);
}
.publish-status.success {
  color: var(--color-success);
}
.publish-status.error {
  color: var(--color-danger);
}

/* ==========================================================================
   TAB: ASSET WEBSHOP
   ========================================================================== */
.shop-container, .cloud-container {
  display: flex;
  height: calc(100vh - 190px);
  min-height: 480px;
  overflow: hidden;
  border-radius: 14px;
  gap: 18px;
  width: 100%;
}

.shop-sidebar {
  width: 250px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.shop-hud-section {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-categories-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-category {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-size: 0.76rem;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.btn-category:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.btn-category.active {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.2);
  color: var(--accent-color);
  font-weight: 600;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}

.cart-empty-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 30px;
  font-style: italic;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  text-align: left;
}

.cart-item-title {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  color: var(--accent-color);
  font-family: var(--font-mono);
}

.cart-item-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.cart-item-remove:hover {
  color: var(--color-danger);
  background: rgba(248, 113, 113, 0.1);
}

.cart-summary-card {
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.cart-summary-row strong {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.shop-catalog-area {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.shop-item-card {
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  transition: var(--transition-mid);
}

.shop-item-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  box-shadow: var(--panel-shadow), 0 0 20px rgba(var(--accent-rgb), 0.1);
}

.shop-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 30px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-scripts { background: rgba(56, 189, 248, 0.1); color: var(--accent-color); border: 1px solid rgba(56,189,248,0.2); }
.badge-models { background: rgba(251, 191, 36, 0.1); color: var(--color-warning); border: 1px solid rgba(251,191,36,0.2); }
.badge-servers { background: rgba(52, 211, 153, 0.1); color: var(--color-success); border: 1px solid rgba(52,211,153,0.2); }

.price-label {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.shop-item-body {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.shop-item-icon {
  width: 28px;
  height: 28px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.shop-item-body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.shop-item-body p {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.shop-item-footer .btn {
  width: 100%;
}

.checkout-summary-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
}

.checkout-summary-box .summary-item {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.checkout-summary-box .summary-item.total span {
  color: var(--text-primary);
  font-weight: 600;
}

.checkout-summary-box .summary-item.total strong {
  color: var(--accent-color);
  font-size: 1rem;
  font-family: var(--font-mono);
}

/* ==========================================================================
   TAB: CLOUD MANAGEMENT
   ========================================================================== */
.cloud-sidebar-specs {
  width: 260px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow-y: auto;
}

.cloud-block {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.cloud-scale-slider {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cloud-scale-slider .slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
}

.cloud-scale-slider .slider-header span {
  color: var(--text-muted);
  font-weight: 600;
}

.cloud-scale-slider .slider-header strong {
  color: var(--accent-color);
  font-weight: 700;
}

.cloud-scale-slider input[type="range"] {
  width: 100%;
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  height: 4px;
  border-radius: 2px;
  outline: none;
}

.cloud-scale-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  border: 1px solid #fff;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text-muted);
}

.provisioning-cost-card {
  margin-top: 14px;
  background: rgba(var(--accent-rgb), 0.02);
  border: 1px dashed var(--border-color);
  padding: 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.cost-row strong {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.cloud-backups-area {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
}

.cloud-section-card {
  padding: 22px;
  border-radius: 16px;
  text-align: left;
}

.cloud-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cloud-card-header h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.backup-list-wrapper {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

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

.backup-table th {
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.64rem;
  letter-spacing: 0.5px;
}

.backup-table td {
  padding: 10px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.backup-table tbody tr:hover td {
  background: rgba(255,255,255,0.01);
  color: var(--text-primary);
}

.text-inline {
  width: 12px;
  height: 12px;
  vertical-align: middle;
  margin-right: 6px;
}

.bucket-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.bucket-file-item {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.bucket-file-item:hover {
  border-color: var(--border-active);
  background: rgba(0, 0, 0, 0.25);
}

.bucket-file-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.bf-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  text-align: left;
}

.bf-info strong {
  font-size: 0.76rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bf-info span {
  font-size: 0.64rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SOLID THEME OVERRIDES (theme-ghost)
   ========================================================================== */
body.theme-ghost {
  background-color: var(--bg-main) !important;
}

body.theme-ghost .glass-panel,
body.theme-ghost .dashboard-sidebar,
body.theme-ghost .landing-header,
body.theme-ghost .interactive-preview,
body.theme-ghost .terminal-container,
body.theme-ghost .filemanager-container {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--bg-panel) !important;
}

body.theme-ghost .dashboard-sidebar {
  background: var(--bg-sidebar) !important;
}

body.theme-ghost .dashboard-topbar {
  background: var(--bg-panel) !important;
}

body.theme-ghost .glow-orb {
  display: none !important;
}

body.theme-ghost .glass-panel::after,
body.theme-ghost .metric-card::after,
body.theme-ghost .server-card::after,
body.theme-ghost .task-card::after {
  display: none !important;
}

body.theme-ghost .border-glow:hover,
body.theme-ghost .border-glow-purple:hover,
body.theme-ghost .border-glow-cyan:hover,
body.theme-ghost .border-glow-green:hover,
body.theme-ghost .border-glow-red:hover,
body.theme-ghost .border-glow-yellow:hover {
  box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(255,255,255,0.06) !important;
  border-color: var(--border-active) !important;
}

body.theme-ghost .btn-cyber {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}

body.theme-ghost .btn-cyber:hover {
  background: var(--border-color) !important;
  border-color: var(--border-active) !important;
}

body.theme-ghost .text-neon-cyan,
body.theme-ghost .text-glow,
body.theme-ghost .text-glow-heavy {
  text-shadow: none !important;
  color: var(--text-primary) !important;
}

body.theme-ghost .logo-box {
  box-shadow: none !important;
}

/* Ensure multi-line output in terminal works properly */
.term-line.output,
.term-line.error {
  white-space: pre-wrap !important;
  word-break: break-all !important;
}

/* Hide particle canvas in ghost theme */
body.theme-ghost #particle-canvas {
  display: none !important;
}

/* Directory navigation styles */
#file-tree-container li.directory {
  opacity: 1 !important;
  cursor: pointer !important;
}

#file-tree-container li.directory:hover {
  background: rgba(var(--accent-rgb, 100,116,139), 0.1);
  color: var(--accent-color);
}

#file-tree-container li.back-dir {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

#file-tree-container li.back-dir:hover {
  color: var(--accent-color);
}

/* Improve task-assignee text overflow */
.task-assignee span {
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

/* Upload dropdown menu styles */
.upload-menu-item:hover {
  background: var(--border-color) !important;
  border-radius: 4px;
}

.room-voice-toolbar {
  pointer-events: auto;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(5, 7, 15, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  z-index: 6;
}
.room-voice-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.room-voice-btn:hover {
  color: var(--color-primary);
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.1);
}
.room-voice-btn.active {
  background: rgba(124, 58, 237, 0.3);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
}
.room-voice-btn.danger.active {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}
.voice-peer-indicator {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  top: 2px; right: 2px;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

