/* ==========================================================================
   UNDERGROUND TECH PORTAL // CYBER-BRUTALIST STYLING
   STRICT RULE: NO ICONS. PURE HIGH-TECH TYPOGRAPHY & BRACKETED TAGS.
   ========================================================================== */

:root {
  --bg-void: #04060a;
  --bg-surface: #080d17;
  --bg-surface-elevated: #0f172a;
  --border-dim: rgba(0, 240, 255, 0.15);
  --border-bright: #00f0ff;
  --border-crimson: #ff003c;
  --border-green: #00ff66;
  
  --neon-cyan: #00f0ff;
  --neon-crimson: #ff003c;
  --neon-green: #00ff66;
  --neon-amber: #ffb703;
  
  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-display);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Matrix Scanlines Overlay */
body::after {
  content: " ";
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.3;
}

/* Sound / SFX Toggle Header Pill */
.sfx-status-pill {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(8, 13, 23, 0.9);
  border: 1px solid var(--border-bright);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  transition: var(--transition-fast);
}
.sfx-status-pill:hover {
  background: var(--neon-cyan);
  color: var(--bg-void);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}
.sfx-status-pill.muted {
  border-color: var(--text-dim);
  color: var(--text-dim);
  box-shadow: none;
}

/* Navigation Bar */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 6, 10, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dim);
}

.nav-container {
  max-width: min(94vw, 1400px);
  margin: 0 auto;
  padding: 14px clamp(14px, 2.5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-bracket {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-name {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(0.92rem, 1.8vw, 1.1rem);
  letter-spacing: 1px;
  color: var(--text-main);
  text-transform: uppercase;
}

.brand-highlight {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 20px);
}

.nav-link {
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 1vw, 0.82rem);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
}

.nav-mobile-toggle {
  display: none;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}
.nav-mobile-toggle:hover, .nav-mobile-toggle.active {
  background: var(--neon-cyan);
  color: var(--bg-void);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.nav-admin-link {
  color: var(--neon-amber);
  border: 1px solid rgba(255, 183, 3, 0.4);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 183, 3, 0.05);
}
.nav-admin-link:hover {
  background: var(--neon-amber);
  color: var(--bg-void);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.4);
}

/* Google AdSense: Invisible containers that only show when ads load */
.ad-slot-hidden {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ad-slot-hidden .adsbygoogle {
  display: block;
}

.ad-slot-hidden:empty {
  display: none;
}

/* Page Hero Section */
.hero-section {
  max-width: min(94vw, 1400px);
  margin: 20px auto 0;
  padding: 0 clamp(14px, 2.5vw, 32px);
}

.hero-banner-frame {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: clamp(20px, 3.5vw, 42px) clamp(16px, 3vw, 36px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.hero-banner-frame::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan);
}

.hero-telemetry-tag {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.1vw, 0.74rem);
  font-weight: 700;
  color: var(--neon-green);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.5;
}

.hero-title {
  font-size: clamp(1.65rem, 4.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-title span {
  color: var(--neon-cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.hero-lead {
  font-size: clamp(0.92rem, 1.6vw, 1.12rem);
  color: var(--text-secondary);
  max-width: 850px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* High-Tech Brutalist Buttons */
.btn-cyber {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-cyber-cyan {
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
}
.btn-cyber-cyan:hover {
  background: var(--neon-cyan);
  color: var(--bg-void);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.btn-cyber-dim {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-cyber-dim:hover {
  border-color: var(--text-main);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.btn-cyber-amber {
  background: rgba(255, 183, 3, 0.1);
  color: var(--neon-amber);
  border: 1px solid var(--neon-amber);
}
.btn-cyber-amber:hover {
  background: var(--neon-amber);
  color: var(--bg-void);
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.5);
}

.btn-cyber-green {
  background: rgba(0, 255, 102, 0.12);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
}
.btn-cyber-green:hover {
  background: var(--neon-green);
  color: var(--bg-void);
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.5);
}

/* PINNED LATEST VIDEO SPOTLIGHT CARD */
.pinned-spotlight-wrap {
  max-width: min(94vw, 1400px);
  margin: 30px auto 0;
  padding: 0 clamp(14px, 2.5vw, 32px);
}

.pinned-card {
  background: linear-gradient(135deg, rgba(255, 0, 60, 0.06), rgba(0, 240, 255, 0.06));
  border: 1px solid var(--border-crimson);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 32px);
  position: relative;
  box-shadow: 0 0 30px rgba(255, 0, 60, 0.15);
  overflow: hidden;
}

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

.pinned-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 0, 60, 0.18);
  color: var(--neon-crimson);
  border: 1px solid var(--neon-crimson);
  padding: 4px 10px;
  letter-spacing: 1px;
}

.pinned-stars {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--neon-amber);
}

.pinned-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pinned-tagline {
  font-size: clamp(0.88rem, 1.4vw, 1.05rem);
  color: var(--neon-cyan);
  font-weight: 500;
  margin-bottom: 12px;
}

.pinned-desc {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 950px;
  line-height: 1.6;
}

/* Monospace Command Snippet Box */
.terminal-command-box {
  background: #020408;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-bottom: 20px;
  min-width: 0;
  max-width: 100%;
}

.command-code {
  color: var(--neon-green);
  overflow-x: auto;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
  font-size: 0.8rem;
  scrollbar-width: thin;
}

.copy-cmd-btn {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.copy-cmd-btn:hover {
  background: var(--neon-cyan);
  color: var(--bg-void);
}

/* Filters & Search Controls */
.controls-section {
  max-width: min(94vw, 1400px);
  margin: 30px auto 0;
  padding: 0 clamp(14px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-input-field {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.2vw, 0.92rem);
  outline: none;
  transition: var(--transition-fast);
}
.search-input-field:focus {
  border-color: var(--border-bright);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.category-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1vw, 0.76rem);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-chip:hover {
  border-color: var(--neon-cyan);
  color: var(--text-main);
}
.filter-chip.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

/* Grid of Tools Cards */
.tools-grid-section {
  max-width: min(94vw, 1400px);
  margin: 24px auto 40px;
  padding: 0 clamp(14px, 2.5vw, 32px);
}

.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.section-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.tools-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-fast);
  min-width: 0;
  overflow: hidden;
  word-wrap: break-word;
}

.tool-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.12);
}

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-cat-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 2px 6px;
}

.card-stars-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-amber);
}

.card-tool-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.card-tool-tagline {
  font-size: 0.85rem;
  color: var(--neon-green);
  font-weight: 500;
  margin-bottom: 12px;
}

.card-tool-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.card-illegal-note {
  background: rgba(255, 0, 60, 0.06);
  border-left: 2px solid var(--neon-crimson);
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #fda4af;
  margin-bottom: 16px;
}

.card-actions-row {
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.card-actions-row .btn-cyber {
  flex: 1;
}

/* Tool Deep Dive Page */
.tool-detail-container {
  max-width: min(94vw, 1000px);
  margin: 30px auto 60px;
  padding: 0 clamp(14px, 2.5vw, 32px);
}

.detail-header-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  padding: 32px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.detail-tags-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.detail-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
}

.detail-tag.cyan { color: var(--neon-cyan); border-color: var(--neon-cyan); }
.detail-tag.green { color: var(--neon-green); border-color: var(--neon-green); }
.detail-tag.amber { color: var(--neon-amber); border-color: var(--neon-amber); }

.detail-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.detail-subtitle {
  font-size: 1.15rem;
  color: var(--neon-cyan);
  margin-bottom: 20px;
}

.detail-section-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 24px;
}

.detail-section-heading {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 6px;
}

.detail-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-feature-item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-feature-bullet {
  color: var(--neon-green);
  font-weight: 700;
}

/* Static Content Pages (About, Privacy, Terms) */
.article-container {
  max-width: 860px;
  margin: 40px auto 70px;
  padding: 0 24px;
}

.article-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 36px;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--neon-cyan);
  margin-bottom: 8px;
}

.article-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 12px;
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 28px 0 10px;
}

.article-content p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.article-content ul {
  margin-left: 20px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.article-content li {
  margin-bottom: 8px;
}

/* Admin Panel Styling */
.admin-container {
  max-width: 800px;
  margin: 30px auto 60px;
  padding: 0 24px;
}

.admin-panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--neon-amber);
  box-shadow: 0 0 30px rgba(255, 183, 3, 0.15);
  border-radius: var(--radius-md);
  padding: 32px;
}

.admin-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.admin-title {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--neon-amber);
  margin-bottom: 6px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  background: #04060a;
  border: 1px solid var(--border-dim);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--neon-amber);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.3);
}

select.form-control {
  cursor: pointer;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-dim);
  background: #030508;
  padding: 40px 24px 30px;
  margin-top: 60px;
}

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

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-link:hover {
  color: var(--neon-cyan);
}

/* ==========================================================================
   RESPONSIVE DESIGN // ALL DEVICES OPTIMIZED
   Breakpoints: 1440px (XL) | 1024px (Desktop) | 768px (Tablet) | 480px (Phone) | 360px (Small Phone)
   ========================================================================== */

/* --- Ultra-Wide Desktop Screens (1600px+) --- */
@media (min-width: 1600px) {
  .nav-container,
  .hero-section,
  .pinned-spotlight-wrap,
  .tools-grid-section,
  .controls-section {
    max-width: 1540px;
  }
  .tools-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* --- Standard Desktop Screens (1200px - 1599px) --- */
@media (min-width: 1200px) and (max-width: 1599px) {
  .tools-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* --- Laptops & Landscape Tablets (900px - 1199px) --- */
@media (min-width: 900px) and (max-width: 1199px) {
  .tools-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .pinned-title {
    font-size: 1.6rem;
  }
}

/* --- Tablets (681px - 899px) --- */
@media (min-width: 681px) and (max-width: 899px) {
  .tools-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .nav-container {
    padding: 12px 18px;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* --- Mobile Devices (<= 768px) --- */
@media (max-width: 768px) {
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    position: relative;
  }
  .nav-mobile-toggle {
    display: block !important;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(4, 6, 10, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    z-index: 150;
  }
  .nav-links.nav-open {
    display: flex;
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    text-align: left;
  }
  .nav-link.active {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.1);
  }

  .hero-section {
    padding: 0 16px;
  }
  .hero-title {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
  }
  .hero-lead {
    font-size: 0.92rem;
  }
  .hero-banner-frame {
    padding: 24px 18px;
  }
  .hero-telemetry-tag {
    font-size: 0.62rem;
    word-break: break-word;
    white-space: normal;
    line-height: 1.5;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .hero-actions .btn-cyber {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 44px;
  }
  .tools-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tools-grid-section {
    padding: 0 16px;
    margin: 20px auto 30px;
  }
  .controls-section {
    padding: 0 16px;
  }
  .category-filter-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-filter-chips::-webkit-scrollbar {
    display: none;
  }
  .filter-chip {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 38px;
    font-size: 0.72rem;
    padding: 6px 12px;
  }
  .pinned-spotlight-wrap {
    padding: 0 16px;
  }
  .pinned-card {
    padding: 18px;
  }
  .pinned-title {
    font-size: 1.35rem;
  }
  .pinned-tagline {
    font-size: 0.88rem;
  }
  .pinned-desc {
    font-size: 0.85rem;
  }
  .pinned-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .terminal-command-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  .command-code {
    width: 100%;
    font-size: 0.72rem;
    white-space: pre-wrap;
    word-break: break-all;
  }
  .copy-cmd-btn {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    min-height: 42px;
  }
  .tool-detail-container {
    padding: 0 16px;
    margin: 20px auto 40px;
  }
  .detail-header-panel {
    padding: 20px;
  }
  .detail-title {
    font-size: 1.6rem;
  }
  .detail-subtitle {
    font-size: 1rem;
  }
  .detail-section-block {
    padding: 18px;
  }
  .detail-feature-item {
    font-size: 0.78rem;
  }
  .section-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .article-container {
    margin: 24px auto 40px;
    padding: 0 16px;
  }
  .article-panel {
    padding: 22px;
  }
  .article-title {
    font-size: 1.5rem;
  }
  .article-content h2 {
    font-size: 1.2rem;
  }
  .admin-container {
    padding: 0 16px;
  }
  .admin-panel-card {
    padding: 20px;
  }
  .admin-title {
    font-size: 1.15rem;
  }
  .admin-form-row-2,
  .admin-form-row-3 {
    grid-template-columns: 1fr;
  }
  .card-tool-name {
    font-size: 1.15rem;
  }
  .card-tool-desc {
    font-size: 0.82rem;
  }
  .card-actions-row {
    flex-direction: column;
    gap: 8px;
  }
  .card-actions-row .btn-cyber {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .filter-chip {
    font-size: 0.68rem;
    padding: 6px 10px;
  }
  .site-footer {
    padding: 28px 16px 22px;
    margin-top: 40px;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .footer-brand {
    font-size: 0.72rem;
    line-height: 1.5;
  }
  .footer-links {
    justify-content: center;
    gap: 12px;
  }
  .footer-link {
    font-size: 0.7rem;
  }
  .sfx-status-pill {
    bottom: 14px;
    right: 14px;
    font-size: 0.65rem;
    padding: 5px 10px;
  }
  .btn-cyber {
    font-size: 0.74rem;
    padding: 9px 14px;
  }
}

/* --- Large Phones (480px) --- */
@media (max-width: 480px) {
  body {
    background-size: 24px 24px;
  }
  .hero-title {
    font-size: 1.45rem;
  }
  .hero-lead {
    font-size: 0.84rem;
  }
  .hero-banner-frame {
    padding: 18px 14px;
  }
  .hero-telemetry-tag {
    font-size: 0.58rem;
  }
  .brand-name {
    font-size: 0.88rem;
  }
  .brand-bracket {
    font-size: 0.95rem;
  }
  .nav-link {
    font-size: 0.66rem;
    padding: 5px 6px;
  }
  .pinned-card {
    padding: 14px;
  }
  .pinned-title {
    font-size: 1.15rem;
  }
  .pinned-badge {
    font-size: 0.62rem;
    padding: 3px 8px;
  }
  .tool-card {
    padding: 16px;
  }
  .card-tool-name {
    font-size: 1.05rem;
  }
  .card-tool-tagline {
    font-size: 0.78rem;
  }
  .card-illegal-note {
    font-size: 0.72rem;
    padding: 6px 8px;
  }
  .detail-title {
    font-size: 1.35rem;
  }
  .detail-header-panel {
    padding: 16px;
  }
  .detail-tag {
    font-size: 0.64rem;
    padding: 2px 6px;
  }
  .detail-section-block {
    padding: 14px;
  }
  .detail-section-heading {
    font-size: 0.82rem;
  }
  .detail-feature-item {
    font-size: 0.72rem;
  }
  .article-panel {
    padding: 16px;
  }
  .article-title {
    font-size: 1.3rem;
  }
  .article-date {
    font-size: 0.68rem;
  }
  .article-content p {
    font-size: 0.88rem;
  }
  .article-content h2 {
    font-size: 1.1rem;
    margin: 20px 0 8px;
  }
  .admin-panel-card {
    padding: 16px;
  }
  .admin-title {
    font-size: 1rem;
  }
  .form-label {
    font-size: 0.7rem;
  }
  .form-control {
    font-size: 0.82rem;
    padding: 10px 12px;
  }
  .search-input-field {
    font-size: 0.8rem;
    padding: 11px 14px;
  }
  .filter-chip {
    font-size: 0.62rem;
    padding: 5px 8px;
  }
  .category-filter-chips {
    gap: 6px;
  }
  .section-title {
    font-size: 0.82rem;
  }
  .section-count {
    font-size: 0.68rem;
  }
  .terminal-command-box {
    font-size: 0.72rem;
  }
  .footer-brand {
    font-size: 0.65rem;
  }
  .footer-link {
    font-size: 0.65rem;
  }
  .footer-links {
    gap: 8px;
  }
}

/* --- Small Phones (360px and below) --- */
@media (max-width: 360px) {
  .hero-section,
  .tools-grid-section,
  .controls-section,
  .pinned-spotlight-wrap,
  .tool-detail-container,
  .article-container,
  .admin-container {
    padding: 0 10px;
  }
  .nav-container {
    padding: 10px 10px;
  }
  .hero-title {
    font-size: 1.25rem;
  }
  .hero-lead {
    font-size: 0.78rem;
  }
  .hero-banner-frame {
    padding: 14px 10px;
  }
  .brand-name {
    font-size: 0.78rem;
    letter-spacing: 0.5px;
  }
  .brand-bracket {
    font-size: 0.85rem;
  }
  .nav-link {
    font-size: 0.6rem;
  }
  .pinned-title {
    font-size: 1.05rem;
  }
  .card-tool-name {
    font-size: 0.95rem;
  }
  .btn-cyber {
    font-size: 0.66rem;
    padding: 8px 10px;
  }
  .detail-title {
    font-size: 1.2rem;
  }
  .article-title {
    font-size: 1.15rem;
  }
  .tool-card {
    padding: 12px;
  }
  .site-footer {
    padding: 20px 10px 16px;
  }
}

/* --- Touch Device Optimizations --- */
@media (hover: none) and (pointer: coarse) {
  .btn-cyber {
    min-height: 44px;
    padding: 12px 16px;
  }
  .nav-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .filter-chip {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }
  .copy-cmd-btn {
    min-height: 40px;
    padding: 8px 14px;
  }
  .sfx-status-pill {
    min-height: 36px;
    display: flex;
    align-items: center;
  }
  .tool-card:hover {
    transform: none;
  }
}

/* --- Landscape Phone Fix --- */
@media (max-height: 500px) and (orientation: landscape) {
  .nav-header {
    position: relative;
  }
  .hero-banner-frame {
    padding: 16px 18px;
  }
  .hero-title {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   INTERACTIVE WEB GUI RUNNER STYLES
   Zero-install client-side tool execution interface
   ========================================================================== */

.gui-runner-wrapper {
  margin: 36px 0;
  border: 1px solid var(--border-bright);
  background: var(--bg-surface);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.12), inset 0 0 15px rgba(0, 240, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.gui-runner-wrapper::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-amber), var(--neon-green));
}

.gui-runner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(0, 240, 255, 0.05);
  border-bottom: 1px solid var(--border-dim);
  font-family: var(--font-mono);
}

.gui-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gui-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.gui-header-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
}

.gui-tool-badge {
  font-size: 0.76rem;
  color: var(--neon-amber);
  background: rgba(255, 183, 3, 0.1);
  padding: 2px 8px;
  border: 1px solid rgba(255, 183, 3, 0.3);
}

.gui-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gui-switcher-label {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.gui-tool-select {
  background: var(--bg-void);
  color: var(--text-main);
  border: 1px solid var(--border-bright);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gui-tool-select:focus,
.gui-tool-select:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.gui-runner-body {
  padding: 24px;
}

.gui-module-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gui-module-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.gui-module-title {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--neon-cyan);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.gui-module-subtitle {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 700px;
}

.gui-pill-cyan,
.gui-pill-amber,
.gui-pill-crimson,
.gui-pill-green {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  white-space: nowrap;
}

.gui-pill-cyan {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.gui-pill-amber {
  color: var(--neon-amber);
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 0.3);
}

.gui-pill-crimson {
  color: var(--neon-crimson);
  background: rgba(255, 0, 60, 0.1);
  border: 1px solid rgba(255, 0, 60, 0.3);
}

.gui-pill-green {
  color: var(--neon-green);
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid rgba(0, 255, 102, 0.3);
}

/* Tabs */
.gui-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gui-tab-btn {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-dim);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gui-tab-btn:hover {
  color: var(--neon-cyan);
  border-color: rgba(0, 240, 255, 0.4);
}

.gui-tab-btn.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

/* Dropzone */
.gui-dropzone {
  border: 2px dashed rgba(0, 240, 255, 0.3);
  background: rgba(0, 0, 0, 0.25);
  padding: 28px 20px;
  text-align: center;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition-fast);
}

.gui-dropzone:hover,
.gui-dropzone.dragover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

.gui-drop-icon {
  font-size: 1.1rem;
  color: var(--neon-cyan);
  margin-bottom: 8px;
}

.gui-drop-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.gui-drop-hint {
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* 2 Columns & Form */
.gui-columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gui-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gui-form-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--neon-cyan);
  font-weight: 600;
}

.gui-input,
.gui-textarea {
  background: var(--bg-void);
  border: 1px solid var(--border-dim);
  color: var(--text-main);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
}

.gui-input:focus,
.gui-textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.gui-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* Action Buttons */
.gui-actions-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.gui-btn-primary,
.gui-btn-secondary,
.gui-btn-danger,
.gui-btn-amber {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gui-btn-primary {
  background: var(--neon-cyan);
  color: #000;
  border-color: var(--neon-cyan);
}

.gui-btn-primary:hover {
  box-shadow: 0 0 16px var(--neon-cyan);
  transform: translateY(-1px);
}

.gui-btn-amber {
  background: var(--neon-amber);
  color: #000;
  border-color: var(--neon-amber);
}

.gui-btn-amber:hover {
  box-shadow: 0 0 16px var(--neon-amber);
}

.gui-btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-dim);
}

.gui-btn-secondary:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.gui-btn-danger {
  background: rgba(255, 0, 60, 0.15);
  color: var(--neon-crimson);
  border-color: rgba(255, 0, 60, 0.4);
}

.gui-btn-danger:hover {
  background: var(--neon-crimson);
  color: #fff;
}

/* Terminal Log Monitor */
.gui-terminal-log {
  background: #000;
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--neon-green);
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.gui-terminal-log .log-dim { color: var(--text-dim); }
.gui-terminal-log .log-cyan { color: var(--neon-cyan); }
.gui-terminal-log .log-amber { color: var(--neon-amber); }
.gui-terminal-log .log-crimson { color: var(--neon-crimson); }

/* Progress Bar */
.gui-progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-dim);
  overflow: hidden;
  margin: 10px 0;
}

.gui-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* ATS Resume & Job Tailor Specifics */
.ats-score-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.3);
  padding: 12px 18px;
  font-family: var(--font-mono);
}

.ats-score-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--neon-green);
}

.ats-metric-badge {
  font-size: 0.74rem;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.4);
}

/* Image Slider Comparison (Upscayl) */
.slider-comparison-box {
  position: relative;
  width: 100%;
  height: 260px;
  background: #000;
  border: 1px solid var(--border-dim);
  overflow: hidden;
  user-select: none;
}

.slider-comparison-box img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slider-overlay-img {
  position: absolute;
  top: 0; left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid var(--neon-cyan);
  box-shadow: 2px 0 10px rgba(0, 240, 255, 0.5);
}

.slider-overlay-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-handle-tag {
  position: absolute;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 8px;
  border: 1px solid var(--border-dim);
}

.slider-tag-before { left: 10px; color: var(--text-dim); }
.slider-tag-after { right: 10px; color: var(--neon-cyan); }

/* Checklist Items (WinUtil) */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.checklist-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-dim);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.checklist-label:hover {
  border-color: var(--neon-cyan);
}

.checklist-label input[type="checkbox"] {
  accent-color: var(--neon-cyan);
  width: 14px;
  height: 14px;
}

/* Network Probes (Sherlock) */
.sim-network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.sim-network-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

@media (max-width: 768px) {
  .gui-columns-2 {
    grid-template-columns: 1fr;
  }
  .gui-runner-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .gui-header-right {
    width: 100%;
    justify-content: space-between;
  }
  .gui-tool-select {
    flex: 1;
  }
  .gui-module-banner {
    flex-direction: column;
  }
}

/* --- Print Styles --- */
@media print {
  body::after {
    display: none;
  }
  .nav-header,
  .sfx-status-pill,
  .ad-slot-hidden,
  .site-footer {
    display: none;
  }
  body {
    background: white;
    color: #111;
  }
  .tool-card,
  .article-panel,
  .detail-header-panel,
  .detail-section-block,
  .pinned-card,
  .gui-runner-wrapper {
    border: 1px solid #ccc;
    box-shadow: none;
    background: white;
  }
}
