.tools-page,
.tool-detail-page {
  --tool-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tool-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg);
}

.tools-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 82px;
  color: #fff;
  background: var(--navy);
  border-radius: 0 0 40px 40px;
}
.tools-hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  right: -180px;
  top: -330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209,31,45,.32), transparent 68%);
  pointer-events: none;
}
.tools-hero-inner { position: relative; z-index: 1; text-align: center; }
.tools-hero h1 {
  max-width: 840px;
  margin: 14px auto 18px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: .98;
}
.tools-hero p { max-width: 670px; margin: 0 auto 30px; color: rgba(255,255,255,.68); font-size: 1.06rem; }
.tools-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
  padding: 6px 9px 6px 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(12px);
}
.tools-search > span:first-child { font-size: 1.6rem; color: rgba(255,255,255,.6); }
.tools-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 8px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
}
.tools-search input::placeholder { color: rgba(255,255,255,.45); }
.tools-hero-stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
  max-width: 760px; margin: 0 auto 28px;
}
.tools-hero-stats > div {
  min-width: 120px; padding: 14px 18px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06);
}
.tools-hero-stats strong { display: block; font: 900 1.45rem var(--font-display); color: #fff; }
.tools-hero-stats span { color: rgba(255,255,255,.58); font-size: .76rem; }
.tools-category-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tools-category-pills button,
.tool-segmented button {
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer;
  font: 600 .82rem var(--font-body);
}
.tools-category-pills button:hover,
.tools-category-pills button.is-active { color: #fff; border-color: var(--accent-hi); background: var(--accent); }

.tools-directory { padding: 72px 0 38px; }
.tools-featured { padding: 48px 0 24px; }
.tools-featured[hidden],
.drh-ad--tools_list_mid[hidden] { display: none !important; }
.tools-section-head { margin-bottom: 28px; max-width: 720px; }
.tools-section-head h2 { margin-top: 8px; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.tools-section-head p { color: var(--ink-soft); margin-top: 8px; }
.tools-featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.tool-card {
  position: relative;
  display: block;
  padding: 1px;
  border-radius: 30px;
  background: linear-gradient(150deg, rgba(20, 20, 28, 0.07), rgba(20, 20, 28, 0.02));
  box-shadow: 0 24px 60px -44px rgba(22, 22, 31, 0.28);
  transition: transform 0.7s var(--tool-ease), box-shadow 0.7s var(--tool-ease), background 0.7s var(--tool-ease);
  will-change: transform;
}
.tool-card-surface {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 332px;
  padding: 28px;
  border-radius: 29px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbfa 100%);
  overflow: hidden;
  isolation: isolate;
}
.tool-card-accent {
  position: absolute;
  top: -72px;
  right: -72px;
  z-index: 0;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 22, 32, 0.09), transparent 68%);
  pointer-events: none;
  transition: transform 0.85s var(--tool-ease), opacity 0.85s var(--tool-ease);
}
.tool-card[data-tool-cat="text"] .tool-card-accent { background: radial-gradient(circle, rgba(88, 120, 255, 0.12), transparent 68%); }
.tool-card[data-tool-cat="calculators"] .tool-card-accent { background: radial-gradient(circle, rgba(52, 176, 255, 0.12), transparent 68%); }
.tool-card[data-tool-cat="developer"] .tool-card-accent { background: radial-gradient(circle, rgba(108, 132, 255, 0.12), transparent 68%); }
.tool-card[data-tool-cat="security"] .tool-card-accent { background: radial-gradient(circle, rgba(255, 96, 120, 0.11), transparent 68%); }
.tool-card[data-tool-cat="image"] .tool-card-accent { background: radial-gradient(circle, rgba(255, 138, 96, 0.12), transparent 68%); }
.tool-card[data-tool-cat="pdf"] .tool-card-accent { background: radial-gradient(circle, rgba(168, 120, 255, 0.11), transparent 68%); }
.tool-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.tool-card-icon-wrap {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  border: 1px solid rgba(176, 22, 32, 0.08);
  background: linear-gradient(145deg, rgba(176, 22, 32, 0.07), rgba(176, 22, 32, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 14px 30px -22px rgba(176, 22, 32, 0.35);
  transition: transform 0.7s var(--tool-ease), box-shadow 0.7s var(--tool-ease), border-color 0.7s var(--tool-ease);
}
.tool-card[data-tool-cat="text"] .tool-card-icon-wrap {
  border-color: rgba(88, 120, 255, 0.12);
  background: linear-gradient(145deg, rgba(88, 120, 255, 0.1), rgba(88, 120, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 14px 30px -22px rgba(88, 120, 255, 0.28);
}
.tool-card[data-tool-cat="calculators"] .tool-card-icon-wrap {
  border-color: rgba(52, 176, 255, 0.12);
  background: linear-gradient(145deg, rgba(52, 176, 255, 0.1), rgba(52, 176, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 14px 30px -22px rgba(52, 176, 255, 0.26);
}
.tool-card[data-tool-cat="developer"] .tool-card-icon-wrap {
  border-color: rgba(108, 132, 255, 0.12);
  background: linear-gradient(145deg, rgba(108, 132, 255, 0.1), rgba(108, 132, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 14px 30px -22px rgba(108, 132, 255, 0.26);
}
.tool-card[data-tool-cat="security"] .tool-card-icon-wrap {
  border-color: rgba(255, 96, 120, 0.12);
  background: linear-gradient(145deg, rgba(255, 96, 120, 0.09), rgba(255, 96, 120, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 14px 30px -22px rgba(255, 96, 120, 0.24);
}
.tool-card[data-tool-cat="image"] .tool-card-icon-wrap {
  border-color: rgba(255, 138, 96, 0.12);
  background: linear-gradient(145deg, rgba(255, 138, 96, 0.1), rgba(255, 138, 96, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 14px 30px -22px rgba(255, 138, 96, 0.24);
}
.tool-card[data-tool-cat="pdf"] .tool-card-icon-wrap {
  border-color: rgba(168, 120, 255, 0.12);
  background: linear-gradient(145deg, rgba(168, 120, 255, 0.1), rgba(168, 120, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 14px 30px -22px rgba(168, 120, 255, 0.24);
}
.tool-card .tool-card-icon {
  font: 800 1.52rem var(--font-display);
  line-height: 1;
  transition: transform 0.7s var(--tool-ease);
}
.tool-card-badge {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(176, 22, 32, 0.12);
  background: rgba(176, 22, 32, 0.06);
  color: var(--accent);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tool-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.tool-card-category {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tool-card--featured .tool-card-category { color: var(--accent); }
.tool-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
  transition: color 0.55s var(--tool-ease), transform 0.55s var(--tool-ease);
}
.tool-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.68;
}
.tool-card-features {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.tool-card-features li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: .79rem;
  font-weight: 600;
  line-height: 1.5;
}
.tool-card-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: 0 0 0 4px rgba(176, 22, 32, 0.08);
}
.tool-card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 20, 28, 0.06);
  transition: border-color 0.55s var(--tool-ease);
}
.tool-card-link {
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.55s var(--tool-ease), transform 0.55s var(--tool-ease);
}
.tool-card-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 28, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 10px 24px -18px rgba(22, 22, 31, 0.35);
  transition: transform 0.65s var(--tool-ease), background 0.65s var(--tool-ease), color 0.65s var(--tool-ease), border-color 0.65s var(--tool-ease), box-shadow 0.65s var(--tool-ease);
}
.tool-card:hover {
  transform: translateY(-10px);
  background: linear-gradient(150deg, rgba(176, 22, 32, 0.24), rgba(255, 122, 82, 0.12));
  box-shadow: 0 42px 88px -42px rgba(22, 22, 31, 0.3);
}
.tool-card:hover .tool-card-accent {
  transform: scale(1.15) translate(-8px, 8px);
  opacity: 1;
}
.tool-card:hover .tool-card-icon-wrap {
  transform: translateY(-3px);
  border-color: rgba(176, 22, 32, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 18px 36px -18px rgba(176, 22, 32, 0.28);
}
.tool-card:hover .tool-card-icon { transform: scale(1.04); }
.tool-card:hover h3 { color: var(--accent); transform: translateX(2px); }
.tool-card:hover .tool-card-foot { border-color: rgba(176, 22, 32, 0.1); }
.tool-card:hover .tool-card-link { color: var(--accent); transform: translateX(2px); }
.tool-card:hover .tool-card-arrow {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  border-color: transparent;
  color: #fff;
  transform: translateX(3px);
  box-shadow: 0 16px 32px -16px rgba(176, 22, 32, 0.5);
}
.tool-card--featured {
  background: linear-gradient(150deg, rgba(176, 22, 32, 0.18), rgba(255, 122, 82, 0.08));
  box-shadow: 0 28px 72px -42px rgba(176, 22, 32, 0.22);
}
.tool-card--featured .tool-card-surface {
  background: linear-gradient(180deg, #ffffff 0%, #fff9f8 100%);
}
.tool-card--featured .tool-card-accent {
  background: radial-gradient(circle, rgba(176, 22, 32, 0.14), transparent 68%);
}
.tool-card--featured:hover {
  box-shadow: 0 44px 92px -40px rgba(176, 22, 32, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .tool-card,
  .tool-card-accent,
  .tool-card-icon-wrap,
  .tool-card-icon,
  .tool-card h3,
  .tool-card-link,
  .tool-card-arrow,
  .tool-card-foot { transition: none; }
  .tool-card:hover { transform: none; }
}
.tools-trust { padding: 10px 0 40px; }
.tools-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tools-trust-grid article {
  padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
}
.tools-trust-grid span { font-size: 1.6rem; }
.tools-trust-grid h3 { margin: 10px 0 8px; font-size: 1.05rem; }
.tools-trust-grid p { color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }
.tool-category { margin-bottom: 68px; }
.tool-category[hidden] { display: none; }
.tool-category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.tool-category-head h2 { margin-top: 8px; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.tool-category-head > span { color: var(--ink-soft); font-size: .85rem; white-space: nowrap; }
.tools-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tool-card[hidden] { display: none; }
.tool-title-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-hi), var(--accent));
  font: 800 1.75rem var(--font-display);
}
.tools-empty { padding: 40px; border: 1px dashed var(--line); border-radius: 22px; text-align: center; color: var(--ink-soft); }
.tools-privacy { padding: 24px 0 88px; }
.tools-privacy-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border-radius: 26px;
  color: #fff;
  background: var(--navy);
}
.tools-privacy-icon {
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 900;
}
.tools-privacy h2 { margin: 7px 0; font-size: 1.65rem; }
.tools-privacy p { color: rgba(255,255,255,.62); }

.tool-detail-hero {
  padding: 138px 0 54px;
  color: #fff;
  background: var(--navy);
  border-radius: 0 0 36px 36px;
}
.tool-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; color: rgba(255,255,255,.52); font-size: .83rem; }
.tool-breadcrumb a:hover { color: #fff; }
.tool-title-row { display: flex; align-items: center; gap: 24px; }
.tool-title-row .tool-title-icon { flex: 0 0 74px; width: 74px; height: 74px; color: #fff; background: var(--accent); font-size: 1.75rem; }
.tool-title-row h1 { margin: 8px 0 10px; font-size: clamp(2.2rem, 5vw, 4rem); }
.tool-title-row p { max-width: 680px; color: rgba(255,255,255,.65); font-size: 1rem; }
.tool-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tool-hero-badges span {
  padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.78); font-size: .74rem; font-weight: 600;
}
.tool-hero-badges span.is-accent { border-color: rgba(255,255,255,.28); background: var(--accent); color: #fff; }
.tool-workspace-section { padding: 54px 0 96px; }
.tool-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 28px;
  align-items: start;
}
.tool-workspace {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--surface);
  box-shadow: 0 30px 80px -52px rgba(20,20,28,.5);
}
.tool-workspace-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  background: #faf9f7;
  font-size: .77rem;
}
.tool-workspace-head > div { display: flex; gap: 5px; }
.tool-workspace-head i { width: 8px; height: 8px; border-radius: 50%; background: #d7d2ca; }
.tool-workspace-head b { margin-left: auto; color: #368253; font-weight: 600; }
.tool-workspace-body { padding: clamp(22px, 4vw, 38px); }
.tool-label,
.tool-field { display: grid; gap: 8px; color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.tool-label { margin-bottom: 9px; }
.tool-field-wide { margin-bottom: 20px; }
.tool-field small { color: var(--ink-soft); font-weight: 400; }
.tool-hint {
  margin: -4px 0 16px;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.5;
}
.tool-field input,
.tool-field select,
.tool-textarea,
.tool-inline-fields input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  color: var(--ink);
  background: #fbfaf8;
  font: 400 .95rem var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.tool-field input,
.tool-field select,
.tool-inline-fields input { min-height: 48px; padding: 10px 13px; }
.tool-field input:focus,
.tool-field select:focus,
.tool-textarea:focus,
.tool-inline-fields input:focus { border-color: rgba(176,22,32,.48); box-shadow: 0 0 0 3px rgba(176,22,32,.08); }
.tool-textarea { min-height: 130px; padding: 15px; resize: vertical; line-height: 1.6; }
.tool-textarea-lg { min-height: 260px; }
.tool-code { min-height: 220px; font-family: Consolas, "Courier New", monospace; font-size: .88rem; }
.tool-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.tool-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 19px 0; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font: 650 .86rem var(--font-body);
  transition: transform .2s, border-color .2s, background .2s;
}
.tool-btn:hover { transform: translateY(-2px); border-color: rgba(176,22,32,.4); }
.tool-btn:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.tool-btn-primary { color: #fff; border-color: var(--accent); background: var(--accent); }
.tool-btn-muted { background: #f3f0eb; }
.tool-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.tool-stats-3 { grid-template-columns: repeat(3, 1fr); }
.tool-stats > div,
.copy-value {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 17px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: center;
  background: #fbfaf8;
}
.tool-stats strong { overflow-wrap: anywhere; color: var(--accent); font: 800 1.18rem var(--font-display); }
.tool-stats span { color: var(--ink-soft); font-size: .7rem; }
.copy-value { cursor: pointer; }
.tool-status { min-height: 22px; margin: 13px 0; color: #368253; font-size: .84rem; }
.tool-status.is-error { color: var(--accent); }
.tool-result { margin-top: 22px; padding: 25px; border-radius: 18px; text-align: center; color: #fff; background: var(--navy); }
.tool-result strong { font: 900 clamp(1.7rem, 4vw, 2.7rem) var(--font-display); }
.tool-result p { margin-top: 7px; color: rgba(255,255,255,.64); }
.tool-segmented { display: inline-flex; gap: 5px; margin-bottom: 22px; padding: 4px; border-radius: 999px; background: #ebe7e0; }
.tool-segmented button { color: var(--ink-soft); border: 0; }
.tool-segmented button.is-active { color: #fff; background: var(--accent); }
.percentage-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.percentage-block:first-child { padding-top: 0; }
.percentage-block:last-child { border-bottom: 0; }
.percentage-block h3 { margin-bottom: 13px; font-size: 1rem; }
.tool-inline-fields { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 10px; }
.tool-inline-fields span { color: var(--ink-soft); font-size: .82rem; }
.mini-result { margin-top: 12px; color: var(--accent); font-weight: 700; }
.color-picker-row { display: grid; grid-template-columns: 110px 1fr; align-items: end; gap: 18px; }
.color-picker-row input[type="color"] { width: 110px; height: 75px; padding: 5px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.converter-grid { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; gap: 14px; }
.converter-grid .tool-field { grid-template-columns: 1fr; }
.swap-btn { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); background: #fff; cursor: pointer; font-size: 1.2rem; }
.password-output { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; padding: 18px; border-radius: 16px; color: #fff; background: var(--navy); }
.password-output strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: Consolas, monospace; }
.tool-check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-top: 20px; }
.tool-check-grid label,
.tool-check { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: .86rem; }
.password-strength { color: var(--ink-soft); font-size: .84rem; }
.qr-output { display: grid; place-items: center; min-height: 80px; margin-top: 20px; overflow: auto; }
.qr-output canvas,
.qr-output img { max-width: 100%; height: auto; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }

.qr-type-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px;
  padding: 4px; border-radius: 999px; background: #ebe7e0;
}
.qr-type-tabs button {
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: 650 .78rem var(--font-body);
}
.qr-type-tabs button.is-active { color: #fff; background: var(--accent); }
.qr-panels { margin-bottom: 6px; }
.qr-panel { display: none; }
.qr-panel.is-active { display: block; }

.tool-detail-block {
  margin-top: 28px; padding: 34px; border: 1px solid var(--line);
  border-radius: 24px; background: var(--surface);
}
.tool-detail-block h2 { margin: 9px 0 16px; font-size: 1.55rem; }
.tool-feature-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tool-feature-list li {
  position: relative; padding-left: 22px; color: var(--ink-soft); line-height: 1.55;
}
.tool-feature-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800;
}
.tool-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tool-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.tool-steps li span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(176,22,32,.1); color: var(--accent); font-weight: 800; font-size: .88rem;
}
.tool-steps li p { margin: 6px 0 0; color: var(--ink-soft); line-height: 1.55; }
.tool-use-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tool-use-grid div {
  padding: 14px 16px; border-radius: 14px; background: #f7f4f0;
  color: var(--ink-2); font-size: .88rem; font-weight: 600;
}
.tool-faq-list { display: grid; gap: 10px; }
.tool-faq-item {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fbfaf8;
}
.tool-faq-item summary {
  padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: .92rem; list-style: none;
}
.tool-faq-item summary::-webkit-details-marker { display: none; }
.tool-faq-item p { margin: 0; padding: 0 16px 14px; color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }

/* AdSense slots */
.drh-ad {
  margin: 24px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #faf9f7;
  overflow: hidden;
}
.drh-ad-label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}
.drh-ad--tools_list_mid {
  max-width: 970px;
  margin-left: auto;
  margin-right: auto;
}
.drh-ad--tools_detail_top {
  margin-bottom: 20px;
}
.drh-ad--tools_detail_sidebar {
  margin: 14px 0 0;
}
.drh-ad-placeholder {
  display: grid;
  place-items: center;
  min-height: 90px;
  padding: 20px;
  border: 1px dashed rgba(176,22,32,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  text-align: center;
}
.drh-ad-placeholder p {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: .88rem;
  font-weight: 600;
}
.drh-ad-placeholder small {
  color: var(--ink-soft);
  font-size: .74rem;
  line-height: 1.45;
}
.drh-ad-placeholder a { color: var(--accent); font-weight: 600; }
.drh-ad.is-placeholder .drh-ad-label { color: #999; }
.drh-ad ins.adsbygoogle { display: block; min-height: 90px; }

.tool-upload {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 30px;
  border: 2px dashed rgba(176,22,32,.25);
  border-radius: 20px;
  text-align: center;
  background: rgba(176,22,32,.025);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.tool-upload:hover,
.tool-upload.is-dragging { border-color: var(--accent); background: rgba(176,22,32,.06); }
.tool-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tool-upload-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%; color: #fff; background: var(--accent); font-size: 1.5rem; }
.tool-upload strong { font: 800 1.05rem var(--font-display); }
.tool-upload small { margin-top: 6px; color: var(--ink-soft); }
.selected-files { display: grid; gap: 6px; margin: 14px 0; color: var(--ink-soft); font-size: .82rem; }
.file-result { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.file-result .tool-btn { width: 100%; }
.tool-note { margin: 15px 0; padding: 13px 15px; border-radius: 12px; color: #765e27; background: #fff7df; font-size: .8rem; line-height: 1.55; }
.tool-progress { height: 8px; margin: 18px 0; overflow: hidden; border-radius: 999px; background: #ebe7e0; }
.tool-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .2s; }

.tool-article {
  margin-top: 28px;
  padding: 34px clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.tool-article-head h2 {
  margin: 9px 0 14px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.tool-article-intro {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}
.tool-article-body {
  display: grid;
  gap: 28px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(20, 20, 28, 0.07);
}
.tool-article-section h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.tool-article-section p {
  margin: 0 0 12px;
  max-width: 66ch;
  color: var(--ink-2);
  font-size: .98rem;
  line-height: 1.75;
}
.tool-article-section p:last-child { margin-bottom: 0; }
.tool-article-section ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.tool-article-section li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.55;
}
.tool-article-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
}

.tool-about { margin-top: 28px; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.tool-about h2 { margin: 9px 0 13px; font-size: 1.65rem; }
.tool-about > p { color: var(--ink-soft); }
.tool-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.tool-benefits div { display: grid; gap: 5px; padding: 16px; border-radius: 14px; background: #f7f4f0; }
.tool-benefits strong { font-size: .85rem; }
.tool-benefits span { color: var(--ink-soft); font-size: .75rem; }

.tool-aside {
  display: grid;
  gap: 14px;
  align-self: start;
}
.tool-aside-shell {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(20, 20, 28, 0.07);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 40px -32px rgba(22, 22, 31, 0.28);
  overflow: hidden;
}
@media (min-width: 1001px) {
  .tool-aside {
    position: sticky;
    top: 92px;
  }
  .tool-aside-shell {
    height: calc(100dvh - 112px);
  }
}
.tool-aside-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tool-aside-head {
  flex: 0 0 auto;
  padding: 18px 18px 14px;
}
.tool-aside-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.tool-aside-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tool-aside-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.tool-aside-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(20, 20, 28, 0.05);
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 700;
}
.tool-aside-head h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.tool-aside-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 10px;
}
.tool-aside-link {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  gap: 11px;
  min-height: 64px;
  padding: 14px 8px;
  border-top: 1px solid rgba(20, 20, 28, 0.06);
  overflow: hidden;
  transition: background .3s var(--tool-ease);
}
.tool-aside-link:hover { background: rgba(20, 20, 28, 0.025); }
.tal-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(20, 20, 28, 0.04);
  font: 700 .92rem var(--font-display);
  line-height: 1;
  transition: background .3s var(--tool-ease), transform .3s var(--tool-ease);
}
.tool-aside-link[data-tool-cat="text"] .tal-icon { background: rgba(88, 120, 255, 0.1); }
.tool-aside-link[data-tool-cat="calculators"] .tal-icon { background: rgba(52, 176, 255, 0.1); }
.tool-aside-link[data-tool-cat="developer"] .tal-icon { background: rgba(108, 132, 255, 0.1); }
.tool-aside-link[data-tool-cat="security"] .tal-icon { background: rgba(255, 96, 120, 0.1); }
.tool-aside-link[data-tool-cat="image"] .tal-icon { background: rgba(255, 138, 96, 0.1); }
.tool-aside-link[data-tool-cat="pdf"] .tal-icon { background: rgba(168, 120, 255, 0.1); }
.tool-aside-link:hover .tal-icon { transform: scale(1.04); }
.tal-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}
.tal-copy strong {
  font-size: .86rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .3s var(--tool-ease);
}
.tal-copy small {
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-aside-link:hover .tal-copy strong { color: var(--accent); }
.tal-go {
  color: rgba(20, 20, 28, 0.28);
  font-size: .95rem;
  font-weight: 600;
  transition: color .3s var(--tool-ease), transform .3s var(--tool-ease);
}
.tool-aside-link:hover .tal-go {
  color: var(--accent);
  transform: translateX(3px);
}
.tool-aside-trust {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin: 0 18px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(20, 20, 28, 0.06);
}
.tool-aside-trust-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #2a9a6a;
  background: rgba(42, 154, 106, 0.1);
}
.tool-aside-trust-icon svg { width: 15px; height: 15px; }
.tool-aside-trust-copy strong {
  display: block;
  font-size: .8rem;
  line-height: 1.3;
  color: var(--ink);
}
.tool-aside-trust-copy p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.tool-aside-foot {
  flex: 0 0 auto;
  padding: 10px 18px 14px;
}
.tool-aside-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  transition: opacity .3s var(--tool-ease);
}
.tool-aside-all span {
  transition: transform .3s var(--tool-ease);
}
.tool-aside-all:hover { opacity: .82; }
.tool-aside-all:hover span { transform: translateX(3px); }
.tool-aside-cta {
  position: relative;
  flex: 0 0 auto;
  border-radius: 0;
  color: #fff;
  background: linear-gradient(155deg, #1a1f2e 0%, #101018 52%, #17121c 100%);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
}
.tool-aside-cta-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(176, 22, 32, 0.34), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(100, 80, 200, 0.1), transparent 50%);
  pointer-events: none;
}
.tool-aside-cta-shine {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  pointer-events: none;
}
.tool-aside-cta-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 18px 16px 16px;
}
.tool-aside-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.tool-aside-cta-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #46e06a;
  box-shadow: 0 0 0 0 rgba(70, 224, 106, 0.55);
  animation: toolAsidePulse 2s infinite;
}
@keyframes toolAsidePulse {
  0% { box-shadow: 0 0 0 0 rgba(70, 224, 106, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(70, 224, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 224, 106, 0); }
}
.tool-aside-cta h3 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.tool-aside-cta h3 .serif { font-style: italic; color: #ff8a8a; }
.tool-aside-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: .78rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.tool-aside-cta-action {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition:
    background .4s var(--tool-ease),
    border-color .4s var(--tool-ease),
    transform .4s var(--tool-ease),
    box-shadow .4s var(--tool-ease);
}
.tool-aside-cta-action:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 138, 138, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(176, 22, 32, 0.45);
  color: #fff;
}
.tool-aside-cta-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(176, 22, 32, 0.5), rgba(176, 22, 32, 0.22));
  border: 1px solid rgba(255, 138, 138, 0.22);
  color: #ff9a9a;
}
.tool-aside-cta-ico svg { width: 17px; height: 17px; }
.tool-aside-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.tool-aside-cta-text small {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}
.tool-aside-cta-text strong {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
}
.tool-aside-cta-arrow {
  flex-shrink: 0;
  font-size: 1.12rem;
  color: rgba(255, 138, 138, 0.92);
  transition: transform .4s var(--tool-ease);
}
.tool-aside-cta-action:hover .tool-aside-cta-arrow { transform: translateX(4px); }
.tool-aside .drh-ad {
  margin: 0;
  padding: 12px;
}

@media (max-width: 1000px) {
  .tools-card-grid,
  .tools-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-trust-grid { grid-template-columns: 1fr; }
  .tool-detail-grid { grid-template-columns: 1fr; }
  .tool-aside { position: static; }
  .tool-aside-shell { height: auto; }
  .tool-aside-nav { flex: none; }
  .tool-aside-link { flex: none; }
}
@media (max-width: 700px) {
  .tools-hero { padding-top: 118px; }
  .tools-card-grid,
  .tools-featured-grid { grid-template-columns: 1fr; }
  .tool-category-head { align-items: start; }
  .tool-detail-hero { padding-top: 120px; }
  .tool-title-row { align-items: flex-start; }
  .tool-title-row .tool-title-icon { flex-basis: 58px; width: 58px; height: 58px; }
  .tool-form-grid,
  .tool-check-grid,
  .tool-benefits,
  .tool-use-grid,
  .tool-aside { gap: 12px; }
  .tool-benefits { grid-template-columns: 1fr; }
  .tool-inline-fields { grid-template-columns: 1fr; }
  .tool-inline-fields span { text-align: center; }
  .converter-grid { grid-template-columns: 1fr; }
  .swap-btn { justify-self: center; transform: rotate(90deg); }
}
@media (max-width: 460px) {
  .tool-workspace-body { padding: 19px; }
  .tool-stats,
  .tool-stats-3 { grid-template-columns: repeat(2, 1fr); }
  .tool-card { grid-template-columns: 48px 1fr auto; padding: 19px; }
  .tool-card-icon { width: 48px; height: 48px; }
  .tools-privacy-inner { align-items: flex-start; padding: 25px; }
  .color-picker-row { grid-template-columns: 80px 1fr; }
  .color-picker-row input[type="color"] { width: 80px; }
}
