/* Core Theme Styles & Reset */
:root {
  --font-display: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Palette (Deep dark universe with neon accents) */
  --color-bg: #050811;
  --color-panel: rgba(10, 16, 32, 0.45);
  --color-border: rgba(255, 255, 255, 0.05);
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  /* Primary Glowing Accent colors */
  --accent-cyan: #00f0ff;
  --accent-purple: #8b5cf6;
  --accent-magenta: #ec4899;
  --accent-green: #22c55e;
  --accent-orange: #f97316;
  
  /* Dynamic values, updated by custom theme styles */
  --accent-primary: var(--accent-cyan);
  --accent-primary-glow: rgba(0, 240, 255, 0.25);
  --accent-secondary: var(--accent-purple);
  --accent-secondary-glow: rgba(139, 92, 246, 0.2);

  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-glow: 0 0 25px var(--accent-primary-glow);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Particle Background Canvas overlay */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #080e22 0%, var(--color-bg) 100%);
}

/* Layout Utilities */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--accent-cyan); }
.text-green { color: var(--accent-green); }
.text-white\/70 { color: rgba(248, 250, 252, 0.7); }
.font-mono { font-family: var(--font-mono); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Header & Navigation styling */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(5, 8, 17, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.05em;
}

.logo-accent {
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-primary-glow);
  transition: var(--transition-smooth);
}

.logo-light {
  color: var(--color-text-primary);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 8px var(--accent-primary-glow);
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--accent-primary-glow);
}

.btn-glow {
  box-shadow: 0 0 15px var(--accent-primary-glow);
}

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

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.05);
}

.btn-outline:hover {
  background-color: var(--accent-primary-glow);
  box-shadow: 0 0 15px var(--accent-primary-glow);
}

.w-full { width: 100%; }

/* Hero Section */
.hero-section {
  position: relative;
  background-image: radial-gradient(circle at 90% 20%, rgba(0, 240, 255, 0.03) 0%, transparent 60%),
                    radial-gradient(circle at 10% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 60%);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.badge-glow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  padding: 6px 14px;
  border-radius: 100px;
  background-color: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  margin-bottom: 24px;
  text-shadow: 0 0 10px var(--accent-primary-glow);
  box-shadow: inset 0 0 8px var(--accent-primary-glow);
}

.hero-title {
  font-size: 54px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  color: var(--color-text-secondary);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 580px;
}

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

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.meta-dot {
  font-size: 8px;
}

/* 3D Glass Card visual on Hero */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card-perspective {
  perspective: 1000px;
}

.hero-card-3d {
  width: 440px;
  height: 280px;
  background-image: linear-gradient(to right, rgba(7, 11, 20, 0.95) 45%, rgba(7, 11, 20, 0.6) 100%), url('https://shared.fastly.steamstatic.com/store_item_assets/steam/apps/1172380/library_hero.jpg');
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.hero-card-3d:hover {
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 30px rgba(0, 240, 255, 0.15);
}

.card-inner-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 11px;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-card-header {
  height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.window-dot.red { background-color: #ef4444; }
.window-dot.yellow { background-color: #eab308; }
.window-dot.green { background-color: #22c55e; }

.window-title {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--color-text-muted);
  margin-left: 8px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.hero-card-body {
  padding: 24px;
}

.spotlight-mock {
  transform: translateZ(40px);
}

.spotlight-tag {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  background-color: var(--accent-primary-glow);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

.spotlight-mock h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.spotlight-mock p {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-btns {
  display: flex;
  gap: 12px;
}

.mock-btn {
  font-size: 10px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.mock-btn.play-btn {
  background-color: var(--color-text-primary);
  color: #000;
}

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

/* Feature Showcase Cards Section */
.features-section {
  background-color: rgba(6, 11, 25, 0.6);
  border-y: 1px solid var(--color-border);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 38px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--color-text-secondary);
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card:nth-child(2n) .feature-icon {
  background-color: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}

.feature-card-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card-text {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Interactive Sandbox Simulation App Frame */
.demo-section {
  position: relative;
  background-color: var(--color-bg);
}

.launcher-frame {
  width: 100%;
  height: 640px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #070b13;
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 50px rgba(0, 240, 255, 0.05);
}

/* Mock Launcher Sidebar */
.sim-sidebar {
  background-color: rgba(4, 7, 13, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  justify-content: space-between;
}

.sim-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 24px;
}

.sim-avatar-container {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background-color: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.sim-profile-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sim-profile-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.sim-profile-stat {
  font-size: 10px;
  color: var(--color-text-muted);
}

.sim-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sim-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-menu-item:hover {
  color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.sim-menu-item.active {
  color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 2px solid var(--accent-primary);
  padding-left: 12px;
}

.sim-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.sim-game-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--color-text-muted);
}

.sim-rescan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sim-rescan-btn:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-text-primary);
}

/* Mock Main Viewport */
.sim-content-viewport {
  padding: 24px;
  overflow-y: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.5s ease;
}

/* Simulated Panels styling */
.sim-tab-panel {
  display: none;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  animation: fadeIn 0.25s ease-out forwards;
}

.sim-tab-panel.active {
  display: flex;
}

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

/* Spotlight Card in Sim */
.sim-spotlight-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #0c1221;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-height: 250px;
  display: flex;
}

.sim-spotlight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(7, 11, 20, 0.95) 40%, rgba(7, 11, 20, 0.6) 100%);
  z-index: 1;
}

/* Ambient spotlight glowing particles container */
.sim-spotlight-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.sim-spotlight-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.sim-spotlight-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  margin-bottom: 8px;
}

/* Spotlight Curation Cluster */
.sim-curation-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sim-genre-select {
  background-color: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}

.sim-genre-select:hover {
  color: var(--color-text-primary);
  border-color: rgba(255,255,255,0.15);
}

.sim-shuffle-btn {
  background-color: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--accent-purple);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sim-shuffle-btn:hover {
  background-color: var(--accent-purple);
  color: #fff;
  transform: rotate(45deg);
}

.sim-spotlight-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.sim-spotlight-desc {
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sim-spotlight-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.sim-badge {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-secondary);
}

.sim-spotlight-footer {
  display: flex;
  gap: 10px;
}

.sim-btn-play {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-text-primary);
  color: #000;
  border: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sim-btn-play:hover {
  transform: scale(1.03);
}

.sim-btn-hub {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* Slider section in home */
.sim-astera-slider-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sim-section-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
}

.sim-section-label .sub {
  color: var(--accent-primary);
  font-weight: 600;
}

.sim-slider-container {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.sim-slider-container::-webkit-scrollbar {
  height: 4px;
}

.sim-slider-container::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.08);
  border-radius: 4px;
}

.sim-slider-card {
  width: 100px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255,255,255,0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: perspective(600px) rotateY(10deg);
}

.sim-slider-card:hover {
  transform: perspective(600px) rotateY(0deg) scale(1.05);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.sim-slider-card.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary-glow);
  transform: perspective(600px) rotateY(0deg);
}

.sim-slider-card img {
  width: 100%;
  height: 100%;
  object-cover: cover;
}

.sim-slider-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 12px 8px 6px 8px;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Bottom Grid widgets */
.sim-dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sim-widget-card {
  background-color: rgba(10, 16, 32, 0.4);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 8px;
}

.widget-body {
  flex: 1;
}

.log-console {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 90px;
  overflow-y: auto;
}

.log-line {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.specs-dashboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}

.spec-row .label {
  color: var(--color-text-muted);
}

.spec-row .val {
  color: var(--color-text-primary);
}

.telemetry-bar-row {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-label {
  font-size: 8px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.m-track {
  width: 100%;
  height: 4px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.m-bar {
  height: 100%;
  background-color: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  width: 0%;
  transition: width 0.4s ease;
}

.m-val {
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: right;
}

/* Library View Panel */
.sim-library-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 16px;
}

.library-filters {
  display: flex;
  gap: 8px;
}

.lib-filter-pill {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lib-filter-pill:hover,
.lib-filter-pill.active {
  background-color: rgba(255,255,255,0.05);
  color: var(--color-text-primary);
  border-color: var(--accent-primary);
}

.library-search-container {
  position: relative;
}

.lib-search-input {
  background-color: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 6px 10px 6px 28px;
  font-family: var(--font-display);
  font-size: 11px;
  color: #fff;
  width: 200px;
  outline: none;
  transition: var(--transition-smooth);
}

.lib-search-input:focus {
  border-color: var(--accent-primary);
  width: 240px;
}

.library-search-container .search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.sim-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  padding-top: 8px;
}

.sim-library-item {
  background-color: rgba(255,255,255,0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.sim-library-item:hover {
  background-color: rgba(255,255,255,0.03);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.sim-library-item .img-box {
  width: 100%;
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #0c1221;
}

.sim-library-item .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sim-library-item h4 {
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.sim-library-item .platform-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: rgba(0,0,0,0.7);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-primary);
}

/* System Stats view in Sandbox Mockup */
.panel-heading {
  font-size: 20px;
  color: #fff;
}

.panel-subheading {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: -12px;
  margin-bottom: 8px;
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-dial-card {
  background-color: rgba(10,16,32,0.4);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.stat-dial-card h3 {
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.circle-chart-container {
  width: 100px;
  height: 100px;
}

.circular-chart {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 2.8;
}

.circle {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s ease;
}

.cyan-glow .circle { stroke: var(--accent-cyan); filter: drop-shadow(0 0 4px var(--accent-cyan)); }
.magenta-glow .circle { stroke: var(--accent-magenta); filter: drop-shadow(0 0 4px var(--accent-magenta)); }
.violet-glow .circle { stroke: var(--accent-purple); filter: drop-shadow(0 0 4px var(--accent-purple)); }

.percentage {
  fill: #fff;
  font-family: var(--font-mono);
  font-size: 8px;
  text-anchor: middle;
  font-weight: 700;
}

.stat-dial-card .subtext {
  font-size: 9px;
  color: var(--color-text-muted);
  text-align: center;
}

.optimizer-controls-box {
  background-color: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  padding: 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.optimizer-text h4 {
  font-size: 13px;
  color: #fff;
  margin-bottom: 4px;
}

.optimizer-text p {
  font-size: 10px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.power-scheme-status-card {
  background-color: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 16px;
  border-radius: 8px;
  position: relative;
}

.badge-active {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background-color: rgba(34, 197, 94, 0.15);
  color: var(--accent-green);
  padding: 2px 8px;
  border-radius: 4px;
}

.power-scheme-status-card h4 {
  font-size: 13px;
  margin-bottom: 6px;
}

.power-scheme-status-card .desc {
  font-size: 10px;
  line-height: 1.5;
}

/* Profile tab configurer */
.profile-configurator-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.config-inputs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.config-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-group label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.4);
}

.sim-input-text {
  background-color: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  color: #fff;
  outline: none;
}

.sim-input-text:focus {
  border-color: var(--accent-primary);
}

.accent-color-selectors {
  display: flex;
  gap: 10px;
}

.accent-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.accent-swatch:hover {
  transform: scale(1.15);
}

.accent-swatch.active {
  border-color: #fff;
  transform: scale(1.15);
}

.backdrop-selectors {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.backdrop-choice {
  background-color: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 10px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.backdrop-choice:hover {
  background-color: rgba(255,255,255,0.04);
  color: #fff;
}

.backdrop-choice.active {
  border-color: var(--accent-primary);
  background-color: rgba(255,255,255,0.05);
  color: #fff;
}

.profile-preview-card-view {
  background-color: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.profile-preview-card-view .card-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
  text-align: center;
}

.identity-card-display {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
  background-color: rgba(0,0,0,0.3);
  width: 100%;
}

.profile-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.identity-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.identity-details h4 {
  font-size: 14px;
  color: #fff;
}

.identity-details .badge {
  font-family: var(--font-display);
  font-size: 8px;
  background-color: var(--accent-primary-glow);
  color: var(--accent-primary);
  padding: 2px 8px;
  border-radius: 100px;
  width: fit-content;
}

.identity-details .subtext {
  font-size: 9px;
  color: var(--color-text-muted);
}

/* Compatibility System Checker Section */
.compatibility-section {
  background-color: rgba(6, 11, 25, 0.6);
  border-top: 1px solid var(--color-border);
}

.compatibility-widget-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background-color: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.requirements-spec-list {
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.req-title {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.requirement-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 12px;
}

.requirement-item:last-child {
  border-bottom: none;
}

.req-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--color-text-muted);
}

.req-val {
  font-size: 14px;
  color: var(--color-text-primary);
}

.diagnostic-run-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.diagnostic-run-card h3 {
  font-size: 18px;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: rgba(255,255,255,0.04);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: width 0.2s ease;
}

.console-diagnostic-output {
  background-color: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  height: 120px;
  overflow-y: auto;
  color: var(--color-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.diag-log {
  animation: logFadeIn 0.2s ease-out forwards;
}

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

.results-meters {
  display: flex;
  justify-content: space-around;
  margin: 12px 0;
  animation: fadeIn 0.5s ease-out;
}

.meter-circle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.meter-score {
  font-size: 16px;
  font-weight: 800;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--accent-green);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.05);
}

.meter-circle-wrap .label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  color: var(--color-text-muted);
}

/* Technical Setup docs */
.docs-section {
  background-color: var(--color-bg);
}

.docs-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.doc-card {
  background-color: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.step-num {
  position: absolute;
  top: -15px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.015);
  line-height: 1;
}

.doc-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #fff;
  border-left: 2px solid var(--accent-primary);
  padding-left: 12px;
}

.doc-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.code-block-wrapper {
  background-color: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  overflow-x: auto;
}

.doc-card .subtext {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Footer Section */
.app-footer {
  background-color: #03060c;
  border-top: 1px solid var(--color-border);
  padding: 60px 24px 30px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links-col h4 {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.links-col a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 12px;
  transition: var(--transition-smooth);
}

.links-col a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 11px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-meta {
    justify-content: center;
  }
  
  .compatibility-widget-container {
    grid-template-columns: 1fr;
  }
  
  .requirements-spec-list {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  
  .docs-grid-layout {
    grid-template-columns: 1fr;
  }
  
  .diagnostics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-header .nav-links {
    display: none; /* simple mobile bypass */
  }
  
  .launcher-frame {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .sim-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .sim-dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-configurator-layout {
    grid-template-columns: 1fr;
  }
}
