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

:root {
  /* =========================================================
     COLOR SYSTEM
  ========================================================= */

  /* Brand */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.45);

  --secondary: #f59e0b;
  --secondary-light: #fbbf24;
  --secondary-glow: rgba(245, 158, 11, 0.45);

  --accent: #10b981;
  --accent-light: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.45);

  /* Status */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #38bdf8;

  /* =========================================================
     BACKGROUND SYSTEM
  ========================================================= */

  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;

  --bg-elevated: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.08);
  --bg-glass-strong: rgba(255, 255, 255, 0.12);

  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --bg-overlay: rgba(0, 0, 0, 0.65);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1, #818cf8);
  --gradient-accent: linear-gradient(135deg, #10b981, #34d399);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #fbbf24);
  --gradient-dark: linear-gradient(180deg, #0f0f23, #090914);

  /* =========================================================
     TEXT SYSTEM
  ========================================================= */

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-muted: #52525b;
  --text-inverted: #0f172a;

  /* Font sizes (fluid-ready) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Line heights */
  --leading-tight: 1.15;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* =========================================================
     BORDER & RADIUS SYSTEM
  ========================================================= */

  --border-primary: rgba(255, 255, 255, 0.12);
  --border-secondary: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(99, 102, 241, 0.6);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* =========================================================
     SHADOW & GLOW SYSTEM
  ========================================================= */

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.6);

  --shadow-glow-primary: 0 0 30px var(--primary-glow);
  --shadow-glow-accent: 0 0 30px var(--accent-glow);
  --shadow-glow-warm: 0 0 30px var(--secondary-glow);

  /* =========================================================
     MOTION & EFFECTS
  ========================================================= */

  --blur-sm: 6px;
  --blur-md: 12px;
  --blur-lg: 20px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* =========================================================
     LAYOUT & SPACING SYSTEM
  ========================================================= */

  --container-xs: 480px;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --section-spacing: 6rem;
  --container-padding: clamp(1rem, 4vw, 2.5rem);

  /* =========================================================
     Z-INDEX SCALE
  ========================================================= */

  --z-base: 1;
  --z-dropdown: 50;
  --z-sticky: 100;
  --z-fixed: 200;
  --z-overlay: 400;
  --z-modal: 600;
  --z-toast: 800;
  --z-max: 999;
}


/* =========================================================
   LIGHT THEME (Expanded & High-Quality)
========================================================= */
html[data-theme="light"] {
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;

  --bg-elevated: rgba(255, 255, 255, 0.9);
  --bg-card: rgba(15, 23, 42, 0.025);
  --bg-card-hover: rgba(15, 23, 42, 0.06);
  --bg-overlay: rgba(15, 23, 42, 0.45);

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  --text-inverted: #ffffff;

  /* Borders */
  --border-primary: rgba(15, 23, 42, 0.12);
  --border-secondary: rgba(15, 23, 42, 0.06);
  --border-focus: rgba(99, 102, 241, 0.5);

  /* Shadows (soft & natural for light mode) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.18);
  --shadow-xl: 0 30px 80px rgba(15, 23, 42, 0.25);
}

/* =========================================================
   RESET & BASE
========================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Disable mobile tap highlight */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Clickable elements */
button,
.btn,
.nav-link,
.filter-tag,
.copy-btn,
.theme-toggle {
  user-select: none;
  -webkit-touch-callout: none;
  cursor: pointer;
  touch-action: manipulation;
}

/* Allow text selection where required */
input,
textarea,
select,
.search-input,
.command-input,
p,
h1, h2, h3, h4, h5, h6,
.hero-description,
.detail-value,
.rating-text {
  user-select: text;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Root HTML */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-padding-top: 80px;
  font-size: 16px;
}

/* Body base */
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;
}

/* Media defaults */
img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Focus visibility (accessibility) */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Inputs (mobile-safe) */
input,
textarea,
select {
  font-size: 16px;
  font-family: inherit;
}


/* =========================================================
   MOBILE TOUCH TARGETS (Improved UX)
========================================================= */
.btn,
.filter-tag,
.nav-link,
.copy-btn,
.theme-toggle {
  min-height: 44px;
  min-width: 44px;
  padding-inline: 0.75rem;
  padding-block: 0.5rem;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

/* =========================================================
   BACKGROUND EFFECTS CONTAINER
========================================================= */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* =========================================================
   GRADIENT ORBS (Glass / Neon Style)
========================================================= */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  mix-blend-mode: screen;
  animation: orb-float 24s infinite ease-in-out;
  will-change: transform;
}

/* Orb Variants */
.orb-1 {
  width: clamp(280px, 35vw, 420px);
  height: clamp(280px, 35vw, 420px);
  background: radial-gradient(circle at 30% 30%,
    var(--primary-light),
    var(--primary));
  top: -20%;
  right: -15%;
  animation-delay: 0s;
}

.orb-2 {
  width: clamp(240px, 30vw, 360px);
  height: clamp(240px, 30vw, 360px);
  background: radial-gradient(circle at 30% 30%,
    var(--secondary),
    var(--accent));
  bottom: -20%;
  left: -15%;
  animation-delay: -12s;
}

.orb-3 {
  width: clamp(200px, 25vw, 300px);
  height: clamp(200px, 25vw, 300px);
  background: radial-gradient(circle at 30% 30%,
    var(--accent),
    var(--primary));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -6s;
}

/* =========================================================
   GRID PATTERN OVERLAY
========================================================= */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );
  background-size: 48px 48px;
  opacity: 0.4;
  mask-image: radial-gradient(circle at center, black 40%, transparent 75%);
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes orb-float {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  33% {
    transform: translate3d(40px, -30px, 0) rotate(120deg);
  }
  66% {
    transform: translate3d(-30px, 30px, 0) rotate(240deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(360deg);
  }
}

/* =========================================================
   REDUCED MOTION SUPPORT
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .gradient-orb {
    animation: none;
  }
}


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

.navbar.scrolled {
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-lg);
}

.navbar.hide {
  transform: translateY(-100%);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  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: linear-gradient(45deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.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;
  appearance: none;
  border: none;
}

.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 {
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@supports not (-webkit-background-clip: text) {
  .gradient-text {
    color: var(--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: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.hero-stats {
  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(--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;
}

.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);
  appearance: none;
}

.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: 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;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
  touch-action: manipulation;
  appearance: none;
}

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

.filter-tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* 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: 16px;
  color: var(--text-primary);
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 0.75rem;
  resize: none;
  overflow: hidden;
  appearance: none;
}

.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;
  padding: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  appearance: none;
}

.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;
    padding: 6px;
  }
}

/* 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: linear-gradient(45deg, var(--primary), var(--primary-light));
  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: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, 340px), 1fr)
  );
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: stretch;
}

/* Fallback for old browsers */
@supports not (display: grid) {
  .executors-grid,
  .features-grid,
  .footer-content {
    display: flex;
    flex-wrap: wrap;
  }

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

/* =========================================================
   EXECUTOR CARD
========================================================= */
.executor-card {
  position: relative;
  display: flex;
  flex-direction: column;

  background: var(--bg-card);
  backdrop-filter: blur(var(--blur-sm, 8px));

  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl, 20px);

  padding: clamp(1.25rem, 2vw, 1.75rem);

  transition:
    transform var(--transition-normal, 0.3s ease),
    box-shadow var(--transition-normal, 0.3s ease),
    border-color var(--transition-normal, 0.3s ease);

  overflow: hidden;
  will-change: transform;
}

/* Top gradient accent */
.executor-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--primary-light)
  );
  opacity: 0;
  transition: opacity var(--transition-normal, 0.3s ease);
}

/* Hover / focus */
.executor-card:hover,
.executor-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

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

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

/* =========================================================
   BADGES
========================================================= */
.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;

  padding: 0.25rem 0.75rem;
  border-radius: 999px;

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  background: var(--secondary);
  color: #fff;

  box-shadow: var(--shadow-md);
}

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

/* =========================================================
   CARD HEADER
========================================================= */
.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.executor-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

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

/* =========================================================
   RATING
========================================================= */
.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);
}

/* =========================================================
   DETAILS
========================================================= */
.card-details {
  margin-bottom: 1.25rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--border-secondary);
}

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

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

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

/* =========================================================
   STATUS INDICATOR
========================================================= */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  font-size: 0.85rem;
  font-weight: 600;
}

.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.6);
  animation: pulse 2s infinite;
}

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

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

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .status-online::before {
    animation: none;
  }
}

/* =========================================================
   ACTIONS
========================================================= */
.card-actions {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}


/* 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;
  appearance: none;
}

/* VNG / Vietnam-related Buttons - Updated with reliable CDN URL */
.btn-secondary[href*="vng" i],
.btn-secondary[href*="VNG" i],
.btn[href*="vng" i],
.btn[href*="VNG" i],
.btn-secondary[href*="mediafire"][href*="Vng" i],
.btn-secondary[href*="mediafire"][href*="VNG" i],
.btn-secondary[href*="mediafire"][href*="Vietnam" i],
.btn-secondary[href*="wrdcdn"][href*="Vietnam" i] {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://flagcdn.com/w320/vn.png') !important;
  background-size: cover !important;
  background-position: center !important;
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  font-weight: 700 !important;
}

.btn-secondary[href*="vng" i]:hover,
.btn-secondary[href*="VNG" i]:hover,
.btn[href*="vng" i]:hover,
.btn[href*="VNG" i]:hover,
.btn-secondary[href*="mediafire"][href*="Vng" i]:hover,
.btn-secondary[href*="mediafire"][href*="VNG" i]:hover,
.btn-secondary[href*="mediafire"][href*="Vietnam" i]:hover,
.btn-secondary[href*="wrdcdn"][href*="Vietnam" i]:hover {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://flagcdn.com/w320/vn.png') !important;
  background-size: cover !important;
  background-position: center !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Fallback solid color if image fails */
.btn-secondary[href*="vng" i],
.btn-secondary[href*="VNG" i],
.btn[href*="vng" i],
.btn[href*="VNG" i],
.btn-secondary[href*="mediafire"][href*="Vng" i],
.btn-secondary[href*="mediafire"][href*="VNG" i],
.btn-secondary[href*="mediafire"][href*="Vietnam" i],
.btn-secondary[href*="wrdcdn"][href*="Vietnam" i] {
  background-color: #da251d !important; /* Vietnam flag red */
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
}

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

.btn-download {
  background: linear-gradient(45deg, var(--accent), #059669);
  color: white;
  flex: 1;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-premium {
  background: linear-gradient(45deg, var(--secondary), #d97706);
  color: white;
  flex: 1;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--primary);
  color: white;
}

.btn-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 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: var(--bg-secondary);
}

.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: 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: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.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: var(--bg-tertiary);
  border-top: 1px solid var(--border-primary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem var(--container-padding) 2rem;
  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: var(--transition);
}

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

.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 var(--border-primary);
  padding: 2rem var(--container-padding);
}

.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;
}

/* Focus styles for accessibility */
.btn:focus-visible,
.filter-tag:focus-visible,
.nav-link:focus-visible,
.theme-toggle:focus-visible,
.copy-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* 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;
  }

  .nav-menu.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-top: none;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    z-index: 1001;
  }
}

@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;
  }

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

/* 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;
  }
}

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

/* 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.6);
    --bg-card: rgba(255, 255, 255, 0.1);
    --text-secondary: #ffffff;
  }
}

/* Color scheme support */
@media (prefers-color-scheme: dark) {
  html[data-theme="dark"] {
    color-scheme: dark;
  }
}

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

/* Navbar scroll classes (used by JS) */
.navbar.scrolled {
  background: rgba(15, 15, 35, 0.98);
}

.navbar.hide {
  transform: translateY(-100%);
}
