/* ============================================================
   FreeDevTool - Shared Stylesheet
   Design: Dual-theme (dark default, light optional) | Green accent | Monospace
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg:       #0d0f11;
  --bg2:      #141618;
  --bg3:      #1a1d20;
  --bg4:      #22262b;
  --border:   #2a2f36;
  --border2:  #353c45;
  --text:     #e8eaed;
  --text2:    #9aa3af;
  --text3:    #5c6470;
  --accent:   #00d084;
  --accent2:  #00a86b;
  --accent-dim: rgba(0,208,132,.08);
  --accent-glow: rgba(0,208,132,.15);
  --red:      #ff5a5a;
  --yellow:   #f5c542;
  --mono:     'JetBrains Mono', monospace;
  --sans:     'DM Sans', sans-serif;
  --radius:   8px;
  --radius-lg: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
html { color-scheme: dark; }

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,208,132,0); }
  50%      { box-shadow: 0 0 20px 2px rgba(0,208,132,.08); }
}

/* ---- NAV ---- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,15,17,.85);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  height: 56px;
  animation: fadeIn .4s var(--ease-out);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.3px;
  white-space: nowrap;
  transition: opacity .2s, transform .2s var(--ease-spring);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-logo:hover { opacity: .9; }
.nav-logo .logo-mark {
  flex-shrink: 0;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
  transition: transform .35s var(--ease-spring);
}
.nav-logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }

.nav-links {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  align-items: center;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color .2s var(--ease-out), background .2s var(--ease-out), transform .15s;
  position: relative;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg4);
  transform: translateY(-1px);
}
.nav-links a:active { transform: translateY(0); }

/* ---- NAV DROPDOWN (mega-menu style) ---- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.nav-dropdown > a .chev {
  width: 10px; height: 10px;
  transition: transform .3s var(--ease-spring);
  opacity: .7;
}
.nav-dropdown:hover > a,
.nav-dropdown.open > a {
  color: var(--text);
  background: var(--bg4);
}
.nav-dropdown:hover > a .chev,
.nav-dropdown.open > a .chev {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--accent);
}

/* Invisible hover bridge so menu doesn't close when cursor moves into it */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 12px;
  pointer-events: none;
}
.nav-dropdown:hover::after,
.nav-dropdown.open::after { pointer-events: auto; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 640px;
  max-width: calc(100vw - 24px);
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-spring), visibility .25s;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(0,208,132,.08), 0 0 40px -10px rgba(0,208,132,.15);
  z-index: 200;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px; right: 24px;
  width: 12px; height: 12px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transform: rotate(45deg);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-dropdown-menu a {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 32px 11px 12px;
  border-radius: var(--radius);
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  position: relative;
  isolation: isolate;
  transition: background .2s var(--ease-out), color .2s, transform .25s var(--ease-spring);
  opacity: 0;
  transform: translateY(4px);
  animation: ddItemIn .3s var(--ease-out) forwards;
}
.nav-dropdown:hover .nav-dropdown-menu a,
.nav-dropdown.open .nav-dropdown-menu a {
  opacity: 1;
  transform: translateY(0);
}
.nav-dropdown-menu a:nth-child(1) { animation-delay: .02s; }
.nav-dropdown-menu a:nth-child(2) { animation-delay: .05s; }
.nav-dropdown-menu a:nth-child(3) { animation-delay: .08s; }
.nav-dropdown-menu a:nth-child(4) { animation-delay: .11s; }
.nav-dropdown-menu a:nth-child(5) { animation-delay: .14s; }
.nav-dropdown-menu a:nth-child(6) { animation-delay: .17s; }
.nav-dropdown-menu a:nth-child(7) { animation-delay: .20s; }
.nav-dropdown-menu a:nth-child(8) { animation-delay: .23s; }
.nav-dropdown-menu a:nth-child(9) { animation-delay: .26s; }

.nav-dropdown-menu a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,208,132,.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
.nav-dropdown-menu a:hover {
  background: var(--bg4);
  color: var(--text);
  transform: translateY(-1px);
}
.nav-dropdown-menu a:hover::before { opacity: 1; }
.nav-dropdown-menu a::after {
  content: '→';
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%) translateX(-4px);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  opacity: 0;
  transition: opacity .2s, transform .25s var(--ease-spring);
}
.nav-dropdown-menu a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.nav-dropdown-menu a .dd-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--bg4);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  transition: background .25s, border-color .25s, transform .3s var(--ease-spring), box-shadow .25s;
}
.nav-dropdown-menu a:hover .dd-icon {
  background: rgba(0,208,132,.12);
  border-color: rgba(0,208,132,.35);
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 4px 16px -4px rgba(0,208,132,.4);
}
.nav-dropdown-menu a .dd-info { min-width: 0; flex: 1 1 auto; padding-top: 1px; overflow: hidden; }
.nav-dropdown-menu a .dd-name {
  font-size: 13px; font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-dropdown-menu a .dd-count {
  font-size: 11px;
  color: var(--text3);
  font-family: var(--mono);
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-dropdown-menu a:hover .dd-count { color: var(--accent); }

.nav-dropdown-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 6px 4px;
}

/* Special "All Tools" footer entry spans both columns */
.nav-dropdown-menu a.dd-all {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 100%);
  border: 1px solid rgba(0,208,132,.18);
  padding: 12px 14px;
  justify-content: space-between;
}
.nav-dropdown-menu a.dd-all .dd-icon {
  background: rgba(0,208,132,.15);
  border-color: rgba(0,208,132,.3);
  color: var(--accent);
}
.nav-dropdown-menu a.dd-all:hover {
  background: linear-gradient(135deg, rgba(0,208,132,.18) 0%, rgba(0,208,132,.05) 100%);
  border-color: rgba(0,208,132,.35);
}
.nav-dropdown-menu a.dd-all .dd-name { color: var(--accent); }

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

@media (max-width: 600px) {
  .nav-dropdown-menu {
    position: fixed;
    top: 56px; left: 10px; right: 10px;
    width: auto;
    max-width: unset;
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }
  .nav-dropdown-menu::before { display: none; }
}

/* ---- LAYOUT ---- */
.wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ---- HERO / TOOL HEADER ---- */
.tool-header {
  position: relative;
  padding: 36px 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  animation: fadeInUp .5s var(--ease-out);
}
.tool-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  border-radius: 2px;
}
.tool-header > span[style*="font-size:11px"],
.tool-header > span[style*="Last updated"] {
  display: inline-block;
  margin-top: 14px !important;
  color: var(--text3) !important;
  opacity: .7;
}

.tool-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(0,208,132,.22);
  border-radius: 20px; padding: 4px 12px;
  margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: .6px;
  transition: border-color .25s, background .25s, transform .2s var(--ease-spring);
}
.tool-badge:hover {
  border-color: rgba(0,208,132,.45);
  background: rgba(0,208,132,.12);
  transform: translateY(-1px);
}
.tool-badge::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 6px rgba(0,208,132,.8);
  animation: pulse 2s ease-in-out infinite;
}

h1 {
  font-family: var(--sans);
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.tool-header > p {
  color: var(--text2);
  font-size: 15px;
  max-width: 680px;
  line-height: 1.65;
}

.tool-description {
  color: var(--text2);
  font-size: 14.5px;
  max-width: 600px;
  line-height: 1.65;
}

/* ---- TOOL CARD ---- */
.tool-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  animation: fadeInUp .6s var(--ease-out) .1s both;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.tool-card:hover {
  border-color: var(--border2);
}

.tool-card-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  transition: transform .2s var(--ease-spring);
}
.dot:hover { transform: scale(1.3); }
.dot-red   { background: #ff5f57; }
.dot-yellow{ background: #febc2e; }
.dot-green { background: #28c840; }

.tool-card-title {
  font-family: var(--mono); font-size: 11px;
  color: var(--text3); margin-left: 4px;
}

.tool-body { padding: 20px; }

/* ---- INPUTS & CONTROLS ---- */
label {
  display: block;
  font-size: 12px; font-weight: 500;
  color: var(--text2);
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 7px;
  transition: color .2s;
}

textarea, input[type="text"] {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s;
  outline: none;
}
textarea:focus, input[type="text"]:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(0,208,132,.1), 0 0 16px rgba(0,208,132,.05);
  background: var(--bg);
}
textarea { min-height: 110px; }

input[type="number"] {
  width: 100%;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--mono); font-size: 14px;
  padding: 12px 14px; outline: none;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s;
}
input[type="number"]:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(0,208,132,.1), 0 0 16px rgba(0,208,132,.05);
  background: var(--bg);
}

select {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 13px; padding: 9px 12px;
  outline: none; cursor: pointer;
  transition: border-color .2s, background .2s;
}
select:focus { border-color: var(--accent2); background: var(--bg); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  cursor: pointer; border: none;
  transition: all .2s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.08);
  opacity: 0;
  transition: opacity .2s;
}
.btn:active::after { opacity: 1; }

.btn-primary {
  background: var(--accent); color: #0a0c0e;
  box-shadow: 0 2px 8px rgba(0,208,132,.2);
}
.btn-primary:hover {
  background: #00b873;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,208,132,.3);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(0,208,132,.2); }

.btn-secondary {
  background: var(--bg4); color: var(--text2);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--border2);
  background: var(--bg3);
  transform: translateY(-1px);
}
.btn-secondary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent; color: var(--text3);
  border: 1px solid var(--border);
  font-size: 12px; padding: 6px 12px;
}
.btn-ghost:hover {
  color: var(--accent);
  border-color: rgba(0,208,132,.3);
  background: var(--accent-dim);
  transform: translateY(-1px);
}
.btn-ghost:active { transform: translateY(0); }

.btn-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px;
}

/* ---- OUTPUT ---- */
.output-block {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  font-family: var(--mono); font-size: 13px; color: var(--text);
  min-height: 60px; word-break: break-all; white-space: pre-wrap;
  line-height: 1.65;
  transition: border-color .2s;
}
.output-label {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 7px;
}

/* ---- DIVIDER ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 18px 0;
}

/* ---- GRID ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 580px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- TABS ---- */
.tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.tab {
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  color: var(--text2); background: transparent;
  transition: all .2s var(--ease-out);
  position: relative;
}
.tab.active {
  background: var(--accent-dim); color: var(--accent);
  border-color: rgba(0,208,132,.25);
  box-shadow: 0 0 12px rgba(0,208,132,.08);
}
.tab:hover:not(.active) {
  background: var(--bg4); color: var(--text);
  transform: translateY(-1px);
}

/* ---- STATUS / ALERT ---- */
.status {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  margin-top: 12px;
  animation: fadeIn .25s var(--ease-out);
}
.status-ok  { background: rgba(0,208,132,.08); color: var(--accent); border: 1px solid rgba(0,208,132,.2); }
.status-err { background: rgba(255,90,90,.08);  color: var(--red);   border: 1px solid rgba(255,90,90,.2); }
.status-warn{ background: rgba(245,197,66,.08); color: var(--yellow); border: 1px solid rgba(245,197,66,.2); }

/* ---- COPY TOAST ---- */
#copy-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--accent); color: #0a0c0e;
  padding: 9px 22px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: all .3s var(--ease-spring);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,208,132,.3);
}
#copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- FAQ SECTION ---- */
.faq-section {
  margin-top: 40px;
  animation: fadeInUp .6s var(--ease-out) .2s both;
}

.faq-section h2 {
  font-size: 19px; font-weight: 600;
  margin-bottom: 14px; color: var(--text);
  letter-spacing: -0.01em;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 6px;
  transition: border-color .2s var(--ease-out), box-shadow .2s;
}
.faq-item:hover {
  border-color: var(--border2);
}
.faq-item.open {
  border-color: rgba(0,208,132,.2);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  font-size: 13.5px; font-weight: 500; color: var(--text);
  cursor: pointer; user-select: none;
  background: var(--bg2);
  transition: background .2s var(--ease-out), color .2s;
  gap: 12px;
  line-height: 1.4;
}
.faq-q:hover { background: var(--bg3); }
.faq-q .chevron {
  flex-shrink: 0; width: 16px; height: 16px;
  color: var(--text3);
  transition: transform .3s var(--ease-spring), color .2s;
}
.faq-item:hover .chevron { color: var(--accent); }
.faq-item.open .chevron { transform: rotate(180deg); color: var(--accent); }

.faq-a {
  display: none;
  padding: 12px 16px 14px;
  font-size: 13.5px; color: var(--text2);
  line-height: 1.6;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.faq-a p { margin: 0 0 8px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-item.open .faq-a { display: block; animation: fadeIn .25s var(--ease-out); }
.faq-a code {
  font-family: var(--mono); font-size: 12px;
  background: var(--bg4); color: var(--accent);
  padding: 1px 6px; border-radius: 4px;
  transition: background .15s;
}
.faq-a code:hover { background: var(--bg3); }

/* ---- RELATED TOOLS ---- */
.related-section {
  margin-top: 48px;
  animation: fadeInUp .6s var(--ease-out) .3s both;
}
.related-section h2 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }

.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.related-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  text-decoration: none; color: var(--text);
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out),
              box-shadow .25s var(--ease-out), background .25s;
}
.related-card:hover {
  border-color: rgba(0,208,132,.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2), 0 0 0 1px rgba(0,208,132,.1);
  background: linear-gradient(135deg, var(--bg2) 0%, rgba(0,208,132,.03) 100%);
}
.related-icon {
  font-family: var(--mono); font-size: 18px;
  color: var(--accent); flex-shrink: 0;
  transition: transform .3s var(--ease-spring);
}
.related-card:hover .related-icon { transform: scale(1.15); }
.related-card-info { min-width: 0; }
.related-card-name {
  font-size: 13px; font-weight: 500;
  transition: color .2s;
}
.related-card:hover .related-card-name { color: var(--accent); }
.related-card-desc { font-size: 12px; color: var(--text2); margin-top: 2px; }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 12px; color: var(--text3);
  animation: fadeIn .6s var(--ease-out) .4s both;
}
footer a {
  color: var(--text2); text-decoration: none;
  transition: color .2s var(--ease-out);
  position: relative;
}
footer a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s var(--ease-out);
}
footer a:hover { color: var(--accent); }
footer a:hover::after { width: 100%; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-top: 10px; }

/* ---- UTILITIES ---- */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12{ margin-top: 12px; }
.mt-16{ margin-top: 16px; }
.text-mono { font-family: var(--mono); }
.text-accent { color: var(--accent); }
.text-dim { color: var(--text2); }
.text-sm { font-size: 13px; }

/* ---- SELECTION ---- */
::selection {
  background: rgba(0,208,132,.2);
  color: var(--text);
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .wrapper { padding: 28px 16px 60px; }
  nav { padding: 0 14px; height: 52px; gap: 10px; }
  .nav-links a { padding: 6px 9px; font-size: 12.5px; }
  .nav-logo { font-size: 14px; }
  .tool-header { padding: 28px 0 22px; margin-bottom: 22px; }
  .btn-row { flex-direction: column; }
  .btn { justify-content: center; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .nav-links a { padding: 6px 7px; font-size: 12px; }
  .nav-links a[href="privacy.html"] { display: none; }
}

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