/* =====================================================================
   T4UHUB TOOLS — Premium Design System
   Vanilla CSS3 · Glassmorphism · Dark Mode · Mobile App UI
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root{
  --c-primary:#2563EB; --c-primary-d:#1d4ed8;
  --c-secondary:#60A5FA; --c-accent:#7C3AED;
  --c-dark:#0F172A; --c-gray:#1E293B; --c-white:#FFFFFF;

  --grad-brand:linear-gradient(135deg,#2563EB 0%,#7C3AED 100%);
  --grad-soft:linear-gradient(135deg,#60A5FA 0%,#7C3AED 100%);
  --grad-hero:radial-gradient(1200px 600px at 10% -10%,rgba(124,58,237,.25),transparent 60%),
              radial-gradient(1000px 500px at 110% 10%,rgba(37,99,235,.28),transparent 55%);

  /* Light theme surfaces */
  --bg:#f6f8fc; --bg-2:#eef2fb;
  --surface:#ffffff; --surface-2:#f3f6fd;
  --text:#0f172a; --text-2:#475569; --text-3:#94a3b8;
  --border:rgba(15,23,42,.10); --border-2:rgba(15,23,42,.06);
  --glass:rgba(255,255,255,.65); --glass-brd:rgba(255,255,255,.6);
  --shadow-sm:0 1px 2px rgba(15,23,42,.06),0 1px 1px rgba(15,23,42,.04);
  --shadow:0 8px 24px rgba(15,23,42,.08),0 2px 6px rgba(15,23,42,.05);
  --shadow-lg:0 24px 60px rgba(15,23,42,.14),0 8px 20px rgba(15,23,42,.08);
  --ring:0 0 0 4px rgba(37,99,235,.15);

  --r-sm:10px; --r:16px; --r-lg:22px; --r-xl:28px; --r-pill:999px;
  --fs-h1:clamp(2.2rem,5vw,4rem); --fs-h2:clamp(1.6rem,3.2vw,2.6rem);
  --container:1200px; --nav-h:68px; --bottom-h:64px;
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --ease:cubic-bezier(.22,1,.36,1);
}
[data-theme="dark"]{
  --bg:#0b1020; --bg-2:#0f172a;
  --surface:#111a2e; --surface-2:#152138;
  --text:#e8eefc; --text-2:#a8b6d4; --text-3:#6b7a9c;
  --border:rgba(148,163,184,.16); --border-2:rgba(148,163,184,.10);
  --glass:rgba(17,26,46,.6); --glass-brd:rgba(148,163,184,.18);
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow:0 10px 30px rgba(0,0,0,.45);
  --shadow-lg:0 30px 70px rgba(0,0,0,.6);
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--font);background:var(--bg);color:var(--text);
  line-height:1.6;font-size:16px;overflow-x:hidden;
  transition:background .4s var(--ease),color .3s var(--ease);
  padding-bottom:0;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}
ul{list-style:none}
:focus-visible{outline:none;box-shadow:var(--ring);border-radius:8px}
::selection{background:rgba(124,58,237,.25)}

/* scrollbar */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--border);border-radius:99px}
::-webkit-scrollbar-thumb:hover{background:var(--text-3)}

.container{max-width:var(--container);margin:0 auto;padding:0 22px}
.gradient-text{background:var(--grad-brand);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hidden{display:none!important}
.muted{color:var(--text-2)}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:9px;font-weight:600;font-size:.95rem;
  padding:12px 22px;border-radius:var(--r-pill);transition:.25s var(--ease);white-space:nowrap}
.btn svg{width:18px;height:18px}
.btn-primary{background:var(--grad-brand);color:#fff;box-shadow:0 10px 24px rgba(37,99,235,.35)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(124,58,237,.45)}
.btn-ghost{background:var(--surface);color:var(--text);border:1px solid var(--border);box-shadow:var(--shadow-sm)}
.btn-ghost:hover{transform:translateY(-2px);border-color:var(--c-primary);color:var(--c-primary)}
.btn-soft{background:var(--surface-2);color:var(--c-primary);font-weight:600}
.btn-soft:hover{background:var(--c-primary);color:#fff}
.btn-block{width:100%;justify-content:center}

/* ---------- Header ---------- */
.header{position:sticky;top:0;z-index:80;height:var(--nav-h);display:flex;align-items:center;
  background:var(--glass);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid var(--border-2);transition:.3s var(--ease)}
.header.scrolled{box-shadow:var(--shadow)}
.header .container{display:flex;align-items:center;gap:18px;width:100%}
.logo{display:flex;align-items:center;gap:11px;font-weight:800;font-size:1.18rem;letter-spacing:-.02em}
.logo-mark{width:38px;height:38px;border-radius:11px;background:var(--grad-brand);display:grid;place-items:center;
  color:#fff;font-weight:800;box-shadow:0 6px 16px rgba(37,99,235,.4);flex:none}
.logo small{display:block;font-size:.62rem;font-weight:600;color:var(--text-3);letter-spacing:.14em;text-transform:uppercase}
.nav-links{display:flex;gap:6px;margin-left:8px}
.nav-links a{padding:9px 14px;border-radius:var(--r-pill);font-weight:500;color:var(--text-2);transition:.2s}
.nav-links a:hover,.nav-links a.active{color:var(--c-primary);background:var(--surface-2)}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.icon-btn{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:var(--text-2);
  background:var(--surface-2);transition:.2s}
.icon-btn:hover{color:var(--c-primary);transform:translateY(-2px)}
.icon-btn svg{width:20px;height:20px}
.menu-toggle{display:none}

/* ---------- Header search ---------- */
.search-trigger{display:flex;align-items:center;gap:10px;background:var(--surface-2);
  border:1px solid var(--border-2);border-radius:var(--r-pill);padding:9px 16px;color:var(--text-3);
  min-width:230px;transition:.2s;font-size:.9rem}
.search-trigger:hover{border-color:var(--c-primary);color:var(--text-2)}
.search-trigger svg{width:17px;height:17px}
.search-trigger kbd{margin-left:auto;font-size:.7rem;background:var(--surface);border:1px solid var(--border);
  border-radius:6px;padding:2px 7px;color:var(--text-3)}

/* ---------- Search Modal ---------- */
.search-modal{position:fixed;inset:0;z-index:200;display:none;align-items:flex-start;justify-content:center;
  padding-top:9vh;background:rgba(8,12,24,.55);backdrop-filter:blur(6px)}
.search-modal.open{display:flex;animation:fade .2s}
.search-box{width:min(640px,92vw);background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r-lg);box-shadow:var(--shadow-lg);overflow:hidden;max-height:78vh;display:flex;flex-direction:column}
.search-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border-2)}
.search-head svg{width:22px;height:22px;color:var(--text-3);flex:none}
.search-head input{flex:1;border:none;background:none;font-size:1.1rem;color:var(--text)}
.search-head input:focus{outline:none}
.search-head .esc{font-size:.7rem;border:1px solid var(--border);border-radius:6px;padding:3px 8px;color:var(--text-3)}
.search-mic{color:var(--c-accent)!important;cursor:pointer}
.search-body{overflow-y:auto;padding:10px}
.search-section-label{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;
  color:var(--text-3);padding:10px 12px 6px}
.search-result{display:flex;align-items:center;gap:13px;padding:11px 13px;border-radius:12px;cursor:pointer;transition:.15s}
.search-result:hover,.search-result.active{background:var(--surface-2)}
.search-result .ico{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex:none;color:#fff}
.search-result .ico svg{width:18px;height:18px}
.search-result .meta b{display:block;font-weight:600;font-size:.95rem}
.search-result .meta span{font-size:.78rem;color:var(--text-3)}
.search-result .cat-pill{margin-left:auto;font-size:.7rem;color:var(--text-3);background:var(--surface-2);padding:3px 10px;border-radius:99px}
.chip-row{display:flex;flex-wrap:wrap;gap:8px;padding:6px 12px 12px}
.chip{font-size:.82rem;padding:7px 14px;border-radius:99px;background:var(--surface-2);color:var(--text-2);
  border:1px solid var(--border-2);transition:.15s;cursor:pointer}
.chip:hover{color:var(--c-primary);border-color:var(--c-primary)}
.no-results{text-align:center;padding:40px;color:var(--text-3)}

/* ---------- Hero ---------- */
.hero{position:relative;padding:74px 0 60px;text-align:center;background:var(--grad-hero);overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;background:
  radial-gradient(circle at 50% 120%,rgba(37,99,235,.12),transparent 60%);pointer-events:none}
.badge{display:inline-flex;align-items:center;gap:8px;font-size:.8rem;font-weight:600;
  padding:7px 16px;border-radius:99px;background:var(--glass);border:1px solid var(--glass-brd);
  backdrop-filter:blur(8px);box-shadow:var(--shadow-sm);margin-bottom:24px}
.badge .dot{width:8px;height:8px;border-radius:99px;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.2);animation:pulse 2s infinite}
.hero h1{font-size:var(--fs-h1);font-weight:800;letter-spacing:-.03em;line-height:1.05;margin-bottom:20px}
.hero p.sub{font-size:clamp(1rem,2vw,1.25rem);color:var(--text-2);max-width:640px;margin:0 auto 30px}
.hero-cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-bottom:34px}
.hero-search{max-width:560px;margin:0 auto 30px}
.trust{display:flex;gap:26px;justify-content:center;flex-wrap:wrap;color:var(--text-2);font-size:.86rem}
.trust span{display:inline-flex;align-items:center;gap:7px}
.trust svg{width:16px;height:16px;color:#22c55e}

/* floating orbs */
.orb{position:absolute;border-radius:50%;filter:blur(50px);opacity:.5;animation:float 9s ease-in-out infinite}
.orb1{width:260px;height:260px;background:#7C3AED;top:-60px;left:-40px}
.orb2{width:320px;height:320px;background:#2563EB;bottom:-120px;right:-60px;animation-delay:-3s}

/* ---------- Section ---------- */
.section{padding:62px 0}
.section-head{text-align:center;max-width:660px;margin:0 auto 42px}
.section-head .eyebrow{font-size:.8rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--c-accent);margin-bottom:10px}
.section-head h2{font-size:var(--fs-h2);font-weight:800;letter-spacing:-.02em;margin-bottom:12px}
.section-head p{color:var(--text-2)}
.section-flex{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:30px;flex-wrap:wrap}
.section-flex h2{font-size:var(--fs-h2);font-weight:800;letter-spacing:-.02em}
.section-flex p{color:var(--text-2);margin-top:4px}
.view-all{color:var(--c-primary);font-weight:600;display:inline-flex;align-items:center;gap:6px}
.view-all:hover{gap:10px}

/* ---------- Cards / Grids ---------- */
.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px}
.tool-card{position:relative;background:var(--surface);border:1px solid var(--border-2);border-radius:var(--r-lg);
  padding:22px;transition:.3s var(--ease);overflow:hidden;cursor:pointer;box-shadow:var(--shadow-sm)}
.tool-card::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
  background:var(--grad-brand);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:.3s}
.tool-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.tool-card:hover::before{opacity:1}
.tool-ico{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;color:#fff;margin-bottom:16px;
  box-shadow:0 8px 18px rgba(37,99,235,.25);transition:.3s}
.tool-card:hover .tool-ico{transform:scale(1.08) rotate(-4deg)}
.tool-ico svg{width:24px;height:24px}
.tool-card h3{font-size:1.05rem;font-weight:700;margin-bottom:6px;letter-spacing:-.01em}
.tool-card p{font-size:.85rem;color:var(--text-2);line-height:1.5}
.tool-card .fav{position:absolute;top:16px;right:16px;color:var(--text-3);transition:.2s;z-index:2}
.tool-card .fav:hover{color:var(--c-accent);transform:scale(1.2)}
.tool-card .fav.on{color:var(--c-accent)}
.tool-card .fav svg{width:20px;height:20px}
.tag{position:absolute;top:16px;right:16px;font-size:.66rem;font-weight:700;padding:4px 10px;border-radius:99px;
  text-transform:uppercase;letter-spacing:.05em}
.tag.hot{background:rgba(239,68,68,.12);color:#ef4444}
.tag.new{background:rgba(34,197,94,.12);color:#16a34a}

/* category cards */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.cat-card{display:flex;gap:16px;align-items:center;background:var(--surface);border:1px solid var(--border-2);
  border-radius:var(--r-lg);padding:22px;transition:.3s var(--ease);cursor:pointer;box-shadow:var(--shadow-sm)}
.cat-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg);border-color:transparent}
.cat-card .cat-ico{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;color:#fff;flex:none}
.cat-card .cat-ico svg{width:26px;height:26px}
.cat-card h3{font-size:1.08rem;font-weight:700}
.cat-card span{font-size:.82rem;color:var(--text-3)}

/* features */
.feature-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px}
.feature{background:var(--surface);border:1px solid var(--border-2);border-radius:var(--r-lg);padding:28px;
  box-shadow:var(--shadow-sm);transition:.3s var(--ease)}
.feature:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.feature .f-ico{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;margin-bottom:18px;
  background:var(--surface-2);color:var(--c-primary)}
.feature .f-ico svg{width:25px;height:25px}
.feature h3{font-size:1.12rem;font-weight:700;margin-bottom:8px}
.feature p{color:var(--text-2);font-size:.9rem}

/* stats */
.stats{background:var(--grad-brand);border-radius:var(--r-xl);padding:48px 32px;color:#fff;
  display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:center;box-shadow:var(--shadow-lg);position:relative;overflow:hidden}
.stats::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 0%,rgba(255,255,255,.18),transparent 50%)}
.stat b{display:block;font-size:clamp(1.8rem,4vw,2.8rem);font-weight:800;letter-spacing:-.02em}
.stat span{font-size:.85rem;opacity:.9}

/* how it works */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px;counter-reset:s}
.step{position:relative;background:var(--surface);border:1px solid var(--border-2);border-radius:var(--r-lg);padding:30px 24px;box-shadow:var(--shadow-sm)}
.step .num{counter-increment:s;width:44px;height:44px;border-radius:13px;background:var(--grad-brand);color:#fff;
  display:grid;place-items:center;font-weight:800;font-size:1.1rem;margin-bottom:16px}
.step .num::before{content:counter(s)}
.step h3{font-size:1.08rem;font-weight:700;margin-bottom:8px}
.step p{color:var(--text-2);font-size:.9rem}

/* testimonials */
.testi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.testi{background:var(--surface);border:1px solid var(--border-2);border-radius:var(--r-lg);padding:26px;box-shadow:var(--shadow-sm)}
.testi .stars{color:#f59e0b;margin-bottom:12px;letter-spacing:2px}
.testi p{color:var(--text-2);margin-bottom:18px;font-size:.94rem}
.testi .who{display:flex;align-items:center;gap:12px}
.testi .av{width:42px;height:42px;border-radius:99px;background:var(--grad-soft);display:grid;place-items:center;color:#fff;font-weight:700}
.testi .who b{font-size:.9rem}.testi .who span{font-size:.78rem;color:var(--text-3)}

/* FAQ */
.faq-list{max-width:780px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.faq-item{background:var(--surface);border:1px solid var(--border-2);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow-sm)}
.faq-q{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px;
  font-weight:600;text-align:left;font-size:1rem;color:var(--text)}
.faq-q svg{width:20px;height:20px;color:var(--text-3);transition:.3s;flex:none}
.faq-item.open .faq-q svg{transform:rotate(45deg);color:var(--c-primary)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s var(--ease)}
.faq-a p{padding:0 22px 20px;color:var(--text-2)}

/* newsletter */
.newsletter{background:var(--c-dark);border-radius:var(--r-xl);padding:50px 34px;text-align:center;color:#fff;position:relative;overflow:hidden}
.newsletter::before{content:"";position:absolute;inset:0;background:var(--grad-hero);opacity:.6}
.newsletter>*{position:relative}
.newsletter h2{font-size:var(--fs-h2);font-weight:800;margin-bottom:10px}
.newsletter p{opacity:.85;max-width:480px;margin:0 auto 26px}
.nl-form{display:flex;gap:10px;max-width:440px;margin:0 auto}
.nl-form input{flex:1;padding:14px 18px;border-radius:var(--r-pill);border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.08);color:#fff;font-size:.95rem}
.nl-form input::placeholder{color:rgba(255,255,255,.6)}

/* ad slot */
.ad-slot{border:1px dashed var(--border);border-radius:var(--r);background:var(--surface-2);
  color:var(--text-3);text-align:center;padding:18px;font-size:.8rem;letter-spacing:.05em}

/* ---------- Tool Page ---------- */
.breadcrumb{display:flex;align-items:center;gap:8px;font-size:.85rem;color:var(--text-3);padding:18px 0;flex-wrap:wrap}
.breadcrumb a:hover{color:var(--c-primary)}
.breadcrumb svg{width:14px;height:14px}
.tool-hero{display:flex;align-items:flex-start;gap:20px;margin-bottom:8px}
.tool-hero .big-ico{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;color:#fff;flex:none;box-shadow:var(--shadow)}
.tool-hero .big-ico svg{width:32px;height:32px}
.tool-hero h1{font-size:clamp(1.7rem,3.5vw,2.4rem);font-weight:800;letter-spacing:-.02em}
.tool-hero p{color:var(--text-2);margin-top:6px;max-width:640px}
.tool-layout{display:grid;grid-template-columns:1fr 300px;gap:28px;align-items:start;margin-top:24px}
.tool-main{min-width:0}
.tool-panel{background:var(--surface);border:1px solid var(--border-2);border-radius:var(--r-lg);
  padding:26px;box-shadow:var(--shadow);margin-bottom:24px}
.dropzone{border:2px dashed var(--border);border-radius:var(--r);padding:42px 24px;text-align:center;
  background:var(--surface-2);transition:.25s;cursor:pointer}
.dropzone.drag{border-color:var(--c-primary);background:rgba(37,99,235,.06);transform:scale(1.01)}
.dropzone svg{width:46px;height:46px;color:var(--c-primary);margin:0 auto 14px}
.dropzone h4{font-size:1.05rem;margin-bottom:6px}
.dropzone p{color:var(--text-3);font-size:.85rem}
.dropzone .limit{margin-top:12px;font-size:.75rem;color:var(--text-3)}
.field{margin-bottom:18px}
.field label{display:block;font-weight:600;font-size:.88rem;margin-bottom:7px}
.field textarea,.field input[type=text],.field input[type=number],.field select{
  width:100%;padding:13px 15px;border-radius:var(--r-sm);border:1px solid var(--border);
  background:var(--surface-2);color:var(--text);font-size:.95rem;font-family:inherit;resize:vertical}
.field textarea{min-height:150px;line-height:1.6}
.field textarea:focus,.field input:focus,.field select:focus{outline:none;border-color:var(--c-primary);box-shadow:var(--ring)}
.field .hint{font-size:.78rem;color:var(--text-3);margin-top:5px}
.controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:18px 0}
.controls .btn{flex:0 0 auto}
.range-row{display:flex;align-items:center;gap:14px}
.range-row input[type=range]{flex:1;accent-color:var(--c-primary)}
.range-row output{font-weight:700;color:var(--c-primary);min-width:48px;text-align:right}
.result-box{background:var(--surface-2);border:1px solid var(--border-2);border-radius:var(--r);padding:18px;
  margin-top:18px;font-family:'SF Mono',ui-monospace,Menlo,Consolas,monospace;font-size:.9rem;
  white-space:pre-wrap;word-break:break-word;max-height:340px;overflow:auto}
.stat-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.mini-stat{flex:1;min-width:90px;background:var(--surface-2);border:1px solid var(--border-2);border-radius:var(--r-sm);
  padding:14px;text-align:center}
.mini-stat b{display:block;font-size:1.5rem;font-weight:800;color:var(--c-primary)}
.mini-stat span{font-size:.75rem;color:var(--text-3)}
.progress{height:8px;background:var(--surface-2);border-radius:99px;overflow:hidden;margin:14px 0}
.progress>i{display:block;height:100%;width:0;background:var(--grad-brand);border-radius:99px;transition:width .3s}
.preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin-top:16px}
.preview-grid figure{border:1px solid var(--border-2);border-radius:var(--r-sm);overflow:hidden;position:relative;background:var(--surface-2)}
.preview-grid img{width:100%;height:110px;object-fit:cover}
.preview-grid figcaption{font-size:.7rem;padding:6px;color:var(--text-3);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.color-out{width:100%;height:80px;border-radius:var(--r-sm);border:1px solid var(--border)}
.swatch{display:inline-block;width:26px;height:26px;border-radius:7px;border:1px solid var(--border);vertical-align:middle}

/* sidebar */
.side-card{background:var(--surface);border:1px solid var(--border-2);border-radius:var(--r-lg);padding:20px;box-shadow:var(--shadow-sm);margin-bottom:18px}
.side-card h4{font-size:.95rem;font-weight:700;margin-bottom:14px;display:flex;align-items:center;gap:8px}
.side-card h4 svg{width:18px;height:18px;color:var(--c-primary)}
.related-link{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;transition:.15s;font-size:.88rem}
.related-link:hover{background:var(--surface-2)}
.related-link .ri{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:#fff;flex:none}
.related-link .ri svg{width:15px;height:15px}

/* article / SEO content */
.article{max-width:820px;margin:38px 0}
.article h2{font-size:1.6rem;font-weight:800;margin:32px 0 12px;letter-spacing:-.01em}
.article h3{font-size:1.2rem;font-weight:700;margin:24px 0 10px}
.article p{color:var(--text-2);margin-bottom:14px}
.article ul.bullets{margin:0 0 16px;padding-left:4px}
.article ul.bullets li{position:relative;padding-left:28px;margin-bottom:9px;color:var(--text-2)}
.article ul.bullets li::before{content:"";position:absolute;left:4px;top:9px;width:8px;height:8px;border-radius:3px;background:var(--grad-brand)}
.article ol.steps-list{counter-reset:n;padding:0;margin:0 0 16px}
.article ol.steps-list li{counter-increment:n;position:relative;padding:0 0 14px 44px;color:var(--text-2)}
.article ol.steps-list li::before{content:counter(n);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:9px;
  background:var(--surface-2);color:var(--c-primary);font-weight:800;display:grid;place-items:center;font-size:.85rem}
.article ol.steps-list li b{color:var(--text)}

/* ---------- Static pages ---------- */
.page-hero{padding:54px 0 28px;text-align:center}
.page-hero h1{font-size:clamp(2rem,4vw,3rem);font-weight:800;letter-spacing:-.02em;margin-bottom:12px}
.page-hero p{color:var(--text-2);max-width:600px;margin:0 auto}
.prose{max-width:780px;margin:0 auto 40px}
.prose h2{font-size:1.5rem;font-weight:800;margin:28px 0 12px}
.prose h3{font-size:1.15rem;font-weight:700;margin:20px 0 8px}
.prose p{color:var(--text-2);margin-bottom:14px}
.prose ul{margin:0 0 16px 20px;list-style:disc;color:var(--text-2)}
.prose ul li{margin-bottom:7px}
.prose a{color:var(--c-primary);font-weight:500}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;max-width:900px;margin:0 auto}
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px}
.blog-card{background:var(--surface);border:1px solid var(--border-2);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-sm);transition:.3s var(--ease);cursor:pointer}
.blog-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}
.blog-card .thumb{height:160px;background:var(--grad-soft);display:grid;place-items:center;color:#fff;font-weight:700;font-size:1.1rem;padding:20px;text-align:center}
.blog-card .body{padding:20px}
.blog-card .body span{font-size:.75rem;color:var(--c-accent);font-weight:600;text-transform:uppercase;letter-spacing:.05em}
.blog-card .body h3{font-size:1.08rem;font-weight:700;margin:8px 0}
.blog-card .body p{font-size:.85rem;color:var(--text-2)}

/* ---------- Footer ---------- */
.footer{background:var(--c-dark);color:#cbd5e1;padding:56px 0 26px;margin-top:50px}
[data-theme="dark"] .footer{background:#070b16}
.footer-top{display:grid;grid-template-columns:1.6fr repeat(4,1fr);gap:34px;margin-bottom:40px}
.footer .logo{color:#fff;margin-bottom:16px}
.footer-about p{font-size:.88rem;color:#94a3b8;margin-bottom:18px;max-width:280px}
.socials{display:flex;gap:10px}
.socials a{width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.07);display:grid;place-items:center;color:#cbd5e1;transition:.2s}
.socials a:hover{background:var(--c-primary);color:#fff;transform:translateY(-3px)}
.socials svg{width:18px;height:18px}
.footer-col h4{color:#fff;font-size:.92rem;font-weight:700;margin-bottom:14px}
.footer-col a{display:block;font-size:.86rem;color:#94a3b8;padding:5px 0;transition:.15s}
.footer-col a:hover{color:#fff;padding-left:4px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding-top:22px;display:flex;justify-content:space-between;
  align-items:center;gap:14px;flex-wrap:wrap;font-size:.82rem;color:#94a3b8}

/* ---------- Mobile App UI ---------- */
.mobile-bar{display:none}
.fab{display:none}
.drawer{position:fixed;inset:0;z-index:150;visibility:hidden;pointer-events:none}
.drawer .scrim{position:absolute;inset:0;background:rgba(8,12,24,.5);opacity:0;transition:.3s}
.drawer .panel{position:absolute;top:0;left:0;bottom:0;width:min(300px,82vw);background:var(--surface);
  transform:translateX(-100%);transition:.35s var(--ease);box-shadow:var(--shadow-lg);padding:22px;overflow-y:auto}
.drawer.open{visibility:visible;pointer-events:auto}
.drawer.open .scrim{opacity:1}
.drawer.open .panel{transform:none}
.drawer .logo{margin-bottom:24px}
.drawer nav a{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:12px;font-weight:500;color:var(--text-2);margin-bottom:4px}
.drawer nav a:hover{background:var(--surface-2);color:var(--c-primary)}
.drawer nav a svg{width:20px;height:20px}

/* skeleton */
.skeleton{background:linear-gradient(90deg,var(--surface-2) 25%,var(--border-2) 50%,var(--surface-2) 75%);
  background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:var(--r-sm)}

/* toast */
.toast-wrap{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:300;display:flex;flex-direction:column;gap:10px;align-items:center}
.toast{background:var(--c-dark);color:#fff;padding:13px 22px;border-radius:var(--r-pill);box-shadow:var(--shadow-lg);
  font-size:.9rem;font-weight:500;display:flex;align-items:center;gap:10px;animation:toastin .3s var(--ease)}
.toast svg{width:18px;height:18px;color:#22c55e}

/* swipe categories (mobile) */
.swipe-cats{display:none}

/* ---------- Animations ---------- */
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.4)}50%{box-shadow:0 0 0 6px rgba(34,197,94,0)}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-26px)}}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
@keyframes toastin{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.reveal{opacity:0;transform:translateY(24px)}
.reveal.in{opacity:1;transform:none;transition:.7s var(--ease)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- Responsive ---------- */
@media(max-width:980px){
  .footer-top{grid-template-columns:1fr 1fr}
  .tool-layout{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
  .contact-grid{grid-template-columns:1fr}
}
@media(max-width:820px){
  .nav-links,.search-trigger{display:none}
  .menu-toggle{display:grid}
  body{padding-bottom:var(--bottom-h)}
  .header{height:60px}
  /* Mobile app look */
  .mobile-bar{display:flex;position:fixed;bottom:0;left:0;right:0;height:var(--bottom-h);z-index:90;
    background:var(--glass);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
    border-top:1px solid var(--border-2);justify-content:space-around;align-items:center;padding:0 6px}
  .mobile-bar a{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:.65rem;color:var(--text-3);
    flex:1;padding:6px 0;border-radius:12px;transition:.2s;font-weight:500}
  .mobile-bar a svg{width:22px;height:22px}
  .mobile-bar a.active{color:var(--c-primary)}
  .mobile-bar a.active svg{transform:translateY(-1px)}
  .fab{display:grid;place-items:center;position:fixed;right:18px;bottom:calc(var(--bottom-h) + 16px);z-index:95;
    width:58px;height:58px;border-radius:18px;background:var(--grad-brand);color:#fff;
    box-shadow:0 12px 28px rgba(124,58,237,.5);transition:.25s var(--ease)}
  .fab:hover,.fab:active{transform:scale(1.08) rotate(90deg)}
  .fab svg{width:26px;height:26px}
  .swipe-cats{display:flex;gap:9px;overflow-x:auto;padding:4px 22px 14px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .swipe-cats::-webkit-scrollbar{display:none}
  .swipe-cats .scat{flex:none;font-size:.82rem;font-weight:600;padding:9px 17px;border-radius:99px;
    background:var(--surface);border:1px solid var(--border-2);color:var(--text-2);box-shadow:var(--shadow-sm);white-space:nowrap}
  .swipe-cats .scat.active{background:var(--grad-brand);color:#fff;border-color:transparent}
  .tool-grid{grid-template-columns:repeat(2,1fr);gap:13px}
  .tool-card{padding:16px;border-radius:var(--r)}
  .tool-ico{width:44px;height:44px;margin-bottom:12px}
  .tool-card h3{font-size:.92rem}
  .tool-card p{display:none}
  .cat-grid{grid-template-columns:1fr}
  .hero{padding:40px 0 36px}
  .section{padding:40px 0}
  .stats{grid-template-columns:repeat(2,1fr);padding:32px 20px}
  .footer-top{grid-template-columns:1fr 1fr;gap:24px}
  .footer{margin-bottom:var(--bottom-h)}
  .header-actions .ht-hide{display:none}
}
@media(max-width:420px){
  .hero-cta{flex-direction:column}
  .hero-cta .btn{width:100%;justify-content:center}
  .nl-form{flex-direction:column}
  .footer-bottom{flex-direction:column;text-align:center}
}

/* ===================== MEGA MENU (header navigation) ===================== */
.nav-links{align-items:center}
.nav-item{position:relative;display:flex;align-items:center}
.nav-mega-trigger{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:var(--r-pill);
  font-weight:500;font-size:.95rem;color:var(--text-2);transition:.2s;cursor:pointer;white-space:nowrap}
.nav-mega-trigger:hover{color:var(--c-primary);background:var(--surface-2)}
.nav-mega-trigger .mini{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;color:#fff}
.nav-mega-trigger .mini svg{width:13px;height:13px}
.nav-mega-trigger .cnt{font-size:.66rem;font-weight:700;background:var(--surface-2);padding:2px 7px;border-radius:99px;color:var(--text-3)}
.nav-mega-trigger .chev{width:13px;height:13px;transition:.25s var(--ease);transform:rotate(90deg)}
.nav-item:hover .nav-mega-trigger,.nav-item:focus-within .nav-mega-trigger{color:var(--c-primary);background:var(--surface-2)}
.nav-item:hover .nav-mega-trigger .chev,.nav-item:focus-within .nav-mega-trigger .chev{transform:rotate(270deg)}
.mega{position:absolute;top:calc(100% + 12px);left:50%;transform:translateX(-50%) translateY(10px) scale(.98);
  transform-origin:top center;width:min(640px,92vw);background:var(--glass);backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);border:1px solid var(--glass-brd);border-radius:var(--r-lg);
  box-shadow:var(--shadow-lg);padding:18px;opacity:0;visibility:hidden;pointer-events:none;
  transition:.24s var(--ease);z-index:95;max-height:74vh;overflow-y:auto}
.mega::before{content:"";position:absolute;top:-14px;left:0;right:0;height:14px}
.nav-item:hover .mega,.nav-item:focus-within .mega{opacity:1;visibility:visible;pointer-events:auto;
  transform:translateX(-50%) translateY(0) scale(1)}
.mega-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;
  padding-bottom:12px;border-bottom:1px solid var(--border-2)}
.mega-head .mh-l{display:flex;align-items:center;gap:11px}
.mega-head .mh-ico{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;color:#fff;flex:none}
.mega-head .mh-ico svg{width:20px;height:20px}
.mega-head b{font-size:1rem;display:block}
.mega-head span{font-size:.78rem;color:var(--text-3)}
.mega-head .mh-all{font-size:.82rem;font-weight:600;color:var(--c-primary);display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.mega-head .mh-all:hover{gap:8px}
.mega-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}
.mega-link{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:9px;font-size:.83rem;
  font-weight:500;color:var(--text-2);transition:.15s;min-width:0}
.mega-link:hover{background:var(--surface);color:var(--c-primary);box-shadow:var(--shadow-sm)}
.mega-link .ml-ico{width:25px;height:25px;border-radius:7px;display:grid;place-items:center;color:#fff;flex:none;opacity:.92}
.mega-link .ml-ico svg{width:13px;height:13px}
.mega-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mega-link .mtag{margin-left:auto;width:6px;height:6px;border-radius:99px;flex:none}
.mega-link .mtag.hot{background:#ef4444}.mega-link .mtag.new{background:#22c55e}
@media(max-width:1080px){.nav-mega-trigger .cnt{display:none}.nav-mega-trigger{padding:9px 11px}}

/* drawer category tabs (mobile) */
.drawer-cats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 18px}
.drawer-cat{display:flex;align-items:center;gap:9px;padding:11px;border-radius:12px;background:var(--surface-2);
  font-size:.84rem;font-weight:600;color:var(--text-2)}
.drawer-cat .dc-ico{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;color:#fff;flex:none}
.drawer-cat .dc-ico svg{width:15px;height:15px}
.drawer-cat .dc-cnt{margin-left:auto;font-size:.7rem;color:var(--text-3)}
.drawer-section-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--text-3);margin:6px 4px}

/* ===================== BATCH PROCESSING UI ===================== */
.batch-head{display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin:16px 0 6px}
.batch-stats{display:flex;gap:10px;flex-wrap:wrap}
.bstat{background:var(--surface-2);border:1px solid var(--border-2);border-radius:12px;padding:9px 14px;text-align:center;min-width:74px}
.bstat b{display:block;font-size:1.25rem;font-weight:800;color:var(--c-primary);line-height:1.1}
.bstat span{font-size:.72rem;color:var(--text-3)}
.batch-bar{height:10px;background:var(--surface-2);border-radius:99px;overflow:hidden;margin:12px 0}
.batch-bar>i{display:block;height:100%;width:0;background:var(--grad-brand);border-radius:99px;transition:width .25s var(--ease)}
.batch-list{max-height:360px;overflow-y:auto;border:1px solid var(--border-2);border-radius:var(--r);background:var(--surface)}
.brow{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--border-2);font-size:.85rem;cursor:pointer;transition:.12s}
.brow:last-child{border-bottom:none}
.brow:hover{background:var(--surface-2)}
.brow .bname{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.brow .bsize{color:var(--text-3);font-size:.76rem;flex:none}
.bchip{font-size:.68rem;font-weight:700;padding:4px 10px;border-radius:99px;flex:none}
.bchip.q{background:var(--surface-2);color:var(--text-3)}
.bchip.p{background:rgba(37,99,235,.14);color:var(--c-primary)}
.bchip.d{background:rgba(34,197,94,.14);color:#16a34a}
.bchip.f{background:rgba(239,68,68,.14);color:#ef4444}

/* ===================== PREMIUM HOMEPAGE v2 ===================== */
.section{padding:46px 0}
.hero-rich{padding:46px 0 38px}
.hero-rich .badge b{color:var(--c-primary);font-weight:800}
.hero-upload{display:flex;align-items:center;gap:16px;max-width:580px;margin:20px auto 4px;padding:16px 18px;
  background:var(--surface);border:1.5px dashed var(--c-primary);border-radius:var(--r-lg);box-shadow:var(--shadow);text-align:left;transition:.25s var(--ease)}
.hero-upload:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);background:rgba(37,99,235,.05)}
.hero-upload>svg{width:30px;height:30px;color:var(--c-primary);flex:none}
.hero-upload b{display:block;font-size:.98rem}
.hero-upload>div span{font-size:.8rem;color:var(--text-3)}
.hero-upload .hu-btn{margin-left:auto;background:var(--grad-brand);color:#fff;padding:11px 20px;border-radius:var(--r-pill);font-weight:700;font-size:.85rem;white-space:nowrap}
.pop-shortcuts{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;margin:20px auto 0;max-width:720px}
.pop-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:var(--r-pill);background:var(--surface);border:1px solid var(--border-2);box-shadow:var(--shadow-sm);font-size:.85rem;font-weight:600;color:var(--text-2);transition:.2s}
.pop-pill:hover{color:var(--c-primary);transform:translateY(-2px);border-color:var(--c-primary)}
.pop-pill .pp-ico{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;color:#fff;flex:none}
.pop-pill .pp-ico svg{width:13px;height:13px}
.recent-row{margin-top:16px;font-size:.83rem;color:var(--text-3);display:flex;gap:12px;flex-wrap:wrap;justify-content:center;align-items:center}
.recent-row .rr-label{font-weight:700;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem}
.recent-row a{color:var(--c-primary);font-weight:600}
.recent-row a:hover{text-decoration:underline}
.section-stats{padding-top:34px}
.stats{grid-template-columns:repeat(5,1fr)}
b.tick{animation:tickflash .5s var(--ease)}
@keyframes tickflash{0%{color:#22c55e;transform:translateY(-1px)}100%{}}
/* live activity */
.live-activity{display:inline-flex;align-items:center;gap:9px;font-size:.86rem;color:var(--text-2);
  background:var(--surface-2);border:1px solid var(--border-2);border-radius:var(--r-pill);padding:8px 16px}
.live-activity b{color:var(--c-primary);font-weight:800}
.lv-dot{width:9px;height:9px;border-radius:99px;background:#22c55e;animation:pulse 2s infinite;flex:none}
/* trending today */
.trend-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.trend-card{display:flex;gap:14px;align-items:center;background:var(--surface);border:1px solid var(--border-2);border-radius:var(--r-lg);padding:18px;box-shadow:var(--shadow-sm);transition:.3s var(--ease)}
.trend-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.trend-card .tool-ico{width:48px;height:48px;margin:0;flex:none}
.trend-card .tc-body{min-width:0;flex:1}
.tc-top{display:flex;align-items:center;gap:8px;justify-content:space-between}
.tc-top h3{font-size:1rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-badge{font-size:.64rem;font-weight:700;background:rgba(239,68,68,.12);color:#ef4444;padding:3px 8px;border-radius:99px;white-space:nowrap;flex:none}
.tc-meta{font-size:.8rem;color:var(--text-3);margin-top:5px}
.tc-meta b{color:var(--text-2)}
.tc-growth{color:#16a34a;font-weight:800;margin-left:6px}
/* comparison */
.cmp-wrap{max-width:700px;margin:0 auto;overflow:hidden;border-radius:var(--r-lg);border:1px solid var(--border-2);box-shadow:var(--shadow)}
.cmp-table{width:100%;border-collapse:collapse;background:var(--surface)}
.cmp-table th,.cmp-table td{padding:15px 18px;text-align:left;border-bottom:1px solid var(--border-2);font-size:.92rem}
.cmp-table thead th{font-weight:700;background:var(--surface-2)}
.cmp-table th.us,.cmp-table td.us{text-align:center;background:rgba(37,99,235,.07);color:var(--c-primary);font-weight:700}
.cmp-table td.no{text-align:center;color:var(--text-3)}
.cmp-table td.us svg{width:20px;height:20px;display:inline;vertical-align:middle}
.cmp-table tbody tr:last-child td{border-bottom:none}
/* collections */
.collection{margin-bottom:26px}
.coll-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.coll-l{display:flex;align-items:center;gap:12px}
.coll-ico{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;color:#fff;flex:none}
.coll-ico svg{width:22px;height:22px}
.coll-head b{font-size:1.08rem;display:block}
.coll-head .coll-l span{font-size:.8rem;color:var(--text-3)}
.coll-row{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 12px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.coll-item{flex:none;width:188px;display:flex;align-items:center;gap:10px;padding:12px;border-radius:var(--r);background:var(--surface);border:1px solid var(--border-2);box-shadow:var(--shadow-sm);font-size:.85rem;font-weight:600;color:var(--text-2);transition:.2s}
.coll-item:hover{transform:translateY(-3px);color:var(--c-primary);box-shadow:var(--shadow)}
.coll-item .ci-ico{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;color:#fff;flex:none}
.coll-item .ci-ico svg{width:15px;height:15px}
.coll-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cta-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
/* tool page live bar */
.tool-livebar{margin:14px 0 2px}
.tool-livestats{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.tool-livestats .mini-stat{flex:1;min-width:118px}
.tool-livestats .mini-stat b{color:var(--c-primary)}
/* install banner */
.install-banner{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--bottom-h) + 14px);z-index:120;
  display:flex;align-items:center;gap:13px;background:var(--c-dark);color:#fff;padding:12px 16px;border-radius:var(--r-lg);box-shadow:var(--shadow-lg);max-width:92vw}
.install-banner .ib-ico{width:38px;height:38px;border-radius:11px;background:var(--grad-brand);display:grid;place-items:center;font-weight:800;flex:none;color:#fff}
.install-banner b{font-size:.9rem}.install-banner small{display:block;opacity:.7;font-size:.74rem}
.install-banner .ib-btn{background:#fff;color:var(--c-dark);font-weight:700;padding:8px 15px;border-radius:99px;font-size:.82rem;white-space:nowrap}
.install-banner .ib-x{margin-left:2px;opacity:.6;cursor:pointer;font-size:1.3rem;line-height:1;background:none;color:#fff;padding:0 4px}
.profile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin:18px 0}
@media(max-width:820px){
  .stats{grid-template-columns:repeat(2,1fr)}
  .trend-grid{grid-template-columns:1fr}
  .hero-upload{flex-wrap:wrap}.hero-upload .hu-btn{margin-left:0;width:100%;text-align:center}
  .cmp-table th,.cmp-table td{padding:12px 12px;font-size:.84rem}
}

/* ===================== FILE GRID / BATCH CARDS (functionality UI) ===================== */
.bc-row{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end;margin-bottom:10px}
.fgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px;margin-top:14px}
.fcard{position:relative;display:flex;gap:12px;background:var(--surface);border:1px solid var(--border-2);border-radius:var(--r);padding:12px;box-shadow:var(--shadow-sm)}
.fc-check{position:absolute;top:8px;right:8px;z-index:2;margin:0}
.fc-check input{width:18px;height:18px;accent-color:var(--c-primary);cursor:pointer}
.fc-thumb{width:74px;height:74px;border-radius:10px;overflow:hidden;background:var(--surface-2);flex:none;display:grid;place-items:center}
.fc-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.fc-noimg{color:var(--text-3);font-weight:700;font-size:1.2rem}
.fc-body{min-width:0;flex:1}
.fc-name{font-weight:600;font-size:.86rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:22px}
.fc-meta{font-size:.76rem;color:var(--text-3);margin-top:2px}
.fc-est{font-size:.76rem;color:var(--c-primary);margin-top:6px;font-weight:600;min-height:1em}
.fc-result{margin-top:8px}
.cmp-bars{display:flex;flex-direction:column;gap:4px;margin-bottom:5px}
.cbar{position:relative;background:var(--surface-2);border-radius:6px;height:19px;overflow:hidden}
.cbar i{position:absolute;left:0;top:0;height:100%;background:var(--grad-brand);border-radius:6px}
.cbar span{position:relative;z-index:1;font-size:.68rem;line-height:19px;padding-left:7px;color:var(--text);font-weight:600}
.fc-saved{font-size:.78rem;font-weight:700;color:#16a34a}
.fc-foot{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.fc-actions{display:flex;gap:5px;margin-left:auto}
.fc-btn{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:var(--surface-2);color:var(--text-2);transition:.15s;border:none;cursor:pointer}
.fc-btn:hover{background:var(--c-primary);color:#fff}
.fc-btn svg{width:15px;height:15px}
.fc-err{font-size:.74rem;color:#ef4444;margin-top:6px}
@media(max-width:560px){.fgrid{grid-template-columns:1fr}.bc-row{gap:10px}.bc-row .field{flex:1 1 100%}.fc-thumb{width:62px;height:62px}}

/* ===================== GLOBAL STANDARD: cleanup notice, live users, tap sizes ===================== */
.cleanup-note{display:flex;align-items:center;gap:9px;font-size:.8rem;color:var(--text-2);background:var(--surface-2);border:1px solid var(--border-2);border-radius:10px;padding:9px 13px;margin:10px 0}
.cleanup-note svg{width:16px;height:16px;color:#16a34a;flex:none}
.cleanup-note b{color:var(--c-primary)}
.users-online{display:inline-flex;align-items:center;gap:8px}
/* touch targets (mobile-first) */
@media(max-width:820px){
  .mobile-bar a{min-height:48px}
  .btn{min-height:44px}
  .fc-btn{min-width:38px;min-height:38px}
  .field input,.field select,.field textarea{min-height:44px}
  .dropzone{padding:30px 18px}
}

/* ===================== PDF MERGE / SPLIT (multi-file, thumbnails, reorder) ===================== */
.pdf-file{border:1px solid var(--border-2);border-radius:var(--r);padding:12px;margin-bottom:12px;background:var(--surface);box-shadow:var(--shadow-sm)}
.pdf-file-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pdf-file-head .pf-ico{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#ef4444,#f97316);flex:none}
.pdf-file-head .pf-ico svg{width:17px;height:17px}
.pdf-file-head .pf-name{font-weight:600;font-size:.86rem;flex:1;min-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pdf-file-head .pf-meta{font-size:.76rem;color:var(--text-3)}
.pf-actions{display:flex;gap:5px;margin-left:auto}
.pf-actions button{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;background:var(--surface-2);color:var(--text-2);border:none;cursor:pointer}
.pf-actions button:hover{background:var(--c-primary);color:#fff}
.pf-actions button svg{width:15px;height:15px}
.pf-sel-row{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 2px}
.pf-sel-row button{font-size:.74rem;padding:5px 11px;border-radius:99px;background:var(--surface-2);border:1px solid var(--border-2);color:var(--text-2);cursor:pointer}
.pf-sel-row button:hover{color:var(--c-primary);border-color:var(--c-primary)}
.pg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px;margin-top:10px}
.pg{position:relative;border:2px solid var(--border-2);border-radius:8px;overflow:hidden;cursor:pointer;background:var(--surface-2);min-height:60px}
.pg.sel{border-color:var(--c-primary);box-shadow:0 0 0 3px rgba(37,99,235,.18)}
.pg canvas,.pg img{width:100%;display:block}
.pg .pgn{position:absolute;bottom:0;left:0;right:0;background:rgba(15,23,42,.6);color:#fff;font-size:.64rem;text-align:center;padding:2px}
.pg .pgchk{position:absolute;top:4px;right:4px;width:18px;height:18px;border-radius:50%;background:var(--c-primary);color:#fff;display:none;place-items:center;font-size:.7rem;font-weight:700}
.pg.sel .pgchk{display:grid}

/* ===================== GLOBAL COPY BUTTON SYSTEM ===================== */
.copy-host{position:relative}
.result-box.copy-host{padding-right:50px}
.copy-ic{position:absolute;top:8px;right:8px;width:36px;height:36px;display:grid;place-items:center;border-radius:9px;
  background:var(--surface-2);color:var(--text-2);border:1px solid var(--border-2);cursor:pointer;transition:.15s var(--ease);z-index:4;padding:0}
.copy-ic svg{width:16px;height:16px}
.copy-ic:hover,.copy-ic:active{background:var(--c-primary);color:#fff;transform:translateY(-1px)}
.copy-ic.copied{background:#16a34a;color:#fff;border-color:#16a34a}
.copy-ic::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 7px);right:0;background:var(--c-dark);color:#fff;
  font-size:.68rem;font-weight:600;padding:4px 9px;border-radius:7px;white-space:nowrap;opacity:0;pointer-events:none;transition:.15s;box-shadow:var(--shadow)}
.copy-ic:hover::after,.copy-ic.copied::after{opacity:1}
.field.copy-host>.copy-ic{top:32px}
@media(max-width:820px){.copy-ic{width:44px;height:44px}.field.copy-host>.copy-ic{top:30px}.result-box.copy-host{padding-right:58px}}

/* E-E-A-T byline on tool pages */
.tool-eeat{font-size:.8rem;color:var(--text-3);margin-top:9px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tool-eeat svg{width:14px;height:14px;color:#16a34a;flex:none}
.tool-eeat a{color:var(--c-primary);font-weight:600}

/* ===================== HEADER COMPACT (fit Blog + search) ===================== */
.nav-links{gap:2px}
.nav-links a{padding:9px 11px}
.nav-mega-trigger{padding:9px 11px;gap:5px}
.nav-mega-trigger .chev{transform:rotate(90deg);width:12px;height:12px}
.search-trigger{min-width:150px;padding:8px 13px}
.search-trigger kbd{display:none}
.header .container{gap:12px}
@media(max-width:1240px){
  .nav-links a,.nav-mega-trigger{padding:9px 8px;font-size:.9rem}
  .search-trigger{min-width:120px}
  .search-trigger span{display:none}
}
@media(max-width:1080px){
  .nav-mega-trigger .cnt{display:none}
  .header .logo small{display:none}
}

/* ===== "More" mega menu (Random + String grouped) ===== */
.mega.mega-more{min-width:680px;max-width:92vw}
.mega-more .more-sec{margin-top:14px}
.mega-more .more-sec:first-of-type{margin-top:6px}
.more-sec-head{display:flex;align-items:center;gap:8px;padding:6px 4px;border-bottom:1px solid var(--border,rgba(255,255,255,.08));margin-bottom:8px}
.more-sec-head b{font-size:.95rem}
.mh-ico.sm{width:26px;height:26px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}
.mh-ico.sm svg{width:15px;height:15px}
.more-cnt{font-size:.72rem;padding:2px 8px;border-radius:999px;background:var(--surface-2,rgba(255,255,255,.06));color:var(--muted,#94a3b8)}
.more-all{margin-left:auto;font-size:.8rem;display:inline-flex;align-items:center;gap:4px;color:var(--brand,#2563eb);text-decoration:none}
.more-all svg{width:13px;height:13px}
@media(max-width:1100px){.mega.mega-more{min-width:auto;width:92vw}}

/* ===== Mega menu: OPAQUE (fix see-through overlap) + premium "More Tools" ===== */
.mega{background:var(--surface)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;z-index:9999!important;
  box-shadow:0 30px 80px rgba(2,6,23,.30),0 10px 30px rgba(2,6,23,.16)!important;border:1px solid var(--border,rgba(2,6,23,.08))!important}
[data-theme="dark"] .mega{box-shadow:0 30px 80px rgba(0,0,0,.55),0 10px 30px rgba(0,0,0,.4)!important;border-color:var(--glass-brd)!important}
.header{z-index:200}
.mega.mega-more{min-width:740px;max-width:94vw;padding-bottom:10px}
.more-search{display:flex;align-items:center;gap:10px;margin:12px 6px 8px;padding:11px 14px;border:1px solid var(--border,#e2e8f0);border-radius:12px;background:var(--surface-2)}
.more-search svg{width:18px;height:18px;color:var(--text-3);flex:0 0 auto}
.more-search input{border:0;background:transparent;outline:0;width:100%;font-size:.95rem;color:var(--text)}
.more-cat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:6px}
.more-cat-card{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid var(--border,#e9eef6);border-radius:14px;background:var(--surface);transition:.16s var(--ease);text-decoration:none}
.more-cat-card:hover{border-color:var(--c-primary);transform:translateY(-2px);box-shadow:0 12px 28px rgba(37,99,235,.16)}
.mcc-ico{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:#fff;flex:0 0 auto}
.mcc-ico svg{width:22px;height:22px}
.mcc-body{display:flex;flex-direction:column;min-width:0;flex:1}
.mcc-body b{font-size:.97rem;color:var(--text);display:flex;align-items:center;gap:8px}
.mcc-cnt{font-size:.7rem;font-weight:700;background:var(--surface-2);color:var(--c-primary);padding:1px 8px;border-radius:999px}
.mcc-desc{font-size:.79rem;color:var(--text-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mcc-go{font-size:.79rem;color:var(--c-primary);font-weight:600;display:flex;align-items:center;gap:3px;flex:0 0 auto;white-space:nowrap}
.mcc-go svg{width:14px;height:14px}
.more-results{display:none;grid-template-columns:repeat(2,1fr);gap:6px;padding:4px 6px}
.more-results.on{display:grid}
.more-nores{grid-column:1/-1;padding:20px;text-align:center;color:var(--text-3)}
@media(max-width:820px){.mega.mega-more{min-width:auto;width:94vw}.more-cat-grid,.more-results.on{grid-template-columns:1fr}}

/* ===== Mobile performance & app-feel ===== */
/* Skip rendering offscreen homepage collection strips until near viewport */
.collection{content-visibility:auto;contain-intrinsic-size:auto 200px}
.testi-grid,.blog-grid{content-visibility:auto;contain-intrinsic-size:auto 320px}
/* Lazy tool loading spinner */
.tool-loading{display:flex;align-items:center;gap:10px;color:var(--text-2);padding:32px 6px;font-weight:600}
.spin{width:20px;height:20px;border:3px solid var(--surface-2);border-top-color:var(--c-primary);border-radius:50%;animation:t4spin .7s linear infinite;flex:0 0 auto}
@keyframes t4spin{to{transform:rotate(360deg)}}
/* Safe-area support for the app-style bottom nav (iPhone/Android notches & home bars) */
.mobile-bar{padding-bottom:env(safe-area-inset-bottom);height:calc(var(--bottom-h) + env(safe-area-inset-bottom));box-sizing:content-box}
@supports(padding:max(0px)){.mobile-bar{padding-bottom:max(env(safe-area-inset-bottom),0px)}}
/* GPU-friendly touch feedback on tappable controls */
.btn,.tool-card,.cat-card,.mega-link,.more-cat-card,.coll-item,.mobile-bar a,.pop-pill{-webkit-tap-highlight-color:transparent}
.btn:active,.tool-card:active,.cat-card:active,.coll-item:active,.more-cat-card:active,.mobile-bar a:active{transform:scale(.97);transition:transform .08s}
/* Ensure comfortable thumb targets on mobile */
@media(max-width:860px){.btn,.nav-mega-trigger,.mobile-bar a,.faq-q,.related-link{min-height:44px}.icon-btn{min-width:44px;min-height:44px}}
/* Smoother momentum scrolling on horizontal strips */
.coll-row,.trend-grid{-webkit-overflow-scrolling:touch;scroll-behavior:smooth}
/* Reduce motion for users who prefer it */
@media(prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;transition-duration:.001ms!important}}
