/* QOS Design System & CSS Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #09090b;
  --bg-secondary: #121216;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-pink: #d946ef;
  
  /* Security mode colors */
  --color-normal: #06b6d4;
  --color-business: #3b82f6;
  --color-government: #fbbf24;
  --color-military: #ef4444;

  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;

  --glass-bg: rgba(18, 18, 22, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple) var(--bg-primary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  background-image: 
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.08) 0, transparent 50%), 
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.08) 0, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
}

/* Glass Container Style */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px 0 rgba(139, 92, 246, 0.05);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
  letter-spacing: 0;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.55);
}

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

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

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

.hero-tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent-cyan);
  padding-left: 1rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 3D Canvas Viewport styling */
#shield-canvas-container {
  width: 100%;
  height: 480px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: grab;
}

#shield-canvas-container:active {
  cursor: grabbing;
}

/* Interactive Device Simulator */
.device-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.device-frame {
  width: 320px;
  height: 640px;
  border: 12px solid #1c1917;
  border-radius: 40px;
  background: #000;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.15);
  overflow: hidden;
}

.device-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 25px;
  background: #1c1917;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.notch-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0c0a09;
}

.notch-sensor {
  width: 40px;
  height: 4px;
  background: #082f49;
  border-radius: 10px;
  margin-left: 8px;
}

.device-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Boot simulator styles */
.boot-screen {
  background: #000;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  transition: opacity 0.5s ease;
}

.boot-terminal-log {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 1rem;
}

.boot-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}

.boot-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-cyan);
  transition: width 0.1s linear;
}

/* Home Screen UI simulator */
.homescreen-ui {
  background: linear-gradient(180deg, #1e1b4b 0%, #09090b 100%);
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  padding: 3rem 1.2rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.homescreen-active {
  opacity: 1;
  pointer-events: auto;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.status-right {
  display: flex;
  gap: 0.4rem;
}

/* Dynamic Island Mock */
.island-widget {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 20px;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
  animation: pulse-border 3s infinite;
}

.island-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.island-text {
  font-size: 0.65rem;
  line-height: 1.2;
}

.island-text h4 {
  font-weight: 600;
  color: #fff;
}

.island-text p {
  color: var(--text-secondary);
}

/* Apps grid simulator */
.apps-grid-simulator {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem 0.8rem;
  margin-top: 1rem;
  flex-grow: 1;
}

.app-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.app-sim-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.app-icon-wrapper:hover .app-sim-icon {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.25);
}

.app-sim-label {
  font-size: 0.6rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
}

/* App drawer overlay screen */
.app-detail-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 85%;
  background: rgba(18, 18, 22, 0.95);
  backdrop-filter: blur(10px);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 15;
  padding: 1.5rem 1.2rem;
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.app-detail-overlay.open {
  bottom: 0;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.overlay-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
}

.overlay-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.overlay-content p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.secure-spec-badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-size: 0.6rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Security Section */
.section {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-tag {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.security-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sec-mode-btn {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sec-mode-btn h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.sec-mode-btn p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sec-mode-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

/* Active Mode styles */
.sec-mode-btn.active[data-mode="normal"] {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.03);
}
.sec-mode-btn.active[data-mode="normal"] .sec-mode-indicator {
  background: var(--color-normal);
  box-shadow: 0 0 12px var(--color-normal);
}

.sec-mode-btn.active[data-mode="business"] {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.03);
}
.sec-mode-btn.active[data-mode="business"] .sec-mode-indicator {
  background: var(--color-business);
  box-shadow: 0 0 12px var(--color-business);
}

.sec-mode-btn.active[data-mode="government"] {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.03);
}
.sec-mode-btn.active[data-mode="government"] .sec-mode-indicator {
  background: var(--color-government);
  box-shadow: 0 0 12px var(--color-government);
}

.sec-mode-btn.active[data-mode="military"] {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.03);
}
.sec-mode-btn.active[data-mode="military"] .sec-mode-indicator {
  background: var(--color-military);
  box-shadow: 0 0 12px var(--color-military);
}

/* Security Dashboard panel */
.sec-dashboard-panel {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative; /* relative for floating sidebars */
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  z-index: 5;
}

.dash-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dash-header span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.sec-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  z-index: 5;
}

.sec-stat-card {
  padding: 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.sec-stat-card h5 {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sec-stat-card p {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Firewall rule logs inside dashboard */
.firewall-rule-logs {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  height: 120px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.firewall-log-entry {
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.firewall-log-entry.denied {
  color: var(--color-military);
}

/* Speed benchmark styling */
.speed-comparison-panel {
  padding: 2.5rem;
  margin-top: 3rem;
}

.speed-slider-container {
  margin-bottom: 2.5rem;
  text-align: center;
}

.speed-slider-container label {
  display: block;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.custom-range {
  -webkit-appearance: none;
  width: 100%;
  max-width: 600px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: transform 0.1s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.benchmark-bars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.benchmark-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  align-items: center;
  gap: 1.5rem;
}

.bar-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.bar-outer {
  height: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.bar-inner {
  height: 100%;
  border-radius: 50px;
  width: 0%;
  transition: width 0.3s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.row-qos .bar-inner {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.row-ios .bar-inner {
  background: #a1a1aa;
}

.row-android .bar-inner {
  background: #34d399;
}

.time-val {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-align: right;
}

/* System Apps grid showcase */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-purple);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* App Store Verification Sandbox */
.store-mock-panel {
  max-width: 600px;
  margin: 3rem auto 0 auto;
  padding: 2rem;
}

.store-app-details {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.store-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.store-app-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
}

.store-app-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.scanner-steps {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.scan-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.scan-step-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.scan-step-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.scan-step-status.pending {
  color: var(--text-secondary);
}

.scan-step-status.active {
  color: var(--accent-cyan);
  animation: pulse 1s infinite alternate;
}

.scan-step-status.success {
  color: #10b981;
}

.rating-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.rating-high {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Developer SDK codebox */
.developer-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0c0a09 100%);
}

.code-editor-panel {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 400px;
  overflow: hidden;
}

.editor-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sdk-tab-btn {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sdk-tab-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.sdk-tab-btn.active {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--accent-purple);
}

.editor-body {
  padding: 2rem;
  background: #09090b;
  position: relative;
}

.code-block {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #a1a1aa;
}

.code-block.active {
  display: block;
}

.code-keyword { color: #f43f5e; }
.code-type { color: #06b6d4; }
.code-string { color: #34d399; }
.code-comment { color: #52525b; }
.code-func { color: #a855f7; }

/* Timeline styling (for 6 phases) */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 4rem auto 0 auto;
}

.timeline-line {
  position: absolute;
  left: 30px;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-item {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-node {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-cyan);
  z-index: 5;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-node {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.timeline-item:nth-child(even) .timeline-node {
  color: var(--accent-purple);
}

.timeline-item:nth-child(even):hover .timeline-node {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.timeline-content {
  flex-grow: 1;
}

.timeline-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.timeline-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.milestone-tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}


/* ==================================================
   NEW: Ecosystem, Team, and Editions Layout Rules
   ================================================== */

/* Ecosystem 3D Layout */
#ecosystem-canvas-container {
  width: 100%;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.03) 0%, transparent 70%);
}

.eco-control-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eco-btns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.eco-trigger-btn {
  padding: 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.eco-trigger-btn:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(4px);
}

.eco-trigger-btn h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--accent-cyan);
}

.eco-trigger-btn p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Headcount Allocation Slider Calculator */
.team-calculator-panel {
  padding: 2.5rem;
  margin-top: 3rem;
}

.team-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.team-alloc-bars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.team-bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  align-items: center;
  gap: 1rem;
}

.team-bar-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.team-bar-outer {
  height: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  overflow: hidden;
}

.team-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.team-count-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: right;
  font-weight: 700;
}

/* Dynamic Budget Section */
.budget-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.budget-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

.budget-card h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.budget-card .price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.budget-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Editions Cards styling */
.editions-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.edition-card {
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
}

.edition-card:hover {
  border-color: rgba(6, 182, 212, 0.2);
  background: rgba(6, 182, 212, 0.01);
}

.edition-card.active {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.02);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.05);
}

.edition-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.edition-card .badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.edition-card.active .badge {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
}

.edition-features {
  list-style: none;
  margin-bottom: 2rem;
}

.edition-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edition-features li::before {
  content: '✓';
  color: var(--accent-cyan);
  font-weight: bold;
}

/* Technology Stack Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(18, 18, 22, 0.6);
}

.tech-stack-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.tech-stack-table th, .tech-stack-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tech-stack-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  font-weight: 600;
}

.tech-stack-table tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.tech-tag-sm {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}


/* ==================================================
   NEW: 3D OS Core Explorer Floating Sidebar Overlay
   ================================================== */
.core-details-sidebar {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 320px;
  z-index: 10;
  padding: 1.5rem;
  pointer-events: auto;
  border: 1px solid var(--glass-border);
  background: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-20px);
  opacity: 0;
  pointer-events: none;
}

.core-details-sidebar.visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.sidebar-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.sidebar-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sidebar-body p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.sidebar-spec-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 1rem;
}

.sidebar-spec-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-spec-box h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.sidebar-spec-box ul {
  list-style: none;
}

.sidebar-spec-box li {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar-spec-box li::before {
  content: '⚡';
  color: var(--accent-cyan);
}

.sidebar-reset-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.sidebar-reset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer Section */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 2rem;
  background: #09090b;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

@keyframes pulse-border {
  0% { border-color: rgba(255, 255, 255, 0.05); }
  50% { border-color: rgba(6, 182, 212, 0.3); }
  100% { border-color: rgba(255, 255, 255, 0.05); }
}

/* Responsive Styles */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-tagline {
    border-left: none;
    border-bottom: 2px solid var(--accent-cyan);
    padding-left: 0;
    padding-bottom: 0.8rem;
    display: inline-block;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .security-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .code-editor-panel {
    grid-template-columns: 1fr;
  }
  
  .editor-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem;
  }
  
  .sdk-tab-btn {
    white-space: nowrap;
  }
  
  .eco-control-panel {
    grid-template-columns: 1fr;
  }
  
  .team-calc-grid {
    grid-template-columns: 1fr;
  }
  
  .budget-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .core-details-sidebar {
    position: static;
    width: 100%;
    transform: none;
    margin-bottom: 1rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.6rem;
  }
  .hero-tagline {
    font-size: 1.1rem;
  }
  .section {
    padding: 4rem 1rem;
  }
  .section-header h2 {
    font-size: 2.0rem;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
  .sec-dashboard-panel {
    padding: 1.2rem;
  }
  .sec-stat-row {
    grid-template-columns: 1fr;
    gap: 1.0rem;
  }
  .budget-cards-grid {
    grid-template-columns: 1fr;
  }
  .editions-deck {
    grid-template-columns: 1fr;
  }
  #shield-canvas-container {
    height: 350px;
  }
  #ecosystem-canvas-container {
    height: 350px;
  }
}

@media (max-width: 576px) {
  .budget-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.1rem;
  }
  .device-frame {
    transform: scale(0.85);
    transform-origin: top center;
    margin-bottom: -90px;
  }
  .nav-container {
    padding: 1rem;
  }
  .logo {
    font-size: 1.3rem;
  }
  #btn-header-action {
    display: none;
  }
}

/* Light Theme Variables Overrides */
body.light-theme {
  --bg-primary: #f4f4f5;
  --bg-secondary: #ffffff;
  --text-primary: #09090b;
  --text-secondary: #3f3f46;
  --text-muted: #a1a1aa;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(9, 9, 11, 0.08);
  background-image: 
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.03) 0, transparent 50%), 
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.03) 0, transparent 50%),
    linear-gradient(rgba(9, 9, 11, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 9, 11, 0.015) 1px, transparent 1px);
}

body.light-theme header {
  background: rgba(244, 244, 245, 0.8);
  border-bottom: 1px solid rgba(9, 9, 11, 0.05);
}

body.light-theme .glass-panel {
  box-shadow: 0 8px 32px 0 rgba(9, 9, 11, 0.05);
}

body.light-theme .code-editor-panel {
  background: #ffffff;
}

body.light-theme .editor-body {
  background: #fdfdfd;
}

body.light-theme .editor-sidebar {
  border-right: 1px solid rgba(9, 9, 11, 0.08);
}

body.light-theme .sdk-tab-btn:hover {
  background: rgba(9, 9, 11, 0.02);
}

body.light-theme .sdk-tab-btn.active {
  background: rgba(139, 92, 246, 0.05);
}

body.light-theme .code-block {
  color: #3f3f46;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
  margin-left: 1rem;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.light-theme .theme-toggle-btn:hover {
  background: rgba(9, 9, 11, 0.05);
}

/* Live Hacker Challenge Console Styling */
.hacker-terminal-box {
  background: #000;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 1.5rem;
  font-family: var(--font-mono);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hacker-terminal-log {
  flex-grow: 1;
  overflow-y: auto;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #10b981;
  max-height: 180px;
}

.hacker-log-red {
  color: #f43f5e;
}

.hacker-log-green {
  color: #10b981;
  font-weight: 600;
}

.hacker-log-cyan {
  color: #06b6d4;
}

.hacking-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hack-deploy-btn {
  padding: 1.2rem;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.02);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hack-deploy-btn:hover {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

.hack-deploy-btn h4 {
  font-size: 1rem;
  color: #ef4444;
  margin-bottom: 0.2rem;
}

.hack-deploy-btn p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .hacking-controls-grid {
    grid-template-columns: 1fr;
  }
}

/* Interactive Simulator Apps Styles */
.sim-app-wrapper {
  padding: 0.8rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
}

/* Phone App */
.dialer-screen {
  font-size: 1.4rem;
  font-family: var(--font-mono);
  text-align: center;
  margin: 0.8rem 0;
  height: 30px;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  justify-items: center;
  margin-bottom: 0.8rem;
}

.keypad-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  color: var(--text-primary);
}

.keypad-btn:active {
  background: rgba(255, 255, 255, 0.15);
}

.keypad-btn span {
  font-size: 0.5rem;
  color: var(--text-muted);
  margin-top: -2px;
}

/* Secure Mail */
.mail-list-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.2s ease;
}

.mail-list-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mail-list-row h5 {
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
  color: var(--accent-cyan);
  display: flex;
  justify-content: space-between;
}

/* Wallet */
.wallet-card-holo {
  background: linear-gradient(135deg, #1f1f2e 0%, #09090b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  margin-bottom: 1rem;
}

.wallet-card-holo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.wallet-card-chip {
  width: 32px;
  height: 24px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.wallet-card-holo-label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 35px;
  height: 25px;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #06b6d4);
  border-radius: 4px;
  opacity: 0.75;
  filter: blur(0.5px);
}

/* Vault Keypad */
.vault-pin-display {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 1rem 0;
  height: 20px;
}

.vault-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  transition: background 0.15s ease;
}

.vault-dot.filled {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.vault-dot.error {
  background: #f43f5e;
  border-color: #f43f5e;
}

/* Smart Camera */
.camera-lens-frame {
  background: #000;
  height: 190px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.camera-lens-blur {
  filter: blur(10px);
  transition: filter 0.3s ease;
}

.camera-lens-clear {
  filter: none;
}

.camera-grid-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 33.3% 33.3%;
  pointer-events: none;
}

.camera-radar-ring {
  width: 100px;
  height: 100px;
  border: 2px dashed #10b981;
  border-radius: 50%;
  animation: spin 10s linear infinite;
  position: absolute;
  opacity: 0.5;
}

.camera-scanline {
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(16, 185, 129, 0.4);
  left: 0;
  top: 0;
  animation: scanSweep 2.5s ease-in-out infinite;
}

/* Chat Prompt */
.chat-bubbles-box {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 0.6rem;
  height: 190px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0.6rem;
}

.chat-bubble {
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  max-width: 85%;
  line-height: 1.4;
}

.chat-bubble.sent {
  align-self: flex-end;
  background: var(--accent-purple);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-bubble.received {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  border-bottom-left-radius: 2px;
}

/* Files App */
.file-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.75rem;
  cursor: pointer;
}

.file-list-row:hover {
  background: rgba(255,255,255,0.02);
}

.file-type-icon {
  font-size: 1.1rem;
  margin-right: 0.4rem;
}

/* Keyframe Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scanSweep {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* Terminal Shell console */
.term-log-box {
  background: #050505;
  color: #10b981;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.8rem;
  border-radius: 8px;
  height: 180px;
  overflow-y: auto;
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-bottom: 0.5rem;
}

.term-input-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: #000;
  border-radius: 6px;
  padding: 0.4rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.term-input-line input {
  flex-grow: 1;
  background: none;
  border: none;
  color: #10b981;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  outline: none;
}

/* Settings Switch toggles */
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.78rem;
}

.settings-toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.settings-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.1);
  transition: .2s ease;
  border-radius: 22px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s ease;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #10b981;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Store catalog item */
.store-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.store-app-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-app-info h5 {
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.store-app-info span {
  font-size: 0.62rem;
  color: var(--text-secondary);
}

/* Messenger bubbles */
.msg-thread-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 180px;
  overflow-y: auto;
  padding: 0.4rem;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

/* Server Manager Dials */
.server-dial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 0.8rem;
}

.server-dial {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.6rem;
  border-radius: 8px;
  text-align: center;
}

.server-dial h5 {
  font-size: 0.6rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.server-dial p {
  font-size: 1.15rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}

.server-log-box {
  background: #000;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  height: 110px;
  overflow-y: auto;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
