/* ToolsPT structure upgrade (additive: the colours, fonts and cards of site.css stay as they are).
   Category bar under the header, home sections, earn-money path, category search, tool-page trust strip. */
:root { --tx-header-h: 112px; }
.tx-header-in { height: 66px; }

/* ---------- category bar (second row of the header) ---------- */
.tx-catbar { border-top: 1px solid var(--tx-line); background: color-mix(in srgb, var(--tx-surface) 60%, transparent); }
.tx-catbar-in { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 46px; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tx-catbar-in::-webkit-scrollbar { display: none; }
@media (min-width: 761px) { html[dir="ltr"] .tx-catbar-in { height: auto; min-height: 46px; flex-wrap: wrap; overflow: visible; padding-top: 6px; padding-bottom: 6px; row-gap: 4px; } }   /* English labels are longer: wrap instead of cutting the bar */
.tx-catbar a { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 99px; border: 1px solid transparent; font-weight: 700; font-size: 13.5px; color: var(--tx-ink); text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.tx-catbar a:hover { background: var(--tx-surface2); }
.tx-catbar a.on { background: var(--tx-purple-soft); color: var(--tx-purple); border-color: color-mix(in srgb, var(--tx-purple) 35%, transparent); }
.tx-catbar a.money { background: linear-gradient(135deg, var(--tx-gold), var(--tx-gold-2)); color: var(--tx-gold-ink); font-weight: 800; box-shadow: 0 4px 14px rgba(232, 168, 0, .3); }
.tx-catbar a.money:hover { transform: translateY(-1px); }
.tx-catbar .sep { flex: none; width: 1px; height: 22px; background: var(--tx-line); margin: 0 4px; }
@media (max-width: 560px) { :root { --tx-header-h: 108px; } .tx-catbar-in { padding: 0 12px; height: 44px; } .tx-catbar a { padding: 6px 12px; font-size: 13.5px; } }

/* ---------- home ---------- */
.tx-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px auto 0; max-width: 760px; }
.tx-quick span { width: 100%; font-size: 13px; color: var(--tx-muted); font-weight: 600; }
.tx-quick a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: var(--tx-surface); border: 1px solid var(--tx-line); font-size: 13.5px; font-weight: 700; text-decoration: none; color: var(--tx-ink); }
.tx-quick a:hover { border-color: var(--tx-gold); background: color-mix(in srgb, var(--tx-gold) 14%, var(--tx-surface)); }

@media (max-width: 560px) { .tx-quick { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 2px 2px 8px; scrollbar-width: none; margin-top: 14px; } .tx-quick::-webkit-scrollbar { display: none; } .tx-quick span { width: auto; flex: none; align-self: center; } .tx-quick a { flex: none; white-space: nowrap; } }
.tx-money { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: center; padding: 26px 28px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--tx-gold) 22%, var(--tx-surface)), var(--tx-surface) 70%); border: 1px solid color-mix(in srgb, var(--tx-gold) 55%, var(--tx-line)); box-shadow: var(--tx-shadow); }
.tx-money h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 32px); font-weight: 900; line-height: 1.3; }
.tx-money p { margin: 0 0 16px; color: var(--tx-muted); font-size: 15.5px; line-height: 1.8; }
.tx-money-path { display: flex; flex-wrap: wrap; gap: 8px; }
.tx-money-path a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 14px; background: var(--tx-surface); border: 1px solid var(--tx-line); text-decoration: none; color: var(--tx-ink); font-weight: 700; font-size: 14px; }
.tx-money-path a:hover { border-color: var(--tx-gold); transform: translateY(-2px); box-shadow: var(--tx-shadow); }
.tx-money-path a b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tx-gold); color: var(--tx-gold-ink); font-size: 13px; }
.tx-money-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 860px) { .tx-money { grid-template-columns: 1fr; padding: 20px; } }

.tx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tx-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--tx-surface); border: 1px solid var(--tx-line); text-decoration: none; color: var(--tx-ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tx-tile:hover { transform: translateY(-3px); box-shadow: var(--tx-shadow-hover); border-color: color-mix(in srgb, var(--tx-gold) 70%, var(--tx-line)); }
.tx-tile .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--tx-purple-soft); }
.tx-tile b { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.35; }
.tx-tile small { color: var(--tx-muted); font-size: 12.5px; }
@media (max-width: 520px) { .tx-tiles { grid-template-columns: 1fr 1fr; } .tx-tile { padding: 12px; gap: 10px; } .tx-tile .ic { width: 40px; height: 40px; font-size: 21px; } .tx-tile b { font-size: 14px; } }

/* ---------- category / hub search ---------- */
.tx-find { position: relative; max-width: 520px; margin: 14px 0 18px; }
.tx-find input { width: 100%; padding: 13px 16px; padding-inline-start: 46px; border-radius: 14px; border: 1px solid var(--tx-line); background: var(--tx-surface); color: inherit; font: inherit; box-shadow: var(--tx-shadow); }
.tx-find input:focus { outline: 2px solid color-mix(in srgb, var(--tx-gold) 70%, transparent); border-color: var(--tx-gold); }
.tx-find svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--tx-muted); pointer-events: none; }
.tx-hide { display: none !important; }
.tx-empty-find { text-align: center; padding: 30px 10px; color: var(--tx-muted); }

/* ---------- earn-money path groups ---------- */
.tx-mgroup { margin-top: 26px; scroll-margin-top: calc(var(--tx-header-h) + 14px); }
.tx-mgroup-h { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tx-mgroup-h .n { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--tx-gold), var(--tx-gold-2)); color: var(--tx-gold-ink); font-weight: 900; font-size: 20px; box-shadow: 0 4px 14px rgba(232, 168, 0, .3); }
.tx-mgroup-h h2 { margin: 0; font-size: clamp(19px, 2.6vw, 26px); font-weight: 800; line-height: 1.3; }
.tx-mgroup-h p { margin: 2px 0 0; color: var(--tx-muted); font-size: 14.5px; }
.tx-msteps { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.tx-msteps a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--tx-surface); border: 1px solid var(--tx-line); font-weight: 700; font-size: 14px; text-decoration: none; color: var(--tx-ink); }
.tx-msteps a b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tx-gold); color: var(--tx-gold-ink); font-size: 12px; }
.tx-msteps a:hover { border-color: var(--tx-gold); }

.tx-zipnote { margin: 8px 0; width: 100%; }
.tx-zipnote summary { cursor: pointer; font-weight: 700; }
.tx-zipnote textarea { width: 100%; min-height: 80px; margin-top: 8px; border: 1px solid var(--tx-line); border-radius: 10px; padding: 8px; font: inherit; background: var(--tx-surface); color: inherit; }
.tx-zipnote .pre { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- zoom for the before/after viewer ---------- */
.st-cmp.tx-zoomable { position: relative; overflow: hidden; }
.tx-zbar { position: absolute; top: 10px; left: 10px; z-index: 6; display: flex; gap: 4px; align-items: center; padding: 4px; border-radius: 12px; background: rgba(20, 16, 40, .78); backdrop-filter: blur(6px); }
.tx-zbar button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 17px; cursor: pointer; line-height: 1; }
.tx-zbar button:hover, .tx-zbar button.on { background: var(--tx-gold); color: var(--tx-gold-ink); }
.tx-zbar .zv { color: #fff; font-size: 12px; font-weight: 700; padding: 0 6px; min-width: 44px; text-align: center; }
.st-cmp:fullscreen { background: #111; padding: 0; align-items: center; }
.st-cmp:fullscreen .st-cmp-in canvas { max-height: 100vh; max-width: 100vw; }
.st-cmp:fullscreen .tx-zbar { top: 14px; left: 14px; }

.tx-kw { display: flex; flex-wrap: wrap; gap: 6px; }
.tx-kw span { padding: 4px 10px; border-radius: 99px; background: var(--tx-surface2); color: var(--tx-muted); font-size: 12.5px; }

/* ---------- tool page: 3 steps ---------- */
.tx-steps3 { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 4px 0 16px; counter-reset: none; }
.tx-steps3 li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 99px; background: var(--tx-surface); border: 1px solid var(--tx-line); font-weight: 700; font-size: 14px; }
.tx-steps3 li b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tx-gold); color: var(--tx-gold-ink); font-size: 13px; }
@media (max-width: 520px) { .tx-steps3 { gap: 6px; } .tx-steps3 li { font-size: 13px; padding: 6px 10px; } }

/* ---------- tool page: trust strip ---------- */
.tx-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--tx-surface2); color: var(--tx-muted); font-size: 13.5px; font-weight: 600; }
.tx-trust span { display: inline-flex; align-items: center; gap: 6px; }

/* pricing: monthly / yearly switch and plan rows */
.tx-billing { display: flex; gap: 6px; justify-content: center; margin: 0 auto 16px; padding: 4px; width: max-content; max-width: 100%; border: 1px solid var(--tx-line); border-radius: 999px; background: var(--tx-surface); }
.tx-billing button { border: 0; background: transparent; color: var(--tx-muted); font: inherit; font-weight: 800; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.tx-billing button.on { background: var(--tx-purple); color: #fff; }
:root[data-theme="dark"] .tx-billing button.on { color: #1a1530; }
.tx-billing small { font-weight: 600; opacity: .85; margin-inline-start: 4px; }
.tx-plan li.no { opacity: .55; }
.tx-plan [hidden] { display: none !important; }

/* sponsor pictures */
.tx-feat { display: flex; justify-content: center; margin: 22px auto; padding: 0 12px; max-width: 1000px; }
.tx-feat[hidden] { display: none; }
.tx-feat a { position: relative; display: block; width: 100%; line-height: 0; border-radius: 10px; overflow: hidden; }
.tx-feat img { width: 100%; height: auto; display: block; }
