/* ==========================================================================
   TheToolMint - Master Stylesheet
   Modern, Clean, High-Contrast Utility Platform Design System
   ========================================================================== */

:root {
  /* Brand Colors - Premium Orange Theme */
  --primary: #F97316;
  --primary-hover: #EA580C;
  --primary-active: #C2410C;
  --primary-light: #FFF7ED;
  --primary-border: #FDBA74;
  --primary-glow: rgba(249, 115, 22, 0.18);

  /* Light Theme Neutrals */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #ffffff;
  
  --border-color: #e2e8f0;
  --border-focus: #F97316;
  --border-subtle: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Status Badges & Alerts */
  --success: #10b981;
  --success-bg: #FFF7ED;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #0284c7;
  --info-bg: #f0f9ff;

  /* Typography & Shadows */
  --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;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --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);

  --header-height: 70px;
  --max-width: 1240px;
}

/* Dark Mode Theme */
[data-theme="dark"] {
  --primary: #FB923C;
  --primary-hover: #FDBA74;
  --primary-active: #F97316;
  --primary-light: rgba(249, 115, 22, 0.18);
  --primary-border: rgba(251, 146, 60, 0.35);
  --primary-glow: rgba(251, 146, 60, 0.30);

  --bg-body: #0b0f17;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --bg-subtle: #1e293b;
  --bg-input: #1f2937;

  --border-color: #374151;
  --border-focus: #FB923C;
  --border-subtle: #1f2937;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

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

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Skip link for keyboard navigation */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 1rem;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.brand-logo:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  position: relative;
  border: 1px solid var(--border-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .brand-icon {
  background: #0B1120;
  border-color: #1E293B;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.brand-logo:hover .brand-icon {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.25);
}

.brand-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.brand-name {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.035em;
}

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

/* Search Trigger & Bar in Header */
.header-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.header-search-input {
  width: 100%;
  height: 40px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0 1rem 0 2.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.header-search-input:focus {
  background: var(--bg-surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

.header-search-shortcut {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Header Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.4rem;
}

/* Main Content Area */
.site-main {
  flex: 1;
  padding-bottom: 4rem;
}

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

h1 { font-size: 2.35rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.75rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }

/* 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: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  user-select: none;
}

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

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

/* ==========================================================================
   Tool Cards & Category Cards - SaaS Utility Redesign
   ========================================================================== */
.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 180ms ease-out,
              box-shadow 180ms ease-out,
              border-color 180ms ease-out;
}

[data-theme="dark"] .tool-card {
  background: #111827;
  border-color: #1F2937;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(249, 115, 22, 0.05);
}

[data-theme="dark"] .tool-card:hover {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(249, 115, 22, 0.15);
}

/* Featured / Popular Card Variant */
.tool-card--popular {
  border-color: rgba(249, 115, 22, 0.22);
}

[data-theme="dark"] .tool-card--popular {
  border-color: rgba(249, 115, 22, 0.28);
}

/* Card Header: Left Icon, Right Actions */
.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

/* 44px–52px Premium Icon Container */
.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.18);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
              background 180ms ease,
              border-color 180ms ease,
              box-shadow 180ms ease;
}

[data-theme="dark"] .tool-card-icon {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.25);
  color: var(--primary-hover);
}

.tool-card:hover .tool-card-icon {
  transform: scale(1.05);
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

/* Header Top Action (Pill & Arrow) */
.tool-card-header-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-badge-popular {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(96, 85, 205, 0.1);
  color: #F97316;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

[data-theme="dark"] .tool-badge-popular {
  background: rgba(249, 115, 22, 0.16);
  color: var(--primary-hover);
  border-color: rgba(96, 85, 205, 0.3);
}

.tool-card-arrow-indicator {
  color: var(--text-muted);
  opacity: 0.35;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.tool-card:hover .tool-card-arrow-indicator {
  opacity: 1;
  color: var(--primary);
  transform: translate(2px, -2px);
}

/* Card Body */
.tool-card-body {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.85rem;
}

.tool-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.35rem;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.tool-card-title-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 150ms ease;
}

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

.tool-card-title-link:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Line-Clamped Description - Natural Height, Zero Bloat */
.tool-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer */
.tool-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tool-category-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.tool-card:hover .tool-card-cta {
  color: var(--primary);
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.15);
}

.cta-arrow-icon {
  transition: transform 180ms ease-out;
}

.tool-card:hover .cta-arrow-icon {
  transform: translateX(3px);
}

/* Category Card Styling */
.category-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 180ms ease-out,
              box-shadow 180ms ease-out,
              border-color 180ms ease-out;
}

[data-theme="dark"] .category-card {
  background: #111827;
  border-color: #1F2937;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(249, 115, 22, 0.05);
}

[data-theme="dark"] .category-card:hover {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(249, 115, 22, 0.15);
}

.category-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.category-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.35rem;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  transition: color 150ms ease;
}

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

.category-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.category-card:hover .category-card-footer {
  color: var(--primary);
}

.category-card:hover .category-card-footer .cta-arrow-icon {
  transform: translateX(3px);
}

/* Modern Responsive Grids */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .tools-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Breadcrumbs */
.breadcrumb-nav {
  margin: 1.25rem 0 1rem;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb-item a {
  color: var(--text-muted);
}
.breadcrumb-item a:hover {
  color: var(--primary);
}
.breadcrumb-separator {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Master Tool Container */
.tool-page-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tool-header-block {
  max-width: 860px;
}

.tool-header-block .lead-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.tool-workspace {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

/* Drag & Drop File Zone */
.dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--bg-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dropzone-icon {
  font-size: 2.5rem;
  color: var(--primary);
}

.dropzone-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

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

/* Privacy & Zero-Cost Security Badge */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--success-bg);
  border: 1px solid rgba(96, 85, 205, 0.3);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1.25rem;
}

[data-theme="dark"] .privacy-badge {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(96, 85, 205, 0.3);
  color: #FB923C;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

textarea.form-control {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 160px;
}

/* FAQ Accordion Details */
.faq-section {
  margin-top: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s;
}

.faq-item[open] {
  border-color: var(--primary-border);
}

.faq-summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

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

.faq-summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s;
}

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

.faq-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Site Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 320px;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.15s;
}

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

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

/* Modals & Dialogs */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-close:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Modern SaaS Homepage Styling System
   ========================================================================== */
.hero-wrapper {
  position: relative;
  padding: 5rem 0 3rem;
  text-align: center;
  overflow: hidden;
}

.hero-grid-pattern {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1400px;
  height: 620px;
  background-image: radial-gradient(rgba(249, 115, 22, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero-grid-pattern {
  background-image: radial-gradient(rgba(249, 115, 22, 0.22) 1px, transparent 1px);
}

.hero-ambient-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.18) 0%, rgba(124, 114, 230, 0.07) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero-ambient-glow {
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.22) 0%, rgba(124, 114, 230, 0.06) 45%, transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: var(--primary);
  padding: 0.42rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .hero-badge {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
  color: #FB923C;
  box-shadow: 0 2px 14px rgba(249, 115, 22, 0.15);
}

.hero-badge:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.2);
}

.hero-badge-pulse {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-badge-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.75;
  animation: hero-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes hero-ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hero-badge-arrow {
  transition: transform 0.18s ease;
}

.hero-badge:hover .hero-badge-arrow {
  transform: translateX(2px);
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  max-width: 920px;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

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

[data-theme="dark"] .hero-gradient-text {
  background: linear-gradient(135deg, #FDBA74 0%, #FB923C 50%, #B4ADFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto 2.25rem;
  position: relative;
  z-index: 1;
}

.hero-search-wrapper {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  z-index: 2;
}

.hero-search-input {
  width: 100%;
  height: 60px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 0 4rem 0 3.5rem;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .hero-search-input {
  background: #111827;
  border-color: #1f2937;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-search-input:hover {
  border-color: rgba(249, 115, 22, 0.45);
}

.hero-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow), 0 12px 32px -4px rgba(249, 115, 22, 0.2);
  outline: none;
}

.hero-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.hero-search-hint {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-category-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.42rem 0.95rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .hero-pill-link {
  background: #111827;
  border-color: #1f2937;
}

.hero-pill-link:hover {
  color: var(--primary);
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.12);
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
  position: relative;
  z-index: 1;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-trust-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .stats-strip {
  background: linear-gradient(180deg, #111827 0%, #0d131f 100%);
  border-color: #1f2937;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
    padding: 1.75rem 2.5rem;
    gap: 1.5rem;
  }
}

.stat-item {
  text-align: center;
  position: relative;
}

@media (min-width: 640px) {
  .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border-color);
  }
}

.stat-number {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.stat-number span {
  color: var(--primary);
}

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

/* Section Header System */
.section-header-block {
  margin-bottom: 2rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.22);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.65rem;
}

[data-theme="dark"] .section-badge {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(96, 85, 205, 0.3);
}

.section-divider {
  height: 1px;
  width: 100%;
  margin: 4.5rem 0;
  background: linear-gradient(90deg, transparent 0%, var(--border-color) 30%, var(--border-color) 70%, transparent 100%);
}

/* Category Preview Tags */
.category-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.85rem;
}

.category-preview-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.category-card:hover .category-preview-tag {
  color: var(--text-primary);
  border-color: rgba(96, 85, 205, 0.3);
}

/* Popular & Flagship Tool Cards */
.tool-card--popular {
  border-color: rgba(249, 115, 22, 0.28);
}

.tool-card--flagship {
  position: relative;
}

.tool-card--flagship::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #F97316, transparent);
  border-radius: 9999px;
}

/* Power Workflows Showcase Cards */
.workflow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .workflow-card {
  background: #111827;
  border-color: #1F2937;
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.4);
}

.workflow-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .workflow-card:hover {
  box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.6);
}

.workflow-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(96, 85, 205, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.workflow-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.workflow-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.workflow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.workflow-tag-link {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.workflow-tag-link:hover {
  color: var(--primary);
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.08);
  transform: translateY(-1px);
}

/* Why TheToolMint Benefits */
.benefit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .benefit-card {
  background: #111827;
  border-color: #1F2937;
}

.benefit-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .benefit-card:hover {
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.5);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(96, 85, 205, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.benefit-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.benefit-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Final Conversion CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(96, 85, 205, 0.1) 0%, rgba(124, 114, 230, 0.04) 100%), var(--bg-surface);
  border: 1px solid rgba(96, 85, 205, 0.3);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.06);
  margin-top: 5rem;
  margin-bottom: 3rem;
}

[data-theme="dark"] .cta-banner {
  background: linear-gradient(135deg, rgba(96, 85, 205, 0.14) 0%, rgba(15, 23, 42, 0.9) 100%), #111827;
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 12px 40px -4px rgba(0, 0, 0, 0.6);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   Advanced SaaS Platform Components (Sandbox, Discovery Tabs, Category Suites)
   ========================================================================== */

/* Secondary Ambient Atmospheric Glow */
.hero-ambient-glow-secondary {
  position: absolute;
  top: 60px;
  right: 12%;
  width: 520px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.12) 0%, rgba(59, 130, 246, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero-ambient-glow-secondary {
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.16) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
}

/* Interactive Hero Live Sandbox Container */
.hero-sandbox-container {
  max-width: 780px;
  margin: 2.25rem auto 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(249, 115, 22, 0.08);
  position: relative;
  z-index: 2;
  overflow: hidden;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .hero-sandbox-container {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(249, 115, 22, 0.15);
}

.hero-sandbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.15rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.5rem;
}

[data-theme="dark"] .hero-sandbox-header {
  background: rgba(15, 23, 42, 0.65);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.hero-sandbox-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-sandbox-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.8rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.hero-sandbox-tab:hover {
  color: var(--text-primary);
  background: rgba(96, 85, 205, 0.06);
}

.hero-sandbox-tab.is-active {
  color: var(--primary);
  background: var(--bg-surface);
  border-color: var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .hero-sandbox-tab.is-active {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #FB923C;
}

.hero-sandbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

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

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

.hero-sandbox-panel {
  display: none;
  padding: 1.25rem 1.5rem;
}

.hero-sandbox-panel.is-active {
  display: block;
}

.sandbox-textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-primary);
  resize: none;
  outline: none;
  transition: border-color 0.15s ease;
}

.sandbox-textarea:focus {
  border-color: var(--primary);
}

.sandbox-single-input {
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.sandbox-single-input:focus {
  border-color: var(--primary);
}

.sandbox-metrics-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.sandbox-metric-item {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.sandbox-metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
}

.sandbox-metric-lbl {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sandbox-deep-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.08);
  transition: all 0.15s ease;
}

.sandbox-deep-link:hover {
  background: rgba(249, 115, 22, 0.18);
  transform: translateX(2px);
}

.sandbox-hash-result-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  max-width: calc(100% - 160px);
}

.sandbox-hash-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.sandbox-hash-code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--primary);
  background: var(--bg-subtle);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sandbox-calc-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.sandbox-calc-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sandbox-calc-input {
  width: 90px;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
}

.sandbox-calc-input:focus {
  border-color: var(--primary);
}

.sandbox-calc-res {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
  padding: 0 0.4rem;
}

/* Modern Discovery Segmented Filter Bar */
.discovery-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .discovery-filter-bar {
  background: #111827;
  border-color: #1f2937;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.discovery-tab {
  padding: 0.45rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.discovery-tab:hover {
  color: var(--text-primary);
  background: rgba(249, 115, 22, 0.08);
}

.discovery-tab.is-active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(96, 85, 205, 0.3);
}

/* Category Card Ecosystem & Color Accents */
.category-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover .category-card-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

.category-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.category-card-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.category-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.85rem 0;
}

.category-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.category-preview-chip:hover {
  color: var(--primary);
  background: rgba(96, 85, 205, 0.1);
  border-color: rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
}

.category-card-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.category-card:hover .category-card-footer-link {
  color: var(--primary);
}

.category-card:hover .category-card-footer-link .cta-arrow-icon {
  transform: translateX(3px);
}

/* Category Color Theming */
.category-card--image-tools:hover { border-color: rgba(96, 85, 205, 0.5); }
.category-card--pdf-tools:hover { border-color: rgba(244, 63, 94, 0.45); }
.category-card--pdf-tools .category-card-icon-wrap { background: rgba(244, 63, 94, 0.08); border-color: rgba(244, 63, 94, 0.2); color: #f43f5e; }
.category-card--developer-tools:hover { border-color: rgba(99, 102, 241, 0.45); }
.category-card--developer-tools .category-card-icon-wrap { background: rgba(99, 102, 241, 0.08); border-color: rgba(99, 102, 241, 0.2); color: #6366f1; }
.category-card--calculators:hover { border-color: rgba(139, 92, 246, 0.45); }
.category-card--calculators .category-card-icon-wrap { background: rgba(139, 92, 246, 0.08); border-color: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.category-card--security-tools:hover { border-color: rgba(6, 182, 212, 0.45); }
.category-card--security-tools .category-card-icon-wrap { background: rgba(6, 182, 212, 0.08); border-color: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.category-card--seo-tools:hover { border-color: rgba(245, 158, 11, 0.45); }
.category-card--seo-tools .category-card-icon-wrap { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.category-card--qr-tools:hover { border-color: rgba(168, 85, 247, 0.45); }
.category-card--qr-tools .category-card-icon-wrap { background: rgba(168, 85, 247, 0.08); border-color: rgba(168, 85, 247, 0.2); color: #a855f7; }
.category-card--converter-tools:hover { border-color: rgba(59, 130, 246, 0.45); }
.category-card--converter-tools .category-card-icon-wrap { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.category-card--creator-tools:hover { border-color: rgba(236, 72, 153, 0.45); }
.category-card--creator-tools .category-card-icon-wrap { background: rgba(236, 72, 153, 0.08); border-color: rgba(236, 72, 153, 0.2); color: #ec4899; }
.category-card--ai-tools:hover { border-color: rgba(124, 114, 230, 0.45); }
.category-card--ai-tools .category-card-icon-wrap { background: rgba(124, 114, 230, 0.08); border-color: rgba(124, 114, 230, 0.2); color: #14b8a6; }

/* Tool Card Meta Tags & Elevation */
.tool-card-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.tool-card-meta-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.workflow-pipeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  width: fit-content;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   Floating Engagement Card (Subtle & Premium)
   ========================================================================== */
.engagement-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  max-width: 320px;
  width: calc(100% - 48px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 16px;
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(96, 85, 205, 0.1);
  padding: 1rem 1.15rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(120%) scale(0.95);
  opacity: 0;
  pointer-events: none;
}

.engagement-card.is-visible {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.engagement-card.is-closing {
  transform: translateX(120%) scale(0.95);
  opacity: 0;
  pointer-events: none;
}

[data-theme="dark"] .engagement-card {
  background: rgba(17, 24, 39, 0.94);
  border-color: rgba(251, 146, 60, 0.30);
  box-shadow: 0 16px 45px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 114, 230, 0.15);
}

.engagement-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.engagement-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.engagement-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  letter-spacing: -0.01em;
}

.engagement-card-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  transition: all 0.18s ease;
}

.engagement-card-close:hover {
  color: var(--text-primary);
  background: rgba(96, 85, 205, 0.1);
}

.engagement-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.engagement-card-actions {
  display: flex;
  gap: 0.5rem;
}

.engagement-action-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.engagement-action-pill svg {
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.engagement-action-pill:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px var(--primary-glow);
}

.engagement-action-pill:hover svg {
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .engagement-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
    transform: translateY(120%) scale(0.95);
    padding: 0.85rem 1rem;
  }

  .engagement-card.is-visible {
    transform: translateY(0) scale(1);
  }

  .engagement-card.is-closing {
    transform: translateY(120%) scale(0.95);
  }
}
