/* ==========================================================================
   SEOLivly — Preview Design System (Complete)
   Three sections:
     1. Preview Design System (from preview/index.html)
     2. sl-* Class Mappings (aliases for PHP tool files)
     3. Bootstrap/Framework Overrides (with !important)
   ========================================================================== */


/* ==========================================================================
   SECTION 1: PREVIEW DESIGN SYSTEM
   Extracted verbatim from preview/index.html — uses short class names.
   ========================================================================== */

:root {
  /* Preview design tokens */
  --bg: #0b0d10;
  --surface: #141620;
  --surface-2: #1a1d2b;
  --text: #fff;
  --text-body: rgba(255,255,255,0.65);
  --text-muted: rgba(255,255,255,0.4);
  --primary: #2bb5a8;
  --primary-dim: rgba(43,181,168,0.08);
  --primary-border: rgba(43,181,168,0.2);
  --secondary: #7c5ce0;
  --secondary-dim: rgba(124,92,224,0.08);
  --secondary-border: rgba(124,92,224,0.2);
  --gold: #ffd638;
  --border: rgba(255,255,255,0.1);
  --border-half: rgba(255,255,255,0.06);
  --r: 12px;
  --r-lg: 16px;
  --r-pill: 9999px;
  --font-h: 'Poppins',system-ui,sans-serif;
  --font-b: 'Inter',system-ui,sans-serif;
  --max-w: 960px;
  --nav-h: 56px;
  --sidebar-w: 250px;

  /* sl-* aliases — PHP tool files use these in inline styles */
  --sl-bg: var(--bg);
  --sl-surface: var(--surface);
  --sl-surface-2: var(--surface-2);
  --sl-text: var(--text);
  --sl-text-body: var(--text-body);
  --sl-text-muted: var(--text-muted);
  --sl-primary: var(--primary);
  --sl-primary-dim: var(--primary-dim);
  --sl-primary-border: var(--primary-border);
  --sl-secondary: var(--secondary);
  --sl-secondary-dim: var(--secondary-dim);
  --sl-secondary-border: var(--secondary-border);
  --sl-gold: var(--gold);
  --sl-green: #22c55e;
  --sl-red: #ef4444;
  --sl-border: var(--border);
  --sl-border-half: var(--border-half);
  --sl-r: var(--r);
  --sl-r-lg: var(--r-lg);
  --sl-r-pill: var(--r-pill);
  --sl-font-h: var(--font-h);
  --sl-font-b: var(--font-b);
  --sl-max-w: var(--max-w);
  --sl-nav-h: var(--nav-h);
  --sl-sidebar-w: var(--sidebar-w);
}

/* ---------- Base reset ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg);scroll-behavior:smooth}
body{background:var(--bg);color:var(--text-body);font-family:var(--font-b);-webkit-font-smoothing:antialiased;line-height:1.6}
::selection{background:rgba(43,181,168,0.25);color:#fff}
img{max-width:100%;height:auto}
a{color:var(--primary);text-decoration:none;transition:color .2s}
a:hover{color:#3dd4c5}
h1,h2,h3,h4,h5,h6{font-family:var(--font-h);color:var(--text);font-weight:700;line-height:1.25}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar{width:5px}
::-webkit-scrollbar-track{background:var(--bg)}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.08);border-radius:3px}

/* ---------- Pill badge ---------- */
.pill{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-h);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.12em;color:var(--primary);padding:6px 18px;border:1px solid var(--primary-border);border-radius:var(--r-pill);background:var(--primary-dim);backdrop-filter:blur(8px);margin-bottom:16px}

/* ---------- NAV ---------- */
.nav{position:sticky;top:0;z-index:100;background:rgba(11,13,16,0.9);backdrop-filter:blur(16px);border-bottom:1px solid var(--border);height:var(--nav-h)}
.nav-in{max-width:1200px;margin:0 auto;padding:0 16px;height:100%;display:flex;align-items:center;gap:6px}
.logo{display:flex;align-items:center;gap:8px;text-decoration:none;flex-shrink:0}
.logo img{height:40px;width:40px;border-radius:8px}
.logo span{font-family:var(--font-h);font-size:18px;font-weight:700;color:var(--text);letter-spacing:-.01em}
.logo span b{color:var(--primary)}
.nav-links{display:flex;align-items:center;gap:1px;margin-left:20px;list-style:none}
.nav-links>li{position:relative}
.nav-links>li>a{display:flex;align-items:center;gap:4px;padding:7px 12px;color:var(--text-body);font-size:13px;font-weight:500;border-radius:8px;transition:all .2s;white-space:nowrap}
.nav-links>li>a:hover,.nav-links>li.on>a{color:var(--primary);background:var(--primary-dim)}
.nav-links .tog a{color:var(--primary)!important;font-weight:600!important}
.nav-r{margin-left:auto;display:flex;align-items:center}
.nav-cta{padding:7px 16px;background:var(--primary);color:var(--bg);font-family:var(--font-h);font-size:12px;font-weight:700;border-radius:var(--r-pill);text-transform:uppercase;letter-spacing:.04em;transition:all .2s}
.nav-cta:hover{background:#3dd4c5;color:var(--bg);transform:translateY(-1px)}

/* Nav dropdowns */
.dd{list-style:none;position:absolute;top:calc(100% + 3px);left:0;min-width:180px;background:rgba(20,22,32,0.97);backdrop-filter:blur(16px);border:1px solid var(--border);border-radius:var(--r);box-shadow:0 12px 40px rgba(0,0,0,0.5);padding:5px 0;opacity:0;visibility:hidden;transform:translateY(6px);transition:all .2s;z-index:200}
.nav-links>li:hover>.dd{opacity:1;visibility:visible;transform:translateY(0)}
.dd li a{display:block;padding:7px 14px;color:var(--text-body);font-size:12px;transition:all .15s}
.dd li a:hover{color:var(--primary);background:var(--primary-dim)}

@media(max-width:900px){.nav-links{display:none}.nav-r{margin-left:auto}}

/* ---------- SIDEBAR (slide-out) ---------- */
.sb{position:fixed;top:0;left:0;bottom:0;width:var(--sidebar-w);background:var(--bg);border-right:1px solid var(--border);transform:translateX(-100%);transition:transform .3s cubic-bezier(.4,0,.2,1);z-index:1050;overflow-y:auto}
.sb.open{transform:translateX(0);box-shadow:8px 0 40px rgba(0,0,0,.5)}
.ol{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:1040;opacity:0;pointer-events:none;transition:opacity .3s;backdrop-filter:blur(2px)}
.ol.on{opacity:1;pointer-events:auto}
.sb-top{padding:14px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}
.sb-x{background:0;border:0;color:var(--text-muted);font-size:16px;cursor:pointer;padding:4px 6px;border-radius:6px;transition:all .2s}
.sb-x:hover{color:var(--text);background:var(--surface-2)}
.sb-nav{padding:6px 0}
.sb-cat{color:var(--text-muted);font-family:var(--font-h);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;padding:16px 16px 6px}
.sb-nav a{display:flex;align-items:center;gap:8px;padding:8px 16px;color:var(--text-body);font-size:13px;font-weight:500;border-left:3px solid transparent;transition:all .2s}
.sb-nav a:hover{color:#fff;background:rgba(43,181,168,.05);border-left-color:rgba(43,181,168,.4)}
.sb-nav a.on{color:var(--primary);background:var(--primary-dim);border-left-color:var(--primary)}
.sb-nav a i{width:18px;text-align:center;font-size:13px;opacity:.5}
.sb-nav a:hover i,.sb-nav a.on i{opacity:1}

/* ---------- Tool layout (flex with persistent sidebar) ---------- */
.tl{display:flex;min-height:calc(100vh - var(--nav-h))}
.tl-sb{width:var(--sidebar-w);flex-shrink:0;background:var(--bg);border-right:1px solid var(--border);overflow-y:auto;position:sticky;top:var(--nav-h);height:calc(100vh - var(--nav-h))}
.tl-m{flex:1;min-width:0}
.tl-in{max-width:var(--max-w);margin:0 auto;padding:40px 16px 60px}
@media(max-width:991px){.tl-sb{display:none}.tl-in{padding:24px 16px 40px}}

/* ---------- HERO ---------- */
.hero{position:relative;overflow:hidden;text-align:center;padding:80px 16px 60px}
.hero-g1{position:absolute;top:-80px;left:25%;width:350px;height:350px;background:rgba(43,181,168,.06);border-radius:50%;filter:blur(100px);pointer-events:none}
.hero-g2{position:absolute;bottom:-60px;right:20%;width:250px;height:250px;background:rgba(124,92,224,.06);border-radius:50%;filter:blur(100px);pointer-events:none}
.hero-logo{width:120px;height:120px;margin:0 auto 20px;filter:drop-shadow(0 0 30px rgba(43,181,168,.3))}
.hero h1{font-size:clamp(2rem,5vw,3.2rem);font-weight:800;letter-spacing:-.02em;line-height:1.15;margin-bottom:16px}
.grad{background:linear-gradient(135deg,var(--primary),var(--secondary));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-sub{max-width:480px;margin:0 auto 28px;font-size:16px;line-height:1.6;color:var(--text-muted)}
.hero-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-h);font-weight:700;border-radius:var(--r-pill);cursor:pointer;transition:all .2s;border:none;text-decoration:none;letter-spacing:.01em}
.btn-lg{padding:12px 24px;font-size:14px}
.btn-p{background:var(--primary);color:var(--bg)}
.btn-p:hover{background:#3dd4c5;color:var(--bg);transform:translateY(-1px);box-shadow:0 4px 16px rgba(43,181,168,.3)}
.btn-o{background:0;color:var(--text-body);border:1px solid var(--border)}
.btn-o:hover{background:var(--surface);color:var(--text)}

/* ---------- SECTIONS ---------- */
.sec{max-width:var(--max-w);margin:0 auto;padding:48px 16px}
.sec-t{text-align:center;margin-bottom:40px}
.sec-t h2{font-size:clamp(1.4rem,3vw,1.8rem);margin-bottom:10px}
.sec-t p{color:var(--text-muted);max-width:480px;margin:0 auto;font-size:14px}

/* ---------- TOOL CARDS grid ---------- */
.tg{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.tc{display:block;background:var(--surface);border:1px solid var(--border-half);border-radius:var(--r-lg);padding:24px;text-decoration:none;transition:all .25s}
.tc:hover{border-color:var(--primary-border);box-shadow:0 8px 32px rgba(43,181,168,.04);transform:translateY(-2px)}
.tc-i{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:12px;margin-bottom:14px;font-size:18px;background:var(--primary-dim);color:var(--primary)}
.tc h3{font-size:1.05rem;margin-bottom:6px}
.tc p{color:var(--text-muted);font-size:13px;line-height:1.5;margin-bottom:10px}
.tc .arr{color:var(--primary);font-family:var(--font-h);font-weight:600;font-size:13px;display:inline-flex;align-items:center;gap:5px;transition:gap .2s}
.tc:hover .arr{gap:8px}

/* ---------- FEATURES ---------- */
.feat{border-top:1px solid var(--border);background:rgba(20,22,32,.4)}
.feat-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:28px;text-align:center}
.feat-i{width:40px;height:40px;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;border-radius:12px;background:var(--primary-dim);border:1px solid var(--primary-border);color:var(--primary);font-size:18px}
.feat-g h4{margin-bottom:6px;font-size:.95rem}
.feat-g p{color:var(--text-muted);font-size:13px}

/* ---------- OCTOPUS ADVANTAGE ---------- */
.octo{border-top:1px solid var(--border);background:var(--surface)}
.octo-in{max-width:var(--max-w);margin:0 auto;padding:64px 16px;display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.octo-txt h2{font-size:clamp(1.5rem,3vw,2rem);margin-bottom:20px;line-height:1.3}
.octo-txt p{color:var(--text-body);font-size:14px;line-height:1.7;margin-bottom:16px}
.octo-txt p strong{color:var(--text)}
.octo-arms{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:8px}
.octo-arms li{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:var(--text-body);line-height:1.5}
.octo-arms li i{color:var(--primary);margin-top:3px;width:14px;flex-shrink:0;font-size:12px}
.octo-arms li strong{color:var(--text);white-space:nowrap}
.octo-vis{display:flex;align-items:center;justify-content:center}
.octo-vis img{width:480px;height:480px;filter:drop-shadow(0 0 60px rgba(43,181,168,.2))}
@media(max-width:700px){.octo-in{grid-template-columns:1fr}.octo-vis{order:-1}.octo-vis img{width:160px;height:160px}}

/* ---------- SERVICES TEASER ---------- */
.svc{border-top:1px solid var(--border)}
.svc-g{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.svc-card{background:var(--surface);border:1px solid var(--border-half);border-radius:var(--r-lg);padding:28px;transition:border-color .25s}
.svc-card:hover{border-color:var(--primary-border)}
.svc-card-i{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:14px;margin-bottom:16px;font-size:20px}
.svc-card h3{font-size:1rem;margin-bottom:8px}
.svc-card p{color:var(--text-muted);font-size:13px;line-height:1.5}

/* ---------- TESTIMONIALS ---------- */
.testi{border-top:1px solid var(--border);background:rgba(20,22,32,.4)}
.testi-g{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.testi-card{background:var(--surface);border:1px solid var(--border-half);border-radius:var(--r-lg);padding:24px}
.testi-stars{color:var(--gold);font-size:13px;margin-bottom:16px;letter-spacing:2px}
.testi-who{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.testi-av{width:40px;height:40px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;color:var(--primary);font-family:var(--font-h)}
.testi-name{font-family:var(--font-h);font-size:14px;font-weight:700;color:var(--text)}
.testi-role{font-size:11px;color:var(--text-muted)}
.testi-card blockquote{color:var(--text-body);font-size:13px;line-height:1.6;font-style:italic;margin:0}

/* ---------- ALL TOOLS accordion ---------- */
.at{border-top:1px solid var(--border)}
.at-strip{border-bottom:1px solid var(--border-half);transition:background .2s}
.at-strip:last-child{border-bottom:0}
.at-strip:hover{background:rgba(255,255,255,.01)}
.at-bar{display:flex;align-items:center;gap:14px;padding:16px 0;cursor:pointer;width:100%;background:0;border:0;color:inherit;font-family:inherit;text-align:left}
.at-bar-icon{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:10px;font-size:16px;flex-shrink:0}
.at-bar-title{font-family:var(--font-h);font-size:.95rem;font-weight:700;color:var(--text)}
.at-bar-count{font-size:12px;color:var(--text-muted);margin-top:1px}
.at-bar-chev{margin-left:auto;color:var(--text-muted);font-size:11px;transition:transform .25s;padding-right:4px}
.at-strip.open .at-bar-chev{transform:rotate(180deg)}
.at-tools{display:none;padding:0 0 20px 52px;columns:3;column-gap:8px}
.at-strip.open .at-tools{display:block}
.at-tools a{display:block;padding:6px 10px;color:var(--text-body);font-size:13px;border-radius:6px;transition:all .15s;break-inside:avoid}
.at-tools a:hover{color:var(--primary);background:var(--primary-dim)}
@media(max-width:700px){.at-tools{columns:2;padding-left:0}}
@media(max-width:480px){.at-tools{columns:1}}

/* ---------- BLOG PREVIEW on homepage ---------- */
.blog-prev{border-top:1px solid var(--border)}
.bp-g{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.bp-card{background:var(--surface);border:1px solid var(--border-half);border-radius:var(--r-lg);overflow:hidden;transition:all .25s;text-decoration:none;display:block}
.bp-card:hover{border-color:var(--primary-border);transform:translateY(-2px)}
.bp-img{width:100%;aspect-ratio:16/10;background:linear-gradient(135deg,var(--surface-2),var(--surface));display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:2.5rem;position:relative}
.bp-cat{position:absolute;top:12px;left:12px;background:var(--primary);color:var(--bg);font-family:var(--font-h);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;padding:3px 10px;border-radius:var(--r-pill)}
.bp-body{padding:20px}
.bp-body h3{font-size:.95rem;margin-bottom:6px;line-height:1.35;color:var(--text)}
.bp-body p{color:var(--text-muted);font-size:12px;line-height:1.5;margin-bottom:10px}
.bp-rm{color:var(--primary);font-family:var(--font-h);font-weight:600;font-size:12px}

/* ---------- CTA band ---------- */
.cta-b{border-top:1px solid var(--border);padding:48px 16px;text-align:center;background:var(--surface)}
.cta-b h2{margin-bottom:10px;font-size:1.4rem}
.cta-b p{color:var(--text-muted);margin-bottom:20px;max-width:480px;margin-left:auto;margin-right:auto;font-size:14px}

/* ---------- TOOL PAGE hero ---------- */
.t-hero{margin-bottom:28px;text-align:center}
.t-hero h1{font-size:clamp(1.5rem,3.5vw,2rem);margin-bottom:8px}
.t-hero p{color:var(--text-muted);font-size:14px;max-width:540px;margin:0 auto}

/* ---------- Tool form ---------- */
.t-form{display:flex;max-width:640px;margin:0 auto 32px;gap:8px}
.t-form-in{position:relative;flex:1}
.t-form-in input{width:100%;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);color:var(--text);padding:12px 14px 12px 42px;font-size:14px;font-family:var(--font-b);transition:border-color .2s,box-shadow .2s;outline:none}
.t-form-in input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-dim)}
.t-form-in input::placeholder{color:var(--text-muted)}
.t-form button{padding:12px 24px;background:var(--primary);color:var(--bg);font-family:var(--font-h);font-size:13px;font-weight:700;border:none;border-radius:var(--r);cursor:pointer;white-space:nowrap;transition:all .2s}
.t-form button:hover{background:#3dd4c5;transform:translateY(-1px)}

/* ---------- Tool article ---------- */
.t-art{margin-top:48px}
.t-art>section{margin-bottom:48px}

/* ---------- Section headers ---------- */
.sh{display:flex;align-items:center;gap:10px;margin-bottom:20px}
.sh-i{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--primary-dim);border:1px solid var(--primary-border);color:var(--primary);font-size:16px;flex-shrink:0}
.sh h2{font-size:1.35rem;letter-spacing:-.01em}

/* ---------- Steps grid ---------- */
.steps{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.step{background:var(--surface);border:1px solid var(--border-half);border-radius:var(--r);padding:20px}
.step-n{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--primary-dim);color:var(--primary);font-family:var(--font-h);font-weight:700;font-size:12px;margin-bottom:10px}
.step h3{font-size:.9rem;margin-bottom:6px}
.step p{font-size:13px;color:var(--text-muted);line-height:1.5}

/* ---------- Content cards ---------- */
.c-card{border-radius:var(--r-lg);border:1px solid var(--border-half);background:var(--surface);padding:28px}
.c-card p{color:var(--text-muted);font-size:14px;line-height:1.7;margin-bottom:12px}
.c-card p:last-child{margin-bottom:0}
.c-card strong{color:var(--text)}

/* ---------- Highlight card ---------- */
.h-card{border-radius:var(--r-lg);border:1px solid var(--primary-border);background:rgba(43,181,168,.04);padding:28px}
.h-card ul{list-style:none;padding:0}
.h-card li{display:flex;gap:10px;margin-bottom:10px;color:var(--text-muted);font-size:14px;line-height:1.6}
.h-card li:last-child{margin-bottom:0}
.h-card .num{width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--primary-dim);color:var(--primary);font-size:11px;font-weight:700;flex-shrink:0;margin-top:2px}

/* ---------- Metrics grid ---------- */
.m-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.m-card{background:var(--surface);border:1px solid var(--border-half);border-radius:var(--r);padding:20px}
.m-card-h{display:flex;align-items:center;gap:6px;margin-bottom:8px}
.m-card-h i{color:var(--primary);font-size:14px}
.m-card-h h3{font-size:.85rem}
.m-card p{font-size:13px;color:var(--text-muted);line-height:1.5}

/* ---------- FAQ accordion ---------- */
.faq{margin:0}
.faq details{border:1px solid var(--border-half);border-radius:var(--r);margin-bottom:6px;background:var(--surface);overflow:hidden}
.faq summary{padding:14px 16px;font-family:var(--font-h);font-weight:600;color:var(--text);cursor:pointer;font-size:14px;list-style:none;transition:background .2s}
.faq summary:hover{background:rgba(255,255,255,.02)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::before{content:"+ ";color:var(--primary);font-weight:700;margin-right:4px}
.faq details[open] summary::before{content:"\2212  "}
.faq details[open] summary{border-bottom:1px solid var(--border-half)}
.faq-a{padding:14px 16px;color:var(--text-muted);line-height:1.6;font-size:13px}

/* ---------- Related tools ---------- */
.rel{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.rel a{display:block;background:var(--surface);border:1px solid var(--border-half);border-radius:var(--r);padding:14px;text-decoration:none;transition:all .2s}
.rel a:hover{border-color:var(--primary-border);transform:translateY(-2px)}
.rel strong{display:block;color:var(--text);font-family:var(--font-h);font-size:13px;margin-bottom:3px}
.rel span{color:var(--text-muted);font-size:11px;line-height:1.4}

/* ---------- BLOG PAGE ---------- */
.blog-hero{text-align:center;padding:64px 16px 36px;border-bottom:1px solid var(--border)}
.blog-hero h1{font-size:clamp(1.8rem,4vw,2.5rem);margin-bottom:10px}
.blog-hero p{color:var(--text-muted);max-width:480px;margin:0 auto;font-size:14px}
.blog-tabs{display:flex;justify-content:center;gap:4px;padding:20px 16px 0;flex-wrap:wrap}
.blog-tabs button{background:0;border:1px solid var(--border-half);color:var(--text-muted);font-family:var(--font-h);font-size:11px;font-weight:600;padding:6px 14px;border-radius:var(--r-pill);cursor:pointer;transition:all .2s;text-transform:uppercase;letter-spacing:.04em}
.blog-tabs button:hover,.blog-tabs button.on{color:var(--primary);border-color:var(--primary-border);background:var(--primary-dim)}
.bg{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px;max-width:1100px;margin:0 auto;padding:32px 16px}
.bc{background:var(--surface);border:1px solid var(--border-half);border-radius:var(--r-lg);overflow:hidden;transition:all .25s}
.bc:hover{border-color:var(--primary-border);transform:translateY(-2px);box-shadow:0 8px 32px rgba(43,181,168,.04)}
.bc-img{width:100%;aspect-ratio:16/10;object-fit:cover;display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:2.5rem;position:relative}
.bc-cat{position:absolute;top:12px;left:12px;background:var(--primary);color:var(--bg);font-family:var(--font-h);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;padding:3px 10px;border-radius:var(--r-pill)}
.bc-body{padding:20px}
.bc-body h3{font-size:1rem;margin-bottom:8px;line-height:1.35}
.bc-body h3 a{color:var(--text);transition:color .2s}
.bc-body h3 a:hover{color:var(--primary)}
.bc-body p{color:var(--text-muted);font-size:13px;line-height:1.5;margin-bottom:12px}
.bc-meta{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--text-muted)}
.rm{color:var(--primary);font-family:var(--font-h);font-weight:600;font-size:12px;transition:color .2s}
.rm:hover{color:#3dd4c5}

/* ---------- SERVICES PAGE ---------- */
.pg-hero{text-align:center;padding:64px 16px 48px;border-bottom:1px solid var(--border)}
.pg-hero h1{font-size:clamp(1.8rem,4vw,2.4rem);margin-bottom:10px}
.pg-hero p{color:var(--text-muted);max-width:540px;margin:0 auto;font-size:15px;line-height:1.6}
.pg-sec{max-width:var(--max-w);margin:0 auto;padding:48px 16px}
.pg-split{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;max-width:var(--max-w);margin:0 auto;padding:64px 16px}
.pg-split-txt h2{font-size:clamp(1.4rem,3vw,1.8rem);margin-bottom:16px;line-height:1.3}
.pg-split-txt p{color:var(--text-body);font-size:14px;line-height:1.7;margin-bottom:14px}
.pg-split-vis{display:flex;align-items:center;justify-content:center}
.pg-split-vis img{width:200px;height:200px;filter:drop-shadow(0 0 40px rgba(43,181,168,.2))}
.pg-list{list-style:none;margin:16px 0 0}
.pg-list li{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px;font-size:14px;color:var(--text-body);line-height:1.5}
.pg-list li i{color:var(--primary);margin-top:3px;width:16px;flex-shrink:0}
@media(max-width:700px){.pg-split{grid-template-columns:1fr}.pg-split-vis{order:-1}}

/* ---------- ABOUT PAGE ---------- */
.about-sec{max-width:720px;margin:0 auto;padding:48px 16px}
.about-sec h2{font-size:1.35rem;margin-bottom:16px}
.about-sec p{color:var(--text-body);font-size:14px;line-height:1.7;margin-bottom:14px}
.about-sec strong{color:var(--text)}

/* ---------- PRICING ---------- */
.price-card{background:var(--surface);border:1px solid var(--primary-border);border-radius:var(--r-lg);padding:32px;text-align:center;max-width:480px;margin:0 auto}
.price-card .price{font-family:var(--font-h);font-size:2.4rem;font-weight:800;color:var(--primary);margin-bottom:4px}
.price-card .price-unit{font-size:14px;color:var(--text-muted);margin-bottom:20px}
.price-steps{list-style:none;text-align:left;margin:0 0 24px}
.price-steps li{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px;font-size:14px;color:var(--text-body);line-height:1.5}
.price-steps li .step-num{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--primary-dim);color:var(--primary);font-family:var(--font-h);font-weight:700;font-size:11px;flex-shrink:0;margin-top:1px}

/* ---------- FOOTER ---------- */
.ft{background:var(--bg);border-top:1px solid var(--border);padding:48px 16px 0;margin-top:32px}
.ft-in{max-width:var(--max-w);margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px}
.ft-brand{color:var(--primary);font-family:var(--font-h);font-size:18px;font-weight:700;margin-bottom:8px}
.ft-desc{color:var(--text-muted);font-size:13px;line-height:1.5}
.ft h5{color:var(--text);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;margin-bottom:12px}
.ft-links{list-style:none}
.ft-links li{margin-bottom:6px}
.ft-links a{color:var(--text-muted);font-size:13px;transition:color .2s}
.ft-links a:hover{color:var(--primary)}
.ft-bot{border-top:1px solid var(--border);padding:16px 0;margin-top:32px;text-align:center;color:var(--text-muted);font-size:12px}

/* ---------- All responsive breakpoints ---------- */
@media(max-width:700px){
  .ft-in{grid-template-columns:1fr 1fr}
  .bg{grid-template-columns:1fr}
  .tg{grid-template-columns:1fr}
  .hero{padding:48px 16px 40px}
  .hero-logo{width:80px;height:80px}
  .svc-g{grid-template-columns:1fr}
  .testi-g{grid-template-columns:1fr}
  .bp-g{grid-template-columns:1fr}
}
@media(max-width:480px){
  .ft-in{grid-template-columns:1fr}
  .hero-btns{flex-direction:column;align-items:center}
  .t-form{flex-direction:column}
}


/* ==========================================================================
   SECTION 2: sl-* CLASS MAPPINGS
   Makes existing PHP tool files look like the preview design.
   These go AFTER the preview CSS so they can reference the same variables.
   ========================================================================== */

/* --- Tool hero --- */
.sl-tool-hero {
  margin-bottom: 28px;
  text-align: center;
  padding-top: 32px;
}
.sl-tool-hero h1 {
  font-size: clamp(1.5rem,3.5vw,2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--text);
  font-family: var(--font-h);
}
.sl-tool-hero p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 540px;
  margin: 0 auto;
}

/* --- Tool form wrap --- */
.sl-tool-form-wrap {
  max-width: 640px;
  margin: 0 auto 32px;
}
.sl-tool-form-wrap form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sl-tool-form-wrap .sl-input-row {
  flex: 1;
  min-width: 0;
  position: relative;
}
.sl-tool-form-wrap .sl-input-row .sl-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  opacity: .6;
}
.sl-tool-form-wrap input[type="text"],
.sl-tool-form-wrap input[type="url"],
.sl-tool-form-wrap input[type="number"],
.sl-tool-form-wrap input[type="email"],
.sl-tool-form-wrap textarea,
.sl-tool-form-wrap select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-b);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  max-width: 100%;
  margin: 0;
}
.sl-tool-form-wrap input:focus,
.sl-tool-form-wrap textarea:focus,
.sl-tool-form-wrap select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.sl-tool-form-wrap input::placeholder,
.sl-tool-form-wrap textarea::placeholder {
  color: var(--text-muted);
}
.sl-tool-form-wrap .has-icon input {
  padding-left: 42px;
}
.sl-tool-form-wrap .sl-fields-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  width: 100%;
  margin-bottom: 12px;
}
.sl-tool-form-wrap .sl-captcha-row {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border-half);
  border-radius: var(--r);
}
.sl-tool-form-wrap .sl-captcha-row label,
.sl-tool-form-wrap .sl-captcha-row span {
  color: var(--text-muted) !important;
  font-size: 13px !important;
}
.sl-tool-form-wrap .sl-captcha-row img {
  border-radius: 6px !important;
  margin: 8px 0 !important;
}
.sl-tool-form-wrap .sl-captcha-row input {
  max-width: 200px !important;
}
/* Also style captcha in reviewer.php (Website Auditor) */
#minimal-statistics .captchaCon,
.captchaCon {
  padding: 16px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border-half) !important;
  border-radius: var(--r) !important;
  margin: 12px 0 !important;
}
.captchaCon label,
.captchaCon span {
  color: var(--text-muted) !important;
  font-size: 13px !important;
}
.captchaCon img {
  border-radius: 6px !important;
}
.sl-tool-form-wrap .sl-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}
.sl-tool-form-wrap .alert {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-muted);
  font-size: 13px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.sl-tool-form-wrap .alert a {
  color: var(--primary);
}

/* --- Tool button --- */
.sl-tool-btn {
  padding: 12px 24px;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  line-height: 1.5;
  text-decoration: none;
  display: inline-block;
}
.sl-tool-btn:hover {
  background: #3dd4c5;
  color: var(--bg);
  transform: translateY(-1px);
}

/* --- Tool results --- */
.sl-tool-results {
  max-width: 720px;
  margin: 0 auto 32px;
}
.sl-tool-results table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-half);
  border-radius: var(--r);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}
.sl-tool-results table th {
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-half);
}
.sl-tool-results table td {
  padding: 12px 16px;
  color: var(--text-body);
  font-size: 13px;
  border-bottom: 1px solid var(--border-half);
}
.sl-tool-results table tr:last-child td {
  border-bottom: none;
}
.sl-tool-results .alert {
  background: var(--surface);
  border: 1px solid var(--primary-border);
  border-radius: var(--r);
  color: var(--text-body);
  font-size: 13px;
  padding: 14px 16px;
  margin-top: 16px;
}
.sl-tool-results pre {
  background: var(--surface);
  border: 1px solid var(--border-half);
  border-radius: var(--r);
  color: var(--primary);
  padding: 16px 20px;
  font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.sl-tool-results a.sl-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  margin-top: 16px;
}
.sl-tool-results a.sl-back-link::before {
  content: "\2190";
}

/* --- Pillar content --- */
.sl-pillar {
  max-width: 860px;
  margin: 48px auto 0;
  padding: 0 16px 60px;
}
.sl-pillar > section {
  margin-bottom: 48px;
}
.sl-pillar .sh {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.sl-pillar .sh-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}
.sl-pillar .sh h2 {
  font-size: 1.35rem;
  letter-spacing: -.01em;
}

/* Pillar headings */
.sl-pillar h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-half);
  color: var(--text);
  letter-spacing: -.01em;
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.25;
}
.sl-pillar h2:first-child {
  margin-top: 0;
}
.sl-pillar h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.25;
}

/* Pillar body text */
.sl-pillar p {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.sl-pillar p strong {
  color: var(--text);
}
.sl-pillar p a {
  color: var(--primary);
}

/* Pillar lists */
.sl-pillar > ol,
.sl-pillar > ul,
.sl-pillar .card-body ol,
.sl-pillar .card-body ul {
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-body);
}
.sl-pillar li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}
.sl-pillar li strong {
  color: var(--text);
}

/* Pillar tables */
.sl-pillar .table-responsive {
  margin: 24px 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border-half);
}
.sl-pillar table,
.sl-pillar .table {
  width: 100%;
  background: var(--surface);
  border: none;
  border-radius: var(--r);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin-bottom: 0;
}
.sl-pillar table thead th,
.sl-pillar .table thead th {
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-half);
  border-right: 1px solid var(--border-half);
  white-space: nowrap;
}
.sl-pillar table thead th:last-child {
  border-right: none;
}
.sl-pillar table td,
.sl-pillar .table td {
  padding: 12px 14px;
  color: var(--text-body);
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border-half);
  border-right: 1px solid var(--border-half);
  background: transparent;
}
.sl-pillar table td:last-child {
  border-right: none;
}
.sl-pillar table tr:last-child td {
  border-bottom: none;
}
.sl-pillar table td strong {
  color: var(--text);
}
.sl-pillar table.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(255,255,255,.02);
}

/* Pillar alerts */
.sl-pillar .alert {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.6;
  padding: 16px 20px;
  margin: 20px 0;
}
.sl-pillar .alert strong {
  color: var(--text);
}
.sl-pillar .alert a {
  color: var(--primary);
}
.sl-pillar .alert-info {
  border-color: var(--primary-border);
  background: var(--primary-dim);
}
.sl-pillar .alert-success {
  border-color: rgba(34,197,94,.2);
  background: rgba(34,197,94,.06);
}
.sl-pillar .alert-warning {
  border-color: rgba(255,214,56,.2);
  background: rgba(255,214,56,.06);
}

/* Pillar code blocks + pre */
.sl-pillar pre,
.sl-pillar code,
pre,
code {
  background: var(--surface);
  color: var(--primary);
  font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
}
.sl-pillar pre,
pre {
  border: 1px solid var(--border-half);
  border-radius: var(--r);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.sl-pillar code,
code {
  border: 1px solid var(--border-half);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.88em;
}
pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
}

/* Pillar blockquote */
.sl-pillar blockquote {
  border-left: 3px solid var(--primary);
  padding: 14px 20px;
  margin: 20px 0;
  background: var(--primary-dim);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--text-body);
  font-style: italic;
}

/* Pillar horizontal rule */
.sl-pillar hr {
  border: none;
  border-top: 1px solid var(--border-half);
  margin: 32px 0;
}

/* Pillar lede paragraph */
.sl-pillar__lede {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-half);
}

/* Pillar key takeaways */
.sl-pillar__takeaways {
  margin-bottom: 32px;
  background: rgba(43,181,168,.04);
  border: 1px solid var(--primary-border);
  border-radius: var(--r-lg);
  padding: 0;
}
.sl-pillar__takeaways .card-body {
  padding: 24px;
}
.sl-pillar__takeaways .card-title,
.sl-pillar__takeaways h2.h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 16px;
  margin-top: 0;
  border: none;
}
.sl-pillar__takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sl-pillar__takeaways li {
  position: relative !important;
  padding-left: 22px !important;
  margin-bottom: 12px !important;
  color: var(--text-body) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}
.sl-pillar__takeaways li:last-child {
  margin-bottom: 0 !important;
}
.sl-pillar__takeaways li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 8px !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: var(--primary) !important;
}
.sl-pillar__takeaways li strong {
  color: var(--text) !important;
}
.sl-pillar__takeaways a {
  color: var(--primary) !important;
}

/* Pillar card wrappers */
.sl-pillar .card {
  background: var(--surface) !important;
  border: 1px solid var(--border-half) !important;
  border-radius: var(--r-lg) !important;
  margin-bottom: 24px !important;
}
.sl-pillar .card-body {
  padding: 24px !important;
  background: transparent !important;
}
.sl-pillar .card .card-block {
  line-height: 1.75 !important;
  color: var(--text-body) !important;
}

/* --- FAQ --- */
.sl-faq details {
  border: 1px solid var(--border-half);
  border-radius: var(--r);
  margin-bottom: 6px;
  background: var(--surface);
  overflow: hidden;
}
.sl-faq summary {
  padding: 14px 16px;
  font-family: var(--font-h);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  list-style: none;
  transition: background .2s;
}
.sl-faq summary:hover {
  background: rgba(255,255,255,.02);
}
.sl-faq summary::-webkit-details-marker {
  display: none;
}
.sl-faq summary::before {
  content: "+ ";
  color: var(--primary);
  font-weight: 700;
  margin-right: 4px;
}
.sl-faq details[open] summary::before {
  content: "\2212  ";
}
.sl-faq details[open] summary {
  border-bottom: 1px solid var(--border-half);
}
.sl-faq .faq-answer {
  padding: 14px 16px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 13px;
}

/* --- Related tools --- */
.sl-related-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 10px;
}
.sl-related-tools a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-half);
  border-radius: var(--r);
  padding: 14px;
  text-decoration: none;
  transition: all .2s;
}
.sl-related-tools a:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
}
.sl-related-tools strong {
  display: block;
  color: var(--text);
  font-family: var(--font-h);
  font-size: 13px;
  margin-bottom: 3px;
}
.sl-related-tools span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}
.sl-related-tools__heading {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-half);
}
.sl-related-tools--icons a {
  text-align: center;
}
.sl-related-tools--icons img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 10px;
}

/* --- Tool page container --- */
.sl-tool-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- About section (from DB) --- */
.sl-about-section {
  max-width: 860px;
  margin: 32px auto 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border-half);
  border-radius: var(--r-lg);
}
.sl-about-section h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.sl-about-section .sl-about-body {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.sl-about-section .sl-about-body p {
  margin-bottom: 10px;
}
.sl-about-section .sl-about-body a {
  color: var(--primary);
}
.sl-about-section .sl-about-body h2,
.sl-about-section .sl-about-body h3 {
  font-size: 1rem;
  color: var(--text);
  margin: 20px 0 8px;
}

/* --- AI tool card --- */
.sl-ai-card {
  max-width: 720px;
  margin: 0 auto 32px;
  background: var(--surface);
  border: 1px solid var(--border-half);
  border-radius: var(--r-lg);
  padding: 28px;
}
.sl-ai-card label {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
.sl-ai-card textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  padding: 14px;
  font-size: 14px;
  font-family: var(--font-b);
  resize: vertical;
}
.sl-ai-card textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
  outline: none;
}
.sl-ai-card select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  width: 100%;
}
.sl-ai-card .sl-ai-params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
.sl-ai-card .sl-tool-btn {
  width: 100%;
  margin-top: 12px;
}
.sl-ai-card .sl-ai-output-wrap {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-half);
}
.sl-ai-card .sl-ai-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.sl-ai-card .sl-ai-actions button {
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}
.sl-ai-card .sl-ai-actions button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* --- Responsive for sl-* classes --- */
@media (max-width: 700px) {
  .sl-pillar {
    padding: 0 8px 40px;
  }
  .sl-pillar .table-responsive {
    margin: 16px -8px;
    border-radius: 0;
  }
  .sl-pillar table td,
  .sl-pillar table th {
    padding: 10px 12px;
    font-size: 12px;
  }
  .sl-tool-page {
    padding: 0 12px;
  }
  .sl-tool-hero {
    padding-top: 20px;
  }
  .sl-tool-hero h1 {
    font-size: 1.3rem;
  }
  .sl-related-tools {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .sl-tool-form-wrap form {
    flex-direction: column;
  }
  .sl-ai-card .sl-ai-params {
    grid-template-columns: 1fr;
  }
  .sl-tool-results table {
    font-size: 12px;
  }
}


/* ==========================================================================
   SECTION 3: BOOTSTRAP / FRAMEWORK OVERRIDES
   The PHP site loads Bootstrap app.css BEFORE this CSS.
   All rules use !important to beat app.css specificity.
   ========================================================================== */

/* ---------- html, body ---------- */
html, body {
  background: var(--bg) !important;
  color: var(--text-body) !important;
  font-family: var(--font-b) !important;
  -webkit-font-smoothing: antialiased !important;
  line-height: 1.6 !important;
  overflow-x: hidden !important;
}

/* ---------- Wrapper / panels ---------- */
.wrapper {
  background: var(--bg) !important;
  min-height: 100vh !important;
  padding-left: 0 !important;
}
.main-panel {
  background: var(--bg) !important;
  min-height: 100vh !important;
  width: 100% !important;
  float: none !important;
}
.main-content,
.content-wrapper,
.container-fluid {
  background: transparent !important;
  padding: 0 !important;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h) !important;
  color: var(--text) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  border: none !important;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface) !important;
  border: 1px solid var(--border-half) !important;
  border-radius: var(--r-lg) !important;
}
.card-content,
.card-body {
  background: transparent !important;
  color: var(--text-body) !important;
}

/* ---------- Form controls ---------- */
.form-control,
.form-control2,
.form-control4 {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  color: var(--text) !important;
  padding: 12px 14px !important;
  font-family: var(--font-b) !important;
  font-size: 14px !important;
  box-shadow: none !important;
  transition: border-color .2s, box-shadow .2s !important;
}
.form-control:focus,
.form-control2:focus,
.form-control4:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-dim) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
}
.form-control::placeholder,
.form-control2::placeholder,
.form-control4::placeholder {
  color: var(--text-muted) !important;
}
select.form-control,
select.form-control2 {
  appearance: auto !important;
  -webkit-appearance: auto !important;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary) !important;
}
label {
  color: var(--text-body) !important;
}
input, select, textarea {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--bg) !important;
  font-family: var(--font-h) !important;
  font-weight: 700 !important;
  border-radius: var(--r-pill) !important;
}
.btn-primary:hover {
  background: #3dd4c5 !important;
  border-color: #3dd4c5 !important;
  transform: translateY(-1px);
}
.btn-info,
.btn-info.gradient-indigo-blue,
.gradient-indigo-blue {
  background: var(--primary) !important;
  color: var(--bg) !important;
  font-family: var(--font-h) !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: var(--r) !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: all .2s !important;
}
.btn-info:hover,
.btn-info.gradient-indigo-blue:hover,
.gradient-indigo-blue:hover {
  background: #3dd4c5 !important;
  color: var(--bg) !important;
  transform: translateY(-1px);
}
.btn-success {
  background: #22c55e !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--r) !important;
  font-family: var(--font-h) !important;
  font-weight: 700 !important;
}
.btn-default {
  background: var(--surface-2) !important;
  color: var(--text-body) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
}
.btn-default:hover {
  color: var(--text) !important;
  border-color: var(--primary-border) !important;
}
.btn-outline-primary {
  border-color: var(--border) !important;
  color: var(--text-body) !important;
  background: transparent !important;
  border-radius: var(--r-pill) !important;
}
.btn-outline-primary:hover {
  background: var(--surface) !important;
  color: var(--text) !important;
}
.btn-lg {
  padding: 12px 24px !important;
  font-size: 14px !important;
}

/* ---------- Tables ---------- */
.table {
  color: var(--text-body) !important;
  background: transparent !important;
}
.table > thead > tr > th,
.table > thead > tr > td {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-color: var(--border-half) !important;
  font-family: var(--font-h) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.table > tbody > tr > td {
  border-color: var(--border-half) !important;
  color: var(--text-body) !important;
  background: transparent !important;
}
.table-bordered {
  border: 1px solid var(--border-half) !important;
}
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > th,
.table-bordered > tbody > tr > td {
  border: 1px solid var(--border-half) !important;
}
.table-hover > tbody > tr:hover > td {
  background: rgba(255,255,255,.02) !important;
}
.table-striped > tbody > tr:nth-of-type(odd) {
  background: rgba(255,255,255,.02) !important;
}
td strong {
  color: var(--text) !important;
}

/* ---------- Alerts ---------- */
.alert {
  border-radius: var(--r) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-body) !important;
  font-size: 14px !important;
}
.alert strong {
  color: var(--text) !important;
}
.alert a {
  color: var(--primary) !important;
}
.alert-info {
  background: var(--primary-dim) !important;
  border-color: var(--primary-border) !important;
}
.alert-success {
  background: rgba(34,197,94,.06) !important;
  border-color: rgba(34,197,94,.2) !important;
}
.alert-warning {
  background: rgba(255,214,56,.06) !important;
  border-color: rgba(255,214,56,.2) !important;
}
.alert-danger,
.alert-error {
  background: rgba(239,68,68,.06) !important;
  border-color: rgba(239,68,68,.2) !important;
}

/* ---------- Progress bars ---------- */
.progress {
  background: var(--surface) !important;
  border: 1px solid var(--border-half) !important;
  border-radius: var(--r) !important;
  overflow: hidden !important;
  height: 26px !important;
  box-shadow: none !important;
}
.progress-bar {
  background: var(--primary) !important;
  color: var(--bg) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: var(--font-h) !important;
  line-height: 26px !important;
  text-shadow: none !important;
}
.progress-bar-success {
  background: #22c55e !important;
}
.progress-bar-warning {
  background: var(--gold) !important;
  color: var(--bg) !important;
}
.progress-bar-danger {
  background: #ef4444 !important;
}

/* ---------- Dropdowns ---------- */
.dropdown-menu {
  background: rgba(20,22,32,0.97) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
}
.dropdown-item {
  color: var(--text-body) !important;
}
.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--primary) !important;
  background: var(--primary-dim) !important;
}

/* ---------- Widget boxes ---------- */
.widget-box {
  background: var(--surface) !important;
  border: 1px solid var(--border-half) !important;
  border-radius: var(--r-lg) !important;
  overflow: hidden !important;
  margin-bottom: 20px !important;
  box-shadow: none !important;
}
.widget-header {
  background: var(--surface-2) !important;
  border-bottom: 1px solid var(--border-half) !important;
  padding: 14px 20px !important;
}
.widget-title,
.widget-header h4,
.widget-header h5 {
  color: var(--text) !important;
  font-family: var(--font-h) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  border: none !important;
}
.widget-body {
  background: transparent !important;
  padding: 0 !important;
}
.widget-main {
  padding: 20px !important;
  background: transparent !important;
  color: var(--text-body) !important;
}

/* ---------- Panels ---------- */
.panel,
.panel-default,
.panel-body {
  background: var(--surface) !important;
  border-color: var(--border-half) !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
}
.panel-heading {
  background: var(--surface-2) !important;
  border-color: var(--border-half) !important;
  color: var(--text) !important;
}

/* ---------- Text color overrides ---------- */
.text-danger,
.text-warning,
.text-info,
.text-success,
.text-primary,
.text-muted {
  color: var(--text-body) !important;
}

/* ---------- Badge / label ---------- */
.badge-success,
.label-success {
  background: #22c55e !important;
  color: #fff !important;
}
.badge-danger,
.label-danger {
  background: #ef4444 !important;
  color: #fff !important;
}
.badge-warning,
.label-warning {
  background: var(--gold) !important;
  color: var(--bg) !important;
}
.badge-info,
.label-info {
  background: var(--primary) !important;
  color: var(--bg) !important;
}

/* ---------- Pagination ---------- */
.pagination > li > a,
.pagination > li > span {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text-body) !important;
}
.pagination > .active > a,
.pagination > .active > span {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--bg) !important;
}
.pagination > li > a:hover {
  background: var(--surface-2) !important;
  color: var(--primary) !important;
}

/* ---------- Content header ---------- */
.content-header {
  font-family: var(--font-h) !important;
  font-size: clamp(1.5rem,3.5vw,2rem) !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  text-align: center !important;
  border: none !important;
  margin-bottom: 8px !important;
}
.content-header + p {
  text-align: center !important;
  color: var(--text-muted) !important;
  max-width: 640px !important;
  margin: 0 auto 24px !important;
  font-size: 14px !important;
}

/* ---------- SEO / Reviewer ---------- */
#minimal-statistics {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 24px 16px !important;
}
.seoBox {
  background: var(--surface) !important;
  border: 1px solid var(--border-half) !important;
  border-radius: var(--r-lg) !important;
  margin-bottom: 16px !important;
  overflow: hidden !important;
  padding: 24px !important;
  color: var(--text-body) !important;
}
.seoBox h4,
.seoBox h5 {
  color: var(--text) !important;
  font-family: var(--font-h) !important;
  border: none !important;
}
.seoBox p {
  color: var(--text-body) !important;
}
.seoBox .table {
  margin-bottom: 0 !important;
}
.seoBox .badge-success {
  background: #22c55e !important;
  color: #fff !important;
}
.seoBox .badge-danger {
  background: #ef4444 !important;
  color: #fff !important;
}
.seoBox .badge-warning {
  background: var(--gold) !important;
  color: var(--bg) !important;
}

/* ---------- Kill Bootstrap color leaks ---------- */
strong.red,
strong.green,
.red,
.green,
.text-red,
.text-green {
  color: var(--text-body) !important;
}

/* ---------- Form control special ---------- */
.form-control2 {
  max-width: 640px !important;
  margin: 0 auto !important;
  display: block !important;
}
.form-control2 + p {
  max-width: 640px !important;
  margin: 8px auto 0 !important;
  font-size: 13px !important;
  color: var(--text-muted) !important;
}

/* ---------- Tooltip ---------- */
.tooltip-inner {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-radius: var(--r) !important;
  font-size: 12px !important;
}

/* ---------- Navigation active state ---------- */
.navigation .nav-item.active > a,
.navigation .nav-item > a.active {
  color: var(--primary) !important;
  background: var(--primary-dim) !important;
  border-left-color: var(--primary) !important;
}
.navigation .nav-item.active > a i,
.navigation .nav-item > a.active i {
  opacity: 1 !important;
}

/* ---------- JSON-LD ---------- */
script[type="application/ld+json"] {
  display: none !important;
}

/* ==========================================================================
   NUCLEAR COLOR OVERRIDES
   Kill ALL inline colored text from DB content, Bootstrap classes, and
   old pillar content. Force everything to the dark theme palette.
   ========================================================================== */

/* Blog post content — kill ALL inline colors */
article *, article *[style],
.sl-post-content *, .sl-post-content *[style],
.sl-post-body *, .sl-post-body *[style] {
  color: var(--text-body) !important;
}
article strong, article b, article h1, article h2, article h3, article h4,
.sl-post-content strong, .sl-post-content b, .sl-post-content h2, .sl-post-content h3,
.sl-post-body strong, .sl-post-body b, .sl-post-body h2, .sl-post-body h3, .sl-post-body h4 {
  color: var(--text) !important;
}
article a, .sl-post-content a, .sl-post-body a {
  color: var(--primary) !important;
}

/* Blog post body — full typography reset for DB content */
.sl-post-body {
  font-size: 15px !important;
  line-height: 1.8 !important;
}
.sl-post-body p { margin-bottom: 16px !important }
.sl-post-body h2, .sl-post-body h3 {
  margin-top: 32px !important;
  margin-bottom: 12px !important;
  border: none !important;
}
.sl-post-body img {
  border-radius: var(--r) !important;
  margin: 16px 0 !important;
}
.sl-post-body ul, .sl-post-body ol {
  padding-left: 20px !important;
  margin-bottom: 16px !important;
}
.sl-post-body li { margin-bottom: 6px !important }
.sl-post-body blockquote {
  border-left: 3px solid var(--primary) !important;
  padding: 12px 20px !important;
  margin: 20px 0 !important;
  background: var(--primary-dim) !important;
  border-radius: 0 var(--r) var(--r) 0 !important;
  font-style: italic !important;
}
.sl-post-body table {
  width: 100% !important;
  background: var(--surface) !important;
  border: 1px solid var(--border-half) !important;
  border-radius: var(--r) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 16px 0 !important;
}
.sl-post-body td, .sl-post-body th {
  padding: 10px 14px !important;
  border: 1px solid var(--border-half) !important;
}
.sl-post-body th {
  background: var(--surface-2) !important;
  font-weight: 600 !important;
}
.sl-post-body pre, .sl-post-body code {
  background: var(--surface) !important;
  color: var(--primary) !important;
  border-radius: 4px !important;
}
.sl-post-body pre {
  padding: 16px !important;
  border: 1px solid var(--border-half) !important;
  overflow-x: auto !important;
}

/* Kill white/colored horizontal rules in posts */
.sl-post-body hr {
  border: none !important;
  border-top: 1px solid var(--border-half) !important;
  margin: 24px 0 !important;
  background: transparent !important;
}

/* Pillar content — kill ALL inline colors */
.sl-pillar *, .sl-pillar *[style] {
  color: var(--text-body) !important;
}
.sl-pillar strong, .sl-pillar b {
  color: var(--text) !important;
}
.sl-pillar h2, .sl-pillar h3, .sl-pillar h4 {
  color: var(--text) !important;
}
.sl-pillar a {
  color: var(--primary) !important;
}
.sl-pillar .card-title, .sl-pillar .h4 {
  color: var(--primary) !important;
}

/* About section from DB — kill colors */
.sl-about-section *, .sl-about-section *[style] {
  color: var(--text-muted) !important;
}
.sl-about-section h2, .sl-about-section h3, .sl-about-section strong {
  color: var(--text) !important;
}
.sl-about-section a {
  color: var(--primary) !important;
}

/* Page content (services, about) — kill colors */
.sl-page-content *, .sl-page-content *[style] {
  color: var(--text-body) !important;
}
.sl-page-content strong, .sl-page-content b, .sl-page-content h2, .sl-page-content h3 {
  color: var(--text) !important;
}
.sl-page-content a {
  color: var(--primary) !important;
}

/* Kill ALL red/pink/colored text from Bootstrap utility classes */
[style*="color: red"], [style*="color:red"],
[style*="color: #ff"], [style*="color:#ff"],
[style*="color: rgb(255"], [style*="color:rgb(255"],
[style*="color: #e"], [style*="color:#e"],
[style*="color: #d"], [style*="color:#d"],
[style*="color: #c"], [style*="color:#c"] {
  color: var(--text-body) !important;
}

/* Kill horizontal rules / white dividers */
hr {
  border: none !important;
  border-top: 1px solid var(--border-half) !important;
  margin: 24px 0 !important;
  background: transparent !important;
  height: 0 !important;
}

/* Mobile hamburger menu button */
.nav-mob {
  display: none;
  background: 0;
  border: 0;
  color: var(--text-muted);
  padding: 8px;
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .nav-mob { display: flex !important }
}

/* END -- preview-design.css */
