:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f2f5fb;
  --text: #172033;
  --muted: #687386;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #e2e8f0;
  --success: #16a34a;
  --radius: 20px;
  --shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1180px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

/* Layout */

.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

.hero {
  padding: 88px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 22px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #f3f7ff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 850px;
  margin: 0 auto 22px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -3px;
}

.hero p {
  max-width: 720px;
  margin: auto;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 750;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: #b9c5d6;
}

/* Sections */

.section {
  padding: 64px 0;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading.center {
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -1.5px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

/* Tool cards */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
  transition: 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: #cbd8ed;
  box-shadow: var(--shadow);
}

.tool-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  background: #edf4ff;
  font-size: 22px;
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.tool-card p {
  margin: 0 0 20px;
  color: var(--muted);
  flex: 1;
}

.tool-link {
  color: var(--primary);
  font-weight: 750;
}

/* Tool page */

.tool-page {
  padding: 55px 0 80px;
}

.breadcrumb {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.tool-title {
  max-width: 760px;
  margin-bottom: 30px;
}

.tool-title h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -2px;
}

.tool-title p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.tool-box {
  max-width: 850px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.input,
textarea,
select {
  width: 100%;
  padding: 14px 15px;
  background: white;
  color: var(--text);
  border: 1px solid #cfd8e5;
  border-radius: 12px;
  outline: none;
  transition: 0.2s;
}

.input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

textarea {
  min-height: 190px;
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.result {
  margin-top: 22px;
  padding: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.result strong {
  font-size: 24px;
}

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

.stat {
  padding: 18px;
  text-align: center;
  background: var(--surface-soft);
  border-radius: 14px;
}

.stat-value {
  display: block;
  font-size: 25px;
  font-weight: 850;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

/* Features */

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

.feature {
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.feature h3 {
  margin: 0 0 7px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* Content / SEO */

.content-card {
  max-width: 850px;
  margin-top: 35px;
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.content-card h2,
.content-card h3 {
  line-height: 1.25;
}

.content-card p {
  color: #536074;
}

/* Footer */

footer {
  margin-top: 70px;
  padding: 45px 0;
  background: #101827;
  color: white;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand strong {
  font-size: 23px;
}

.footer-brand p {
  color: #aeb8c8;
}

.utivaro-privacy-controls { width:min(1180px,calc(100% - 40px)); margin:16px auto; }
.utivaro-privacy-controls .utivaro-privacy-button { background:transparent; border:1px solid currentColor; border-radius:8px; padding:10px 14px; color:inherit; font:inherit; cursor:pointer; min-height:44px; }
.utivaro-privacy-button:focus-visible { outline:3px solid #2563eb; outline-offset:3px; }
#utivaro-privacy-status { font-size:14px; line-height:1.5; max-width:70ch; }
#utivaro-privacy-status:empty { display:none; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #c5cddd;
}

.copyright {
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid #263246;
  color: #8995a7;
  font-size: 14px;
}

/* Mobile */

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

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 65px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    padding: 14px 16px;
  }

  .logo {
    font-size: 24px;
  }

  .hero {
    padding: 55px 0 35px;
  }

  .hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }

  .hero p {
    font-size: 17px;
  }

  .tools-grid,
  .features,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: auto;
  }

  .tool-box {
    padding: 20px;
    border-radius: 18px;
  }

  .section {
    padding: 45px 0;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: auto;
  }
  }
/* ========================================
   UTIVARO - UNIT CONVERTER UI
   ======================================== */

.converter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  margin-top: 28px;
}

.converter-card label {
  display: block;
  margin: 22px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #172033;
}

.converter-card input,
.converter-card select {
  width: 100%;
  height: 62px;
  padding: 0 18px;
  border: 1px solid #d5dce8;
  border-radius: 16px;
  background: #ffffff;
  color: #172033;
  font-size: 18px;
  outline: none;
  transition: border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.converter-card input:focus,
.converter-card select:focus {
  border-color: #2f6fed;
  box-shadow: 0 0 0 5px rgba(47, 111, 237, 0.10);
}

.converter-card select {
  cursor: pointer;
}

.converter-card button {
  width: 100%;
  min-height: 58px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease,
              box-shadow 0.15s ease;
}

.converter-card button:active {
  transform: scale(0.99);
}

/* Swap button */
#swapBtn,
.swap-btn {
  margin-top: 22px;
  background: #ffffff;
  color: #172033;
  border: 1px solid #d5dce8;
}

#swapBtn:hover,
.swap-btn:hover {
  background: #f8fafc;
}

/* Convert button */
#convertBtn,
.convert-btn {
  margin-top: 14px;
  background: #2f6fed;
  color: #ffffff;
  border: 0;
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.20);
}

#convertBtn:hover,
.convert-btn:hover {
  background: #255fd1;
}

/* Conversion result */
#result,
.converter-result,
.result-box {
  margin-top: 24px;
  padding: 28px 24px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #f1f5ff;
  border: 1px solid #dde6f7;
  border-radius: 20px;

  color: #172033;
  font-size: 30px;
  font-weight: 800;
  text-align: center;

  overflow-wrap: anywhere;
}

/* Better select arrow spacing */
.converter-card select {
  padding-right: 48px;
}

/* Mobile optimization */
@media (max-width: 640px) {

  .converter-card {
    padding: 24px 20px;
    border-radius: 24px;
    margin-top: 22px;
  }

  .converter-card label {
    margin-top: 20px;
    font-size: 17px;
  }

  .converter-card input,
  .converter-card select {
    height: 58px;
    font-size: 17px;
    border-radius: 15px;
  }

  .converter-card button {
    min-height: 58px;
    font-size: 18px;
    border-radius: 15px;
  }

  #result,
  .converter-result,
  .result-box {
    min-height: 100px;
    padding: 24px 18px;
    font-size: 26px;
    border-radius: 18px;
  }
}
/* ========================================
   UNIT CONVERTER - FINAL UI FIX
   ======================================== */

.tool-page .tool-hero {
  max-width: 1180px;
  width: calc(100% - 40px);
  margin: 0 auto 28px;
}

.tool-page .tool-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 54px);
  line-height: 1.1;
  letter-spacing: -2px;
}

.tool-page .tool-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.tool-page .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.tool-page > .tool-card {
  max-width: 850px;
  margin: 0 auto 28px;
  padding: 30px;
  min-height: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  color: #172033;
  font-size: 17px;
  font-weight: 750;
}

.field-group input,
.field-group select {
  display: block;
  width: 100%;
  height: 62px;
  padding: 0 18px;
  border: 1px solid #cfd8e5;
  border-radius: 16px;
  background: #ffffff;
  color: #172033;
  font-size: 18px;
  outline: none;
}

.field-group input:focus,
.field-group select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.secondary-btn,
.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 12px 20px;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.secondary-btn {
  margin-top: 8px;
  border: 1px solid #d5dce8;
  background: #ffffff;
  color: #172033;
}

.secondary-btn:hover {
  background: #f8fafc;
}

.primary-btn {
  margin-top: 12px;
  border: 0;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.20);
}

.primary-btn:hover {
  background: #1d4ed8;
}

.result-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #dce5f4;
  border-radius: 20px;
  background: #f1f5ff;
  color: #172033;
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
}

.site-footer {
  margin-top: 60px;
  padding: 35px 20px;
  background: #101827;
  color: #c5cddd;
  text-align: center;
}

@media (max-width: 640px) {

  .tool-page {
    padding-top: 38px;
  }

  .tool-page .tool-hero {
    width: calc(100% - 28px);
    margin-bottom: 22px;
  }

  .tool-page .tool-hero h1 {
    font-size: 38px;
    letter-spacing: -1.5px;
  }

  .tool-page > .tool-card {
    width: calc(100% - 24px);
    padding: 22px 18px;
    border-radius: 22px;
  }

  .field-group input,
  .field-group select {
    height: 58px;
    font-size: 17px;
  }

  .secondary-btn,
  .primary-btn {
    min-height: 58px;
  }

  .result-box {
    min-height: 105px;
  }
}

/* ========================================
   UTIVARO BATCH TOOLS + HOMEPAGE V2
   ======================================== */
.hero-search { max-width: 700px; margin: 30px auto 0; }
.hero-search .input { min-height: 60px; font-size: 17px; border-radius: 16px; }
.section-soft { background: #f1f5fb; }
.tool-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.tool-badge { display:inline-flex; padding:5px 9px; border-radius:999px; background:#ecfdf3; color:#15803d; font-size:12px; font-weight:800; }
.no-tools { margin-top:30px; color:var(--muted); text-align:center; }
.category-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.category-card { padding:26px; background:#fff; border:1px solid var(--border); border-radius:20px; transition:.2s ease; }
.category-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.category-card > span { font-size:30px; }
.category-card h3 { margin:12px 0 6px; font-size:20px; }
.category-card p { margin:0 0 12px; color:var(--muted); }
.category-card strong { color:var(--primary); font-size:14px; }
.home-content { margin-left:auto; margin-right:auto; }
.notice { margin-top:20px; padding:14px 16px; border:1px solid #dbe7ff; border-radius:12px; background:#f3f7ff; color:#42526b; }
.notice.success { border-color:#bbf7d0; background:#f0fdf4; color:#166534; }
.notice.error { border-color:#fecaca; background:#fef2f2; color:#991b1b; }
.small { color:var(--muted); font-size:13px; }
.two-col { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.three-col { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.option-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:14px 0; }
.checkbox-row { display:flex; align-items:center; gap:10px; min-height:46px; padding:10px 12px; background:var(--surface-soft); border:1px solid var(--border); border-radius:12px; }
.checkbox-row input { width:18px; height:18px; accent-color:var(--primary); }
.checkbox-row label { margin:0; font-weight:650; }
.mono { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace; }
.tool-output { width:100%; min-height:135px; padding:16px; border:1px solid #cfd8e5; border-radius:14px; background:#f8fafc; color:var(--text); overflow-wrap:anywhere; white-space:pre-wrap; }
.output-large { font-size:20px; font-weight:750; }
.result-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; }
.result-item { padding:16px; background:var(--surface-soft); border:1px solid var(--border); border-radius:14px; }
.result-item span { display:block; color:var(--muted); font-size:13px; }
.result-item strong { display:block; margin-top:3px; font-size:21px; }
.range-line { display:flex; align-items:center; gap:14px; }
.range-line input[type="range"] { flex:1; accent-color:var(--primary); }
.range-value { min-width:54px; text-align:center; font-weight:800; }
.preview-stage { margin-top:18px; padding:14px; min-height:160px; display:grid; place-items:center; border:1px dashed #cbd5e1; border-radius:16px; background:#f8fafc; overflow:hidden; }
.preview-stage img, .preview-stage canvas { display:block; max-width:100%; max-height:460px; border-radius:12px; }
.copy-row { display:flex; gap:10px; align-items:stretch; }
.copy-row .tool-output { flex:1; min-width:0; min-height:56px; }
.copy-row .btn { flex:0 0 auto; }
.status { margin-top:14px; font-size:14px; font-weight:650; color:var(--muted); }
.status.success { color:#15803d; }
.status.error { color:#b91c1c; }
.color-swatch { width:100%; min-height:112px; border-radius:16px; border:1px solid var(--border); background:#2563eb; }
.color-value-row { display:grid; grid-template-columns:110px 1fr auto; gap:10px; align-items:center; margin-top:10px; }
.color-value-row label { font-weight:800; }
.preset-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.preset-btn { padding:8px 12px; border:1px solid var(--border); border-radius:999px; background:#fff; color:var(--text); font-weight:700; }
.preset-btn:hover { border-color:#aab8cc; }
.password-display { font-size:19px; letter-spacing:.2px; word-break:break-all; }
.strength-bar { height:9px; margin-top:10px; border-radius:999px; background:#e2e8f0; overflow:hidden; }
.strength-fill { height:100%; width:0; background:#2563eb; transition:.2s; }
.canvas-note { margin-top:8px; color:var(--muted); font-size:13px; }
.site-footer { margin-top:60px; padding:38px 0; background:#101827; color:#c5cddd; }
.site-footer .footer-content { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.site-footer .footer-links { display:flex; gap:18px; flex-wrap:wrap; }
.site-footer .footer-bottom { width:100%; padding-top:20px; margin-top:10px; border-top:1px solid #263246; color:#8995a7; font-size:14px; }
@media (max-width:850px) { .category-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px) {
  .category-grid,.two-col,.three-col,.option-grid,.result-grid { grid-template-columns:1fr; }
  .copy-row { flex-direction:column; }
  .copy-row .btn { width:100%; }
  .color-value-row { grid-template-columns:1fr; }
  .color-value-row .btn { width:100%; }
  .preset-btn { flex:1 1 72px; }
}

/* ===== Utivaro Navigation Redesign V2 ===== */
.home-v2 { padding-bottom: 0; }
.home-hero { padding: 58px 0 34px; background: linear-gradient(180deg,#f4f8ff 0%,#f7f9fc 100%); border-bottom:1px solid var(--border); }
.home-hero-inner { display:grid; grid-template-columns:1.35fr .65fr; align-items:center; gap:52px; }
.hero-copy h1 { margin:0 0 18px; font-size:clamp(42px,6vw,68px); line-height:1.03; letter-spacing:-2.5px; }
.hero-copy > p { margin:0; color:var(--muted); font-size:18px; max-width:700px; }
.home-search-wrap { margin-top:28px; max-width:760px; display:flex; align-items:center; gap:10px; padding:7px 7px 7px 18px; background:#fff; border:1px solid #d7e0ed; border-radius:15px; box-shadow:0 8px 28px rgba(37,99,235,.08); }
.home-search-wrap > span { color:#64748b; font-size:24px; line-height:1; }
.home-search-wrap input { width:100%; border:0; outline:0; background:transparent; padding:11px 2px; color:var(--text); }
.search-jump { flex:0 0 auto; padding:11px 18px; border-radius:10px; background:var(--primary); color:#fff; font-weight:800; }
.trust-row { display:flex; flex-wrap:wrap; gap:10px 24px; margin-top:18px; color:#41506a; font-size:13px; font-weight:700; }
.hero-visual { min-height:250px; position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; border:1px solid #dbe7ff; border-radius:30px; background:linear-gradient(145deg,#fff,#edf4ff); box-shadow:var(--shadow); transform:rotate(1deg); }
.hero-visual strong { margin-top:18px; color:#3b82f6; font-size:20px; text-align:center; transform:rotate(-1deg); }
.mini-tool-grid { display:grid; grid-template-columns:repeat(3,64px); gap:12px; padding:18px; background:#172033; border-radius:18px; box-shadow:0 16px 30px rgba(15,23,42,.18); }
.mini-tool-grid span { width:64px; height:64px; display:grid; place-items:center; background:#fff; border-radius:14px; font-size:28px; }
.compact-section { padding:42px 0; }
.compact-section + .compact-section { padding-top:16px; }
.compact-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.compact-heading h2 { margin:0; font-size:26px; letter-spacing:-.6px; }
.compact-heading a, .compact-heading span { color:var(--primary); font-size:14px; font-weight:800; }
.popular-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.popular-card { display:flex; align-items:center; gap:13px; min-height:100px; padding:18px; background:#fff; border:1px solid var(--border); border-radius:16px; box-shadow:0 2px 10px rgba(15,23,42,.035); transition:.2s ease; }
.popular-card:hover { transform:translateY(-2px); box-shadow:var(--shadow); border-color:#cbd8ed; }
.popular-card > span { flex:0 0 48px; width:48px; height:48px; display:grid; place-items:center; border-radius:13px; background:#edf4ff; font-size:23px; }
.popular-card strong { display:block; font-size:15px; line-height:1.25; }
.popular-card small { display:block; margin-top:4px; color:var(--muted); line-height:1.3; }
.category-list-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.category-panel { padding:20px; background:#fff; border:1px solid var(--border); border-radius:18px; box-shadow:0 2px 10px rgba(15,23,42,.035); }
.category-title { display:flex; align-items:center; gap:12px; padding-bottom:14px; border-bottom:1px solid #edf1f6; }
.category-icon { width:44px; height:44px; display:grid; place-items:center; background:#eef4ff; border-radius:12px; font-size:21px; }
.category-title h3 { margin:0; font-size:18px; }
.category-title small { color:var(--muted); }
.category-links { display:grid; margin-top:9px; }
.category-links a, .coming-soon { padding:7px 4px; color:#41506a; font-size:14px; border-bottom:1px solid #f2f4f8; }
.category-links a:last-child, .coming-soon:last-child { border-bottom:0; }
.category-links a:hover { color:var(--primary); transform:translateX(2px); }
.coming-soon { color:#94a3b8; font-style:italic; }
.search-results-section { background:#f3f6fb; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.compact-tools-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.compact-tool { min-height:62px; display:flex; align-items:center; gap:10px; padding:12px 14px; background:#fff; border:1px solid var(--border); border-radius:13px; font-size:14px; transition:.18s ease; }
.compact-tool:hover { border-color:#b9c9df; transform:translateY(-1px); }
.compact-tool span { width:34px; height:34px; display:grid; place-items:center; background:#edf4ff; border-radius:9px; font-size:16px; }
.compact-tool strong { line-height:1.2; }
.more-tools-strip { padding:28px 0 45px; }
.more-tools-strip .container { display:flex; align-items:center; justify-content:space-between; gap:22px; padding:22px 24px; background:#edf3ff; border:1px solid #dce8ff; border-radius:18px; }
.more-tools-strip strong { font-size:18px; }
.more-tools-strip p { margin:3px 0 0; color:var(--muted); }

/* Shared navigation on tool pages, injected by script.js */
.tool-quick-nav { max-width:1180px; width:min(1180px,calc(100% - 40px)); margin:0 auto 24px; display:flex; gap:8px; overflow-x:auto; padding:2px 0 6px; scrollbar-width:none; }
.tool-quick-nav::-webkit-scrollbar { display:none; }
.tool-quick-nav a { flex:0 0 auto; padding:8px 12px; border-radius:999px; border:1px solid var(--border); background:#fff; color:#536078; font-size:13px; font-weight:750; }
.tool-quick-nav a:hover { color:var(--primary); border-color:#bfd0eb; }
.related-tools-v2 { width:min(850px,calc(100% - 40px)); margin:22px auto 60px; padding:20px; border:1px solid var(--border); background:#fff; border-radius:18px; box-shadow:0 5px 18px rgba(15,23,42,.04); }
.related-tools-head { display:flex; justify-content:space-between; gap:15px; align-items:center; margin-bottom:13px; }
.related-tools-head h2 { margin:0; font-size:20px; }
.related-tools-head a { color:var(--primary); font-size:13px; font-weight:800; }
.related-tools-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; }
.related-tool-link { padding:11px 10px; border:1px solid #e5eaf1; border-radius:12px; text-align:center; font-size:12px; font-weight:750; line-height:1.25; }
.related-tool-link span { display:block; margin-bottom:5px; font-size:19px; }
.related-tool-link:hover { border-color:#bfcde2; color:var(--primary); }
.mobile-tool-nav { display:none; }

@media (max-width: 860px) {
  .home-v2 { padding-bottom:70px; }
  .home-hero { padding:32px 0 24px; }
  .home-hero-inner { grid-template-columns:1fr; gap:20px; }
  .hero-copy { text-align:center; }
  .hero-copy h1 { font-size:36px; letter-spacing:-1.7px; }
  .hero-copy > p { font-size:15px; }
  .hero-visual { display:none; }
  .home-search-wrap { margin-top:20px; padding-left:13px; }
  .search-jump { padding:10px 13px; }
  .trust-row { justify-content:center; gap:8px 14px; font-size:11px; }
  .compact-section { padding:28px 0; }
  .compact-section + .compact-section { padding-top:6px; }
  .compact-heading h2 { font-size:20px; }
  .popular-grid { grid-template-columns:repeat(2,1fr); gap:9px; }
  .popular-card { display:block; min-height:122px; padding:13px; text-align:center; }
  .popular-card > span { margin:0 auto 9px; width:42px; height:42px; }
  .popular-card small { font-size:11px; }
  .category-list-grid { grid-template-columns:1fr; gap:9px; }
  .category-panel { padding:14px 15px; }
  .category-title { border:0; padding:0; }
  .category-links { display:flex; gap:7px; overflow-x:auto; margin:10px 0 0 55px; padding-bottom:8px; scrollbar-width:thin; scrollbar-color:#94a3b8 #e2e8f0; }
  .category-links a, .coming-soon { flex:0 0 auto; border:1px solid #e4e9f0; border-radius:9px; padding:6px 9px; font-size:12px; background:#fafcff; }
  .compact-tools-grid { grid-template-columns:repeat(2,1fr); gap:8px; }
  .compact-tool { min-height:58px; padding:10px; font-size:12px; }
  .compact-tool span { width:30px; height:30px; flex:0 0 30px; }
  .more-tools-strip .container { display:block; text-align:center; }
  .more-tools-strip .btn { margin-top:14px; width:100%; }
  .tool-quick-nav { width:calc(100% - 24px); margin:12px auto 14px; }
  .related-tools-v2 { width:calc(100% - 24px); margin:16px auto 88px; padding:15px; }
  .related-tools-grid { grid-template-columns:repeat(2,1fr); }
  .mobile-tool-nav { position:fixed; z-index:999; left:10px; right:10px; bottom:9px; display:grid; grid-template-columns:repeat(4,1fr); padding:7px 5px calc(7px + env(safe-area-inset-bottom)); background:rgba(255,255,255,.96); border:1px solid #dbe3ef; border-radius:18px; box-shadow:0 10px 35px rgba(15,23,42,.18); backdrop-filter:blur(12px); }
  .mobile-tool-nav a { min-height:44px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:#526079; font-size:11px; font-weight:800; line-height:1.15; }
  .mobile-tool-nav a span { display:block; margin-bottom:3px; font-size:17px; }
  .mobile-tool-nav a.active { color:var(--primary); }
}

/* Keep controls, previews, downloads and search results hidden until ready. */
[hidden]:not([hidden="until-found"]) { display: none !important; }
.utivaro-link-feedback { display:inline-block; margin-left:10px; overflow-wrap:anywhere; font-size:14px; }

/* 2026-10-16.2: skip link, visible focus, reduced motion, and room for the mobile bottom bar. */
.skip-link { position:absolute; left:12px; top:-80px; z-index:1001; padding:10px 14px; background:#fff; color:var(--primary); border:2px solid var(--primary); border-radius:10px; font-weight:800; }
.skip-link:focus { top:12px; }
html[dir="rtl"] .skip-link { left:auto; right:12px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } }
@media (max-width: 860px) {
  html { scroll-padding-bottom:100px; }
  body.has-mobile-nav { padding-bottom:calc(84px + env(safe-area-inset-bottom)); }
  body.has-mobile-nav .home-v2 { padding-bottom:0; }
}
