/* /tools/ home page (tools/index.php) -- premium look. --c = the category / card colour. */

/* ------------------------------------------------------------ hero */
.th-hero { position:relative; overflow:hidden; padding:42px 0 34px; background:#0b1120; color:#fff; isolation:isolate; }
.th-hero-bg { position:absolute; inset:0; z-index:-1; }
.th-orb { position:absolute; border-radius:50%; filter:blur(70px); opacity:.55; animation:th-float 14s ease-in-out infinite; }
.th-orb-1 { width:460px; height:460px; left:-120px; top:-160px; background:#2563eb; }
.th-orb-2 { width:380px; height:380px; right:-80px; top:40px; background:#7c3aed; animation-delay:-5s; }
.th-orb-3 { width:300px; height:300px; left:40%; bottom:-200px; background:#059669; opacity:.35; animation-delay:-9s; }
.th-bg-grid { position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); background-size:44px 44px; mask-image:radial-gradient(circle at 50% 30%,#000 30%,transparent 75%); -webkit-mask-image:radial-gradient(circle at 50% 30%,#000 30%,transparent 75%); }
@keyframes th-float { 0%,100% { transform:translate(0,0); } 50% { transform:translate(30px,24px); } }

.th-breadcrumb { display:flex; gap:6px; margin:0 0 26px; padding:0; list-style:none; color:#94a3b8; font-size:13px; }
.th-breadcrumb a { color:#cbd5e1; }
.th-breadcrumb a:hover { color:#fff; }
.th-breadcrumb li + li::before { content:"/"; margin-right:6px; color:#475569; }

.th-pill { display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border:1px solid rgba(255,255,255,.18); border-radius:100px; background:rgba(255,255,255,.07); color:#e0e7ff; font-size:13px; font-weight:700; backdrop-filter:blur(6px); }
.th-pill i { color:#fbbf24; }
.th-title { margin:18px 0 16px; font-size:52px; line-height:1.07; font-weight:800; letter-spacing:-2px; }
.th-title span { display:block; background:linear-gradient(90deg,#60a5fa,#a78bfa 45%,#34d399); -webkit-background-clip:text; background-clip:text; color:transparent; }
.th-lead { max-width:620px; margin:0 0 26px; color:#cbd5e1; font-size:17.5px; line-height:1.7; }

.th-search { position:relative; display:flex; align-items:center; max-width:560px; height:58px; padding:0 16px 0 50px; border:1px solid rgba(255,255,255,.18); border-radius:16px; background:rgba(255,255,255,.96); box-shadow:0 18px 50px rgba(2,6,23,.45); }
.th-search > i { position:absolute; left:19px; color:#64748b; font-size:17px; }
.th-search input { flex:1; height:100%; border:0; outline:none; background:transparent; color:#0f172a; font-size:16px; }
.th-search kbd { padding:3px 8px; border:1px solid #cbd5e1; border-radius:6px; background:#f1f5f9; color:#64748b; font-family:inherit; font-size:12px; }
.th-search:focus-within { box-shadow:0 0 0 4px rgba(96,165,250,.45),0 18px 50px rgba(2,6,23,.45); }

.th-stats { display:flex; flex-wrap:wrap; gap:10px 34px; margin:26px 0 0; padding:0; list-style:none; }
.th-stats strong { display:block; font-size:26px; font-weight:800; letter-spacing:-.5px; }
.th-stats span { color:#94a3b8; font-size:13px; font-weight:600; }

/* decorative mini cards */
.th-showcase { position:relative; height:400px; }
.th-mock { position:absolute; border:1px solid rgba(255,255,255,.14); border-radius:18px; background:rgba(255,255,255,.96); color:#0f172a; box-shadow:0 30px 60px rgba(2,6,23,.5); animation:th-bob 6s ease-in-out infinite; }
@keyframes th-bob { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
.th-mock-invoice { top:10px; left:20px; width:290px; padding:20px; transform:rotate(-3deg); }
.th-mock-head { display:flex; align-items:center; justify-content:space-between; margin:0 0 14px; }
.th-mock-head b { color:#7c3aed; letter-spacing:2px; }
.th-mock-logo { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:10px; background:linear-gradient(135deg,#7c3aed,#2563eb); color:#fff; }
.th-mock-line { height:8px; margin:0 0 7px; border-radius:6px; background:#e2e8f0; }
.th-mock-rows { margin:14px 0; }
.th-mock-rows span { display:block; height:22px; margin:0 0 5px; border-radius:6px; background:linear-gradient(90deg,#f1f5f9,#f8fafc); }
.th-mock-total { display:flex; justify-content:space-between; padding:10px 12px; border-radius:10px; background:#7c3aed; color:#fff; font-size:13px; }
.th-mock-stamp { position:absolute; right:18px; top:70px; padding:3px 10px; border:3px solid #16a34a; border-radius:7px; color:#16a34a; font-size:15px; font-weight:800; letter-spacing:2px; transform:rotate(-12deg); }
.th-mock-loan { right:0; top:150px; display:flex; align-items:center; gap:14px; padding:16px 18px; animation-delay:-2s; }
.th-ring { display:flex; align-items:center; justify-content:center; width:84px; height:84px; border-radius:50%; background:conic-gradient(#2563eb 0 46%,#f59e0b 46% 100%); }
.th-ring span { display:flex; flex-direction:column; align-items:center; justify-content:center; width:60px; height:60px; border-radius:50%; background:#fff; color:#64748b; font-size:10px; line-height:1.2; text-align:center; }
.th-ring b { color:#0f172a; font-size:12px; }
.th-mock-loan small, .th-mock-split small { display:block; color:#64748b; font-size:12px; font-weight:600; }
.th-up { color:#16a34a; font-size:18px; }
.th-mock-split { left:60px; bottom:0; width:240px; padding:14px 16px; animation-delay:-4s; }
.th-split-row { display:flex; align-items:center; gap:8px; margin:8px 0 0; color:#94a3b8; }
.th-split-row b { margin-left:auto; color:#2563eb; }
.th-avatar { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; color:#fff; font-size:12px; font-weight:800; }
.th-avatar.a1 { background:#db2777; }
.th-avatar.a2 { background:#2563eb; }
.th-avatar.a3 { background:#059669; }
.th-float { position:absolute; display:inline-flex; align-items:center; gap:7px; padding:8px 13px; border-radius:100px; background:rgba(15,23,42,.85); border:1px solid rgba(255,255,255,.15); color:#fff; font-size:12.5px; font-weight:700; animation:th-bob 5s ease-in-out infinite; }
.th-float i { color:#f87171; }
.th-float-1 { right:40px; top:20px; }
.th-float-2 { right:10px; bottom:60px; animation-delay:-2.5s; }
.th-float-2 i { color:#34d399; }

.th-jump { display:flex; flex-wrap:wrap; gap:10px; margin:34px 0 0; }
.th-jump a { display:inline-flex; align-items:center; gap:8px; padding:10px 15px; border:1px solid rgba(255,255,255,.14); border-radius:12px; background:rgba(255,255,255,.06); color:#e2e8f0; font-size:14px; font-weight:700; transition:background .15s ease, border-color .15s ease, transform .15s ease; }
.th-jump a i { color:var(--c); filter:brightness(1.6); }
.th-jump a small { padding:1px 7px; border-radius:100px; background:rgba(255,255,255,.12); font-size:11.5px; }
.th-jump a:hover { border-color:rgba(255,255,255,.35); background:rgba(255,255,255,.12); color:#fff; transform:translateY(-2px); }

/* ------------------------------------------------------------ body sections */
.th-body { padding:30px 0 10px; background:var(--tn-background); }
.th-section { padding:34px 0; scroll-margin-top:80px; }
.th-section-head { margin:0 0 22px; }
.th-section-head h2 { margin:8px 0 0; font-size:32px; font-weight:800; letter-spacing:-1px; }
.th-center { text-align:center; }
.th-kicker { display:inline-flex; align-items:center; gap:7px; color:var(--tn-primary); font-size:13px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; }
.th-kicker .fa-fire { color:#f97316; }
.th-kicker .fa-star { color:#f59e0b; }

/* popular : big cards */
.th-featured { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin:0; padding:0; list-style:none; }
.th-feature-card { position:relative; overflow:hidden; display:flex; flex-direction:column; height:100%; padding:22px; border:1px solid var(--tn-border); border-radius:20px; background:#fff; color:var(--tn-text); transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.th-feature-card::before { content:""; position:absolute; right:-40px; top:-40px; width:140px; height:140px; border-radius:50%; background:var(--c); opacity:.08; transition:transform .3s ease; }
.th-feature-card:hover { border-color:color-mix(in srgb, var(--c) 40%, #fff); color:var(--tn-text); transform:translateY(-4px); box-shadow:0 22px 44px color-mix(in srgb, var(--c) 18%, transparent); }
.th-feature-card:hover::before { transform:scale(1.4); }
.th-feature-icon { display:inline-flex; align-items:center; justify-content:center; width:54px; height:54px; margin:0 0 16px; border-radius:16px; background:linear-gradient(135deg,var(--c),color-mix(in srgb, var(--c) 55%, #000)); color:#fff; font-size:22px; box-shadow:0 12px 24px color-mix(in srgb, var(--c) 35%, transparent); }
.th-feature-name { font-size:18px; font-weight:800; letter-spacing:-.3px; }
.th-feature-copy { flex:1; margin:6px 0 16px; color:var(--tn-muted); font-size:14px; line-height:1.6; }
.th-feature-foot { display:flex; align-items:center; justify-content:space-between; }
.th-open { color:var(--c); font-size:14px; font-weight:800; }
.th-open i { transition:transform .2s ease; }
.th-feature-card:hover .th-open i { transform:translateX(4px); }

/* categories */
.th-cat-head { display:flex; align-items:center; gap:16px; margin:0 0 20px; }
.th-cat-icon { display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; width:52px; height:52px; border-radius:15px; background:color-mix(in srgb, var(--c) 12%, #fff); color:var(--c); font-size:21px; }
.th-cat-head h2 { margin:0; font-size:26px; font-weight:800; letter-spacing:-.6px; }
.th-cat-head p { margin:2px 0 0; color:var(--tn-muted); }
.th-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin:0; padding:0; list-style:none; }
.th-card { display:flex; align-items:center; gap:16px; height:100%; padding:18px; border:1px solid var(--tn-border); border-radius:16px; background:#fff; color:var(--tn-text); transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.th-card:hover { border-color:color-mix(in srgb, var(--c) 45%, #fff); color:var(--tn-text); transform:translateY(-3px); box-shadow:0 16px 34px rgba(15,23,42,.08); }
.th-card-icon { display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; width:50px; height:50px; border-radius:14px; background:linear-gradient(135deg,var(--c),color-mix(in srgb, var(--c) 60%, #000)); color:#fff; font-size:19px; box-shadow:0 10px 20px color-mix(in srgb, var(--c) 28%, transparent); }
.th-card-body { flex:1; min-width:0; }
.th-card-name { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:16px; font-weight:800; }
.th-card-copy { display:block; margin:3px 0 0; color:var(--tn-muted); font-size:14px; line-height:1.55; }
.th-card-arrow { color:#cbd5e1; transition:transform .18s ease, color .18s ease; }
.th-card:hover .th-card-arrow { color:var(--c); transform:translateX(4px); }
.th-tag { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:100px; font-size:11px; font-weight:800; letter-spacing:.2px; }
.th-tag-pdf { background:#fef2f2; color:#dc2626; }
.th-tag-hot { background:#fff7ed; color:#ea580c; }

.th-empty { margin:10px 0 30px; padding:26px; border:1px dashed #cbd5e1; border-radius:16px; color:var(--tn-muted); font-size:16px; text-align:center; }

/* why */
.th-features { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin:0; padding:0; list-style:none; }
.th-features li { padding:24px; border:1px solid var(--tn-border); border-radius:18px; background:#fff; }
.th-fi { display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; margin:0 0 14px; border-radius:14px; background:color-mix(in srgb, var(--c) 12%, #fff); color:var(--c); font-size:20px; }
.th-features h3, .th-steps h3 { margin:0 0 6px; font-size:17px; font-weight:800; }
.th-features p, .th-steps p { margin:0; color:var(--tn-muted); font-size:14.5px; line-height:1.65; }

/* steps */
.th-steps { position:relative; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:0; padding:0; list-style:none; counter-reset:none; }
.th-steps li { position:relative; padding:28px 24px 24px; border-radius:18px; background:linear-gradient(160deg,#fff,#f1f5ff); border:1px solid #dbe4ff; text-align:center; }
.th-step-num { position:absolute; left:50%; top:-16px; display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background:var(--tn-primary); color:#fff; font-size:14px; font-weight:800; transform:translateX(-50%); box-shadow:0 6px 14px rgba(37,99,235,.35); }
.th-steps li > i { display:block; margin:6px 0 12px; color:var(--tn-primary); font-size:26px; }

/* about + faq */
.th-about h2 { margin:0 0 14px; font-size:24px; font-weight:800; letter-spacing:-.5px; }
.th-about p { color:#334155; font-size:15.5px; line-height:1.8; }
.th-about .tk-faq details p { color:#334155; }

/* ------------------------------------------------------------ small screens */
@media (max-width:1199px) {
  .th-featured { grid-template-columns:repeat(2,1fr); }
  .th-features { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:767px) {
  .th-hero { padding:28px 0 26px; }
  .th-title { font-size:36px; letter-spacing:-1.2px; }
  .th-lead { font-size:16px; }
  .th-search { height:52px; }
  .th-search kbd { display:none; }
  .th-stats { gap:12px 22px; }
  .th-stats strong { font-size:22px; }
  .th-grid { grid-template-columns:1fr; }
  .th-steps { grid-template-columns:1fr; gap:28px; }
  .th-section-head h2 { font-size:26px; }
}
@media (max-width:575px) {
  .th-featured, .th-features { grid-template-columns:1fr; }
  .th-jump a { padding:8px 11px; font-size:13px; }
}
@media (prefers-reduced-motion:reduce) {
  .th-orb, .th-mock, .th-float { animation:none; }
}
