/* ── ANTI-FLASH: apply theme colors instantly before body paints ── */
html[class*="preload-theme-"] body {
  visibility: hidden;
}
/* Map data-active-theme on <html> to the correct bg before body class is set */
html[data-active-theme="abyss"] body     { background: #0d0f1a !important; }
html[data-active-theme="nebula"] body    { background: #0f0a1e !important; }
html[data-active-theme="scarlet"] body   { background: #1a0a0a !important; }
html[data-active-theme="light"] body     { background: #f0f2f5 !important; }
html[data-active-theme="original"] body  { background: #0a0a0a !important; }

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  /* Colors */
  --primary: #3a3a3a;
  --primary-dark: #444444;
  --primary-light: #444444;
  --secondary: #f59e0b;
  --accent: #F5F5F5;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Backgrounds */
  --bg-primary: #1a1a1a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #222222;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-dark: #0a0a0a;
  --bg-card-hover: rgba(255, 255, 255, 0.08);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;

  /* Borders */
  --border-primary: rgba(255, 255, 255, 0.1);
  --border-secondary: rgba(255, 255, 255, 0.05);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --download-btn-glow-default: rgba(34, 197, 94, 0.18);
  --download-btn-glow-hover: rgba(34, 197, 94, 0.36);
}

:root {
  --feature-icon-background: rgba(0, 0, 0, 0.07);
  --feature-icon-border-color: rgba(0, 0, 0, 0.1);
  --feature-icon-color: white;
  --feature-icon-hover-background: rgba(0, 0, 0, 0.25);
  --feature-icon-hover-border-color: rgba(0, 0, 0, 0.5);
  --feature-icon-hover-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

:root {
  /* Effects */
  --blur: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --container-padding: 2rem;
  --section-spacing: 6rem;
}

/* Light Theme */
html[data-theme="light"] {
  --bg-primary: #eef2f8;
  --bg-secondary: #f6f8fb;
  --bg-tertiary: #eef2f8;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-dark: #e9eef6;

  --success: #16a34a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;

  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #60a5fa;
  --secondary: #f59e0b;
  --accent: #0f172a;

  --border-primary: rgba(148, 163, 184, 0.18);
  --border-secondary: rgba(148, 163, 184, 0.1);
  --navbar-bg: rgba(255, 255, 255, 0.96);
  --navbar-border: rgba(148, 163, 184, 0.12);
  --dropdown-bg: rgba(255, 255, 255, 0.96);
  --panel-bg: rgba(255, 255, 255, 0.98);
  --panel-border: rgba(148, 163, 184, 0.14);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection for inputs and content areas */
input,
textarea,
.search-input,
.command-input {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fix for WebView viewport issues */
@viewport {
  width: device-width;
  initial-scale: 1.0;
  maximum-scale: 5.0;
  user-scalable: yes;
}

/* Improve touch targets for mobile */
.btn,
.filter-tag,
.nav-link,
.copy-btn {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

/* Background Effects */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, var(--secondary), var(--accent));
  bottom: -150px;
  left: -150px;
  animation-delay: -10s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(45deg, var(--accent), var(--primary));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -5s;
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

@keyframes float {
  0%,
  100% {
    -webkit-transform: translate(0, 0) rotate(0deg);
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    -webkit-transform: translate(30px, -30px) rotate(120deg);
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    -webkit-transform: translate(-20px, 20px) rotate(240deg);
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* Navigation */
.navbar {
  position: -webkit-sticky;
  position: sticky;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 35);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--border-primary);
  z-index: 1000;
  transition: var(--transition);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
  .navbar {
    background: rgba(20, 20, 20);
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  overflow: visible;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  background-clip: padding-box;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* Main Container */
.main-container {
  padding-top: 70px;
  -webkit-overflow-scrolling: touch;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-spacing) var(--container-padding);
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  color: var(--text-primary);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
  .gradient-text {
    color: var(--text-primary);
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

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

/* Search Section */
.search-section {
  padding: var(--section-spacing) var(--container-padding);
  max-width: 1200px;
  margin: 0 auto;
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
}

.search-header {
  text-align: center;
  margin-bottom: 3rem;
}

.search-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.search-box {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 16px;
}

.search-icon {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 1.125rem;
}

.search-input {
  width: 100%;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-clip: padding-box;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.filter-section {
  margin-top: 2rem;
}

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

.filter-label {
  display: block;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.filter-tags {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-clip: padding-box;
  cursor: pointer;
}

.filter-tag:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.filter-tag.active {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow), inset 0 0 8px var(--primary-glow);
}

/* ── STATUS FILTER DOTS ── */
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot-online {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
}

.status-dot-offline {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
}

/* Online button active state - green tint */
.status-filter-btn[data-status-filter="online"].active {
  background: rgba(34, 197, 94, 0.15) !important;
  border-color: #22c55e !important;
  color: #22c55e !important;
}

/* Offline button active state - red tint */
.status-filter-btn[data-status-filter="offline"].active {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

/* Install Command Styles */
.install-command {
  position: relative;
  margin-bottom: 1rem;
  width: 100%;
}

.command-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 0.75rem;
  resize: none;
  overflow: hidden;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 16px;
  background-clip: padding-box;
}

.copy-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  background-clip: padding-box;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 768px) {
  .command-input {
    font-size: 0.7rem;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
  }

  .copy-btn {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
}

/* Executors Main */
.executors-main {
  padding: 0 var(--container-padding) var(--section-spacing);
  max-width: 1200px;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}

/* Platform Section */
.platform-section {
  margin-bottom: var(--section-spacing);
  animation: fadeInUp 0.6s ease-out;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-primary);
}

.section-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.section-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

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

.section-badge {
  margin-left: auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.executor-count {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.section-badge span:last-child {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Executors Grid */
.executors-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

/* Fallback for browsers that don't support CSS Grid */
@supports not (display: grid) {
  .executors-grid,
  .features-grid,
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .executor-card,
  .feature-card,
  .footer-section {
    flex: 1 1 300px;
    min-width: 300px;
  }
}

/* Executor Card */
.executor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  padding: 1.5rem;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.executor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.executor-card:hover {
  -webkit-transform: translateY(-10px);
  -moz-transform: translateY(-10px);
  -ms-transform: translateY(-10px);
  -o-transform: translateY(-10px);
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.executor-card:hover::before {
  opacity: 1;
}

.executor-card.featured {
  border-color: var(--secondary);
  background: linear-gradient(135deg, var(--bg-card), rgba(245, 158, 11, 0.05));
}

.executor-card.premium {
  border-color: var(--secondary);
  background: linear-gradient(135deg, var(--bg-card), rgba(245, 158, 11, 0.05));
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.premium-badge {
  background: linear-gradient(45deg, var(--secondary), #d97706);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.executor-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: var(--shadow-md);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
}

.executor-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.executor-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  display: flex;
  gap: 0.125rem;
  color: var(--secondary);
}

.rating-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-details {
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.detail-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.detail-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-online {
  color: var(--success);
}

.status-online::before {
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.status-offline {
  color: var(--error);
}

.status-offline::before {
  background: var(--error);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.card-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  background-clip: padding-box;
  cursor: pointer;
}

.btn-primary {
  background: #25272d;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  box-shadow: 0 0 10px var(--download-btn-glow-default);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-primary);
  color: var(--text-primary);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  box-shadow: 0 0 24px var(--download-btn-glow-hover);
}

/* Join Community Button - Animated Conic Border */
:root {
  --join-glow-color: #ffffff;
}

body.theme-abyss {
  --join-glow-color: #00f2ff;
}

body.theme-nebula {
  --join-glow-color: #d400ff;
}

body.theme-scarlet {
  --join-glow-color: #ff003c;
}

.btn-join {
  position: relative;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  z-index: 1;
  padding: 0;
}

/* Shiny conic background — static, no longer spinning */
.btn-join::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    transparent 0deg,
    var(--join-glow-color) 60deg,
    transparent 120deg,
    transparent 240deg,
    var(--join-glow-color) 300deg,
    transparent 360deg
  );
  background-blend-mode: overlay;
  opacity: 0.35;
  z-index: -1;
}

/* Subtle glass overlay so text remains readable */
.btn-join::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bg-card);
  z-index: -1;
  transition: var(--transition);
}

.btn-join:hover::after {
  background: var(--bg-card-hover);
}

.btn-join .btn-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  pointer-events: none;
}

/* Continuous pulsing glow ring using the theme's hover color */
.btn-join {
  animation: join-pulse-glow 2.8s ease-in-out infinite;
}

.btn-join:hover {
  box-shadow: 0 0 40px var(--join-glow-color);
}

@keyframes join-pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px var(--join-glow-color), 0 0 20px var(--join-glow-color);
  }
  50% {
    box-shadow: 0 0 24px var(--join-glow-color), 0 0 50px var(--join-glow-color);
  }
}

.btn-download {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  flex: 1;
  box-shadow: 0 0 10px var(--download-btn-glow-default);
}

.btn-download:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.35);
  color: var(--text-primary);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  box-shadow: 0 0 24px var(--download-btn-glow-hover);
}

/* Premium Button - Shiny conic background (no spinning) */
:root {
  --premium-glow-color: #f59e0b;
}

.btn-premium {
  position: relative;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  color: white;
  flex: 1;
  z-index: 1;
}

.btn-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    transparent 0deg,
    var(--premium-glow-color) 60deg,
    transparent 120deg,
    transparent 240deg,
    var(--premium-glow-color) 300deg,
    transparent 360deg
  );
  background-blend-mode: overlay;
  opacity: 0.35;
  z-index: -1;
}

.btn-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bg-card);
  z-index: -1;
  transition: var(--transition);
}

.btn-premium:hover::after {
  background: var(--bg-card-hover);
}

.btn-premium:hover {
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--premium-glow-color);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  background: #5865f2;
  color: white;
}

.btn-icon:hover {
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* About Section */
.about-section {
  padding: var(--section-spacing) var(--container-padding);
  background: transparent;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 4rem;
}

.about-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.features-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
  -webkit-transform: translateY(-10px);
  -moz-transform: translateY(-10px);
  -ms-transform: translateY(-10px);
  -o-transform: translateY(-10px);
  transform: translateY(-10px);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4);
  border-color: var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

/* Override removed — Verified & Safe now uses the same icon styling as all other feature cards */

/* Shield icon: outline only — transparent fill, white frame so checkmark shows through */
.shield-outline {
  color: transparent !important;
  -webkit-text-stroke: 1.8px rgba(255, 255, 255, 0.85);
  paint-order: stroke fill;
}



.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem var(--container-padding) 2rem;
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.2s, background 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Discord social link: pulsing glow that continuously breathes */
.social-link[href*="discord"] {
  border-color: rgba(88,101,242,0.35);
  color: #5865F2;
  background: transparent;
  animation: discord-pulse 2.8s ease-in-out infinite;
  transition: transform 0.2s;
}

.social-link[href*="discord"]:hover {
  border-color: rgba(88,101,242,0.8) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  /* Keep pulse animation running on hover too, just more intense */
  animation: discord-pulse-hover 2.8s ease-in-out infinite;
}

@keyframes discord-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(88,101,242,0.35), 0 0 25px rgba(88,101,242,0.15);
    border-color: rgba(88,101,242,0.25);
  }
  50% {
    box-shadow: 0 0 22px rgba(88,101,242,0.7), 0 0 50px rgba(88,101,242,0.35);
    border-color: rgba(88,101,242,0.55);
  }
}

@keyframes discord-pulse-hover {
  0%, 100% {
    box-shadow: 0 0 18px rgba(88,101,242,0.65), 0 0 40px rgba(88,101,242,0.3);
    border-color: rgba(88,101,242,0.6);
  }
  50% {
    box-shadow: 0 0 32px rgba(88,101,242,0.95), 0 0 70px rgba(88,101,242,0.5);
    border-color: rgba(88,101,242,0.9);
  }
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem var(--container-padding);
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --section-spacing: 4rem;
  }

  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    gap: 2rem;
  }

  .search-header h2 {
    font-size: 2rem;
  }

  .filter-tags {
    justify-content: center;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .section-badge {
    margin-left: 0;
  }

  .executors-grid {
    grid-template-columns: 1fr;
  }

  .card-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .btn-icon {
    width: 100%;
    height: 44px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .search-header h2 {
    font-size: 1.75rem;
  }

  .section-info h2 {
    font-size: 1.5rem;
  }

  .executor-card {
    padding: 1rem;
  }

  .about-header h2 {
    font-size: 2rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

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

.platform-section {
  animation: fadeInUp 0.6s ease-out;
}

/* Improve mobile responsiveness */
@media screen and (max-width: 768px) {
  .nav-menu.active {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-top: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    z-index: 1001;
  }

  .hero-actions {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .card-actions {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
  }
}

/* Fix for very small screens */
@media screen and (max-width: 480px) {
  .executors-grid {
    grid-template-columns: 1fr;
    -ms-grid-columns: 1fr;
  }

  .executor-card {
    margin: 0;
    width: 100%;
  }

  .command-input {
    font-size: 0.7rem;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    word-break: break-all;
    overflow-wrap: break-word;
  }
}

/* Fix for landscape orientation on mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 2rem var(--container-padding);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .gradient-orb {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-primary: rgba(255, 255, 255, 0.3);
    --bg-card: rgba(255, 255, 255, 0.1);
  }
}

/* Dark mode improvements for WebViews */
@media (prefers-color-scheme: dark) {
  html[data-theme="dark"] {
    color-scheme: dark;
  }
}

@media (prefers-color-scheme: light) {
  html[data-theme="light"] {
    color-scheme: light;
  }
}

/* Frost-style dash header, theme lab, and additional theme modes */

.navbar {
  position: fixed;
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(95%, 1400px);
  padding: 0 24px;
  height: 78px;
  background: var(--navbar-bg, rgba(10, 12, 28, 0.68)) !important;
  border-radius: 60px;
  border: 1px solid var(--navbar-border, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18) !important;
  z-index: 1000;
}

.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
}

.logo-text {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.icon-btn:hover {
  transform: rotate(15deg) scale(1.1);
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

.hamburger {
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.bar {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 99px;
  transition: opacity 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  width: 240px;
  padding: 14px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: var(--dropdown-bg, rgba(15, 18, 32, 0.94));
  border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-muted, var(--text-secondary));
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.2s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color, var(--text-primary));
  padding-left: 25px;
}

.nav-item i {
  color: var(--primary);
  min-width: 18px;
  font-size: 1rem;
  transition: 0.5s;
}

.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.settings-overlay.open {
  opacity: 1;
  visibility: visible;
}

.settings-panel {
  width: min(95%, 600px);
  padding: 32px;
  border-radius: 28px;
  background: var(--panel-bg, rgba(10, 8, 26, 0.96));
  border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.12));
  box-shadow: 0 0 50px var(--primary-glow, rgba(212, 0, 255, 0.3));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.settings-overlay.open .settings-panel {
  transform: scale(1);
}

.settings-panel .theme-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22) !important;
}

.settings-panel .theme-card:hover {
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.settings-panel .theme-card.active {
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.settings-panel .theme-name {
  color: #ffffff !important;
}

.settings-panel .t-btn-preview {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.settings-panel .t-btn-preview:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px) !important;
  filter: brightness(1.05) !important;
}

.settings-panel .t-btn-apply {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

.settings-panel .t-btn-apply:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
  transform: translateY(-1px) !important;
  filter: brightness(1.05) !important;
}

.settings-panel .theme-card.active .t-btn-apply {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 48px rgba(255, 255, 255, 0.2) !important;
  filter: brightness(1.1) !important;
}

.settings-panel .toggle-row {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.settings-panel .switch input:checked + .slider {
  background: var(--theme-highlight, #d400ff) !important;
}

.settings-panel .settings-title,
.settings-panel .toggle-label {
  color: #ffffff !important;
}

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

.settings-title {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.theme-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

#card-abyss .theme-name {
  color: #2563eb !important;
}

#card-nebula .theme-name {
  color: #d400ff !important;
}

#card-scarlet .theme-name {
  color: #ff003c !important;
}

.toggle-label {
  color: #ffffff;
}

.close-settings {
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--text-secondary);
  transition: transform 0.25s ease, color 0.25s ease;
}

.close-settings:hover {
  transform: none;
  color: var(--text-secondary);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.theme-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.theme-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.theme-card.active {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.theme-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.theme-actions {
  display: flex;
  gap: 10px;
}

.t-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.25s ease, filter 0.25s ease, background 0.25s ease;
}

.t-btn-preview {
  background: rgba(255, 255, 255, 0.08);
  color: #d7d8e0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.t-btn-preview:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.t-btn-apply {
  background: rgba(255, 255, 255, 0.08);
  color: #d7d8e0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.t-btn-apply:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.t-btn-apply:active,
.t-btn-apply.active,
.t-btn-apply.applied {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 48px rgba(255, 255, 255, 0.2);
  filter: brightness(1.1);
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: 0.3s ease;
}

.slider:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: 0.3s ease;
}

.switch input:checked + .slider {
  background: var(--theme-highlight, #d400ff);
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}

.preview-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(160px);
  background: var(--panel-bg, rgba(12, 16, 28, 0.95));
  backdrop-filter: blur(18px);
  border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
  padding: 14px 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3000;
  color: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.preview-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
}

.tb-cancel {
  background: rgba(255, 255, 255, 0.08);
}

.tb-save {
  background: var(--primary);
}

body.theme-original {
  --bg-primary: #000000;
  --bg-secondary: #454444;
  --bg-tertiary: #000000;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-dark: #0a0a0a;
  --border-primary: rgba(255, 255, 255, 0.18);
  --border-secondary: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --primary: #141414;
  --primary-dark: #131313;
  --primary-light: #131313;
  --secondary: #f59e0b;
  --accent: #F5F5F5;
  --navbar-bg: rgba(20, 20, 20, 0.85);
  --navbar-border: rgba(255, 255, 255, 0.08);
  --dropdown-bg: rgba(23, 23, 23, 0.85);
  --panel-bg: rgba(23, 23, 23, 0.85);
  --panel-border: rgba(255, 255, 255, 0.12);
  --premium-glow-color: #f59e0b;
  --primary-glow: rgba(255, 255, 255, 0.15);
  --theme-highlight: #f59e0b;
}

body.theme-original .executor-count,
body.theme-original .hero-title .gradient-text,
body.theme-original .stat-number {
  color: var(--text-primary) !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  background: none !important;
}

/* Original theme: navbar dropdown icons should be visible (not dark) */
body.theme-original .nav-item i {
  color: #a1a1aa !important;
}

/* Original theme: footer links glow white on hover */
body.theme-original .footer-links a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255,255,255,0.5), 0 0 20px rgba(255,255,255,0.3) !important;
}

body.theme-original .footer-bottom-links a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255,255,255,0.5), 0 0 20px rgba(255,255,255,0.3) !important;
}

/* Original theme: filter buttons glow white on hover & active */
body.theme-original .filter-tag:hover {
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

body.theme-original .filter-tag.active {
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.15) !important;
}

/* Original theme: executor cards glow white on hover */
body.theme-original .executor-card:hover {
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.15), var(--shadow-xl) !important;
}

body.theme-light {
  --bg-primary: #eef2f8;
  --bg-secondary: #f6f8fb;
  --bg-tertiary: #eef2f8;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-dark: #e9eef6;
  --navbar-bg: rgba(255, 255, 255, 0.96);
  --navbar-border: rgba(148, 163, 184, 0.12);
  --dropdown-bg: rgba(255, 255, 255, 0.96);
  --panel-bg: rgba(255, 255, 255, 0.98);
  --panel-border: rgba(148, 163, 184, 0.14);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #60a5fa;
  --secondary: #f59e0b;
  --accent: #0f172a;
  --border-primary: rgba(148, 163, 184, 0.18);
  --border-secondary: rgba(148, 163, 184, 0.1);
  --premium-glow-color: #d4d8dd;
  --primary-glow: rgba(29, 78, 216, 0.25);
}

body.theme-light .executor-card,
body.theme-light .feature-card,
body.theme-light .search-box,
body.theme-light .filter-tag,
body.theme-light .dropdown-menu,
body.theme-light .theme-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-primary) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .executor-card:hover,
body.theme-light .feature-card:hover,
body.theme-light .filter-tag:hover,
body.theme-light .theme-card:hover {
  background: var(--bg-card-hover) !important;
}

body.theme-light .search-box {
  background: var(--bg-card) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
}

body.theme-light .filter-tag {
  background: rgba(255, 255, 255, 0.92) !important;
}

body.theme-light .t-btn-preview {
  background: rgba(15, 23, 42, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #f8fafc !important;
}

body.theme-light .t-btn-preview:hover {
  background: rgba(15, 23, 42, 1) !important;
}

body.theme-light .theme-name {
  color: #0f172a !important;
}

body.theme-light .settings-panel .theme-card,
body.theme-light .settings-panel .theme-card:hover,
body.theme-light .settings-panel .theme-card.active {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22) !important;
}

body.theme-light .settings-panel .theme-name {
  color: #ffffff !important;
}

body.theme-abyss {
  --bg-primary: #050814;
  --bg-secondary: #111827;
  --bg-tertiary: #172554;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --bg-dark: #050814;
  --navbar-bg: rgba(10, 12, 28, 0.72);
  --navbar-border: rgba(148, 163, 184, 0.18);
  --dropdown-bg: rgba(12, 18, 38, 0.96);
  --panel-bg: rgba(12, 16, 28, 0.95);
  --panel-border: rgba(148, 163, 184, 0.18);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --primary: #00f2ff;
  --secondary: #94a3b8;
  --accent: #ffffff;
  --premium-glow-color: #00f2ff;
  --primary-glow: rgba(0, 242, 255, 0.3);
  --theme-highlight: #00f2ff;
}

body.theme-nebula {
  --bg-primary: #12001f;
  --bg-secondary: #1e0032;
  --bg-tertiary: #2b0050;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.12);
  --bg-dark: #12001f;
  --navbar-bg: rgba(22, 2, 50, 0.7);
  --navbar-border: rgba(212, 0, 255, 0.22);
  --dropdown-bg: rgba(20, 0, 48, 0.95);
  --panel-bg: rgba(22, 0, 60, 0.96);
  --panel-border: rgba(212, 0, 255, 0.22);
  --text-primary: #ffffff;
  --text-secondary: #e0b0ff;
  --primary: #d400ff;
  --secondary: #f4b7ff;
  --accent: #ffffff;
  --premium-glow-color: #d400ff;
  --primary-glow: rgba(212, 0, 255, 0.4);
  --theme-highlight: #d400ff;
}

body.theme-scarlet {
  --bg-primary: #050000;
  --bg-secondary: #2a0003;
  --bg-tertiary: #46000b;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --bg-dark: #050000;
  --navbar-bg: rgba(30, 0, 10, 0.72);
  --navbar-border: rgba(255, 0, 60, 0.25);
  --dropdown-bg: rgba(30, 0, 10, 0.96);
  --panel-bg: rgba(30, 0, 10, 0.96);
  --panel-border: rgba(255, 0, 60, 0.25);
  --text-primary: #ffffff;
  --text-secondary: #b38888;
  --primary: #ff003c;
  --secondary: #fda4af;
  --accent: #ffffff;
  --premium-glow-color: #ff003c;
  --primary-glow: rgba(255, 0, 60, 0.35);
  --theme-highlight: #ff003c;
}

body.theme-abyss {
  --download-btn-glow-hover: rgba(0, 123, 255, 0.36);
  --primary-glow: rgba(0, 242, 255, 0.3);
}

body.theme-nebula {
  --download-btn-glow-hover: rgba(128, 0, 128, 0.36);
}

body.theme-scarlet {
  --download-btn-glow-hover: rgba(220, 20, 60, 0.36);
}

/* ── NO-GLASS: solid backgrounds when glass effects are disabled ── */
body.no-glass .navbar {
  background: var(--navbar-bg, var(--bg-secondary)) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
}

body.no-glass .settings-panel {
  background: var(--panel-bg, var(--bg-tertiary)) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .dropdown-menu {
  background: var(--dropdown-bg, var(--bg-secondary)) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .executor-card {
  background: var(--bg-tertiary) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .executor-card.featured,
body.no-glass .executor-card.premium {
  background: var(--bg-tertiary) !important;
}

body.no-glass .feature-card {
  background: var(--bg-tertiary) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .search-box {
  background: var(--bg-tertiary) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .search-input {
  background: transparent !important;
}

body.no-glass .filter-tag {
  background: var(--bg-tertiary) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .hero-badge {
  background: var(--bg-card) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .search-suggestions {
  background: var(--bg-secondary) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .footer {
  background: var(--bg-tertiary) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .footer-bottom {
  background: var(--bg-tertiary) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: 1px solid var(--border-primary) !important;
}

body.no-glass .social-link {
  background: var(--bg-card) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .icon-btn {
  background: var(--bg-card) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .preview-toast {
  background: var(--bg-secondary) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .settings-overlay {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .toggle-row {
  background: var(--bg-card) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .section-icon {
  background: var(--bg-card) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.no-glass .theme-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: fixed;
    top: 84px;
    right: 16px;
    left: 16px;
    width: auto;
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════
   PER-THEME ACTIVE CARD HIGHLIGHTS
   Each theme highlights its own card + apply button
   in its signature colour. Slider also adapts via
   --theme-highlight on .switch input:checked + .slider
   ══════════════════════════════════════════════════════ */

/* ── ORIGINAL → Gold ── */
body.theme-original #card-original.active,
body.theme-original .settings-panel #card-original.active {
  border-color: rgba(245, 158, 11, 0.75) !important;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.28) !important;
  background: rgba(245, 158, 11, 0.08) !important;
}
body.theme-original .settings-panel #card-original.active .t-btn-apply,
body.theme-original #card-original.active .t-btn-apply.applied {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fff8e1 !important;
  border-color: rgba(245, 158, 11, 0.7) !important;
  box-shadow: 0 0 48px rgba(245, 158, 11, 0.55) !important;
  filter: brightness(1.1) !important;
}

/* ── ABYSS → Cyan ── */
body.theme-abyss #card-abyss.active,
body.theme-abyss .settings-panel #card-abyss.active {
  border-color: rgba(0, 242, 255, 0.75) !important;
  box-shadow: 0 0 40px rgba(0, 242, 255, 0.26) !important;
  background: rgba(0, 242, 255, 0.07) !important;
}
body.theme-abyss .settings-panel #card-abyss.active .t-btn-apply,
body.theme-abyss #card-abyss.active .t-btn-apply.applied {
  background: rgba(0, 242, 255, 0.12) !important;
  color: #e0feff !important;
  border-color: rgba(0, 242, 255, 0.65) !important;
  box-shadow: 0 0 48px rgba(0, 242, 255, 0.5) !important;
  filter: brightness(1.1) !important;
}

/* ── NEBULA → Purple (existing default, now explicit) ── */
body.theme-nebula #card-nebula.active,
body.theme-nebula .settings-panel #card-nebula.active {
  border-color: rgba(212, 0, 255, 0.75) !important;
  box-shadow: 0 0 40px rgba(212, 0, 255, 0.28) !important;
  background: rgba(212, 0, 255, 0.08) !important;
}
body.theme-nebula .settings-panel #card-nebula.active .t-btn-apply,
body.theme-nebula #card-nebula.active .t-btn-apply.applied {
  background: rgba(212, 0, 255, 0.14) !important;
  color: #f8e8ff !important;
  border-color: rgba(212, 0, 255, 0.65) !important;
  box-shadow: 0 0 48px rgba(212, 0, 255, 0.55) !important;
  filter: brightness(1.1) !important;
}

/* ── SCARLET → Red ── */
body.theme-scarlet #card-scarlet.active,
body.theme-scarlet .settings-panel #card-scarlet.active {
  border-color: rgba(255, 0, 60, 0.75) !important;
  box-shadow: 0 0 40px rgba(255, 0, 60, 0.28) !important;
  background: rgba(255, 0, 60, 0.08) !important;
}
body.theme-scarlet .settings-panel #card-scarlet.active .t-btn-apply,
body.theme-scarlet #card-scarlet.active .t-btn-apply.applied {
  background: rgba(255, 0, 60, 0.14) !important;
  color: #ffe4e8 !important;
  border-color: rgba(255, 0, 60, 0.65) !important;
  box-shadow: 0 0 48px rgba(255, 0, 60, 0.55) !important;
  filter: brightness(1.1) !important;
}

/* ── LIGHT THEME → Blue (settings panel stays dark, keep white overrides) ── */
body.theme-light #card-original.active,
body.theme-light #card-abyss.active,
body.theme-light #card-nebula.active,
body.theme-light #card-scarlet.active,
body.theme-light .settings-panel .theme-card.active {
  border-color: rgba(29, 78, 216, 0.75) !important;
  box-shadow: 0 0 40px rgba(29, 78, 216, 0.26) !important;
  background: rgba(29, 78, 216, 0.08) !important;
}
