/* ============================================
   TermuxVoid APT Repository - Main Stylesheet
   Professional Dark Theme with Glassmorphism
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0f0a;
  --bg-secondary: #0d150d;
  --bg-tertiary: #111b11;
  --bg-card: rgba(10, 20, 10, 0.7);
  --bg-card-hover: rgba(10, 20, 10, 0.9);
  --glass: rgba(0, 255, 65, 0.02);
  --glass-border: rgba(0, 255, 65, 0.08);
  --text-primary: #e0ffe0;
  --text-secondary: #7aff7a;
  --text-muted: #3aff3a;
  --accent: #00ff41;
  --accent-dim: #00cc33;
  --accent-glow: rgba(0, 255, 65, 0.1);
  --accent-glow-strong: rgba(0, 255, 65, 0.25);
  --cyan: #00e5ff;
  --violet: #a78bfa;
  --border: rgba(0, 255, 65, 0.1);
  --border-light: rgba(0, 255, 65, 0.18);
  --border-accent: rgba(0, 255, 65, 0.4);
  --success: #00ff41;
  --info: #00e5ff;
  --danger: #ff3333;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 255, 65, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1140px;
  --header-height: 68px;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 10%, rgba(0, 255, 65, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 80%, rgba(0, 229, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #00ffaa;
}

::selection {
  background: var(--accent);
  color: #000;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-left: 1px solid var(--border);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-dim);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* --- Scanline Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 1px,
    rgba(0, 0, 0, 0.08) 1px,
    rgba(0, 0, 0, 0.08) 2px
  );
  pointer-events: none;
  z-index: 9998;
}

/* --- Header --- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: var(--header-height);
  background: rgba(10, 15, 10, 0.9);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(0, 255, 65, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 20px rgba(0, 255, 65, 0.05);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.header__logo img {
  height: 36px;
  width: auto;
  border-radius: 6px;
}

.header__logo:hover {
  color: var(--accent);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header__nav a {
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.header__nav a:hover,
.header__nav a.active {
  background: var(--accent-glow);
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.menu-btn:hover {
  background: var(--glass);
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background:
    radial-gradient(ellipse at center, rgba(0, 255, 65, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 50%, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(167, 139, 250, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, var(--accent) 0%, #00ffaa 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

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

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
}

.hero__badges {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero__badges img {
  height: 28px;
  border-radius: 4px;
  transition: all var(--transition);
}

.hero__badges img:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.3));
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  background: linear-gradient(135deg, var(--accent) 0%, #00cc33 100%);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0, 255, 65, 0.25);
  letter-spacing: 0.01em;
}

.hero__cta:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 255, 65, 0.35), 0 0 60px rgba(0, 255, 65, 0.15);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 32px rgba(0, 255, 65, 0.35), 0 0 60px rgba(0, 255, 65, 0.15); }
  50% { box-shadow: 0 8px 32px rgba(0, 255, 65, 0.45), 0 0 80px rgba(0, 255, 65, 0.25); }
}

/* --- Section Common --- */
.section {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.section__card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  transition: all var(--transition);
}

.section__card:hover {
  border-color: rgba(0, 255, 65, 0.25);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.08), 0 8px 40px rgba(0, 0, 0, 0.3);
}

.section__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.section__title .icon {
  font-size: 1.25rem;
  transition: all var(--transition);
  filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.3));
}

.section__card:hover .section__title .icon {
  filter: drop-shadow(0 0 12px rgba(0, 255, 65, 0.5));
  transform: scale(1.1);
}

.section__card > p {
  color: var(--text-secondary);
  line-height: 1.7;
  transition: all var(--transition);
}

.section__card:hover > p {
  text-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

/* --- Overview Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.stat {
  text-align: center;
  padding: 1.4rem 1rem;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(10, 20, 10, 0.8) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
}

.stat:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  font-family: var(--font-mono);
  text-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
  transition: all var(--transition);
}

.stat:hover .stat__number {
  text-shadow: 0 0 25px rgba(0, 255, 65, 0.5);
  transform: scale(1.05);
}

.stat__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

/* --- Search Section --- */
.search-section {
  margin-bottom: 2.5rem;
}

.search-wrapper {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}

.search__input {
  width: 100%;
  padding: 0.95rem 1.3rem 0.95rem 3.2rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--accent);
  font-size: 0.95rem;
  font-family: var(--font-mono);
  outline: none;
  transition: all var(--transition);
}

.search__input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 30px rgba(0, 255, 65, 0.15);
  background: var(--bg-secondary);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
  transition: color var(--transition);
}

.search__input:focus ~ .search__icon,
.search-wrapper:focus-within .search__icon {
  color: var(--accent);
}

.search__clear {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem;
  display: none;
  transition: color var(--transition);
  line-height: 1;
}

.search__clear.visible {
  display: block;
}

.search__clear:hover {
  color: var(--text-primary);
}

.search__meta {
  text-align: center;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Tools Grid --- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
}

.tool-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  animation: fadeIn 0.4s ease forwards;
  opacity: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.tool-card:hover {
  border-color: rgba(0, 255, 65, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.1), 0 8px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

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

.tool-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.tool-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.tool-card__name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--accent);
  word-break: break-word;
  letter-spacing: -0.01em;
  font-family: var(--font-mono);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.2);
}

.tool-card__version {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
}

.tool-card__section {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  width: fit-content;
  text-transform: capitalize;
  letter-spacing: 0.03em;
}

.tool-card__desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card__footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.tool-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--cyan);
  transition: color var(--transition);
}

.tool-card__link:hover {
  color: #67e8f9;
  text-decoration: underline;
}

.tool-card__install {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--accent);
  background: rgba(0, 255, 65, 0.05);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-left: auto;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid rgba(0, 255, 65, 0.2);
}

.tool-card__install:hover {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
  text-shadow: none;
}

/* --- Loading State --- */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem;
  gap: 1.2rem;
}

.loader__spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader__text {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* --- Error State --- */
.error-state {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.error-state__icon {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
  color: var(--danger);
  text-shadow: 0 0 15px rgba(255, 51, 51, 0.3);
}

.error-state__msg {
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  color: var(--danger);
}

.error-state__retry {
  padding: 0.55rem 1.4rem;
  background: linear-gradient(135deg, var(--accent) 0%, #00cc33 100%);
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.error-state__retry:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 255, 65, 0.3);
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 2.8rem;
  margin-bottom: 0.6rem;
  opacity: 0.7;
}

/* --- Installation --- */
.code-block {
  position: relative;
  margin: 0.9rem 0;
}

.code-block pre {
  background: var(--bg-tertiary);
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  overflow-x: auto;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  line-height: 1.7;
}

.code-block code {
  color: var(--text-primary);
}

.copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 1;
  background: var(--accent);
  border: none;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: #000;
  font-weight: 700;
  transition: all var(--transition);
  opacity: 0;
  font-family: inherit;
}

.code-block:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  background: #00ffaa;
  transform: scale(1.05);
}

.copy-btn.copied {
  background: var(--success);
  color: #000;
}

/* --- FAQ --- */
.faq-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin: 0.65rem 0;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-item summary {
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition);
  font-size: 0.95rem;
  font-family: var(--font-mono);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.faq-item__content {
  padding: 0 1.3rem 1.1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
  animation: slideDown 0.25s ease;
}

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

.faq-item__content ul {
  margin: 0.5rem 0;
  padding-left: 1.3rem;
}

.faq-item__content li {
  margin: 0.3rem 0;
}

.faq-item__content a {
  color: var(--cyan);
}

.faq-item__content a:hover {
  color: #67e8f9;
}

/* --- Community / Support --- */
.community {
  text-align: center;
}

.community__links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}

.community__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition);
}

.community__link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 255, 65, 0.12);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.community__note {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  padding: 2.8rem 2rem 1.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.8rem;
  border-top: 1px solid var(--border);
  margin-top: 3.5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.footer h3 {
  color: var(--accent);
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer h3::before {
  content: '# ';
  opacity: 0.5;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.87rem;
  line-height: 1.6;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin: 0.35rem 0;
}

.footer ul a {
  color: var(--text-muted);
  font-size: 0.87rem;
  transition: color var(--transition);
}

.footer ul a:hover {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.4);
  transform: translateX(3px);
  display: inline-block;
}

.footer__credits {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.3rem;
  font-size: 0.87rem;
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast--success {
  border-color: var(--success);
  box-shadow: 0 8px 32px rgba(52, 211, 153, 0.15);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 42px;
  height: 42px;
  background: var(--bg-tertiary);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 255, 65, 0.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header {
    padding: 0 1.2rem;
  }

  .header__nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    right: 0;
    width: 230px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 0 var(--radius-lg);
    padding: 0.6rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
  }

  .header__nav.open {
    display: flex;
  }

  .header__nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding: 3.5rem 1.2rem 2.5rem;
  }

  .section__card {
    padding: 1.6rem 1.3rem;
  }

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.2rem 1.5rem;
  }
}

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

  .hero__title {
    font-size: 1.7rem;
  }

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

  .community__link {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Tool Detail Page
   ============================================ */

.detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  transition: all var(--transition);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-left: -0.8rem;
  font-family: var(--font-mono);
}

.detail__back:hover {
  color: var(--accent);
  background: var(--accent-glow);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.detail__hero {
  margin-bottom: 2.2rem;
}

.detail__name {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
  font-family: var(--font-mono);
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.detail__version {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.detail__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.meta-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  transition: all var(--transition);
}

.meta-card:hover {
  border-color: var(--border-light);
}

.meta-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
}

.meta-card__value {
  font-size: 0.95rem;
  color: var(--text-primary);
  word-break: break-word;
  font-weight: 500;
}

.meta-card__value a {
  color: var(--cyan);
}

.meta-card__value a:hover {
  color: #67e8f9;
}

.detail__section {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition);
}

.detail__section:hover {
  border-color: var(--border-light);
}

.detail__section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  font-family: var(--font-mono);
}

.detail__section-title::before {
  content: '> ';
  opacity: 0.6;
}

.detail__desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.detail__deps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail__dep-tag {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 999px;
  font-size: 0.83rem;
  font-family: var(--font-mono);
  color: var(--accent);
  transition: all var(--transition);
}

.detail__dep-tag:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

.detail__checksum {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  word-break: break-all;
  background: var(--bg-tertiary);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  position: relative;
  line-height: 1.6;
}

.detail__checksum .copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.detail__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.detail__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.detail__btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #00cc33 100%);
  color: #000;
  box-shadow: 0 2px 12px rgba(0, 255, 65, 0.2);
  font-family: var(--font-mono);
  font-weight: 700;
}

.detail__btn--primary:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 255, 65, 0.35), 0 0 40px rgba(0, 255, 65, 0.15);
}

.detail__btn--secondary {
  background: var(--bg-tertiary);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 65, 0.3);
  font-family: var(--font-mono);
}

.detail__btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}
