:root {
  color-scheme: light dark;
  --bg: #fff;
  --surface: #fff;
  --subtle: #f7f8fa;
  --text: #1f2328;
  --muted: #667085;
  --muted2: #556070;
  --muted3: #5f6979;
  --line: #e6e8ec;
  --line2: #d7dbe2;
  --accent: #3568d4;
  --accent2: #2d59b7;
  --accent-soft: #f5f8ff;
  --accent-border: #c9d6f3;
  --green: #287b5b;
  --on-accent: #fff;
  --header-bg: rgba(255, 255, 255, 0.97);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  --max: 1160px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --subtle: #1a1e27;
    --text: #e8eaed;
    --muted: #9aa3b2;
    --muted2: #a7b0bf;
    --muted3: #b0b8c6;
    --line: #2a303c;
    --line2: #3a4250;
    --accent: #6b93f0;
    --accent2: #5882e0;
    --accent-soft: #1a2438;
    --accent-border: #3a4f7a;
    --green: #5fbf96;
    --on-accent: #0f1115;
    --header-bg: rgba(15, 17, 21, 0.92);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(var(--max), calc(100% - 32px)); margin: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-row {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand-mark img {
  width: 32px;
  height: 32px;
  display: block;
}
.brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}
.brand-name {
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand-sub {
  font-weight: 650;
  font-size: 13px;
  color: var(--muted);
}
.nav { display: flex; gap: 2px; }
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  border-radius: 6px;
  color: var(--muted2);
  font-weight: 650;
}
.nav a:hover,
.nav a.active {
  background: var(--subtle);
  color: var(--text);
}
.nav a.active .cat-icon,
.nav a:hover .cat-icon { filter: none; }
.cat-icon {
  flex: 0 0 auto;
  width: var(--icon-size, 18px);
  height: var(--icon-size, 18px);
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  line-height: 0;
}
.cat-icon svg { display: block; }
.cat-icon--social-media { background: #edf2ff; box-shadow: inset 0 0 0 1px #d7e2ff; padding: 3px; width: calc(var(--icon-size, 18px) + 6px); height: calc(var(--icon-size, 18px) + 6px); }
.cat-icon--email { background: #eafaf1; box-shadow: inset 0 0 0 1px #cfeedd; padding: 3px; width: calc(var(--icon-size, 18px) + 6px); height: calc(var(--icon-size, 18px) + 6px); }
.cat-icon--network { background: #e8f7fc; box-shadow: inset 0 0 0 1px #c5e8f4; padding: 3px; width: calc(var(--icon-size, 18px) + 6px); height: calc(var(--icon-size, 18px) + 6px); }
.cat-icon--developer { background: #fff4ea; box-shadow: inset 0 0 0 1px #f3dfc7; padding: 3px; width: calc(var(--icon-size, 18px) + 6px); height: calc(var(--icon-size, 18px) + 6px); }
.cat-icon--security { background: #eaf7f0; box-shadow: inset 0 0 0 1px #cfe8da; padding: 3px; width: calc(var(--icon-size, 18px) + 6px); height: calc(var(--icon-size, 18px) + 6px); }
.cat-icon--all { background: #edf2ff; box-shadow: inset 0 0 0 1px #d7e2ff; padding: 3px; width: calc(var(--icon-size, 18px) + 6px); height: calc(var(--icon-size, 18px) + 6px); }
.cat-icon-wrap {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  background: transparent;
  border: 0;
  width: auto;
  height: auto;
}
.cat-icon-wrap.lg .cat-icon {
  --icon-size: 22px;
  border-radius: 9px;
  padding: 5px;
  width: calc(22px + 10px);
  height: calc(22px + 10px);
}
.cat-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cat-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-wrap select {
  height: 38px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--muted2);
}
.header-search { width: 240px; position: relative; }
.header-search:before {
  content: "⌕";
  position: absolute;
  left: 11px;
  top: 5px;
  color: #8d96a5;
  font-size: 20px;
}
.header-search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  padding: 0 12px 0 34px;
  outline: none;
  background: var(--surface);
  color: var(--text);
}

.intro { padding: 44px 0 30px; border-bottom: 1px solid var(--line); }
.intro h1 {
  margin: 0 0 9px;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.intro-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 9px;
}
.intro-heading h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.intro p { margin: 0; max-width: 760px; color: var(--muted); font-size: 16px; }
.hero-search {
  max-width: 760px;
  display: flex;
  gap: 8px;
  margin-top: 21px;
}
.hero-search input {
  flex: 1;
  height: 46px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  padding: 0 13px;
  outline: none;
}
.hero-search button,
.primary,
.copy,
.secondary {
  height: 46px;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 750;
  cursor: pointer;
}
.hero-search button,
.primary,
.copy {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.hero-search button:hover,
.primary:hover,
.copy:hover { background: var(--accent2); }
.secondary {
  border: 1px solid var(--line2);
  background: var(--surface);
  color: var(--muted2);
}
.jump {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px 12px;
  margin-top: 18px;
  width: fit-content;
  max-width: 100%;
}
.jump a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  color: #3f4856;
  font-weight: 650;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px;
  background: var(--surface);
  min-height: 40px;
  white-space: nowrap;
}
.jump a:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}
.jump a .cat-icon { margin: 0; }

section { padding: 32px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 22px; }
.section-head p { margin: 3px 0 0; color: var(--muted); }
.section-head a { color: var(--accent); font-weight: 700; }

.popular {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.popular a {
  padding: 15px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 102px;
}
.popular a:nth-child(3n) { border-right: 0; }
.popular a:nth-last-child(-n + 3) { border-bottom: 0; }
.popular a:hover { background: var(--subtle); }
.pop-name { font-weight: 750; margin-bottom: 4px; }
.pop-desc { font-size: 12px; color: var(--muted); }
.pop-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.pop-cat { font-size: 11px; color: #8a94a4; }

.tools-toolbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
}
.tools-search { position: relative; flex: 1; }
.tools-search:before {
  content: "⌕";
  position: absolute;
  left: 11px;
  top: 5px;
  color: #8d96a5;
  font-size: 20px;
}
.tools-search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  padding: 0 12px 0 34px;
  outline: none;
}
.count { color: #7c8595; white-space: nowrap; }

.category {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.category-info h3 { margin: 0; font-size: 17px; }
.category-info p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.tool-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.tool {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f1f3;
}
.tool:hover .tool-name { color: var(--accent); }
.tool-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-name { font-weight: 700; }
.tool-desc { margin-top: 2px; color: var(--muted); font-size: 12px; }
.arrow { align-self: center; color: #9aa3b1; }
.hidden { display: none !important; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  border: 1px solid var(--line2);
  color: var(--muted2);
  background: var(--surface);
}
.badge.free { color: var(--green); border-color: #cfe3d9; background: #f3faf6; }
.badge.premium,
.badge.paid { color: #8a5a12; border-color: #edd9b0; background: #fff8eb; }
.badge.live { color: var(--green); }
.badge.die,
.badge.error { color: #b42318; }

.note {
  margin-top: 28px;
  padding: 17px 18px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted2);
}
.note strong { color: var(--text); }

.breadcrumb {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 16px 0;
  color: #8790a0;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb strong { color: #4d5666; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: start;
  padding-bottom: 8px;
}
.layout-side-left {
  grid-template-columns: 230px minmax(0, 1fr);
}
.tool-panel,
.generator {
  border: 1px solid var(--line2);
  border-radius: 9px;
  background: var(--surface);
  padding: 20px;
}
.side {
  border-left: 1px solid var(--line);
  padding-left: 19px;
  position: sticky;
  top: 83px;
}
.layout-side-left .side {
  border-left: 0;
  border-right: 1px solid var(--line);
  padding-left: 0;
  padding-right: 19px;
}
.side h3 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8c95a4;
  display: flex;
  align-items: center;
  gap: 6px;
}
.side h3 .cat-icon { margin-right: 2px; }
.side a {
  display: block;
  padding: 7px 0;
  color: var(--muted2);
  font-weight: 650;
}
.side a.side-tool {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.side a.side-tool .badge {
  flex: 0 0 auto;
  font-weight: 750;
}
.side a.side-cat {
  display: flex;
  align-items: center;
  gap: 7px;
}
.side a.side-cat .cat-icon { flex: 0 0 auto; }
.side a:hover,
.side a.active { color: var(--accent); }
.side a.active { font-weight: 750; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.all-link { color: var(--accent) !important; font-weight: 750 !important; }
.mobile-cats { display: none; }

.section { padding: 32px 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 6px; font-size: 21px; }
.section > p { margin: 0 0 14px; color: var(--muted); }
.related a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.related a:hover .name { color: var(--accent); }
.name { font-weight: 700; }
.desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.article h2 { margin: 0 0 9px; font-size: 21px; }
.article h3 { font-size: 16px; margin: 24px 0 8px; }
.article .howto-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  align-items: baseline;
  line-height: 1.35;
  max-width: 820px;
}
.article .howto-title > span {
  display: inline;
  white-space: normal;
  overflow-wrap: anywhere;
}
.article .howto-body {
  margin: 0 0 28px;
  max-width: 820px;
}
.article .howto-body p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.article p,
.article li { color: #5f6979; max-width: 820px; }
.article a { color: var(--accent); font-weight: 650; }
.article a:hover { text-decoration: underline; }
.article ul { padding-left: 20px; max-width: 820px; }
.legal-page { padding-bottom: 40px; }
.legal-updated {
  margin-top: 10px !important;
  font-size: 13px !important;
  color: #8a94a4 !important;
}
.legal-body {
  padding: 8px 0 28px;
  border-top: 1px solid var(--line);
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.legal-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted2);
  font-weight: 650;
}
.legal-nav a:hover,
.legal-nav a.active {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}
.faq {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.faq:first-of-type { border-top: 1px solid var(--line); }
.faq-q { font-weight: 750; margin-bottom: 3px; }
.faq-a { color: #626c7c; }

.cat-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  padding-bottom: 40px;
}
.cat-tool {
  padding: 14px 0;
  border-bottom: 1px solid #f0f1f3;
}
.cat-tool:hover .tool-name { color: var(--accent); }

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #566071;
  margin-bottom: 7px;
}
textarea,
.field input[type="text"],
.field input[type="number"],
.field input[type="password"],
.tool-panel input[type="text"],
.tool-panel input[type="number"],
.tool-panel input[type="url"],
.tool-panel input[type="search"] {
  width: 100%;
  border: 1px solid var(--line2);
  border-radius: 7px;
  padding: 10px 12px;
  outline: none;
  background: var(--subtle);
}
textarea { min-height: 160px; resize: vertical; font-family: var(--mono); font-size: 13px; }
.actions { display: flex; gap: 9px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.status { color: var(--muted); }
.status.ok { color: var(--green); }
.status.err { color: #b42318; }
.progress { margin-top: 14px; }
.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.bar > div {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}
#progressText { margin-top: 6px; color: var(--muted); font-size: 12px; }
.results-wrap { margin-top: 16px; overflow: auto; }
.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.results th,
.results td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 8px 10px;
  vertical-align: top;
}
.results th {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.clamp {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-chip,
.copy-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  background: var(--surface);
  color: var(--accent);
  font-weight: 650;
  cursor: pointer;
}
.premium-box p { margin-top: 0; color: #5f6979; }
.premium-landing {
  padding: 4px 2px 8px;
}
.premium-landing .premium-overview {
  margin: 0 0 18px;
  color: var(--muted3);
  line-height: 1.65;
  max-width: 820px;
  font-size: 15px;
}
.premium-landing h2 {
  margin: 22px 0 8px;
  font-size: 18px;
  font-weight: 780;
  color: var(--text);
}
.premium-landing > p {
  margin: 0 0 8px;
  color: var(--muted3);
  line-height: 1.65;
  max-width: 820px;
}
.premium-list {
  margin: 0 0 6px;
  padding-left: 20px;
  max-width: 820px;
  color: var(--muted3);
  line-height: 1.6;
}
.premium-list li { margin: 4px 0; }
.premium-cta {
  margin-top: 22px;
  padding: 16px 16px 18px;
  border: 1px solid #edd9b0;
  border-radius: 10px;
  background: #fffaf0;
  max-width: 820px;
}
.premium-cta-note {
  margin: 0 0 12px;
  color: #7a5a28;
  font-size: 13.5px;
  line-height: 1.55;
}
.primary-link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 7px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent) !important;
  font-weight: 750;
}
.muted { color: var(--muted); }
.row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f0f1f3;
}
.row:last-child { border-bottom: 0; }
.field-title { font-weight: 700; }
.field-help {
  display: block;
  margin-top: 2px;
  color: #8a93a3;
  font-size: 11px;
  font-weight: 400;
}
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; }
.checks label { display: flex; align-items: center; gap: 8px; color: #4f5969; }
.output { display: flex; gap: 8px; }
.output input {
  flex: 1;
  height: 50px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  background: var(--subtle);
  padding: 0 13px;
  outline: none;
  font: 700 17px/1.2 var(--mono);
}
.copy { height: 50px; }
.strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 22px;
}
.bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  flex: 1;
}
.bars span {
  height: 5px;
  border-radius: 999px;
  background: #e2e5ea;
}
.bars span.on { background: #4f9a79; }
.strength-text { font-size: 12px; font-weight: 700; color: var(--green); }
.settings { border-top: 1px solid var(--line); }
.range { display: flex; gap: 12px; align-items: center; }
.range input[type="number"] {
  width: 68px;
  height: 38px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  text-align: center;
}
.kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  margin-top: 12px;
}
.kv dt { color: #667085; font-weight: 650; }
.kv dd { margin: 0; word-break: break-word; font-family: var(--mono); font-size: 12px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 8px; }
.local-ui .btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.local-ui button {
  height: 36px;
  border-radius: 7px;
  padding: 0 12px;
  border: 1px solid var(--line2);
  background: var(--surface);
  cursor: pointer;
  font-weight: 650;
}
.local-ui button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.myip-wrap { margin-top: 4px; }
.myip-ip {
  margin: 12px 0 0;
  font: 28px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.myip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}
.myip-details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--surface);
}
.myip-details h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}
.myip-kv {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 8px 10px;
  align-items: center;
  font-size: 13px;
}
.myip-kv .k { color: var(--muted); font-weight: 650; }
.myip-kv .v { word-break: break-word; font-family: var(--mono); font-size: 12px; }
.myip-kv button.copy-one {
  height: 28px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 6px;
}
.myip-map-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--surface);
}
.myip-map-panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}
.myip-map-actions { margin-bottom: 10px; }
.myip-map-actions a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid var(--line2);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  font-size: 13px;
}
.myip-map-actions a:hover { border-color: var(--accent); color: var(--accent); }
.myip-map {
  height: 280px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  background: var(--subtle);
  overflow: hidden;
}
.myip-map-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  padding: 16px;
  text-align: center;
}

@media (max-width: 900px) {
  .myip-grid { grid-template-columns: 1fr; }
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 30px 0 40px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: flex-start;
}
.footer p { color: var(--muted); max-width: 480px; margin: 8px 0 0; }
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #657082;
  font-weight: 650;
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header-search { width: 36vw; }
  .popular { grid-template-columns: 1fr 1fr; }
  .popular a,
  .popular a:nth-child(3n) { border-right: 1px solid var(--line); }
  .popular a:nth-child(2n) { border-right: 0; }
  .category { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-cats {
    display: flex;
    gap: 8px;
    overflow: auto;
    padding-bottom: 18px;
  }
  .mobile-cats a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--muted2);
    font-weight: 650;
  }
  .mobile-cats a .cat-icon { flex: 0 0 auto; }
  .mobile-cats a.active {
    color: var(--accent);
    border-color: #cfd8ee;
    background: #f7f9ff;
  }
  .cat-tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .container { width: min(100% - 22px, var(--max)); }
  .header-search { display: none; }
  .intro { padding: 32px 0 24px; }
  .intro h1 { font-size: 31px; }
  .hero-search { flex-direction: column; }
  .hero-search button { width: 100%; }
  .jump {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .jump a { width: auto; }
  .popular { grid-template-columns: 1fr; }
  .popular a { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .popular a:last-child { border-bottom: 0 !important; }
  .tool-list { grid-template-columns: 1fr; }
  .tools-toolbar { align-items: flex-start; flex-direction: column; }
  .tools-search { width: 100%; }
  .footer { flex-direction: column; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .checks { grid-template-columns: 1fr; }
  .output { flex-direction: column; }
  .copy { width: 100%; }
  .kv { grid-template-columns: 1fr; }
}

.quota-note {
  margin: 14px 0 0;
  color: var(--muted3);
  font-size: 13px;
  line-height: 1.5;
}
.quota-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.quota-modal {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
}
.quota-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.quota-modal p {
  margin: 0 0 16px;
  color: var(--muted3);
  line-height: 1.55;
}
.quota-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quota-modal .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.quota-modal .ghost {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
}
@media (prefers-color-scheme: dark) {
  .cat-icon--social-media { background: #1c2438; box-shadow: inset 0 0 0 1px #2f3d5c; }
  .cat-icon--email { background: #172820; box-shadow: inset 0 0 0 1px #2a4436; }
  .cat-icon--network { background: #15242b; box-shadow: inset 0 0 0 1px #2a4450; }
  .cat-icon--developer { background: #2a2118; box-shadow: inset 0 0 0 1px #4a3a28; }
  .cat-icon--security { background: #172820; box-shadow: inset 0 0 0 1px #2a4436; }
  .cat-icon--all { background: #1c2438; box-shadow: inset 0 0 0 1px #2f3d5c; }
  .badge.free { color: #7ed0ad; border-color: #2f5a45; background: #15241d; }
  .badge.premium { color: #c9a227; border-color: #5a4a1a; background: #2a2410; }
  .badge.paid { color: #e0b35a; border-color: #5a4a1a; background: #2a2410; }
  .quota-note { background: #2a2410; color: #e0c48a; }
  textarea, input, select {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line2);
  }
  .results th { background: var(--subtle); }
  .results td { border-color: var(--line); }
}
