/* ===================================================================
   GIRIUS EU - CORE STYLESHEET
   Theme: High-Performance Cyber-European Black & Neon Green
   =================================================================== */

@import url('./tokens.css');

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(148, 163, 184, 0.12) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  overflow-x: hidden;
  user-select: none;
  font-family: var(--font-sans);
  padding-bottom: 64px;
}

/* Scroll Progress Bar at the top */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #ffffff);
  box-shadow: 0 0 10px var(--accent-glow);
  z-index: 10000;
  transition: width 0.1s ease-out;
}

/* Ambient canvas disabled in favor of clean dot grid */
#ambient-canvas {
  display: none !important;
}

/* Desktop Cursor Glow */
#cursor-glow {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow-subtle) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Navbar (Floating Cyber Glass Dock) */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px var(--space-5) 0 var(--space-5);
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: all var(--dur-med) var(--ease-standard);
}

.navbar-wrapper.scrolled .navbar {
  border-color: rgba(0, 255, 102, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 255, 102, 0.15);
  background: rgba(5, 8, 12, 0.95);
}

.navbar {
  pointer-events: auto;
  width: 100%;
  max-width: 1140px;
  height: 56px;
  background: rgba(6, 9, 14, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 255, 102, 0.2);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 18px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 15px rgba(0, 255, 102, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 255, 102, 0.5));
}

.nav-brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.nav-version-pill {
  border: 1px solid rgba(0, 255, 102, 0.25);
  background: rgba(0, 255, 102, 0.08);
  border-radius: 9999px;
  font-size: 10px;
  color: #00ff66;
  padding: 2px 10px;
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

/* Nav Telemetry Pill (Frankfurt Latency) */
.nav-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #86a893;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 102, 0.18);
  border-radius: 9999px;
  padding: 3px 10px;
}

.nav-telemetry-dot {
  width: 6px;
  height: 6px;
  background: #00ff66;
  border-radius: 50%;
  box-shadow: 0 0 6px #00ff66;
  animation: pulse-glow 2s infinite ease-in-out;
}

/* Nav Tabs matching modern cyber unblocker */
.nav-tabs-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
  text-decoration: none;
}

.nav-tab-item svg {
  width: 15px;
  height: 15px;
  color: inherit;
  transition: transform 0.15s ease;
}

.nav-tab-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab-item.active {
  color: #00ff66;
  background: rgba(0, 255, 102, 0.12);
  border-color: rgba(0, 255, 102, 0.35);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.2);
}

.nav-panic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 9999px;
  color: #ff5555;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
  transition: all 0.15s ease;
}

.nav-panic-pill:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.6);
  transform: scale(1.04);
}

/* Nav Controls (Right Side) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}

.btn-icon:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow-subtle);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* Battery Widget in Navbar */
.girius-battery-widget {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  cursor: default;
  transition: border-color 0.2s ease;
}

.battery-body {
  width: 22px;
  height: 11px;
  border: 1.5px solid var(--border-hover);
  border-radius: 2.5px;
  padding: 1px;
  position: relative;
  display: flex;
  align-items: center;
}

.battery-body::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 2.5px;
  width: 2px;
  height: 4px;
  background: var(--border-hover);
  border-radius: 0 1px 1px 0;
}

.battery-fill {
  height: 100%;
  width: 100%;
  border-radius: 1px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.battery-bolt {
  display: none;
  width: 10px;
  height: 10px;
  fill: var(--accent);
}

.battery-green .battery-body { border-color: var(--border-hover); }
.battery-yellow .battery-body { border-color: var(--warning); }
.battery-red .battery-body { border-color: var(--danger); animation: battery-pulse 1.2s infinite; }

@keyframes battery-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 5px var(--danger-glow); }
  50% { opacity: 0.5; box-shadow: none; }
}

/* Panic Button in Navbar */
.btn-panic-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 77, 94, 0.12);
  border: 1px solid rgba(255, 77, 94, 0.4);
  border-radius: var(--radius-full);
  color: var(--danger);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}

.btn-panic-nav:hover {
  background: var(--danger);
  color: #000000;
  box-shadow: 0 0 16px var(--danger-glow);
  transform: scale(1.03);
}

.btn-panic-nav svg {
  width: 14px;
  height: 14px;
}

/* Main Container */
main {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) 85px var(--space-5);
}

/* Hero Section (Clean Minimalist Centerpiece matching Doge v5) */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0 30px 0;
  max-width: 760px;
  margin: 0 auto;
}

.hero-brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  text-decoration: none;
}

.hero-brand-symbol {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 25px rgba(0, 255, 102, 0.5));
}

.hero-brand-name {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #ffffff;
}

/* Modern Pill Omnibar Search (Pure Cyber Obsidian & Neon Green) */
.search-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 20px auto;
  position: relative;
  z-index: 50;
}

.pill-search-bar {
  display: flex;
  align-items: center;
  height: 60px;
  width: 100%;
  background: rgba(6, 9, 14, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 255, 102, 0.28);
  border-radius: 9999px;
  padding: 0 10px 0 20px;
  box-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 255, 102, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-search-bar:hover {
  border-color: rgba(0, 255, 102, 0.55);
  box-shadow: 0 16px 45px -8px rgba(0, 0, 0, 0.95), 0 0 32px rgba(0, 255, 102, 0.22);
}

.pill-search-bar:focus-within {
  border-color: #00ff66;
  box-shadow: 0 18px 50px -8px rgba(0, 0, 0, 0.98), 0 0 40px rgba(0, 255, 102, 0.38), inset 0 0 14px rgba(0, 255, 102, 0.08);
  background: #04070a;
}

.search-engine-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-engine-icon-wrap:hover {
  transform: scale(1.15);
}

.pill-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15.5px;
  font-weight: 500;
  color: #f8fafc;
  font-family: var(--font-sans);
  min-width: 0;
}

.pill-search-input::placeholder {
  color: #64748b;
}

.search-clear-cross {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
}

.search-clear-cross:hover {
  color: #00ff66;
}

.pill-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(0, 255, 102, 0.12);
  border: 1px solid rgba(0, 255, 102, 0.28);
  color: #00ff66;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.15);
}

.pill-search-submit:hover {
  background: #00ff66;
  color: #000000;
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.6);
  transform: scale(1.08);
}

/* Cyber Feature Pills under Omnibar */
.search-features-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.search-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #86a893;
  background: rgba(6, 10, 15, 0.65);
  border: 1px solid rgba(0, 255, 102, 0.14);
  border-radius: 9999px;
  padding: 4px 12px;
  letter-spacing: 0.3px;
}

/* Shortcuts Row (Top Blocked Unblocker Apps) */
.doge-shortcuts-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  max-width: 760px;
}

.doge-shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.doge-shortcut-item:hover {
  transform: translateY(-4px);
}

.doge-shortcut-circle {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.85);
  border: 1px solid rgba(0, 255, 102, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.doge-shortcut-item:hover .doge-shortcut-circle {
  background: rgba(12, 18, 26, 0.95);
  border-color: #00ff66;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 102, 0.35);
  transform: scale(1.08);
}

.doge-shortcut-circle.add-new {
  color: #86a893;
}

.doge-shortcut-circle.add-new:hover {
  color: #00ff66;
}

.doge-shortcut-label {
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: color 0.15s ease;
}

.doge-shortcut-item:hover .doge-shortcut-label {
  color: #00ff66;
}

.search-icon-left {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-mono), var(--font-sans);
  letter-spacing: 0.3px;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.search-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  margin-right: 8px;
  transition: all 0.15s ease;
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

/* Engine Pill inside search bar */
.search-engine-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #000000;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 11px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-right: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.search-engine-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}

.search-engine-pill svg {
  width: 10px;
  height: 10px;
  color: var(--text-dim);
}

.search-go-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #000000;
  border: none;
  border-radius: var(--radius-xl);
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--accent-glow-subtle);
}

.search-go-btn:hover {
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-1px) scale(1.02);
}

.search-go-btn svg {
  width: 15px;
  height: 15px;
}

/* Live Dropdown Results under search bar */
.search-live-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(11, 18, 13, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px var(--accent-glow-subtle);
  overflow: hidden;
  z-index: 100;
  display: none;
  animation: dropdownSlide 0.2s ease-out;
}

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

.dropdown-section-title {
  padding: 8px 16px 4px 16px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid rgba(22, 48, 33, 0.4);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(22, 48, 33, 0.25);
}

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

.dropdown-item:hover, .dropdown-item.selected {
  background: var(--surface-3);
}

.dropdown-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dropdown-item-thumb {
  width: 38px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #000000;
}

.dropdown-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dropdown-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.dropdown-item-action {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(0, 255, 102, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Quick Search Suggestions under search bar */
.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.suggestion-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestion-tag {
  background: rgba(11, 18, 13, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.suggestion-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 10px var(--accent-glow-subtle);
}

/* Quick Web Launch App Dock */
.quick-dock-section {
  max-width: 820px;
  margin: var(--space-4) auto var(--space-6) auto;
}

.quick-dock-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .quick-dock-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quick-dock-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(11, 18, 13, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px 8px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.quick-dock-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow-subtle) 0%, transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-dock-card:hover {
  background: rgba(16, 26, 19, 0.95);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 25px var(--accent-glow);
  transform: translateY(-8px) scale(1.05);
}

.quick-dock-card:hover::before {
  opacity: 1;
}

.quick-dock-icon {
  width: 26px;
  height: 26px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.quick-dock-card:hover .quick-dock-icon {
  transform: scale(1.18);
  filter: drop-shadow(0 0 10px currentColor);
}

.quick-dock-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s ease;
  letter-spacing: 0.3px;
}

.quick-dock-card:hover .quick-dock-name {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* Flagship Bento Showcase */
.showcase-section {
  margin-bottom: var(--space-7);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-3);
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  position: relative;
  background: rgba(11, 18, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 102, 0.12), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 3;
}

.bento-card:hover::after {
  left: 200%;
}

.bento-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9), 0 0 35px var(--accent-glow);
  transform: translateY(-8px) scale(1.02);
}

.bento-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  z-index: 4;
  box-shadow: 0 0 12px var(--accent-glow-subtle);
}

.bento-card .game-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.bento-card .game-card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bento-card .game-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
  margin-bottom: var(--space-3);
}

.bento-card .game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text);
}

.section-count-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  padding: 2px 10px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: gap 0.2s ease, text-shadow 0.2s ease;
}

.view-all-link:hover {
  gap: 10px;
  text-shadow: 0 0 10px var(--accent-glow);
}

.view-all-link svg {
  width: 14px;
  height: 14px;
}

/* Interactive Games Toolbar */
.games-toolbar-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  background: rgba(11, 18, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 10px 16px;
}

.games-search-box {
  display: flex;
  align-items: center;
  background: #000000;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  flex: 1;
  min-width: 240px;
  max-width: 440px;
  transition: all 0.2s ease;
}

.games-search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow-subtle);
}

.games-search-box svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  margin-right: 8px;
  flex-shrink: 0;
}

.games-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
  font-family: var(--font-sans);
}

.games-search-box input::placeholder {
  color: var(--text-dim);
}

.games-search-clear {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15px;
  padding: 0 4px;
}

.games-search-clear:hover {
  color: var(--text);
}

.games-sort-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-pill-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: var(--radius-full) !important;
  padding: 6px 14px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  font-family: var(--font-sans);
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
}

.sort-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.sort-pill-btn.active {
  background: rgba(0, 255, 102, 0.15) !important;
  border-color: #00ff66 !important;
  color: #00ff66 !important;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.25) !important;
  font-weight: 600 !important;
  transform: translateY(-1px);
}

/* Category Filter Chips - Dark Obsidian Cyber Style */
.games-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: var(--radius-full) !important;
  padding: 7px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  font-family: var(--font-sans);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.filter-chip.active {
  background: rgba(0, 255, 102, 0.15) !important;
  border-color: #00ff66 !important;
  color: #00ff66 !important;
  font-weight: 600 !important;
  box-shadow: 0 0 14px rgba(0, 255, 102, 0.25) !important;
  transform: translateY(-1px);
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 10px 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.load-more-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow-subtle);
  transform: translateY(-1px);
}

/* Game Cards Grid - Modern High-Density App Tile Grid (Apple Arcade / Dogeub Style) */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 16px;
  margin-bottom: var(--space-7);
}

.game-card {
  position: relative;
  aspect-ratio: 1 / 1.18;
  background: #03050a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  border-color: #00ff66;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.95), 0 0 24px -2px rgba(0, 255, 102, 0.4);
  transform: translateY(-6px) scale(1.03);
}

.game-card.skeleton {
  aspect-ratio: 1 / 1.18;
  background: linear-gradient(90deg, #050811 25%, #0f1624 50%, #050811 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 16px;
}

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

.game-thumb-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #03050a;
  overflow: hidden;
}

.game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.game-card:hover .game-thumb {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* Bottom gradient fade so title is perfectly readable directly on the poster art */
.game-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 5, 10, 0.96) 0%, rgba(3, 5, 10, 0.5) 45%, transparent 80%);
  z-index: 2;
  pointer-events: none;
}

/* Category Badge (Top Left) */
.game-category-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 255, 102, 0.35);
  border-radius: 9999px;
  padding: 2.5px 7.5px;
  font-size: 9px;
  font-weight: 800;
  color: #00ff66;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 4;
}

/* Favorite Star Button (Top Right) */
.game-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  z-index: 4;
  transition: all 0.2s ease;
}

.game-fav-btn:hover, .game-fav-btn.active {
  color: #fbbf24;
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.game-fav-btn svg {
  width: 13px;
  height: 13px;
}

/* Card Info Container at Bottom of Poster */
.game-card-body {
  position: relative;
  z-index: 3;
  padding: 8px 10px 10px 10px;
  display: flex;
  flex-direction: column;
}

.game-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.game-subtitle {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.game-card:hover .game-subtitle {
  color: #00ff66;
}

/* Real Cutout Image Engine Icon */
.engine-cutout-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

.search-engine-icon-wrap:hover .engine-cutout-icon {
  transform: scale(1.18);
}

.game-play-btn svg {
  width: 12px;
  height: 12px;
}

/* Footer */
/* Doge v5 Fixed Footer with about:blank */
.doge-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 9, 14, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 255, 102, 0.12);
  z-index: 99;
  font-size: 13px;
  color: #64748b;
  user-select: none;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.footer-text-brand {
  color: #cbd5e1;
}

.footer-dot {
  color: #475569;
}

.footer-text-sub {
  color: #64748b;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-link-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-sans);
}

.footer-link-action:hover {
  color: #00ff66;
  transform: translateY(-1px);
}

/* Command Palette Modal (Ctrl+K) */
.palette-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.palette-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.palette-card {
  width: 90%;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px var(--accent-glow-subtle);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s var(--ease-spring);
}

.palette-modal-backdrop.active .palette-card {
  transform: scale(1);
}

.palette-header {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  gap: var(--space-3);
}

.palette-header svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

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

.palette-shortcut-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}

.palette-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: var(--space-2);
}

.palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.palette-item.selected, .palette-item:hover {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-hover);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.1);
}

.palette-item.selected .palette-item-title {
  color: var(--accent);
}

.palette-item-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.palette-type-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--accent);
}

.palette-mark {
  background: rgba(0, 255, 102, 0.25);
  color: #ffffff;
  padding: 0 2px;
  border-radius: 2px;
}

.palette-item-enter {
  font-family: var(--font-mono);
  font-size: 14px;
  opacity: 0.4;
}

.palette-item.selected .palette-item-enter {
  opacity: 1;
  color: var(--accent);
}

.palette-empty {
  padding: var(--space-6);
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

/* Toast Notifications Container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.girius-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(11, 18, 13, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text);
  font-size: var(--text-sm);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--accent-glow-subtle);
  animation: toast-in 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
  min-width: 260px;
}

.girius-toast.danger {
  border-color: var(--danger);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--danger-glow);
}

.girius-toast.warning {
  border-color: var(--warning);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--warning-glow);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 100%;
  animation: toast-timer 3.5s linear forwards;
}

.girius-toast.danger .toast-progress {
  background: var(--danger);
}

.girius-toast.warning .toast-progress {
  background: var(--warning);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-timer {
  from { width: 100%; }
  to { width: 0%; }
}

/* Skeleton Loading Shimmer */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  border-radius: var(--radius-md);
}

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

/* Responsive Media Queries */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-xl: 1.1rem;
    --nav-height: 58px;
  }
  .navbar {
    padding: 0 var(--space-2);
  }
  .nav-brand-text {
    font-size: var(--text-base);
  }
  .nav-link span {
    display: none;
  }
  .nav-link {
    padding: 6px 10px;
  }
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
  .hero-section {
    padding: var(--space-5) 0;
  }
  .search-container {
    padding: 0 var(--space-2);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-tagline {
    font-size: 0.95rem;
  }
  .quick-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 10px;
  }
}

/* ===================================================================
   CYBER THEME SELECTOR DOCK & HUD TELEMETRY STRIP
   =================================================================== */
.cyber-theme-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-4) auto 0 auto;
  max-width: 780px;
  padding: 8px 18px;
  background: rgba(11, 18, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
}

.theme-dock-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.theme-chip:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 12px var(--accent-glow-subtle);
}

.theme-chip.active {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 16px var(--accent-glow-subtle);
}

.theme-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Cyber HUD Telemetry Strip */
.hud-telemetry-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: var(--space-3) auto var(--space-4) auto;
  max-width: 860px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(22, 48, 33, 0.4);
  border-radius: var(--radius-lg);
}

.hud-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hud-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseNeon 1.8s infinite ease-in-out;
}

@keyframes pulseNeon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.hud-value {
  color: var(--text);
  font-weight: 700;
}

.theme-toggle-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-nav-btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow-subtle);
}

/* Authentic Apache 503 Maintenance Decoy Screen */
#apache-shutdown-overlay {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483647;
  background: #ffffff !important;
  color: #000000 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.5;
  padding: 30px 40px;
  margin: 0;
  box-sizing: border-box;
  overflow: auto;
  user-select: text;
  -webkit-user-select: text;
  cursor: default;
}

#apache-shutdown-overlay h1 {
  font-size: 1.85em;
  font-weight: 700;
  color: #000000 !important;
  margin: 0 0 0.5em 0;
  padding: 0;
  border: none;
  background: none;
  text-shadow: none;
  font-family: inherit;
}

#apache-shutdown-overlay p {
  color: #000000 !important;
  margin: 0 0 1.2em 0;
  font-size: 1em;
  font-family: inherit;
}

#apache-shutdown-overlay hr {
  border: 0;
  border-top: 1px solid #c5c5c5;
  margin: 1.2em 0;
}

#apache-shutdown-overlay address {
  font-style: italic;
  font-size: 0.9em;
  color: #222222 !important;
  font-family: inherit;
}

/* ===================================================================
   VAPOR / UTOPIA MULTI-TAB PROXY DOCK
   =================================================================== */
.vapor-tabs-wrapper {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vapor-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 4px;
}
.vapor-tabs-bar::-webkit-scrollbar {
  display: none;
}

.vapor-tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 9, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 6px 14px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  max-width: 180px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.vapor-tab-item:hover {
  background: rgba(10, 16, 24, 0.95);
  border-color: rgba(0, 255, 102, 0.35);
  color: #eafff1;
}

.vapor-tab-item.active {
  background: #04070a;
  border-color: #00ff66;
  color: #00ff66;
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.22);
}

.vapor-tab-favicon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.vapor-tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.vapor-tab-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.vapor-tab-close:hover {
  color: #ff4d5e;
  transform: scale(1.2);
}

.vapor-tab-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(6, 9, 14, 0.85);
  border: 1px solid rgba(0, 255, 102, 0.25);
  border-radius: 50%;
  color: #00ff66;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.vapor-tab-add:hover {
  background: #00ff66;
  color: #000000;
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.5);
  transform: rotate(90deg);
}

/* ===================================================================
   PINNED & FAVORITES GAMES SHELF (UTOPIA / ARTCLASS STYLE)
   =================================================================== */
.pinned-shelf-section {
  margin-bottom: var(--space-6);
  padding: 16px 20px;
  background: rgba(6, 10, 14, 0.65);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 255, 102, 0.2);
  border-radius: 20px;
}

.pinned-shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pinned-shelf-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #eafff1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pinned-shelf-star {
  color: #fbbf24;
}

.pinned-scroll-row {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px;
}
.pinned-scroll-row::-webkit-scrollbar {
  display: none;
}

.pinned-game-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pinned-game-tile:hover {
  transform: translateY(-4px);
}

.pinned-game-thumb {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(0, 255, 102, 0.25);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
  transition: all 0.2s ease;
}

.pinned-game-tile:hover .pinned-game-thumb {
  border-color: #00ff66;
  box-shadow: 0 8px 24px rgba(0, 255, 102, 0.35);
}

.pinned-game-name {
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ===================================================================
   MULTI-NODE GATEWAY PINGER & AMBIENT CANVAS CONTROLS
   =================================================================== */
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gateway-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #020407;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gateway-card:hover, .gateway-card.active {
  border-color: #00ff66;
  background: rgba(0, 255, 102, 0.05);
  box-shadow: 0 0 14px rgba(0, 255, 102, 0.15);
}

.gateway-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.gateway-ping-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #00ff66;
  background: rgba(0, 255, 102, 0.12);
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 255, 102, 0.3);
}

/* =========================================================================
   IN-PAGE CYBER PROXY BROWSER STAGE (Strictly Same Page, No / URLs)
   ========================================================================= */
.proxy-browser-stage {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 130px);
  min-height: 560px;
  max-width: 1380px;
  margin: 10px auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 102, 0.25);
  background: #04070a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 102, 0.08);
}

.proxy-stage-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #090e14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.stage-toolbar-left, .stage-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stage-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8899a6;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stage-nav-btn:hover {
  background: rgba(0, 255, 102, 0.15);
  border-color: #00ff66;
  color: #00ff66;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.stage-nav-btn.close-btn:hover {
  background: rgba(255, 51, 102, 0.2);
  border-color: #ff3366;
  color: #ff3366;
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.4);
}

.stage-url-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #020406;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 6px 14px;
  transition: border-color 0.2s;
}

.stage-url-bar-wrap:focus-within {
  border-color: #00ff66;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.2);
}

.stage-lock-icon {
  color: #00ff66;
  flex-shrink: 0;
}

.stage-url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
}

.proxy-frame-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  background: #04070a;
}

.proxy-stage-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #04070a;
  z-index: 10;
  gap: 16px;
  pointer-events: none;
}

.proxy-stage-loader .cyber-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(0, 255, 102, 0.15);
  border-top-color: #00ff66;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.proxy-stage-loader .loader-status {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  font-size: 13px;
  color: #00ff66;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.proxy-viewport-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Hide Floating Navbar whenever In-Page Proxy Session is active or fullscreen */
body.in-proxy-session .navbar-wrapper,
body.in-proxy-fullscreen .navbar-wrapper,
.proxy-browser-stage.fullscreen ~ .navbar-wrapper {
  display: none !important;
}

body.in-proxy-session .proxy-browser-stage {
  height: calc(100vh - 24px);
  margin-top: 12px;
}

.proxy-browser-stage.fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 2147483640 !important;
}




