/* ==========================================================================
   AG World Tools — Design System & Stylesheet v1.0
   Mobile-first, accessible, trustworthy financial UI
   ========================================================================== */

:root {
  /* Color Palette - Royal Fintech Blue */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-surface-elevated: #ffffff;
  
  --text-main: #0f172a;        /* 15.3:1 contrast on white - AAA */
  --text-muted: #475569;       /* 5.8:1 contrast on white - AA */
  --text-tertiary: #64748b;    /* 4.5:1 contrast on white */
  --text-inverse: #ffffff;
  
  --brand-primary: #1d4ed8;    /* Royal Fintech Blue */
  --brand-hover: #1e40af;
  --brand-active: #172554;
  --brand-light: #eff6ff;
  --brand-border: #bfdbfe;
  
  --accent: #10b981;
  --accent-green: #10b981;
  --accent-blue: #2563eb;
  --accent-light: #ecfdf5;
  --accent-border: #a7f3d0;
  
  --border: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-focus: #2563eb;
  
  --error: #b91c1c;            /* Red 700 - 5.6:1 contrast */
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  
  --warning-text: #92400e;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  
  --info-text: #1e3a8a;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;

  /* Typography & Sizing */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);

  /* Compatibility Aliases */
  --border-color: #cbd5e1;
  --bg-surface-alt: #f1f5f9;
  --text-color: #0f172a;
  --card-bg: #ffffff;
  --card-bg-subtle: #f8fafc;

  /* Container */
  --container-max: 1140px;
}

/* Dark Mode Tokens (Obsidian / Slate Navy) */
[data-theme="dark"] {
  --bg-page: #0b0f19;
  --bg-surface: #111827;
  --bg-subtle: #1e293b;
  --bg-surface-elevated: #1e293b;
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-inverse: #0b0f19;
  
  --brand-primary: #3b82f6;
  --brand-hover: #60a5fa;
  --brand-active: #93c5fd;
  --brand-light: rgba(59, 130, 246, 0.15);
  --brand-border: rgba(59, 130, 246, 0.35);
  
  --accent: #34d399;
  --accent-green: #34d399;
  --accent-light: rgba(16, 185, 129, 0.15);
  --accent-border: rgba(16, 185, 129, 0.35);
  
  --border: #1e293b;
  --border-subtle: #334155;
  --border-focus: #3b82f6;
  
  --border-color: #334155;
  --bg-surface-alt: #1e293b;
  --text-color: #f8fafc;
  --card-bg: #111827;
  --card-bg-subtle: #1e293b;
  
  --error: #f87171;
  --error-bg: rgba(239, 68, 68, 0.14);
  --error-border: rgba(239, 68, 68, 0.28);
  
  --warning-text: #fbbf24;
  --warning-bg: rgba(245, 158, 11, 0.14);
  --warning-border: rgba(245, 158, 11, 0.28);
  
  --info-text: #60a5fa;
  --info-bg: rgba(59, 130, 246, 0.14);
  --info-border: rgba(59, 130, 246, 0.28);

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 20px -3px rgba(0, 0, 0, 0.65), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

html, body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--brand-primary);
  color: #ffffff;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: var(--radius-md);
  z-index: 1000;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Accessible Focus States */
:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Layout Utilities */
.container {
  width: min(var(--container-max), calc(100% - 32px));
  margin-inline: auto;
}

/* Header & Navigation */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10000;
  overflow: visible !important;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.brand-logo:hover {
  opacity: 0.92;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}

.brand-icon img,
.brand-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.25));
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

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

.nav-link[aria-current="page"] {
  color: var(--brand-primary);
  background-color: var(--brand-light);
  font-weight: 700;
}

/* Navigation Dropdown Component */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-btn:hover,
.nav-dropdown:focus-within .nav-dropdown-btn,
.nav-dropdown-btn[aria-expanded="true"] {
  color: var(--brand-primary);
  background-color: var(--brand-light);
}

.nav-dropdown-btn .nav-chevron {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-tertiary);
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown-btn[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 290px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
  animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu.show {
  display: flex;
}

.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item:hover {
  background-color: var(--brand-light);
  color: var(--brand-primary);
}

.nav-dropdown-item .nav-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nav-dropdown-item .nav-item-desc {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 2px;
  line-height: 1.35;
}

.nav-dropdown-item.upcoming {
  opacity: 0.65;
  cursor: not-allowed;
  user-select: none;
}

.nav-dropdown-divider {
  height: 1px;
  background-color: var(--border);
  margin: 6px 4px;
}

.nav-dropdown-group-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: var(--text-tertiary);
  padding: 4px 12px 2px;
}

/* Mega Menu (Grouped 3-Column Navigation for Finance) */
.nav-dropdown-menu.nav-mega-menu {
  min-width: 780px;
  max-width: 860px;
  padding: 18px;
  left: 50%;
  transform: translateX(-35%);
}

.nav-dropdown:hover .nav-dropdown-menu.nav-mega-menu,
.nav-dropdown:focus-within .nav-dropdown-menu.nav-mega-menu,
.nav-dropdown-menu.nav-mega-menu.show {
  display: block;
}

.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.nav-mega-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-mega-col .nav-dropdown-group-title {
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  color: var(--brand-primary);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-mega-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-mega-all-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--brand-light);
  transition: all 0.15s ease;
}

.nav-mega-all-link:hover {
  text-decoration: underline;
  filter: brightness(0.95);
}

.nav-mega-trust {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.nav-mega-col-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--brand-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  transition: all 0.15s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.nav-mega-col-all-link:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

[data-theme="dark"] .nav-mega-col-all-link {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
}

[data-theme="dark"] .nav-mega-col-all-link:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

/* Vehicle Financing Box for Car Loan mode */
.vehicle-financing-box {
  background: var(--bg-surface-alt, #f8fafc);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
[data-theme="dark"] .vehicle-financing-box {
  background: rgba(255, 255, 255, 0.03);
}
.vehicle-financing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.vehicle-financing-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ltv-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #dbeafe;
  color: #1e40af;
}
[data-theme="dark"] .ltv-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}
.vehicle-derived-principal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  font-size: 0.88rem;
  font-weight: 600;
}
.vehicle-derived-principal .amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-primary);
}

@media (max-width: 992px) {
  .nav-dropdown-menu.nav-mega-menu {
    min-width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    left: 0;
    transform: none;
    position: static;
  }
  .nav-mega-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.badge-tag {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--text-tertiary);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: none;
  letter-spacing: normal;
}

.badge-tag-tax {
  font-size: 0.68rem;
  font-weight: 800;
  background: #ecfdf5;
  color: #065f46;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .badge-tag-tax {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

/* Header Action Controls (Theme Switcher & Mobile Menu) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background: var(--brand-light);
}

/* Language Selector (i18n) */
.lang-selector-wrapper {
  position: relative;
  display: inline-block;
  z-index: 10001;
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-toggle-btn:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background: var(--brand-light);
}

.lang-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 155px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
  padding: 6px;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lang-dropdown.hidden {
  display: none !important;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.lang-option:hover {
  background: var(--brand-light);
  color: var(--brand-primary);
}

.lang-option.active {
  background: var(--brand-primary);
  color: #ffffff;
  font-weight: 600;
}

.lang-option.active .lang-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.lang-badge {
  font-size: 0.6875rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-base);
  color: var(--text-muted);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  padding: 16px 0 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.breadcrumb-list .breadcrumb-separator {
  display: none !important;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.88rem;
  padding: 16px 0 0;
  color: var(--text-tertiary);
}

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

.breadcrumb a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.breadcrumb .breadcrumb-separator {
  display: inline-block !important;
  color: var(--border-subtle);
  margin: 0 8px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: var(--border-subtle);
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb-item a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.breadcrumb-item[aria-current="page"] {
  color: var(--text-main);
  font-weight: 600;
}

/* Page Headers */
.page-header {
  padding: 24px 0 28px;
}

.page-eyebrow {
  display: inline-block;
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.page-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--text-main);
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 780px;
  margin: 0;
}

/* Hero Section (Home) */
.hero-section {
  padding: 44px 0 32px;
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 8px 0 16px;
  max-width: 820px;
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 0 24px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-badge svg {
  color: var(--brand-primary);
}

/* Main Grid & Calculator Layout */
.calc-layout,
.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}

/* Panels & Cards */
.card-panel,
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Form Controls */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.form-label {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-main);
}

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

.input-prefix {
  position: absolute;
  left: 14px;
  font-weight: 700;
  color: var(--text-tertiary);
  pointer-events: none;
  font-size: 1.05rem;
}

.input-suffix {
  position: absolute;
  right: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
  pointer-events: none;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-variant-numeric: tabular-nums;
}

.has-prefix .form-control {
  padding-left: 32px;
}

.has-suffix .form-control {
  padding-right: 48px;
}

.form-control:focus {
  border-color: var(--border-focus);
  outline: none;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}

.form-control[aria-invalid="true"] {
  border-color: var(--error);
  background-color: #fffaf0;
}

.form-control[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.2);
}

/* Range Slider */
.range-slider {
  width: 100%;
  height: 6px;
  margin: 10px 0 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--brand-primary, #0066FF) var(--slider-fill, 0%), var(--border) var(--slider-fill, 0%));
  border-radius: var(--radius-full);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.1s ease;
}

/* Quick Presets Chips */
.presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.preset-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  background: var(--brand-light);
  border-color: var(--brand-border);
  color: var(--brand-primary);
}

/* Live Indian Number In Words Hint */
.indian-words-hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-primary);
  min-height: 18px;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* Inline Field Error Message */
.field-error {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* Action Buttons */
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 750;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-primary,
.btn-primary:visited {
  background: var(--brand-primary);
  color: #ffffff !important;
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: #ffffff !important;
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  background: var(--brand-active);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* Global Error Alert */
.alert-error {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--error-bg);
  border: 1.5px solid var(--error-border);
  border-radius: var(--radius-md);
  color: var(--error);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Results Card & Metrics */
.results-panel {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.results-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.results-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
}

.primary-metric-card {
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.primary-metric-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.primary-metric-value {
  font-size: clamp(1.8rem, 3.5vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--brand-hover);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.metric-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.metric-item small {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-item strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* Visual Breakdown Bar */
.breakdown-box {
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.breakdown-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.breakdown-bar {
  display: flex;
  height: 12px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--border);
  margin-bottom: 10px;
}

.bar-principal {
  background: var(--brand-primary);
  height: 100%;
  transition: width 0.3s ease;
}

.bar-interest {
  background: #f59e0b;
  height: 100%;
  transition: width 0.3s ease;
}

.breakdown-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.legend-dot.principal {
  background: var(--brand-primary);
}

.legend-dot.interest {
  background: #f59e0b;
}

/* Callout & Notice Boxes */
.notice-box {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--warning-text);
  line-height: 1.5;
  margin: 20px 0;
}

.notice-box strong {
  color: #78350f;
}
[data-theme="dark"] .notice-box strong {
  color: #fde68a;
}

.callout-info {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.9rem;
  color: var(--info-text);
  margin: 20px 0;
}

/* Prepayment Comparison Cards */
.strategy-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.strategy-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: border-color 0.15s ease;
}

.strategy-card.highlight {
  border-color: var(--brand-primary);
  background: var(--brand-light);
}

.strategy-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.strategy-card.highlight .strategy-badge {
  background: var(--brand-primary);
  color: #ffffff;
}

.strategy-title {
  font-size: 1.05rem;
  font-weight: 750;
  margin: 0 0 10px;
}

.strategy-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-size: 0.88rem;
}

/* Amortization Table & Controls */
.schedule-section {
  margin: 36px 0 48px;
}

.schedule-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.schedule-header-row h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
}

.schedule-view-toggle {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 4px;
}

.toggle-btn {
  background: transparent;
  border: 0;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.toggle-btn.active {
  background: var(--bg-surface);
  color: var(--brand-primary);
  font-weight: 750;
  box-shadow: var(--shadow-sm);
}

.table-container {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.schedule-table caption {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
}

.schedule-table th,
.schedule-table td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.schedule-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 750;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 5;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
  text-align: left;
  font-weight: 700;
}

.schedule-table tbody tr:hover {
  background: var(--bg-subtle);
}

.schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-footnote {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* Educational Content Section */
.educational-section {
  margin: 40px 0 54px;
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.content-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.content-block h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--text-main);
}

.content-block h3 {
  font-size: 1.15rem;
  font-weight: 750;
  margin: 20px 0 8px;
}

.content-block p,
.content-block li {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.content-block ol,
.content-block ul {
  padding-left: 20px;
  margin: 12px 0;
}

.formula-display {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--text-main);
  margin: 16px 0;
  overflow-x: auto;
}

/* Worked Example Card */
.worked-example-card {
  background: #fdfbf7;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
}

.worked-example-title {
  font-size: 1rem;
  font-weight: 800;
  color: #9a3412;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.example-item {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.example-item small {
  display: block;
  font-size: 0.78rem;
  color: #7c2d12;
  font-weight: 650;
}

.example-item strong {
  font-size: 1.05rem;
  color: #431407;
  font-variant-numeric: tabular-nums;
}

/* Accessible FAQ Accordions */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

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

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

.faq-summary {
  padding: 16px 20px;
  font-weight: 750;
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

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

.faq-summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] .faq-summary::after {
  transform: rotate(-135deg);
  border-color: var(--brand-primary);
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* Related Tools Directory Grid */
.related-tools-section {
  margin: 44px 0 54px;
}

.related-tools-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}

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

.tool-card-category {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-primary);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.tool-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text-main);
}

.tool-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin: 0 0 18px;
}

.tool-card-cta {
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tool-card .btn {
  margin-top: auto;
  text-align: center;
  justify-content: center;
  font-weight: 700;
  width: 100%;
}

/* Static Article Content (About, Privacy, Disclaimer) */
.article-container {
  max-width: 820px;
  margin: 0 auto 54px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--shadow-sm);
}

.article-container h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 32px 0 12px;
  color: var(--text-main);
}

.article-container h2:first-of-type {
  margin-top: 12px;
}

.article-container p,
.article-container li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.article-container a {
  color: var(--brand-primary);
  font-weight: 600;
}

.article-container a.btn-primary,
.article-container .btn-primary {
  color: #ffffff !important;
  text-decoration: none;
}
.article-container a.btn-secondary,
.article-container .btn-secondary {
  color: var(--text-main) !important;
  text-decoration: none;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.related-tool-link {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.related-tool-link strong {
  font-size: 1rem;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.related-tool-link span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.related-tool-link:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  text-decoration: none !important;
}

/* ==========================================================================
   UNIFIED ENTERPRISE FOOTER SYSTEM
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 56px 0 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
  width: 100%;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1.2fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

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

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .footer-logo,
.footer-brand .site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.footer-brand .footer-logo .logo-icon-img,
.footer-brand .site-logo img {
  border-radius: 6px;
}

.footer-brand .footer-tagline,
.footer-brand p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-tertiary);
  max-width: 340px;
}

.footer-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-muted);
  width: fit-content;
  margin-top: 4px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links a,
.footer-link {
  color: var(--text-muted) !important;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 500;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover,
.footer-link:hover {
  color: var(--brand-primary) !important;
  transform: translateX(3px);
  text-decoration: none;
}

/* Dark Mode High Contrast Overrides */
[data-theme="dark"] .site-footer {
  background: var(--bg-surface);
  border-top-color: var(--border);
}

[data-theme="dark"] .footer-brand .footer-logo,
[data-theme="dark"] .footer-brand .site-logo,
[data-theme="dark"] .footer-col-title {
  color: var(--text-main) !important;
}

[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-link {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .footer-links a:hover,
[data-theme="dark"] .footer-link:hover {
  color: var(--brand-primary) !important;
}

[data-theme="dark"] .footer-brand .footer-tagline,
[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .footer-copyright,
[data-theme="dark"] .footer-badge {
  color: var(--text-tertiary) !important;
}

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

.footer-bottom p {
  margin: 0;
}

.footer-copyright {
  max-width: 800px;
  line-height: 1.5;
}

.footer-badge {
  font-weight: 600;
  color: var(--text-tertiary);
}

/* Legacy Footer Top / Nav compatibility */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

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

.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* State Utilities */
.hidden {
  display: none !important;
}

/* Catalog Category Filter Tabs */
.catalog-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.catalog-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.filter-pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.tool-card.filtered-out {
  display: none !important;
}

/* Tool card enhancements */
.tool-card {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

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

/* Responsive Media Queries */
@media (max-width: 920px) {
  .calc-layout,
  .calculator-layout {
    grid-template-columns: 1fr;
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .site-nav {
    display: none !important;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: 1px solid var(--border);
    margin-top: 4px;
    background: var(--bg-subtle);
    display: none;
  }

  .nav-dropdown-menu.show {
    display: flex;
  }

  .nav-link {
    padding: 10px 14px;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .card-panel,
  .results-panel,
  .content-block {
    padding: 20px;
  }
  
  .metric-grid {
    grid-template-columns: 1fr;
  }
  
  .example-grid {
    grid-template-columns: 1fr;
  }
  
  .strategy-metrics {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-top {
    flex-direction: column;
  }
}

@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;
  }
}

/* ==========================================================================
   MVP Growth Suite: Visual Donut Chart, Viral Toolbar, Embed & Print Engine
   ========================================================================== */

/* 1. Interactive SVG Donut Chart */
.svg-donut-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  padding: 14px 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.svg-donut-inner {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.donut-segment {
  fill: transparent;
  stroke-width: 24;
  transition: stroke-dasharray 0.6s cubic-bezier(0.16, 1, 0.3, 1), stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  cursor: pointer;
}

.donut-segment:hover {
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
}

.donut-center-data {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  max-width: 105px;
}

.donut-center-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.donut-center-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
}

/* 2. Viral Growth Action Bar */
.tool-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.action-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-light);
  transform: translateY(-1px);
}

.action-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.action-whatsapp {
  border-color: #075e54;
  color: #075e54;
  background: rgba(37, 211, 102, 0.08);
}

.action-whatsapp:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.action-print:hover {
  border-color: #0f172a;
  color: #0f172a;
}

/* 3. Embed Modal */
.embed-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.embed-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.embed-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 100%;
  padding: 24px;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.embed-modal-overlay.active .embed-modal-card {
  transform: translateY(0);
}

.embed-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.embed-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.embed-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.embed-modal-close:hover {
  color: var(--text-main);
}

.embed-code-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-main);
  word-break: break-all;
  user-select: all;
  margin: 12px 0;
}

/* 4. Embed Mode (iframe clean view) */
body.is-embed {
  background: var(--bg-surface, #ffffff) !important;
  margin: 0 !important;
  padding: 8px !important;
  overflow-x: hidden !important;
}

body.is-embed .site-header,
body.is-embed .site-footer,
body.is-embed .breadcrumb-nav,
body.is-embed .page-header,
body.is-embed .faq-section,
body.is-embed .related-tools-section,
body.is-embed .seo-content-block,
body.is-embed .educational-section,
body.is-embed .theme-toggle-btn,
body.is-embed .lang-selector-wrapper,
body.is-embed .skip-link,
body.is-embed .loan-type-nav-tabs,
body.is-embed .schedule-section,
body.is-embed .print-branding-header,
body.is-embed .tool-action-bar {
  display: none !important;
}

body.is-embed .container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.is-embed .calc-layout,
body.is-embed .calculator-layout {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

.embed-powered-badge {
  display: none;
}

body.is-embed .embed-powered-badge {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  margin-top: 12px;
  background: var(--bg-surface-alt, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  font-size: 12px;
  color: var(--text-muted, #64748b);
  box-sizing: border-box;
}

body.is-embed .embed-powered-badge a {
  color: var(--brand-primary, #1d4ed8);
  font-weight: 600;
  text-decoration: none;
}

body.is-embed .embed-powered-badge a:hover {
  text-decoration: underline;
}

/* 5. Executive Print / PDF Export Engine */
.print-branding-header,
.print-running-header,
.print-page-footer,
.print-params-summary {
  display: none;
}

@media print {
  @page {
    margin: 14mm 12mm 14mm 12mm;
    size: A4 portrait;
  }

  /* Reset all dark/custom theme variables to executive white/slate */
  :root,
  [data-theme="dark"],
  [data-theme="light"],
  html,
  body {
    --bg-base: #ffffff !important;
    --bg-surface: #ffffff !important;
    --bg-surface-alt: #f8fafc !important;
    --bg-subtle: #f8fafc !important;
    --card-bg: #ffffff !important;
    --card-bg-subtle: #f8fafc !important;
    --text-primary: #0f172a !important;
    --text-secondary: #334155 !important;
    --text-tertiary: #64748b !important;
    --text-muted: #64748b !important;
    --text-main: #0f172a !important;
    --text-color: #0f172a !important;
    --border: #cbd5e1 !important;
    --border-subtle: #e2e8f0 !important;
    --border-color: #cbd5e1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 9.5pt !important;
    line-height: 1.35 !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* 1. Strictly hide all inputs, navigation, tabs, accordions, guides, articles, and noise */
  .site-header,
  .site-footer,
  .breadcrumb-nav,
  .loan-type-nav-tabs,
  .loan-tabs-wrapper,
  .loan-tabs-nav,
  .loan-tab-btn,
  .loan-nav-tab,
  [role="tablist"],
  [role="tab"],
  .loan-tab-icon,
  .loan-tab-text,
  header.loan-hero-banner,
  .loan-hero-banner,
  #loan-hero-banner,
  .loan-hero-content,
  .tool-hero-banner,
  .hero-banner,
  .tool-header,
  .tool-header-block,
  .loan-hero-visual-card,
  .loan-hero-img,
  #loan-hero-img,
  .loan-hero-badge,
  #loan-hero-badge,
  .loan-hero-overlay,
  .loan-hero-highlights,
  #loan-hero-highlights,
  #page-eyebrow,
  #page-title,
  #page-subtitle,
  section[aria-labelledby="form-heading"],
  .calc-layout > section:first-of-type,
  .calc-layout > .card-panel:first-child,
  .calculator-layout-grid > .card-panel:first-child,
  .card-panel:has(form),
  .card-panel:has(#emi-form),
  .card-panel:has(#loan-form),
  .card-panel:has(.calc-form),
  .calc-form-pane,
  .calculator-card:has(form),
  #emi-form,
  #loan-form,
  .calc-form,
  form,
  .form-actions,
  .form-grid,
  .tool-action-bar,
  .growth-toolbar-wrapper,
  .share-bar-container,
  .range-slider,
  .presets-row,
  .quick-preset-chips,
  .theme-toggle-btn,
  .toast,
  .embed-modal-overlay,
  .seo-content-block,
  .seo-content-section,
  .seo-guide-section,
  .educational-section,
  .info-content-section,
  .edu-grid,
  .content-block,
  .worked-example-card,
  .formula-display,
  article,
  .faq-section,
  .faq-accordion,
  .faq-list,
  .faq-item,
  .faq-summary,
  .faq-answer,
  .faq-question,
  details,
  .schedule-view-toggle,
  .table-footnote,
  .related-tools-section,
  .mobile-menu-drawer,
  .filter-pill-group {
    display: none !important;
  }

  /* 2. Top Branding Header (Appears at top of page 1) */
  .print-branding-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2.5px solid #1d4ed8 !important;
    padding-bottom: 10px !important;
    margin-bottom: 12px !important;
    page-break-after: avoid;
    break-after: avoid;
    background: #ffffff !important;
  }

  .print-brand-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .print-brand-logo {
    width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
    display: block !important;
    object-fit: contain !important;
  }

  .print-brand-title {
    font-size: 15pt !important;
    font-weight: 850 !important;
    color: #1d4ed8 !important;
    line-height: 1.1 !important;
  }

  .print-brand-subtitle {
    font-size: 8.5pt !important;
    color: #475569 !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
  }

  .print-brand-right {
    text-align: right !important;
    font-size: 8pt !important;
    color: #64748b !important;
    line-height: 1.4 !important;
  }

  .print-brand-badge {
    display: inline-block !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
    font-weight: 750 !important;
    font-size: 7.5pt !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    margin-bottom: 3px !important;
  }

  .print-params-summary {
    display: block !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    margin-top: 8px !important;
    margin-bottom: 14px !important;
    font-size: 8.5pt !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  /* 3. Results Layout & Cards */
  .calc-layout,
  .calculator-layout-grid {
    display: block !important;
    width: 100% !important;
  }

  .results-panel,
  .card-panel.results-card,
  .calc-layout > .results-panel,
  .calc-layout > .card-panel:last-child {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    background: #ffffff !important;
    padding: 12px 16px !important;
    margin-bottom: 12px !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .primary-metric-card {
    background: #eff6ff !important;
    border: 1.5px solid #2563eb !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
  }

  .primary-metric-value {
    font-size: 20pt !important;
    color: #1d4ed8 !important;
    font-weight: 850 !important;
  }

  .metric-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  .metric-item {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    text-align: center !important;
  }

  .metric-item small {
    display: block !important;
    font-size: 7.5pt !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
  }

  .metric-item strong {
    font-size: 10.5pt !important;
    color: #0f172a !important;
    font-weight: 800 !important;
  }

  .svg-donut-wrapper {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    max-width: 180px !important;
    margin: 6px auto !important;
  }

  /* 4. Complete, Non-Clipped Amortisation Table */
  .schedule-section {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    margin-top: 10px !important;
    page-break-before: auto;
    break-before: auto;
  }

  .schedule-section h2 {
    font-size: 12pt !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 4px !important;
  }

  .schedule-section .field-hint {
    font-size: 7.5pt !important;
    color: #64748b !important;
    margin: 0 0 8px !important;
  }

  .table-container,
  .schedule-table-wrapper,
  .table-responsive {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
  }

  .schedule-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 8pt !important;
    page-break-inside: auto;
    table-layout: auto !important;
  }

  .schedule-table caption {
    display: none !important;
  }

  .schedule-table thead {
    display: table-header-group !important;
  }

  .schedule-table tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .schedule-table th {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
    font-weight: 750 !important;
    padding: 5px 6px !important;
    font-size: 7.5pt !important;
    text-align: right !important;
    white-space: normal !important;
  }

  .schedule-table th:first-child {
    text-align: left !important;
  }

  .schedule-table td {
    padding: 4px 6px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 7.5pt !important;
    background: #ffffff !important;
    color: #0f172a !important;
    text-align: right !important;
    white-space: normal !important;
  }

  .schedule-table td:first-child {
    text-align: left !important;
    font-weight: 600 !important;
  }

  .schedule-table tbody tr:nth-child(even) td {
    background: #f8fafc !important;
  }

  /* 5. Suppress overlapping fixed headers & footers */
  .print-running-header,
  .print-page-footer {
    display: none !important;
  }
}

/* ==========================================================================
   Accessible Contextual Tooltips (? Popovers)
   ========================================================================== */
.info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-surface, #e2e8f0);
  color: var(--text-secondary, #64748b);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  margin-left: 6px;
  vertical-align: middle;
  border: 1px solid var(--border-color, #cbd5e1);
  position: relative;
  text-decoration: none;
  user-select: none;
  transition: all 0.2s ease;
}

.info-tooltip:hover,
.info-tooltip:focus-visible {
  background: var(--brand-primary, #1d4ed8);
  color: #ffffff;
  border-color: var(--brand-primary, #1d4ed8);
  outline: none;
}

.info-tooltip .tooltip-text {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  padding: 8px 12px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 400;
  border-radius: 8px;
  box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
  text-align: left;
}

[data-theme="dark"] .info-tooltip .tooltip-text {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
}

.info-tooltip .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

[data-theme="dark"] .info-tooltip .tooltip-text::after {
  border-color: #1e293b transparent transparent transparent;
}

.info-tooltip:hover .tooltip-text,
.info-tooltip:focus-visible .tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

/* -------------------------------------------------------------
   HERO 2-COLUMN GRID & INTERACTIVE QUICK SIMULATOR
------------------------------------------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
  width: 100%;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-visual-card {
  width: 100%;
}

.hero-simulator {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .hero-simulator {
  background: #111c30;
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.1);
}

.hero-simulator::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.simulator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.simulator-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.simulator-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
}

.simulator-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.simulator-tabs {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: var(--radius-sm);
  gap: 4px;
}

.sim-tab {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-tab.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .sim-tab.active {
  background: #1e293b;
  color: #38bdf8;
}

.sim-panel.hidden {
  display: none;
}

.sim-panel.active {
  display: block;
  animation: fadeInSim 0.2s ease-in-out;
}

@keyframes fadeInSim {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-input-group {
  margin-bottom: 14px;
}

.sim-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.sim-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-main);
}

.sim-val-pill {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--brand-primary);
  background: var(--bg-surface-alt);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.sim-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
  transition: transform 0.1s ease;
}

.sim-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.sim-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.sim-ratio-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 14px;
}

.sim-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sim-segmented-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--border);
  margin: 8px 0 0;
}

.sim-seg-invested {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.2s ease;
}

.sim-seg-gain {
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.2s ease;
}

.sim-seg-principal {
  background: linear-gradient(90deg, #0284c7, #2563eb);
  transition: width 0.2s ease;
}

.sim-seg-interest {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  transition: width 0.2s ease;
}

.sim-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.sim-result-total {
  display: flex;
  flex-direction: column;
}

.sim-total-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 750;
  color: var(--text-muted);
}

.sim-total-val {
  font-size: 1.45rem;
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.sim-cta-btn {
  font-size: 0.88rem;
  font-weight: 750;
  padding: 10px 16px;
  min-height: 42px;
  white-space: nowrap;
}

/* -------------------------------------------------------------
   PLATFORM STAT PROOF STRIP
------------------------------------------------------------- */
.trust-proof-strip {
  margin: 36px 0 48px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .trust-proof-strip {
  background: #111c30;
  border-color: rgba(255, 255, 255, 0.07);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .proof-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.proof-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.proof-content {
  display: flex;
  flex-direction: column;
}

.proof-number {
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.proof-desc {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   CARD ICONOGRAPHY & CATEGORY ACCENTS
------------------------------------------------------------- */
.tool-card-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  width: fit-content;
  transition: all 0.15s ease;
}

.tool-card-category.cat-loans {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.tool-card-category.cat-investments {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.tool-card-category.cat-tax {
  background: rgba(139, 92, 246, 0.08);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

[data-theme="dark"] .tool-card-category.cat-loans {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .tool-card-category.cat-investments {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .tool-card-category.cat-tax {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.3);
}

.tool-card-category.cat-everyday {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.tool-card-category.cat-images {
  background: rgba(236, 72, 153, 0.08);
  color: #db2777;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.tool-card-category.cat-pdf {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .tool-card-category.cat-everyday {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .tool-card-category.cat-images {
  background: rgba(244, 114, 182, 0.12);
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.3);
}

[data-theme="dark"] .tool-card-category.cat-pdf {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

/* -------------------------------------------------------------
   HERO SEARCH & QUICK LINKS (REFERENCE 4 SAAS MINIMAL)
------------------------------------------------------------- */
.hero-search-wrapper {
  margin: 20px 0 16px;
  position: relative;
  max-width: 580px;
  z-index: 50;
}

.hero-search-input {
  width: 100%;
  padding: 14px 148px 14px 46px;
  font-size: 1rem;
  font-weight: 550;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
  outline: none;
}

.hero-search-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.15);
}

.hero-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}

.search-clear-btn {
  position: absolute;
  right: 98px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(148, 163, 184, 0.2);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 2;
}

.search-clear-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}

.search-action-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 9px 20px;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
  z-index: 2;
}

.search-action-btn:hover {
  background: #1e40af;
  transform: translateY(-50%) scale(1.02);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.45);
}

/* Floating Spotlight Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.28), 0 4px 16px rgba(0, 0, 0, 0.12);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1000;
  padding: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-dropdown-header {
  padding: 8px 12px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.15s ease;
  gap: 12px;
}

.search-dropdown-item:hover,
.search-dropdown-item.is-selected {
  background: rgba(29, 78, 216, 0.08);
  transform: translateX(2px);
}

[data-theme="dark"] .search-dropdown-item:hover,
[data-theme="dark"] .search-dropdown-item.is-selected {
  background: rgba(59, 130, 246, 0.16);
}

.search-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.search-item-title {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--text-main);
}

.search-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.search-item-badge {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(29, 78, 216, 0.1);
  color: var(--brand-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-dropdown-footer {
  padding: 10px 14px 6px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.search-dropdown-footer a,
.search-dropdown-footer button {
  color: var(--brand-primary);
  background: none;
  border: none;
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
}

.search-dropdown-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.search-dropdown-empty a {
  color: var(--brand-primary);
  font-weight: 650;
  text-decoration: none;
  display: inline-block;
  margin-top: 6px;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-quick-links a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 650;
  background: rgba(29, 78, 216, 0.06);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}

.hero-quick-links a:hover {
  background: rgba(29, 78, 216, 0.14);
}

/* -------------------------------------------------------------
   FOUR PILLAR CATEGORY SHOWCASE (REFERENCE 5 CARDS)
------------------------------------------------------------- */
.category-pillars-section {
  margin: 40px 0 48px;
}

.category-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .category-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .category-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  border-color: var(--brand-primary);
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: rgba(29, 78, 216, 0.08);
}

.pillar-card-title {
  font-size: 1.25rem;
  font-weight: 850;
  margin: 0 0 6px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.pillar-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 16px;
}

.pillar-links-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  flex-grow: 1;
}

.pillar-links-list li a {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.pillar-links-list li a:hover {
  color: var(--brand-primary);
}

.pillar-card-cta {
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.pillar-card-cta:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------
   REFERENCE 4 MULTI-TOOL HERO PREVIEW CLUSTER
------------------------------------------------------------- */
.multi-tool-preview-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .multi-tool-preview-cluster {
    grid-template-columns: 1fr;
  }
}

.preview-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 4px 16px -3px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.preview-tile:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
}

.preview-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.preview-tile-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(29, 78, 216, 0.08);
  color: var(--brand-primary);
}

.preview-tile-title {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--text-main);
}

.preview-tile-metric {
  font-size: 1.4rem;
  font-weight: 850;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
}

.preview-tile-subtext {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}


/* ==========================================================================
   Loan Category Segmented Switcher & Contextual Visual Card
   ========================================================================== */

.loan-type-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.loan-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  -webkit-appearance: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.loan-tab-btn:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

.loan-tab-btn.active {
  background: var(--brand-primary) !important;
  color: #ffffff !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

.loan-tab-btn.active .loan-tab-icon {
  transform: scale(1.1);
}

.loan-tab-icon {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* Contextual Hero Banner with Visuals (Split Layout) */
.tool-hero-banner,
.loan-hero-banner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .tool-hero-banner,
[data-theme="light"] .loan-hero-banner,
:root:not([data-theme="dark"]) .tool-hero-banner,
:root:not([data-theme="dark"]) .loan-hero-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

.tool-hero-content,
.loan-hero-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-hero-content .page-eyebrow,
.loan-hero-content .page-eyebrow {
  margin-bottom: 2px;
}

.tool-hero-content .page-title,
.loan-hero-content .page-title {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.2;
}

.tool-hero-content .page-subtitle,
.loan-hero-content .page-subtitle {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.tool-hero-highlights,
.loan-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tool-highlight-pill,
.loan-highlight-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
}

.tool-hero-visual-card,
.loan-hero-visual-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 16 / 9;
}

.tool-hero-img,
.loan-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.tool-hero-visual-card:hover .tool-hero-img,
.loan-hero-visual-card:hover .loan-hero-img {
  transform: scale(1.03);
}

.tool-hero-overlay,
.loan-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.7) 100%);
  pointer-events: none;
}

.tool-hero-badge,
.loan-hero-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* Tenure Unit Switcher (Years vs Months) */
.tenure-unit-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-elevated, rgba(15, 23, 42, 0.5));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.tenure-unit-btn {
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 750;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tenure-unit-btn:hover {
  color: var(--text-main);
}

.tenure-unit-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.35);
}

.tenure-helper-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 8px;
}

.tenure-dual-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(29, 78, 216, 0.1);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(29, 78, 216, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 900px) {
  .tool-hero-banner,
  .loan-hero-banner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .tool-hero-visual-card,
  .loan-hero-visual-card {
    max-height: 240px;
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================================
   MODERN EVERYDAY & UTILITY CALCULATOR STYLES
   (Fuel Cost Calculator, Margin & Markup Calculator, etc.)
   ========================================================================== */
.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}

@media (max-width: 960px) {
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.calculator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card-section-title {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.input-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

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

.input-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.input-wrapper .input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--text-tertiary);
  pointer-events: none;
  font-size: 1.05rem;
  z-index: 2;
}

.input-wrapper .input-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--text-tertiary);
  pointer-events: none;
  font-size: 0.88rem;
  z-index: 2;
}

.input-wrapper .form-input {
  width: 100% !important;
  height: 48px !important;
  border-radius: var(--radius-md) !important;
  border: 1.5px solid var(--border) !important;
  background: var(--bg-subtle) !important;
  color: var(--text-main) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 0 16px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  box-sizing: border-box !important;
}

.input-wrapper:has(.input-prefix) .form-input {
  padding-left: 36px !important;
}

.input-wrapper:has(.input-suffix) .form-input {
  padding-right: 56px !important;
}

.input-wrapper:has(.input-prefix):has(.input-suffix) .form-input {
  padding-left: 36px !important;
  padding-right: 56px !important;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.form-range {
  width: 100% !important;
  height: 6px;
  margin: 10px 0 2px !important;
  background: linear-gradient(to right, var(--brand-primary, #0066FF) var(--slider-fill, 0%), var(--border) var(--slider-fill, 0%));
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.custom-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-main);
  user-select: none;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.custom-checkbox-label:hover {
  border-color: var(--brand-primary);
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

/* Mode Switcher Tabs */
.mode-tabs {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.mode-tab-btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.mode-tab-btn:hover {
  color: var(--text-main);
}

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

/* Presets Block */
.presets-block {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.presets-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

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

.preset-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(37, 99, 235, 0.08);
}

/* Primary Results Box */
.primary-result-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(56, 189, 248, 0.04));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

[data-theme="dark"] .primary-result-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(30, 41, 59, 0.6));
  border-color: rgba(56, 189, 248, 0.25);
}

.primary-result-label {
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.primary-result-value {
  font-size: 2.6rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--brand-primary);
  line-height: 1.1;
  margin-bottom: 12px;
}

[data-theme="dark"] .primary-result-value {
  color: #60a5fa;
}

.primary-result-subtext {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  display: block;
  max-width: 460px;
  margin: 0 auto;
}

/* Visual Breakdown Bar */
.breakdown-bar-container {
  margin-bottom: 24px;
}

.breakdown-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.breakdown-bar-track {
  height: 12px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  overflow: hidden;
}

.breakdown-bar-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.breakdown-bar-fill.bar-primary {
  background: var(--brand-primary);
}

.breakdown-bar-fill.bar-secondary {
  background: #f59e0b;
}

/* Key Metrics Grid */
.result-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .result-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-cell {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-title {
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-number {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.metric-number.text-success {
  color: #10b981;
}

[data-theme="dark"] .metric-number.text-success {
  color: #34d399;
}

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

.results-actions .btn {
  flex: 1;
  min-width: 140px;
}



/* -------------------------------------------------------------
   SEAMLESS TRANSLATION ENGINE (ZERO BRAND CLUTTER)
------------------------------------------------------------- */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
body {
  top: 0px !important;
  position: static !important;
}
.goog-te-gadget {
  display: none !important;
}
.goog-tooltip, .goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
#goog-gt-tt {
  display: none !important;
  visibility: hidden !important;
}
#google_translate_element {
  display: none !important;
}

/* ==========================================================================
   PHASE 2 SPECIFICATION UI — COMPACT NAVIGATION, MEGA-MENUS, HERO & SECTIONS
   ========================================================================== */

/* Header Top-Level Navigation Enhancements */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  overflow: visible !important;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .site-header {
  background: #111827;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.nav-dropdown-btn {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

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

.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown.active .nav-dropdown-btn,
.nav-dropdown:focus-within .nav-dropdown-btn {
  color: #ffffff !important;
  background: var(--brand-primary) !important;
}

.nav-chevron {
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown.active .nav-chevron,
.nav-dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
  stroke: #ffffff;
}

.nav-all-tools-btn {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 9999px;
  background: var(--brand-primary);
  color: #ffffff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.nav-all-tools-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.header-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-action-icon:hover {
  background: var(--brand-light);
  color: var(--brand-primary);
  border-color: var(--brand-border);
}

/* Mega-Menu Styling (Screenshot 4) */
.nav-dropdown {
  position: relative;
}

.nav-mega-menu-container {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(15, 23, 42, 0.05);
  display: none !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  padding-top: 6px;
}

/* Invisible hover bridge between trigger button and menu */
.nav-mega-menu-container::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.nav-dropdown:hover .nav-mega-menu-container,
.nav-dropdown.active .nav-mega-menu-container,
.nav-dropdown:focus-within .nav-mega-menu-container {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-wrap {
  display: flex;
  min-width: 820px;
  max-width: 980px;
  padding: 18px;
  gap: 20px;
}

.mega-menu-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-subtle);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
}

.mega-sidebar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.mega-sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.mega-sidebar-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.mega-sidebar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  transition: all 0.15s ease;
}

.mega-sidebar-cta:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

.mega-menu-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  flex: 1;
}

.mega-menu-columns.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mega-menu-columns.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-col-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  padding: 4px 6px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-item {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.12s ease;
}

.mega-item:hover {
  background: var(--brand-light);
  color: var(--brand-primary);
  transform: translateX(2px);
}

/* Mobile Drawer (Screenshot 4) */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-surface);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
  overflow-y: auto;
  visibility: hidden;
}

.mobile-drawer.open {
  right: 0;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-search-box {
  padding: 14px 20px 8px;
}

.drawer-search-input {
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.88rem;
}

.drawer-nav-list {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}

.drawer-accordion-btn:hover {
  background: var(--bg-subtle);
}

.drawer-accordion-btn .drawer-chevron {
  transition: transform 0.2s ease;
  opacity: 0.5;
}

.drawer-accordion-btn.expanded .drawer-chevron {
  transform: rotate(90deg);
  opacity: 1;
}

.drawer-accordion-body {
  display: none;
  padding: 4px 10px 10px 32px;
  flex-direction: column;
  gap: 4px;
}

.drawer-accordion-body.open {
  display: flex;
}

.drawer-sub-link {
  font-size: 0.86rem;
  font-weight: 550;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
}

.drawer-sub-link:hover {
  color: var(--brand-primary);
  background: var(--brand-light);
}

.drawer-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  padding: 16px 14px 6px;
}

.drawer-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: background-color 0.2s ease;
}

[data-theme="dark"] .drawer-switch {
  background: var(--brand-primary);
}

.drawer-switch-knob {
  display: block;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

[data-theme="dark"] .drawer-switch-knob {
  transform: translateX(20px);
}

/* -------------------------------------------------------------
   HERO SECTION V2 (Screenshot 3)
------------------------------------------------------------- */
.hero-v2 {
  padding: 48px 0 40px;
}

.hero-v2-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-v2-title {
  font-size: 2.75rem;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-v2-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-v2-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  padding: 6px 8px 6px 20px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.hero-v2-search-form:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 12px 30px -5px rgba(37, 99, 235, 0.18), 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hero-v2-search-icon {
  color: var(--text-tertiary);
  margin-right: 12px;
  flex-shrink: 0;
}

.hero-v2-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
}

.hero-v2-search-btn {
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 12px 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-v2-search-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.hero-v2-trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-v2-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 3D Laptop & Floating App Badges Visual (Screenshot 3) */
.hero-v2-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
}

.laptop-art-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  perspective: 1000px;
}

.laptop-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 35px rgba(15, 23, 42, 0.12));
}

.floating-badge {
  position: absolute;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.18), 0 0 1px 1px rgba(255, 255, 255, 0.4);
  animation: floatBadge 3.5s ease-in-out infinite alternate;
  font-weight: 800;
  font-size: 0.9rem;
  color: #ffffff;
  user-select: none;
}

@keyframes floatBadge {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(2deg); }
}

.badge-pdf {
  top: 8%;
  right: 18%;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation-delay: 0s;
}

.badge-excel {
  top: 15%;
  right: -2%;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #10b981, #059669);
  animation-delay: 0.6s;
}

.badge-text {
  bottom: 35%;
  right: -4%;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  animation-delay: 1.2s;
}

.badge-image {
  top: 25%;
  left: 2%;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  animation-delay: 1.8s;
}

.badge-folder {
  bottom: 28%;
  left: 6%;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  animation-delay: 2.4s;
}

.badge-chart {
  top: 55%;
  left: -2%;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  animation-delay: 2.8s;
}

/* -------------------------------------------------------------
   POPULAR TOOLS GRID (Screenshot 3)
------------------------------------------------------------- */
.section-v2 {
  margin-bottom: 50px;
}

.section-v2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-v2-title {
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin: 0;
}

.section-v2-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease;
}

.section-v2-link:hover {
  transform: translateX(3px);
  text-decoration: underline;
}

.popular-tools-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .popular-tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px) {
  .popular-tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 580px) {
  .popular-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.popular-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.popular-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.12);
}

.popular-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.popular-card-title {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 4px;
}

.popular-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}

.popular-card-arrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* -------------------------------------------------------------
   BROWSE BY CATEGORY 8-CARD GRID (Screenshot 3)
------------------------------------------------------------- */
.category-8-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 990px) {
  .category-8-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .category-8-grid {
    grid-template-columns: 1fr;
  }
}

.cat-8-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}

.cat-8-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
  box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.14);
}

.cat-8-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

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

.cat-8-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.cat-8-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* Category card background tints matching Spec image2.jpg */
.cat-8-card[data-cat="pdf"] {
  background: #fef2f2;
  border-color: #fee2e2;
}
.cat-8-card[data-cat="images"] {
  background: #f0fdf4;
  border-color: #dcfce7;
}
.cat-8-card[data-cat="finance"] {
  background: #fffbeb;
  border-color: #fef3c7;
}
.cat-8-card[data-cat="text"] {
  background: #faf5ff;
  border-color: #f3e8ff;
}
.cat-8-card[data-cat="files"] {
  background: #eff6ff;
  border-color: #dbeafe;
}
.cat-8-card[data-cat="calculators"] {
  background: #fff7ed;
  border-color: #ffedd5;
}
.cat-8-card[data-cat="security"] {
  background: #f0fdfa;
  border-color: #ccfbf1;
}
.cat-8-card[data-cat="developer"] {
  background: #fff1f2;
  border-color: #ffe4e6;
}

[data-theme="dark"] .cat-8-card[data-cat="pdf"] { background: rgba(239, 68, 68, 0.09); border-color: rgba(239, 68, 68, 0.22); }
[data-theme="dark"] .cat-8-card[data-cat="images"] { background: rgba(16, 185, 129, 0.09); border-color: rgba(16, 185, 129, 0.22); }
[data-theme="dark"] .cat-8-card[data-cat="finance"] { background: rgba(245, 158, 11, 0.09); border-color: rgba(245, 158, 11, 0.22); }
[data-theme="dark"] .cat-8-card[data-cat="text"] { background: rgba(139, 92, 246, 0.09); border-color: rgba(139, 92, 246, 0.22); }
[data-theme="dark"] .cat-8-card[data-cat="files"] { background: rgba(37, 99, 235, 0.09); border-color: rgba(37, 99, 235, 0.22); }
[data-theme="dark"] .cat-8-card[data-cat="calculators"] { background: rgba(249, 115, 22, 0.09); border-color: rgba(249, 115, 22, 0.22); }
[data-theme="dark"] .cat-8-card[data-cat="security"] { background: rgba(20, 184, 166, 0.09); border-color: rgba(20, 184, 166, 0.22); }
[data-theme="dark"] .cat-8-card[data-cat="developer"] { background: rgba(236, 72, 153, 0.09); border-color: rgba(236, 72, 153, 0.22); }

/* -------------------------------------------------------------
   POPULAR FINANCE CALCULATORS (Screenshot 3)
------------------------------------------------------------- */
.finance-8-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 990px) {
  .finance-8-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .finance-8-grid {
    grid-template-columns: 1fr;
  }
}

.finance-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.finance-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
  box-shadow: 0 8px 18px -4px rgba(37, 99, 235, 0.12);
}

.finance-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.finance-item-title {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 4px;
}

.finance-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}

/* -------------------------------------------------------------
   TRUST PROOF METRICS STRIP (Screenshot 3)
------------------------------------------------------------- */
.trust-strip-v2 {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 48px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.trust-strip-v2-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: center;
}

@media (max-width: 860px) {
  .trust-strip-v2-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .trust-strip-v2-grid {
    grid-template-columns: 1fr;
  }
}

.trust-item-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trust-item-text {
  display: flex;
  flex-direction: column;
}

.trust-item-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.trust-item-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   BOTTOM CALL TO ACTION BANNER (Screenshot 3)
------------------------------------------------------------- */
.cta-banner-v2 {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

[data-theme="dark"] .cta-banner-v2 {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #334155;
}

.cta-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-banner-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  flex-shrink: 0;
}

[data-theme="dark"] .cta-banner-icon {
  background: #1e293b;
}

.cta-banner-title {
  font-size: 1.45rem;
  font-weight: 850;
  color: var(--text-main);
  margin-bottom: 4px;
}

.cta-banner-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cta-banner-btn {
  background: var(--brand-primary);
  color: #ffffff;
  padding: 13px 30px;
  border-radius: 9999px;
  font-size: 0.98rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.cta-banner-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

@media (max-width: 768px) {
  .hero-v2-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-v2-title {
    font-size: 2.1rem;
  }
  .cta-banner-v2 {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .cta-banner-left {
    flex-direction: column;
  }
  .cta-banner-btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Phase 2: Category Page Archetype (Spec Section 6 & Mockup image4.jpg)
   ========================================================================== */

.cat-page-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.cat-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cat-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.cat-breadcrumb a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.cat-breadcrumb-sep {
  opacity: 0.5;
  font-size: 0.8rem;
}

.cat-breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

/* Category Hero Banner */
.cat-page-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .cat-page-hero {
  background: #1e293b;
  border-color: #334155;
}

.cat-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.cat-hero-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.cat-hero-icon.icon-pdf {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.cat-hero-icon.icon-image {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.cat-hero-icon.icon-finance {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.cat-hero-icon.icon-text {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.cat-hero-icon.icon-file {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

[data-theme="dark"] .cat-hero-icon.icon-pdf { background: #450a0a; border-color: #7f1d1d; color: #f87171; }
[data-theme="dark"] .cat-hero-icon.icon-image { background: #064e3b; border-color: #065f46; color: #34d399; }
[data-theme="dark"] .cat-hero-icon.icon-finance { background: #451a03; border-color: #78350f; color: #fbbf24; }
[data-theme="dark"] .cat-hero-icon.icon-text { background: #2e1065; border-color: #4c1d95; color: #a78bfa; }
[data-theme="dark"] .cat-hero-icon.icon-file { background: #172554; border-color: #1e3a8a; color: #60a5fa; }

.cat-hero-info {
  flex: 1;
}

.cat-hero-title {
  font-size: 2.1rem;
  font-weight: 850;
  color: var(--text-main);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.cat-hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 780px;
}

/* Trust Badges Strip */
.cat-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.cat-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border);
}

[data-theme="dark"] .cat-trust-pill {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

.cat-trust-pill svg {
  color: #10b981;
}

/* Category Filter & Sort Toolbar */
.cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.cat-subcat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subcat-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

[data-theme="dark"] .subcat-tab-btn {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

.subcat-tab-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.subcat-tab-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.subcat-tab-count {
  font-size: 0.8rem;
  opacity: 0.85;
}

.subcat-tab-btn.active .subcat-tab-count {
  opacity: 1;
}

.cat-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.cat-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.cat-search-input {
  padding: 8px 14px 8px 36px;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--bg-surface);
  color: var(--text-main);
  outline: none;
  width: 200px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .cat-search-input {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

.cat-search-input:focus {
  border-color: var(--brand-primary);
  width: 240px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cat-sort-select {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  outline: none;
}

[data-theme="dark"] .cat-sort-select {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

/* Category Content Grid (Main 2-col layout) */
.cat-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

/* Category Tools Grid */
.cat-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.cat-tool-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .cat-tool-card {
  background: #1e293b;
  border-color: #334155;
}

.cat-tool-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] .cat-tool-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.4);
}

.cat-tool-card.cat-hidden {
  display: none !important;
}

.cat-tool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cat-tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  background: #f1f5f9;
}

[data-theme="dark"] .cat-tool-icon {
  background: #0f172a;
}

.cat-tool-icon.icon-pdf-tint {
  background: #fef2f2;
}
[data-theme="dark"] .cat-tool-icon.icon-pdf-tint {
  background: #450a0a;
}

.cat-tool-arrow {
  color: var(--text-tertiary);
  transition: all 0.2s ease;
  font-size: 1.2rem;
  opacity: 0.6;
}

.cat-tool-card:hover .cat-tool-arrow {
  color: var(--brand-primary);
  transform: translateX(4px);
  opacity: 1;
}

.cat-tool-title {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.cat-tool-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* Category Sidebar */
.cat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cat-sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .cat-sidebar-widget {
  background: #1e293b;
  border-color: #334155;
}

.cat-widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Popular Tools List Widget */
.cat-popular-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-popular-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 650;
  background: var(--bg-subtle);
  transition: all 0.15s ease;
}

[data-theme="dark"] .cat-popular-item {
  background: #0f172a;
}

.cat-popular-item:hover {
  background: #eff6ff;
  color: #2563eb;
  transform: translateX(3px);
}

[data-theme="dark"] .cat-popular-item:hover {
  background: #172554;
  color: #60a5fa;
}

.cat-popular-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-popular-item-icon {
  font-size: 1.1rem;
}

.cat-popular-item-arrow {
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

/* Category Hub (Text Tools, File Tools) Breadcrumbs & Filter Nav */
.pdf-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.pdf-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  list-style: none !important;
}
.pdf-breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.pdf-breadcrumb-item a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}
.pdf-breadcrumb-item + .pdf-breadcrumb-item::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-tertiary);
  font-weight: 700;
}
.pdf-breadcrumb-item.active {
  color: var(--text-main);
  font-weight: 600;
}

.pdf-filter-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pdf-filter-item {
  list-style: none !important;
}
.pdf-filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.pdf-filter-link:hover {
  background: var(--brand-light);
  color: var(--brand-primary);
}
.pdf-filter-link.active {
  background: var(--brand-primary);
  color: #ffffff !important;
  font-weight: 700;
}
.pdf-filter-count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.pdf-filter-link.active .pdf-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: transparent;
}

/* Ranked Popular Tools in Hub Pages */
.cat-pop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none !important;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  margin-bottom: 8px;
}
.cat-pop-item:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.cat-pop-rank {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--brand-light);
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-pop-body {
  flex: 1;
}
.cat-pop-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}
.cat-pop-item:hover .cat-pop-name {
  color: var(--brand-primary);
}
.cat-pop-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Archetype 2 Links List (e.g. Related Everyday Tools in Percentage Calc) */
.arche2-links-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arche2-links-list li {
  list-style: none !important;
}
.arche2-links-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}
.arche2-links-list li a:hover {
  background: var(--brand-light);
  border-color: var(--brand-border);
  color: var(--brand-primary);
  transform: translateX(2px);
}
.arche2-link-arrow {
  color: var(--text-tertiary);
  font-weight: 700;
  transition: transform 0.15s ease;
}
.arche2-links-list li a:hover .arche2-link-arrow {
  color: var(--brand-primary);
  transform: translateX(3px);
}

/* Archetype 2 Related Items List Styling */
.arche2-related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.arche2-related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--text-main) !important;
  transition: all 0.18s ease;
}
.arche2-related-item:hover {
  border-color: var(--brand-border);
  background: var(--bg-surface-alt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.arche2-rel-text {
  flex: 1;
  min-width: 0;
}
.arche2-rel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}
.arche2-rel-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}
.arche2-rel-arrow {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1.15rem;
  margin-left: auto;
  transition: transform 0.15s ease;
}
.arche2-related-item:hover .arche2-rel-arrow {
  transform: translateX(4px);
}

/* Feature Callout Widget */
.cat-callout-widget {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 24px;
  position: relative;
}

[data-theme="dark"] .cat-callout-widget {
  background: linear-gradient(145deg, #1e3a8a 0%, #0f172a 100%);
  border-color: #2563eb;
}

.cat-callout-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #2563eb;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.cat-callout-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

[data-theme="dark"] .cat-callout-title {
  color: #93c5fd;
}

.cat-callout-desc {
  font-size: 0.9rem;
  color: #3b82f6;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

[data-theme="dark"] .cat-callout-desc {
  color: #cbd5e1;
}

.cat-callout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.cat-callout-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* Tips & Help Widget */
.cat-tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-tip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.cat-tip-item:hover {
  color: var(--brand-primary);
  background: var(--bg-subtle);
  transform: translateX(3px);
}

[data-theme="dark"] .cat-tip-item:hover {
  background: #0f172a;
}

.cat-tip-arrow {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* Privacy Guarantee Box Widget */
.cat-privacy-widget {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 20px;
}

[data-theme="dark"] .cat-privacy-widget {
  background: #052e16;
  border-color: #14532d;
}

.cat-privacy-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.cat-privacy-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #15803d;
  margin: 0 0 4px 0;
}

[data-theme="dark"] .cat-privacy-title {
  color: #4ade80;
}

.cat-privacy-desc {
  font-size: 0.84rem;
  color: #166534;
  margin: 0;
  line-height: 1.45;
}

[data-theme="dark"] .cat-privacy-desc {
  color: #86efac;
}

/* Related Categories Section */
.cat-related-section {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.cat-related-header {
  margin-bottom: 24px;
}

.cat-related-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px 0;
}

.cat-related-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.cat-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.cat-related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

[data-theme="dark"] .cat-related-card {
  background: #1e293b;
  border-color: #334155;
}

.cat-related-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}

.cat-related-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cat-related-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.cat-related-card-name {
  font-size: 1rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.cat-related-card-count {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin: 0;
}

.cat-related-card-arrow {
  color: var(--text-tertiary);
  font-size: 1.1rem;
  transition: transform 0.15s ease;
}

.cat-related-card:hover .cat-related-card-arrow {
  color: var(--brand-primary);
  transform: translateX(3px);
}

/* Category Page Responsive */
@media (max-width: 992px) {
  .cat-content-grid {
    grid-template-columns: 1fr;
  }
  .cat-sidebar {
    margin-top: 16px;
  }
}

@media (max-width: 640px) {
  .cat-page-hero {
    padding: 24px 20px;
  }
  .cat-hero-main {
    flex-direction: column;
    gap: 16px;
  }
  .cat-hero-title {
    font-size: 1.7rem;
  }
  .cat-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .cat-toolbar-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .cat-search-input {
    width: 100% !important;
  }
  .cat-sort-select {
    width: 100%;
  }
}

/* ==========================================================================
   PHASE 3 — Individual Tool Page Archetype (image5.jpg)
   Matches: Image Compressor, and all individual tool pages
   ========================================================================== */

/* Tool Page Outer Container */
.tool-page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* Tool Breadcrumb (reusing existing cat-breadcrumb styles, define alias) */
.tool-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 14px 0 16px;
  flex-wrap: wrap;
}
.tool-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.tool-breadcrumb a:hover { color: var(--brand-primary); }
.tool-breadcrumb-sep { color: var(--text-tertiary); margin: 0 2px; }
.tool-breadcrumb-current { color: var(--text-main); font-weight: 600; }

/* Tool Page Two-Column Layout: sidenav + main */
.tool-page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Left Category Sidenav ── */
.tool-sidenav {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.tool-sidenav-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 750;
  font-size: 0.92rem;
  color: var(--text-main);
}
.tool-sidenav-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  flex-shrink: 0;
}
.tool-sidenav-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.tool-sidenav-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}
.tool-sidenav-list a:hover {
  color: var(--text-main);
  background: var(--bg-surface-alt);
  border-left-color: var(--border-color);
}
.tool-sidenav-list a.active {
  color: var(--brand-primary);
  background: rgba(29, 78, 216, 0.07);
  border-left-color: var(--brand-primary);
  font-weight: 650;
}
.tool-sidenav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.tool-sidenav-all-link {
  display: block;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--brand-primary);
  text-decoration: none;
  border-top: 1px solid var(--border-color);
  transition: background 0.15s;
}
.tool-sidenav-all-link:hover {
  background: var(--bg-surface-alt);
}

/* ── Tool Main Content ── */
.tool-main-content {
  min-width: 0;
}

/* Tool Hero Banner (matching image5.jpg spec) */
.tool-page-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.tool-page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 240px; height: 100%;
  background: linear-gradient(135deg, transparent 30%, rgba(16, 185, 129, 0.04) 100%);
  pointer-events: none;
}
.tool-hero-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
}
.tool-hero-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.tool-hero-text {}
.tool-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669;
  margin-bottom: 6px;
}
.tool-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 8px;
  line-height: 1.2;
}
.tool-hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 480px;
  line-height: 1.6;
}
.tool-hero-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.tool-trust-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-muted);
}
.tool-trust-pill svg {
  color: #059669;
  flex-shrink: 0;
}

/* ── Unified Upload Dropzone Design System (Compress PDF Standard) ── */
.tool-dropzone,
.image-dropzone,
.upload-dropzone {
  border: 2px dashed var(--brand-primary);
  border-radius: 16px;
  background: var(--bg-surface-alt, #f8fafc);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 24px;
}
.tool-dropzone:hover,
.tool-dropzone.drag-over,
.image-dropzone:hover,
.image-dropzone.drag-over,
.upload-dropzone:hover,
.upload-dropzone.drag-over {
  background: rgba(0, 102, 255, 0.05);
  border-color: #1e40af;
}

[data-theme="dark"] .tool-dropzone,
[data-theme="dark"] .image-dropzone,
[data-theme="dark"] .upload-dropzone {
  background: var(--bg-surface-alt, #1e293b);
  border-color: var(--brand-primary, #3b82f6);
}
[data-theme="dark"] .tool-dropzone:hover,
[data-theme="dark"] .tool-dropzone.drag-over,
[data-theme="dark"] .image-dropzone:hover,
[data-theme="dark"] .image-dropzone.drag-over,
[data-theme="dark"] .upload-dropzone:hover,
[data-theme="dark"] .upload-dropzone.drag-over {
  background: rgba(59, 130, 246, 0.12);
  border-color: #60a5fa;
}
.tool-dropzone-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}
.tool-dropzone-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 6px;
}
.tool-dropzone-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.tool-dropzone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}
.tool-dropzone-btn:hover {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(29,78,216,0.3);
}
.tool-dropzone-info {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}
.tool-dropzone-privacy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 650;
  color: #059669;
}

/* ── Compression Settings Panel ── */
.tool-settings-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.tool-settings-title {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.tool-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.tool-settings-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--text-main);
  margin-bottom: 8px;
}
.tool-settings-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tool-settings-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  accent-color: var(--brand-primary);
}
.tool-settings-slider-value {
  font-size: 1rem;
  font-weight: 750;
  color: var(--text-main);
  min-width: 40px;
  text-align: right;
}
.tool-settings-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.tool-settings-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 0.9rem;
  appearance: auto;
  cursor: pointer;
}
.tool-settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.tool-settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-settings-input {
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 0.9rem;
  width: 100%;
}
.tool-settings-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 16px;
}
.tool-settings-checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}
.tool-settings-full {
  grid-column: 1 / -1;
}

/* Primary CTA button */
.tool-primary-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 24px;
  letter-spacing: 0.01em;
}
.tool-primary-cta:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29,78,216,0.35);
}
.tool-primary-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Feature Badges Row ── */
.tool-feature-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.tool-feature-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.tool-feature-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.tool-feature-badge-title {
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0;
}
.tool-feature-badge-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ── Result Panel (Before / After) ── */
.tool-result-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 32px;
}
.tool-result-title {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 20px;
}
.tool-result-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 16px;
  align-items: start;
}
.tool-result-img-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}
.tool-result-img-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}
.tool-result-img-label {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-muted);
}
.tool-result-img-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
.tool-result-img-badge.compressed {
  background: rgba(16,185,129,0.1);
  color: #059669;
  border-color: rgba(16,185,129,0.3);
}
.tool-result-img-wrap {
  aspect-ratio: 4/3;
  background: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tool-result-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tool-result-img-footer {
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-align: center;
}
.tool-result-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-tertiary);
  align-self: center;
  padding-top: 40px;
}
.tool-result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: stretch;
  justify-content: center;
}
.tool-result-success-banner {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
}
.tool-result-success-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.tool-result-success-title {
  font-size: 0.88rem;
  font-weight: 750;
  color: #059669;
  margin: 0 0 4px;
}
.tool-result-success-desc {
  font-size: 0.8rem;
  color: #059669;
  margin: 0;
  opacity: 0.8;
}
.tool-result-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid;
  text-decoration: none;
  transition: all 0.15s ease;
}
.tool-result-btn.primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.tool-result-btn.primary:hover {
  background: #1e40af;
}
.tool-result-btn.secondary {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}
.tool-result-btn.secondary:hover {
  background: var(--bg-surface-alt);
}

/* ── 3-Column Info Section ── */
.tool-info-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.tool-info-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
}
.tool-info-col-title {
  font-size: 1rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.tool-how-steps {}
.tool-how-step {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.tool-how-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.tool-how-step-text {}
.tool-how-step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 3px;
}
.tool-how-step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.tool-why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-why-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.tool-why-list li::before {
  content: '✓';
  color: #059669;
  font-weight: 750;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.tool-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tool-faq-item {
  border-bottom: 1px solid var(--border-color);
}
.tool-faq-item:last-child {
  border-bottom: none;
}
.tool-faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--text-main);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 8px;
}
.tool-faq-trigger:hover { color: var(--brand-primary); }
.tool-faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-tertiary);
}
.tool-faq-item.open .tool-faq-chevron {
  transform: rotate(180deg);
}
.tool-faq-body {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 0 0 12px;
  display: none;
}
.tool-faq-item.open .tool-faq-body {
  display: block;
}

/* ── Related Tools Row ── */
.tool-related-section {
  margin-top: 8px;
}
.tool-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tool-related-title {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0;
}
.tool-related-all-link {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--brand-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tool-related-all-link:hover { text-decoration: underline; }
.tool-related-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.tool-related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 14px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.15s ease;
}
.tool-related-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29,78,216,0.08);
}
.tool-related-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--bg-surface-alt);
}
.tool-related-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px;
  line-height: 1.3;
}
.tool-related-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}
.tool-related-card-arrow {
  font-size: 0.9rem;
  color: var(--brand-primary);
  margin-top: auto;
}

/* Tool Page Responsive */
@media (max-width: 1100px) {
  .tool-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 960px) {
  .tool-page-layout {
    grid-template-columns: 1fr;
  }
  .tool-sidenav {
    position: static;
    display: none; /* collapse on mobile */
  }
  .tool-info-section {
    grid-template-columns: 1fr;
  }
  .tool-feature-badges {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .tool-page-hero {
    flex-direction: column;
    gap: 16px;
  }
  .tool-hero-right {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .tool-settings-grid {
    grid-template-columns: 1fr;
  }
  .tool-settings-row {
    grid-template-columns: 1fr;
  }
  .tool-result-grid {
    grid-template-columns: 1fr;
  }
  .tool-result-arrow { display: none; }
  .tool-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .tool-feature-badges {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-hero-title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   PHASE 3 — Archetype 2: Finance Calculator (image6.jpg)
   Matches: Home Loan EMI Calculator, Loan & Wealth Calculators
   ========================================================================== */

/* Left Finance Sidenav Groups & Accordions */
.tool-sidenav-group {
  border-bottom: 1px solid var(--border-color);
}
.tool-sidenav-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: none;
  border: none;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.tool-sidenav-group-header:hover {
  background: var(--bg-surface-alt);
}
.tool-sidenav-group-chevron {
  transition: transform 0.2s ease;
  color: var(--text-tertiary);
}
.tool-sidenav-group.open .tool-sidenav-group-chevron {
  transform: rotate(180deg);
}
.tool-sidenav-group-items {
  list-style: none;
  margin: 0;
  padding: 4px 10px 8px;
  display: none;
}
.tool-sidenav-group.open .tool-sidenav-group-items {
  display: block;
}
.tool-sidenav-subitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.tool-sidenav-subitem:hover {
  color: var(--text-main);
  background: var(--bg-surface-alt);
}
.tool-sidenav-subitem.active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}
[data-theme="dark"] .tool-sidenav-subitem.active {
  background: rgba(29, 78, 216, 0.18);
  color: #60a5fa;
}
.tool-sidenav-subitem-icon {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
}
.tool-sidenav-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
}
.tool-sidenav-cat-item:hover {
  background: var(--bg-surface-alt);
  color: var(--brand-primary);
}
.tool-sidenav-cat-item:last-child {
  border-bottom: none;
}

/* ── Hero Card (Warm Rose / Peach Gradient matching image6.jpg) ── */
.calc-hero-card {
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .calc-hero-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(249, 115, 22, 0.06) 100%);
  border-color: rgba(239, 68, 68, 0.25);
}
.calc-hero-left {
  flex: 1;
  max-width: 600px;
}
.calc-hero-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.calc-hero-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ef4444;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
  flex-shrink: 0;
}
.calc-hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}
.calc-hero-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
}
.calc-hero-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.calc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-main);
}
[data-theme="dark"] .calc-hero-badge {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}
.calc-badge-green { color: #059669; }
.calc-badge-purple { color: #7c3aed; }
.calc-badge-amber { color: #d97706; }
.calc-badge-blue { color: #2563eb; }

.calc-hero-right {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.calc-hero-img {
  width: 240px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

/* ── 2-Column Calculator Area (Inputs vs Results) ── */
.calc-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}
.calc-panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}
.calc-panel-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calc-field-group {
  margin-bottom: 20px;
}
.calc-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.calc-field-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}
.calc-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 14px;
  transition: all 0.15s ease;
}
.calc-input-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
  background: var(--bg-surface);
}
.calc-input-field {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 10px 0;
  outline: none;
  width: 100%;
}
.calc-input-affix {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text-muted);
}
.calc-unit-select {
  background: transparent;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 6px 0 6px 8px;
  outline: none;
  cursor: pointer;
}
.calc-slider-wrap {
  margin-top: 10px;
}
.calc-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  accent-color: var(--brand-primary);
  cursor: pointer;
  margin: 0;
}
.calc-range-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-tertiary);
  margin-top: 4px;
  font-weight: 550;
}
.calc-presets-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.calc-preset-pill {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.calc-preset-pill:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(29, 78, 216, 0.06);
}
.calc-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}
.btn-calc-action {
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 750;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  border: none;
}
.btn-calc-primary {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}
.btn-calc-primary:hover {
  background: #1e40af;
  transform: translateY(-1px);
}
.btn-calc-reset {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.2);
}
.btn-calc-reset:hover {
  background: #dbeafe;
}
[data-theme="dark"] .btn-calc-reset {
  background: rgba(29, 78, 216, 0.15);
  color: #93c5fd;
  border-color: rgba(29, 78, 216, 0.3);
}

/* ── Result Summary Card (Right Column) ── */
.calc-emi-banner {
  text-align: center;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.04) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(29, 78, 216, 0.15);
  border-radius: 12px;
  margin-bottom: 20px;
}
[data-theme="dark"] .calc-emi-banner {
  background: rgba(29, 78, 216, 0.12);
  border-color: rgba(29, 78, 216, 0.3);
}
.calc-emi-banner-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.calc-emi-banner-value {
  font-size: 2.35rem;
  font-weight: 850;
  color: #1d4ed8;
  line-height: 1.2;
  margin: 4px 0;
  letter-spacing: -0.5px;
}
[data-theme="dark"] .calc-emi-banner-value {
  color: #60a5fa;
}
.calc-emi-banner-sub {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 550;
}
.calc-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.88rem;
}
.calc-breakdown-row:last-child {
  border-bottom: none;
}
.calc-breakdown-lbl {
  color: var(--text-muted);
}
.calc-breakdown-val {
  font-weight: 750;
  color: var(--text-main);
}

/* Donut & Legend Layout */
.calc-donut-block {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px 0;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  margin-top: 4px;
}
.calc-donut-container {
  width: 140px;
  height: 140px;
  position: relative;
  flex-shrink: 0;
}
.calc-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.calc-legend-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.calc-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.calc-dot-principal { background: #10b981; }
.calc-dot-interest { background: #3b82f6; }
.calc-legend-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.calc-legend-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}
.calc-legend-val {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--text-main);
}
.calc-legend-pct {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.calc-action-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.btn-calc-subaction {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-calc-subaction:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--bg-surface);
}

/* ── Stacked Bar Chart Card (Loan Repayment Breakdown) ── */
.calc-chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.calc-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.calc-chart-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0;
}
.calc-chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.calc-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.calc-chart-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
}
.calc-stacked-svg {
  width: 100%;
  min-width: 600px;
  height: 220px;
  display: block;
}

/* ── 3-Column Info Cards (Key Insights, Quick Facts, Useful Links) ── */
.calc-tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.calc-tri-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}
.calc-tri-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.calc-insights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calc-insight-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.calc-insight-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.calc-insight-icon.purple { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.calc-insight-icon.pink { background: rgba(236, 72, 153, 0.12); color: #db2777; }
.calc-insight-icon.blue { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.calc-insight-icon.green { background: rgba(16, 185, 129, 0.12); color: #059669; }

.calc-insight-data {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.calc-insight-lbl {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}
.calc-insight-val {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--text-main);
}

.calc-facts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.calc-fact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.calc-fact-check {
  color: #059669;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.calc-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.calc-link-item:hover {
  background: var(--bg-surface-alt);
}
.calc-link-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.calc-link-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.calc-link-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}
.calc-link-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ── Bottom 2-Column Section (FAQ + Related Tools) ── */
.calc-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.calc-faq-card,
.calc-related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.calc-section-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calc-view-all-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.calc-view-all-link:hover {
  text-decoration: underline;
}

/* 2x2 Related Tools Grid */
.calc-related-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.calc-related-tool-item {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
}
.calc-related-tool-item:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.08);
}
.calc-related-tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calc-related-tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.calc-related-tool-name {
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}
.calc-related-tool-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}
.calc-related-tool-arrow {
  color: var(--brand-primary);
  font-size: 0.9rem;
  margin-top: auto;
  align-self: flex-end;
}

/* Responsiveness for Archetype 2 */
@media (max-width: 1080px) {
  .calc-tri-grid {
    grid-template-columns: 1fr;
  }
  .calc-bottom-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .calc-two-col-grid {
    grid-template-columns: 1fr;
  }
  .calc-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .calc-hero-img {
    width: 100%;
    height: 180px;
  }
}
@media (max-width: 600px) {
  .calc-action-buttons-row {
    grid-template-columns: 1fr;
  }
  .calc-donut-block {
    flex-direction: column;
  }
  .calc-related-2x2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ARCHETYPE 2: FINANCE TOOLS & CALCULATORS SPEC (image6.jpg)
   ========================================================================== */

/* 4-Level Breadcrumb */
.arche2-breadcrumb {
  margin: 18px 0 12px;
}
.arche2-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}
.arche2-breadcrumb-item + .arche2-breadcrumb-item::before {
  content: "›";
  padding: 0 8px;
  color: var(--text-tertiary);
  font-weight: 600;
}
.arche2-breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.arche2-breadcrumb-item a:hover {
  color: var(--brand-primary);
}
.arche2-breadcrumb-item.active {
  color: var(--text-main);
  font-weight: 650;
}

/* 2-Column Main Page Layout (Sidenav + Content) */
.arche2-page-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 56px;
}

/* Left Category Sidenav */
.arche2-sidenav {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 90px;
}
.arche2-sidenav-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
  border-bottom: 1px solid var(--border-color);
}
.arche2-sidenav-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1d4ed8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25);
  flex-shrink: 0;
}
.arche2-sidenav-title {
  font-size: 0.96rem;
  font-weight: 750;
  color: var(--text-main);
  line-height: 1.2;
}
.arche2-sidenav-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.arche2-sidenav-nav {
  display: flex;
  flex-direction: column;
}
.arche2-sidenav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}
.arche2-sidenav-link:hover {
  color: var(--brand-primary);
  background: var(--bg-surface-alt);
}
.arche2-sidenav-link.active {
  color: #1d4ed8;
  background: #eff6ff;
  border-left-color: #1d4ed8;
  font-weight: 700;
}
[data-theme="dark"] .arche2-sidenav-link.active {
  background: rgba(29, 78, 216, 0.18);
  color: #60a5fa;
  border-left-color: #60a5fa;
}
.arche2-nav-item-icon {
  font-size: 1rem;
  width: 18px;
  text-align: center;
}
.arche2-sidenav-group {
  border-top: 1px solid var(--border-color);
}
.arche2-sidenav-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  background: var(--bg-surface);
  transition: background 0.15s ease;
}
.arche2-sidenav-group-title:hover {
  background: var(--bg-surface-alt);
}
.arche2-group-chevron {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.arche2-sidenav-group-items {
  display: none;
  background: var(--bg-surface-alt);
  padding: 4px 0;
}
.arche2-sidenav-group.open .arche2-sidenav-group-items {
  display: block;
}

/* Right Main Content Stream */
.arche2-main-content {
  min-width: 0;
}

/* Archetype 2 Hero Card */
.arche2-hero-card {
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .arche2-hero-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(249, 115, 22, 0.06) 100%);
  border-color: rgba(239, 68, 68, 0.25);
}
.arche2-hero-body {
  flex: 1;
}
.arche2-hero-title {
  font-size: 1.85rem;
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.2;
}
.arche2-hero-subtitle {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 650px;
}
.arche2-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.arche2-badge-pill {
  font-size: 0.78rem;
  font-weight: 650;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
}
[data-theme="dark"] .arche2-badge-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.arche2-hero-media {
  flex-shrink: 0;
}
.arche2-hero-img {
  width: 220px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Calculator 2-Column Grid (Loan Details + Result Summary) */
.arche2-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}
.arche2-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}
.arche2-card-title {
  font-size: 1.18rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 18px;
}
.arche2-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Calculator Fields & Controls */
.arche2-field-group {
  margin-bottom: 20px;
}
.arche2-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.arche2-field-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}
.arche2-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-surface-alt);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 0 14px;
  transition: all 0.15s ease;
}
.arche2-input-wrap:focus-within {
  border-color: var(--brand-primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.arche2-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--text-main);
  padding: 10px 0;
  outline: none;
  width: 100%;
}
.arche2-input-affix {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text-muted);
}
.arche2-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #10b981 var(--slider-fill, 0%), var(--border-color) var(--slider-fill, 0%));
  outline: none;
  accent-color: #10b981;
  cursor: pointer;
  margin: 10px 0 4px;
}
.arche2-slider-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

/* Tenure Unit Switcher */
.arche2-tenure-switch {
  display: inline-flex;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.arche2-tenure-btn {
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.arche2-tenure-btn.active {
  background: #1d4ed8;
  color: #fff;
}

.arche2-calc-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Right Result Summary Card */
.arche2-result-card {
  background: var(--bg-surface);
}
.arche2-emi-banner {
  text-align: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.05) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 14px;
  margin-bottom: 20px;
}
[data-theme="dark"] .arche2-emi-banner {
  background: rgba(29, 78, 216, 0.12);
  border-color: rgba(29, 78, 216, 0.3);
}
.arche2-emi-banner-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.arche2-emi-banner-value {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 850;
  color: #1d4ed8;
  margin: 4px 0;
  letter-spacing: -0.5px;
  line-height: 1.15;
  word-break: break-word;
  overflow-wrap: break-word;
}
[data-theme="dark"] .arche2-emi-banner-value {
  color: #60a5fa;
}

.hero-metric-card {
  overflow: hidden;
  max-width: 100%;
}
.metric-big-number {
  font-size: clamp(1.6rem, 3.2vw, 2.8rem) !important;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1.15;
  margin: 8px 0;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.arche2-emi-banner-sub {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

/* Summary Table */
.arche2-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.arche2-summary-table td {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  color: var(--text-muted);
}
.arche2-summary-table tr:last-child td {
  border-bottom: none;
}
.arche2-summary-table .arche2-table-val {
  text-align: right;
  font-weight: 750;
  color: var(--text-main);
}

/* Donut Chart & Legend */
.arche2-donut-chart-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 160px;
  margin: 4px 0 12px;
}
.arche2-chart-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  margin-bottom: 18px;
}
.arche2-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.arche2-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.arche2-legend-dot.principal { background: #10b981; }
.arche2-legend-dot.interest { background: #3b82f6; }

.arche2-card-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}
.arche2-action-flex {
  flex: 1;
  text-align: center;
  justify-content: center;
}

/* Loan Repayment Stacked Bar Chart */
.arche2-stacked-barchart {
  width: 100%;
  overflow-x: auto;
  padding: 10px 0;
}
.arche2-stacked-barchart svg {
  width: 100%;
  min-width: 620px;
  height: 220px;
  display: block;
}

/* 3-Column Info Cards (Key Insights, Quick Facts, Useful Links) */
.arche2-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.arche2-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.arche2-info-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.arche2-info-card-icon {
  font-size: 1.2rem;
}
.arche2-info-card-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0;
}
.arche2-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arche2-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.arche2-info-list strong {
  color: var(--text-main);
  font-weight: 700;
  text-align: right;
}
.arche2-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arche2-link-item {
  color: #1d4ed8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 650;
  display: block;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.arche2-link-item:hover {
  text-decoration: underline;
  color: #1e40af;
}
[data-theme="dark"] .arche2-link-item {
  color: #60a5fa;
}

/* 2-Column FAQ & Related Tools Grid */
.arche2-faq-related-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.arche2-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arche2-faq-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-surface-alt);
  overflow: hidden;
}
.arche2-faq-question {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.arche2-faq-question::-webkit-details-marker {
  display: none;
}
.arche2-faq-question::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-primary);
}
.arche2-faq-item[open] .arche2-faq-question::after {
  content: "−";
}
.arche2-faq-answer {
  padding: 0 16px 14px;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.arche2-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Archetype 2 Tool Item Card (matches executive fintech styling) */
.arche2-tool-item,
.arche2-tool-item:visited,
.arche2-tool-item:hover,
.arche2-tool-item:active,
.arche2-related-card,
.arche2-related-card:visited,
.arche2-related-card:hover,
.arche2-related-card:active,
.arche2-related-item,
.arche2-related-item:visited,
.arche2-related-item:hover,
.arche2-related-item:active {
  text-decoration: none !important;
  color: var(--text-main) !important;
}

.arche2-tool-item *,
.arche2-related-card *,
.arche2-related-item * {
  text-decoration: none !important;
}

.arche2-tool-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  color: var(--text-main) !important;
  transition: all 0.18s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.arche2-tool-item:hover {
  border-color: var(--brand-border) !important;
  background: var(--bg-surface-alt) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-sm) !important;
}

.arche2-tool-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-decoration: none !important;
}

.arche2-tool-title {
  font-size: 0.92rem !important;
  font-weight: 750 !important;
  color: var(--text-main) !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

.arche2-tool-desc {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  line-height: 1.35 !important;
  margin-top: 2px !important;
  text-decoration: none !important;
}

.arche2-tool-arrow {
  color: var(--brand-primary) !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
  transition: transform 0.15s ease !important;
  text-decoration: none !important;
}

.arche2-tool-item:hover .arche2-tool-arrow {
  transform: translateX(4px) !important;
}

.arche2-related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none !important;
  color: var(--text-main) !important;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.arche2-related-card:hover {
  border-color: var(--brand-border);
  background: var(--bg-surface-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.arche2-related-card .arche2-related-title {
  color: var(--text-main) !important;
  text-decoration: none !important;
  font-weight: 750;
}

.arche2-related-card .arche2-related-desc {
  color: var(--text-muted) !important;
  text-decoration: none !important;
}

/* Category Hub Right Sidebar & Popular Widgets */
.pdf-sidebar-card,
.cat-popular-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .pdf-sidebar-card,
[data-theme="dark"] .cat-popular-card {
  background: #1e293b;
  border-color: #334155;
}

.pdf-sidebar-title,
.cat-popular-title {
  font-size: 0.96rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 14px;
}
.cat-popular-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.cat-popular-header .cat-popular-title {
  margin: 0;
}

.pdf-popular-list,
.cat-popular-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdf-popular-item,
.pdf-popular-item:visited,
.pdf-popular-item:hover,
.pdf-popular-item:active,
.cat-pop-item,
.cat-pop-item:visited,
.cat-pop-item:hover,
.cat-pop-item:active {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  color: var(--text-main) !important;
  background: var(--bg-surface-alt, #f8fafc) !important;
  border: 1px solid var(--border) !important;
  transition: all 0.15s ease !important;
}
[data-theme="dark"] .pdf-popular-item,
[data-theme="dark"] .cat-pop-item {
  background: #0f172a !important;
  border-color: #334155 !important;
}
.pdf-popular-item:hover,
.cat-pop-item:hover {
  border-color: var(--brand-primary) !important;
  box-shadow: var(--shadow-sm) !important;
  transform: translateY(-1px) !important;
}

.pdf-popular-item *,
.cat-pop-item * {
  text-decoration: none !important;
}

.pdf-rank-num,
.cat-pop-rank {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.pdf-popular-name,
.cat-pop-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}
.pdf-popular-sub,
.cat-pop-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 1px;
}

.pdf-sidebar-promo {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 14px;
  padding: 16px;
}
[data-theme="dark"] .pdf-sidebar-promo {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(59, 130, 246, 0.25);
}
.pdf-promo-title {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--brand-primary);
  margin-bottom: 6px;
}
.pdf-promo-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Category Hub Bottom Related Sections */
.cat-related-section,
.pdf-related-categories {
  margin: 44px 0 32px;
}
.cat-related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .cat-related-card {
  background: #1e293b;
  border-color: #334155;
}
.cat-related-title,
.pdf-related-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.pdf-related-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: -10px 0 16px;
}
.cat-related-grid,
.pdf-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.cat-related-item,
.cat-related-item:visited,
.cat-related-item:hover,
.cat-related-item:active,
.pdf-related-card,
.pdf-related-card:visited,
.pdf-related-card:hover,
.pdf-related-card:active {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  background: var(--bg-surface-alt, #f8fafc) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  color: var(--text-main) !important;
  transition: all 0.2s ease !important;
}
[data-theme="dark"] .cat-related-item,
[data-theme="dark"] .pdf-related-card {
  background: #0f172a !important;
  border-color: #334155 !important;
}
.cat-related-item:hover,
.pdf-related-card:hover {
  border-color: var(--brand-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-sm) !important;
}

.cat-related-item *,
.pdf-related-card * {
  text-decoration: none !important;
}

.cat-rel-body {
  flex: 1 1 auto;
}
.cat-rel-name,
.pdf-related-name {
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--text-main);
}
.cat-rel-desc,
.pdf-related-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.cat-rel-arrow {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  margin-left: auto;
}
.cat-related-item:hover .cat-rel-arrow {
  transform: translateX(4px);
}

/* Category Sidenav Variants (Purple for Dev/Security, Emerald for Image, Royal Blue for PDF, Gold/Green for Finance) */
.arche2-sidenav-purple .arche2-sidenav-header {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(99, 102, 241, 0.05) 100%);
}
.arche2-sidenav-purple .arche2-sidenav-header-icon {
  background: #7c3aed;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}
.arche2-sidenav-purple .arche2-sidenav-link.active {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.08);
  border-left-color: #7c3aed;
}

.arche2-sidenav-green .arche2-sidenav-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.05) 100%);
}
.arche2-sidenav-green .arche2-sidenav-header-icon {
  background: #059669;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}
.arche2-sidenav-green .arche2-sidenav-link.active {
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  border-left-color: #059669;
}

/* Modernize ad-hoc tool-sidebar to match arche2-sidenav visual polish */
.tool-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 90px;
  padding: 0 !important;
  overflow: hidden;
}
.tool-sidebar .sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-bottom: 1px solid var(--border-color);
}
.tool-sidebar .sidebar-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #6366f1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
  flex-shrink: 0;
}
.tool-sidebar .sidebar-title-text {
  font-size: 0.94rem;
  font-weight: 750;
  color: var(--text-main);
  line-height: 1.2;
}
.tool-sidebar .sidebar-sub-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.tool-sidebar nav {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}
.sidebar-tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}
.sidebar-tool-link:hover {
  color: var(--brand-primary);
  background: var(--bg-surface-alt);
}
.sidebar-tool-link.active {
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.08);
  border-left-color: #4f46e5;
  font-weight: 700;
}
[data-theme="dark"] .sidebar-tool-link.active {
  background: rgba(99, 102, 241, 0.18);
  color: #818cf8;
  border-left-color: #818cf8;
}
.arche2-related-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.08);
}
.arche2-related-icon {
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.arche2-related-title {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--text-main);
  line-height: 1.3;
}
.arche2-related-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

/* Responsive Breakpoints for Archetype 2 */
@media (max-width: 1080px) {
  .arche2-info-grid {
    grid-template-columns: 1fr;
  }
  .arche2-faq-related-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .arche2-page-layout {
    grid-template-columns: 1fr;
  }
  .arche2-sidenav {
    display: none; /* Collapse sidebar on mobile */
  }
  .arche2-calc-grid {
    grid-template-columns: 1fr;
  }
  .arche2-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .arche2-hero-img {
    width: 100%;
    height: 180px;
  }
}
@media (max-width: 600px) {
  .arche2-calc-actions {
    flex-direction: column;
  }
  .arche2-card-actions {
    flex-direction: column;
  }
  .arche2-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   APPROVED THEME SPECIFICATION — SCREENSHOT 1, 2, 3, 4
   ========================================================================== */

/* Universal Squircle Icon Badges */
.app-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.app-icon-badge.sm {
  width: 34px;
  height: 34px;
  font-size: 1rem;
  border-radius: 8px;
}
.app-icon-badge.lg {
  width: 52px;
  height: 52px;
  font-size: 1.6rem;
  border-radius: 14px;
}

/* Specific Brand & Functional Palette */
.badge-red { background: #ef4444 !important; }
.badge-purple { background: #8b5cf6 !important; }
.badge-blue { background: #0066FF !important; }
.badge-green { background: #10b981 !important; }
.badge-cyan { background: #06b6d4 !important; }
.badge-pink { background: #ec4899 !important; }
.badge-orange { background: #f97316 !important; }
.badge-yellow { background: #f59e0b !important; }
.badge-teal { background: #0d9488 !important; }
.badge-darkblue { background: #1d4ed8 !important; }

/* ── Top Navigation & Brand (Screenshot 2) ── */
.nav-all-tools-btn {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border-radius: 8px;
  font-weight: 750;
  font-size: 0.88rem;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
  border: none;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.nav-all-tools-btn:hover {
  background: #1e40af !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}

/* ── Homepage Specific Grids (Screenshot 1) ── */

/* Hero Banner */
.home-hero-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
  background: radial-gradient(circle at 85% 45%, rgba(124, 192, 255, 0.42) 0%, rgba(186, 224, 255, 0.22) 35%, rgba(240, 248, 255, 0.75) 65%, #f6fafc 100%), #ffffff;
  border: 1px solid rgba(219, 234, 254, 0.85);
  border-radius: 28px;
  box-shadow: 0 10px 30px -5px rgba(0, 102, 255, 0.05);
  padding: 38px 48px;
  margin: 16px 0 32px;
  position: relative;
  z-index: 30;
}
[data-theme="dark"] .home-hero-wrap {
  background: radial-gradient(circle at 85% 45%, rgba(30, 64, 175, 0.45) 0%, rgba(15, 23, 42, 0.85) 55%, #0b1329 100%), #0f172a;
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}
@media (max-width: 900px) {
  .home-hero-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
    padding: 32px 24px;
    border-radius: 20px;
  }
}
.home-hero-title {
  font-size: 2.75rem;
  font-weight: 850;
  color: #0f172a;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
[data-theme="dark"] .home-hero-title {
  color: #f8fafc;
}
.home-hero-title .highlight-blue {
  color: #0066FF;
}
.home-hero-sub {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 580px;
}
[data-theme="dark"] .home-hero-sub {
  color: #94a3b8;
}
@media (max-width: 900px) {
  .home-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Hero Search Input */
.home-search-bar {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 50;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  max-width: 580px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}
[data-theme="dark"] .home-search-bar {
  background: #1e293b;
  border-color: #334155;
}
.home-search-bar:focus-within {
  border-color: #0066FF;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}
.home-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.98rem;
  color: #0f172a;
  outline: none;
  font-weight: 500;
  padding: 6px 0;
}
[data-theme="dark"] .home-search-input {
  color: #f8fafc;
}
.home-search-btn {
  background: #1d4ed8;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.home-search-btn:hover {
  background: #1e40af;
}

/* Hero Trust Pills */
.home-trust-pills {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .home-trust-pills {
    justify-content: center;
  }
}
.home-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 650;
  color: #475569;
}
[data-theme="dark"] .home-trust-pill {
  color: #cbd5e1;
}

/* Hero Graphic Container */
.home-hero-graphic {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .home-hero-graphic {
    justify-content: center;
    border-radius: 16px;
  }
}
.home-hero-graphic img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 20px;
}

/* ── Section Headers with Right Link (Screenshot 1) ── */
.home-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 36px 0 16px;
}
.home-sec-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
}
[data-theme="dark"] .home-sec-title {
  color: #f8fafc;
}
.home-sec-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.home-sec-link:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

/* ── Popular Tools Grid (6 Columns on Desktop) ── */
.home-popular-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 1200px) {
  .home-popular-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 850px) {
  .home-popular-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 580px) {
  .home-popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Individual Tool Card (Screenshot 1) */
.home-tool-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 14px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
}
[data-theme="dark"] .home-tool-card {
  background: #1e293b;
  border-color: #334155;
}
.home-tool-card:hover {
  border-color: #0066FF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.1);
}
.home-tool-title {
  font-size: 0.92rem;
  font-weight: 750;
  color: #0f172a;
  margin: 12px 0 4px;
  line-height: 1.3;
}
[data-theme="dark"] .home-tool-title {
  color: #f8fafc;
}
.home-tool-desc {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="dark"] .home-tool-desc {
  color: #94a3b8;
}
.home-tool-arrow {
  color: #0066FF;
  font-size: 0.88rem;
  margin-top: auto;
  padding-top: 8px;
  align-self: flex-end;
}

/* ── Browse by Category (4 Columns on Desktop) ── */
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 960px) {
  .home-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .home-category-grid {
    grid-template-columns: 1fr;
  }
}
.home-cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .home-cat-card {
  background: #1e293b;
  border-color: #334155;
}
.home-cat-card:hover {
  border-color: #0066FF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.1);
}
.home-cat-title {
  font-size: 1.02rem;
  font-weight: 750;
  color: #0f172a;
  margin: 12px 0 4px;
}
[data-theme="dark"] .home-cat-title {
  color: #f8fafc;
}
.home-cat-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0 0 12px;
}
[data-theme="dark"] .home-cat-desc {
  color: #94a3b8;
}
.home-cat-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0066FF;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Popular Finance Calculators (4 Columns on Desktop) ── */
.home-finance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 960px) {
  .home-finance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .home-finance-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Trust Metrics Bar (Screenshot 1) ── */
.home-metric-strip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 24px;
  margin: 36px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .home-metric-strip {
  background: #1e293b;
  border-color: #334155;
}
.home-metric-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(0, 102, 255, 0.08);
  color: #0066FF;
}
.home-metric-data {
  display: flex;
  flex-direction: column;
}
.home-metric-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
[data-theme="dark"] .home-metric-val {
  color: #f8fafc;
}
.home-metric-sub {
  font-size: 0.74rem;
  color: #64748b;
}
[data-theme="dark"] .home-metric-sub {
  color: #94a3b8;
}

/* ── Bottom CTA Banner (Screenshot 1) ── */
.home-bottom-cta {
  background: linear-gradient(135deg, #eef5ff 0%, #e0edff 100%);
  border: 1px solid rgba(0, 102, 255, 0.15);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}
[data-theme="dark"] .home-bottom-cta {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(30, 41, 59, 0.8) 100%);
  border-color: rgba(0, 102, 255, 0.3);
}
@media (max-width: 768px) {
  .home-bottom-cta {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
}
.home-cta-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
@media (max-width: 768px) {
  .home-cta-left {
    flex-direction: column;
  }
}
.home-cta-graphic {
  width: 80px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 4px 12px rgba(0, 102, 255, 0.15));
}
.home-cta-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}
[data-theme="dark"] .home-cta-title {
  color: #f8fafc;
}
.home-cta-sub {
  font-size: 0.88rem;
  color: #475569;
  margin: 0;
}
[data-theme="dark"] .home-cta-sub {
  color: #cbd5e1;
}
.home-cta-btn {
  background: #0066FF;
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 750;
  padding: 12px 24px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
  transition: all 0.15s ease;
}
.home-cta-btn:hover {
  background: #0052cc;
  transform: translateY(-1px);
}

/* ==========================================================================
   PDF & DOCUMENTS HUB SPECIFICATION (SCREENSHOT 3)
   ========================================================================== */

/* 3-Column Layout */
.pdf-hub-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: start;
  margin: 24px 0 48px;
}
@media (max-width: 1100px) {
  .pdf-hub-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .pdf-hub-right-sidebar {
    display: none;
  }
}
@media (max-width: 820px) {
  .pdf-hub-layout {
    grid-template-columns: 1fr;
  }
  .pdf-hub-left-sidenav {
    display: none;
  }
}

/* Left Sidenav */
.pdf-hub-sidenav-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 90px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .pdf-hub-sidenav-card {
  background: #1e293b;
  border-color: #334155;
}
.pdf-hub-sidenav-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 750;
  font-size: 0.92rem;
  color: #0f172a;
}
[data-theme="dark"] .pdf-hub-sidenav-header {
  color: #f8fafc;
  border-color: #334155;
}
.pdf-hub-sidenav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.84rem;
  color: #475569;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}
[data-theme="dark"] .pdf-hub-sidenav-link {
  color: #cbd5e1;
}
.pdf-hub-sidenav-link:hover {
  background: #f8fafc;
  color: #0066FF;
}
[data-theme="dark"] .pdf-hub-sidenav-link:hover {
  background: #334155;
}
.pdf-hub-sidenav-link.active {
  background: #eff6ff;
  color: #0052cc;
  border-left-color: #0052cc;
  font-weight: 750;
}
[data-theme="dark"] .pdf-hub-sidenav-link.active {
  background: rgba(0, 102, 255, 0.15);
  color: #60a5fa;
}

/* Center Grid (3 Columns) */
.pdf-hub-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 600px) {
  .pdf-hub-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* Filter Pills Toolbar */
.pdf-filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}
.pdf-pill-btn {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
}
[data-theme="dark"] .pdf-pill-btn {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}
.pdf-pill-btn:hover {
  border-color: #0066FF;
  color: #0066FF;
}
.pdf-pill-btn.active {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

/* Right Sidebar Widgets (Screenshot 3) */
.pdf-sidebar-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .pdf-sidebar-widget {
  background: #1e293b;
  border-color: #334155;
}
.pdf-widget-title {
  font-size: 0.94rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 12px;
}
[data-theme="dark"] .pdf-widget-title {
  color: #f8fafc;
}
.pdf-numbered-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 650;
  color: #334155;
  transition: color 0.15s ease;
}
[data-theme="dark"] .pdf-numbered-item {
  color: #cbd5e1;
  border-color: #334155;
}
.pdf-numbered-item:hover {
  color: #0066FF;
}
.pdf-num-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdf-numbered-item:nth-child(1) .pdf-num-circle { background: #fef08a; color: #854d0e; }
.pdf-numbered-item:nth-child(2) .pdf-num-circle { background: #e0e7ff; color: #3730a3; }
.pdf-numbered-item:nth-child(3) .pdf-num-circle { background: #bfdbfe; color: #1e40af; }
.pdf-numbered-item:nth-child(4) .pdf-num-circle { background: #fecdd3; color: #9f1239; }
.pdf-numbered-item:nth-child(5) .pdf-num-circle { background: #ddd6fe; color: #5b21b6; }

/* ── Coming Soon Pill Badge for Tools in Development ── */
.coming-soon-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  width: fit-content;
}
[data-theme="dark"] .coming-soon-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.35);
}
.home-tool-card.is-coming-soon {
  cursor: pointer;
  position: relative;
}
.home-tool-card.is-coming-soon .home-tool-arrow {
  color: #94a3b8;
}

/* ═════════════════════════════════════════════════════════════════
   ACTION ITEM 2: CHAINED ACTIONS & CONNECTED TOOL WORKFLOWS
   ═════════════════════════════════════════════════════════════════ */

.chained-action-bar {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
  border: 1px dashed rgba(0, 102, 255, 0.35);
  border-radius: 12px;
}
[data-theme="dark"] .chained-action-bar {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(96, 165, 250, 0.4);
}
.chained-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chained-action-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chained-action-title .badge-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.chained-action-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.chained-action-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.chained-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 0.95rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.chained-chip-btn:hover {
  background: var(--bg-surface-alt);
  border-color: #0066FF;
  color: #0066FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 102, 255, 0.12);
}
[data-theme="dark"] .chained-chip-btn {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
[data-theme="dark"] .chained-chip-btn:hover {
  border-color: #60a5fa;
  color: #60a5fa;
}
.chained-chip-icon {
  font-size: 1rem;
}
.chained-chip-arrow {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}
.chained-chip-btn:hover .chained-chip-arrow {
  transform: translateX(2px);
  color: #0066FF;
}

/* ── Contextual 'Frequently Paired Together' Bottom Carousel / Strip ── */
.paired-tools-strip {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}
.paired-tools-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.paired-tools-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.paired-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.paired-tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.18s ease;
}
.paired-tool-card:hover {
  border-color: #0066FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}
.paired-tool-name {
  font-weight: 750;
  font-size: 0.9rem;
  color: var(--text-main);
}
.paired-tool-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Notification Toast for Handoff Success */
.handoff-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid #10b981;
  animation: slideToast 0.3s ease;
}
@keyframes slideToast {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   World Time Zone Converter — Professional Multi-City Slider Design System
   ========================================================================== */
.tz-main-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  position: relative;
}

.tz-top-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.tz-search-wrapper {
  position: relative;
  flex: 1 1 280px;
  max-width: 440px;
}

.tz-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--bg-surface-alt, #f8fafc);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}
.tz-search-input:focus {
  border-color: var(--brand-primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.tz-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.tz-search-autocomplete {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-surface-elevated, #ffffff);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}
.tz-search-autocomplete.show {
  display: block;
}
.tz-autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.tz-autocomplete-item:last-child {
  border-bottom: none;
}
.tz-autocomplete-item:hover, .tz-autocomplete-item.highlighted {
  background: var(--brand-light, #eff6ff);
  color: var(--brand-primary);
}

.tz-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tz-date-btn-wrap {
  position: relative;
}
.tz-date-picker-input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt, #f8fafc);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}
.tz-date-picker-input:focus {
  border-color: var(--brand-primary);
}

.tz-best-meeting-strip {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
  border: 1px solid var(--brand-border, #bfdbfe);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin: 16px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.tz-best-meeting-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tz-best-meeting-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Rows List */
.tz-rows-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tz-row-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
  position: relative;
}
.tz-row-card:hover {
  border-color: var(--brand-border, #bfdbfe);
  box-shadow: var(--shadow-sm);
}

.tz-row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.tz-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tz-drag-handle {
  color: var(--text-tertiary);
  cursor: grab;
  font-size: 1.1rem;
  user-select: none;
}
.tz-city-code-title {
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}
.tz-city-code-sub {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.tz-row-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tz-time-badge-box {
  background: var(--bg-surface-alt, #f1f5f9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.tz-time-badge-box:hover {
  border-color: var(--brand-primary);
  background: var(--brand-light, #eff6ff);
}
.tz-time-big {
  font-family: inherit;
  font-size: 1.65rem;
  font-weight: 850;
  color: var(--brand-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.tz-time-meta {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
  margin-top: 3px;
}

.tz-delete-row-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.2rem;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tz-delete-row-btn:hover {
  color: var(--error, #dc2626);
  background: var(--error-bg, #fee2e2);
}

/* Synchronized Day/Night Slider Track */
.tz-slider-track-wrap {
  position: relative;
  width: 100%;
  margin-top: 8px;
}

.tz-custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  outline: none;
  margin: 6px 0;
  position: relative;
  z-index: 2;
  background: transparent;
  cursor: pointer;
}

/* WebKit slider thumb */
.tz-custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--brand-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.tz-custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Firefox slider thumb */
.tz-custom-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--brand-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
}

.tz-timeline-daynight-bar {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 14px;
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

/* Hour ruler markings */
.tz-ruler-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-top: 4px;
  padding: 0 2px;
  user-select: none;
}

/* DST Notice Strip */
.tz-dst-banner {
  background: var(--bg-surface-alt, #f8fafc);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.tz-dst-banner-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 1rem;
}

/* ==========================================================================
   Dark Mode Overrides: Developer Tools & Time Zone Converter
   ========================================================================== */
[data-theme="dark"] .tz-main-container,
[data-theme="dark"] .tz-row-card {
  background: #111827;
  border-color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .tz-search-input,
[data-theme="dark"] .tz-date-picker-input,
[data-theme="dark"] .tz-time-badge-box,
[data-theme="dark"] .tz-dst-banner {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

[data-theme="dark"] .tz-search-autocomplete {
  background: #111827;
  border-color: #334155;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .tz-autocomplete-item {
  border-color: #1e293b;
  color: #f8fafc;
}
[data-theme="dark"] .tz-autocomplete-item:hover,
[data-theme="dark"] .tz-autocomplete-item.highlighted {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

[data-theme="dark"] .tz-city-code-title {
  color: #f8fafc;
}
[data-theme="dark"] .tz-city-code-sub {
  color: #60a5fa;
}
[data-theme="dark"] .tz-time-big {
  color: #60a5fa;
}
[data-theme="dark"] .tz-time-meta {
  color: #94a3b8;
}
[data-theme="dark"] .tz-ruler-labels span {
  color: #64748b;
}

[data-theme="dark"] .tz-best-meeting-strip {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .tz-custom-slider::-webkit-slider-thumb {
  background: #0f172a;
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .tz-custom-slider::-moz-range-thumb {
  background: #0f172a;
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Dark mode inputs & textareas for JWT and Epoch tools */
[data-theme="dark"] textarea.form-input,
[data-theme="dark"] input.form-input,
[data-theme="dark"] select.form-input {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

[data-theme="dark"] #epoch-results-box,
[data-theme="dark"] #date-results-box,
[data-theme="dark"] #epoch-live-clock-card {
  background: #111827 !important;
  border-color: #1e293b !important;
}

[data-theme="dark"] code {
  color: #f8fafc;
}

[data-theme="dark"] .sidebar-tool-link {
  color: #94a3b8;
}
[data-theme="dark"] .sidebar-tool-link:hover,
[data-theme="dark"] .sidebar-tool-link.active {
  color: #60a5fa !important;
  background: rgba(59, 130, 246, 0.15);
}

/* Contact & Tool Request Hub Styles */
.contact-tab-btn {
  background: transparent;
  color: var(--text-main);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.contact-tab-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-primary);
}
.contact-tab-btn.active {
  background: var(--brand-primary) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .contact-tab-btn {
  color: #cbd5e1;
}
[data-theme="dark"] .contact-tab-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}
[data-theme="dark"] .contact-tab-btn.active {
  background: var(--brand-primary) !important;
  color: #ffffff !important;
}

[data-theme="dark"] #tab-explainer {
  background: #0f172a !important;
  border-color: #334155 !important;
}
[data-theme="dark"] #form-feedback-banner {
  background: #064e3b !important;
  border-color: #047857 !important;
}

/* ── Mobile Responsive Header & Drawer Fixes ── */
@media (max-width: 640px) {
  .nav-all-tools-btn {
    display: none !important;
  }
  .header-inner {
    min-height: 56px;
    gap: 8px;
  }
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .brand-logo {
    font-size: 1.05rem;
    gap: 6px;
  }
  .brand-icon,
  .brand-icon img,
  .brand-icon-img {
    width: 28px !important;
    height: 28px !important;
  }
  .header-action-icon,
  .theme-toggle-btn,
  .mobile-menu-toggle {
    width: 35px !important;
    height: 35px !important;
    flex-shrink: 0;
  }
  .lang-selector-wrapper {
    flex-shrink: 0;
    position: relative;
    overflow: visible !important;
    z-index: 10001;
  }
  .lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 10002 !important;
    max-width: calc(100vw - 20px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 4px 10px rgba(0, 0, 0, 0.12) !important;
  }
  .lang-toggle-btn {
    padding: 4px 7px !important;
    font-size: 0.78rem !important;
    gap: 4px !important;
    height: 35px !important;
  }
}

@media (max-width: 380px) {
  .container {
    width: calc(100% - 20px) !important;
  }
  .header-actions {
    gap: 4px;
  }
  .brand-logo {
    font-size: 0.95rem;
    gap: 5px;
  }
  .header-action-icon,
  .theme-toggle-btn,
  .mobile-menu-toggle {
    width: 32px !important;
    height: 32px !important;
  }
  .lang-toggle-btn {
    padding: 3px 6px !important;
    font-size: 0.75rem !important;
    height: 32px !important;
  }
}

/* ==========================================================================
   WCAG 2.2 Level AA Dark Mode Contrast Standards (UX-01)
   ========================================================================== */
[data-theme="dark"] .home-sec-link {
  color: #60a5fa;
}
[data-theme="dark"] .home-cat-badge {
  color: #93c5fd;
}
[data-theme="dark"] .brand-logo {
  color: #f8fafc;
}
[data-theme="dark"] .brand-logo span {
  color: #60a5fa;
}
[data-theme="dark"] .nav-dropdown-btn {
  color: #f8fafc;
}
[data-theme="dark"] #current-lang-code {
  color: #f8fafc;
}
[data-theme="dark"] .preset-chip {
  background: #1e293b;
  color: #f8fafc !important;
  border-color: #334155;
}
[data-theme="dark"] .preset-chip:hover {
  background: #2563eb;
  color: #ffffff !important;
  border-color: #2563eb;
}
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-secondary.btn,
[data-theme="dark"] #btn-reset {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}
[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] #btn-reset:hover {
  background: #334155 !important;
  color: #ffffff !important;
}
[data-theme="dark"] #btn-calculate,
[data-theme="dark"] #btn-print-plan {
  background: #1d4ed8 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .action-whatsapp {
  color: #4ade80 !important;
  border-color: #22c55e !important;
}
[data-theme="dark"] .action-btn {
  color: #e2e8f0;
  border-color: #475569;
}
[data-theme="dark"] .arche2-link-item {
  color: #93c5fd !important;
}
[data-theme="dark"] .arche2-link-item:hover {
  color: #bfdbfe !important;
}
[data-theme="dark"] .active.arche2-sidenav-link {
  color: #93c5fd !important;
  background: rgba(59, 130, 246, 0.25) !important;
}
[data-theme="dark"] .toggle-btn {
  color: #cbd5e1;
}
[data-theme="dark"] .toggle-btn.active {
  color: #ffffff;
  background: #1d4ed8;
}
[data-theme="dark"] .tenure-suffix-badge,
[data-theme="dark"] #tenure-suffix {
  color: #f8fafc !important;
}











/* ==========================================================================
   Header Polish: Unified Dimensions, Perfect Alignment & Zero Overflow
   ========================================================================== */
:root {
  --container-max: 1240px;
}

.site-header {
  overflow: visible !important;
}

.header-inner {
  min-height: 64px;
  gap: 12px;
  max-width: 100%;
}

.brand-logo {
  font-size: 1.15rem;
  gap: 8px;
}

.brand-icon-img {
  width: 28px !important;
  height: 28px !important;
}

.site-nav {
  gap: 2px;
}

.nav-dropdown-btn {
  font-size: 0.81rem;
  font-weight: 600;
  padding: 5px 7px;
  gap: 3px;
}

/* Header Action Controls - Normalized to 36px height, perfect vertical center alignment */
.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.header-action-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-surface) !important;
  color: var(--text-main) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
}

.header-action-icon:hover {
  background: var(--brand-light) !important;
  color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

.nav-all-tools-btn {
  height: 36px !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  background: #1d4ed8 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  text-decoration: none;
  border: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  margin: 0 !important;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.2);
}

.nav-all-tools-btn:hover {
  background: #1e40af !important;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}

.lang-toggle-btn {
  height: 36px !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-surface) !important;
  color: var(--text-main) !important;
  font-size: 0.80rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  cursor: pointer;
  line-height: 1 !important;
  margin: 0 !important;
  transition: all 0.15s ease;
}

.lang-toggle-btn:hover {
  color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  background: var(--brand-light) !important;
}

@media (max-width: 1180px) {
  .nav-all-tools-btn {
    display: none !important;
  }
}

