/* ==========================================================================
   ZUBAIRTOOLSLAB - ULTIMATE UI-PRO DESIGN SYSTEM (2026 EDITION)
   Custom Palette:
   - Primary Accent: #ffa31a (255, 163, 26)
   - Neutral Gray:   #808080 (128, 128, 128)
   - Dark Surface:   #292929 (41, 41, 41)
   - Deep Base:      #1b1b1b (27, 27, 27)
   - Pure White:     #ffffff (255, 255, 255)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  /* Color Tokens - Exact Palette Requested */
  --clr-primary-rgb: 255, 163, 26;
  --clr-primary: #ffa31a;
  --clr-primary-hover: #ffb84d;
  --clr-primary-dark: #d98200;
  --clr-primary-glow: rgba(255, 163, 26, 0.22);

  --clr-gray: #808080;
  --clr-gray-light: #a6a6a6;
  --clr-gray-dark: #4d4d4d;

  --clr-surface: #242424;
  --clr-surface-2: #2d2d2d;
  --clr-surface-elevated: #363636;

  --clr-bg: #1b1b1b;
  --clr-bg-deep: #141414;
  --clr-bg-subtle: #202020;

  --clr-white: #ffffff;
  --clr-text-primary: #ffffff;
  --clr-text-secondary: #c4c4c4;
  --clr-text-muted: #888888;

  /* Status Colors */
  --clr-success: #10b981;
  --clr-warning: #f59e0b;
  --clr-danger: #ef4444;
  --clr-info: #3b82f6;

  /* Glassmorphism & Borders */
  --glass-bg: rgba(36, 36, 36, 0.85);
  --glass-border: rgba(255, 163, 26, 0.18);
  --glass-border-subtle: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--clr-primary-glow);
  --shadow-glow-intense: 0 0 35px rgba(255, 163, 26, 0.35);

  /* Typography Scale */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --text-xs: clamp(0.8125rem, 0.85vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.95vw, 0.9375rem);
  --text-base: clamp(1rem, 1.1vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.3vw, 1.25rem);
  --text-xl: clamp(1.375rem, 1.8vw, 1.625rem);
  --text-2xl: clamp(1.75rem, 2.4vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 3.8vw, 3rem);
  --text-display: clamp(2.6rem, 5vw, 3.8rem);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index */
  --z-base: 1;
  --z-sticky: 100;
  --z-modal: 500;
  --z-toast: 1000;
}

/* ==========================================================================
   LIGHT THEME DESIGN SYSTEM (2026 PRO EDITION - AAA ACCESSIBILITY)
   ========================================================================== */
[data-theme="light"] {
  /* Core Base & Surfaces */
  --clr-bg: #f8f9fa;
  --clr-bg-deep: #edf0f2;
  --clr-bg-subtle: #ffffff;
  
  --clr-surface: #ffffff;
  --clr-surface-2: #f1f3f5;
  --clr-surface-elevated: #e9ecef;
  
  /* Text & Contrast Tokens */
  --clr-white: #141414;
  --clr-text-primary: #141414;
  --clr-text-secondary: #495057;
  --clr-text-muted: #6c757d;
  
  /* Amber Primary (Calibrated for Crisp AAA Contrast on Light Backgrounds) */
  --clr-primary: #d97706;
  --clr-primary-hover: #b45309;
  --clr-primary-dark: #92400e;
  --clr-primary-glow: rgba(217, 119, 6, 0.18);

  /* Glassmorphism & Borders */
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(217, 119, 6, 0.32);
  --glass-border-subtle: rgba(0, 0, 0, 0.09);
  --glass-blur: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(217, 119, 6, 0.15);
}

/* Light Theme Component Overrides */
[data-theme="light"] body {
  background-color: var(--clr-bg);
  color: var(--clr-text-primary);
}

[data-theme="light"] .ambient-orb {
  opacity: 0.06;
}

[data-theme="light"] .header-nav {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .brand-logo {
  color: #141414;
}

[data-theme="light"] .nav-link {
  color: #495057;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: var(--clr-primary);
  background: rgba(217, 119, 6, 0.08);
}

[data-theme="light"] .search-trigger-btn {
  background: #f1f3f5;
  border-color: rgba(0, 0, 0, 0.1);
  color: #495057;
}

[data-theme="light"] .search-trigger-btn:hover {
  background: #e9ecef;
  border-color: var(--clr-primary);
  color: #141414;
}

[data-theme="light"] .kbd-shortcut {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--clr-primary);
}

[data-theme="light"] .theme-toggle-btn {
  background: #f1f3f5;
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--clr-primary);
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: #e9ecef;
  border-color: var(--clr-primary);
}

[data-theme="light"] .mobile-menu-toggle {
  background: #f1f3f5;
  border-color: rgba(0, 0, 0, 0.1);
  color: #141414;
}

[data-theme="light"] .btn-icon:hover {
  background: #e9ecef;
  border-color: var(--clr-primary);
}

[data-theme="light"] .nav-dropdown-menu {
  background: #ffffff !important;
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav-dropdown-header {
  background: #f8f9fa;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .dropdown-header-title {
  color: #141414;
}

[data-theme="light"] .dropdown-header-badge {
  background: #e9ecef;
  color: #495057;
}

[data-theme="light"] .nav-dropdown-item {
  background: #ffffff;
  border-color: #f1f3f5;
}

[data-theme="light"] .nav-dropdown-item:hover {
  background: rgba(217, 119, 6, 0.06);
  border-color: rgba(217, 119, 6, 0.3);
}

[data-theme="light"] .nav-dropdown-title {
  color: #141414;
}

[data-theme="light"] .nav-dropdown-subtitle {
  color: #6c757d;
}

[data-theme="light"] .nav-dropdown-footer {
  background: #f8f9fa;
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-title {
  color: #141414;
}

[data-theme="light"] .hero-subtitle {
  color: #495057;
}

[data-theme="light"] .hero-search-input-wrap {
  background: #ffffff;
  border-color: #dee2e6;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-search-input-wrap:focus-within {
  border-color: var(--clr-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(217, 119, 6, 0.15);
  background: #ffffff;
}

[data-theme="light"] .hero-search-input {
  color: #141414;
}

[data-theme="light"] .quick-chip {
  background: #ffffff;
  border-color: #dee2e6;
  color: #495057;
}

[data-theme="light"] .quick-chip:hover {
  background: rgba(217, 119, 6, 0.08);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

[data-theme="light"] .stats-strip {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stat-item:not(:last-child)::after {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .category-pill {
  background: #ffffff;
  border-color: #e9ecef;
  color: #495057;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .category-pill:hover,
[data-theme="light"] .category-pill.active {
  background: rgba(217, 119, 6, 0.12);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

[data-theme="light"] .category-pill .pill-count {
  background: #f1f3f5;
  color: #495057;
}

[data-theme="light"] .category-pill.active .pill-count {
  background: var(--clr-primary);
  color: #ffffff;
}

[data-theme="light"] .tool-card {
  background: #ffffff;
  border-color: #e9ecef;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .tool-card:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 0 20px rgba(217, 119, 6, 0.12);
}

[data-theme="light"] .tool-card-title {
  color: #141414;
}

[data-theme="light"] .tool-card-desc {
  color: #495057;
}

[data-theme="light"] .tool-runner-card {
  background: #ffffff;
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .form-control {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #141414;
}

[data-theme="light"] .form-control:focus {
  background: #ffffff;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

[data-theme="light"] .processing-overlay {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--clr-primary);
}

[data-theme="light"] .proc-stage-text {
  color: #141414;
}

[data-theme="light"] .proc-progress-track {
  background: #e9ecef;
}

[data-theme="light"] .output-header-bar {
  background: #f1f3f5;
  border-color: #dee2e6;
}

[data-theme="light"] .output-pre {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #92400e;
}

[data-theme="light"] .deep-doc-section {
  border-top-color: #e9ecef;
}

[data-theme="light"] .doc-section-block h3 {
  color: #141414;
}

[data-theme="light"] .doc-section-block p,
[data-theme="light"] .doc-section-block li {
  color: #343a40;
}

[data-theme="light"] pre {
  background: #f8f9fa;
  border-color: #dee2e6;
}

[data-theme="light"] pre code {
  color: #141414;
}

[data-theme="light"] .doc-formula-box {
  background: #ffffff;
  border-color: rgba(217, 119, 6, 0.3);
  color: #141414;
}

[data-theme="light"] .doc-table {
  background: #ffffff;
  border-color: #dee2e6;
}

[data-theme="light"] .doc-table th {
  background: #f1f3f5;
  color: #141414;
}

[data-theme="light"] .doc-table td {
  border-bottom-color: #f1f3f5;
  color: #343a40;
}

[data-theme="light"] .blog-toc-box {
  background: #ffffff;
  border-color: #dee2e6;
  border-left-color: var(--clr-primary);
}

[data-theme="light"] .blog-article-content h2,
[data-theme="light"] .blog-article-content h3 {
  color: #141414;
}

[data-theme="light"] .blog-article-content p,
[data-theme="light"] .blog-article-content li {
  color: #343a40;
}

[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: #dee2e6;
}

[data-theme="light"] .faq-question {
  color: #141414;
}

[data-theme="light"] .faq-answer {
  color: #495057;
}

[data-theme="light"] .tool-quick-link {
  background: #f1f3f5;
  border-color: #dee2e6;
  color: #141414;
}

[data-theme="light"] .tool-quick-link:hover {
  background: rgba(217, 119, 6, 0.1);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

[data-theme="light"] .footer {
  background: #f1f3f5;
  border-top-color: #dee2e6;
}

[data-theme="light"] .footer-desc,
[data-theme="light"] .footer-link {
  color: #6c757d;
}

[data-theme="light"] .footer-link:hover {
  color: var(--clr-primary);
}

[data-theme="light"] .footer-col-title {
  color: #141414;
}

[data-theme="light"] .footer-bottom {
  border-top-color: #dee2e6;
}

[data-theme="light"] .search-modal-backdrop {
  background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .search-modal-window {
  background: #ffffff;
  border-color: var(--clr-primary);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .modal-search-input-box {
  border-bottom-color: #dee2e6;
}

[data-theme="light"] .modal-search-input {
  color: #141414;
}

[data-theme="light"] .modal-result-item {
  background: #ffffff;
  border-color: #f1f3f5;
}

[data-theme="light"] .modal-result-item:hover {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.3);
}

[data-theme="light"] .modal-result-title {
  color: #141414;
}

[data-theme="light"] .modal-result-desc {
  color: #6c757d;
}

[data-theme="light"] .mobile-nav-drawer {
  background: #ffffff;
  border-bottom-color: #dee2e6;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-nav-link {
  background: #f8f9fa;
  border-color: #e9ecef;
  color: #141414;
}

[data-theme="light"] .mobile-nav-link:hover {
  background: rgba(217, 119, 6, 0.08);
  color: var(--clr-primary);
}

[data-theme="light"] .mobile-category-chip {
  background: #f8f9fa;
  border-color: #e9ecef;
  color: #141414;
}

[data-theme="light"] .toast {
  background: #ffffff;
  border-color: var(--clr-primary);
  color: #141414;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Animated Glowing Orbs Background */
.ambient-glow-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  will-change: transform;
}

.ambient-orb-1 {
  width: 550px;
  height: 550px;
  background: var(--clr-primary);
  top: -120px;
  right: -100px;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  width: 450px;
  height: 450px;
  background: #d98200;
  bottom: 10%;
  left: -150px;
  animation: floatOrb2 25s ease-in-out infinite alternate;
}

.ambient-orb-3 {
  width: 350px;
  height: 350px;
  background: var(--clr-gray);
  top: 45%;
  right: 10%;
  opacity: 0.06;
  animation: floatOrb 30s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 80px) scale(1.1); }
  100% { transform: translate(40px, -40px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -60px) scale(1.15); }
  100% { transform: translate(-50px, 50px) scale(0.9); }
}

/* Container & Grid Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: var(--z-base);
  box-sizing: border-box;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--clr-text-primary);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  color: var(--clr-text-secondary);
  font-size: var(--text-base);
}

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--clr-primary-hover);
}

code, pre {
  font-family: var(--font-mono);
}

/* Gradient & Brand Accents */
.text-gradient {
  background: linear-gradient(135deg, var(--clr-white) 30%, var(--clr-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #ffa31a 0%, #ffc066 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphic Components */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-subtle);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.glass-panel:hover {
  border-color: rgba(255, 163, 26, 0.35);
  box-shadow: var(--shadow-md), 0 0 20px rgba(255, 163, 26, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ffa31a, #d98200);
  color: #141414;
  box-shadow: 0 4px 14px rgba(255, 163, 26, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffb84d, #ffa31a);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 163, 26, 0.45);
  color: #141414;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #292929;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--clr-text-primary);
}

.btn-secondary:hover {
  background: #333333;
  border-color: rgba(255, 163, 26, 0.4);
  color: var(--clr-primary);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(255, 163, 26, 0.1);
  border: 1px solid rgba(255, 163, 26, 0.25);
  color: var(--clr-primary);
}

.badge-glow {
  box-shadow: 0 0 12px rgba(255, 163, 26, 0.2);
}

.nav-count-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--clr-text-muted);
  line-height: 1.2;
  transition: all var(--transition-fast);
}

.nav-link:hover .nav-count-badge,
.nav-link.active .nav-count-badge {
  background: rgba(255, 163, 26, 0.15);
  border-color: rgba(255, 163, 26, 0.3);
  color: var(--clr-primary);
}

[data-theme="light"] .nav-count-badge {
  background: #e9ecef;
  border-color: rgba(0, 0, 0, 0.1);
  color: #6c757d;
}

[data-theme="light"] .nav-link:hover .nav-count-badge,
[data-theme="light"] .nav-link.active .nav-count-badge {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.3);
  color: var(--clr-primary);
}

/* ==========================================================================
   CLEAN, PROFESSIONAL SENIOR TOP NAVIGATION BAR (2026 EDITION)
   ========================================================================== */
.header-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: #161616;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  height: 64px;
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
}

[data-theme="light"] .header-nav {
  background: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--clr-white);
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #ffa31a 0%, #d98200 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #141414;
  box-shadow: 0 0 14px rgba(255, 163, 26, 0.35);
  position: relative;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-icon-box {
  transform: scale(1.05);
}

.brand-live-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border: 2px solid #141414;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

.brand-name-lab {
  color: var(--clr-primary);
}

.nav-ver-pill {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 163, 26, 0.12);
  border: 1px solid rgba(255, 163, 26, 0.28);
  color: var(--clr-primary);
  letter-spacing: 0.04em;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* Nav Links & Dropdowns */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--clr-text-secondary);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--clr-white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--clr-primary);
  background: rgba(255, 163, 26, 0.1);
  border-color: rgba(255, 163, 26, 0.25);
}

.nav-dropdown-arrow {
  font-size: var(--text-xs);
  opacity: 0.7;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

/* Mega Dropdown Menu - 100% Solid & High-Contrast */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 660px !important;
  min-width: 660px !important;
  max-width: 90vw !important;
  background: #181818 !important;
  background-color: #181818 !important;
  border: 1px solid rgba(255, 163, 26, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 163, 26, 0.2), 0 0 40px rgba(255, 163, 26, 0.15);
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-sizing: border-box;
  isolation: isolate;
}

[data-theme="light"] .nav-dropdown-menu {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: rgba(255, 163, 26, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

[data-theme="light"] .nav-dropdown-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.dropdown-header-title {
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--clr-primary);
  letter-spacing: 0.02em;
}

.dropdown-header-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #a6a6a6;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

[data-theme="light"] .dropdown-header-badge {
  background: rgba(0, 0, 0, 0.06);
  color: #555555;
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  width: 100%;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  background: #202020;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--clr-text-secondary);
  text-decoration: none;
  transition: all 150ms ease;
  min-width: 0;
}

[data-theme="light"] .nav-dropdown-item {
  background: #f8f9fa;
  border-color: #e9ecef;
}

.nav-dropdown-item:hover {
  background: #282828;
  border-color: rgba(255, 163, 26, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 163, 26, 0.12);
  transform: translateY(-1px);
}

[data-theme="light"] .nav-dropdown-item:hover {
  background: #ffffff;
}

.nav-dropdown-item:hover .nav-dropdown-title {
  color: var(--clr-primary);
}

.nav-dropdown-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 163, 26, 0.12);
  border: 1px solid rgba(255, 163, 26, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.nav-dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.nav-dropdown-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.2;
  white-space: nowrap;
}

[data-theme="light"] .nav-dropdown-title {
  color: #1a1a1a;
}

.nav-dropdown-subtitle {
  font-size: var(--text-xs);
  color: #888888;
  white-space: nowrap;
}

.nav-dropdown-footer {
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  padding-inline: 0.4rem;
  width: 100%;
}

[data-theme="light"] .nav-dropdown-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.nav-dropdown-footer a {
  color: var(--clr-primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-footer a:hover {
  text-decoration: underline;
}

/* Nav Actions Section */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--clr-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--clr-text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.search-trigger-btn:hover {
  border-color: rgba(255, 163, 26, 0.4);
  color: var(--clr-text-primary);
  background: var(--clr-surface-2);
}

.kbd-shortcut {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.1rem 0.35rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--clr-primary);
  font-family: var(--font-mono);
}

.random-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 163, 26, 0.1);
  border: 1px solid rgba(255, 163, 26, 0.25);
  color: var(--clr-primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.random-tool-btn:hover {
  background: #ffa31a;
  color: #141414;
}

/* Icon Button Base (Unified Style) */
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--clr-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  padding: 0;
}

.btn-icon:hover {
  background: var(--clr-surface-2);
  border-color: rgba(255, 163, 26, 0.35);
}

.theme-toggle-btn {
  width: 36px;
  height: 36px;
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
  display: none;
  padding: 0.45rem;
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==========================================================================
   HERO SECTION (ENTERPRISE GRADE)
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3rem;
  text-align: center;
  position: relative;
}

.hero-badge-wrap {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(255, 163, 26, 0.08);
  border: 1px solid rgba(255, 163, 26, 0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--clr-primary);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.hero-pill-badge span {
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  background: #ffa31a;
  border-radius: 50%;
  box-shadow: 0 0 8px #ffa31a;
  animation: pulseDot 2s infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 960px;
  margin: 0 auto 1.2rem;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 2.2rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--clr-text-secondary);
}

/* Quick Search Hero Bar */
.hero-search-box {
  max-width: 680px;
  margin: 0 auto 1.2rem;
  position: relative;
}

.hero-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem 0.65rem 1.2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
}

.hero-search-input-wrap:focus-within {
  border-color: var(--clr-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 163, 26, 0.15);
  background: #292929;
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--clr-text-primary);
}

.hero-search-input::placeholder {
  color: var(--clr-text-muted);
}

/* Hero Quick Filter Chips */
.hero-quick-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--clr-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.quick-chip:hover {
  background: rgba(255, 163, 26, 0.12);
  border-color: rgba(255, 163, 26, 0.3);
  color: var(--clr-primary);
}

.chip-icon {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--clr-primary);
}

/* Live Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(36, 36, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.75rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--clr-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 500;
}

/* Category Filter Bar */
.category-nav-bar {
  padding: 1.5rem 0 2rem;
}

.category-scroll-list {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-primary) transparent;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .category-scroll-list {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

.category-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--clr-surface);
  border: 1px solid var(--glass-border-subtle);
  color: var(--clr-text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-pill:hover, .category-pill.active {
  background: rgba(255, 163, 26, 0.15);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 163, 26, 0.2);
}

.category-pill .pill-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
}

.category-pill.active .pill-count {
  background: var(--clr-primary);
  color: #1b1b1b;
}

/* Tools Grid Section */
.tools-section {
  padding: 2rem 0 5rem;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Individual Tool Card */
.tool-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  background: var(--clr-surface);
  border: 1px solid rgba(255, 163, 26, 0.12);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(255, 163, 26, 0.15);
}

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

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tool-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(255, 163, 26, 0.12);
  border: 1px solid rgba(255, 163, 26, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  font-size: var(--text-xl);
  transition: all var(--transition-fast);
}

.tool-card:hover .tool-icon-wrapper {
  background: var(--clr-primary);
  color: #1b1b1b;
  transform: scale(1.08);
}

.tool-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--clr-white);
  transition: color var(--transition-fast);
}

.tool-card:hover .tool-card-title {
  color: var(--clr-primary);
}

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

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border-subtle);
}

.tool-card-category {
  font-size: var(--text-xs);
  color: var(--clr-gray);
  font-weight: 600;
}

.tool-card-action {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tool-card-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 163, 26, 0.15);
  border: 1px solid rgba(255, 163, 26, 0.35);
  border-radius: var(--radius-sm);
  color: var(--clr-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.tool-card-action-btn:hover {
  background: var(--clr-primary);
  color: #141414;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 163, 26, 0.25);
}

.tool-card-action-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   TOOL WORKSPACE / PLAYGROUND PAGE
   ========================================================================== */
.tool-view-wrapper {
  padding: 3rem 0 6rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-xs);
  color: var(--clr-gray);
  margin-bottom: 1.5rem;
}

.tool-header-box {
  margin-bottom: 2.5rem;
}

.tool-page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   UNIVERSAL TOOL RUNNER INTERACTIVE PANEL & WORKSPACE (2026 EDITION)
   ========================================================================== */
.tool-runner-card {
  background: var(--clr-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  margin-bottom: 3.5rem;
  position: relative;
  transition: all var(--transition-normal);
}

.tool-runner-card.is-fullscreen {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 99999;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--clr-primary);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--clr-primary-glow);
  overflow-y: auto;
  padding: 2rem;
  margin: 0;
}

.tool-runner-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border-subtle);
}

.tool-runner-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.tool-runner-live-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

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

.tool-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tool-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--clr-surface-2);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-sm);
  color: var(--clr-text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.tool-action-btn:hover {
  background: var(--clr-surface-elevated);
  border-color: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-1px);
}

.tool-action-btn.active {
  background: var(--clr-primary);
  color: #141414;
  border-color: var(--clr-primary);
  font-weight: 700;
}

/* Sample Data Pills Bar */
.tool-sample-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.65rem 1rem;
  background: var(--clr-surface-2);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.tool-sample-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--clr-text-muted);
}

.tool-sample-chip {
  padding: 0.25rem 0.65rem;
  background: var(--clr-surface);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tool-sample-chip:hover {
  background: var(--clr-primary);
  color: #141414;
  border-color: var(--clr-primary);
  box-shadow: 0 0 10px var(--clr-primary-glow);
}

.tool-inputs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
}

.form-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label-meta {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--clr-text-muted);
}

.form-control {
  width: 100%;
  background: #141414;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--clr-text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(255, 163, 26, 0.22);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* 5-SECOND PROCESSING ANIMATION BAR */
.processing-overlay {
  display: none;
  background: rgba(27, 27, 27, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--clr-primary);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin: 1.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.processing-overlay.active {
  display: block;
  animation: fadeIn 200ms ease;
}

.proc-spinner-ring {
  width: 54px;
  height: 54px;
  border: 4px solid rgba(255, 163, 26, 0.2);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  animation: spinRing 0.9s linear infinite;
}

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

.proc-stage-text {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.75rem;
}

.proc-progress-track {
  width: 100%;
  max-width: 520px;
  height: 8px;
  background: #333333;
  border-radius: var(--radius-full);
  margin: 0 auto 1rem;
  overflow: hidden;
  position: relative;
}

.proc-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-primary-dark), var(--clr-primary), var(--clr-primary-hover));
  border-radius: var(--radius-full);
  transition: width 100ms linear;
}

.proc-timer-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--clr-primary);
  font-weight: 600;
}

/* Action Controls Row */
.tool-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border-subtle);
}

/* Tool Output Box */
.tool-output-wrapper {
  margin-top: 1.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.output-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--clr-surface-2);
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid var(--glass-border-subtle);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.output-pre {
  background: #141414;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: #ffa31a;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 480px;
  line-height: 1.6;
  margin: 0;
  border: none;
  outline: none;
}

.output-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.15rem;
  background: var(--clr-surface-2);
  border-top: 1px solid var(--glass-border-subtle);
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Deep Technical Documentation Section (10,000 words equivalent deep content) */
.deep-doc-section {
  background: var(--clr-surface);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 4rem;
}

.doc-section-block {
  margin-bottom: 2.8rem;
}

.doc-section-block:last-child {
  margin-bottom: 0;
}

.doc-section-block h3 {
  font-size: var(--text-xl);
  margin-bottom: 1rem;
  color: var(--clr-white);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.doc-section-block h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--clr-primary);
  border-radius: var(--radius-sm);
}

.doc-section-block p {
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: var(--text-base);
}

.doc-section-block ul, .doc-section-block ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.doc-section-block li {
  margin-bottom: 0.6rem;
  color: var(--clr-text-secondary);
}

.doc-formula-box {
  background: #1b1b1b;
  border-left: 4px solid var(--clr-primary);
  padding: 1.2rem 1.6rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-mono);
  color: var(--clr-primary);
  margin: 1.2rem 0;
}

/* FAQ Accordions */
.faq-accordion-item {
  border-bottom: 1px solid var(--glass-border-subtle);
  padding: 1.2rem 0;
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-white);
  cursor: pointer;
  text-align: left;
}

.faq-question-btn:hover {
  color: var(--clr-primary);
}

.faq-answer-panel {
  padding-top: 0.8rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
}

/* Blog & Knowledge Hub */
.blog-card {
  background: var(--clr-surface);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(255, 163, 26, 0.15);
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--text-xs);
  color: var(--clr-gray);
  margin-bottom: 0.8rem;
}

.blog-article-content {
  line-height: 1.9;
  font-size: 1.05rem;
}

.blog-article-content h2 {
  margin: 2.5rem 0 1rem;
  color: var(--clr-white);
}

.blog-article-content h3 {
  margin: 1.8rem 0 0.8rem;
}

.blog-article-content p {
  margin-bottom: 1.4rem;
}

.blog-article-content pre {
  background: #141414;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #141414;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.data-table th, .data-table td {
  padding: 1rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border-subtle);
}

.data-table th {
  background: var(--clr-surface-2);
  color: var(--clr-primary);
  font-family: var(--font-heading);
}

/* Enhanced Blog & Documentation Components */
.blog-article-content a {
  color: var(--clr-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

.blog-article-content a:hover {
  color: #ffb84d;
  text-decoration-thickness: 2px;
}

.blog-toc-box {
  background: #191919;
  border: 1px solid rgba(255, 163, 26, 0.3);
  border-left: 4px solid var(--clr-primary);
  border-radius: var(--radius-md);
}

[data-theme="light"] .blog-toc-box {
  background: #f8f9fa;
  border-color: #e9ecef;
  border-left-color: var(--clr-primary);
}

.doc-callout {
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-md);
  margin: 1.8rem 0;
  border-left: 4px solid;
}

.doc-callout-info {
  background: rgba(255, 163, 26, 0.08);
  border-left-color: var(--clr-primary);
  border: 1px solid rgba(255, 163, 26, 0.2);
  border-left-width: 4px;
}

.doc-callout-tip {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left-width: 4px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.9rem;
}

[data-theme="light"] .doc-table {
  background: #ffffff;
  border-color: #e9ecef;
}

.doc-table th {
  background: #202020;
  color: var(--clr-primary);
  font-weight: 700;
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 2px solid rgba(255, 163, 26, 0.3);
}

[data-theme="light"] .doc-table th {
  background: #f1f3f5;
}

.doc-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--clr-text-secondary);
}

[data-theme="light"] .doc-table td {
  border-bottom-color: #f1f3f5;
}

.doc-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* FAQ Accordion Details */
.doc-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.faq-item {
  background: #191919;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 150ms ease;
}

[data-theme="light"] .faq-item {
  background: #f8f9fa;
  border-color: #e9ecef;
}

.faq-item[open] {
  border-color: rgba(255, 163, 26, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.faq-question {
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="light"] .faq-question {
  color: #1a1a1a;
}

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

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--clr-primary);
  font-weight: 400;
  transition: transform 150ms ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.4rem 1.2rem;
  font-size: 0.92rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
}

.tool-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--clr-surface-2);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-sm);
  color: var(--clr-white);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--trans-fast);
}

.tool-quick-link:hover {
  background: rgba(255, 163, 26, 0.12);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
}

/* Global Search Modal (Ctrl+K) */
.search-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1.5rem;
}

.search-modal-backdrop.active {
  display: flex;
  animation: fadeIn 150ms ease;
}

.search-modal-window {
  width: 100%;
  max-width: 680px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  overflow: hidden;
}

.modal-search-input-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--glass-border-subtle);
}

.modal-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--clr-text-primary);
}

.modal-results-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.75rem;
}

.modal-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.modal-result-item:hover, .modal-result-item.selected, .modal-result-item.keyboard-active {
  background: rgba(255, 163, 26, 0.16);
  border-left: 3px solid var(--clr-primary);
}

.modal-filter-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--glass-border-subtle);
  overflow-x: auto;
  white-space: nowrap;
}

.modal-filter-chip {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--clr-text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-filter-chip:hover {
  background: rgba(255, 163, 26, 0.15);
  color: var(--clr-primary);
  border-color: rgba(255, 163, 26, 0.35);
}

.modal-filter-chip.active {
  background: var(--clr-primary);
  color: #141414;
  border-color: var(--clr-primary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #1b1b1b;
  border: 1px solid var(--clr-primary);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  color: var(--clr-white);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  animation: toastSlide 250ms var(--transition-bounce);
}

@keyframes toastSlide {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   ENTERPRISE FOOTER & CALL-TO-ACTION SECTION
   ========================================================================== */
.main-footer {
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  margin-top: auto;
  padding: 4.5rem 0 2rem;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 163, 26, 0.35) 50%, transparent 100%);
}

.footer-cta-card {
  background: linear-gradient(135deg, rgba(34, 34, 34, 0.95), rgba(20, 20, 20, 0.98));
  border: 1px solid rgba(255, 163, 26, 0.25);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  margin-bottom: 4rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 163, 26, 0.1);
  position: relative;
  overflow: hidden;
}

.footer-cta-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 163, 26, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-brand-desc {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: #9e9e9e;
  max-width: 320px;
}

.footer-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #10b981;
  width: fit-content;
}

.footer-status-tag .status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDot 2s infinite;
}

.footer-badges-list {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.footer-badge-pill {
  font-size: var(--text-xs);
  font-weight: 600;
  color: #a6a6a6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.footer-link {
  color: #9e9e9e;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-link:hover {
  color: var(--clr-primary);
  transform: translateX(2px);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--text-xs);
  color: #71717a;
}

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

.footer-bottom-links a {
  color: #888888;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE DESIGN SYSTEM (320px - 1440px)
   Zero Horizontal Overflow • Fluid Touch Targets • Adaptive Grids
   ========================================================================== */

/* Universal Responsive Box Sizing & Overflow Protection */
*, *::before, *::after {
  box-sizing: border-box;
  max-width: 100%;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  box-sizing: border-box;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
  height: auto;
}

pre, code, kbd, samp {
  max-width: 100%;
  overflow-x: auto;
}

/* Mobile Nav Drawer Overlay */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: calc(100vh - 60px);
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: var(--z-sticky);
  padding: 1.25rem 1rem 3rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 1px solid rgba(255, 163, 26, 0.25);
  box-sizing: border-box;
  animation: drawerSlideDown 200ms ease;
}

.mobile-nav-drawer.active {
  display: flex;
}

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

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  color: var(--clr-white);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(255, 163, 26, 0.15);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.mobile-categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}

.mobile-cat-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  color: var(--clr-text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
}

.mobile-cat-card:hover {
  background: rgba(255, 163, 26, 0.14);
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

/* Tablet Breakpoints (<= 1080px) */
@media (max-width: 1080px) {
  .nav-links {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile Large & Tablet Portrait (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding-inline: 1rem;
  }

  .header-nav {
    padding: 0.5rem 0;
  }

  .hero-section {
    padding: 2.5rem 0 1.8rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.4rem);
    margin-bottom: 0.85rem;
    line-height: 1.25;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: var(--text-sm);
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero-search-box {
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .hero-search-input-wrap {
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-search-input {
    font-size: var(--text-sm);
    padding: 0.35rem;
    min-width: 0;
  }

  .stats-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    width: 100%;
    box-sizing: border-box;
  }

  .stat-value {
    font-size: var(--text-2xl);
  }

  .stat-label {
    font-size: var(--text-xs);
  }

  .category-nav-bar {
    padding: 0.75rem 0 1.2rem;
  }

  .category-scroll-list {
    gap: 0.45rem;
    padding-bottom: 0.4rem;
  }

  .category-pill {
    padding: 0.45rem 0.85rem;
    font-size: var(--text-sm);
  }

  .tools-section {
    padding: 1.2rem 0 3rem;
  }

  .tools-filter-pills {
    gap: 0.5rem;
    padding: 0.5rem;
    margin: -0.5rem 0 1rem -0.5rem;
    justify-content: flex-start;
  }

  .tools-filter-pill {
    padding: 0.45rem 0.8rem;
    font-size: 0.7rem;
    flex-shrink: 0;
  }

  .tools-filter-pill .pill-count {
    font-size: 0.65rem;
    padding: 0.05rem 0.3rem;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

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

  .tool-card {
    padding: 1.2rem;
  }

  .tool-card-title {
    font-size: var(--text-lg);
  }

  .tool-card-desc {
    font-size: var(--text-sm);
    line-height: 1.5;
  }

  .tool-view-wrapper {
    padding: 1.2rem 0 3.5rem;
  }

  .tool-page-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .tool-page-title-row > div:first-child {
    width: 100%;
    min-width: 0;
  }

  .tool-page-title-row h1 {
    font-size: 1.4rem !important;
    word-break: break-word;
  }

  .tool-page-title-row > div:last-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .tool-page-title-row > div:last-child .btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem;
    font-size: 0.78rem;
  }

  .tool-runner-card {
    padding: 1.1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.8rem;
    width: 100%;
    box-sizing: border-box;
  }

  .tool-inputs-grid {
    gap: 1rem;
  }

  .form-control {
    font-size: 0.85rem;
    padding: 0.7rem 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  textarea.form-control {
    min-height: 110px;
  }

  .tool-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
  }

  .tool-controls-row > div:first-child {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .tool-controls-row .btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
    font-size: 0.88rem;
    white-space: normal;
    text-align: center;
  }

  .processing-overlay {
    padding: 1.2rem 0.8rem;
    border-radius: var(--radius-md);
  }

  .proc-spinner-ring {
    width: 38px;
    height: 38px;
    border-width: 3px;
    margin-bottom: 0.8rem;
  }

  .proc-stage-text {
    font-size: 0.85rem;
  }

  .proc-progress-track {
    max-width: 100%;
    height: 6px;
  }

  .output-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
  }

  .output-header-bar > div {
    display: flex;
    gap: 0.4rem;
    width: 100%;
  }

  .output-header-bar .btn {
    flex: 1;
    justify-content: center;
    padding: 0.45rem;
    font-size: 0.75rem;
  }

  .output-pre {
    padding: 0.9rem;
    font-size: 0.8rem;
    max-height: 320px;
    width: 100%;
    box-sizing: border-box;
  }

  .deep-doc-section {
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    width: 100%;
    box-sizing: border-box;
  }

  .doc-section-block {
    margin-bottom: 1.6rem;
  }

  .doc-section-block h3 {
    font-size: 1.05rem;
  }

  .doc-section-block p, .doc-section-block li {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .doc-formula-box {
    padding: 0.75rem 0.85rem;
    font-size: 0.78rem;
    overflow-x: auto;
    word-break: break-word;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
}

/* Mobile Small Breakpoint (<= 480px / 375px / 320px) */
@media (max-width: 480px) {
  .nav-container {
    gap: 0.4rem;
  }

  .brand-logo {
    font-size: var(--text-lg);
    gap: 0.4rem;
    max-width: 55%;
  }

  .brand-icon-box {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
  }

  .brand-icon-box svg {
    width: 16px;
    height: 16px;
  }

  .nav-ver-pill {
    display: none !important;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .search-trigger-btn {
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-full);
  }

  .search-trigger-btn span:nth-child(2),
  .search-trigger-btn .kbd-shortcut {
    display: none !important;
  }

  .random-tool-btn {
    display: none !important;
  }

  .theme-toggle-btn,
  .mobile-menu-toggle {
    width: 34px;
    height: 34px;
    font-size: var(--text-base);
    padding: 0;
  }

  .mobile-categories-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.85rem;
  }

  .stat-value {
    font-size: var(--text-xl);
  }

  .tools-filter-pills {
    gap: 0.4rem;
    padding: 0.4rem;
    margin: -0.4rem 0 1rem -0.4rem;
  }

  .tools-filter-pill {
    padding: 0.4rem 0.7rem;
    font-size: 0.65rem;
    border-radius: var(--radius-full);
  }

  .tools-filter-pill .pill-count {
    font-size: 0.6rem;
    padding: 0.05rem 0.25rem;
  }

  .stat-label {
    font-size: var(--text-xs);
  }

  .tool-card {
    padding: 1rem;
  }

  .tool-icon-wrapper {
    width: 38px;
    height: 38px;
    font-size: var(--text-lg);
  }

  .tool-card-title {
    font-size: var(--text-base);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .search-modal-backdrop {
    padding: 1rem 0.5rem;
  }

  .search-modal-window {
    border-radius: var(--radius-lg);
  }

  .modal-search-input-box {
    padding: 0.75rem 0.85rem;
  }

  .modal-search-input {
    font-size: var(--text-base);
  }

  .toast-container {
    bottom: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
  }

  .toast {
    font-size: var(--text-xs);
    padding: 0.65rem 0.85rem;
  }
}

/* ==========================================================================
   UI/UX ENHANCEMENTS (2026 EDITION)
   ========================================================================== */

/* Reading Scroll Progress Bar */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-primary-dark), var(--clr-primary), var(--clr-primary-hover));
  z-index: 9999;
  transition: width 60ms ease-out;
  pointer-events: none;
}

/* Floating Back-to-Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--clr-surface-2);
  border: 1px solid var(--glass-border);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-base);
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

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

.back-to-top-btn:hover {
  background: var(--clr-primary);
  color: #141414;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-intense);
}

[data-theme="light"] .back-to-top-btn {
  background: #ffffff;
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .back-to-top-btn:hover {
  background: var(--clr-primary);
  color: #ffffff;
}

/* One-Click Copy Code Button in Pre Blocks */
.pre-code-container {
  position: relative;
}

.copy-code-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(36, 36, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--clr-text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.copy-code-btn:hover {
  background: var(--clr-primary);
  color: #141414;
  border-color: var(--clr-primary);
}

[data-theme="light"] .copy-code-btn {
  background: #ffffff;
  border-color: #dee2e6;
  color: #495057;
}

[data-theme="light"] .copy-code-btn:hover {
  background: var(--clr-primary);
  color: #ffffff;
}

/* Modal Category Filter Chips */
.modal-filter-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-bottom: 1px solid var(--glass-border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.modal-filter-chips::-webkit-scrollbar {
  display: none;
}

.modal-filter-chip {
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--clr-surface-2);
  border: 1px solid var(--glass-border-subtle);
  color: var(--clr-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.modal-filter-chip:hover,
.modal-filter-chip.active {
  background: rgba(255, 163, 26, 0.15);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

[data-theme="light"] .modal-filter-chip {
  background: #f1f3f5;
  border-color: #dee2e6;
  color: #495057;
}

[data-theme="light"] .modal-filter-chip:hover,
[data-theme="light"] .modal-filter-chip.active {
  background: rgba(217, 119, 6, 0.12);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.modal-result-item.keyboard-active {
  border-color: var(--clr-primary) !important;
  background: rgba(255, 163, 26, 0.14) !important;
  box-shadow: 0 0 15px rgba(255, 163, 26, 0.2);
}

[data-theme="light"] .modal-result-item.keyboard-active {
  border-color: var(--clr-primary) !important;
  background: rgba(217, 119, 6, 0.1) !important;
}

/* Sample Data Button in Tool Runner */
.sample-data-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 163, 26, 0.1);
  border: 1px solid rgba(255, 163, 26, 0.25);
  color: var(--clr-primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-left: auto;
}

.sample-data-btn:hover {
  background: var(--clr-primary);
  color: #141414;
}

/* Input Stats & Action Bar in Tool Runners */
.input-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.6rem;
  background: var(--clr-surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border-subtle);
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--clr-text-muted);
}

.input-clear-btn {
  background: transparent;
  border: none;
  color: var(--clr-text-muted);
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  transition: all var(--transition-fast);
}

.input-clear-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--clr-danger);
}

/* Tools Directory Live Search & Filter Bar */
.tools-filter-wrapper {
  margin-bottom: 2.5rem;
}

.tools-search-box {
  position: relative;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.tools-search-input {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 2.8rem;
  border-radius: var(--radius-full);
  background: var(--clr-surface);
  border: 1px solid var(--glass-border);
  color: var(--clr-white);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.tools-search-input:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-glow), var(--shadow-md);
  background: var(--clr-surface-2);
}

.tools-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-muted);
  pointer-events: none;
}

.tools-filter-pills {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.75rem;
  padding-right: 1.5rem;
  margin: -0.75rem 0 1.5rem -0.75rem;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, 
    rgba(20, 20, 20, 0.8) 0%, 
    transparent 15%, 
    transparent 85%, 
    rgba(20, 20, 20, 0.8) 100%
  );
}

/* Scrollbar styling */
.tools-filter-pills::-webkit-scrollbar {
  height: 6px;
}

.tools-filter-pills::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.tools-filter-pills::-webkit-scrollbar-thumb {
  background: rgba(255, 163, 26, 0.4);
  border-radius: 3px;
}

.tools-filter-pills::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 163, 26, 0.7);
}

.tools-filter-pill {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  background: linear-gradient(135deg, var(--clr-surface-2) 0%, var(--clr-surface) 100%);
  border: 1.5px solid var(--glass-border-subtle);
  color: var(--clr-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tools-filter-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 163, 26, 0.1), transparent);
  transition: left var(--transition-fast);
}

.tools-filter-pill:hover {
  background: linear-gradient(135deg, var(--clr-surface-elevated) 0%, var(--clr-surface-2) 100%);
  border-color: rgba(255, 163, 26, 0.5);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 163, 26, 0.15);
}

.tools-filter-pill:hover::before {
  left: 100%;
}

.tools-filter-pill.active {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #ffb84d 100%);
  border-color: var(--clr-primary);
  color: #141414;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 163, 26, 0.35), 0 0 0 1px rgba(255, 163, 26, 0.2);
  font-weight: 800;
}

.tools-filter-pill.active::before {
  left: 100%;
}

.tools-filter-pill .pill-count {
  font-size: 0.7rem;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tools-filter-pill:hover .pill-count {
  background: rgba(255, 255, 255, 0.18);
}

.tools-filter-pill.active .pill-count {
  background: rgba(20, 20, 20, 0.3);
  color: #141414;
}

[data-theme="light"] .tools-search-input {
  background: #ffffff;
  border-color: #dee2e6;
  color: #141414;
}

[data-theme="light"] .tools-filter-pill {
  background: linear-gradient(135deg, #f1f3f5 0%, #ffffff 100%);
  border-color: #e9ecef;
  color: #495057;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tools-filter-pill:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #f1f3f5 100%);
  border-color: var(--clr-primary);
  color: #1a1a1a;
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.12);
}

[data-theme="light"] .tools-filter-pill.active {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #ffb84d 100%);
  border-color: var(--clr-primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.25);
}

[data-theme="light"] .tools-filter-pills {
  background: linear-gradient(90deg, 
    rgba(248, 249, 250, 0.9) 0%, 
    transparent 15%, 
    transparent 85%, 
    rgba(248, 249, 250, 0.9) 100%
  );
}

[data-theme="light"] .tools-filter-pills::-webkit-scrollbar-thumb {
  background: rgba(217, 119, 6, 0.3);
}

[data-theme="light"] .tools-filter-pills::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 119, 6, 0.6);
}

/* Enhanced Focus-Visible Rings for Keyboard Accessibility (WCAG 2.2 AAA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--clr-primary) !important;
  outline-offset: 2px !important;
}

/* Smooth Interactive Spring Click Effect */
.btn:active,
.tool-card:active,
.quick-chip:active,
.modal-filter-chip:active,
.tools-filter-pill:active {
  transform: scale(0.98);
}

/* Ambient Shimmer Keyframes */
@keyframes badgeShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.badge-glow {
  background-size: 200% 100%;
  animation: badgeShimmer 6s infinite linear;
}

/* Enhanced Glassmorphic Card Ambient Glow */
.tool-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 163, 26, 0.15);
}

[data-theme="light"] .tool-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 0 20px rgba(217, 119, 6, 0.12);
}




