@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

/* ============================================================
   SEO Tools Pro — Webrul Design System
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

:root {
  --w-dark:       #070c1a;
  --w-dark2:      #0d1424;
  --w-dark3:      #111827;
  --w-primary:    #2563EB;
  --w-primary-lt: #3B82F6;
  --w-accent:     #10B981;
  --w-white:      #FFFFFF;
  --w-surface:    #FFFFFF;
  --w-bg:         #F8FAFC;
  --w-border:     #E2E8F0;
  --w-text:       #0F172A;
  --w-muted:      #64748B;
  --w-radius:     12px;
  --w-radius-lg:  18px;
  --w-shadow:     0 1px 3px rgba(15,23,42,.06), 0 2px 8px rgba(15,23,42,.04);
  --w-shadow-md:  0 4px 20px rgba(15,23,42,.09), 0 2px 8px rgba(15,23,42,.04);
  --w-shadow-lg:  0 12px 40px rgba(15,23,42,.14), 0 4px 16px rgba(15,23,42,.06);
  --w-font-disp:  'Plus Jakarta Sans', system-ui, sans-serif;
  --w-font-body:  'Plus Jakarta Sans', system-ui, sans-serif;
  --w-trans:      0.22s cubic-bezier(0.4,0,0.2,1);

  /* Legacy aliases so old stb- code still works */
  --sto-primary:      var(--w-primary);
  --sto-primary-dark: #1D4ED8;
  --sto-accent:       var(--w-accent);
  --sto-bg:           var(--w-bg);
  --sto-surface:      var(--w-surface);
  --sto-border:       var(--w-border);
  --sto-text:         var(--w-text);
  --sto-muted:        var(--w-muted);
  --sto-success:      #16A34A;
  --sto-danger:       #DC2626;
  --sto-radius:       var(--w-radius);
  --sto-shadow-sm:    var(--w-shadow);
  --sto-shadow:       var(--w-shadow-md);
  --sto-shadow-lg:    var(--w-shadow-lg);
  --sto-font-ui:      var(--w-font-body);
  --sto-font-display: var(--w-font-disp);
  --sto-transition:   var(--w-trans);
}

/* ── RESET ────────────────────────────────────────────────── */
.sto-wrap *, .sto-wrap *::before, .sto-wrap *::after,
.sto-header *, .sto-footer *, .stb-wrap * { box-sizing: border-box; }

.sto-wrap, .stb-wrap {
  font-family: var(--w-font-body);
  color: var(--w-text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  background: var(--w-bg);
}

/* ============================================================
   HEADER
   ============================================================ */
.sto-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--w-white);
  border-bottom: 1px solid var(--w-border);
  box-shadow: 0 1px 12px rgba(15,23,42,.05);
}

.sto-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Logo */
.sto-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
}
.sto-logo__icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--w-primary), var(--w-primary-lt));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.sto-logo__text {
  font-family: var(--w-font-body);
  font-size: 16px; font-weight: 500; color: var(--w-text);
  letter-spacing: -.01em;
}
.sto-logo__text strong { font-weight: 800; color: var(--w-primary); }

/* Nav */
.sto-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.sto-nav__link {
  font-family: var(--w-font-body);
  font-size: 14px; font-weight: 500; color: var(--w-muted);
  text-decoration: none !important;
  padding: 8px 14px;
  border-radius: 8px;
  background: none; border: none; cursor: pointer;
  transition: color var(--w-trans), background var(--w-trans);
}
.sto-nav__link:hover, .sto-nav__link.active { color: var(--w-text); background: var(--w-bg); }

/* Dropdown */
.sto-nav__dropdown { position: relative; }
.sto-nav__dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--w-white);
  border: 1px solid var(--w-border);
  border-radius: var(--w-radius);
  box-shadow: var(--w-shadow-lg);
  min-width: 210px;
  padding: 8px;
  z-index: 100;
}
.sto-nav__dropdown:hover .sto-nav__dropdown-menu { display: block; }
.sto-nav__dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--w-text);
  text-decoration: none !important;
  transition: background var(--w-trans);
}
.sto-nav__dropdown-item:hover { background: var(--w-bg); text-decoration: none !important; }
.dd-icon { font-size: 16px; width: 26px; text-align: center; }

/* Header CTA */
.sto-header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  background: var(--w-primary);
  color: var(--w-white) !important;
  border-radius: 9px;
  font-size: 14px; font-weight: 700;
  text-decoration: none !important;
  letter-spacing: -.01em;
  box-shadow: 0 4px 14px rgba(37,99,235,.28);
  transition: background var(--w-trans), transform var(--w-trans), box-shadow var(--w-trans);
  flex-shrink: 0;
}
.sto-header-cta:hover {
  background: var(--w-primary-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.36);
  color: #fff !important;
}

/* Hamburger */
.sto-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  margin-left: auto;
}
.sto-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--w-text); border-radius: 2px;
  transition: var(--w-trans);
}

/* Mobile nav */
.sto-mobile-nav {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--w-white);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
  flex-direction: column; gap: 4px;
}
.sto-mobile-nav.open { display: flex; }
.sto-mobile-nav a {
  padding: 12px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--w-text);
  text-decoration: none !important;
  transition: background var(--w-trans);
}
.sto-mobile-nav a:hover { background: var(--w-bg); }
.sto-mobile-nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 998; background: rgba(0,0,0,.4);
}
.sto-mobile-nav-overlay.open { display: block; }

/* ============================================================
   HERO — Webrul dark style
   ============================================================ */
.sto-hero {
  background: var(--w-dark);
  padding: 100px 28px 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sto-hero__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; opacity: .6;
}
.sto-hero__glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px);
}
.sto-hero__glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
  top: -200px; left: -100px;
}
.sto-hero__glow--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,.1) 0%, transparent 70%);
  bottom: -100px; right: 0;
}
.sto-hero__inner { position: relative; max-width: 900px; margin: 0 auto; }
.sto-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 28px;
}
.sto-hero__h1 {
  font-family: var(--w-font-disp);
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 800;
  color: var(--w-white);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 0 0 22px;
}
.sto-hero__h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--w-primary-lt), var(--w-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sto-hero__sub {
  font-size: 18px;
  color: rgba(255,255,255,.45);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 300;
}
.sto-hero__actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 60px;
}
.sto-btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--w-primary);
  color: var(--w-white) !important;
  border-radius: 11px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  text-decoration: none !important;
  box-shadow: 0 6px 22px rgba(37,99,235,.38);
  transition: background var(--w-trans), transform var(--w-trans), box-shadow var(--w-trans);
}
.sto-btn-hero-primary:hover {
  background: var(--w-primary-lt);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,99,235,.46);
  color: #fff !important;
}
.sto-btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: rgba(255,255,255,.7) !important;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 11px;
  font-size: 15px; font-weight: 600;
  text-decoration: none !important;
  transition: all var(--w-trans);
}
.sto-btn-hero-outline:hover {
  border-color: rgba(255,255,255,.45);
  color: var(--w-white) !important;
  background: rgba(255,255,255,.05);
}

/* Hero feature cards */
.sto-hero__feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}
.sto-hero__feat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--w-radius);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 5px;
  text-align: left;
  transition: background var(--w-trans), border-color var(--w-trans);
}
.sto-hero__feat:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
}
.sto-feat-icon { font-size: 22px; margin-bottom: 4px; }
.sto-hero__feat strong {
  font-size: 13px; font-weight: 700; color: var(--w-white); line-height: 1.3;
}
.sto-hero__feat span:not(.sto-feat-icon) {
  font-size: 11px; color: rgba(255,255,255,.4); font-weight: 400;
}

/* ============================================================
   GRID SECTION
   ============================================================ */
.sto-grid-section {
  background: var(--w-bg);
  padding: 80px 28px 100px;
}
.sto-grid-section__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.sto-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--w-primary); margin: 0 0 8px;
}
.sto-section-title {
  font-family: var(--w-font-disp);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--w-text);
  margin: 0 0 10px;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.sto-section-sub {
  font-size: 15px; color: var(--w-muted); margin: 0 0 52px;
}

/* ── Category Group ── */
.sto-cat-group {
  margin-bottom: 56px;
}
.sto-cat-group:last-child { margin-bottom: 0; }
.sto-cat-group__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--w-border);
}
.sto-cat-group__icon {
  font-size: 22px;
  line-height: 1;
}
.sto-cat-group__title {
  font-family: var(--w-font-disp);
  font-size: 20px;
  font-weight: 800;
  color: var(--w-text);
  margin: 0;
  letter-spacing: -.02em;
  flex: 1;
}
.sto-cat-group__count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--w-muted);
  background: var(--w-border);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── Tool Grid ── */
.sto-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ── Tool Card ── */
.sto-card {
  background: var(--w-surface);
  border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg);
  padding: 28px 24px 22px;
  text-decoration: none !important;
  color: var(--w-text) !important;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  position: relative; overflow: hidden;
  box-shadow: var(--w-shadow);
  transition: transform var(--w-trans), box-shadow var(--w-trans), border-color var(--w-trans);
  cursor: pointer;
}
.sto-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.05), transparent 60%);
  opacity: 0; transition: opacity var(--w-trans);
}
.sto-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--sto-card-color, var(--w-primary));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--w-trans);
}
.sto-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--w-shadow-lg);
  border-color: rgba(37,99,235,.25);
  text-decoration: none !important; color: var(--w-text) !important;
}
.sto-card:hover::before { opacity: 1; }
.sto-card:hover::after { transform: scaleX(1); }

.sto-card__icon-wrap {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: var(--sto-card-color, var(--w-primary));
  background: linear-gradient(135deg, var(--sto-card-color, #2563EB), var(--sto-card-color, #3B82F6));
  box-shadow: 0 5px 16px rgba(37,99,235,.22);
  margin-bottom: 4px;
  flex-shrink: 0;
}
.sto-card__title {
  font-family: var(--w-font-disp);
  font-size: 16px; font-weight: 700; color: var(--w-text); line-height: 1.3;
}
.sto-card__desc {
  font-size: 13px; color: var(--w-muted); line-height: 1.55; flex: 1;
}
.sto-card__cta {
  margin-top: 6px; font-size: 13px; font-weight: 600;
  color: var(--sto-card-color, var(--w-primary)) !important;
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--w-trans);
}
.sto-card:hover .sto-card__cta { gap: 8px; }
.sto-card__cta-arrow { font-size: 15px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.sto-cta-banner {
  background: var(--w-dark);
  padding: 90px 28px;
  position: relative; overflow: hidden;
}
.sto-cta-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(37,99,235,.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(16,185,129,.08) 0%, transparent 55%);
}
.sto-cta-banner__inner {
  max-width: 720px; margin: 0 auto; text-align: center; position: relative;
}
.sto-cta-banner__label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--w-accent); margin: 0 0 14px;
}
.sto-cta-banner__title {
  font-family: var(--w-font-disp);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800; color: var(--w-white);
  margin: 0 0 14px; letter-spacing: -.03em; line-height: 1.1;
}
.sto-cta-banner__sub {
  font-size: 16px; color: rgba(255,255,255,.4);
  margin: 0 0 34px; line-height: 1.65; font-weight: 300;
}

/* ============================================================
   FOOTER  —  top strip + 7-column links row + bottom bar
   ============================================================ */
.sto-footer {
  background: #070c1a;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* ── Top: brand + tagline + trust ── */
.sto-footer__top {
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 44px 40px 38px;
}
.sto-logo--footer .sto-logo__text { color: rgba(255,255,255,.82); }
.sto-logo--footer .sto-logo__text strong { color: #fff; }
.sto-footer__top-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.sto-footer__tagline {
  font-size: 14px;
  color: rgba(255,255,255,.42);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.sto-footer__trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.sto-footer__trust span {
  font-size: 13px;
  color: rgba(255,255,255,.38);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sto-footer__trust i { font-style: normal; font-size: 14px; }

/* ── Links row: 7 columns ── */
.sto-footer__links {
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sto-footer__links-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 40px 44px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 24px;
}
.sto-footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}
.sto-footer__col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sto-footer__col ul li a {
  font-size: 12.5px;
  color: rgba(255,255,255,.36);
  font-weight: 400;
  text-decoration: none !important;
  transition: color .15s;
  display: block;
  line-height: 1.5;
}
.sto-footer__col ul li a:hover {
  color: rgba(255,255,255,.76);
  text-decoration: none !important;
}

/* ── Bottom bar ── */
.sto-footer__bottom {
  padding: 18px 40px;
}
.sto-footer__bottom-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.sto-footer__bottom-inner span {
  font-size: 12px;
  color: rgba(255,255,255,.22);
}
.sto-footer__bottom-inner a {
  color: rgba(255,255,255,.38);
  text-decoration: none !important;
  transition: color .15s;
}
.sto-footer__bottom-inner a:hover { color: rgba(255,255,255,.7); }
.sto-footer__bottom-links { display: flex; gap: 22px; }
.sto-footer__bottom-links a { font-size: 12px; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .sto-footer__links-inner { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}
@media (max-width: 900px) {
  .sto-footer__top-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sto-footer__trust { gap: 16px; }
  .sto-footer__links-inner { grid-template-columns: repeat(3, 1fr); }
  .sto-footer__top, .sto-footer__links-inner, .sto-footer__bottom { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 600px) {
  .sto-footer__links-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .sto-footer__links-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   TOOL PAGE — PTB BASE
   ============================================================ */
.stb-hero {
  background: var(--w-dark);
  padding: 72px 28px 80px;
  position: relative; overflow: hidden;
}
.stb-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 70% at 5% 50%, rgba(var(--stb-c1-rgb, 37,99,235), .16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 95% 20%, rgba(var(--stb-c2-rgb, 14,165,233), .1) 0%, transparent 55%);
}
.stb-hero__inner {
  max-width: 1200px; margin: 0 auto;
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
.stb-back {
  position: absolute; top: -44px; left: 0;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.4);
  text-decoration: none !important;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--w-trans);
}
.stb-back:hover { color: rgba(255,255,255,.75); }
.stb-hero__content { flex: 1; max-width: 560px; }
.stb-hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px; padding: 5px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 18px;
}
.stb-hero__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--stb-c1, #2563EB);
  box-shadow: 0 0 8px var(--stb-c1, #2563EB);
  animation: ptbpulse 2s ease infinite;
}
@keyframes ptbpulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.7)} }
.stb-hero__title {
  font-family: var(--w-font-disp);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800; color: var(--w-white);
  line-height: 1.08; letter-spacing: -.035em;
  margin: 0 0 14px;
}
.stb-hero__title span {
  background: linear-gradient(90deg, var(--stb-c1, #2563EB), var(--stb-c2, #0ea5e9));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stb-hero__sub {
  font-size: 16px; color: rgba(255,255,255,.45);
  line-height: 1.65; margin: 0 0 22px; font-weight: 300;
}
.stb-hero__pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.stb-hero__pills span {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11);
  border-radius: 100px; padding: 5px 13px;
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,.55);
}
.stb-hero__visual {
  flex-shrink: 0;
}

/* ── BODY ─────────────────────────────────────────────────── */
.stb-body {
  background: var(--w-bg);
  padding: 40px 28px 72px;
}
.stb-layout {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 300px; gap: 28px;
}

/* ── CARDS ────────────────────────────────────────────────── */
.stb-card {
  background: var(--w-surface);
  border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--w-shadow);
  overflow: hidden;
}
.stb-card__head {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--w-border);
}
.stb-card__head h2 {
  font-family: var(--w-font-disp);
  font-size: 16px; font-weight: 800; color: var(--w-text);
  margin: 0;
}
.stb-step {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--w-white);
}

/* ── DROPZONE ─────────────────────────────────────────────── */
.stb-dropzone {
  margin: 20px 24px;
  border: 2px dashed var(--w-border);
  border-radius: var(--w-radius);
  transition: border-color var(--w-trans), background var(--w-trans);
}
.stb-dropzone.sto-dz-dragover, .stb-dropzone.sto-dz-hover, .stb-dropzone.sto-dragover {
  border-color: var(--stb-c1, var(--w-primary));
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 4%, transparent);
}
.stb-dz-inner {
  padding: 44px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.stb-dz-icon {
  width: 70px; height: 70px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 6px;
  transition: transform var(--w-trans);
}
.stb-dropzone:hover .stb-dz-icon { transform: translateY(-3px); }
.stb-dz-title { font-size: 16px; font-weight: 700; color: var(--w-text); margin: 0; }
.stb-dz-or { font-size: 13px; color: var(--w-muted); margin: 0; }
.stb-select-btn {
  padding: 11px 28px; color: var(--w-white) !important;
  border: none; border-radius: 9px; cursor: pointer;
  font-family: var(--w-font-body); font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(37,99,235,.28);
  transition: opacity var(--w-trans), transform var(--w-trans);
}
.stb-select-btn:hover { opacity: .9; transform: translateY(-1px); }
.stb-dz-limit { font-size: 12px; color: var(--w-muted); margin: 4px 0 0; }
.sto-dropzone__input { display: none; }

.stb-dropzone.sto-has-file .stb-dz-inner {
  padding: 18px 24px 12px;
}
.stb-dropzone.sto-has-file .stb-dz-icon {
  display: none;
}
.stb-dropzone.sto-has-file .stb-dz-title {
  font-size: 13px; color: var(--w-muted); font-weight: 600;
}
.stb-dropzone.sto-has-file .stb-dz-or { display: none; }
.stb-dropzone.sto-has-file .stb-dz-limit { display: none; }

/* File list — .sto-file-row is what JS actually renders */
#sto-file-list {
  padding: 0 20px 14px;
  display: flex; flex-direction: column; gap: 7px;
}
.sto-file-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  background: var(--w-bg);
  border: 1.5px solid var(--w-border);
  border-radius: 10px;
  padding: 9px 12px;
  transition: border-color var(--w-trans);
  animation: sto-row-in .18s ease both;
}
.sto-file-row:hover { border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 40%, transparent); }
.sto-file-row__icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}
.sto-file-row__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sto-file-row__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--w-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.sto-file-row__size {
  font-size: 11px;
  color: var(--w-muted);
  display: block;
}
.sto-file-row__remove {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex !important; align-items: center; justify-content: center;
  background: none;
  border: 1.5px solid var(--w-border);
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  color: var(--w-muted);
  transition: all var(--w-trans);
  padding: 0;
  line-height: 1;
}
.sto-file-row__remove:hover {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #DC2626;
}

/* Legacy .sto-file-item kept for any other references */
.sto-file-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--w-bg); border: 1px solid var(--w-border);
  border-radius: 10px; padding: 10px 14px;
}
.sto-file-item__icon { font-size: 22px; flex-shrink: 0; }
.sto-file-item__name { font-size: 13px; font-weight: 600; color: var(--w-text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sto-file-item__size { font-size: 12px; color: var(--w-muted); flex-shrink: 0; }
.sto-file-item__remove { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--w-muted); padding: 2px; transition: color var(--w-trans); }
.sto-file-item__remove:hover { color: #DC2626; }

@keyframes sto-row-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Error */
.sto-error { display: none; align-items: center; gap: 8px; padding: 12px 24px; color: #DC2626; font-size: 13px; font-weight: 500; }
.sto-error.sto-error--show { display: flex; }

/* ── OPTIONS ──────────────────────────────────────────────── */
/* ============================================================
   OPTIONS — complete professional styles
   ============================================================ */
.stb-options-body { padding: 22px 24px 6px; }
.stb-field { margin-bottom: 20px; }
.stb-field:last-child { margin-bottom: 16px; }

/* Field label */
.stb-field-label, .stb-label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--w-muted);
  margin-bottom: 10px;
}

/* Text / number inputs */
.stb-input, .stb-text-input, .stb-pw-input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--w-border); border-radius: 9px;
  font-family: var(--w-font-body); font-size: 14px; color: var(--w-text);
  background: var(--w-surface);
  transition: border-color var(--w-trans), box-shadow var(--w-trans);
  outline: none;
}
.stb-input:focus, .stb-text-input:focus, .stb-pw-input:focus {
  border-color: var(--stb-c1, var(--w-primary));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 14%, transparent);
}

/* Select */
.stb-select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--w-border); border-radius: 9px;
  font-family: var(--w-font-body); font-size: 14px; color: var(--w-text);
  background: var(--w-surface);
  cursor: pointer; outline: none; appearance: auto;
  transition: border-color var(--w-trans), box-shadow var(--w-trans);
}
.stb-select:focus {
  border-color: var(--stb-c1, var(--w-primary));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 14%, transparent);
}

/* Slider */
.stb-slider-wrap { display: flex; align-items: center; gap: 14px; }
.stb-slider {
  flex: 1; -webkit-appearance: none; height: 5px;
  background: var(--w-border); border-radius: 3px; cursor: pointer;
}
.stb-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--stb-c1, var(--w-primary));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 35%, transparent);
  cursor: pointer;
}
.stb-slider-val, .stb-dpi-val, .stb-wm-opacity-val, .stb-wm-angle-val {
  font-size: 13px; font-weight: 700;
  color: var(--stb-c1, var(--w-primary));
  min-width: 42px; text-align: right;
}
.stb-slider-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--w-muted); margin-top: 4px;
}

/* Toggle switch */
.stb-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 4px 0;
}
.stb-toggle-label { font-size: 14px; font-weight: 500; color: var(--w-text); }
.stb-toggle input[type=checkbox] { display: none; }
.stb-toggle-wrap input[type=checkbox] { display: none; }
.stb-toggle label, .stb-toggle-track {
  display: flex; width: 42px; height: 24px;
  background: var(--w-border); border-radius: 100px; cursor: pointer;
  transition: background var(--w-trans); position: relative; flex-shrink: 0;
}
.stb-toggle label::after, .stb-toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: #fff;
  border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,.22);
  transition: transform var(--w-trans);
}
.stb-toggle input:checked + label,
.stb-toggle-wrap input:checked + label { background: var(--stb-c1, var(--w-primary)); }
.stb-toggle input:checked + label::after,
.stb-toggle-wrap input:checked + label::after { transform: translateX(18px); }

/* ── CHOICE CARDS (level / size / rotate / page-opt) ─────── */

/* Shared card grid */
.stb-level-grid, .stb-size-grid, .stb-rotate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Shared card label wrapper */
.stb-level-card, .stb-size-card, .stb-rotate-card { cursor: pointer; }
.stb-level-card input,
.stb-size-card input,
.stb-rotate-card input { display: none; }

/* Shared inner */
.stb-level-card__inner,
.stb-size-card__inner,
.stb-rotate-card__inner {
  border: 1.5px solid var(--w-border);
  border-radius: var(--w-radius);
  padding: 16px 12px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  position: relative;
  transition: border-color var(--w-trans), background var(--w-trans), box-shadow var(--w-trans);
  background: var(--w-surface);
}
.stb-level-card__inner:hover,
.stb-size-card__inner:hover,
.stb-rotate-card__inner:hover {
  border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 45%, transparent);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 10%, transparent);
}
.stb-level-card--active .stb-level-card__inner,
.stb-size-card--active .stb-size-card__inner,
.stb-rotate-card--active .stb-rotate-card__inner {
  border-color: var(--stb-c1, var(--w-primary));
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 5%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 12%, transparent);
}

/* Card contents */
.stb-level-card__icon, .stb-rotate-deg { font-size: 22px; }
.stb-level-card__name, .stb-size-name, .stb-rotate-card__name {
  font-size: 13px; font-weight: 700; color: var(--w-text); line-height: 1.2;
}
.stb-level-card__desc, .stb-size-desc, .stb-rotate-card__desc {
  font-size: 11px; color: var(--w-muted); line-height: 1.35;
}

/* Active checkmark badge */
.stb-level-card__check {
  position: absolute; top: 7px; right: 7px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--stb-c1, var(--w-primary)); color: #fff;
  font-size: 9px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.4);
  transition: opacity var(--w-trans), transform var(--w-trans);
}
.stb-level-card--active .stb-level-card__check,
.stb-size-card--active .stb-level-card__check { opacity: 1; transform: scale(1); }

/* ── PAGE OPTION PILLS (Portrait/Landscape, etc.) ─────────── */
.stb-pages-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.stb-page-opt { cursor: pointer; }
.stb-page-opt input { display: none; }
.stb-page-opt span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border: 1.5px solid var(--w-border);
  border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--w-muted);
  background: var(--w-surface);
  transition: all var(--w-trans);
  user-select: none;
}
.stb-page-opt span:hover {
  border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 45%, transparent);
  color: var(--w-text);
}
.stb-page-opt--active span {
  border-color: var(--stb-c1, var(--w-primary));
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 8%, #fff);
  color: var(--stb-c1, var(--w-primary));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 12%, transparent);
}

/* ── PERMISSIONS GRID ─────────────────────────────────────── */
.stb-perms-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.stb-perm-check {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--w-border); border-radius: 9px;
  cursor: pointer; transition: all var(--w-trans);
  font-size: 13px; font-weight: 500; color: var(--w-text);
  background: var(--w-surface);
  user-select: none;
}
.stb-perm-check input[type=checkbox] { display: none; }
.stb-perm-check::before {
  content: '';
  width: 16px; height: 16px; border-radius: 5px; flex-shrink: 0;
  border: 1.5px solid var(--w-border);
  background: var(--w-bg);
  transition: all var(--w-trans);
}
.stb-perm-check:has(input:checked)::before {
  background: var(--stb-c1, var(--w-primary));
  border-color: var(--stb-c1, var(--w-primary));
  content: '✓';
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; color: #fff;
}
.stb-perm-check:has(input:checked) {
  border-color: var(--stb-c1, var(--w-primary));
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 5%, #fff);
}

/* ── POSITION GRID (watermark / page numbers) ─────────────── */
.stb-position-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 4px;
  max-width: 160px;
}
.stb-pos-cell {
  aspect-ratio: 1; border: 1.5px solid var(--w-border); border-radius: 6px;
  cursor: pointer; transition: all var(--w-trans);
  background: var(--w-bg);
}
.stb-pos-cell:hover { border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 50%, transparent); background: #fff; }
.stb-pos-cell--active {
  background: var(--stb-c1, var(--w-primary)) !important;
  border-color: var(--stb-c1, var(--w-primary)) !important;
}
.stb-pos-cell--mid {
  background: var(--w-bg);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; border-color: transparent;
}
.stb-pos-cell--mid-label { font-size: 14px; }

/* ── PASSWORD INPUT WITH TOGGLE ───────────────────────────── */
.stb-password-wrap { position: relative; }
.stb-password-wrap .stb-pw-input { padding-right: 44px; }
.stb-pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px; color: var(--w-muted);
  padding: 4px; transition: color var(--w-trans);
}
.stb-pw-toggle:hover { color: var(--w-text); }

/* ── PILL OPTION BUTTONS ──────────────────────────────────── */
.stb-pills-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.stb-pill-opt {
  padding: 7px 16px; border-radius: 100px;
  border: 1.5px solid var(--w-border); background: var(--w-surface);
  font-size: 13px; font-weight: 600; color: var(--w-muted); cursor: pointer;
  transition: all var(--w-trans);
}
.stb-pill-opt.active, .stb-pill-opt--active {
  border-color: var(--stb-c1, var(--w-primary));
  color: var(--stb-c1, var(--w-primary));
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 8%, transparent);
}

/* ── TWO-COLUMN LAYOUT ────────────────────────────────────── */
.stb-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── FIELD HINT ───────────────────────────────────────────── */
.stb-field-hint {
  font-size: 11px; color: var(--w-muted); margin-top: 5px; line-height: 1.4;
}

/* ── MISC option notes ────────────────────────────────────── */
.stb-options-note {
  font-size: 12px; color: var(--w-muted);
  background: var(--w-bg); border: 1px solid var(--w-border);
  border-radius: 8px; padding: 10px 14px; margin-top: 16px;
}

/* Responsive */
@media (max-width: 640px) {
  .stb-level-grid, .stb-size-grid, .stb-rotate-grid { grid-template-columns: 1fr 1fr; }
  .stb-perms-grid { grid-template-columns: 1fr; }
  .stb-two-col { grid-template-columns: 1fr; }
}

/* ── CONVERT BUTTON ───────────────────────────────────────── */
.stb-card-convert { padding: 20px 24px; }
.stb-convert-btn {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--stb-c1, var(--w-primary)), var(--stb-c2, var(--w-primary-lt)));
  color: var(--w-white) !important;
  border: none; border-radius: var(--w-radius); cursor: pointer;
  font-family: var(--w-font-body); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 6px 20px rgba(37,99,235,.28);
  transition: opacity var(--w-trans), transform var(--w-trans);
}
.stb-convert-btn:hover:not(:disabled) { opacity: .9; transform: translateY(-2px); }
.stb-convert-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── PROCESSING ───────────────────────────────────────────── */
.stb-processing {
  display: none; padding: 44px 24px; text-align: center; flex-direction: column; align-items: center; gap: 16px;
}
.stb-processing.sto-processing--show { display: flex; }
.stb-ring-wrap { position: relative; width: 72px; height: 72px; }
.stb-ring-wrap svg { transform: rotate(-90deg); }
.stb-ring-bg { fill: none; stroke: var(--w-border); stroke-width: 6; }
.stb-ring-fg {
  fill: none; stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 188; stroke-dashoffset: 188;
  transition: stroke-dashoffset .3s ease;
}
.stb-ring-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--w-text);
}
.stb-proc-title { font-size: 17px; font-weight: 700; color: var(--w-text); margin: 0; }
.stb-proc-sub { font-size: 13px; color: var(--w-muted); margin: 0; }
.sto-progress-bar { width: 100%; height: 5px; background: var(--w-border); border-radius: 3px; overflow: hidden; max-width: 300px; }
.sto-progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--stb-c1, var(--w-primary)), var(--stb-c2, var(--w-primary-lt)));
  border-radius: 3px; width: 0%; transition: width .3s ease;
}

/* ── RESULT ───────────────────────────────────────────────── */
.stb-result {
  display: none; padding: 32px 24px; text-align: center; flex-direction: column; align-items: center; gap: 16px;
}
.stb-result.sto-result--show { display: flex; }
.stb-result-check {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #34D399);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--w-white);
  box-shadow: 0 8px 24px rgba(16,185,129,.28);
  animation: ptbpop .4s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes ptbpop { from{transform:scale(.5);opacity:0} to{transform:scale(1);opacity:1} }
.stb-result h3 { font-family: var(--w-font-disp); font-size: 20px; font-weight: 800; color: var(--w-text); margin: 0; }
.sto-download-list { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.sto-download-item {
  display: flex; align-items: center; gap: 12px;
  background: #F0FDF4; border: 1px solid #BBF7D0;
  border-radius: 10px; padding: 12px 16px;
}
.sto-download-item__name { font-size: 13px; font-weight: 600; color: #065F46; flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sto-download-btn {
  padding: 7px 16px;
  background: linear-gradient(135deg, #10B981, #34D399);
  color: var(--w-white) !important; border: none; border-radius: 7px;
  font-family: var(--w-font-body); font-size: 12px; font-weight: 700; cursor: pointer;
  text-decoration: none !important; flex-shrink: 0;
}
.stb-another-btn {
  padding: 10px 24px;
  background: var(--w-bg); border: 1.5px solid var(--w-border);
  border-radius: 9px; cursor: pointer;
  font-family: var(--w-font-body); font-size: 14px; font-weight: 600; color: var(--w-muted);
  transition: all var(--w-trans);
}
.stb-another-btn:hover { border-color: var(--w-primary); color: var(--w-primary); }
.sto-zip-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--stb-c1, var(--w-primary)), var(--stb-c2, var(--w-primary-lt)));
  color: var(--w-white) !important; border: none; border-radius: 9px;
  font-family: var(--w-font-body); font-size: 14px; font-weight: 700; cursor: pointer;
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.stb-sidebar { display: flex; flex-direction: column; gap: 20px; }
.stb-sidebar-card {
  background: var(--w-surface); border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg);
  box-shadow: var(--w-shadow);
}
.stb-sidebar-card__head {
  padding: 16px 20px; border-bottom: 1px solid var(--w-border);
  font-family: var(--w-font-disp); font-size: 14px; font-weight: 800; color: var(--w-text);
}
.stb-feat-list { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.stb-feat-item { display: flex; align-items: flex-start; gap: 12px; }
.stb-feat-icon-box {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.stb-feat-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--w-text); line-height: 1.3; }
.stb-feat-item p { font-size: 12px; color: var(--w-muted); margin: 2px 0 0; line-height: 1.4; }
.stb-other-tools { padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.stb-other-tools a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--w-muted);
  text-decoration: none !important; transition: all var(--w-trans);
}
.stb-other-tools a:hover { background: var(--w-bg); color: var(--w-text); }
.stb-trust-badges { padding: 16px 20px; display: flex; flex-direction: column; gap: 9px; }
.stb-trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--w-muted); }
.stb-trust-item span:first-child { font-size: 15px; }

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.stb-how {
  background: var(--w-bg);
  padding: 64px 28px;
  border-top: 1px solid var(--w-border);
}
.stb-how__inner { max-width: 1200px; margin: 0 auto; }
.stb-how h2 {
  font-family: var(--w-font-disp);
  font-size: clamp(22px,3vw,32px); font-weight: 800;
  color: var(--w-text); margin: 0 0 36px; letter-spacing: -.02em;
}
.stb-how-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; position: relative; }
.stb-how-steps::before {
  content: '';
  position: absolute; top: 28px; left: calc(16.67% + 20px); right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--stb-c1, var(--w-primary)) 0%, var(--stb-c2, var(--w-primary-lt)) 100%);
  opacity: .25; pointer-events: none;
}
.stb-how-step {
  background: var(--w-surface); border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg); padding: 28px 24px;
  box-shadow: var(--w-shadow);
  position: relative; text-align: center;
}
.stb-how-step__num {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--stb-c1, var(--w-primary)), var(--stb-c2, var(--w-primary-lt)));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(37,99,235,.22);
}
.stb-how-step h4 { font-family: var(--w-font-disp); font-size: 16px; font-weight: 800; color: var(--w-text); margin: 0 0 8px; }
.stb-how-step p { font-size: 13px; color: var(--w-muted); margin: 0; line-height: 1.55; }

/* ── MOCKUPS ──────────────────────────────────────────────── */
.stb-mockup-compress {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 24px 28px; position: relative;
}
.stb-mc__big, .stb-mc__small {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.stb-mc__label {
  width: 52px; height: 66px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .04em;
}
.stb-mc__size { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.7); }
.stb-mc__size--small { color: #4ADE80; }
.stb-mc__arrow { font-size: 20px; color: rgba(255,255,255,.3); }
.stb-mc__badge {
  position: absolute; top: -10px; right: -10px;
  background: linear-gradient(135deg, #10B981, #34D399);
  color: #fff; font-size: 12px; font-weight: 800;
  padding: 4px 10px; border-radius: 100px;
  box-shadow: 0 4px 12px rgba(16,185,129,.3);
}

/* Generic mockup shells */
.stb-mockup-generic {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px; min-width: 200px;
}
.stb-mock-page {
  background: rgba(255,255,255,.1); border-radius: 8px; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.stb-mock-line {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.18);
}
.stb-mock-line--short { width: 55%; }
.stb-mock-line--med { width: 78%; }
.stb-mock-title {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .sto-footer__links-inner { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .sto-footer__top-inner { gap: 24px; }
  .sto-footer__links-inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sto-header-cta { display: none; }
  .sto-nav { display: none; }
  .sto-hamburger { display: flex; }
  .sto-hero { padding: 72px 20px 80px; }
  .sto-hero__feats { grid-template-columns: 1fr 1fr; }
  .stb-layout { grid-template-columns: 1fr; }
  .stb-hero__inner { flex-direction: column; }
  .stb-hero__visual { display: none; }
  .stb-how-steps { grid-template-columns: 1fr; }
  .stb-how-steps::before { display: none; }
  .sto-footer__top { padding: 32px 24px 28px; }
  .sto-footer__links-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 32px 24px 28px; }
  .sto-footer__bottom { padding: 14px 24px; }
}
@media (max-width: 640px) {
  .sto-hero { padding: 56px 16px 64px; }
  .sto-hero__feats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sto-grid-section { padding: 56px 16px; }
  .sto-tools-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sto-card { padding: 20px 16px 16px; }
  .sto-card__icon-wrap { width: 44px; height: 44px; font-size: 22px; border-radius: 11px; }
  .sto-card__title { font-size: 14px; }
  .sto-footer__top { padding: 28px 20px; }
  .sto-footer__top-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sto-footer__trust { gap: 16px; }
  .sto-footer__links-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 20px; }
  .sto-footer__bottom { padding: 14px 20px; }
  .stb-body { padding: 28px 16px 56px; }
  .stb-card__head { padding: 16px 18px 14px; }
  .stb-dz-inner { padding: 32px 16px; }
  .stb-level-grid { grid-template-columns: 1fr; }
  .stb-hero { padding: 52px 16px 60px; }
  .sto-hero__h1 { font-size: clamp(32px, 10vw, 52px); }
  .stb-how { padding: 48px 16px; }
}
@media (max-width: 400px) {
  .sto-tools-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CLASS ALIASES — old stb- names mapped to new styles
   ============================================================ */

/* Ring */
.stb-ring-track { fill: none; stroke: var(--w-border); stroke-width: 6; }
.stb-ring-fill  { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 170; transition: stroke-dashoffset .3s ease; }

/* Processing */
.sto-processing { background: var(--w-surface); border: 1px solid var(--w-border); border-radius: var(--w-radius-lg); margin-bottom: 20px; box-shadow: var(--w-shadow); }
.stb-processing-inner { display: flex; align-items: center; gap: 20px; padding: 28px 24px 8px; }
.sto-processing-title { font-family: var(--w-font-disp); font-size: 17px; font-weight: 800; color: var(--w-text); }
.sto-processing-sub { font-size: 13px; color: var(--w-muted); margin-top: 4px; }
.stb-pbar { margin: 12px 24px 20px; }
.sto-progress-fill { height: 100%; background: linear-gradient(90deg, var(--stb-c1, var(--w-primary)), var(--stb-c2, var(--w-primary-lt))); border-radius: 3px; width: 0%; transition: width .3s ease; }

/* Result */
.sto-result { background: var(--w-surface); border: 1px solid var(--w-border); border-radius: var(--w-radius-lg); margin-bottom: 20px; box-shadow: var(--w-shadow); }
.stb-result-head { display: flex; align-items: center; gap: 16px; padding: 24px 24px 12px; }
.sto-result__title { font-family: var(--w-font-disp); font-size: 19px; font-weight: 800; color: var(--w-text); }
.stb-result-sub { font-size: 13px; color: var(--w-muted); margin-top: 3px; }
.sto-result__downloads { padding: 0 24px 12px; display: flex; flex-direction: column; gap: 10px; }
.sto-result__actions { padding: 0 24px 20px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Convert inner */
.stb-convert-inner { padding: 20px 24px; }
.sto-convert-hint { font-size: 12px; color: var(--w-muted); text-align: center; margin: 10px 0 0; }

/* Sidebar cards */
.stb-info-card {
  background: var(--w-surface); border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg); padding: 0; box-shadow: var(--w-shadow); overflow: hidden;
}
.stb-info-card h3 {
  font-family: var(--w-font-disp); font-size: 14px; font-weight: 800;
  color: var(--w-text); margin: 0; padding: 16px 20px;
  border-bottom: 1px solid var(--w-border);
}
.stb-info-list { list-style: none; margin: 0; padding: 14px 20px; display: flex; flex-direction: column; gap: 14px; }
.stb-info-list li { display: flex; align-items: flex-start; gap: 12px; }
.stb-info-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.stb-info-list li strong { display: block; font-size: 13px; font-weight: 700; color: var(--w-text); }
.stb-info-list li p { font-size: 12px; color: var(--w-muted); margin: 2px 0 0; line-height: 1.4; }

.stb-sidebar-tools {
  background: var(--w-surface); border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg); padding: 0; box-shadow: var(--w-shadow); overflow: hidden;
}
.stb-sidebar-tools h3 {
  font-family: var(--w-font-disp); font-size: 14px; font-weight: 800;
  color: var(--w-text); margin: 0; padding: 16px 20px;
  border-bottom: 1px solid var(--w-border);
}
.sto-sidebar-list { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.sto-sidebar-list li a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--w-muted);
  text-decoration: none !important; transition: all var(--w-trans);
}
.sto-sidebar-list li a:hover { background: var(--w-bg); color: var(--w-text); }
.sto-sidebar-list li a span { font-size: 15px; }

.stb-trust {
  background: var(--w-surface); border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg); padding: 16px 20px;
  box-shadow: var(--w-shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.stb-trust__item { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; color: var(--w-muted); }

/* How it works — old class names */
.stb-how { background: var(--w-bg); padding: 64px 28px; border-top: 1px solid var(--w-border); }
.stb-how .stb-how__title { font-family: var(--w-font-disp); font-size: clamp(22px,3vw,32px); font-weight: 800; color: var(--w-text); margin: 0 0 36px; letter-spacing: -.02em; }
.stb-how__steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: start; max-width: 1100px; }
.stb-how__arrow { display: flex; align-items: center; justify-content: center; padding-top: 24px; font-size: 20px; color: var(--w-border); width: 40px; }
.stb-how__step {
  background: var(--w-surface); border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg); padding: 28px 22px; text-align: center; box-shadow: var(--w-shadow);
}
.stb-how__num {
  font-family: var(--w-font-disp);
  font-size: 34px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--stb-c1, var(--w-primary)), var(--stb-c2, var(--w-primary-lt)));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 10px;
}
.stb-how__icon { font-size: 28px; margin-bottom: 12px; }
.stb-how__step h3 { font-family: var(--w-font-disp); font-size: 15px; font-weight: 800; color: var(--w-text); margin: 0 0 8px; }
.stb-how__step p { font-size: 12px; color: var(--w-muted); margin: 0; line-height: 1.55; }

@media (max-width: 640px) {
  .stb-how__steps { grid-template-columns: 1fr; }
  .stb-how__arrow { display: none; }
}

/* ============================================================
   TOOL PAGE HEADER (replaces dark hero)
   ============================================================ */

/* Remove old hero entirely */
.stb-hero { display: none !important; }

/* Page header — light, clean, professional */
.stb-page-header {
  background: #ffffff;
  border-bottom: 1px solid var(--w-border);
  padding: 16px 0 14px;
}
.stb-page-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Breadcrumb */
.stb-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--w-muted);
  text-decoration: none !important;
  margin-bottom: 10px;
  transition: color var(--w-trans);
}
.stb-breadcrumb:hover { color: var(--w-primary); text-decoration: none !important; }
.stb-breadcrumb svg { flex-shrink: 0; transition: transform var(--w-trans); }
.stb-breadcrumb:hover svg { transform: translateX(-3px); }

/* Tool identity row */
.stb-page-header__body {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.stb-page-header__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}
.stb-page-header__text { flex: 1; }
.stb-page-header__title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  color: var(--w-text);
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.stb-page-header__title span {
  background: linear-gradient(90deg, var(--stb-c1, var(--w-primary)), var(--stb-c2, var(--w-primary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stb-page-header__sub {
  font-size: 12px;
  color: var(--w-muted);
  margin: 3px 0 0 0;
  line-height: 1.55;
  max-width: 560px;
}

/* Pills row */
.stb-page-header__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-bottom: 2px;
}
.stb-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: color-mix(in srgb, var(--pc, var(--w-primary)) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc, var(--w-primary)) 18%, transparent);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: color-mix(in srgb, var(--pc, var(--w-primary)) 80%, #000);
}

/* Typography upgrades across all elements */
.sto-section-title,
.sto-cta-banner__title,
.stb-how .stb-how__title,
.stb-how__step h3,
.stb-info-card h3,
.stb-sidebar-tools h3,
.stb-card__head h2,
.sto-result__title,
.sto-processing-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  letter-spacing: -.02em !important;
}

/* Hero typography */
.sto-hero__h1 {
  font-family: 'Instrument Serif', Georgia, serif !important;
  letter-spacing: -.02em !important;
}
.sto-hero__h1 em {
  font-style: italic;
}
.sto-section-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
}
.sto-card__title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  letter-spacing: -.015em !important;
}

/* Tighten body */
body, .sto-wrap, .stb-wrap {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
}

/* Responsive page header */
@media (max-width: 640px) {
  .stb-page-header { padding: 12px 0 10px; }
  .stb-page-header__inner { padding: 0 16px; }
  .stb-page-header__icon { width: 34px; height: 34px; font-size: 16px; border-radius: 8px; }
  .stb-page-header__title { font-size: 15px; }
  .stb-page-header__sub { font-size: 11px; margin-left: 0; }
  .stb-pill { font-size: 10px; padding: 3px 9px; }
}

/* ============================================================
   TARGETED FIXES — DPI slider, Position grid, Edit tools,
   Sign canvas, Signature placement, File input
   ============================================================ */

/* ── 1. DPI SLIDER — stack slider + labels vertically ─────── */
.stb-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stb-slider-wrap .stb-slider {
  width: 100%;
}
.stb-slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--w-muted);
  font-weight: 500;
}
.stb-slider-labels .stb-slider-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--stb-c1, var(--w-primary));
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--stb-c1, var(--w-primary)) 22%, transparent);
  border-radius: 6px;
  padding: 2px 9px;
  min-width: auto;
  text-align: center;
}

/* ── 2. POSITION GRID — visual 3×3 page picker ────────────── */
.stb-position-grid {
  display: grid;
  grid-template-columns: repeat(3, 36px);
  grid-template-rows: repeat(3, 36px);
  gap: 4px;
  width: fit-content;
}
.stb-pos-cell {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--w-border);
  border-radius: 7px;
  cursor: pointer;
  background: var(--w-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--w-trans), background var(--w-trans), box-shadow var(--w-trans);
  position: relative;
}
/* Hide the text spans — layout is self-explanatory */
.stb-pos-cell span:not(.stb-pos-cell--mid-label span) {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap;
}
.stb-pos-cell input { display: none; }
.stb-pos-cell::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--w-border);
  transition: background var(--w-trans), transform var(--w-trans);
}
.stb-pos-cell:hover {
  border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 50%, transparent);
  background: #fff;
}
.stb-pos-cell:hover::after {
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 40%, transparent);
}
.stb-pos-cell--active {
  border-color: var(--stb-c1, var(--w-primary)) !important;
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 10%, #fff) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 14%, transparent) !important;
}
.stb-pos-cell--active::after {
  background: var(--stb-c1, var(--w-primary)) !important;
  transform: scale(1.3);
}
/* Middle cell — shows "Page" label as a mini page preview */
.stb-pos-cell--mid {
  background: transparent !important;
  border-color: transparent !important;
  cursor: default;
  pointer-events: none;
}
.stb-pos-cell--mid::after { display: none; }
.stb-pos-cell--mid-label {
  background: var(--w-border) !important;
  border-color: var(--w-border) !important;
  cursor: default;
  pointer-events: none;
}
.stb-pos-cell--mid-label::after { display: none; }
.stb-pos-cell--mid-label span {
  position: static !important;
  width: auto !important; height: auto !important;
  clip: auto !important; overflow: visible !important;
  font-size: 9px; font-weight: 700;
  color: var(--w-muted);
  text-transform: uppercase; letter-spacing: .03em;
}

/* Wrap position grid + label row nicely */
.stb-field:has(.stb-position-grid) .stb-field-label { margin-bottom: 10px; }

/* ── 3. EDIT TOOLS GRID ────────────────────────────────────── */
.stb-edit-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.stb-edit-tool { cursor: pointer; }
.stb-edit-tool input { display: none; }
.stb-edit-tool__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1.5px solid var(--w-border);
  border-radius: 10px;
  background: var(--w-surface);
  transition: all var(--w-trans);
  position: relative;
  text-align: center;
}
.stb-edit-tool__inner:hover {
  border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 45%, transparent);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 10%, transparent);
}
.stb-edit-tool--active .stb-edit-tool__inner {
  border-color: var(--stb-c1, var(--w-primary));
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 6%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 12%, transparent);
}
.stb-edit-tool__icon { font-size: 22px; line-height: 1; }
.stb-edit-tool__name {
  font-size: 12px; font-weight: 700; color: var(--w-text); line-height: 1.2;
}
/* Active checkmark */
.stb-edit-tool--active .stb-edit-tool__inner::after {
  content: '✓';
  position: absolute; top: 6px; right: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--stb-c1, var(--w-primary)); color: #fff;
  font-size: 9px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

/* ── 4. SIGN PDF — canvas & controls ──────────────────────── */
.stb-sig-canvas-wrap {
  border: 1.5px solid var(--w-border);
  border-radius: 10px;
  background: #fafafa;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
}
.stb-sig-canvas {
  display: block;
  width: 100%;
  height: 140px;
  cursor: crosshair;
  touch-action: none;
}
.stb-sig-canvas-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--w-muted);
  pointer-events: none;
  font-style: italic;
  transition: opacity .2s;
}
.stb-sig-canvas-hint.hidden { opacity: 0; }
.stb-sig-canvas-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.stb-sig-clear {
  padding: 7px 16px;
  border: 1.5px solid var(--w-border);
  border-radius: 8px;
  background: var(--w-surface);
  font-family: var(--w-font-body);
  font-size: 12px; font-weight: 700; color: var(--w-muted);
  cursor: pointer;
  transition: all var(--w-trans);
}
.stb-sig-clear:hover {
  border-color: #DC2626; color: #DC2626;
  background: #FEF2F2;
}
.stb-sig-colors {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stb-sig-color {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform var(--w-trans), border-color var(--w-trans);
  outline: none;
}
.stb-sig-color:hover { transform: scale(1.15); }
.stb-sig-color--active {
  border-color: rgba(0,0,0,.25) !important;
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(0,0,0,.1);
}

/* ── 5. FILE INPUT (signature upload) ─────────────────────── */
.stb-file-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px dashed var(--w-border);
  border-radius: 9px;
  background: var(--w-bg);
  font-family: var(--w-font-body);
  font-size: 13px; color: var(--w-muted);
  cursor: pointer;
  transition: border-color var(--w-trans), background var(--w-trans);
}
.stb-file-input:hover {
  border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 50%, transparent);
  background: #fff;
}
.stb-file-input:focus {
  outline: none;
  border-color: var(--stb-c1, var(--w-primary));
}

/* ── 6. TOGGLE TRACK (sign all-pages switch) ──────────────── */
.stb-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--w-border);
  border-radius: 9px;
  background: var(--w-surface);
  cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--w-text);
  transition: border-color var(--w-trans);
}
.stb-toggle:has(input:checked) {
  border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 40%, transparent);
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 4%, #fff);
}
.stb-toggle input[type=checkbox] { display: none; }
.stb-toggle-track {
  width: 42px; height: 24px;
  background: var(--w-border);
  border-radius: 100px;
  flex-shrink: 0;
  position: relative;
  transition: background var(--w-trans);
  display: block;
}
.stb-toggle-track::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0,0,0,.22);
  transition: transform var(--w-trans);
}
.stb-toggle:has(input:checked) .stb-toggle-track {
  background: var(--stb-c1, var(--w-primary));
}
.stb-toggle:has(input:checked) .stb-toggle-track::after {
  transform: translateX(18px);
}

/* Responsive */
@media (max-width: 640px) {
  .stb-edit-tools { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESULT UI — upgraded single/multi layouts
   ============================================================ */

/* Single file result row */
.sto-single-result-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--w-bg); border: 1.5px solid var(--w-border);
  border-radius: 11px; width: 100%;
  animation: sto-fadein .3s ease both;
}
.sto-single-result-row__icon { font-size: 26px; flex-shrink: 0; }
.sto-single-result-row__info { flex: 1; min-width: 0; text-align: left; }
.sto-single-result-row__name { display: block; font-size: 14px; font-weight: 800; color: var(--w-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sto-single-result-row__size { font-size: 12px; color: var(--w-muted); }

/* Multi-file — widen result panel */
.sto-result--multi { align-items: stretch !important; }
.sto-result--multi #sto-result-downloads { max-width: 100% !important; width: 100%; }
.sto-result--multi .sto-result-check, .sto-result--multi .sto-result-title, .sto-result--multi #sto-result-meta, .sto-result--multi .sto-convert-another { align-self: center; }

/* ZIP download block */
.sto-zip-download-block {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px;
  background: color-mix(in srgb, #059669 7%, #fff);
  border: 1.5px solid color-mix(in srgb, #22C55E 30%, transparent);
  border-radius: 12px; margin-bottom: 14px;
  animation: sto-fadein .3s ease both;
}
.sto-zip-download-block__left { display: flex; align-items: center; gap: 14px; }
.sto-zip-download-block__icon { font-size: 30px; }
.sto-zip-download-block__name { font-size: 15px; font-weight: 800; color: var(--w-text); }
.sto-zip-download-block__meta { font-size: 12px; color: var(--w-muted); margin-top: 2px; }

/* Divider */
.sto-result-divider {
  display: flex; align-items: center; gap: 10px; margin: 10px 0;
}
.sto-result-divider::before, .sto-result-divider::after { content: ''; flex: 1; height: 1px; background: var(--w-border); }
.sto-result-divider span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--w-muted); white-space: nowrap; }
.sto-result-divider--warn span { color: #DC2626; }
.sto-result-divider--warn::before, .sto-result-divider--warn::after { background: #FECACA; }

/* Individual file result rows */
.sto-file-result-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: #fff;
  border: 1.5px solid var(--w-border); border-radius: 10px; margin-bottom: 7px;
  animation: sto-fadein .3s ease both;
  transition: border-color var(--w-trans), box-shadow var(--w-trans);
}
.sto-file-result-row:hover { border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 35%, transparent); }
.sto-file-result-row__num { width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; background: var(--w-bg); border: 1px solid var(--w-border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--w-muted); }
.sto-file-result-row__icon { font-size: 20px; flex-shrink: 0; }
.sto-file-result-row__info { flex: 1; min-width: 0; }
.sto-file-result-row__name { display: block; font-size: 13px; font-weight: 700; color: var(--w-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sto-file-result-row__size { font-size: 11px; color: var(--w-muted); }
.sto-file-result-row__err { font-size: 11px; color: #DC2626; }
.sto-file-result-row__btn { flex-shrink: 0; min-width: 100px; }
.sto-file-result-row--error { background: #FEF2F2; border-color: #FECACA; }

@keyframes sto-fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 480px) {
  .sto-zip-download-block { flex-direction: column; align-items: stretch; }
  .sto-zip-download-block__btn { width: 100%; justify-content: center; }
  .sto-file-result-row__btn { min-width: 80px; padding: 7px 10px; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════════
   SEO TOOLS PRO — Additional Styles
   ════════════════════════════════════════════════════════════ */

/* Category blocks on dashboard */
.sto-cat-block { margin-bottom: 40px; }
.sto-cat-block__head { display:flex; align-items:center; gap:12px; margin-bottom:16px; padding-bottom:12px; border-bottom:2px solid #F1F5F9; }
.sto-cat-block__icon { font-size:22px; }
.sto-cat-block__title { font-size:18px; font-weight:800; color:#0F172A; flex:1; }
.sto-cat-block__count { font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; text-transform:uppercase; letter-spacing:.05em; }

/* Mobile nav groups */
.sto-mobile-nav__group { border-top:1px solid rgba(255,255,255,.07); padding-top:8px; margin-top:8px; }
.sto-mobile-nav__heading { display:block; padding:8px 24px; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.4); }

/* Tool base input area */
.stb-input-wrap { padding:0 24px 16px; }
.stb-url-input { width:100%; }
.stb-form-wrap { padding:4px 24px 16px; }
.stb-none-wrap { padding:16px 24px; text-align:center; }
.stb-none-hint { color:#64748B; font-size:14px; }
.stb-textarea-meta { font-size:11px; color:#94A3B8; text-align:right; margin-top:4px; min-height:16px; }

/* Form field helpers */
.stb-field { display:flex; flex-direction:column; gap:6px; }
.stb-field-label { font-size:12px; font-weight:700; color:#475569; text-transform:uppercase; letter-spacing:.04em; }
.stb-two-col { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.stb-three-col { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }
@media(max-width:600px){ .stb-two-col,.stb-three-col { grid-template-columns:1fr; } }
.stb-text-input { width:100%; padding:9px 14px; background:#fff; border:1.5px solid #E2E8F0; border-radius:8px; font-size:13px; color:#0F172A; transition:border-color .18s; box-sizing:border-box; }
.stb-text-input:focus { outline:none; border-color:var(--stb-c1,#2563EB); box-shadow:0 0 0 3px rgba(37,99,235,.08); }
.stb-select { width:100%; padding:9px 14px; background:#fff; border:1.5px solid #E2E8F0; border-radius:8px; font-size:13px; color:#0F172A; cursor:pointer; }
.stb-select:focus { outline:none; border-color:var(--stb-c1,#2563EB); }
.stb-level-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:8px; }
.stb-checkboxes { display:flex; flex-wrap:wrap; gap:12px; }
.stb-checkbox { display:flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:#334155; cursor:pointer; }
.stb-checkbox input { width:15px; height:15px; accent-color:var(--stb-c1,#2563EB); }

/* Run button */
.stb-run-btn { width:100%; padding:16px 32px; border:none; border-radius:14px; color:#fff; font-size:17px; font-weight:800; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:12px; transition:opacity .18s,transform .18s; }
.stb-run-btn:hover { opacity:.9; transform:translateY(-2px); }
.stb-run-btn:disabled { opacity:.4; cursor:not-allowed; transform:none; }
.stb-run-btn__icon { font-size:20px; }

/* Processing ring */
.stb-processing { display:none; padding:32px 24px; text-align:center; }
.stb-processing.sto-visible { display:block; }
.stb-proc-inner { display:flex; flex-direction:column; align-items:center; gap:16px; }
.stb-proc-ring svg .stb-ring-track { fill:none; stroke:#E2E8F0; stroke-width:5; }
.stb-proc-ring svg .stb-ring-fill { fill:none; stroke-width:5; stroke-linecap:round; stroke-dasharray:170; stroke-dashoffset:170; animation:stb-spin 1.4s linear infinite; }
@keyframes stb-spin { to { stroke-dashoffset:0; } }
.stb-proc-label { font-size:15px; font-weight:600; color:#475569; }

/* Result panel */
.stb-result { display:none; }
.stb-result.sto-visible { display:block; }
.stb-result__head { display:flex; align-items:flex-start; gap:14px; padding:20px 24px 16px; border-bottom:1px solid #F1F5F9; flex-wrap:wrap; }
.stb-result__check { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; font-weight:900; flex-shrink:0; }
.stb-result__title { font-size:16px; font-weight:800; color:#0F172A; }
.stb-result__meta { font-size:12px; color:#64748B; margin-top:2px; }
.stb-result__actions-top { margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
.stb-result__output { padding:20px 24px; }
.stb-result__footer { padding:0 24px 20px; }
.stb-another-btn { background:none; border:1.5px solid #E2E8F0; border-radius:8px; padding:8px 18px; font-size:13px; font-weight:600; color:#64748B; cursor:pointer; transition:all .15s; }
.stb-another-btn:hover { border-color:#94A3B8; color:#334155; }
.stb-btn { padding:7px 14px; border:none; border-radius:7px; font-size:12px; font-weight:700; cursor:pointer; transition:all .15s; }
.stb-btn--copy { background:#EFF6FF; color:#2563EB; }
.stb-btn--copy:hover { background:#2563EB; color:#fff; }
.stb-btn--download { background:#F0FDF4; color:#16A34A; }
.stb-btn--download:hover { background:#16A34A; color:#fff; }

/* Result output types */
.stb-output-text { background:#F8FAFC; border:1px solid #E2E8F0; border-radius:10px; padding:16px; font-size:13px; line-height:1.7; color:#1E293B; white-space:pre-wrap; word-break:break-all; max-height:400px; overflow-y:auto; }
.stb-output-text.mono { font-family:'Courier New',monospace; font-size:12px; }
.stb-output-hash { text-align:center; padding:20px; }
.stb-output-hash__val { font-family:'Courier New',monospace; font-size:15px; font-weight:700; color:#0F172A; background:#F1F5F9; padding:12px 20px; border-radius:10px; word-break:break-all; margin:8px 0; }
.stb-output-hash__algo { font-size:11px; color:#64748B; text-transform:uppercase; letter-spacing:.06em; }
.stb-output-hash__bits { font-size:12px; color:#059669; font-weight:700; }

/* Stats grid */
.stb-stats-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; }
.stb-stat-card { background:#F8FAFC; border:1px solid #E2E8F0; border-radius:12px; padding:16px; text-align:center; }
.stb-stat-card__icon { font-size:22px; margin-bottom:6px; display:block; }
.stb-stat-card__val { font-size:22px; font-weight:900; color:#0F172A; display:block; }
.stb-stat-card__label { font-size:11px; color:#64748B; text-transform:uppercase; letter-spacing:.05em; margin-top:2px; display:block; }

/* Keyword density table */
.stb-table { width:100%; border-collapse:collapse; font-size:13px; }
.stb-table th { padding:10px 12px; background:#F1F5F9; font-weight:700; color:#475569; text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.04em; }
.stb-table td { padding:9px 12px; border-bottom:1px solid #F1F5F9; color:#334155; }
.stb-table tr:hover td { background:#F8FAFC; }
.stb-density-bar { height:6px; border-radius:3px; background:#E2E8F0; overflow:hidden; margin-top:4px; }
.stb-density-fill { height:100%; border-radius:3px; }

/* Readability meter */
.stb-readability { text-align:center; padding:8px 0 24px; }
.stb-flesch-score { font-size:52px; font-weight:900; line-height:1; }
.stb-flesch-label { font-size:18px; font-weight:700; margin:6px 0 4px; }
.stb-flesch-desc { font-size:13px; color:#64748B; margin-bottom:20px; }
.stb-flesch-bar { height:12px; background:#E2E8F0; border-radius:6px; overflow:hidden; max-width:400px; margin:0 auto 20px; }
.stb-flesch-fill { height:100%; border-radius:6px; transition:width 1s ease; }

/* Password strength meter */
.stb-strength { text-align:center; }
.stb-strength__score { font-size:40px; font-weight:900; }
.stb-strength__label { font-size:20px; font-weight:800; margin:4px 0 16px; }
.stb-strength-bar { height:10px; background:#E2E8F0; border-radius:5px; overflow:hidden; max-width:400px; margin:0 auto 20px; }
.stb-strength-fill { height:100%; border-radius:5px; transition:width .8s ease; }
.stb-checks { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.stb-checks li { font-size:13px; display:flex; align-items:center; gap:7px; }
.stb-checks li::before { font-size:14px; flex-shrink:0; }
.stb-checks li.pass::before { content:'✅'; }
.stb-checks li.fail::before { content:'❌'; }
@media(max-width:500px){ .stb-checks { grid-template-columns:1fr; } }

/* Passwords list */
.stb-passwords { display:flex; flex-direction:column; gap:8px; }
.stb-password-row { display:flex; align-items:center; gap:10px; background:#F8FAFC; border:1px solid #E2E8F0; border-radius:8px; padding:10px 14px; }
.stb-password-row__val { font-family:'Courier New',monospace; font-size:14px; font-weight:700; color:#0F172A; flex:1; word-break:break-all; }
.stb-password-row__copy { background:#EFF6FF; color:#2563EB; border:none; border-radius:6px; padding:5px 10px; font-size:11px; font-weight:700; cursor:pointer; transition:all .15s; flex-shrink:0; }
.stb-password-row__copy:hover { background:#2563EB; color:#fff; }

/* Diff checker */
.sto-diff { font-family:'Courier New',monospace; font-size:12px; border-radius:10px; overflow:hidden; border:1px solid #E2E8F0; }
.sto-diff__line { padding:5px 12px; display:flex; align-items:flex-start; gap:8px; border-bottom:1px solid rgba(0,0,0,.03); }
.sto-diff__same { background:#fff; color:#64748B; }
.sto-diff__added { background:#F0FDF4; color:#16A34A; }
.sto-diff__removed { background:#FEF2F2; color:#DC2626; text-decoration:line-through; }
.sto-diff__changed { background:#FFFBEB; color:#D97706; }
.sto-diff__badge { font-size:11px; font-weight:900; border-radius:3px; padding:0 4px; min-width:16px; text-align:center; flex-shrink:0; }
.sto-diff__badge--add { background:#DCFCE7; color:#16A34A; }
.sto-diff__badge--rem { background:#FEE2E2; color:#DC2626; }
.sto-diff__badge--chg { background:#FEF9C3; color:#A16207; }

/* Highlight tool */
mark.sto-hl { background:#FEF08A; color:#0F172A; border-radius:2px; padding:0 1px; }

/* Link extractor */
.stb-links { display:flex; flex-direction:column; gap:6px; max-height:400px; overflow-y:auto; }
.stb-link-row { display:flex; align-items:center; gap:10px; padding:8px 12px; background:#F8FAFC; border-radius:8px; border:1px solid #E2E8F0; font-size:12px; }
.stb-link-badge { font-size:10px; font-weight:700; padding:2px 8px; border-radius:20px; flex-shrink:0; }
.stb-link-badge--external { background:#EFF6FF; color:#2563EB; }
.stb-link-badge--internal { background:#F0FDF4; color:#16A34A; }
.stb-link-badge--anchor  { background:#F5F3FF; color:#7C3AED; }
.stb-link-badge--email   { background:#FFFBEB; color:#D97706; }
.stb-link-href { font-family:'Courier New',monospace; color:#0F172A; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stb-link-text { color:#64748B; font-size:11px; }

/* Meta tag analysis */
.stb-meta-tags { display:flex; flex-direction:column; gap:8px; }
.stb-meta-tag { padding:12px 16px; border-radius:10px; border:1px solid #E2E8F0; background:#F8FAFC; }
.stb-meta-tag__name { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:#64748B; }
.stb-meta-tag__content { font-size:13px; color:#0F172A; margin-top:3px; word-break:break-all; }
.stb-meta-tag__footer { display:flex; gap:10px; margin-top:6px; font-size:11px; }
.stb-meta-tag__len { color:#94A3B8; }
.stb-status { font-weight:700; padding:1px 7px; border-radius:10px; font-size:10px; }
.stb-status--good    { background:#F0FDF4; color:#16A34A; }
.stb-status--warning { background:#FFFBEB; color:#D97706; }
.stb-status--error   { background:#FEF2F2; color:#DC2626; }

/* Robots test */
.stb-robots-result { text-align:center; padding:24px; }
.stb-robots-status { font-size:40px; font-weight:900; }
.stb-robots-path { font-family:'Courier New',monospace; font-size:13px; background:#F1F5F9; padding:8px 16px; border-radius:8px; margin:12px auto; display:inline-block; }

/* Redirect chain */
.stb-redirect-chain { display:flex; flex-direction:column; gap:6px; }
.stb-redirect-hop { display:flex; align-items:center; gap:12px; padding:10px 16px; background:#F8FAFC; border:1px solid #E2E8F0; border-radius:8px; font-size:12px; }
.stb-redirect-status { font-size:13px; font-weight:800; min-width:44px; text-align:center; padding:3px 8px; border-radius:6px; }
.stb-redirect-status--2xx { background:#F0FDF4; color:#16A34A; }
.stb-redirect-status--3xx { background:#FFFBEB; color:#D97706; }
.stb-redirect-status--4xx,.stb-redirect-status--5xx { background:#FEF2F2; color:#DC2626; }
.stb-redirect-url { font-family:'Courier New',monospace; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stb-redirect-arrow { color:#94A3B8; font-size:16px; }

/* N-gram table */
.stb-ngram-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:8px; max-height:360px; overflow-y:auto; }
.stb-ngram-item { display:flex; align-items:center; justify-content:space-between; background:#F8FAFC; border:1px solid #E2E8F0; border-radius:8px; padding:8px 12px; font-size:13px; }
.stb-ngram-gram { font-weight:600; color:#0F172A; }
.stb-ngram-count { background:#EFF6FF; color:#2563EB; font-size:11px; font-weight:700; padding:2px 8px; border-radius:10px; }

/* Frequency table */
.stb-freq-table { width:100%; border-collapse:collapse; font-size:13px; max-height:360px; overflow-y:auto; display:block; }

/* Validation */
.stb-validation { padding:8px 0; }
.stb-validation__icon { font-size:48px; text-align:center; display:block; margin-bottom:8px; }
.stb-validation__msg { text-align:center; font-size:16px; font-weight:700; }
.stb-validation__errors { margin-top:12px; }
.stb-validation__error { padding:8px 12px; background:#FEF2F2; border:1px solid #FECACA; border-radius:8px; font-size:12px; color:#DC2626; margin-bottom:6px; font-family:'Courier New',monospace; }
.stb-validation__info { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:16px; }
.stb-info-pill { background:#F1F5F9; border-radius:20px; padding:5px 14px; font-size:12px; color:#475569; }
.stb-info-pill strong { color:#0F172A; }

/* SEO notes */
.stb-seo-notes { margin-top:16px; display:flex; flex-direction:column; gap:6px; }
.stb-seo-note { padding:8px 12px; border-radius:8px; font-size:12px; font-weight:600; }
.stb-seo-note--warn { background:#FFFBEB; color:#92400E; border:1px solid #FDE68A; }
.stb-seo-note--good { background:#F0FDF4; color:#14532D; border:1px solid #BBF7D0; }

/* Code output */
.stb-code { background:#1E293B; color:#E2E8F0; padding:16px 20px; border-radius:10px; font-family:'Courier New',monospace; font-size:12px; line-height:1.7; white-space:pre-wrap; word-break:break-all; max-height:400px; overflow-y:auto; }

/* Passive voice sentences */
.stb-passive-list { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.stb-passive-item { padding:8px 12px; background:#FFFBEB; border:1px solid #FDE68A; border-radius:8px; font-size:12px; color:#92400E; font-style:italic; }

/* Rewrite suggestions */
.stb-rewrites { display:flex; flex-direction:column; gap:10px; }
.stb-rewrite-item { background:#F8FAFC; border:1px solid #E2E8F0; border-radius:10px; padding:14px 16px; }
.stb-rewrite-item__label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#94A3B8; margin-bottom:6px; }
.stb-rewrite-item__text { font-size:13px; color:#1E293B; line-height:1.65; }
.stb-rewrite-item__copy { margin-top:8px; background:#EFF6FF; color:#2563EB; border:none; border-radius:6px; padding:5px 12px; font-size:11px; font-weight:700; cursor:pointer; }

/* Tag analysis grid */
.stb-tag-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); gap:10px; margin-bottom:16px; }
.stb-tag-item { text-align:center; background:#F8FAFC; border:1px solid #E2E8F0; border-radius:10px; padding:12px 8px; }
.stb-tag-item__name { font-size:11px; font-weight:700; text-transform:uppercase; color:#64748B; font-family:'Courier New',monospace; }
.stb-tag-item__count { font-size:24px; font-weight:900; color:#0F172A; margin:4px 0; }
.stb-tag-item--warn .stb-tag-item__count { color:#D97706; }
.stb-tag-item--good .stb-tag-item__count { color:#16A34A; }
