/* ============================================
   KITLY — MAIN STYLESHEET
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  background: var(--bg-page);
  color: var(--text-primary);
  transition: background var(--duration-normal) var(--ease), color var(--duration-normal) var(--ease);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-tight);
  font-weight: 600;
  margin: 0 0 var(--space-4);
  color: var(--text-primary);
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--space-4); color: var(--text-primary); }
.text-muted { color: var(--text-muted); }

a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-primary-hover); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

section { padding: var(--space-8) 0; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-primary-text-on);
  padding: var(--space-3) var(--space-4);
  z-index: 999;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ============ CUSTOM SCROLLBAR ============ */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--bg-surface-2);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface-2);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--raw-crimson), var(--raw-teal));
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-surface-2);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-primary-hover), var(--color-secondary-hover));
  background-clip: padding-box;
}
::-webkit-scrollbar-corner {
  background: var(--bg-surface-2);
}

/* Thinner scrollbar for internal scroll areas like code output and mobile nav */
.output-code::-webkit-scrollbar,
.mobile-nav::-webkit-scrollbar {
  width: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-soft);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--text-primary);
  text-decoration: none;
}
.logo:hover { color: var(--text-primary); }
.logo i { color: var(--color-primary); }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-body);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--duration-fast) var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.theme-toggle {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}
.theme-toggle:hover { background: var(--border-soft); transform: scale(1.05); }
[data-theme="dark"] .theme-toggle .fa-sun { display: block; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: block; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px; height: 40px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--bg-page);
  z-index: 99;
  padding: var(--space-6) var(--space-5);
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.mobile-nav a {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-soft);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--color-primary); color: var(--color-primary-text-on); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-primary-text-on); box-shadow: var(--shadow-md); }

.btn-secondary { background: var(--color-secondary); color: var(--color-secondary-text-on); }
.btn-secondary:hover { background: var(--color-secondary-hover); color: var(--color-secondary-text-on); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; border-color: var(--border-soft); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-ghost { background: var(--bg-surface-2); color: var(--text-primary); }
.btn-ghost:hover { background: var(--border-soft); }

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--fs-small); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn.copied { background: var(--color-success); color: var(--raw-white); }

/* ============ HERO ============ */
.hero {
  padding: var(--space-9) 0 var(--space-8);
  text-align: center;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-page) 100%);
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.hero .eyebrow i { color: var(--color-secondary); }
.hero h1 { max-width: 780px; margin-left: auto; margin-right: auto; }
.hero .lede {
  max-width: 620px;
  margin: 0 auto var(--space-6);
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
}
.hero-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-7);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  color: var(--text-primary);
}
.hero-stats .stat span { color: var(--text-muted); font-size: var(--fs-small); }

/* ============ SECTION HEADER ============ */
.section-header { text-align: center; max-width: 640px; margin: 0 auto var(--space-7); }
.section-header .eyebrow-label {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-3);
}
.section-header p { color: var(--text-muted); }

/* ============ CARDS / GRID ============ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}
.tool-card .tool-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--bg-surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--color-primary);
}
.tool-card h3 { margin-bottom: 0; font-size: var(--fs-h4); }
.tool-card p { color: var(--text-muted); font-size: var(--fs-small); margin-bottom: 0; }
.tool-card .tool-card-tag {
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  background: var(--bg-surface-2);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
}

/* ============ WHY-US FEATURE GRID ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}
.feature-card {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
}
.feature-card .feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--color-secondary);
  color: var(--color-secondary-text-on);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 1.1rem;
}
.feature-card h3 { font-size: var(--fs-h4); }
.feature-card p { color: var(--text-muted); font-size: var(--fs-small); margin-bottom: 0; }

/* ============ TOOL PAGE LAYOUT ============ */
.tool-hero {
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-surface);
}
.breadcrumb {
  list-style: none;
  display: flex;
  gap: var(--space-2);
  padding: 0;
  margin: 0 0 var(--space-4);
  font-size: var(--fs-small);
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb li::after { content: '/'; margin-left: var(--space-2); color: var(--border-soft); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }

.tool-hero h1 { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.tool-hero h1 i { color: var(--color-primary); font-size: 0.85em; }
.tool-hero .lede { color: var(--text-muted); max-width: 640px; font-size: var(--fs-body-lg); margin-bottom: 0; }

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-surface-2);
  color: var(--color-secondary);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
  border: 1px solid var(--border-soft);
}

.tool-workspace { padding: var(--space-7) 0; }

.tool-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.field-group { margin-bottom: var(--space-5); }
.field-group:last-child { margin-bottom: 0; }
label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-small);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}
.field-hint { color: var(--text-muted); font-size: var(--fs-xs); margin-top: var(--space-2); }

input[type="text"], input[type="number"], input[type="url"], input[type="search"],
textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-page);
  color: var(--text-primary);
  transition: border-color var(--duration-fast) var(--ease);
}
input:focus, textarea:focus, select:focus { border-color: var(--color-secondary); }
textarea { resize: vertical; min-height: 140px; font-family: 'Courier New', monospace; }

input[type="range"] {
  width: 100%;
  accent-color: var(--color-primary);
  cursor: pointer;
}

input[type="color"] {
  width: 48px; height: 40px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 2px;
  cursor: pointer;
  background: var(--bg-page);
}

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; }
.toggle-row label { margin-bottom: 0; font-weight: 500; }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border-soft);
  border-radius: var(--radius-full);
  transition: background var(--duration-fast) var(--ease);
}
.switch .slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: var(--bg-page);
  border-radius: 50%;
  transition: transform var(--duration-fast) var(--ease);
  box-shadow: var(--shadow-sm);
}
.switch input:checked + .slider { background: var(--color-primary); }
.switch input:checked + .slider::before { transform: translateX(20px); }

.output-code {
  background: var(--bg-page);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  font-family: 'Courier New', monospace;
  font-size: var(--fs-small);
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-primary);
  max-height: 260px;
  overflow-y: auto;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.file-result-list { display: flex; flex-direction: column; gap: var(--space-3); }
.file-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  flex-wrap: wrap;
}
.file-result-info { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.file-result-info i { color: var(--color-primary); font-size: 1.1rem; flex-shrink: 0; }
.file-result-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-result-text strong { font-size: var(--fs-small); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.file-result-text span { font-size: var(--fs-xs); color: var(--text-muted); }
.file-result .btn { flex-shrink: 0; }

.stat-pill {
  background: var(--bg-surface-2);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  text-align: center;
}
.stat-pill strong { display: block; font-family: var(--font-heading); font-size: var(--fs-h3); color: var(--color-primary); }
.stat-pill span { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--space-3); }

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  margin-top: var(--space-4);
}
.alert-error { background: rgba(196, 0, 63, 0.08); color: var(--color-error); border: 1px solid rgba(196, 0, 63, 0.2); }
.alert-success { background: rgba(27, 138, 90, 0.08); color: var(--color-success); border: 1px solid rgba(27, 138, 90, 0.2); }
.alert i { margin-top: 2px; }

.dropzone {
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
  color: var(--text-muted);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--color-primary); background: var(--bg-surface-2); }
.dropzone i { font-size: 2rem; color: var(--color-secondary); margin-bottom: var(--space-3); display: block; }
.dropzone input[type="file"] { display: none; }

.strength-meter { display: flex; gap: 4px; margin-top: var(--space-3); }
.strength-meter .bar { height: 6px; flex: 1; border-radius: var(--radius-full); background: var(--border-soft); transition: background var(--duration-fast) var(--ease); }
.strength-meter.weak .bar:nth-child(1) { background: var(--color-error); }
.strength-meter.fair .bar:nth-child(-n+2) { background: #E1A200; }
.strength-meter.good .bar:nth-child(-n+3) { background: var(--color-secondary); }
.strength-meter.strong .bar { background: var(--color-success); }

/* ============ CONTENT SECTIONS ============ */
.how-to-list { counter-reset: step; list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.how-to-list li {
  display: flex; gap: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
}
.how-to-list li::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-text-on);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-heading);
}

.seo-content { max-width: 720px; margin: 0 auto; }
.seo-content h2 { font-size: var(--fs-h3); }

.faq-list { display: grid; gap: var(--space-3); max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--bg-surface); overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  font-family: var(--font-heading);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '\2b'; font-family: monospace; color: var(--color-primary); font-size: 1.25rem; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 var(--space-5) var(--space-5); color: var(--text-muted); margin: 0; }

.related-tools { text-align: center; }
.related-tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); max-width: 800px; margin: 0 auto; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
.footer-brand p { color: var(--text-muted); font-size: var(--fs-small); max-width: 320px; }
.footer-col h4 { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.footer-col a { color: var(--text-primary); text-decoration: none; font-size: var(--fs-small); }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.social-links { display: flex; gap: var(--space-3); }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.social-links a:hover { background: var(--color-primary); color: var(--color-primary-text-on); }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ SEARCH / FILTER (tools.html) ============ */
.tools-toolbar {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  align-items: center;
}
.search-box { position: relative; flex: 1; min-width: 240px; }
.search-box i { position: absolute; left: var(--space-4); top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-box input { padding-left: var(--space-7); }

.filter-chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}
.chip:hover { border-color: var(--color-primary); }
.chip.active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-text-on); }

.no-results { text-align: center; padding: var(--space-8) 0; color: var(--text-muted); display: none; }
.no-results.show { display: block; }
.no-results i { font-size: 2rem; color: var(--border-soft); margin-bottom: var(--space-4); display: block; }

/* ============ NAV DROPDOWN ============ */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown > a i { font-size: 0.75em; color: var(--color-secondary); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-page);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 500;
}
.nav-dropdown-menu a::after { content: none; }
.nav-dropdown-menu a:hover { background: var(--bg-surface-2); color: var(--color-primary); }

/* ============ RED COUNTER BOXES ============ */
.counter-row { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.counter-box {
  background: var(--color-primary);
  color: var(--color-primary-text-on);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  min-width: 130px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-fast) var(--ease);
}
.counter-box:hover { transform: translateY(-3px); }
.counter-box strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.counter-box span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.9; }

/* ============ FOOTER CREDIT ============ */
.footer-credit { color: var(--text-muted); }
.footer-credit a { color: var(--color-primary); text-decoration: none; font-weight: 600; transition: color var(--duration-fast) var(--ease); }
.footer-credit a:hover { color: var(--color-secondary); }

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.gap-3 { gap: var(--space-3); }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
