/* ==========================================================================
   Elixerpro.tools - Complete Modern Responsive Stylesheet
   Pure Vanilla CSS3 with CSS Custom Properties & Smooth Transitions
   ========================================================================== */

/* ---------------------------------------------------------
   1. Design Tokens & Theme Variables
   --------------------------------------------------------- */
:root {
  /* Color Palette - Light Mode */
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F1F5F9;
  --bg-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --border-light: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  --border-focus: #6366F1;

  --brand-primary: #6366F1;
  --brand-primary-hover: #4F46E5;
  --brand-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
  --brand-glow: rgba(99, 102, 241, 0.25);

  --accent-blue: #3B82F6;
  --accent-green: #10B981;
  --accent-emerald: #059669;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;
  --accent-purple: #8B5CF6;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

  --max-width: 1280px;
  --header-height: 72px;
}

[data-theme="dark"] {
  /* Color Palette - Dark Mode */
  --bg-primary: #0B0F19;
  --bg-secondary: #111827;
  --bg-tertiary: #1F2937;
  --bg-elevated: #1E293B;
  --bg-glass: rgba(17, 24, 39, 0.85);

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-inverse: #0F172A;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-focus: #818CF8;

  --brand-primary: #818CF8;
  --brand-primary-hover: #6366F1;
  --brand-gradient: linear-gradient(135deg, #818CF8 0%, #A78BFA 50%, #F472B6 100%);
  --brand-glow: rgba(129, 140, 248, 0.35);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(129, 140, 248, 0.25);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------------------------------------------------------
   3. Header & Navigation (Sticky)
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

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

.brand-name {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.theme-toggle-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
}

.theme-icon-sun {
  display: none;
}
.theme-icon-moon {
  display: block;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
  color: #FBBF24;
}
[data-theme="dark"] .theme-icon-moon {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-medium);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 99;
}

.mobile-nav-drawer.open {
  display: block;
  animation: slideDown 0.3s ease forwards;
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

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

.hero-glow-1, .hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

.hero-glow-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #6366F1, transparent 70%);
  top: -100px;
  left: 20%;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #EC4899, transparent 70%);
  top: 50px;
  right: 20%;
  animation-delay: 4s;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  100% { transform: scale(1.15) translate(20px, -20px); opacity: 0.55; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-title-highlight {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
}

/* Hero Search & Filter */
.search-wrapper {
  max-width: 640px;
  margin: 0 auto 2rem auto;
  position: relative;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 0.6rem 1.25rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.search-input-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-glow), var(--shadow-xl);
}

.search-icon {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  margin-right: 0.85rem;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--text-primary);
}

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

.search-clear-btn {
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 0.5rem;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

.search-kbd-shortcut {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Category Filter Pills */
.category-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.category-pill {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.category-pill:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.category-pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--brand-glow);
}

.category-count {
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
}

.category-pill.active .category-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ---------------------------------------------------------
   5. Tools Grid & Cards
   --------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.section-title-wrap h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.tools-count-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.tool-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-xl);
}

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

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

.tool-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.tool-card:hover .tool-icon-wrapper {
  transform: scale(1.08);
}

.icon-pdf {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}
.icon-image {
  background: rgba(168, 85, 247, 0.12);
  color: #A855F7;
}
.icon-productivity {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
}
.icon-financial {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}
.icon-timedate {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
}
.icon-media {
  background: rgba(236, 72, 153, 0.12);
  color: #EC4899;
}
.icon-developer {
  background: rgba(139, 92, 246, 0.12);
  color: #8B5CF6;
}

.tool-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.tool-category-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.tool-card-body {
  flex: 1;
}

.tool-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

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

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

.tool-action-btn {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition-fast);
}

.tool-card:hover .tool-action-btn {
  gap: 0.6rem;
}

.tool-action-btn svg {
  width: 16px;
  height: 16px;
}

.tool-card-title-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.tool-card-direct-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.tool-card-direct-link:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background: var(--bg-secondary);
  transform: translateY(-1px);
}

/* Empty Search Results */
.no-results-box {
  display: none;
  text-align: center;
  padding: 4rem 1rem;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-xl);
  margin-bottom: 4rem;
}

.no-results-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem auto;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   6. Interactive Tool Modal & Runner
   --------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.modal-overlay.open .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.modal-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-tool-icon svg {
  width: 22px;
  height: 22px;
}

.modal-title-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.modal-title-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn, .modal-share-btn {
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover, .modal-share-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

/* Tool Runner Layout */
.tool-runner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .tool-runner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.tool-controls-panel, .tool-results-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tool-results-panel {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.input-addon-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-addon-prefix, .input-addon-suffix {
  position: absolute;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  pointer-events: none;
}

.input-addon-prefix {
  left: 1rem;
}

.input-addon-suffix {
  right: 1rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.has-prefix {
  padding-left: 2rem;
}

.has-suffix {
  padding-right: 2.2rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.form-range {
  width: 100%;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Tabs & Switchers */
.tab-switcher {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  gap: 0.25rem;
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.tab-btn.active {
  background: var(--bg-secondary);
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--brand-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--brand-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--brand-glow);
}

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

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

.btn-sm {
  font-size: 0.82rem;
  padding: 0.4rem 0.8rem;
}

.btn-block {
  width: 100%;
}

/* Results Display Elements */
.result-highlight-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.result-highlight-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-highlight-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-top: 0.35rem;
  line-height: 1.2;
}

.result-subvalue {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.result-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.result-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.9rem;
}

.result-breakdown-row:last-child {
  border-bottom: none;
}

.result-label {
  color: var(--text-secondary);
}

.result-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* File Upload & Dropzone */
.file-dropzone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.file-dropzone:hover, .file-dropzone.drag-active {
  border-color: var(--brand-primary);
  background: rgba(99, 102, 241, 0.04);
}

.dropzone-icon {
  width: 48px;
  height: 48px;
  color: var(--brand-primary);
}

.dropzone-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dropzone-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Image/PDF Preview Grid */
.preview-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.preview-thumb {
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: repeating-conic-gradient(#80808020 0% 25%, transparent 0% 50%) 50% / 16px 16px;
}

/* Code & Pre Box */
.code-preview-box {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  max-height: 260px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Strength Meter */
.strength-meter-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.35rem;
}

.strength-meter-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* ---------------------------------------------------------
   7. Google AdSense / Ad Container Slots
   --------------------------------------------------------- */
.ad-slot-container {
  width: 100%;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-slot-box {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ad-slot-placeholder-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ---------------------------------------------------------
   8. Static / Policy Pages Layout (AdSense Compliance)
   --------------------------------------------------------- */
.page-container {
  padding: 3.5rem 0 5rem 0;
  max-width: 860px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
}

.page-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.page-breadcrumbs a:hover {
  color: var(--brand-primary);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.page-content {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.25rem 0 0.85rem 0;
  letter-spacing: -0.01em;
}

.page-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem 0;
}

.page-content p {
  margin-bottom: 1.25rem;
}

.page-content ul, .page-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.page-content li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
}

.page-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

/* Contact Form UI */
.contact-form-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

.form-full-width {
  grid-column: 1 / -1;
}

.alert-toast {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.alert-toast.show {
  display: flex;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

/* ---------------------------------------------------------
   9. Footer
   --------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem 0;
  transition: background-color var(--transition-slow);
}

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

@media (max-width: 992px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 580px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand-col p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 1rem 0 1.5rem 0;
  max-width: 340px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

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

/* Social Icons */
.social-icons-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.social-icon-btn:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--brand-glow);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------------------------------------------------------
   10. Responsiveness & Media Queries
   --------------------------------------------------------- */
@media (max-width: 868px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-ribbon {
    grid-template-columns: 1fr;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .search-kbd-shortcut {
    display: none;
  }
}

/* ---------------------------------------------------------
   11. Advanced Components: CV Maker, Invoices & Scanner
   --------------------------------------------------------- */
.resume-form-section {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.resume-section-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.resume-item-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 0.75rem;
}

.resume-paper-wrapper {
  background: #E2E8F0;
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
  display: flex;
  justify-content: center;
}

[data-theme="dark"] .resume-paper-wrapper {
  background: #0B0F19;
}

.resume-paper {
  background: #FFFFFF !important;
  color: #0F172A !important;
  width: 100%;
  max-width: 580px;
  min-height: 780px;
  padding: 2.25rem;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: all var(--transition-normal);
}

.resume-block-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 0.25rem;
  margin: 1rem 0 0.5rem 0;
}

.resume-body-text {
  font-size: 0.85rem;
  color: #334155;
  margin: 0 0 0.4rem 0;
  line-height: 1.55;
}

.resume-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.resume-skill-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Invoice Paper Styling */
.invoice-paper-wrapper {
  background: #E2E8F0;
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
  display: flex;
  justify-content: center;
}

[data-theme="dark"] .invoice-paper-wrapper {
  background: #0B0F19;
}

.invoice-paper {
  background: #FFFFFF !important;
  color: #0F172A !important;
  width: 100%;
  max-width: 620px;
  min-height: 720px;
  padding: 2.5rem;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  font-family: system-ui, -apple-system, sans-serif;
}

/* File Drop Zone */
.file-drop-zone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.file-drop-zone:hover, .file-drop-zone.drag-over {
  border-color: var(--brand-primary);
  background: rgba(99, 102, 241, 0.05);
  transform: scale(1.01);
}

.drop-zone-icon svg {
  width: 44px;
  height: 44px;
  color: var(--brand-primary);
}

.drop-zone-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.drop-browse-btn {
  color: var(--brand-primary);
  text-decoration: underline;
  cursor: pointer;
}

.drop-zone-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* QR Code Laser Scanner Line */
.qrs-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #10B981;
  box-shadow: 0 0 12px #10B981, 0 0 20px #10B981;
  animation: scanLaser 2.2s infinite alternate ease-in-out;
}

@keyframes scanLaser {
  0% { top: 5%; }
  100% { top: 92%; }
}

/* ---------------------------------------------------------
   12. Dedicated Tool SEO & Article Styling
   --------------------------------------------------------- */
.breadcrumbs-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs-bar a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs-bar a:hover {
  text-decoration: underline;
}

.tool-header-hero {
  padding: 2.5rem 0 1.5rem 0;
}

.tool-header-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.tool-header-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 820px;
  line-height: 1.6;
}

.standalone-tool-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
  .standalone-tool-container {
    padding: 1.25rem;
  }
}

.seo-content-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
}

.seo-grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.seo-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.seo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.seo-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.seo-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.seo-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Steps Ordered Grid */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.step-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--brand-gradient);
  color: #FFFFFF;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px var(--brand-glow);
}

.step-box h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.step-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

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

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon-arrow {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
  color: var(--text-muted);
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* 404 Error Page */
.error-page-section {
  padding: 5rem 1.5rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.error-code-badge {
  display: inline-block;
  font-size: clamp(4.5rem, 10vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.error-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.error-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

