/**
 * ForensicsInsider - Dedicated Tools & Utilities Stylesheet
 * Self-contained design system matching the 2026 Red/Black/Tactical Cyber Theme
 */

/* --------------------------------------------------------------------------
   00. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  --fi-primary: #e11f25;
  --fi-primary-hover: #c4161c;
  --fi-primary-dark: #991b1b;
  --fi-primary-light: rgba(225, 31, 37, 0.08);
  --fi-primary-subtle: rgba(225, 31, 37, 0.14);
  --fi-primary-glow: rgba(225, 31, 37, 0.35);

  --fi-dark-950: #07090e;
  --fi-dark-900: #0c0f16;
  --fi-dark-850: #11151f;
  --fi-dark-800: #171d2b;
  --fi-dark-750: #1f2738;
  --fi-dark-700: #2a3449;

  --fi-border-dark: rgba(255, 255, 255, 0.08);
  --fi-border-dark-hover: rgba(225, 31, 37, 0.4);
  --fi-border-light: #e2e8f0;

  --fi-slate-50: #f8fafc;
  --fi-slate-100: #f1f5f9;
  --fi-slate-200: #e2e8f0;
  --fi-slate-300: #cbd5e1;
  --fi-slate-400: #94a3b8;
  --fi-slate-500: #64748b;
  --fi-slate-600: #475569;
  --fi-slate-700: #334155;
  --fi-slate-800: #1e293b;
  --fi-slate-900: #0f172a;
  --fi-white: #ffffff;

  --fi-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fi-font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;

  --fi-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --fi-shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  --fi-shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
  --fi-shadow-red: 0 8px 24px -4px rgba(225, 31, 37, 0.35);

  --fi-radius-sm: 6px;
  --fi-radius-md: 10px;
  --fi-radius-lg: 14px;
  --fi-radius-full: 9999px;
  --fi-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   01. BASE STYLES & TYPOGRAPHY
   -------------------------------------------------------------------------- */
body {
  font-family: var(--fi-font-sans);
  background-color: var(--fi-slate-50);
  color: var(--fi-slate-800);
  line-height: 1.65;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #e11f25 0%, #ff4d52 100%);
  box-shadow: 0 0 10px rgba(225, 31, 37, 0.7);
  z-index: 1050;
  transition: width 0.1s ease-out;
}

/* --------------------------------------------------------------------------
   02. TACTICAL TOP BAR & LIVE DOT
   -------------------------------------------------------------------------- */
.fi-top-bar {
  background-color: var(--fi-dark-950);
  color: var(--fi-slate-300);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--fi-border-dark);
}

.fi-top-bar .live-dot,
.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--fi-primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--fi-primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 31, 37, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(225, 31, 37, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 31, 37, 0); }
}

.fi-top-bar a {
  color: var(--fi-slate-300);
  font-weight: 500;
}

.fi-top-bar a:hover {
  color: var(--fi-white);
}

/* --------------------------------------------------------------------------
   03. STICKY TACTICAL NAVBAR
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(12, 15, 22, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fi-border-dark);
  transition: var(--fi-transition);
}

.site-header .navbar {
  padding: 0.85rem 0;
}

.site-header .navbar-brand img {
  height: 40px;
  width: auto;
  max-width: 200px;
  display: block;
}

.navbar-nav .nav-link {
  color: #e2e8f0 !important;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.6rem 1rem !important;
  border-radius: var(--fi-radius-sm);
  transition: var(--fi-transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.05);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: var(--fi-primary);
  transition: width 0.25s ease;
}

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

.nav-cta-btn {
  background-color: var(--fi-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--fi-radius-sm);
  border: 1px solid var(--fi-primary);
  transition: var(--fi-transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-block;
}

.nav-cta-btn:hover {
  background-color: var(--fi-primary-hover);
  border-color: var(--fi-primary-hover);
  box-shadow: 0 4px 14px rgba(225, 31, 37, 0.4);
}

.nav-search-btn {
  background: transparent;
  border: 1px solid var(--fi-border-dark);
  color: var(--fi-slate-300);
  border-radius: var(--fi-radius-sm);
  padding: 0.45rem 0.8rem;
  transition: var(--fi-transition);
  cursor: pointer;
}

.nav-search-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--fi-primary);
}

/* --------------------------------------------------------------------------
   04. TOOL HERO & HEADER SECTION
   -------------------------------------------------------------------------- */
.fi-tools-hero {
  background-color: var(--fi-dark-950, #07090e);
  background-image: 
    radial-gradient(circle at 85% 15%, rgba(225, 31, 37, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(225, 31, 37, 0.09) 0%, transparent 40%),
    linear-gradient(180deg, #07090e 0%, #0c0f16 100%);
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fi-tools-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.55;
}

.fi-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 31, 37, 0.12);
  border: 1px solid rgba(225, 31, 37, 0.32);
  color: #ff6b70;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--fi-font-mono, 'JetBrains Mono', monospace);
}

.fi-tool-badge .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #e11f25;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #e11f25;
  animation: pulse-dot 2s infinite;
}

.fi-tool-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.fi-tool-title .highlight {
  color: #e11f25;
  position: relative;
}

.fi-tool-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 750px;
  line-height: 1.65;
}

.fi-tool-breadcrumb {
  font-size: 0.825rem;
  font-family: var(--fi-font-mono, 'JetBrains Mono', monospace);
  color: #64748b;
  margin-bottom: 1.25rem;
}

.fi-tool-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.fi-tool-breadcrumb a:hover {
  color: #e11f25;
}

.fi-tool-breadcrumb .separator {
  margin: 0 8px;
  color: #475569;
}

.fi-tool-breadcrumb .current {
  color: #e11f25;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   05. TACTICAL WORKSPACE CARD
   -------------------------------------------------------------------------- */
.fi-workspace-card {
  background: #11151f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(225, 31, 37, 0.15);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fi-workspace-card:focus-within {
  border-color: rgba(225, 31, 37, 0.5);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(225, 31, 37, 0.25);
}

.fi-card-header-bar {
  background: #0c0f16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fi-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.fi-dot.red { background: #ff5f56; }
.fi-dot.yellow { background: #ffbd2e; }
.fi-dot.green { background: #27c93f; }

.fi-card-title-text {
  font-family: var(--fi-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   06. INTERACTIVE DROPZONE
   -------------------------------------------------------------------------- */
.fi-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(12, 15, 22, 0.6);
  padding: 2.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.fi-dropzone:hover,
.fi-dropzone.dragover {
  border-color: #e11f25;
  background: rgba(225, 31, 37, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(225, 31, 37, 0.2);
}

.fi-dropzone-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  background: rgba(225, 31, 37, 0.12);
  border: 1px solid rgba(225, 31, 37, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d52;
  transition: transform 0.25s;
}

.fi-dropzone:hover .fi-dropzone-icon {
  transform: scale(1.08);
}

.fi-dropzone-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.fi-dropzone-subtitle {
  color: #94a3b8;
  font-size: 0.875rem;
}

.fi-dropzone-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.fi-spec-badge {
  background: #171d2b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-family: var(--fi-font-mono, 'JetBrains Mono', monospace);
  padding: 3px 9px;
  border-radius: 5px;
}

/* --------------------------------------------------------------------------
   07. FORM CONTROLS & BUTTONS
   -------------------------------------------------------------------------- */
.fi-form-control {
  background-color: #0c0f16 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease !important;
}

.fi-form-control:focus {
  border-color: #e11f25 !important;
  box-shadow: 0 0 0 3px rgba(225, 31, 37, 0.25) !important;
  background-color: #0f131c !important;
}

.fi-form-control::placeholder {
  color: #64748b;
}

.fi-textarea-mono {
  font-family: var(--fi-font-mono, 'JetBrains Mono', monospace) !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
}

.btn-fi-primary {
  background: linear-gradient(135deg, #e11f25 0%, #c4161c 100%);
  color: #ffffff !important;
  font-weight: 700;
  border: 1px solid #e11f25;
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(225, 31, 37, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-fi-primary:hover {
  background: linear-gradient(135deg, #f0282f 0%, #d1171d 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(225, 31, 37, 0.55);
}

.btn-fi-dark {
  background: #171d2b;
  color: #cbd5e1 !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.75rem 1.4rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-fi-dark:hover {
  background: #1f2738;
  color: #ffffff !important;
  border-color: #e11f25;
}

.btn-fi-copy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.775rem;
  font-family: var(--fi-font-mono, 'JetBrains Mono', monospace);
  padding: 4px 10px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fi-copy:hover {
  background: #e11f25;
  color: #ffffff;
  border-color: #e11f25;
  box-shadow: 0 2px 8px rgba(225, 31, 37, 0.4);
}

/* --------------------------------------------------------------------------
   08. RESULTS PRESENTATION
   -------------------------------------------------------------------------- */
.fi-results-wrapper {
  margin-top: 2rem;
}

.fi-result-box {
  background: #0c0f16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.fi-hash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--fi-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

.fi-hash-row:last-child {
  border-bottom: none;
}

.fi-hash-name {
  color: #e11f25;
  font-weight: 700;
  width: 90px;
  flex-shrink: 0;
}

.fi-hash-val {
  color: #f1f5f9;
  word-break: break-all;
  flex-grow: 1;
}

/* Hash Comparison Box */
.fi-hash-compare-box {
  background: rgba(12, 15, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.fi-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--fi-font-mono, 'JetBrains Mono', monospace);
}

.fi-match-badge.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.fi-match-badge.danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* --------------------------------------------------------------------------
   09. TOOLS DIRECTORY HUB GRID
   -------------------------------------------------------------------------- */
.fi-tool-card {
  background: #ffffff;
  border: 1px solid var(--fi-slate-200, #e2e8f0);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.fi-tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.25s ease;
}

.fi-tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 31, 37, 0.4);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(225, 31, 37, 0.1);
}

.fi-tool-card:hover::before {
  background: linear-gradient(90deg, #e11f25 0%, #ff4d52 100%);
}

.fi-tool-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(225, 31, 37, 0.08);
  border: 1px solid rgba(225, 31, 37, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e11f25;
  margin-bottom: 1.25rem;
  transition: transform 0.25s;
}

.fi-tool-card:hover .fi-tool-icon-wrap {
  transform: scale(1.08) rotate(-3deg);
  background: #e11f25;
  color: #ffffff;
}

.fi-tool-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.fi-tool-card-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.fi-tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  margin-top: auto;
}

.fi-tool-card-link {
  color: #e11f25;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.fi-tool-card-link:hover {
  color: #c4161c;
  gap: 8px;
}

.fi-category-pill {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--fi-font-mono, 'JetBrains Mono', monospace);
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

/* --------------------------------------------------------------------------
   10. EDITORIAL & TECHNICAL CONTENT SECTIONS
   -------------------------------------------------------------------------- */
.fi-tool-content-section {
  background-color: #f8fafc;
  color: #1e293b;
  padding: 4rem 0;
  line-height: 1.75;
}

.fi-tool-content-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid #e11f25;
}

.fi-tool-content-section h2:first-of-type {
  margin-top: 0;
}

.fi-tool-content-section h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.fi-tool-content-section p {
  color: #334155;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.fi-content-callout {
  background: #ffffff;
  border: 1px solid var(--fi-slate-200, #e2e8f0);
  border-left: 4px solid #e11f25;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.fi-content-callout.dark {
  background: #11151f !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  border-left-color: #e11f25 !important;
  color: #e2e8f0 !important;
}

.fi-content-callout.dark h5 {
  color: #ffffff !important;
}

.fi-content-callout.dark p,
.fi-content-callout.dark li,
.fi-content-callout.dark .fi-checklist li {
  color: #cbd5e1 !important;
}

.fi-content-callout.dark strong,
.fi-content-callout.dark .fi-checklist li strong {
  color: #ffffff !important;
}

/* Technical Checklists & Bullet Points */
.fi-checklist {
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0;
}

.fi-checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: #334155;
}

.fi-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #e11f25;
  font-weight: 800;
  font-family: var(--fi-font-mono, 'JetBrains Mono', monospace);
}

/* Modern Slate Text Palette Utilities for High Contrast */
.text-slate-100 { color: #f1f5f9 !important; }
.text-slate-200 { color: #e2e8f0 !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-800 { color: #1e293b !important; }
.text-slate-900 { color: #0f172a !important; }

/* Forensic Integrity Protocol Box in Hero Header */
.fi-protocol-box {
  background: rgba(12, 15, 22, 0.95) !important;
  border: 1px solid rgba(225, 31, 37, 0.4) !important;
  border-radius: 8px;
  color: #e2e8f0 !important;
}

.fi-protocol-box p {
  color: #cbd5e1 !important;
}

.fi-protocol-box span,
.fi-protocol-box strong {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   11. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.fi-faq-accordion .accordion-item {
  background: #ffffff;
  border: 1px solid var(--fi-slate-200, #e2e8f0);
  border-radius: 10px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.fi-faq-accordion .accordion-button {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1.2rem 1.5rem;
  box-shadow: none !important;
}

.fi-faq-accordion .accordion-button:not(.collapsed) {
  background: #f8fafc;
  color: #e11f25;
  border-bottom: 1px solid #e2e8f0;
}

.fi-faq-accordion .accordion-body {
  padding: 1.25rem 1.5rem;
  color: #475569;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   12. RELATED UTILITIES TRAY
   -------------------------------------------------------------------------- */
.fi-related-tray {
  background-color: #0c0f16;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.5rem 0;
}

.fi-related-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.fi-related-tray .fi-tool-card {
  background: #11151f;
  border-color: rgba(255, 255, 255, 0.08);
}

.fi-related-tray .fi-tool-card-title {
  color: #ffffff;
}

.fi-related-tray .fi-tool-card-desc {
  color: #94a3b8;
}

.fi-related-tray .fi-tool-card-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.fi-related-tray .fi-category-pill {
  background: #171d2b;
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   13. SITE FOOTER & SOCIAL LINKS
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--fi-dark-950);
  color: #94a3b8;
  border-top: 1px solid var(--fi-border-dark);
  font-size: 0.925rem;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

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

.footer-top {
  padding: 4.5rem 0 3.5rem;
}

.footer-widget-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--fi-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--fi-transition);
}

.footer-links a:hover {
  transform: translateX(4px);
  color: var(--fi-primary);
}

.footer-email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--fi-border-dark);
  border-radius: var(--fi-radius-sm);
  transition: var(--fi-transition);
}

.footer-email-link:hover {
  border-color: var(--fi-primary);
  background: rgba(225, 31, 37, 0.1);
  color: #ffffff !important;
}

.footer-social-wrap {
  margin-top: 1.25rem;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--fi-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--fi-border-dark);
  color: #cbd5e1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--fi-transition);
  text-decoration: none;
}

.footer-social-link:hover {
  background-color: var(--fi-primary);
  border-color: var(--fi-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(225, 31, 37, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #64748b;
}

.back-to-top-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--fi-border-dark);
  color: #cbd5e1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--fi-transition);
}

.back-to-top-btn:hover {
  background-color: var(--fi-primary);
  border-color: var(--fi-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--fi-shadow-red);
}

/* --------------------------------------------------------------------------
   14. TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.fi-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--fi-dark-900);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--fi-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--fi-primary);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

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

/* --------------------------------------------------------------------------
   16. TOOLS HUB: FULL BLOCK SEARCH & CATEGORY FILTER TABS
   -------------------------------------------------------------------------- */
.fi-search-block-wrap {
  position: relative;
  width: 100%;
}

.fi-search-input-full {
  background: #11151f !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px !important;
  padding: 0.95rem 3.25rem 0.95rem 3.25rem !important;
  font-size: 1.05rem !important;
  font-weight: 500;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.fi-search-input-full::placeholder {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 400;
}

.fi-search-input-full:focus {
  border-color: #e11f25 !important;
  box-shadow: 0 0 0 3px rgba(225, 31, 37, 0.25), 0 8px 30px rgba(0, 0, 0, 0.5) !important;
  outline: none;
}

.fi-search-icon-left {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

.fi-search-block-wrap:focus-within .fi-search-icon-left {
  color: #e11f25;
}

.fi-search-clear-btn {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  z-index: 3;
}

.fi-search-clear-btn:hover {
  background: #e11f25;
  border-color: #e11f25;
  color: #ffffff;
}

.fi-filter-tabs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fi-filter-btn {
  background: #11151f;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 0.5rem 1.15rem;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.fi-filter-btn:hover {
  background: #1c2233;
  color: #ffffff !important;
  border-color: rgba(225, 31, 37, 0.5);
  transform: translateY(-1px);
}

.fi-filter-btn.active {
  background: #e11f25 !important;
  color: #ffffff !important;
  border-color: #e11f25 !important;
  box-shadow: 0 4px 16px rgba(225, 31, 37, 0.45);
}

.fi-filter-btn .badge-pill-count {
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  font-size: 0.725rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-family: var(--fi-font-mono, 'JetBrains Mono', monospace);
}

.fi-filter-btn.active .badge-pill-count {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

#fiNoToolsFound {
  text-align: center;
  padding: 4rem 1.5rem;
  width: 100%;
}

/* --------------------------------------------------------------------------
   17. MOBILE & RESPONSIVE POLISH
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .fi-tools-hero {
    padding: 2.5rem 0 2rem;
  }
  
  .fi-tool-title {
    font-size: 1.75rem;
  }
  
  .fi-dropzone {
    padding: 2rem 1rem;
  }
  
  .fi-hash-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .fi-hash-name {
    width: 100%;
  }

  .fi-search-input-full {
    font-size: 0.95rem !important;
    padding: 0.85rem 2.85rem 0.85rem 2.85rem !important;
  }

  .fi-filter-tabs-row {
    gap: 0.35rem;
  }

  .fi-filter-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.775rem;
  }
}


