:root{
  --bg:#0b1220;
  --panel:#121b2d;
  --panel-2:#16233a;
  --text:#eef4ff;
  --muted:#9db0d0;
  --line:rgba(255,255,255,.08);
  --accent:#6ea8fe;
  --accent-2:#8b5cf6;
  --good:#34d399;
  --bad:#f87171;
  --radius:18px;
  --shadow:0 18px 40px rgba(0,0,0,.28);
}

:root{
  --bg:#0b1220;
  --panel:rgba(255,255,255,.06);
  --panel-2:rgba(255,255,255,.03);
  --line:rgba(255,255,255,.10);
  --text:#eef4ff;
  --muted:#9db0d0;
  --accent:#6ea8fe;
  --accent-2:#8b5cf6;
  --shadow:0 12px 30px rgba(0,0,0,.22);
}

:root[data-theme="light"]{
  --bg:#f5f7fb;
  --panel:rgba(255,255,255,.9);
  --panel-2:rgba(255,255,255,.75);
  --line:rgba(15,23,42,.10);
  --text:#0f172a;
  --muted:#64748b;
  --accent:#4f8cff;
  --accent-2:#7c4dff;
  --shadow:0 12px 30px rgba(15,23,42,.08);
}

html, body{
  background:var(--bg);
  color:var(--text);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:linear-gradient(180deg,#08111d 0%,#0b1220 100%);
  color:var(--text);
  min-height:100vh;
}

a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}

.wrap{width:min(1100px,92vw);margin:0 auto}
.site-header{padding:28px 0 10px}
.back-link{color:var(--muted)}
.muted{color:var(--muted)}

.card{
  background:linear-gradient(180deg,var(--panel) 0%, var(--panel-2) 100%);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero,.tool-shell,.faq-block,.related-block{padding:24px}
.loading{padding:24px;margin-top:16px}

.tool-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-top:18px;
}

.tool-card{
  display:block;
  padding:18px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}

.tool-layout{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:20px;
  margin-top:16px;
}

@media (max-width: 860px){
  .tool-layout{grid-template-columns:1fr}
}

.panel{
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.03);
}

label{
  display:block;
  font-weight:600;
  margin-bottom:8px;
}

input,textarea,select{
  width:100%;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:var(--text);
  border-radius:12px;
  padding:12px 14px;
  outline:none;
}

textarea{
  min-height:180px;
  resize:vertical;
}

.field{margin-bottom:14px}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.btn{
  border:0;
  border-radius:12px;
  padding:12px 16px;
  cursor:pointer;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:white;
  font-weight:700;
}

.btn.secondary{
  background:rgba(255,255,255,.08);
  border:1px solid var(--line);
}

.result-box{
  min-height:180px;
  white-space:pre-wrap;
  word-break:break-word;
}

.result-value{
  font-size:2rem;
  font-weight:800;
}

.help-text{
  margin-top:14px;
  color:var(--muted);
  font-size:.95rem;
}

.faq-item{
  padding:14px 0;
  border-top:1px solid var(--line);
}

.faq-item:first-child{
  border-top:0;
}

.related-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
}

.kicker{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(110,168,254,.12);
  color:#b7d2ff;
  border:1px solid rgba(110,168,254,.2);
  font-size:.85rem;
  margin-bottom:10px;
}

.tool-title{
  font-size:28px;
  font-weight:700;
  letter-spacing:-0.4px;
}

.tool-intro{
  opacity:.75;
  margin-top:6px;
}

.kicker{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:1px;
  opacity:.6;
}
code{
  background:rgba(255,255,255,.08);
  padding:2px 6px;
  border-radius:6px;
}

.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.topnav{
  display:flex;
  gap:10px;
  align-items:center;
}

.nav-link{
  color:var(--muted);
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.03);
}

.hero-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
}

.hero-actions{
  min-width:min(320px,100%);
  flex:1 1 320px;
  max-width:420px;
}

.search-input{
  width:100%;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:var(--text);
  border-radius:12px;
  padding:12px 14px;
}

.filter-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.filter-chip{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
}

.filter-chip.active{
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  border-color:transparent;
  color:#fff;
}

.registry-sections{
  display:grid;
  gap:18px;
  margin-top:18px;
  padding-bottom:40px;
}

.registry-block{
  padding:24px;
}

.registry-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}

.count-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:36px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:var(--muted);
  font-weight:700;
}

.card-chip{
  display:inline-block;
  margin-bottom:10px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:var(--muted);
  font-size:.8rem;
}

.empty-block{
  padding:24px;
}

@media (max-width: 720px){
  .topbar{
    flex-direction:column;
  }
}

.summary-row{
  margin: 4px 0 2px;
}

.results-summary{
  margin: 0;
  font-size: .98rem;
}

.clear-chip{
  background:rgba(248,113,113,.12);
  border:1px solid rgba(248,113,113,.24);
  color:#fecaca;
}

.clear-chip:hover{
  background:rgba(248,113,113,.18);
}

.active-pills-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:8px 0 16px;
}

.active-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}

.active-pill:hover{
  background:rgba(255,255,255,.1);
}

.active-pill-label{
  line-height:1;
}

.active-pill-x{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:var(--muted);
  font-weight:700;
  line-height:1;
}

.filter-count{
  opacity:.8;
  font-weight:600;
}

.toolbar-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-top:18px;
  flex-wrap:wrap;
}

.sort-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
}

.sort-label{
  margin:0;
  font-weight:600;
  color:var(--muted);
}

.sort-select{
  min-width:160px;
  width:auto;
}

.card-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.new-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(52,211,153,.14);
  border:1px solid rgba(52,211,153,.28);
  color:#a7f3d0;
  font-size:.78rem;
  font-weight:700;
  white-space:nowrap;
}

.toast-host{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  display:flex;
  flex-direction:column;
  gap:10px;
  pointer-events:none;
}

.toast{
  min-width:220px;
  max-width:320px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(18,27,45,.96);
  color:var(--text);
  box-shadow:var(--shadow);
  opacity:0;
  transform:translateY(8px);
  transition:opacity .2s ease, transform .2s ease;
}

.toast.show{
  opacity:1;
  transform:translateY(0);
}

.toast-success{
  border-color:rgba(52,211,153,.3);
}

.toast-error{
  border-color:rgba(248,113,113,.3);
}

@media (max-width: 640px){
  .toast-host{
    left:12px;
    right:12px;
    bottom:12px;
  }

  .toast{
    min-width:0;
    max-width:none;
    width:100%;
  }
}

.site-footer{
  padding:28px 0 90px;
  color:var(--muted);
  font-size:.95rem;
}

.site-footer p{
  margin:0;
}

.toast-host{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  display:flex;
  flex-direction:column;
  gap:10px;
  pointer-events:none;
}

.toast{
  min-width:220px;
  max-width:320px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(18,27,45,.96);
  color:var(--text);
  box-shadow:var(--shadow);
  opacity:0;
  transform:translateY(8px);
  transition:opacity .2s ease, transform .2s ease;
}

.toast.show{
  opacity:1;
  transform:translateY(0);
}

.toast-success{
  border-color:rgba(52,211,153,.3);
}

.toast-error{
  border-color:rgba(248,113,113,.3);
}

.mobile-sticky-bar{
  display:none;
}

@media (max-width: 768px){
  .mobile-sticky-bar{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    position:sticky;
    bottom:12px;
    margin-top:18px;
    padding:12px;
    border:1px solid var(--line);
    border-radius:18px;
    background:rgba(18,27,45,.96);
    box-shadow:var(--shadow);
    backdrop-filter:blur(8px);
    z-index:20;
  }

  .mobile-sticky-btn{
    border:1px solid var(--line);
    background:rgba(255,255,255,.06);
    color:var(--text);
    padding:12px 10px;
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
  }

  .mobile-sticky-btn.primary{
    background:linear-gradient(135deg,var(--accent),var(--accent-2));
    border-color:transparent;
    color:#fff;
  }
}

@media (max-width: 640px){
  .toast-host{
    left:12px;
    right:12px;
    bottom:12px;
  }

  .toast{
    min-width:0;
    max-width:none;
    width:100%;
  }
}

.category-link-heading{
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid transparent;
}

.category-link-heading:hover{
  border-bottom-color:rgba(255,255,255,.25);
}

.category-link-heading:focus-visible{
  outline:2px solid rgba(110,168,254,.45);
  outline-offset:3px;
  border-radius:6px;
}

.category-count-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  height:32px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(110,168,254,.12);
  border:1px solid rgba(110,168,254,.24);
  color:#cfe0ff;
  font-size:.82rem;
  font-weight:700;
  white-space:nowrap;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.actions .btn{
  flex:0 0 auto;
}

@media (max-width: 768px){
  .actions{
    gap:8px;
  }

  .actions .btn{
    padding:10px 12px;
    font-size:.95rem;
  }
}

.mobile-sticky-bar{
  display:none;
}

@media (max-width: 768px){
  .mobile-sticky-bar{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    position:sticky;
    bottom:12px;
    margin-top:18px;
    padding:12px;
    border:1px solid var(--line);
    border-radius:18px;
    background:rgba(18,27,45,.96);
    box-shadow:var(--shadow);
    backdrop-filter:blur(8px);
    z-index:20;
  }

  .mobile-sticky-btn{
    border:1px solid var(--line);
    background:rgba(255,255,255,.06);
    color:var(--text);
    padding:12px 10px;
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
  }

  .mobile-sticky-btn.primary{
    background:linear-gradient(135deg,var(--accent),var(--accent-2));
    border-color:transparent;
    color:#fff;
  }
}

.tool-card-wrap{
  position:relative;
}

.favorite-btn{
  position:absolute;
  top:10px;
  right:10px;
  z-index:3;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(18,27,45,.92);
  color:var(--muted);
  font-size:1rem;
  font-weight:700;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow);
}

.favorite-btn:hover{
  color:#ffd166;
  background:rgba(30,41,59,.96);
}

.favorite-btn.active{
  color:#ffd166;
  border-color:rgba(255,209,102,.35);
  background:rgba(255,209,102,.12);
}

.tool-card-wrap .tool-card{
  height:100%;
}

.tool-head-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}

.save-tool-btn{
  flex:0 0 auto;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
}

.save-tool-btn:hover{
  background:rgba(255,255,255,.08);
}

.save-tool-btn.active{
  color:#ffd166;
  border-color:rgba(255,209,102,.35);
  background:rgba(255,209,102,.12);
}

@media (max-width: 768px){
  .tool-head-row{
    flex-direction:column;
    align-items:stretch;
  }

  .save-tool-btn{
    align-self:flex-start;
  }
}

.toolbar-controls{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-left:auto;
}

.saved-only-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-weight:600;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  background:rgba(255,255,255,.03);
}

.saved-only-toggle input{
  width:auto;
  margin:0;
}

@media (max-width: 720px){
  .toolbar-controls{
    width:100%;
    justify-content:space-between;
    margin-left:0;
  }
}

.stats-strip{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.stat-card{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  border-radius:16px;
  padding:18px;
}

.stat-value{
  font-size:1.8rem;
  font-weight:800;
  line-height:1.1;
}

.stat-label{
  margin-top:8px;
  font-weight:700;
  color:var(--text);
}

.stat-note{
  margin-top:6px;
  font-size:.9rem;
  color:var(--muted);
}

@media (max-width: 900px){
  .stats-strip{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px){
  .stats-strip{
    grid-template-columns:1fr;
  }
}

.brand-lockup{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.site-logo{
  display:block;
  height:44px;
  width:auto;
  max-width:260px;
}

@media (max-width: 640px){
  .site-logo{
    height:38px;
    max-width:210px;
  }
}

.brand-lockup{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.site-logo{
  display:block;
  height:48px;
  width:auto;
  max-width:320px;
}

.site-header{
  padding:28px 0 14px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.nav-link,
.back-link{
  color:var(--muted);
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.03);
}

.nav-link:hover,
.back-link:hover{
  background:rgba(255,255,255,.06);
  color:var(--text);
}

@media (max-width: 640px){
  .site-logo{
    height:42px;
    max-width:250px;
  }
}

.site-header{
  padding:20px 0 10px;
}

.premium-topbar{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)),
    rgba(10,16,28,.72);
  box-shadow:
    0 10px 30px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
}

.brand-lockup{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.site-logo{
  display:block;
  height:48px;
  width:auto;
  max-width:320px;
}

.topnav{
  display:flex;
  align-items:center;
  gap:10px;
}

.nav-link,
.back-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.03);
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.nav-link:hover,
.back-link:hover{
  background:rgba(255,255,255,.07);
  color:var(--text);
  border-color:rgba(255,255,255,.14);
  transform:translateY(-1px);
}

.hero.card{
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02)),
    rgba(255,255,255,.02);
  box-shadow:
    0 14px 36px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.hero-row h2{
  letter-spacing:-0.03em;
  font-size:clamp(1.5rem, 2vw, 2rem);
  line-height:1.08;
  margin:0;
}

.hero-row .muted{
  max-width:70ch;
}

.tool-card{
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02)),
    rgba(255,255,255,.02);
  box-shadow:
    0 10px 28px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.04);
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.tool-card:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)),
    rgba(255,255,255,.025);
  box-shadow:
    0 16px 34px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.card-chip{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#d7e4ff;
}

.site-footer{
  padding:30px 0 90px;
  color:var(--muted);
  font-size:.95rem;
}

@media (max-width: 720px){
  .premium-topbar{
    flex-direction:column;
    align-items:stretch;
    padding:14px;
  }

  .topnav{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
  }

  .site-logo{
    height:42px;
    max-width:250px;
  }
}

.theme-switcher{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

:root[data-theme="light"] .premium-topbar{
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82)),
    rgba(255,255,255,.82);
  border-color:rgba(15,23,42,.08);
  box-shadow:
    0 10px 30px rgba(15,23,42,.08),
    inset 0 1px 0 rgba(255,255,255,.65);
}

:root[data-theme="light"] .hero.card,
:root[data-theme="light"] .tool-card,
:root[data-theme="light"] .panel,
:root[data-theme="light"] .card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88)),
    rgba(255,255,255,.92);
  border-color:rgba(15,23,42,.08);
  box-shadow:
    0 10px 26px rgba(15,23,42,.06),
    inset 0 1px 0 rgba(255,255,255,.7);
}

:root[data-theme="light"] .nav-link,
:root[data-theme="light"] .back-link,
:root[data-theme="light"] .saved-only-toggle,
:root[data-theme="light"] .sort-select,
:root[data-theme="light"] .search-input,
:root[data-theme="light"] .save-tool-btn,
:root[data-theme="light"] .favorite-btn,
:root[data-theme="light"] .mobile-sticky-btn{
  background:rgba(255,255,255,.9);
  border-color:rgba(15,23,42,.10);
  color:var(--text);
}

:root[data-theme="light"] .mobile-sticky-bar{
  background:rgba(255,255,255,.94);
  border-color:rgba(15,23,42,.10);
}

:root[data-theme="light"] .card-chip{
  background:rgba(15,23,42,.04);
  border-color:rgba(15,23,42,.08);
  color:#334155;
}

.site-logo{
  transition: transform .25s ease;
}

.brand-lockup:hover .site-logo{
  transform: translateY(-1px) scale(1.02);
}

.hero-premium{
  overflow:hidden;
  position:relative;
  padding:28px;
}

.hero-premium::before{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  background:
    radial-gradient(circle at top right, rgba(110,168,254,.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(139,92,246,.14), transparent 24%);
  opacity:.9;
}

.hero-premium-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(320px, .8fr);
  gap:24px;
  align-items:center;
}

.hero-premium-copy{
  max-width:720px;
}

.hero-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#dbe7ff;
  font-size:.86rem;
  font-weight:700;
  letter-spacing:.02em;
}

.hero-display{
  margin:0;
  font-size:clamp(2rem, 4.8vw, 3.5rem);
  line-height:.98;
  letter-spacing:-0.045em;
  max-width:11ch;
}

.hero-lead{
  margin:18px 0 0;
  max-width:62ch;
  font-size:1.05rem;
  line-height:1.65;
  color:var(--muted);
}

.hero-cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}

.hero-mini-points{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.hero-mini-points span{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:.9rem;
  font-weight:600;
}

.hero-premium-panel{
  display:flex;
  justify-content:flex-end;
}

.hero-panel-card{
  width:100%;
  max-width:430px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  padding:18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    rgba(255,255,255,.025);
  box-shadow:
    0 16px 34px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.hero-panel-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.hero-panel-kicker{
  color:var(--muted);
  font-size:.85rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.hero-panel-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#dbe7ff;
  font-size:.78rem;
  font-weight:700;
}

.hero-panel-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.hero-panel-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:14px;
  border-radius:16px;
  text-decoration:none;
  color:inherit;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.03);
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.hero-panel-item:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.12);
}

.hero-panel-item strong{
  display:block;
  margin:0 0 4px;
  color:var(--text);
}

.hero-panel-item p{
  margin:0;
  color:var(--muted);
  font-size:.94rem;
  line-height:1.45;
}

:root[data-theme="light"] .hero-eyebrow,
:root[data-theme="light"] .hero-mini-points span,
:root[data-theme="light"] .hero-panel-badge,
:root[data-theme="light"] .hero-panel-item{
  border-color:rgba(15,23,42,.08);
}

:root[data-theme="light"] .hero-eyebrow{
  color:#334155;
  background:rgba(255,255,255,.85);
}

:root[data-theme="light"] .hero-panel-badge{
  color:#334155;
  background:rgba(255,255,255,.85);
}

:root[data-theme="light"] .hero-mini-points span{
  background:rgba(255,255,255,.86);
}

:root[data-theme="light"] .hero-premium::before{
  background:
    radial-gradient(circle at top right, rgba(79,140,255,.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(124,77,255,.10), transparent 24%);
}

@media (max-width: 980px){
  .hero-premium-grid{
    grid-template-columns:1fr;
  }

  .hero-premium-panel{
    justify-content:flex-start;
  }

  .hero-display{
    max-width:13ch;
  }
}

@media (max-width: 640px){
  .hero-premium{
    padding:20px;
  }

  .hero-display{
    max-width:none;
    font-size:clamp(1.9rem, 9vw, 2.7rem);
  }

  .hero-lead{
    font-size:1rem;
  }
}

/* ===== Premium hero background enhancement ===== */

.hero-premium{
  position:relative;
  overflow:hidden;
}

/* soft gradient glow */

.hero-premium::before{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;

  background:
    radial-gradient(circle at 20% 10%, rgba(110,168,254,.20), transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(139,92,246,.18), transparent 28%),
    radial-gradient(circle at 30% 90%, rgba(110,168,254,.12), transparent 30%);

  opacity:.85;
}

/* subtle grid texture */

.hero-premium::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);

  background-size:42px 42px;
  opacity:.35;
}

/* soften in light mode */

:root[data-theme="light"] .hero-premium::after{
  background-image:
    linear-gradient(rgba(15,23,42,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.05) 1px, transparent 1px);
}

:root[data-theme="light"] .hero-premium::before{
  background:
    radial-gradient(circle at 20% 10%, rgba(79,140,255,.15), transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(124,77,255,.12), transparent 28%),
    radial-gradient(circle at 30% 90%, rgba(79,140,255,.08), transparent 30%);
}

/* ===== Premium hero background enhancement ===== */

.hero-premium{
  position:relative;
  overflow:hidden;
}

/* soft gradient glow */

.hero-premium::before{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;

  background:
    radial-gradient(circle at 20% 10%, rgba(110,168,254,.20), transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(139,92,246,.18), transparent 28%),
    radial-gradient(circle at 30% 90%, rgba(110,168,254,.12), transparent 30%);

  opacity:.85;
}

/* subtle grid texture */

.hero-premium::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);

  background-size:42px 42px;
  opacity:.35;
}

/* soften in light mode */

:root[data-theme="light"] .hero-premium::after{
  background-image:
    linear-gradient(rgba(15,23,42,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.05) 1px, transparent 1px);
}

:root[data-theme="light"] .hero-premium::before{
  background:
    radial-gradient(circle at 20% 10%, rgba(79,140,255,.15), transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(124,77,255,.12), transparent 28%),
    radial-gradient(circle at 30% 90%, rgba(79,140,255,.08), transparent 30%);
}

.hero-search-block{
  margin-top:24px;
  max-width:760px;
}

.hero-search-label{
  display:block;
  margin-bottom:10px;
  color:var(--muted);
  font-weight:700;
  font-size:.95rem;
}

.hero-search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:stretch;
}

.hero-search-input{
  min-width:0;
  width:100%;
  min-height:52px;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
  font-size:1rem;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  position:relative;
  z-index:1;
}

.hero-search-input::placeholder{
  color:var(--muted);
}

.hero-search-input:focus{
  border-color:rgba(110,168,254,.4);
  box-shadow:
    0 0 0 4px rgba(110,168,254,.10),
    inset 0 1px 0 rgba(255,255,255,.03);
}

.hero-search-btn{
  min-height:52px;
  white-space:nowrap;
  position:relative;
  z-index:1;
}

.hero-search-results{
  margin-top:14px;
}

.hero-results-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.hero-result-item{
  display:block;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:inherit;
  text-decoration:none;
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.hero-result-item:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.12);
}

.hero-result-top{
  margin-bottom:8px;
}

.hero-result-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:.75rem;
  font-weight:700;
}

.hero-result-item strong{
  display:block;
  margin:0 0 6px;
  color:var(--text);
}

.hero-result-item p{
  margin:0;
  color:var(--muted);
  line-height:1.45;
  font-size:.94rem;
}

.hero-search-empty{
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}

.hero-search-empty strong{
  display:block;
  margin-bottom:6px;
}

.hero-search-empty p{
  margin:0;
  color:var(--muted);
}

:root[data-theme="light"] .hero-search-input,
:root[data-theme="light"] .hero-result-item,
:root[data-theme="light"] .hero-search-empty,
:root[data-theme="light"] .hero-result-chip{
  border-color:rgba(15,23,42,.08);
  background:rgba(255,255,255,.88);
}

@media (max-width: 720px){
  .hero-search-row{
    grid-template-columns:1fr;
  }

  .hero-search-btn{
    width:100%;
  }

  .hero-results-grid{
    grid-template-columns:1fr;
  }
}

:root[data-theme="light"] .btn.secondary{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  color: #0f172a;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow:
    0 4px 12px rgba(15,23,42,.06),
    inset 0 1px 0 rgba(255,255,255,.85);
}

:root[data-theme="light"] .btn.secondary:hover{
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(241,245,249,.98));
  color: #0f172a;
  border-color: rgba(15,23,42,.16);
}

/* ===== Toast notifications ===== */

.toast{
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  padding:12px 18px;
  border-radius:12px;
  font-size:.95rem;
  font-weight:600;
  z-index:9999;
  pointer-events:none;
  opacity:0;
  transition:opacity .25s ease, transform .25s ease;
}

.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(-4px);
}

/* dark theme */

:root[data-theme="dark"] .toast{
  background:rgba(15,23,42,.92);
  color:#f8fafc;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 26px rgba(0,0,0,.35);
}

/* light theme */

:root[data-theme="light"] .toast{
  background:#0f172a;
  color:#ffffff;
  border:1px solid rgba(15,23,42,.2);
  box-shadow:0 10px 26px rgba(15,23,42,.15);
}
/* Results Boxes */

.result-box{
  background:var(--panel2);
  border:1px solid var(--border);
  border-radius:10px;
  padding:18px;
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space:pre-wrap;
  line-height:1.5;
  font-size:14px;
}

.result-value{
  font-size:28px;
  font-weight:700;
  letter-spacing:-0.3px;
}

.help-text{
  margin-top:10px;
  opacity:.75;
  font-size:13px;
}

/* Inline Validation Errors */

.result-error{
  color:#ff6b6b;
  font-weight:500;
}

.result-success{
  color:#33d17a;
}

/* Improved Action Button Styling */

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:15px;
}

.btn{
  background:var(--accent);
  border:none;
  color:white;
  padding:10px 16px;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
  transition:.15s ease;
}

.btn:hover{
  transform:translateY(-1px);
  opacity:.9;
}

.btn.secondary{
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
}

/* Tool Success Animation */

.result-box{
  transition:.25s ease;
}

.result-box.updated{
  transform:scale(1.01);
  border-color:var(--accent);
}

/* Improved Tool Header Hierarchy */




/* ===== Premium result workspace ===== */

.output-panel{
  overflow:hidden;
}

.result-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 0 14px;
  margin-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.result-toolbar-main{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.result-toolbar-title{
  margin:0;
  font-size:1rem;
  font-weight:700;
  letter-spacing:-0.01em;
}

.result-toolbar-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.result-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:4px 10px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:700;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  white-space:nowrap;
}

.result-status-empty{
  color:var(--muted);
}

.result-status-default{
  color:var(--muted);
}

.result-status-info{
  color:#cfe0ff;
  border-color:rgba(110,168,254,.22);
  background:rgba(110,168,254,.10);
}

.result-status-success{
  color:#d8ffe9;
  border-color:rgba(52,211,153,.24);
  background:rgba(52,211,153,.10);
}

.result-status-error{
  color:#ffd9d9;
  border-color:rgba(248,113,113,.24);
  background:rgba(248,113,113,.10);
}

.result-box{
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02)),
    rgba(255,255,255,.02);
  border-radius:16px;
  padding:18px;
  white-space:pre-wrap;
  line-height:1.6;
  font-size:14px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease,
    background .2s ease;
}

.result-box.updated{
  transform:scale(1.01);
}

.result-state-empty{
  color:var(--muted);
}

.result-state-default{
  color:var(--text);
}

.result-state-info{
  border-color:rgba(110,168,254,.20);
  box-shadow:0 0 0 1px rgba(110,168,254,.04) inset;
}

.result-state-success{
  border-color:rgba(52,211,153,.24);
  box-shadow:0 0 0 1px rgba(52,211,153,.05) inset;
}

.result-state-error{
  border-color:rgba(248,113,113,.24);
  box-shadow:0 0 0 1px rgba(248,113,113,.05) inset;
  color:#ffd5d5;
}

.result-value{
  font-size:28px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-0.03em;
  font-family:Inter, Arial, sans-serif;
}

.help-text{
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  font-family:Inter, Arial, sans-serif;
}

.action-btn{
  min-height:38px;
  padding:8px 12px;
  font-size:.92rem;
}

:root[data-theme="light"] .result-toolbar{
  border-bottom-color:rgba(15,23,42,.08);
}

:root[data-theme="light"] .result-box{
  border-color:rgba(15,23,42,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96)),
    rgba(255,255,255,.94);
  color:#0f172a;
  box-shadow:
    0 8px 24px rgba(15,23,42,.05),
    inset 0 1px 0 rgba(255,255,255,.75);
}

:root[data-theme="light"] .result-state-error{
  color:#7f1d1d;
  border-color:rgba(239,68,68,.22);
}

:root[data-theme="light"] .result-status-badge{
  border-color:rgba(15,23,42,.08);
  background:rgba(255,255,255,.88);
}

:root[data-theme="light"] .result-status-info{
  color:#1d4ed8;
  border-color:rgba(59,130,246,.18);
  background:rgba(59,130,246,.08);
}

:root[data-theme="light"] .result-status-success{
  color:#166534;
  border-color:rgba(34,197,94,.18);
  background:rgba(34,197,94,.08);
}

:root[data-theme="light"] .result-status-error{
  color:#991b1b;
  border-color:rgba(239,68,68,.18);
  background:rgba(239,68,68,.08);
}

@media (max-width: 860px){
  .result-toolbar{
    flex-direction:column;
    align-items:flex-start;
  }

  .result-toolbar-actions{
    width:100%;
    justify-content:flex-start;
  }
}

.tool-card-meta{
  margin-top:10px;
  font-size:.84rem;
  color:var(--muted);
  font-weight:600;
}

.card-badges{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.top-match-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:3px 8px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:700;
  color:#dbeafe;
  background:rgba(59,130,246,.16);
  border:1px solid rgba(59,130,246,.24);
}

:root[data-theme="light"] .top-match-badge{
  color:#1d4ed8;
  background:rgba(59,130,246,.08);
  border-color:rgba(59,130,246,.18);
}

.related-tools-block{
  margin-top:18px;
}

#collectionsMount .registry-head .muted{
  margin-top:6px;
  max-width:60ch;
}

.tool-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:3px 8px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:700;
  border:1px solid transparent;
  white-space:nowrap;
}

.popular-badge{
  color:#fef3c7;
  background:rgba(245,158,11,.14);
  border-color:rgba(245,158,11,.22);
}

.trending-badge{
  color:#fde2ff;
  background:rgba(217,70,239,.14);
  border-color:rgba(217,70,239,.22);
}

.recommended-badge{
  color:#dcfce7;
  background:rgba(34,197,94,.14);
  border-color:rgba(34,197,94,.22);
}

:root[data-theme="light"] .popular-badge{
  color:#92400e;
  background:rgba(245,158,11,.10);
  border-color:rgba(245,158,11,.18);
}

:root[data-theme="light"] .trending-badge{
  color:#86198f;
  background:rgba(217,70,239,.10);
  border-color:rgba(217,70,239,.18);
}

:root[data-theme="light"] .recommended-badge{
  color:#166534;
  background:rgba(34,197,94,.10);
  border-color:rgba(34,197,94,.18);
}

.section-legend{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:10px 0 0;
  color:var(--muted);
  font-size:.9rem;
}

.legend-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.related-tools .tool-grid{
  gap:16px;
}

.related-tools .tool-card{
  padding:20px;
  display:block;
}

/* ===== Related Tools Polish Pack ===== */

.related-tools-block {
  padding: 20px;
  margin-top: 24px;
}

.related-tools-block .registry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.related-tools-block .registry-head h2 {
  margin: 0;
}

.related-tools-block .tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.related-tools-block .tool-card {
  display: block;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
  min-height: 100%;
  box-sizing: border-box;
}

.related-tools-block .tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.related-tools-block .tool-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.22);
  outline-offset: 2px;
}

.related-tools-block .card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.related-tools-block .card-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.related-tools-block .card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.related-tools-block .tool-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
}

.related-tools-block .recommended-badge {
  background: rgba(96, 165, 250, 0.16);
}

.related-tools-block .new-badge {
  background: rgba(52, 211, 153, 0.16);
}

.related-tools-block .tool-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.3;
}

.related-tools-block .tool-card p {
  margin: 0;
  line-height: 1.5;
  opacity: 0.88;
}

.related-tools-block .count-badge {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .related-tools-block {
    padding: 16px;
  }

  .related-tools-block .tool-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-tools-block .tool-card {
    padding: 16px;
  }

  .related-tools-block .card-topline {
    gap: 8px;
  }

  .related-tools-block .card-badges {
    gap: 4px;
  }
}


/* ===== Related tools hard override ===== */

.related-tools-block {
  padding: 20px !important;
}

.related-tools-block .tool-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 16px !important;
}

.related-tools-block .tool-grid > * {
  min-width: 0;
}

.related-tools-block .tool-card,
.related-tools-block a.tool-card {
  display: block !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  color: inherit !important;
}

.related-tools-block .tool-card h3,
.related-tools-block a.tool-card h3 {
  margin: 0 0 10px 0 !important;
}

.related-tools-block .tool-card p,
.related-tools-block a.tool-card p {
  margin: 0 !important;
}

.related-tools-block .card-topline {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.related-tools-block .card-chip {
  display: inline-flex !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
}

.related-tools-block .card-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.tool-intro{

margin-bottom:20px;

padding:16px;

border-radius:12px;

background:var(--card-bg);

}

.tool-intro-block {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-intro {
  margin: 0;
  line-height: 1.6;
}

.ad-container{
margin:28px 0;
padding:18px;
border-radius:14px;

background:rgba(255,255,255,0.03);
border:1px solid rgba(255,255,255,0.06);

display:flex;
justify-content:center;
align-items:center;

min-height:90px;
}

.ad-label{
font-size:11px;
opacity:.5;
margin-bottom:6px;
text-transform:uppercase;
letter-spacing:.08em;
}

/* ===== Legal / About / Contact pages ===== */

.legal-page-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 18px 56px;
}

.legal-page-card {
  padding: 28px;
}

.legal-page-head {
  margin-bottom: 24px;
}

.legal-page-head h1 {
  margin: 8px 0 10px;
}

.legal-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  opacity: 0.9;
}

.legal-content {
  line-height: 1.75;
}

.legal-content h2 {
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 0 0 16px 20px;
  padding: 0;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .legal-page-wrap {
    padding: 20px 12px 40px;
  }

  .legal-page-card {
    padding: 18px;
  }

  .legal-actions {
    flex-direction: column;
  }

  .legal-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.footer-note{

font-size:.8rem;

opacity:.5;

margin-top:8px;

}

.business-hub-hero {
  padding: 32px;
}

.business-hub-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 640px) {
  .business-hub-actions {
    flex-direction: column;
  }

  .business-hub-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Static / landing / legal pages ===== */

.legal-page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 18px 56px;
}

.legal-page-card {
  padding: 28px;
  margin-bottom: 24px;
}

.legal-page-head {
  margin-bottom: 22px;
}

.legal-page-head h1 {
  margin: 8px 0 10px;
}

.legal-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  opacity: 0.9;
}

.legal-content {
  line-height: 1.75;
}

.legal-content h2,
.legal-content h3 {
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 0 0 16px 20px;
  padding: 0;
}

.legal-content li {
  margin-bottom: 8px;
}

.business-hub-hero {
  padding: 32px;
}

.business-hub-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.site-footer {
  margin-top: 60px;
  padding: 30px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  opacity: .95;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  opacity: .82;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-note {
  font-size: .82rem;
  opacity: .55;
  margin-top: 8px;
}

.footer-copy {
  font-size: .85rem;
  opacity: .6;
}

@media (max-width: 640px) {
  .legal-page-wrap {
    padding: 20px 12px 40px;
  }

  .legal-page-card,
  .business-hub-hero {
    padding: 18px;
  }

  .business-hub-actions {
    flex-direction: column;
  }

  .business-hub-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    align-items: flex-start;
  }
}

/* ===== Ad blocks ===== */

.ad-container {
  margin: 28px 0;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
}

.ad-inner {
  width: 100%;
  text-align: center;
}

.ad-label {
  font-size: 11px;
  opacity: 0.5;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ad-placeholder {
  font-size: 0.95rem;
  opacity: 0.75;
}

/* Category intro block */

.category-intro {
  padding: 24px;
  margin-bottom: 24px;
}

.category-intro h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.category-intro p {
  margin-bottom: 18px;
  line-height: 1.6;
  opacity: .9;
}

.category-intro .btn {
  display: inline-flex;
  margin-top: 8px;
}