/* Toolxy public UI — clean tool-first layout inspired by the supplied reference. */
:root{
 --bg:#f6f9ff;--surface:#fff;--surface-soft:#f9fbff;--text:#101828;--muted:#667085;--border:#e1e6ef;
 --brand:#6338d8;--brand-2:#8b39e8;--brand-soft:#f0eaff;--blue:#2d70e8;--green:#16b890;--yellow:#f59e0b;
 --shadow:0 8px 30px rgba(16,24,40,.06);--shadow-lg:0 22px 60px rgba(16,24,40,.10);--radius:24px;--container:1160px;
 --font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
html[data-theme="dark"]{--bg:#0c1118;--surface:#121922;--surface-soft:#161f2b;--text:#f5f7fa;--muted:#a4afbd;--border:#293544;--brand:#a178ff;--brand-2:#c069ff;--brand-soft:#251d3b;--shadow:0 12px 34px rgba(0,0,0,.22);--shadow-lg:0 24px 70px rgba(0,0,0,.32)}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;min-width:320px;overflow-x:hidden;background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
body.modal-open{overflow:hidden}
a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}img{max-width:100%;height:auto;display:block}.skip-link{position:fixed;left:12px;top:-80px;z-index:5000;padding:10px 14px;background:var(--surface);border:1px solid var(--border);border-radius:10px}.skip-link:focus{top:12px}
.container{width:min(calc(100% - 48px),var(--container));margin-inline:auto}

/* Header */
.site-header{position:sticky;top:0;z-index:1000;height:76px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--border);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
html[data-theme="dark"] .site-header{background:rgba(12,17,24,.94)}
.header-inner{width:min(calc(100% - 48px),var(--container));height:100%;margin:auto;display:flex;align-items:center;gap:20px}
.site-brand{display:inline-flex;align-items:center;gap:10px;min-width:0;color:var(--brand)}
.brand-mark{width:42px;height:42px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;background:var(--brand-soft);color:var(--brand);font-size:22px;font-weight:900;box-shadow:inset 0 0 0 1px rgba(99,56,216,.06)}
.site-brand img{width:42px;height:42px;object-fit:contain;border-radius:12px}.site-brand-text{font-size:27px;line-height:1;font-weight:850;letter-spacing:-1.2px;display:inline}
.desktop-nav{display:flex;gap:4px}.desktop-nav a{padding:9px 12px;border-radius:11px;color:var(--muted);font-size:14px;font-weight:700}.desktop-nav a:hover{background:var(--brand-soft);color:var(--brand)}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.icon-button{width:46px;height:46px;border:1px solid var(--border);border-radius:15px;background:var(--surface);color:var(--text);display:inline-flex;align-items:center;justify-content:center;}.icon-button:hover{border-color:#cbbcf5}.icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.sun-icon{display:none}.menu-toggle{display:inline-flex}
html[data-theme="dark"] .moon-icon{display:none}html[data-theme="dark"] .sun-icon{display:block}

/* Search overlay */
.search-overlay{position:fixed;inset:0;z-index:2200;display:none;background:rgba(16,24,40,.38);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);padding:88px 18px 24px}.search-overlay.is-open{display:block}.search-modal{width:min(720px,100%);margin:auto;background:var(--surface);border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow-lg);overflow:hidden}.search-modal-head{display:flex;align-items:center;gap:12px;padding:13px 14px;border-bottom:1px solid var(--border)}.search-modal-icon{width:42px;height:42px;border-radius:12px;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;flex:0 0 auto}.search-modal-icon svg,.drawer-search svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.search-modal-form{flex:1}.search-modal-form input{width:100%;height:46px;border:0;outline:0;background:transparent;color:var(--text);font-size:18px}.search-close,.drawer-close{width:44px;height:44px;border:1px solid var(--border);border-radius:13px;background:var(--surface-soft);color:var(--text);font-size:26px;line-height:1}.search-modal-hint{padding:13px 18px 17px;color:var(--muted);font-size:13px}

/* Right drawer */
.drawer-backdrop{position:fixed;inset:0;z-index:1800;background:rgba(16,24,40,.34);opacity:0;visibility:hidden;}.drawer-backdrop.is-open{opacity:1;visibility:visible}.mobile-drawer{position:fixed;top:0;right:0;z-index:2100;width:min(430px,88vw);height:100dvh;padding:22px 24px;background:var(--surface);border-left:1px solid var(--border);box-shadow:-24px 0 70px rgba(16,24,40,.16);transform:translateX(105%);overflow:auto}.mobile-drawer.is-open{transform:translateX(0)}.drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.drawer-brand{display:flex;align-items:center;gap:10px;color:var(--brand);font-size:22px}.drawer-brand img{border-radius:11px}.drawer-nav{display:grid;gap:6px}.drawer-link,.drawer-category-toggle{width:100%;min-height:54px;border:0;border-radius:14px;background:transparent;padding:0 18px;display:flex;align-items:center;justify-content:space-between;color:var(--text);font-size:18px;font-weight:650;text-align:left}.drawer-link.active{background:#eef5ff;color:#315cb2}.drawer-link:hover,.drawer-category-toggle:hover{background:var(--surface-soft)}html[data-theme="dark"] .drawer-link.active{background:#1b2940;color:#8cb4ff}.drawer-category-toggle{margin-top:2px}.chevron{font-size:23px;color:var(--muted);}.drawer-category-toggle[aria-expanded="true"] .chevron{transform:rotate(180deg)}.drawer-categories{display:none;padding:3px 0 8px 10px}.drawer-categories.is-open{display:grid;gap:4px}.drawer-categories a{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:12px;color:var(--muted);font-weight:600}.drawer-categories a:hover{background:var(--brand-soft);color:var(--brand)}.drawer-cat-icon{width:34px;height:34px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;overflow:hidden}.drawer-cat-icon img{width:100%;height:100%;object-fit:cover}.drawer-search{margin-top:18px;width:100%;height:52px;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft);color:var(--text);display:flex;align-items:center;justify-content:center;gap:10px;font-weight:700}

/* Common */
.section{padding:78px 0}.section-tight{padding:54px 0}.section-kicker{display:block;color:#7d8798;font-size:13px;font-weight:850;letter-spacing:1.7px;text-transform:uppercase;margin-bottom:8px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}.section-head h2,.section-head h1{margin:0;font-size:clamp(30px,4vw,48px);line-height:1.08;letter-spacing:-1.7px}.section-head p{max-width:650px;color:var(--muted);margin:10px 0 0;font-size:17px}.section-link{color:var(--brand);font-weight:800}.muted{color:var(--muted)}

/* Home */
.home-hero{padding:70px 0 60px;background:radial-gradient(circle at 50% 8%,rgba(111,67,230,.10),transparent 38%),linear-gradient(180deg,#f2f7ff 0%,var(--bg) 100%);text-align:center}.hero-inner{max-width:920px}.hero-pill{display:inline-flex;align-items:center;gap:9px;padding:8px 16px;border:1px solid #dce7f5;border-radius:999px;background:rgba(255,255,255,.84);box-shadow:0 4px 16px rgba(30,70,120,.05);color:#4d5a6c;font-weight:650}.hero-pill strong{color:var(--brand)}.home-hero h1{max-width:920px;margin:26px auto 18px;font-size:clamp(44px,7vw,76px);line-height:1.03;letter-spacing:-4px;font-weight:850}.home-hero h1 .gradient{background:linear-gradient(90deg,#111827 20%,#6338d8 70%,#9a3be9);-webkit-background-clip:text;background-clip:text;color:transparent}.hero-text{max-width:760px;margin:0 auto;color:var(--muted);font-size:20px;line-height:1.65}.hero-actions{display:flex;justify-content:center;gap:12px;margin-top:28px;flex-wrap:wrap}.primary-btn,.secondary-btn{min-height:50px;padding:0 22px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;font-weight:800}.primary-btn{background:#111827;color:#fff}.primary-btn:hover{background:#202a3b}.secondary-btn{background:var(--surface);border:1px solid var(--border);color:var(--text)}.trust-row{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:22px}.trust-row span{padding:7px 12px;border:1px solid var(--border);background:var(--surface);border-radius:999px;color:var(--muted);font-size:13px;font-weight:700}.trust-row b{color:var(--green);margin-right:4px}

/* Categories */
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.category-card{min-height:210px;padding:23px;border:1px solid var(--border);border-radius:24px;background:var(--surface);box-shadow:0 4px 16px rgba(16,24,40,.025);display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;overflow:hidden}.category-card:hover{box-shadow:var(--shadow);border-color:#cfd8e5}.category-card-top{display:flex;justify-content:space-between;align-items:flex-start}.category-icon{width:58px;height:58px;border-radius:17px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:23px;font-weight:900;overflow:hidden;box-shadow:0 8px 18px rgba(16,24,40,.08)}.category-icon img{width:100%;height:100%;object-fit:cover}.tone-1{background:linear-gradient(135deg,#5c34d8,#8a39e8)}.tone-2{background:linear-gradient(135deg,#08ae91,#15c69f)}.tone-3{background:linear-gradient(135deg,#f59b05,#ed6b05)}.tone-4{background:linear-gradient(135deg,#2d70e8,#4b5ce7)}.tone-5{background:linear-gradient(135deg,#e84d8b,#a93de1)}.tone-6{background:linear-gradient(135deg,#1590a6,#2eb3c7)}.category-arrow{color:#a2aab6;font-size:24px}.category-card h3{margin:22px 0 4px;font-size:22px;letter-spacing:-.5px}.category-card p{margin:0;color:var(--muted);line-height:1.55}.category-count{margin-top:auto;padding-top:14px;color:var(--brand);font-size:13px;font-weight:800}

/* Tool cards */
.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tool-card{position:relative;min-height:250px;padding:22px;border:1px solid var(--border);border-radius:24px;background:var(--surface);box-shadow:0 4px 16px rgba(16,24,40,.025);display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;overflow:hidden}.tool-card:hover{box-shadow:var(--shadow);border-color:#cfd8e5}.tool-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.tool-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.tool-icon{width:56px;height:56px;border-radius:17px;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:22px;font-weight:900;color:#fff}.tool-icon img{width:100%;height:100%;object-fit:cover}.tool-card-arrow{color:#a2aab6;font-size:23px}.tool-category{display:inline-block;margin-top:18px;color:var(--brand);font-size:12px;font-weight:850;letter-spacing:.2px}.tool-card h3{margin:5px 0 7px;font-size:20px;line-height:1.22;letter-spacing:-.5px}.tool-card p{margin:0;color:var(--muted);font-size:15px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tool-card-footer{margin-top:auto;padding-top:14px;display:flex;align-items:center;justify-content:space-between}.try-link{color:var(--brand);font-size:13px;font-weight:800}.new-badge{padding:5px 9px;border:1px solid #cfe0f4;background:#f3f8ff;color:#3565b7;border-radius:999px;font-size:11px;font-weight:850}.tool-card.compact{min-height:225px}

/* Home CTA */
.home-cta{padding:56px 24px;text-align:center;border:1px solid #ded6f5;border-radius:30px;background:linear-gradient(135deg,#fbf8ff,#f4f1ff);box-shadow:0 6px 20px rgba(99,56,216,.04)}.home-cta .section-kicker{color:var(--brand)}.home-cta h2{max-width:700px;margin:8px auto 12px;font-size:clamp(31px,5vw,48px);line-height:1.08;letter-spacing:-1.8px}.home-cta p{max-width:680px;margin:0 auto 24px;color:var(--muted);font-size:18px}.home-cta .primary-btn{background:#111827}

/* All tools */
.page-hero{padding:50px 0 34px}.page-hero h1{margin:0 0 10px;font-size:clamp(38px,6vw,60px);letter-spacing:-2.5px;line-height:1.04}.page-hero p{max-width:760px;margin:0;color:var(--muted);font-size:18px}.tool-search{display:flex;gap:10px;padding:8px;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:var(--shadow);margin-bottom:22px}.tool-search input{min-width:0;flex:1;height:48px;border:0;outline:0;background:transparent;padding:0 12px;color:var(--text);font-size:16px}.search-submit{height:48px;padding:0 22px;border:0;border-radius:13px;background:linear-gradient(135deg,#5d35d4,#7438e2);color:#fff;font-weight:850}.filter-row{display:flex;gap:8px;overflow:auto;padding-bottom:5px;margin-bottom:26px;scrollbar-width:none}.filter-row::-webkit-scrollbar{display:none}.filter-chip{white-space:nowrap;padding:8px 13px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--muted);font-size:13px;font-weight:750}.filter-chip.active,.filter-chip:hover{background:var(--brand-soft);color:var(--brand);border-color:#d8cdf7}

/* Category page */
.category-hero{padding:34px 0 50px;text-align:center;background:linear-gradient(135deg,#eefaf8,#f3f7ff 45%,#f8f2ff)}.category-hero .category-hero-icon{width:66px;height:66px;margin:0 auto 18px;border-radius:19px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:27px;overflow:hidden}.category-hero .category-hero-icon img{width:100%;height:100%;object-fit:cover}.category-hero h1{margin:0;font-size:clamp(38px,6vw,62px);letter-spacing:-2.8px;line-height:1.05}.category-hero .lead{max-width:700px;margin:15px auto 8px;font-size:20px;color:#4d5969}.category-hero .desc{max-width:850px;margin:0 auto;color:var(--muted);font-size:16px}.stat-pills{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:25px}.stat-pills span{padding:8px 14px;border:1px solid var(--border);border-radius:999px;background:rgba(255,255,255,.8);font-weight:700;color:#4b5565}

/* Tool page */
.tool-page{padding:42px 0 70px}.tool-header{max-width:980px;margin:0 auto 24px}.tool-header h1{margin:0;font-size:clamp(38px,6vw,62px);line-height:1.04;letter-spacing:-2.8px}.tool-header p{max-width:850px;margin:15px 0 0;color:var(--muted);font-size:19px}.tool-workspace{max-width:980px;margin:0 auto;border:1px solid var(--border);border-radius:28px;background:var(--surface);box-shadow:var(--shadow);padding:24px;overflow:hidden}.tool-workspace-inner{min-height:160px}.tool-content{max-width:980px;margin:30px auto 0}.tool-content h2,.faq h2{font-size:29px;letter-spacing:-1px;margin:34px 0 12px}.tool-content p,.tool-content li,.faq p{color:var(--muted)}.tool-featured{width:100%;max-height:420px;object-fit:cover;border-radius:20px;margin-bottom:24px}.tool-meta-badge{display:inline-flex;padding:6px 11px;border:1px solid #ddd3f7;background:var(--brand-soft);border-radius:999px;color:var(--brand);font-size:12px;font-weight:850;margin-bottom:12px}

/* Blog/pages */
.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.blog-card{border:1px solid var(--border);border-radius:24px;background:var(--surface);overflow:hidden;display:flex;flex-direction:column;box-shadow:0 4px 16px rgba(16,24,40,.025)}.blog-card:hover{box-shadow:var(--shadow)}.blog-thumb{width:100%;aspect-ratio:16/9;object-fit:cover}.blog-card-content{padding:20px}.blog-card-content h3{margin:8px 0;font-size:20px;line-height:1.25}.post-page{padding:45px 0 70px}.content{max-width:900px}.post-hero{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:24px;margin-bottom:24px}.post-category{color:var(--brand);font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:1px}.post-page h1{font-size:clamp(38px,6vw,64px);line-height:1.06;letter-spacing:-2.8px;margin:10px 0 15px}.post-content{font-size:18px}.post-content img{border-radius:16px}.post-content a{color:var(--brand);text-decoration:underline}.formbox{border:1px solid var(--border);border-radius:24px;background:var(--surface);padding:24px;box-shadow:var(--shadow)}.formbox form{display:grid;gap:10px}.formbox label{font-size:13px;font-weight:800;color:var(--muted)}.formbox input,.formbox textarea{width:100%;border:1px solid var(--border);border-radius:13px;background:var(--surface-soft);color:var(--text);padding:12px 13px;outline:0}.formbox textarea{resize:vertical}.formbox button{border:0;border-radius:13px;background:var(--brand);color:#fff;padding:12px 18px;font-weight:800}.comment{padding:14px 0;border-bottom:1px solid var(--border)}

/* Footer */
.site-footer{margin-top:40px;background:#eef2f8;border-top:1px solid var(--border)}html[data-theme="dark"] .site-footer{background:#101720}.footer-main{display:grid;grid-template-columns:1.7fr repeat(4,1fr);gap:38px;padding:58px 0 48px}.footer-brand{display:inline-flex;align-items:center;gap:10px;color:var(--brand);font-size:23px}.footer-brand-col p{max-width:330px;color:var(--muted);margin:16px 0}.footer-trust{display:flex;flex-wrap:wrap;gap:7px}.footer-trust span{font-size:11px;font-weight:750;color:var(--muted)}.footer-col{display:flex;flex-direction:column;gap:8px}.footer-col h3{margin:0 0 7px;font-size:14px}.footer-col a{color:var(--muted);font-size:13px}.footer-col a:hover{color:var(--brand)}.footer-bottom{border-top:1px solid var(--border)}.footer-bottom-inner{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}.footer-bottom a{color:var(--brand);font-weight:700}

/* Compatibility with existing admin/content markup */
.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:13px;background:var(--brand);color:#fff;padding:11px 18px;font-weight:800}.btn.secondary{background:var(--surface-soft);color:var(--text);border:1px solid var(--border)}.bar,.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{border:1px solid var(--border);border-radius:22px;background:var(--surface);padding:22px;display:block}.card:hover{box-shadow:var(--shadow)}.home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-card h3,.card h3{margin:8px 0;font-size:20px}.search{display:flex;gap:10px}.search input{flex:1;min-width:0;border:1px solid var(--border);border-radius:13px;padding:12px;background:var(--surface);color:var(--text)}.toolbox{max-width:980px;margin:auto;border:1px solid var(--border);border-radius:28px;background:var(--surface);box-shadow:var(--shadow);padding:24px}.tool-content-section{max-width:980px;margin:28px auto}.category-landing{padding:30px;border:1px solid var(--border);border-radius:26px;background:linear-gradient(135deg,#eff8ff,#f8f2ff)}.faq{margin-top:28px}.blog-card .blog-thumb{width:100%}

/* Responsive */
@media (max-width:980px){.desktop-nav{display:none}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-grid,.blog-grid,.grid,.home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-main{grid-template-columns:1.4fr repeat(2,1fr)}}
@media (max-width:680px){.container,.header-inner{width:min(calc(100% - 28px),680px)}.site-header{height:72px}.header-inner{gap:9px}.site-brand{min-width:0;gap:8px}.site-brand-text{font-size:25px}.site-brand .brand-mark,.site-brand img{width:40px;height:40px}.header-actions{gap:6px}.icon-button{width:46px;height:46px}.home-hero{padding:45px 0 42px}.home-hero h1{font-size:45px;letter-spacing:-2.7px;margin-top:22px}.hero-text{font-size:17px}.hero-actions{margin-top:22px}.primary-btn,.secondary-btn{width:100%}.section{padding:55px 0}.section-head{align-items:flex-start}.section-head h2{font-size:34px}.section-head p{font-size:15px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-card{min-height:205px;padding:16px;border-radius:20px}.category-icon{width:50px;height:50px;border-radius:15px}.category-card h3{font-size:17px;margin-top:17px}.category-card p{font-size:13px}.category-count{font-size:11px}.tool-grid,.blog-grid,.grid,.home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tool-card{min-height:220px;padding:16px;border-radius:20px}.tool-icon{width:50px;height:50px;border-radius:15px}.tool-card h3{font-size:16px}.tool-card p{font-size:13px;-webkit-line-clamp:4}.tool-category{font-size:10px}.tool-card-arrow{font-size:19px}.page-hero{padding:36px 0 25px}.page-hero h1{font-size:43px}.tool-search{margin-bottom:16px}.search-submit{padding:0 17px}.filter-row{margin-bottom:18px}.category-hero{padding:32px 0 40px}.category-hero h1{font-size:42px}.category-hero .lead{font-size:17px}.tool-page{padding:32px 0 55px}.tool-header h1{font-size:42px;letter-spacing:-2px}.tool-header p{font-size:16px}.tool-workspace,.toolbox{padding:16px;border-radius:21px}.tool-content h2{font-size:25px}.post-page h1{font-size:42px}.post-content{font-size:17px}.footer-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;padding:42px 0}.footer-brand-col{grid-column:1/-1}.footer-bottom-inner{padding:14px 0;align-items:flex-start;flex-direction:column}.mobile-drawer{width:min(420px,86vw);padding:20px 18px}.drawer-link,.drawer-category-toggle{font-size:17px}.search-overlay{padding-top:80px}}
@media (max-width:390px){.category-grid,.tool-grid,.grid,.home-grid{grid-template-columns:1fr}.category-card{min-height:185px}.tool-card{min-height:205px}.site-brand-text{font-size:22px}.header-actions .icon-button{width:43px;height:43px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* FINAL REFERENCE FIX: top-opening mobile menu */
.drawer-backdrop{
  position:fixed;inset:0;z-index:1800;background:rgba(16,24,40,.28);
  opacity:0;visibility:hidden;
}
.drawer-backdrop.is-open{opacity:1;visibility:visible}
.mobile-drawer{
  position:fixed;top:72px;left:0;right:0;bottom:auto;z-index:2100;
  width:100%;max-height:min(76dvh,620px);height:auto;
  padding:18px 18px 22px;background:var(--surface);
  border:0;border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  border-radius:0 0 24px 24px;
  box-shadow:0 22px 55px rgba(16,24,40,.16);
  transform:translateY(-115%);opacity:0;visibility:hidden;
  
  overflow:auto;
}
.mobile-drawer.is-open{transform:translateY(0);opacity:1;visibility:visible}
.drawer-head{margin-bottom:14px}
.drawer-nav{gap:4px}
.drawer-link,.drawer-category-toggle{min-height:52px;border-radius:14px;padding:0 14px;font-size:17px}
.drawer-link.active{background:#eef5ff;color:#315cb2}
html[data-theme="dark"] .drawer-link.active{background:#1b2940;color:#8cb4ff}
.drawer-categories{max-height:260px;overflow:auto}
.drawer-search{margin-top:12px}

/* Colored tool-card surfaces like the supplied reference */
.tool-card.tone-card-1{background:linear-gradient(145deg,#fff 0%,#faf7ff 100%)}
.tool-card.tone-card-2{background:linear-gradient(145deg,#fff 0%,#f2fffb 100%)}
.tool-card.tone-card-3{background:linear-gradient(145deg,#fff 0%,#fff9ef 100%)}
.tool-card.tone-card-4{background:linear-gradient(145deg,#fff 0%,#f2f7ff 100%)}
.tool-card.tone-card-5{background:linear-gradient(145deg,#fff 0%,#fff3fa 100%)}
.tool-card.tone-card-6{background:linear-gradient(145deg,#fff 0%,#f0fbfd 100%)}
html[data-theme="dark"] .tool-card.tone-card-1{background:linear-gradient(145deg,#121922,#1d1730)}
html[data-theme="dark"] .tool-card.tone-card-2{background:linear-gradient(145deg,#121922,#102b27)}
html[data-theme="dark"] .tool-card.tone-card-3{background:linear-gradient(145deg,#121922,#2c2312)}
html[data-theme="dark"] .tool-card.tone-card-4{background:linear-gradient(145deg,#121922,#14213a)}
html[data-theme="dark"] .tool-card.tone-card-5{background:linear-gradient(145deg,#121922,#2b1725)}
html[data-theme="dark"] .tool-card.tone-card-6{background:linear-gradient(145deg,#121922,#10282d)}

/* Tool publish/touch interaction */
.tool-card,.tool-workspace button,.tool-workspace a,.tool-workspace input,.tool-workspace select,.tool-workspace textarea,.primary-btn,.secondary-btn{
  -webkit-tap-highlight-color:transparent;
}
.tool-card.is-pressed,.primary-btn.is-pressed,.secondary-btn.is-pressed,.tool-workspace button.is-pressed,.tool-workspace a.is-pressed,.tool-workspace input.is-pressed,.tool-workspace select.is-pressed,.tool-workspace textarea.is-pressed{
  filter:brightness(.985);
}
.tool-workspace button,.tool-workspace a,.tool-workspace input,.tool-workspace select,.tool-workspace textarea{
  
}
.tool-workspace button:focus-visible,.tool-workspace a:focus-visible,.tool-workspace input:focus-visible,.tool-workspace select:focus-visible,.tool-workspace textarea:focus-visible{
  outline:3px solid rgba(99,56,216,.22);outline-offset:2px;
}

@media (max-width:680px){
  .mobile-drawer{top:72px;max-height:calc(100dvh - 82px);padding:14px 14px 18px;border-radius:0 0 22px 22px}
}


/* Hamburger to close icon */
.menu-toggle.is-open svg{transform:rotate(90deg)}


/* =========================================================
   TOOL-FIRST FINAL UI — compact typography + reference layout
   ========================================================= */
:root{--container:1160px}
body{font-size:12px;line-height:1.5}
.site-header{height:72px}
.header-inner{height:72px;gap:14px}
.site-brand-text{font-size:22px;letter-spacing:-.7px}
.desktop-nav a{font-size:12px;padding:8px 10px}
.icon-button{width:42px;height:42px;border-radius:12px}
.icon-button svg{width:21px;height:21px}
.section-kicker{font-size:10px;letter-spacing:1.2px;margin-bottom:5px}
.section-head{gap:14px;margin-bottom:18px}
.section-head h2,.section-head h1{font-size:30px;letter-spacing:-1px}
.section-head p{font-size:12px;margin-top:6px}
.section{padding:50px 0}.section-tight{padding:36px 0}

/* Compact tool cards: title/description sit close together. */
.tool-card{min-height:210px;padding:16px;border-radius:18px}
.tool-card-top{gap:8px}.tool-icon{width:48px;height:48px;border-radius:14px;font-size:19px}
.tool-card-arrow{font-size:19px}
.tool-category{margin-top:10px;font-size:10px;line-height:1.2}
.tool-card h3{margin:2px 0 3px;font-size:16px;line-height:1.18;letter-spacing:-.25px}
.tool-card p{font-size:12px;line-height:1.4}
.tool-card-footer{padding-top:9px}.try-link{font-size:11px}

/* Tool detail: header -> title inside tool shell -> actual tool. */
.tool-page{padding:24px 0 50px}
.tool-workspace{max-width:980px;margin:0 auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.tool-inline-head{margin:0 0 18px;text-align:center}
.tool-inline-head h1{margin:0;font-size:clamp(30px,5vw,48px);line-height:1.06;letter-spacing:-1.8px;font-weight:850}
.tool-inline-head p{max-width:760px;margin:8px auto 0;color:var(--muted);font-size:13px;line-height:1.5}
.tool-workspace-inner{min-height:0}
.tool-featured{display:none}
.tool-content{max-width:980px;margin:24px auto 0}
.tool-content h2,.faq h2{font-size:22px;letter-spacing:-.6px;margin:26px 0 8px}
.tool-content p,.tool-content li,.faq p{font-size:12px;line-height:1.55}

/* Published posts/pages use the same compact tool-first shell. */
.tool-style-page{padding:24px 0 50px}
.tool-style-page .content{max-width:980px}
.tool-content-shell{max-width:980px;margin:0 auto}
.tool-style-page .post-hero{max-height:360px;margin:0 auto 18px;border-radius:16px;object-fit:cover}
.tool-style-page .post-content{font-size:12px;line-height:1.55}
.tool-style-page .post-content h2,.tool-style-page .post-content h3{letter-spacing:-.3px;line-height:1.2}
.tool-style-page .post-content h2{font-size:22px;margin:24px 0 8px}
.tool-style-page .post-content h3{font-size:17px;margin:18px 0 6px}
.tool-style-page .post-content p,.tool-style-page .post-content li{font-size:12px;line-height:1.55}
.tool-style-page .tool-inline-head{text-align:left}
.tool-style-page .tool-inline-head h1{font-size:clamp(28px,5vw,44px)}
.tool-style-page .tool-inline-head .tool-category{margin:0 0 4px}

/* Search, filters and forms stay compact. */
.tool-search{padding:5px;border-radius:14px;margin-bottom:14px;box-shadow:0 3px 12px rgba(16,24,40,.04)}
.tool-search input{height:40px;padding:0 9px;font-size:12px}
.search-submit{height:40px;padding:0 16px;font-size:12px;border-radius:10px}
.filter-row{gap:6px;margin-bottom:18px}.filter-chip{padding:6px 10px;font-size:11px}
.page-hero{padding:32px 0 24px}.page-hero h1{font-size:36px;letter-spacing:-1.5px}.page-hero p{font-size:12px}
.blog-card-content{padding:14px}.blog-card-content h3{font-size:16px;margin:5px 0}.blog-card-content p{font-size:12px}
.formbox{padding:16px;border-radius:18px}.formbox label{font-size:11px}.formbox input,.formbox textarea{font-size:12px;padding:9px 10px}.formbox button{font-size:12px;padding:10px 14px}


/* Final compact header: text branding visible on mobile and desktop. */
.site-header{height:60px}
.header-inner{height:60px}
.site-brand-text{display:inline;font-size:21px;line-height:1;font-weight:850;letter-spacing:-.8px}
.icon-button{width:38px;height:38px;border-radius:9px}
.icon-button svg{width:20px;height:20px}
@media (max-width:680px){
  .site-header{height:58px}
  .header-inner{height:58px;gap:7px}
  .site-brand-text{display:inline;font-size:20px}
  .site-brand{gap:6px}
  .header-actions{gap:0}
  .icon-button{width:36px;height:36px;border-radius:8px}
  .icon-button svg{width:19px;height:19px}
}

/* Mobile header/menu — easy open/close, no bulky buttons. */
@media (max-width:680px){
  .container,.header-inner{width:min(calc(100% - 24px),680px)}
  .site-brand-text{display:inline;font-size:20px;line-height:1;font-weight:850;letter-spacing:-.7px}
  .site-brand{min-width:0;gap:7px}
  .site-brand .brand-mark,.site-brand img{width:32px;height:32px}
  .header-actions{gap:1px}
  .icon-button{width:36px;height:36px;border:0;background:transparent;box-shadow:none;border-radius:9px}
  .icon-button:hover{transform:none;box-shadow:none}
  .home-hero{padding:38px 0 34px}
  .home-hero h1{font-size:34px;letter-spacing:-1.7px;margin:18px auto 12px}
  .hero-text{font-size:12px;line-height:1.55}
  .hero-pill{font-size:10px;padding:6px 10px}
  .primary-btn,.secondary-btn{min-height:42px;font-size:12px;padding:0 16px}
  .trust-row span{font-size:10px;padding:5px 8px}
  .section{padding:36px 0}.section-tight{padding:28px 0}
  .section-head{margin-bottom:14px}.section-head h2{font-size:25px}.section-head p{font-size:12px}
  .category-card{min-height:180px;padding:13px;border-radius:16px}.category-icon{width:44px;height:44px;border-radius:13px}.category-card h3{font-size:15px;margin:13px 0 3px}.category-card p{font-size:11px;line-height:1.4}.category-count{font-size:10px;padding-top:9px}
  .tool-grid,.blog-grid,.grid,.home-grid{gap:8px}
  .tool-card{min-height:190px;padding:13px;border-radius:16px}
  .tool-icon{width:44px;height:44px;border-radius:13px}.tool-card h3{font-size:14px;margin:2px 0 3px}.tool-card p{font-size:11px;line-height:1.38}.tool-category{font-size:9px;margin-top:8px}.try-link{font-size:10px}.tool-card-footer{padding-top:7px}
  .tool-page{padding:22px 0 40px}
  .tool-inline-head{margin-bottom:14px}.tool-inline-head h1{font-size:30px;letter-spacing:-1px}.tool-inline-head p{font-size:12px;margin-top:6px}
  .tool-content{margin-top:20px}.tool-content h2,.faq h2{font-size:19px;margin:20px 0 7px}.tool-content p,.tool-content li,.faq p{font-size:12px}
  .tool-style-page{padding:22px 0 40px}.tool-style-page .post-hero{max-height:260px;border-radius:13px}.tool-style-page .tool-inline-head h1{font-size:28px}.tool-style-page .post-content,.tool-style-page .post-content p,.tool-style-page .post-content li{font-size:12px;line-height:1.55}
  .mobile-drawer{top:72px;left:0;right:0;width:100%;max-height:calc(100dvh - 72px);padding:14px 14px 18px;border-radius:0 0 18px 18px;transform:translateY(-110%);box-shadow:0 18px 45px rgba(16,24,40,.14)}
  .mobile-drawer.is-open{transform:translateY(0)}
  .drawer-head{margin-bottom:10px}.drawer-brand{font-size:17px}.drawer-link,.drawer-category-toggle{min-height:44px;padding:0 11px;font-size:13px;border-radius:11px}.drawer-categories a{font-size:12px;padding:7px 8px}.drawer-search{height:44px;margin-top:10px;font-size:12px}
}

/* Keep browser text sizing stable and avoid accidental mobile zoom. */
input,select,textarea,button{font-size:12px}


/* =========================================================
   TOOL-FIRST PUBLIC LAYOUT
   The actual utility is the hero. SEO/article content stays
   below it and never competes with the tool on first view.
   ========================================================= */

.tool-page{
  padding:28px 0 64px;
}

.tool-page-container{
  max-width:1120px;
}

.tool-page-title{
  max-width:920px;
  margin:0 auto 20px;
  text-align:center;
}

.tool-page-title .tool-meta-badge{
  margin:0 0 10px;
}

.tool-page-title h1{
  margin:0;
  font-size:clamp(32px,5vw,52px);
  line-height:1.05;
  letter-spacing:-2px;
  font-weight:850;
}

.tool-page-title p{
  max-width:760px;
  margin:10px auto 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.55;
}

.tool-live-card{
  width:100%;
  max-width:1040px;
  margin:0 auto;
  padding:22px;
  border:1px solid var(--border);
  border-radius:28px;
  background:var(--surface);
  box-shadow:0 12px 40px rgba(16,24,40,.07);
}

.tool-live-card .tool-workspace-inner{
  min-height:0;
}

.tool-info-card{
  max-width:1040px;
  margin:24px auto 0;
  padding:24px;
  border:1px solid var(--border);
  border-radius:22px;
  background:var(--surface);
  box-shadow:0 5px 20px rgba(16,24,40,.035);
}

.tool-info-label{
  display:inline-flex;
  align-items:center;
  margin-bottom:8px;
  color:var(--brand);
  font-size:11px;
  font-weight:900;
  letter-spacing:1.4px;
}

.tool-info-card h2{
  margin:0 0 12px;
  font-size:25px;
  line-height:1.2;
}

.tool-info-card h3{
  font-size:18px;
  line-height:1.3;
}

.tool-info-card p,
.tool-info-card li{
  color:var(--muted);
}

.tool-content.tool-seo-content{
  max-width:1040px;
  margin:34px auto 0;
}

.tool-seo-content h2{
  margin-top:30px;
  font-size:28px;
  line-height:1.2;
}

.tool-seo-content h3{
  font-size:20px;
  line-height:1.3;
}

.tool-seo-content p,
.tool-seo-content li{
  font-size:16px;
  line-height:1.75;
}

.tool-faq-card details{
  border-top:1px solid var(--border);
  padding:15px 0;
}

.tool-faq-card details:first-of-type{
  border-top:0;
}

.tool-faq-card summary{
  cursor:pointer;
  font-weight:800;
  color:var(--text);
}

.tool-faq-card details p{
  margin:10px 0 0;
}

.tool-page .isc-tool{
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
}

.tool-page .isc-tool .isc-head{
  display:none;
}

.tool-page .isc-tool .isc-upload-grid{
  margin-top:0;
}

.tool-page .isc-tool .isc-result{
  background:var(--surface);
}

/* Keep the live utility visually dominant on small screens. */
@media(max-width:680px){
  .tool-page{
    padding:18px 0 44px;
  }

  .tool-page-title{
    margin-bottom:15px;
  }

  .tool-page-title h1{
    font-size:clamp(29px,8.2vw,40px);
    letter-spacing:-1.35px;
  }

  .tool-page-title p{
    font-size:14px;
    line-height:1.5;
  }

  .tool-live-card{
    padding:14px;
    border-radius:22px;
    box-shadow:0 8px 26px rgba(16,24,40,.06);
  }

  .tool-info-card{
    padding:18px;
    border-radius:18px;
    margin-top:18px;
  }

  .tool-seo-content{
    padding:0 3px;
  }

  .tool-seo-content h2{
    font-size:23px;
  }

  .tool-seo-content p,
  .tool-seo-content li{
    font-size:15px;
    line-height:1.7;
  }
}

/* Image Size Comparison Maker: application-style layout. */
.tool-page .isc-upload-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.tool-page .isc-upload-card{
  padding:18px;
  border-radius:20px;
  background:var(--surface-soft);
}

.tool-page .isc-drop{
  min-height:145px;
}

.tool-page .isc-result{
  margin-top:18px;
  padding:18px;
  border-radius:20px;
}

@media(max-width:700px){
  .tool-page .isc-upload-grid{
    grid-template-columns:1fr;
  }
}


/* TOOLXY GLOBAL PUBLIC TOOL TITLE + COMPACT SPACING */
.tool-page .tool-page-title,
.tool-page .tool-hero,
.tool-page .tool-header,
.tool-page .tool-intro {
  text-align: center !important;
}

.tool-page .tool-page-title {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.tool-page .tool-page-title h1,
.tool-page .tool-header h1,
.tool-page h1.tool-title {
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 1.1 !important;
}

.tool-page .tool-page-title p,
.tool-page .tool-header p,
.tool-page .tool-intro p {
  margin: 6px auto 0 !important;
  text-align: center !important;
}

.tool-page .tool-live-card {
  margin-top: 0 !important;
}

.tool-page .tool-info-card {
  margin-top: 10px !important;
}

@media (max-width: 680px) {
  .tool-page {
    padding-top: 8px !important;
  }

  .tool-page .tool-page-title {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
  }

  .tool-page .tool-page-title h1,
  .tool-page .tool-header h1,
  .tool-page h1.tool-title {
    font-size: clamp(27px, 7.5vw, 36px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1px !important;
  }

  .tool-page .tool-page-title p,
  .tool-page .tool-header p,
  .tool-page .tool-intro p {
    margin-top: 5px !important;
    line-height: 1.4 !important;
  }

  .tool-page .tool-live-card {
    margin-top: 0 !important;
  }
}


/* =========================================================
   TOOLXY TOOL-FIRST UI
   Make public tool pages feel like a real utility website,
   not a blog/article page.
   ========================================================= */

.tool-page {
  padding: 10px 0 48px !important;
}

.tool-page-container {
  max-width: 1120px !important;
}

/* Main tool heading */
.tool-page .tool-page-title {
  max-width: 920px !important;
  margin: 0 auto 12px !important;
  padding: 0 !important;
  text-align: center !important;
}

.tool-page .tool-page-title .tool-meta-badge {
  display: inline-flex !important;
  margin: 0 auto 6px !important;
}

.tool-page .tool-page-title h1 {
  margin: 0 auto !important;
  text-align: center !important;
  font-size: clamp(30px, 5vw, 48px) !important;
  line-height: 1.08 !important;
  letter-spacing: -1.5px !important;
}

.tool-page .tool-page-title p {
  max-width: 760px !important;
  margin: 6px auto 0 !important;
  text-align: center !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

/* The actual utility must visually dominate the page */
.tool-page .tool-live-card {
  width: 100% !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  padding: 18px !important;
  border: 1px solid var(--border) !important;
  border-radius: 24px !important;
  background: var(--surface) !important;
  box-shadow: 0 10px 30px rgba(16,24,40,.07) !important;
}

/* Compact rounded How-to card */
.tool-page .tool-howto-card {
  max-width: 1040px !important;
  margin: 12px auto 0 !important;
  padding: 17px 19px !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  background: var(--surface) !important;
  box-shadow: 0 4px 16px rgba(16,24,40,.035) !important;
}

.tool-page .tool-howto-card .tool-info-label {
  margin-bottom: 5px !important;
  font-size: 10px !important;
  letter-spacing: 1.2px !important;
}

.tool-page .tool-howto-card h2 {
  margin: 0 0 8px !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
}

.tool-page .tool-howto-card h3 {
  margin-top: 12px !important;
  margin-bottom: 5px !important;
}

.tool-page .tool-howto-card p,
.tool-page .tool-howto-card li {
  line-height: 1.55 !important;
}

/* SEO/article content stays clearly below the utility */
.tool-page .tool-seo-content {
  max-width: 1040px !important;
  margin: 18px auto 0 !important;
}

.tool-page .tool-seo-content h2 {
  margin-top: 24px !important;
}

@media (max-width: 680px) {
  .tool-page {
    padding: 7px 0 34px !important;
  }

  .tool-page .tool-page-title {
    margin-bottom: 9px !important;
  }

  .tool-page .tool-page-title .tool-meta-badge {
    margin-bottom: 5px !important;
  }

  .tool-page .tool-page-title h1 {
    font-size: clamp(27px, 7.5vw, 36px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1px !important;
  }

  .tool-page .tool-page-title p {
    margin-top: 5px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  .tool-page .tool-live-card {
    padding: 12px !important;
    border-radius: 20px !important;
  }

  .tool-page .tool-howto-card {
    margin-top: 9px !important;
    padding: 15px 16px !important;
    border-radius: 17px !important;
  }

  .tool-page .tool-howto-card h2 {
    font-size: 20px !important;
  }

  .tool-page .tool-seo-content {
    margin-top: 15px !important;
  }
}


/* =========================================================
   TOOLXY FINAL HOMEPAGE — CLEAN TOOL WEBSITE LAYOUT
   ========================================================= */

/* Header-to-content and hero spacing */
.home-hero {
  padding: 24px 0 22px !important;
}

.home-hero .hero-inner {
  max-width: 920px !important;
}

.home-hero h1 {
  margin: 16px auto 10px !important;
}

.home-hero .hero-text {
  line-height: 1.45 !important;
}

.home-hero .hero-actions {
  margin-top: 16px !important;
}

.home-hero .trust-row {
  margin-top: 14px !important;
}

/* Category section sits close to hero */
#categories.section {
  padding: 24px 0 30px !important;
}

#categories .section-head {
  margin-bottom: 14px !important;
  align-items: flex-end !important;
}

#categories .section-head p {
  margin-top: 4px !important;
}

/* Category cards */
#categories .category-grid {
  margin-top: 12px !important;
  gap: 12px !important;
}

#categories .category-card {
  min-height: 185px !important;
  padding: 16px !important;
  border-radius: 20px !important;
  text-align: center !important;
}

/* Center icon inside every category card */
#categories .category-card-top {
  position: relative !important;
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#categories .category-icon {
  width: 58px !important;
  height: 58px !important;
  margin: 0 auto !important;
}

#categories .category-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

#categories .category-arrow {
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Category name and description centered */
#categories .category-card h3 {
  margin: 11px 0 4px !important;
  text-align: center !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
}

#categories .category-card p {
  margin: 0 !important;
  text-align: center !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

#categories .category-count {
  margin-top: auto !important;
  padding-top: 7px !important;
  text-align: center !important;
}

/* Make any remaining homepage tool cards clean and centered */
.home-hero + #categories ~ section .tool-card,
.home-hero + #categories ~ .section .tool-card,
.home-hero + #categories ~ .section-tight .tool-card {
  text-align: center;
}

.home-hero + #categories ~ section .tool-card-top,
.home-hero + #categories ~ .section .tool-card-top,
.home-hero + #categories ~ .section-tight .tool-card-top {
  justify-content: center !important;
}

@media (max-width: 680px) {

  .home-hero {
    padding: 18px 0 16px !important;
  }

  .home-hero h1 {
    margin: 12px auto 8px !important;
  }

  .home-hero .hero-text {
    font-size: 15px !important;
  }

  .home-hero .hero-actions {
    margin-top: 13px !important;
  }

  .home-hero .trust-row {
    margin-top: 11px !important;
  }

  #categories.section {
    padding: 18px 0 24px !important;
  }

  #categories .section-head {
    margin-bottom: 10px !important;
  }

  #categories .section-head h2 {
    font-size: 30px !important;
  }

  #categories .section-head p {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  #categories .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 10px !important;
  }

  #categories .category-card {
    min-height: 165px !important;
    padding: 13px !important;
    border-radius: 17px !important;
  }

  #categories .category-card-top {
    min-height: 52px !important;
  }

  #categories .category-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 15px !important;
  }

  #categories .category-card h3 {
    margin-top: 9px !important;
    font-size: 18px !important;
  }

  #categories .category-card p {
    font-size: 12.5px !important;
    line-height: 1.32 !important;
  }

  #categories .category-count {
    padding-top: 5px !important;
    font-size: 12px !important;
  }
}


/* TOOLXY FINAL OVERRIDE 2026-09-21 */
html body .home-hero{padding:20px 0 18px!important}
html body #categories.section{padding:18px 0 26px!important;margin:0!important}
html body #categories .section-head{margin:0 0 10px!important}
html body #categories .category-grid{margin:0!important;gap:10px!important}
html body #categories .category-card{
  min-height:170px!important;
  padding:14px!important;
  border-radius:18px!important;
  text-align:center!important;
}
html body #categories .category-card-top{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:54px!important;
}
html body #categories .category-icon{
  width:54px!important;
  height:54px!important;
  margin:0 auto!important;
  flex:0 0 54px!important;
}
html body #categories .category-icon img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
html body #categories .category-arrow{
  position:absolute!important;
  right:0!important;
  top:50%!important;
  transform:translateY(-50%)!important;
}
html body #categories .category-card h3{
  margin:9px 0 3px!important;
  text-align:center!important;
  font-size:19px!important;
  line-height:1.15!important;
}
html body #categories .category-card p{
  margin:0!important;
  text-align:center!important;
  font-size:13px!important;
  line-height:1.35!important;
}
html body #categories .category-count{
  margin-top:auto!important;
  padding-top:5px!important;
  text-align:center!important;
}
@media(max-width:680px){
  html body .home-hero{padding:14px 0 12px!important}
  html body #categories.section{padding:14px 0 20px!important}
  html body #categories .section-head{margin-bottom:8px!important}
  html body #categories .category-grid{gap:8px!important}
  html body #categories .category-card{
    min-height:154px!important;
    padding:11px!important;
    border-radius:16px!important;
  }
  html body #categories .category-card-top{min-height:48px!important}
  html body #categories .category-icon{
    width:48px!important;
    height:48px!important;
    flex-basis:48px!important;
    border-radius:14px!important;
  }
  html body #categories .category-card h3{
    margin-top:8px!important;
    font-size:17px!important;
  }
  html body #categories .category-card p{
    font-size:12px!important;
    line-height:1.3!important;
  }
  html body #categories .category-count{font-size:11px!important}
}


/* =========================================================
   TOOLXY TOOL PAGE FINAL LAYOUT + AI HELP + SCROLL CONTROLS
   2026-09-21
   ========================================================= */
html body .tool-page{
  padding:10px 0 28px!important;
}
html body .tool-page-container{
  max-width:1180px!important;
}
html body .tool-page .tool-page-title{
  text-align:center!important;
  margin:0 auto 8px!important;
  padding:0!important;
}
html body .tool-page .tool-page-title .tool-meta-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0 auto 6px!important;
}
html body .tool-page .tool-page-title h1{
  text-align:center!important;
  margin:0!important;
  line-height:1.08!important;
}
html body .tool-page .tool-page-title p{
  text-align:center!important;
  margin:5px auto 0!important;
  max-width:760px!important;
  line-height:1.45!important;
}
html body .tool-page .tool-live-card{
  margin:0 auto 10px!important;
  padding:0!important;
  border-radius:20px!important;
  overflow:visible!important;
}
html body .tool-page .tool-workspace-inner{
  padding:16px!important;
}
html body .tool-page .tool-info-card,
html body .tool-page .tool-content{
  margin-top:10px!important;
}
html body .tool-page .tool-info-card{
  border-radius:18px!important;
}
html body .tool-page .tool-content-shell,
html body .tool-page .tool-seo-content{
  line-height:1.65!important;
}
html body .toolxy-float-tools{
  position:fixed!important;
  right:18px!important;
  bottom:92px!important;
  z-index:9997!important;
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
}
html body .toolxy-scroll-btn{
  width:42px!important;
  height:42px!important;
  border:1px solid var(--border)!important;
  border-radius:12px!important;
  background:var(--surface)!important;
  color:var(--text)!important;
  box-shadow:0 8px 24px rgba(16,24,40,.12)!important;
  font-size:21px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
html body .toolxy-scroll-btn:hover{
  transform:translateY(-1px)!important;
}
html body .toolxy-ai{
  position:fixed!important;
  right:18px!important;
  bottom:18px!important;
  z-index:9998!important;
  font-family:inherit!important;
}
html body .toolxy-ai-launcher{
  min-height:46px!important;
  padding:0 16px!important;
  border:0!important;
  border-radius:999px!important;
  background:var(--brand)!important;
  color:#fff!important;
  box-shadow:0 10px 28px rgba(16,24,40,.22)!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
html body .toolxy-ai-spark{font-size:18px!important}
html body .toolxy-ai-panel{
  position:absolute!important;
  right:0!important;
  bottom:58px!important;
  width:min(360px,calc(100vw - 28px))!important;
  height:500px!important;
  max-height:calc(100vh - 100px)!important;
  background:var(--surface)!important;
  color:var(--text)!important;
  border:1px solid var(--border)!important;
  border-radius:18px!important;
  box-shadow:0 18px 55px rgba(16,24,40,.22)!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
html body .toolxy-ai-panel[hidden]{display:none!important}
html body .toolxy-ai-head{
  flex:0 0 auto!important;
  padding:13px 14px!important;
  border-bottom:1px solid var(--border)!important;
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
}
html body .toolxy-ai-head strong{display:block!important;font-size:14px!important}
html body .toolxy-ai-head small{display:block!important;margin-top:2px!important;color:var(--muted)!important;font-size:11px!important}
html body .toolxy-ai-head button{
  width:32px!important;height:32px!important;border:0!important;background:transparent!important;
  color:var(--text)!important;font-size:23px!important;cursor:pointer!important;
}
html body .toolxy-ai-messages{
  flex:1 1 auto!important;
  min-height:0!important;
  padding:12px!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
}
html body .toolxy-ai-msg{
  max-width:88%!important;
  margin:0 0 9px!important;
  padding:9px 11px!important;
  border-radius:13px!important;
  font-size:12.5px!important;
  line-height:1.45!important;
  word-break:break-word!important;
}
html body .toolxy-ai-msg.bot{
  margin-right:auto!important;
  background:var(--bg-soft,#f5f7fa)!important;
  border:1px solid var(--border)!important;
}
html body .toolxy-ai-msg.user{
  margin-left:auto!important;
  background:var(--brand)!important;
  color:#fff!important;
}
html body .toolxy-ai-suggestions{
  flex:0 0 auto!important;
  padding:7px 10px!important;
  display:flex!important;
  gap:6px!important;
  overflow-x:auto!important;
  border-top:1px solid var(--border)!important;
  scrollbar-width:thin!important;
}
html body .toolxy-ai-suggestions button{
  flex:0 0 auto!important;
  border:1px solid var(--border)!important;
  background:var(--surface)!important;
  color:var(--text)!important;
  border-radius:999px!important;
  padding:6px 9px!important;
  font-size:11px!important;
  cursor:pointer!important;
}
html body .toolxy-ai-form{
  flex:0 0 auto!important;
  display:flex!important;
  gap:7px!important;
  padding:10px!important;
  border-top:1px solid var(--border)!important;
}
html body .toolxy-ai-form input{
  min-width:0!important;
  flex:1 1 auto!important;
  height:38px!important;
  border:1px solid var(--border)!important;
  border-radius:11px!important;
  background:var(--bg)!important;
  color:var(--text)!important;
  padding:0 10px!important;
  outline:none!important;
}
html body .toolxy-ai-form button{
  flex:0 0 40px!important;
  height:38px!important;
  border:0!important;
  border-radius:11px!important;
  background:var(--brand)!important;
  color:#fff!important;
  cursor:pointer!important;
  font-size:16px!important;
}
@media(max-width:680px){
  html body .tool-page{padding:6px 0 20px!important}
  html body .tool-page .tool-page-title{margin-bottom:6px!important}
  html body .tool-page .tool-page-title .tool-meta-badge{margin-bottom:4px!important}
  html body .tool-page .tool-page-title h1{font-size:clamp(25px,8vw,34px)!important}
  html body .tool-page .tool-page-title p{font-size:13px!important;margin-top:4px!important}
  html body .tool-page .tool-live-card{margin-bottom:8px!important;border-radius:16px!important}
  html body .tool-page .tool-workspace-inner{padding:10px!important}
  html body .tool-page .tool-info-card,
  html body .tool-page .tool-content{margin-top:8px!important}
  html body .toolxy-float-tools{right:10px!important;bottom:78px!important;gap:5px!important}
  html body .toolxy-scroll-btn{width:36px!important;height:36px!important;border-radius:10px!important;font-size:18px!important}
  html body .toolxy-ai{right:10px!important;bottom:10px!important}
  html body .toolxy-ai-panel{right:0!important;bottom:54px!important;width:calc(100vw - 20px)!important;height:min(500px,calc(100vh - 90px))!important;border-radius:16px!important}
  html body .toolxy-ai-launcher{min-height:42px!important;padding:0 13px!important}
}


/* TOOLXY GLOBAL CONTROLS — all public pages */
html body .toolxy-float-tools{
  position:fixed!important;
  right:18px!important;
  bottom:88px!important;
  z-index:9997!important;
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
}
html body .toolxy-ai{
  position:fixed!important;
  right:18px!important;
  bottom:18px!important;
  z-index:9998!important;
}
html body .toolxy-ai-panel{
  overflow:hidden!important;
}
html body .toolxy-ai-messages{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:thin!important;
}
@media(max-width:680px){
  html body .toolxy-float-tools{right:10px!important;bottom:72px!important;gap:5px!important}
  html body .toolxy-scroll-btn{width:36px!important;height:36px!important}
  html body .toolxy-ai{right:10px!important;bottom:10px!important}
  html body .toolxy-ai-panel{width:calc(100vw - 20px)!important;height:min(500px,calc(100vh - 90px))!important}
}
