/* ZillaKit design system — Agent A shared infrastructure */
/* ---------- Theme tokens ---------- */
:root{
  /* Dark theme (default) */
  --bg:#060809; --panel:#0e1417; --panel2:#131b1f; --border:#1e2a30;
  --cyan:#2DD4DF; --cyan-deep:#0E7490; --cyan-hover:#3fe0ea;
  --text:#f2f6f7; --muted:#93a1ab;
  --on-cyan:#052227;
  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.45);
  --card-hover-shadow:0 14px 36px rgba(0,0,0,.55);
  --font:'Segoe UI', system-ui, -apple-system, sans-serif;
  --header-bg:rgba(6,8,9,.82);
  --footer-bg:var(--panel);
  --btn-glow:rgba(45,212,223,.3);
  --accent-soft:rgba(45,212,223,.10);
  --accent-softer:rgba(45,212,223,.06);
  --accent-line:rgba(45,212,223,.35);
  --ad-stripe:rgba(255,255,255,.015);
  --focus:rgba(45,212,223,.65);
  --scrollbar-track:#0a1012;
  --scrollbar-thumb:#243139;
  --scrollbar-thumb-hover:#31454e;
  --err:#ff5c6c;
  --arrow:%2393a1ab;
}
[data-theme="light"]{
  /* Light theme overrides */
  --bg:#f7fafb; --panel:#ffffff; --panel2:#eef3f5; --border:#d9e2e7;
  --cyan:#0e7490; --cyan-deep:#0b5c72; --cyan-hover:#0a5f77;
  --text:#10181c; --muted:#51616b;
  --on-cyan:#ecfeff;
  --shadow:0 8px 24px rgba(16,32,42,.10);
  --card-hover-shadow:0 14px 30px rgba(16,32,42,.14);
  --header-bg:rgba(247,250,251,.82);
  --btn-glow:rgba(14,116,144,.28);
  --accent-soft:rgba(14,116,144,.10);
  --accent-softer:rgba(14,116,144,.06);
  --accent-line:rgba(14,116,144,.35);
  --ad-stripe:rgba(16,32,42,.03);
  --focus:rgba(14,116,144,.6);
  --scrollbar-track:#e6edf0;
  --scrollbar-thumb:#c2cfd6;
  --scrollbar-thumb-hover:#a9bac2;
  --err:#d13c4b;
  --arrow:%2351616b;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font); line-height:1.6; font-size:16px;
  -webkit-font-smoothing:antialiased;
  transition:background .2s ease, color .2s ease;
}
a{color:var(--cyan); text-decoration:none; transition:color .15s ease}
a:hover{text-decoration:underline}
img{max-width:100%}
h1,h2,h3{line-height:1.2; margin:0 0 .5em; letter-spacing:-.01em}
h1{font-size:2rem}
.container{max-width:1200px; margin:0 auto; padding:0 1.25rem}

/* Accessible focus rings (keyboard only) */
:focus-visible{outline:2px solid var(--focus); outline-offset:2px; border-radius:6px}
a:focus-visible,button:focus-visible,.pill:focus-visible,.zk-chip:focus-visible,.tool-card:focus-visible,.zk-feat-card:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none}

/* Custom scrollbars */
html{scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track); scrollbar-width:thin}
::-webkit-scrollbar{width:12px; height:12px}
::-webkit-scrollbar-track{background:var(--scrollbar-track)}
::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb); border-radius:10px; border:3px solid var(--scrollbar-track)}
::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}

/* ---------- Header ---------- */
.zk-header{
  position:sticky; top:0; z-index:50;
  background:var(--header-bg); backdrop-filter:blur(12px) saturate(140%); -webkit-backdrop-filter:blur(12px) saturate(140%);
  border-bottom:1px solid var(--border);
}
.zk-header .zk-bar{
  max-width:1200px; margin:0 auto; padding:.6rem 1.25rem;
  display:flex; align-items:center; gap:1rem;
}
.zk-logo{display:flex; align-items:center; gap:.5rem; font-weight:800; font-size:1.2rem; color:var(--text)}
.zk-logo:hover{text-decoration:none}
.zk-logo img{height:32px; width:auto}
.zk-logo .zk-brand span{color:var(--cyan)}
.zk-nav{display:flex; align-items:center; gap:1.25rem; margin-left:auto}
.zk-nav a{color:var(--muted); font-weight:600}
.zk-nav a:hover{color:var(--text); text-decoration:none}
.zk-search-mini{
  display:flex; align-items:center; background:var(--panel2);
  border:1px solid var(--border); border-radius:20px; padding:.35rem .8rem;
  transition:border-color .15s ease;
}
.zk-search-mini:focus-within{border-color:var(--cyan)}
.zk-search-mini input{
  background:transparent; border:0; color:var(--text); outline:none; width:150px;
}
.zk-search-mini input::placeholder{color:var(--muted)}
/* Theme toggle button */
.zk-theme-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; flex:0 0 auto; padding:0;
  background:var(--panel2); border:1px solid var(--border); border-radius:10px;
  color:var(--text); font-size:1.05rem; line-height:1; cursor:pointer;
  transition:border-color .15s ease, background .15s ease, transform .08s ease;
}
.zk-theme-toggle:hover{border-color:var(--cyan)}
.zk-theme-toggle:active{transform:translateY(1px)}

/* Hamburger button — hidden on desktop, revealed at ≤860px */
.zk-burger{
  display:none; align-items:center; justify-content:center;
  width:44px; height:44px; min-width:44px; min-height:44px; flex:0 0 auto;
  margin-left:auto; padding:0;
  background:var(--panel2); border:1px solid var(--border); border-radius:10px;
  color:var(--text); font-size:1.3rem; line-height:1; cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}
.zk-burger:hover{border-color:var(--cyan)}
/* Protect the brand/logo from being squeezed or overlapped at any width */
.zk-logo{flex:0 0 auto; min-width:0}

/* Mobile slide-down menu (top set by injectHeader; hidden until opened) */
.zk-m-backdrop{
  position:fixed; left:0; right:0; top:0; height:100vh; z-index:55;
  background:rgba(0,0,0,.5); opacity:0; transition:opacity .2s ease;
}
.zk-m-backdrop.open{opacity:1}
.zk-mobile-panel{
  position:fixed; left:0; right:0; top:0; z-index:60;
  display:flex; flex-direction:column; gap:.15rem;
  padding:.75rem 1.25rem 1rem;
  background:var(--panel); border-bottom:1px solid var(--border); box-shadow:var(--shadow);
  max-height:calc(100vh - 52px); overflow-y:auto;
  transform:translateY(-12px); opacity:0; pointer-events:none;
  transition:transform .2s ease, opacity .2s ease;
}
.zk-mobile-panel.open{transform:translateY(0); opacity:1; pointer-events:auto}
.zk-mobile-panel a{
  display:flex; align-items:center; gap:.6rem;
  min-height:44px; padding:.75rem .4rem;
  color:var(--text); font-weight:600; font-size:1.05rem;
  border-bottom:1px solid var(--border);
}
.zk-mobile-panel a:last-of-type{border-bottom:0}
.zk-mobile-panel a:hover{color:var(--cyan); text-decoration:none}
.zk-m-search{margin-bottom:.5rem}
.zk-m-theme-row{
  display:flex; align-items:center; justify-content:space-between;
  min-height:44px; padding:.5rem .4rem; margin-top:.25rem;
  color:var(--text); font-weight:600; font-size:1.05rem;
}
body.zk-menu-lock{overflow:hidden}

/* ≤860px: hide inline nav + mini-search entirely, show the hamburger */
@media(max-width:860px){
  .zk-nav{display:none}
  .zk-search-mini{display:none}
  .zk-burger{display:inline-flex}
}

/* ---------- Buttons ---------- */
.btn,.btn-ghost{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-family:inherit; font-size:1rem; font-weight:700; cursor:pointer;
  border-radius:10px; padding:.7rem 1.4rem; border:2px solid transparent;
  transition:transform .08s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  text-decoration:none;
}
.btn{background:var(--cyan); color:var(--on-cyan)}
.btn:hover{background:var(--cyan-hover); text-decoration:none; box-shadow:0 6px 20px var(--btn-glow)}
.btn:active{transform:translateY(1px)}
.btn-ghost{background:transparent; color:var(--cyan); border-color:var(--cyan)}
.btn-ghost:hover{background:var(--accent-soft); text-decoration:none}
.btn:disabled,.btn-ghost:disabled{opacity:.5; cursor:not-allowed}
.btn-lg{padding:.9rem 2rem; font-size:1.1rem}

/* ---------- Cards ---------- */
.card{
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius); padding:1.25rem;
}

/* ---------- Inputs ---------- */
input[type=text],input[type=email],input[type=number],input[type=search],
input[type=password],input[type=url],select,textarea{
  width:100%; background:var(--panel2); color:var(--text);
  border:1px solid var(--border); border-radius:8px; padding:.65rem .8rem;
  font-family:inherit; font-size:1rem; outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
input:focus,select:focus,textarea:focus{border-color:var(--cyan); box-shadow:0 0 0 3px var(--accent-softer)}
textarea{resize:vertical; min-height:120px; line-height:1.5}
label{display:block; font-weight:600; margin:.75rem 0 .35rem; color:var(--muted)}
select{appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2393a1ab'%3E%3Cpath d='M0 0h12L6 8z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right .8rem center; padding-right:2rem}

/* ---------- Drop zone ---------- */
.dropzone{
  border:2px dashed var(--border); border-radius:var(--radius);
  padding:2.5rem 1.5rem; text-align:center; color:var(--muted);
  cursor:pointer; transition:border-color .15s ease, background .15s ease, color .15s ease;
}
.dropzone:hover,.dropzone.dragover{border-color:var(--cyan); background:var(--accent-softer); color:var(--text)}
.dropzone .dz-icon{font-size:2.5rem; display:block; margin-bottom:.5rem}

/* ---------- Tool layout: main + 320px sidebar ---------- */
.tool-layout{
  display:grid; grid-template-columns:minmax(0,1fr) 320px;
  gap:2rem; padding-top:2rem; padding-bottom:3rem; align-items:start;
}
.tool-main{min-width:0}
.tool-side{display:flex; flex-direction:column; gap:1.25rem; position:sticky; top:80px}
.lede{color:var(--muted); font-size:1.1rem; margin-top:-.25rem}
.seo-content{margin-top:2.5rem; color:var(--text)}
.seo-content h2{margin-top:1.75rem; color:var(--cyan)}
.seo-content h3{margin-top:1.25rem; font-size:1.05rem}
.seo-content ol,.seo-content ul{padding-left:1.25rem}
.related h3{margin-top:0; font-size:1rem; color:var(--muted); text-transform:uppercase; letter-spacing:.05em}
.related a{display:flex; align-items:center; gap:.6rem; padding:.55rem 0; color:var(--text); border-bottom:1px solid var(--border)}
.related a:last-child{border-bottom:0}
.related a:hover{color:var(--cyan); text-decoration:none}
.related .r-icon{font-size:1.3rem}

/* ---------- Ad slots ---------- */
.ad-slot{
  display:flex; align-items:center; justify-content:center; flex-direction:column;
  border:1px dashed var(--border); border-radius:10px; color:var(--muted);
  background:repeating-linear-gradient(45deg,transparent,transparent 10px,var(--ad-stripe) 10px,var(--ad-stripe) 20px);
  font-size:.75rem; letter-spacing:.12em; text-transform:uppercase;
}
.ad-slot small{opacity:.7; text-transform:none; letter-spacing:normal; margin-top:.25rem}
.ad-slot.ad-side{width:300px; max-width:100%; height:250px; margin:0 auto}
.ad-slot.ad-footer{width:728px; max-width:100%; height:90px; margin:1.5rem auto}

/* ---------- Rewarded modal ---------- */
.zk-modal-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.75); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center; z-index:200; padding:1rem;
}
.zk-modal{
  background:var(--panel); border:1px solid var(--border); border-radius:var(--radius);
  padding:2rem; max-width:420px; width:100%; text-align:center; box-shadow:var(--shadow);
}
.zk-modal h3{color:var(--cyan)}
.zk-modal p{color:var(--muted)}
.zk-ring{margin:1.5rem auto; display:block}
.zk-ring-bg{stroke:var(--border)}
.zk-ring-fg{stroke:var(--cyan); stroke-linecap:round; transition:stroke-dashoffset 1s linear; transform:rotate(-90deg); transform-origin:50% 50%}
.zk-ring-num{font-size:1.6rem; font-weight:800; fill:var(--text)}
.zk-modal-actions{display:flex; gap:.75rem; justify-content:center; margin-top:1rem}
.zk-ad-placeholder{
  background:var(--panel2); border:1px dashed var(--border); border-radius:10px;
  padding:1.5rem; margin:1rem 0; color:var(--muted); font-size:.9rem;
}

/* ---------- Toast ---------- */
.zk-toast-wrap{position:fixed; bottom:1.5rem; left:50%; transform:translateX(-50%); z-index:300; display:flex; flex-direction:column; gap:.5rem; align-items:center}
.zk-toast{
  background:var(--panel2); color:var(--text); border:1px solid var(--border);
  border-left:3px solid var(--cyan); border-radius:8px; padding:.7rem 1.1rem;
  box-shadow:var(--shadow); font-size:.95rem; max-width:90vw;
  animation:zk-toast-in .2s ease;
}
.zk-toast.err{border-left-color:var(--err)}
@keyframes zk-toast-in{from{opacity:0; transform:translateY(10px)}to{opacity:1; transform:none}}

/* ---------- Footer ---------- */
.zk-footer{
  border-top:1px solid var(--border); background:var(--footer-bg);
  margin-top:3rem; padding:2rem 0; color:var(--muted); font-size:.9rem;
}
.zk-footer .zk-bar{max-width:1200px; margin:0 auto; padding:0 1.25rem; display:flex; flex-wrap:wrap; gap:.75rem 1.25rem; align-items:center}
.zk-footer a{color:var(--muted)}
.zk-footer a:hover{color:var(--cyan)}
.zk-footer .zk-foot-note{margin-left:auto; opacity:.7}

/* ---------- Home page ---------- */
.hero{text-align:center; padding:3.5rem 1.25rem 2rem}
.hero img{height:72px; margin-bottom:1rem}
.hero h1{font-size:2.6rem; background:linear-gradient(90deg,var(--text),var(--cyan)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent}
.hero p{color:var(--muted); font-size:1.2rem; max-width:640px; margin:.5rem auto 0}
.home-search{max-width:620px; margin:2rem auto 1rem; position:relative}
.home-search input{padding:1rem 1.2rem; font-size:1.1rem; border-radius:30px; text-align:center}
.pills{display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin:1.25rem auto 1.75rem; max-width:800px}
.pill{
  background:var(--panel2); border:1px solid var(--border); color:var(--muted);
  border-radius:20px; padding:.4rem 1rem; font-size:.9rem; cursor:pointer; font-weight:600;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.pill:hover{border-color:var(--cyan); color:var(--text)}
.pill.active{background:var(--cyan); color:var(--on-cyan); border-color:var(--cyan)}

/* Section heading above the grid */
.zk-section-heading{
  display:flex; align-items:baseline; gap:.5rem;
  font-size:1.15rem; font-weight:700; color:var(--text);
  margin:.25rem 0 1rem; padding-bottom:.6rem; border-bottom:1px solid var(--border);
}
.zk-section-heading .zk-count{font-size:.9rem; font-weight:600; color:var(--muted)}

/* Library banner (shown on the mystic pill) */
.zk-lib-banner{
  display:flex; align-items:center; gap:.9rem;
  background:linear-gradient(135deg,var(--accent-soft),transparent 70%),var(--panel);
  border:1px solid var(--accent-line); border-radius:var(--radius);
  padding:1rem 1.25rem; margin:0 0 1.25rem; text-decoration:none; color:var(--text);
  transition:transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.zk-lib-banner:hover{transform:translateY(-2px); border-color:var(--cyan); box-shadow:var(--shadow); text-decoration:none}
.zk-lib-banner .zk-lib-icon{font-size:1.8rem; line-height:1; flex:0 0 auto}
.zk-lib-banner .zk-lib-text{display:flex; flex-direction:column; gap:.1rem}
.zk-lib-banner .zk-lib-title{font-weight:800; font-size:1.05rem}
.zk-lib-banner .zk-lib-sub{color:var(--muted); font-size:.88rem}
.zk-lib-banner .zk-lib-go{margin-left:auto; color:var(--cyan); font-weight:700; flex:0 0 auto}

.tool-grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:1rem; padding-bottom:2rem;
}
.tool-card{
  background:var(--panel); border:1px solid var(--border); border-radius:var(--radius);
  padding:1.25rem; display:flex; flex-direction:column; gap:.4rem;
  transition:transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.tool-card:hover{transform:translateY(-3px); border-color:var(--cyan); box-shadow:var(--card-hover-shadow); text-decoration:none}
.tool-card .tc-icon{font-size:2rem}
.tool-card .tc-name{font-weight:700; color:var(--text); font-size:1.1rem}
.tool-card .tc-desc{color:var(--muted); font-size:.9rem}
.tool-card .tc-cat{margin-top:auto; font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; color:var(--cyan-deep)}
.empty-state{text-align:center; color:var(--muted); padding:3rem; grid-column:1/-1}

/* ---------- Premium ---------- */
.feature-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; margin:2rem 0}
.feature{display:flex; gap:.75rem; align-items:flex-start}
.feature .f-icon{font-size:1.6rem; flex:0 0 auto}
.price-tag{font-size:3rem; font-weight:800; color:var(--cyan)}
.price-tag small{font-size:1rem; color:var(--muted); font-weight:400}
.notice{background:var(--accent-soft); border:1px solid var(--cyan-deep); border-radius:10px; padding:1rem 1.25rem; color:var(--text)}

/* ---------- Prose (privacy/terms/404) ---------- */
.prose{max-width:760px; margin:0 auto}
.prose h2{color:var(--cyan); margin-top:2rem}
.prose p,.prose li{color:var(--muted)}
.center-page{text-align:center; padding:5rem 1.25rem}
.center-page .big{font-size:5rem; margin:0; color:var(--cyan)}

/* ---------- Mobile breakpoints ---------- */
@media(max-width:960px){
  .tool-layout{grid-template-columns:1fr}
  .tool-side{position:static; flex-direction:row; flex-wrap:wrap}
  .tool-side>*{flex:1 1 300px}
}
@media(max-width:720px){
  h1{font-size:1.6rem}
  .hero h1{font-size:2rem}
  .hero p{font-size:1.05rem}
  .zk-search-mini{display:none}
  .zk-nav{gap:1rem}
  .tool-side{flex-direction:column}
  .zk-footer .zk-bar{flex-direction:column; align-items:flex-start}
  .zk-footer .zk-foot-note{margin-left:0}
  .zk-lib-banner .zk-lib-go{display:none}
}

/* ---------- Mobile hardening (phone usability, ~390px) ---------- */
/* Never let a page scroll sideways */
html,body{max-width:100%; overflow-x:hidden}
.container{width:100%}
@media(max-width:720px){
  /* Comfortable tap targets */
  .btn,.btn-ghost{min-height:44px; padding:.7rem 1.1rem}
  .pill{min-height:44px; display:inline-flex; align-items:center; padding:.5rem 1rem}
  .tool-grid{grid-template-columns:1fr}
  /* Full-width drop zones and single-column tool controls */
  .dropzone{padding:2rem 1rem}
  /* Wide grids/tables inside tool cards scroll instead of pushing the page */
  .card table{max-width:100%}
}
/* Reusable scroll container for overflowing grids/tables on any width */
.zk-scroll-x{overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%}

/* ---------- PWA install button (header + mobile panel) ---------- */
/* Hidden until beforeinstallprompt fires and the user has not dismissed it. */
.zk-install{display:inline-flex; align-items:center; gap:.15rem; flex:0 0 auto}
.zk-install[hidden]{display:none !important}
.zk-install-btn{
  display:inline-flex; align-items:center; gap:.35rem;
  background:var(--accent-soft); border:1px solid var(--accent-line); border-radius:10px;
  color:var(--cyan); font-family:inherit; font-size:.82rem; font-weight:700;
  padding:.4rem .7rem; cursor:pointer; white-space:nowrap;
  transition:border-color .15s ease, background .15s ease;
}
.zk-install-btn:hover{border-color:var(--cyan); background:var(--accent-softer)}
.zk-install-x{
  background:none; border:0; color:var(--muted); cursor:pointer;
  font-size:.7rem; line-height:1; padding:.35rem .25rem;
}
.zk-install-x:hover{color:var(--cyan)}
.zk-mobile-panel .zk-install{
  display:flex; margin-top:.5rem; padding:.25rem .4rem;
  justify-content:space-between; align-items:center;
}
.zk-mobile-panel .zk-install[hidden]{display:none !important}
.zk-mobile-panel .zk-install-btn{flex:1 1 auto; justify-content:center; min-height:44px; font-size:.95rem}

/* ---------- Contextual Pro prompt (ZK.upsell) ---------- */
/* Small inline card shown after a successful action. Never a modal, never for
   premium users, at most once per session per context. */
.zk-upsell{
  display:flex; align-items:center; gap:.85rem;
  margin:1rem 0 0; padding:.85rem 1rem;
  background:linear-gradient(135deg,var(--accent-soft),transparent 70%),var(--panel);
  border:1px solid var(--accent-line); border-radius:var(--radius);
  color:var(--text); font-size:.92rem;
  animation:zk-toast-in .25s ease;
}
.zk-upsell .zk-up-icon{font-size:1.4rem; line-height:1; flex:0 0 auto}
.zk-upsell .zk-up-text{display:flex; flex-direction:column; gap:.1rem; flex:1 1 auto; min-width:0}
.zk-upsell .zk-up-title{font-weight:700; color:var(--text)}
.zk-upsell .zk-up-sub{color:var(--muted); font-size:.85rem; line-height:1.45}
.zk-upsell .zk-up-cta{
  flex:0 0 auto; font-weight:700; color:var(--cyan); white-space:nowrap;
  border:1px solid var(--accent-line); border-radius:10px; padding:.45rem .8rem;
  transition:border-color .15s ease, background .15s ease;
}
.zk-upsell .zk-up-cta:hover{border-color:var(--cyan); background:var(--accent-soft); text-decoration:none}
.zk-upsell .zk-up-x{
  flex:0 0 auto; background:none; border:0; color:var(--muted);
  cursor:pointer; font-size:.8rem; line-height:1; padding:.3rem;
}
.zk-upsell .zk-up-x:hover{color:var(--cyan)}
@media(max-width:720px){
  .zk-upsell{flex-wrap:wrap}
  .zk-upsell .zk-up-cta{width:100%; text-align:center; min-height:44px; display:flex; align-items:center; justify-content:center}
}

/* ---------- Footer hub link row ---------- */
.zk-footer .zk-foot-hubs{
  max-width:1200px; margin:.9rem auto 0; padding:.9rem 1.25rem 0;
  display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .9rem;
  border-top:1px solid var(--border); font-size:.82rem;
}
.zk-footer .zk-foot-hubs-label{
  color:var(--muted); opacity:.75; font-weight:700;
  text-transform:uppercase; letter-spacing:.08em; font-size:.68rem;
}

/* ---------- Category hub pages (/hub/*.html) ---------- */
.zk-hub{padding-top:1.5rem; padding-bottom:2rem}
.zk-crumbs{color:var(--muted); font-size:.82rem; margin-bottom:.9rem}
.zk-crumbs a{color:var(--muted)}
.zk-crumbs a:hover{color:var(--cyan)}
.zk-hub-intro{max-width:820px; color:var(--muted); line-height:1.7; margin:1.25rem 0 2rem}
.zk-hub-intro p{margin:0 0 1rem}
.zk-hub-intro strong{color:var(--text)}
.zk-hub-pop{margin:.5rem 0 2rem}
.zk-pop-list{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:.5rem}
.zk-pop-list li{margin:0}
.zk-pop-list a{
  display:flex; align-items:center; gap:.6rem; padding:.6rem .8rem;
  background:var(--panel2); border:1px solid var(--border); border-radius:10px; color:var(--text);
  transition:border-color .15s ease;
}
.zk-pop-list a:hover{border-color:var(--cyan); text-decoration:none}
.zk-pop-list .p-icon{font-size:1.2rem; flex:0 0 auto}
.zk-pop-list .p-desc{color:var(--muted); font-size:.82rem; display:block}
.zk-hub-siblings{
  margin:2.5rem 0 1rem; padding-top:1.25rem; border-top:1px solid var(--border);
  display:flex; flex-wrap:wrap; gap:.5rem;
}
.zk-hub-siblings a{
  display:inline-flex; align-items:center; gap:.35rem;
  background:var(--panel2); border:1px solid var(--border); border-radius:999px;
  padding:.35rem .75rem; color:var(--text); font-size:.85rem;
}
.zk-hub-siblings a:hover{border-color:var(--cyan); text-decoration:none}

/* "View all <category> →" link on the homepage + /tools.html */
.zk-hub-link{
  font-size:.82rem; font-weight:600; color:var(--cyan);
  white-space:nowrap; margin-left:auto;
}
.zk-hub-link:hover{text-decoration:underline}

/* Respect reduced-motion preferences */
@media(prefers-reduced-motion:reduce){
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important}
}
