/* ==========================================================================
   TechnoSuffice — Theme CSS
   ========================================================================== */
:root {
    --bg-dark: #050b1f;
    --bg-dark-2: #0a1433;
    --primary: #2f6bff;
    --primary-600: #1f55e0;
    --cyan: #22d3ee;
    --violet: #8b5cf6;
    --green: #22c55e;
    --text: #0e1630;
    --muted: #5b6479;
    --muted-dark: #9aa6c7;
    --light: #f4f7fd;
    --border: #e3e8f3;
    --white: #fff;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px -12px rgba(16, 32, 84, .18);
    --shadow-lg: 0 30px 60px -20px rgba(16, 32, 84, .30);
    --grad: linear-gradient(135deg, var(--primary) 0%, var(--violet) 100%);
    --grad-text: linear-gradient(90deg, #5ea8ff 0%, var(--cyan) 45%, #b794ff 100%);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
    --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: inherit; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-600); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 9999;
    background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn-ts {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .78rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
    border: 1.5px solid transparent; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
    white-space: nowrap; cursor: pointer;
}
.btn-ts i { transition: transform .25s; font-size: .85em; }
.btn-ts:hover i.fa-arrow-right { transform: translateX(4px); }
.btn-lg-ts { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-ts-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 25px -8px rgba(47, 107, 255, .6); }
.btn-ts-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(47, 107, 255, .75); }
.btn-ts-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn-ts-ghost:hover { background: rgba(255,255,255,.14); color: #fff; transform: translateY(-2px); }
.btn-ts-outline { color: var(--text); border-color: var(--border); background: #fff; }
.btn-ts-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-ts-light { background: #fff; color: var(--primary-600); }
.btn-ts-light:hover { color: var(--primary-600); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
    display: flex; align-items: center; transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.is-scrolled {
    --header-h: 70px;
    background: rgba(5, 11, 31, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 30px -15px rgba(0,0,0,.5);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { width: 200px; height: auto; max-height: 52px; object-fit: contain; }
.main-nav { gap: .25rem; align-items: center; }
.main-nav > li { position: relative; }
.main-nav > li > a {
    display: inline-flex; align-items: center; gap: .35rem;
    color: rgba(255,255,255,.82); font-weight: 600; font-size: .94rem; padding: .55rem .8rem; border-radius: 10px;
}
.main-nav > li > a i { font-size: .6rem; opacity: .7; }
.main-nav > li > a:hover, .main-nav > li > a.is-active { color: #fff; background: rgba(255,255,255,.07); }
.drop {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; padding: .5rem;
    background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.drop a { display: flex; gap: .7rem; align-items: center; padding: .6rem .8rem; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .92rem; }
.drop a i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--light); color: var(--primary); font-size: .85rem; }
.drop a:hover { background: var(--light); color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); display: grid; place-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }

.mobile-menu { background: var(--bg-dark); color: #fff; max-width: 88vw; }
.mobile-menu .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu ul li a { display: block; padding: .85rem 0; color: #fff; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-menu-mail { margin-top: 1.2rem; color: var(--muted-dark); font-size: .9rem; }
.mobile-menu-mail a { color: var(--cyan); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; overflow: hidden;
    padding: calc(var(--header-h) + 40px) 0 90px;
    background: radial-gradient(1200px 700px at 75% 40%, #0f2366 0%, var(--bg-dark) 60%);
    color: #fff; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s ease; touch-action: pan-y; }
.hero-canvas.is-ready { opacity: 1; }
.hero-grid {
    position: absolute; inset: 0; z-index: -2; opacity: .35;
    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: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -2; }
.hero-glow-1 { width: 480px; height: 480px; background: rgba(47,107,255,.35); top: -120px; left: -120px; }
.hero-glow-2 { width: 420px; height: 420px; background: rgba(139,92,246,.30); bottom: -140px; right: 10%; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--cyan); padding: .45rem .9rem; border-radius: 999px;
    background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .25); margin-bottom: 1.2rem;
}
.eyebrow-dark { color: var(--primary); background: rgba(47,107,255,.07); border-color: rgba(47,107,255,.18); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }

.hero-title { font-size: clamp(2.4rem, 5.4vw, 4.3rem); margin-bottom: 1.3rem; color: #fff; }
.text-gradient { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: #c3cde8; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); max-width: 540px; }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.1; }
.hero-trust strong i { color: #fbbf24; font-size: .9rem; margin-left: 4px; vertical-align: middle; }
.hero-trust span { color: var(--muted-dark); font-size: .85rem; }

.hero-float-zone { position: relative; height: 520px; perspective: 1200px; transform-style: preserve-3d; }
.float-card {
    position: absolute; display: flex; align-items: center; gap: .85rem;
    padding: 1rem 1.2rem; border-radius: 16px; color: #fff;
    background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 25px 50px -20px rgba(0,0,0,.6);
    transition: transform .2s ease-out; will-change: transform;
    animation: floaty 7s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 1.15rem; line-height: 1.1; }
.float-card span { font-size: .8rem; color: var(--muted-dark); }
.fc-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); font-size: 1.1rem; }
.fc-icon-green { background: linear-gradient(135deg, #16a34a, #22d3ee); }
.fc-1 { top: 6%; right: 4%; }
.fc-2 { top: 38%; left: 0; animation-delay: -2.5s; }
.fc-3 { bottom: 6%; right: 12%; animation-delay: -4.5s; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.code-card { display: block; padding: .8rem 1rem 1rem; min-width: 290px; }
.code-dots { display: flex; align-items: center; gap: 6px; margin-bottom: .6rem; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.code-dots i:nth-child(2) { background: #febc2e; }
.code-dots i:nth-child(3) { background: #28c840; }
.code-dots span { margin-left: 8px; font-family: var(--mono); font-size: .75rem; color: var(--muted-dark); }
.code-card pre { margin: 0; font-family: var(--mono); font-size: .8rem; line-height: 1.8; color: #dbe4ff; white-space: pre; }
.c-k { color: var(--cyan); } .c-g { color: #4ade80; } .c-m { color: var(--muted-dark); } .c-c { color: #b794ff; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 4px; animation: scrollcue 1.8s infinite; }
@keyframes scrollcue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Tech marquee ---------- */
.tech-strip { background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,.06); padding: 22px 0; overflow: hidden; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.tech-item { display: inline-flex; align-items: center; gap: .6rem; color: #8f9bbd; font-weight: 700; font-size: 1.05rem; white-space: nowrap; transition: color .2s; }
.tech-item i { font-size: 1.5rem; }
.tech-item:hover { color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section-ts { padding: 110px 0; position: relative; }
.section-light { background: var(--light); }
.section-dark { background: radial-gradient(900px 500px at 10% 0%, #13266b 0%, var(--bg-dark) 60%); color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 3.5rem; }
.section-head.d-md-flex { max-width: none; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 1rem; }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 0 auto; }
.section-dark .section-sub { color: #b8c3e3; }

/* ---------- Services ---------- */
.service-card {
    height: 100%; padding: 2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--border);
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    transition: box-shadow .3s, border-color .3s, transform .2s ease-out; transform-style: preserve-3d;
}
.service-card::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; z-index: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(47,107,255,.10), transparent 45%);
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover { border-color: rgba(47,107,255,.35); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: #fff;
    background: var(--grad); box-shadow: 0 12px 24px -10px rgba(47,107,255,.7); margin-bottom: 1.4rem; transform: translateZ(30px);
}
.service-title { font-size: 1.25rem; margin-bottom: .7rem; }
.service-title a { color: var(--text); }
.service-title a:hover { color: var(--primary); }
.service-card p { color: var(--muted); margin-bottom: 1.2rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; }
.service-tags li { font-size: .75rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: var(--light); color: #3d4a6b; }
.service-link { margin-top: auto; font-weight: 700; display: inline-flex; align-items: center; gap: .45rem; }
.service-link i { transition: transform .25s; font-size: .8em; }
.service-card:hover .service-link i { transform: translateX(5px); }

/* ---------- About ---------- */
.about-visual { position: relative; padding: 0 30px 40px 0; transform-style: preserve-3d; transition: transform .2s ease-out; }
.dash { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; }
.dash-top { display: flex; align-items: center; gap: 6px; padding: 14px 18px; background: #f8faff; border-bottom: 1px solid var(--border); }
.dash-top i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.dash-top i:nth-child(2) { background: #febc2e; } .dash-top i:nth-child(3) { background: #28c840; }
.dash-top span { margin-left: 10px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.dash-body { padding: 22px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.dash-kpis div { padding: 12px; border-radius: 12px; background: var(--light); }
.dash-kpis span { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.dash-kpis strong { font-size: 1.2rem; }
.dash-chart { height: 140px; display: flex; align-items: flex-end; gap: 10px; padding: 0 4px 12px; border-bottom: 1px dashed var(--border); margin-bottom: 16px; }
.dash-chart span { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--primary), rgba(139,92,246,.55)); transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
.dash-chart span:nth-child(odd) { background: linear-gradient(180deg, var(--cyan), rgba(47,107,255,.45)); }
@keyframes grow { from { transform: scaleY(0); } }
.dash-rows div { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: .9rem; font-weight: 600; border-bottom: 1px solid #f0f3f9; }
.dash-rows em { margin-left: auto; font-style: normal; font-size: .75rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-g { background: var(--green); } .dot-b { background: var(--primary); } .dot-v { background: var(--violet); }
.about-badge {
    position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: .8rem;
    padding: 1.1rem 1.4rem; border-radius: 18px; background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); transform: translateZ(50px);
}
.about-badge strong { font-size: 2.6rem; line-height: 1; }
.about-badge span { font-weight: 600; line-height: 1.3; font-size: .9rem; }
.check-list { margin: 1.6rem 0 2rem; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: center; font-weight: 600; }
.check-list i { color: var(--primary); font-size: 1.1rem; }
.about-author { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.about-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow); }
.about-author strong { display: block; }
.about-author span { color: var(--primary); font-size: .88rem; font-weight: 600; }
.about-mail { margin-left: auto; font-weight: 700; color: var(--text); padding: .6rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .9rem; }

/* ---------- Counters ---------- */
.counters { background: var(--grad); padding: 60px 0; color: #fff; position: relative; overflow: hidden; }
.counters::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; pointer-events: none; }
.counter-item { text-align: center; position: relative; z-index: 1; }
.counter-item i { font-size: 1.6rem; opacity: .85; margin-bottom: .6rem; }
.counter-num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; }
.counter-item p { margin: .3rem 0 0; color: rgba(255,255,255,.85); font-weight: 600; }

/* ---------- Process ---------- */
.process-step { height: 100%; padding: 2rem 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); position: relative; transition: .3s; }
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.process-num { position: absolute; top: 1.2rem; right: 1.4rem; font-size: 2.6rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #d5dcee; }
.process-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--primary); background: rgba(47,107,255,.09); font-size: 1.3rem; margin-bottom: 1.2rem; }
.process-step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.process-step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Why / Skills ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.why-grid > div { padding: 1.2rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.why-grid i { color: var(--cyan); font-size: 1.3rem; margin-bottom: .6rem; }
.why-grid h3 { font-size: 1rem; margin-bottom: .25rem; color: #fff; }
.why-grid p { margin: 0; font-size: .88rem; color: #aab5d6; line-height: 1.55; }
.skills-card { padding: 2.4rem; border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.skills-title { font-size: 1.3rem; margin-bottom: 1.6rem; color: #fff; }
.skill + .skill { margin-top: 1.4rem; }
.skill-head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: .55rem; font-size: .95rem; }
.skill-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.skill-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--primary), var(--violet)); transition: width 1.6s cubic-bezier(.2,.8,.2,1); }

/* ---------- Case studies ---------- */
.case-card { height: 100%; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border); transition: box-shadow .3s, transform .2s ease-out; transform-style: preserve-3d; }
.case-card:hover { box-shadow: var(--shadow-lg); }
.case-visual { height: 220px; position: relative; display: grid; place-items: center; overflow: hidden; color: rgba(255,255,255,.95); font-size: 4rem; }
.case-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 28px 28px; }
.case-visual i { position: relative; transition: transform .5s; filter: drop-shadow(0 12px 20px rgba(0,0,0,.25)); }
.case-card:hover .case-visual i { transform: scale(1.12) rotate(-6deg); }
.case-a { background: linear-gradient(135deg, #1f55e0, #22d3ee); }
.case-b { background: linear-gradient(135deg, #6d28d9, #ec4899); }
.case-c { background: linear-gradient(135deg, #0f766e, #84cc16); }
.case-metrics { position: absolute; left: 16px; bottom: 16px; display: flex; gap: .5rem; }
.case-metrics span { font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.case-body { padding: 1.6rem 1.8rem 2rem; }
.case-cat { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.case-body h3 { font-size: 1.3rem; margin: .4rem 0 .6rem; }
.case-body p { color: var(--muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testi-swiper { padding-bottom: 50px !important; }
.testi-card { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); padding: 10px; }
.testi-card img { border-radius: 12px; width: 100%; }
.swiper-pagination-bullet { background: #b5c0da; opacity: 1; }
.swiper-pagination-bullet-active { background: var(--primary); width: 24px; border-radius: 6px; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-img { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; aspect-ratio: 5 / 6; background: var(--light); }
.team-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.team-card:hover .team-img img { transform: scale(1.06); }
.team-social { position: absolute; left: 50%; bottom: 16px; translate: -50% 20px; opacity: 0; display: flex; gap: .45rem; transition: .35s; }
.team-card:hover .team-social, .team-card:focus-within .team-social { translate: -50% 0; opacity: 1; }
.team-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--text); box-shadow: var(--shadow); }
.team-social a:hover { background: var(--primary); color: #fff; }
.team-card h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.team-card span { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-intro { position: sticky; top: calc(var(--header-h) + 30px); }
.faq-list { display: grid; gap: .9rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: rgba(47,107,255,.35); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.05rem; margin: 0; font-weight: 700; }
.faq-item summary i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--light); color: var(--primary); font-size: .8rem; transition: transform .3s, background .3s, color .3s; }
.faq-item[open] summary i { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-item p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--muted); }

/* ---------- Blog ---------- */
.blog-card { height: 100%; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border); transition: .3s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--light); }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.blog-card:hover .blog-img img { transform: scale(1.06); }
.blog-cat { position: absolute; left: 14px; top: 14px; font-size: .75rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px; background: #fff; color: var(--primary); }
.blog-body { padding: 1.5rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .83rem; color: var(--muted); margin-bottom: .7rem; }
.blog-meta i { color: var(--primary); margin-right: 3px; }
.blog-body h3 { font-size: 1.18rem; line-height: 1.4; margin-bottom: 1.2rem; }
.blog-body h3 a { color: var(--text); }
.blog-body h3 a:hover { color: var(--primary); }
.blog-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .9rem; }
.blog-more { font-weight: 700; }
.blog-catlink { color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { padding: 0 0 110px; }
.cta-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
    padding: 3.5rem; border-radius: 28px; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(600px 300px at 90% 0%, rgba(34,211,238,.35), transparent 60%), var(--grad);
    box-shadow: 0 30px 60px -25px rgba(47,107,255,.6);
}
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .5rem; max-width: 620px; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.85); font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #aab5d6; padding: 90px 0 0; }
.footer-brand img { width: 190px; margin-bottom: 1.2rem; }
.footer-about { max-width: 340px; font-size: .95rem; }
.footer-social { display: flex; gap: .55rem; margin-top: 1.4rem; }
.footer-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.08); transition: .25s; }
.footer-social a:hover { background: var(--grad); transform: translateY(-3px); }
.footer-title { font-size: 1.05rem; color: #fff; margin-bottom: 1.3rem; }
.footer-links li + li { margin-top: .65rem; }
.footer-links a { color: #aab5d6; font-size: .95rem; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: .75rem; align-items: center; margin-bottom: .8rem; font-size: .95rem; }
.footer-contact i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(47,107,255,.15); color: var(--cyan); }
.footer-contact a { color: #fff; word-break: break-all; }
.footer-bottom { margin-top: 70px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 1.4rem; }
.footer-bottom a { color: #aab5d6; }
.footer-bottom a:hover { color: #fff; }

.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; border: 0; color: #fff; background: var(--grad); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    :root { --header-h: 72px; }
    .brand img { width: 160px; }
    .section-ts { padding: 80px 0; }
    .hero { text-align: left; }
    .hero-canvas.is-ready { opacity: .55; }
    .faq-intro { position: static; }
    .about-mail { margin-left: 0; }
}
@media (max-width: 575.98px) {
    .eyebrow { font-size: .7rem; letter-spacing: .08em; }
    .hero-trust { gap: 1.4rem; }
    .hero-trust strong { font-size: 1.3rem; }
    .hero-actions .btn-ts { width: 100%; }
    .why-grid { grid-template-columns: 1fr; }
    .cta-inner { padding: 2.2rem 1.5rem; }
    .cta-actions, .cta-actions .btn-ts { width: 100%; }
    .service-card { padding: 1.6rem; }
    .footer-bottom { flex-direction: column; }
    .dash-kpis strong { font-size: 1rem; }
    .about-visual { padding: 0 0 50px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- WhatsApp button (Admin → Settings → Contact) ---------- */
.whatsapp-float { position: fixed; left: 20px; bottom: 20px; z-index: 900; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 1.7rem; box-shadow: 0 12px 28px -8px rgba(37,211,102,.7); transition: transform .25s; }
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* ==========================================================================
   Blog pages (Step 2)
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; color: #fff; padding: calc(var(--header-h) + 60px) 0 70px; background: radial-gradient(900px 500px at 80% 0%, #1b3a9e 0%, transparent 60%), radial-gradient(700px 400px at 0% 100%, #3b1f8f 0%, transparent 60%), var(--bg-dark); }
.page-hero-grid { position: absolute; inset: 0; opacity: .35; 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: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%); }
.page-hero-title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 .8rem; color: #fff; }
.page-hero-sub { color: #c3cde8; font-size: 1.08rem; max-width: 640px; margin-bottom: 1.8rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .88rem; }
.crumbs li { color: #9aa6c7; display: flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { color: #c3cde8; }
.crumbs a:hover { color: #fff; }
.hero-search { display: flex; align-items: center; max-width: 560px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 6px 6px 20px; backdrop-filter: blur(10px); }
.hero-search i { color: #9aa6c7; }
.hero-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; padding: .6rem .8rem; font-size: 1rem; }
.hero-search input::placeholder { color: #9aa6c7; }
.hero-search button { border: 0; border-radius: 999px; padding: .65rem 1.3rem; font-weight: 700; color: #fff; background: var(--grad); }

.cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.cat-chips a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .9rem; background: #fff; transition: .2s; }
.cat-chips a span { font-size: .72rem; padding: 1px 7px; border-radius: 99px; background: var(--light); color: var(--muted); }
.cat-chips a:hover { border-color: var(--primary); color: var(--primary); }
.cat-chips a.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.cat-chips a.is-active span { background: rgba(255,255,255,.25); color: #fff; }

.featured-post { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 2.5rem; }
.featured-img { display: block; min-height: 340px; background: var(--light); overflow: hidden; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.featured-post:hover .featured-img img { transform: scale(1.04); }
.featured-body { padding: 2.6rem; display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1rem; }
.featured-body h2 a { color: var(--text); }
.featured-body h2 a:hover { color: var(--primary); }
.featured-body p { color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; background: var(--light); color: var(--muted); }
.tag-blue { background: rgba(47,107,255,.1); color: var(--primary); }
.tag-amber { background: #fff4d6; color: #b45309; }
.tag-glass { background: rgba(34,211,238,.12); color: var(--cyan); border: 1px solid rgba(34,211,238,.3); }
.tag-glass:hover { color: #fff; }
.blog-img-placeholder { width: 100%; height: 100%; min-height: 180px; display: grid; place-items: center; font-size: 2.6rem; color: rgba(255,255,255,.9); background: linear-gradient(135deg, #1f55e0, #8b5cf6); }
.blog-excerpt { color: var(--muted); font-size: .93rem; margin: -0.6rem 0 1.2rem; }
.empty-blog { text-align: center; padding: 80px 20px; }
.empty-blog i { font-size: 3rem; color: #c3cbe0; margin-bottom: 1rem; }
.empty-blog p { color: var(--muted); }
.blog-pagination { margin-top: 3rem; display: flex; justify-content: center; }
.blog-pagination .pagination { gap: 6px; flex-wrap: wrap; justify-content: center; }
.blog-pagination .page-link { border-radius: 10px !important; border: 1px solid var(--border); color: var(--text); font-weight: 700; min-width: 42px; text-align: center; }
.blog-pagination .page-item.active .page-link { background: var(--grad); border-color: transparent; color: #fff; }
.blog-pagination nav > div:first-child { display: none; }

/* Single post */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--primary), var(--violet)); }
.post-hero { padding-bottom: 150px; text-align: center; }
.post-hero .crumbs { justify-content: center; }
.post-title { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 900px; margin: 0 auto 1.4rem; color: #fff; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.3rem; color: #c3cde8; font-size: .92rem; }
.post-meta i { margin-right: 4px; color: var(--cyan); }
.post-author { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; color: #fff; }
.post-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.3); }
.post-section { padding: 0 0 90px; }
.post-cover { margin: -110px auto 3.5rem; max-width: 1040px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; z-index: 2; background: var(--light); }
.post-cover img { width: 100%; }
.post-section .row { padding-top: 3.5rem; }
.post-cover + .row { padding-top: 0; }

.post-content { font-size: 1.1rem; line-height: 1.85; color: #28324d; overflow-wrap: break-word; }
.post-content > *:first-child { margin-top: 0; }
.post-content h2 { font-size: 1.85rem; margin: 2.4rem 0 1rem; color: var(--text); scroll-margin-top: calc(var(--header-h) + 20px); }
.post-content h3 { font-size: 1.4rem; margin: 2rem 0 .8rem; color: var(--text); scroll-margin-top: calc(var(--header-h) + 20px); }
.post-content h4 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; color: var(--text); }
.post-content p { margin-bottom: 1.4rem; }
.post-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-content a:hover { text-decoration-thickness: 2px; }
.post-content ul, .post-content ol { list-style: revert; padding-left: 1.6rem; margin-bottom: 1.4rem; }
.post-content li { margin-bottom: .5rem; }
.post-content li::marker { color: var(--primary); font-weight: 700; }
.post-content blockquote { margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--primary); background: var(--light); border-radius: 0 14px 14px 0; font-size: 1.15rem; font-style: italic; color: var(--text); }
.post-content blockquote p:last-child { margin: 0; }
.post-content img { border-radius: 14px; height: auto; }
.post-content figure { margin: 2rem 0; }
.post-content figure.image { display: table; margin-left: auto; margin-right: auto; }
.post-content figure.image img { display: block; }
.post-content figure.image-style-side, .post-content figure.image-style-align-right { float: right; margin: .3rem 0 1rem 1.6rem; max-width: 50%; }
.post-content figure.image-style-align-left { float: left; margin: .3rem 1.6rem 1rem 0; max-width: 50%; }
.post-content figure.image_resized { max-width: 100%; }
.post-content figure.image_resized img { width: 100%; }
.post-content figcaption { display: table-caption; caption-side: bottom; text-align: center; font-size: .88rem; color: var(--muted); padding-top: .6rem; }
.post-content .table-wrap { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--border); border-radius: 14px; }
.post-content figure.table { margin: 0; }
.post-content table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.post-content th, .post-content td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.post-content th { background: var(--light); font-weight: 700; }
.post-content pre { background: #0b1230; color: #dbe4ff; padding: 1.2rem 1.4rem; border-radius: 14px; overflow-x: auto; font-size: .9rem; line-height: 1.6; margin: 1.8rem 0; }
.post-content code { font-family: var(--mono); font-size: .9em; }
.post-content :not(pre) > code { background: var(--light); color: #c026d3; padding: .15em .4em; border-radius: 6px; }
.post-content hr { margin: 2.6rem 0; border-color: var(--border); opacity: 1; }
.post-content .media, .post-content figure.media { margin: 2rem 0; }
.post-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.post-content .text-tiny { font-size: .7em; } .post-content .text-small { font-size: .85em; } .post-content .text-big { font-size: 1.4em; } .post-content .text-huge { font-size: 1.8em; }
.post-content mark { padding: .05em .25em; border-radius: 4px; }
.post-content .todo-list { list-style: none; padding-left: 0; }
.post-content::after { content: ""; display: table; clear: both; }

.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2.5rem 0 0; color: var(--muted); }
.post-tags span { font-size: .85rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; background: var(--light); color: #3d4a6b; }
.share-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding: 1.3rem 1.5rem; border-radius: 16px; border: 1px solid var(--border); }
.share-links { display: flex; gap: .5rem; }
.share-links a, .share-links button { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; border: 0; transition: transform .2s; }
.share-links a:hover, .share-links button:hover { transform: translateY(-3px); color: #fff; }
.s-fb { background: #1877f2; } .s-x { background: #0f1419; } .s-in { background: #0a66c2; } .s-wa { background: #25d366; } .s-copy { background: var(--primary); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.post-nav a { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem 1.4rem; border-radius: 16px; border: 1px solid var(--border); color: var(--text); transition: .25s; }
.post-nav a:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.post-nav small { color: var(--primary); font-weight: 700; font-size: .8rem; }
.post-nav span { font-weight: 700; line-height: 1.4; }
.post-nav .next { text-align: right; grid-column: 2; }

.post-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.4rem; }
.side-card { padding: 1.5rem; border-radius: 18px; border: 1px solid var(--border); background: #fff; }
.side-title { font-size: 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.side-title i { color: var(--primary); }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; max-height: 50vh; overflow-y: auto; }
.toc li a { display: block; padding: .4rem 0 .4rem .9rem; color: var(--muted); font-size: .92rem; border-left: 2px solid var(--border); line-height: 1.45; }
.toc li.toc-l3 a { padding-left: 1.8rem; font-size: .87rem; }
.toc li a:hover, .toc li a.is-current { color: var(--primary); border-left-color: var(--primary); }
.side-cta { color: #fff; border: 0; background: radial-gradient(300px 200px at 100% 0%, rgba(34,211,238,.4), transparent 60%), var(--grad); }
.side-cta h2 { font-size: 1.3rem; color: #fff; }
.side-cta p { color: rgba(255,255,255,.85); font-size: .95rem; }
.recent-list li + li { margin-top: .9rem; }
.recent-list a { display: flex; gap: .8rem; align-items: center; color: var(--text); }
.recent-list a:hover strong { color: var(--primary); }
.recent-thumb { width: 72px; height: 54px; flex: none; border-radius: 10px; overflow: hidden; background: var(--light); display: grid; place-items: center; color: #b5bdd3; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-list strong { display: block; font-size: .9rem; line-height: 1.35; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-list small { color: var(--muted); font-size: .78rem; }
.side-cats li a { display: flex; justify-content: space-between; padding: .55rem 0; color: var(--text); font-weight: 600; border-bottom: 1px dashed var(--border); font-size: .93rem; }
.side-cats li:last-child a { border-bottom: 0; }
.side-cats li a span { font-size: .75rem; padding: 2px 9px; border-radius: 99px; background: var(--light); color: var(--muted); }
.side-cats li a:hover { color: var(--primary); }

@media (max-width: 991.98px) {
    .featured-post { grid-template-columns: 1fr; }
    .featured-img { min-height: 240px; aspect-ratio: 16 / 9; }
    .featured-body { padding: 1.8rem; }
    .post-sidebar { position: static; }
    .post-content figure.image-style-side, .post-content figure.image-style-align-right, .post-content figure.image-style-align-left { float: none; max-width: 100%; margin: 1.5rem auto; }
}
@media (max-width: 575.98px) {
    .post-hero { padding-bottom: 110px; }
    .post-cover { margin-top: -80px; border-radius: 16px; }
    .post-content { font-size: 1.03rem; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav .next { grid-column: 1; }
    .hero-search button { padding: .6rem 1rem; }
}
.featured-body .btn-ts { align-self: flex-start; }

/* ==========================================================================
   Pages: about, services, testimonials, contact, quote (Step 3)
   ========================================================================== */
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.about-stat { padding: 2rem 1.6rem; border-radius: 20px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .3rem; }
.about-stat:nth-child(2), .about-stat:nth-child(3) { background: var(--grad); color: #fff; border: 0; }
.about-stat i { font-size: 1.4rem; color: var(--primary); margin-bottom: .6rem; }
.about-stat:nth-child(2) i, .about-stat:nth-child(3) i { color: #fff; }
.about-stat strong { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.about-stat span { color: var(--muted); font-weight: 600; }
.about-stat:nth-child(2) span, .about-stat:nth-child(3) span { color: rgba(255,255,255,.85); }
.value-card { height: 100%; padding: 2.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); transition: .3s; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.value-card p { color: var(--muted); margin: 0; }
.section-dark .why-grid { grid-template-columns: repeat(2, 1fr); }

/* Services page */
.service-jump { position: relative; z-index: 3; margin-top: -32px; }
.service-jump-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: .8rem; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.service-jump-nav a { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 12px; color: var(--text); font-weight: 700; font-size: .9rem; }
.service-jump-nav a i { color: var(--primary); }
.service-jump-nav a:hover { background: var(--light); color: var(--primary); }
.service-detail { scroll-margin-top: calc(var(--header-h) + 10px); }
.feature-panel { padding: 2.2rem; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .2s ease-out; }
.section-light .feature-panel { background: #fff; }
.feature-panel h3 { font-size: 1.15rem; margin-bottom: 1.2rem; }
.feature-panel ul { display: grid; gap: .8rem; }
.feature-panel li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.feature-panel li i { color: var(--primary); margin-top: 5px; }
.why-step { position: relative; height: 100%; padding: 2rem 1.6rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.why-step span { position: absolute; top: 1rem; right: 1.2rem; font-size: 2.4rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.25); }
.why-step i { font-size: 1.5rem; color: var(--cyan); margin-bottom: 1rem; }
.why-step h3 { font-size: 1.1rem; color: #fff; }
.why-step p { color: #aab5d6; margin: 0; font-size: .94rem; }

/* Testimonials */
.testi-quote { margin: 0; height: 100%; display: flex; flex-direction: column; gap: 1.1rem; padding: 1.8rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.testi-stars { color: #fbbf24; display: flex; gap: 3px; font-size: .95rem; }
.testi-quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.7; color: #28324d; flex: 1; }
.testi-quote figcaption { display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.testi-quote figcaption img, .testi-initials { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.testi-initials { display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; }
.testi-quote strong { display: block; line-height: 1.2; }
.testi-quote small { color: var(--muted); }
.testi-shot-inline img { border-radius: 12px; border: 1px solid var(--border); }
.testi-masonry { columns: 3 320px; column-gap: 1.5rem; }
.testi-masonry .testi-quote { break-inside: avoid; margin-bottom: 1.5rem; height: auto; }
.rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; padding: 2rem 2.4rem; margin-bottom: 3rem; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.rating-big { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; padding-right: 2rem; border-right: 1px solid var(--border); }
.rating-big strong { font-size: 3.4rem; font-weight: 800; line-height: 1; }
.rating-big span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.rating-meta { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.rating-meta strong { display: block; font-size: 1.8rem; font-weight: 800; }
.rating-meta span { color: var(--muted); font-weight: 600; }
.shot-card { display: block; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #fff; padding: 10px; box-shadow: var(--shadow); }
.shot-card img { border-radius: 12px; width: 100%; }
.shot-card span { position: absolute; left: 20px; bottom: 20px; padding: .4rem .9rem; border-radius: 99px; background: rgba(5,11,31,.75); color: #fff; font-weight: 700; font-size: .85rem; opacity: 0; transition: .25s; }
.shot-card:hover span { opacity: 1; }

/* Contact */
.contact-cards-wrap { position: relative; z-index: 3; margin-top: -40px; }
.contact-card { height: 100%; display: flex; flex-direction: column; gap: .2rem; padding: 1.6rem; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); color: var(--text); transition: .25s; }
a.contact-card:hover { transform: translateY(-5px); color: var(--text); border-color: rgba(47,107,255,.4); }
.contact-card-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.25rem; margin-bottom: .8rem; }
.contact-card small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.contact-card strong { font-size: 1rem; word-break: break-word; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.2); }

/* Forms */
.form-card { padding: 2.4rem; border-radius: 24px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-card-title { font-size: 1.6rem; margin-bottom: .4rem; }
.ts-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .45rem; color: var(--text); }
.ts-form input[type=text], .ts-form input:not([type]), .ts-form input[type=email], .ts-form input[type=tel], .ts-form textarea, .ts-form select {
    width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid #dbe1ee; background: #fbfcff; font: inherit; font-size: .98rem; color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s; }
.ts-form input:focus, .ts-form textarea:focus, .ts-form select:focus { outline: 0; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
.ts-form .is-invalid { border-color: #dc2626 !important; background: #fffafa; }
.ts-form textarea { resize: vertical; min-height: 140px; }
.req { color: #dc2626; }
.optional { color: var(--muted); font-weight: 500; font-size: .82rem; }
.field-error { display: block; color: #dc2626; font-weight: 600; margin-top: .35rem; font-size: .83rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: flex; gap: .8rem; padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1.5rem; }
.form-alert-error { background: #fdeeee; color: #991b1b; border: 1px solid #f7caca; }
.form-alert i { margin-top: 3px; }
.form-alert ul { margin: .3rem 0 0; padding-left: 1.1rem; list-style: disc; font-size: .92rem; }
.form-success { text-align: center; padding: 2.5rem 1rem; }
.form-success-icon { width: 84px; height: 84px; margin: 0 auto 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; color: #fff; background: linear-gradient(135deg, #16a34a, #22d3ee); box-shadow: 0 16px 36px -12px rgba(22,163,74,.6); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.form-success h2 { font-size: 1.8rem; }
.form-success p { color: var(--muted); max-width: 460px; margin: 0 auto 1.6rem; }
.form-step { border: 0; padding: 0 0 1.8rem; margin: 0 0 1.8rem; border-bottom: 1px dashed var(--border); }
.form-step legend { display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; font-weight: 800; margin-bottom: 1.1rem; float: none; width: auto; }
.form-step legend > span:first-child { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: .85rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; }
.choice-card { margin: 0 !important; cursor: pointer; }
.choice-card input, .pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { display: flex; align-items: center; gap: .6rem; height: 100%; padding: .95rem 1rem; border-radius: 14px; border: 1.5px solid #dbe1ee; background: #fbfcff; font-weight: 700; font-size: .93rem; transition: .2s; }
.choice-card span i { color: #cbd3e5; transition: color .2s; }
.choice-card:hover span { border-color: #9db8ff; }
.choice-card input:checked + span { border-color: var(--primary); background: rgba(47,107,255,.06); color: var(--primary); }
.choice-card input:checked + span i { color: var(--primary); }
.choice-card input:focus-visible + span, .pill input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.small-label { font-size: .85rem !important; color: var(--muted) !important; }
.pill-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { margin: 0 !important; cursor: pointer; }
.pill span { display: inline-block; padding: .55rem 1rem; border-radius: 99px; border: 1.5px solid #dbe1ee; font-weight: 600; font-size: .88rem; transition: .2s; background: #fff; }
.pill:hover span { border-color: #9db8ff; }
.pill input:checked + span { background: var(--grad); color: #fff; border-color: transparent; }
.file-drop { display: flex !important; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-radius: 14px; border: 1.5px dashed #c9d2e6; background: #fbfcff; cursor: pointer; font-weight: 600 !important; transition: .2s; }
.file-drop:hover { border-color: var(--primary); }
.file-drop i { font-size: 1.2rem; color: var(--primary); }
.file-drop small { display: block; color: var(--muted); font-weight: 500; }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.next-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 1rem; }
.next-steps li { counter-increment: s; position: relative; padding-left: 2.6rem; }
.next-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--primary); background: rgba(47,107,255,.1); }
.next-steps strong { display: block; }
.next-steps span { color: var(--muted); font-size: .9rem; }
.trust-card { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; background: var(--light); border: 0; }
.trust-card strong { display: block; font-size: 1.4rem; font-weight: 800; }
.trust-card strong i { font-size: .8rem; color: #fbbf24; margin-left: 2px; }
.trust-card span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.btn-ts.is-loading { pointer-events: none; opacity: .8; }

@media (max-width: 991.98px) {
    .rating-big { border-right: 0; padding-right: 0; }
}
@media (max-width: 575.98px) {
    .form-card { padding: 1.5rem; border-radius: 18px; }
    .about-stats { gap: .8rem; }
    .about-stat { padding: 1.4rem 1.1rem; }
    .about-stat strong { font-size: 1.9rem; }
    .section-dark .why-grid { grid-template-columns: 1fr; }
    .rating-summary { padding: 1.5rem; }
    .service-jump-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .service-jump-nav a { white-space: nowrap; }
}
@media (max-width: 575.98px) { .btn-ts { white-space: normal; text-align: center; } }
/* Placeholder behind images (shown if an image file is missing) */
.blog-img, .featured-img, .post-cover { background: linear-gradient(135deg, #1f55e0, #8b5cf6); }
.post-cover:not(:has(img)) { min-height: 220px; }

/* ==========================================================================
   Facebook Video Downloader
   ========================================================================== */
.tool-hero { text-align: center; padding-bottom: 90px; }
.tool-hero .crumbs { justify-content: center; }
.fbd-form { display: flex; gap: .7rem; max-width: 760px; margin: 0 auto; }
.fbd-input { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; padding: 6px 6px 6px 20px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.fbd-input > i { color: var(--muted); }
.fbd-input input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.02rem; padding: .85rem 0; color: var(--text); background: transparent; }
.fbd-paste { border: 0; border-radius: 12px; padding: .7rem 1rem; background: var(--light); color: var(--text); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.fbd-paste:hover { background: #e7ecf8; }
.fbd-submit { border-radius: 16px; padding-left: 1.8rem; padding-right: 1.8rem; }
.fbd-submit:disabled { opacity: .85; cursor: wait; }
.fbd-note { margin: 1rem 0 0; color: #aab5d6; font-size: .9rem; }
.fbd-note i { color: var(--cyan); margin-right: 4px; }
.fbd-error { max-width: 760px; margin: 1.2rem auto 0; padding: .9rem 1.2rem; border-radius: 14px; background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.45); color: #fecaca; font-weight: 600; text-align: left; }
.fbd-result { display: flex; gap: 1.4rem; max-width: 760px; margin: 1.6rem auto 0; padding: 1.2rem; border-radius: 20px; background: #fff; color: var(--text); text-align: left; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); animation: pop .4s ease; }
.fbd-result[hidden], .fbd-error[hidden] { display: none; }
.fbd-thumb { width: 210px; flex: none; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #1877f2, #8b5cf6); display: grid; place-items: center; }
.fbd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fbd-thumb i { font-size: 2.6rem; color: rgba(255,255,255,.9); }
.fbd-info { flex: 1; min-width: 0; }
.fbd-info h2 { font-size: 1.1rem; line-height: 1.4; margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fbd-links { display: grid; gap: .6rem; }
.fbd-link-row { display: flex; align-items: center; gap: .7rem; padding: .5rem .5rem .5rem .7rem; border-radius: 14px; border: 1px solid var(--border); }
.fbd-q { font-size: .75rem; font-weight: 800; padding: .3rem .6rem; border-radius: 8px; color: #fff; }
.fbd-q-hd { background: var(--grad); } .fbd-q-sd { background: #64748b; }
.fbd-label { flex: 1; font-weight: 600; font-size: .92rem; }
.fbd-link-row .btn-ts { padding: .6rem 1.1rem; }
.fbd-open { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--light); color: var(--text); }
.fbd-tip { margin: .9rem 0 0; font-size: .82rem; color: var(--muted); }
.fbd-tip i { color: #f59e0b; }
.fbd-disclaimer { margin: 0; padding: 1rem 1.3rem; border-radius: 14px; background: #fff; border: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
@media (max-width: 767.98px) {
    .fbd-form { flex-direction: column; }
    .fbd-paste span { display: none; }
    .fbd-result { flex-direction: column; }
    .fbd-thumb { width: 100%; }
}

/* ==========================================================================
   Free tools (hub + shared tool UI)
   ========================================================================== */
.tool-hero-sm { padding-bottom: 130px; }
.tool-app-wrap { position: relative; z-index: 3; margin-top: -100px; }
.tool-app { padding: 2rem; border-radius: 24px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.tool-privacy { text-align: center; color: var(--muted); font-size: .88rem; margin: 1rem 0 0; }
.tool-privacy i { color: var(--green); margin-right: 4px; }
.tool-card { height: 100%; display: flex; flex-direction: column; gap: .5rem; padding: 1.8rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); color: var(--text); transition: .3s; }
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(47,107,255,.35); color: var(--text); }
.tool-card-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--c, var(--primary)); margin-bottom: .6rem; box-shadow: 0 12px 24px -12px var(--c, var(--primary)); }
.tool-card h3 { font-size: 1.2rem; margin: 0; }
.tool-card p { color: var(--muted); margin: 0; flex: 1; }
.tool-card-go { margin-top: .6rem; font-weight: 700; color: var(--primary); }
.tool-card-go i { transition: transform .25s; }
.tool-card:hover .tool-card-go i { transform: translateX(5px); }

.dropzone { height: 100%; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: 2rem; border: 2px dashed #c9d2e6; border-radius: 18px; background: #fafbfe; text-align: center; cursor: pointer; transition: .2s; margin: 0; }
.dropzone:hover, .dropzone.is-over { border-color: var(--primary); background: rgba(47,107,255,.05); }
.dropzone > i { font-size: 2.6rem; color: var(--primary); margin-bottom: .4rem; }
.dropzone strong { font-size: 1.1rem; }
.dropzone u { color: var(--primary); }
.dropzone small { color: var(--muted); }
.ic-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; }
.tool-options { display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; border-radius: 18px; background: var(--light); }
.opt label { display: flex; justify-content: space-between; font-weight: 700; font-size: .88rem; margin-bottom: .4rem; }
.opt label.check { justify-content: flex-start; gap: .5rem; align-items: center; margin-top: 1.9rem; font-weight: 600; }
.opt input:not([type=range]):not([type=checkbox]):not([type=color]), .opt select, .opt textarea { width: 100%; padding: .7rem .85rem; border-radius: 10px; border: 1.5px solid #dbe1ee; background: #fff; font: inherit; font-size: .95rem; color: var(--text); }
.opt input:focus, .opt select:focus, .opt textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
.opt input[type=range] { width: 100%; accent-color: var(--primary); }
.opt input[type=color] { width: 100%; height: 44px; border: 1.5px solid #dbe1ee; border-radius: 10px; padding: 4px; background: #fff; cursor: pointer; }
.opt-hint { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.opt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.opt + .opt { margin-top: .8rem; }
.opt-row .opt + .opt { margin-top: 0; }

.ic-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 1.5rem; padding: 1rem 1.3rem; border-radius: 16px; background: var(--light); }
.ic-summary[hidden] { display: none; }
.ic-summary > div:not(.ic-actions) { display: flex; flex-direction: column; }
.ic-summary strong { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.ic-summary span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.ic-saved strong { color: var(--green); }
.ic-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: .6rem; }
.ic-list { display: grid; gap: .7rem; margin-top: 1rem; }
.ic-item { display: flex; align-items: center; gap: 1rem; padding: .7rem; border-radius: 14px; border: 1px solid var(--border); }
.ic-item > img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--light); }
.ic-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ic-meta strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .93rem; }
.ic-meta small { color: var(--muted); }
.ic-right { display: flex; align-items: center; gap: .8rem; flex: none; }
.ic-sizes { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.ic-sizes b { color: var(--text); }
.ic-badge { font-size: .78rem; font-weight: 800; padding: .3rem .6rem; border-radius: 8px; background: #e8f8ee; color: #15803d; white-space: nowrap; }
.ic-badge.is-zero { background: var(--light); color: var(--muted); }
.ic-right .btn-ts { padding: .55rem 1rem; }
.ic-remove { width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--light); color: var(--muted); }
.ic-remove:hover { background: #fdeceb; color: #dc2626; }
.ic-bad { color: #dc2626; font-weight: 600; font-size: .88rem; }

.pd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: 1rem 1.3rem; border-radius: 16px; background: var(--light); }
.pd-bar[hidden] { display: none; }
.pd-grid { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.pd-item { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: .6rem; border-radius: 14px; border: 1px solid var(--border); background: #fff; }
.pd-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: var(--light); border-radius: 8px; }
.pd-num { position: absolute; top: .9rem; left: .9rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 800; }
.pd-tools { display: flex; justify-content: space-between; gap: .3rem; }
.pd-tools button { flex: 1; height: 32px; border: 0; border-radius: 8px; background: var(--light); color: var(--text); }
.pd-tools button:hover:not(:disabled) { background: #e3e9f7; }
.pd-tools button:disabled { opacity: .35; }
.pd-item small { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.qr-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.qr-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.qr-tabs button { border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: .55rem .9rem; font-weight: 700; font-size: .88rem; color: var(--text); }
.qr-tabs button.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.qr-panel { margin-bottom: 1rem; }
.qr-more { border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.2rem; }
.qr-more summary { cursor: pointer; font-weight: 700; margin-bottom: .8rem; }
.qr-more .opt-row + .opt-row { margin-top: .8rem; }
.qr-preview { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 1.4rem; border-radius: 20px; background: var(--light); }
.qr-canvas-wrap { width: 100%; background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
.qr-canvas-wrap canvas { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.qr-status { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
.qr-status.is-warn { color: #b45309; font-weight: 600; }

.yt-form { margin-bottom: 0; }
.yt-form .fbd-input { box-shadow: none; border: 1.5px solid #dbe1ee; }
.yt-form .fbd-input > i { color: #ff0033; font-size: 1.2rem; }
.yt-error { background: #fdeeee !important; color: #991b1b !important; border-color: #f7caca !important; }
.yt-results { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; margin-top: 1.6rem; }
.yt-results[hidden] { display: none; }
.yt-thumb { margin: 0; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; background: #fff; }
.yt-thumb[hidden] { display: none; }
.yt-thumb:first-child { grid-row: span 3; }
.yt-img { background: var(--light); aspect-ratio: 16 / 9; }
.yt-img img { width: 100%; height: 100%; object-fit: cover; }
.yt-thumb figcaption { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 1rem; }
.yt-thumb figcaption span { color: var(--muted); font-size: .88rem; }
.yt-thumb figcaption b { color: var(--text); margin-right: .3rem; }
.yt-thumb .btn-ts { padding: .5rem 1rem; }

.wc-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.wc-stats > div { padding: 1rem; border-radius: 14px; background: var(--light); text-align: center; }
.wc-stats strong { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wc-stats span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.wc-toolbar { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.wc-toolbar button { border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: .45rem .8rem; font-size: .85rem; font-weight: 600; color: var(--text); }
.wc-toolbar button:hover { border-color: var(--primary); color: var(--primary); }
.wc-grid { display: grid; grid-template-columns: 1fr 300px; gap: 1.2rem; }
.wc-text { width: 100%; min-height: 380px; resize: vertical; padding: 1.2rem 1.3rem; border-radius: 16px; border: 1.5px solid #dbe1ee; font: inherit; font-size: 1.05rem; line-height: 1.7; color: var(--text); background: #fbfcff; }
.wc-text:focus { outline: 0; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
.wc-side { padding: 1.2rem; border-radius: 16px; background: var(--light); }
.wc-side h3 { font-size: .95rem; margin: 0 0 .7rem; }
.wc-side h3 i { color: var(--primary); margin-right: 4px; }
.wc-details { margin-bottom: 1.3rem; }
.wc-details li { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .88rem; border-bottom: 1px dashed #d9dfee; }
.wc-details span { color: var(--muted); }
.wc-keywords { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.wc-keywords li { display: grid; grid-template-columns: 1fr auto; gap: 2px .6rem; font-size: .86rem; }
.wc-keywords em { grid-column: 1 / -1; order: 3; height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--primary) var(--w), #dfe5f2 var(--w)); }
.wc-keywords b { color: var(--muted); font-weight: 600; }

@media (max-width: 991.98px) {
    .ic-grid, .qr-grid, .wc-grid { grid-template-columns: 1fr; }
    .qr-preview { position: static; }
    .wc-stats { grid-template-columns: repeat(3, 1fr); }
    .yt-results { grid-template-columns: 1fr 1fr; }
    .yt-thumb:first-child { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 575.98px) {
    .tool-app { padding: 1.1rem; border-radius: 18px; }
    .opt-row { grid-template-columns: 1fr; }
    .opt label.check { margin-top: 0; }
    .ic-item { flex-wrap: wrap; }
    .ic-right { width: 100%; justify-content: space-between; }
    .ic-right .btn-ts span { display: none; }
    .ic-actions { margin-left: 0; width: 100%; }
    .ic-actions .btn-ts { flex: 1; }
    .yt-results { grid-template-columns: 1fr; }
    .wc-stats { grid-template-columns: repeat(2, 1fr); }
    .wc-text { min-height: 260px; }
}

/* ---------- Tools set 2: merge pdf, pdf to jpg, resizer, password ---------- */
.drop-2col { display: grid; grid-template-columns: 1fr 1fr; min-width: 520px; left: 50%; transform: translate(-50%, 8px); }
.has-drop:hover .drop-2col, .has-drop:focus-within .drop-2col { transform: translate(-50%, 0); }
.dropzone-wide { min-height: 180px; }
.mp-name { width: 160px; padding: .6rem .8rem; border-radius: 10px; border: 1.5px solid #dbe1ee; font: inherit; font-size: .9rem; }
.mp-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.mp-item { position: relative; display: flex; align-items: center; gap: 1rem; padding: .8rem .9rem .8rem 3rem; border-radius: 14px; border: 1px solid var(--border); background: #fff; }
.mp-item .pd-num { top: 50%; left: .8rem; transform: translateY(-50%); }
.mp-item.is-bad { border-color: #f7caca; background: #fffafa; }
.mp-item.is-bad small { color: #dc2626; }
.mp-icon { font-size: 1.8rem; color: #dc2626; flex: none; }
.mp-range { width: 210px; padding: .55rem .75rem; border-radius: 10px; border: 1.5px solid #dbe1ee; font: inherit; font-size: .88rem; }
.mp-range:focus, .mp-name:focus { outline: 0; border-color: var(--primary); }
.mp-btns { display: flex; gap: .3rem; }
.mp-btns button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--light); color: var(--text); }
.mp-btns button:disabled { opacity: .35; }
.mp-btns button[data-a=del]:hover { background: #fdeceb; color: #dc2626; }
.pj-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pj-wait { aspect-ratio: 3 / 4; display: grid; place-items: center; background: var(--light); border-radius: 8px; color: var(--primary); }
.pj-grid .pd-item img { aspect-ratio: auto; max-height: 260px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.pj-dl { padding: .45rem .7rem !important; font-size: .78rem !important; }
.rz-mode { display: flex; gap: .3rem; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.rz-mode button { flex: 1; border: 0; border-radius: 9px; padding: .55rem .4rem; font-weight: 700; font-size: .85rem; background: transparent; color: var(--muted); }
.rz-mode button.is-active { background: var(--grad); color: #fff; }
.rz-dims { grid-template-columns: 1fr auto 1fr; align-items: end; }
.rz-lock { width: 42px; height: 44px; border-radius: 10px; border: 1.5px solid #dbe1ee; background: #fff; color: var(--muted); }
.rz-lock.is-on { color: var(--primary); border-color: var(--primary); }
.pw-output { display: flex; align-items: center; gap: 1rem; padding: 1rem 1rem 1rem 1.4rem; border-radius: 18px; border: 2px solid var(--border); background: #fbfcff; }
.pw-value { flex: 1; min-width: 0; font-family: var(--mono); font-size: clamp(1.1rem, 2.6vw, 1.7rem); font-weight: 600; letter-spacing: .02em; overflow-wrap: anywhere; color: var(--text); }
.pw-actions { display: flex; gap: .6rem; flex: none; }
.pw-icon { width: 50px; height: 50px; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; color: var(--primary); font-size: 1.1rem; }
.pw-icon.spin i { animation: spin .5s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
.pw-meter { margin: 1rem 0 1.5rem; }
.pw-bar { height: 8px; border-radius: 99px; background: var(--light); overflow: hidden; }
.pw-bar span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .35s, background .35s; }
.pw-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .6rem; font-size: .88rem; color: var(--muted); }
.pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pw-checks { display: grid; gap: .5rem; margin-top: .4rem; }
.pw-checks label, .check-inline { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem; cursor: pointer; }
.pw-checks input, .check-inline input, .opt label.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.pw-checks code { margin-left: auto; font-size: .78rem; color: var(--muted); background: #fff; padding: 1px 6px; border-radius: 6px; }
.pw-list { width: 100%; padding: .9rem 1rem; border-radius: 12px; border: 1.5px solid #dbe1ee; font-family: var(--mono); font-size: .88rem; line-height: 1.7; resize: vertical; background: #fff; }
@media (max-width: 991.98px) { .pw-grid { grid-template-columns: 1fr; } .drop-2col { min-width: 0; grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
    .mp-item { flex-wrap: wrap; }
    .mp-range { width: 100%; order: 5; }
    .mp-name { width: 100%; }
    .pw-output { flex-direction: column; align-items: stretch; }
    .pw-actions .btn-ts { flex: 1; }
}

/* ---------- Step 4: service page, CMS pages, team, errors ---------- */
.service-hero-card { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 3rem; padding: 1.3rem 1.5rem; border-radius: 20px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.service-hero-card .service-icon { margin: 0; }
.service-hero-card strong { font-size: 1.15rem; }
.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 2rem; border-radius: 22px; color: #fff; background: radial-gradient(400px 200px at 100% 0%, rgba(34,211,238,.35), transparent 60%), var(--grad); }
.cta-inline h2 { font-size: 1.4rem; margin-bottom: .3rem; color: #fff; }
.cta-inline p { margin: 0; color: rgba(255,255,255,.85); }
.side-services li a { display: flex; align-items: center; gap: .7rem; padding: .65rem 0; color: var(--text); font-weight: 600; border-bottom: 1px dashed var(--border); font-size: .93rem; }
.side-services li:last-child a { border-bottom: 0; }
.side-services li a > i:first-child { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(47,107,255,.1); color: var(--primary); font-size: .85rem; }
.side-services li a .fa-chevron-right { font-size: .7rem; color: var(--muted); }
.side-services li a:hover { color: var(--primary); }
.team-initials { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: #fff; background: var(--grad); }
.team-bio { color: var(--muted); font-size: .88rem; margin: .5rem 0 0; }
.cms-content h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.error-hero { padding-bottom: 90px; }
.error-code { font-size: clamp(6rem, 20vw, 11rem); font-weight: 800; line-height: .9; margin-bottom: .6rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 575.98px) { .feature-cols { grid-template-columns: 1fr; } .service-hero-card .btn-ts { width: 100%; margin-left: 0 !important; } }
/* reCAPTCHA */
.captcha-box { display: flex; }
.captcha-box .g-recaptcha { transform-origin: left top; }
@media (max-width: 360px) { .captcha-box .g-recaptcha { transform: scale(.88); } }

/* ==========================================================================
   Lead pages (Contact / Quote): form in the first screen, AJAX, success popup
   ========================================================================== */
.lead-hero { padding: calc(var(--header-h) + 34px) 0 70px; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "head form" "aside form"; column-gap: clamp(2rem, 4.5vw, 4.5rem); align-items: start; }
.lead-head { grid-area: head; padding-top: .6rem; }
.lead-form { grid-area: form; }
.lead-aside { grid-area: aside; }
.lead-hero .page-hero-title { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
.lead-hero .page-hero-sub { margin-bottom: 1.6rem; }

.lead-card { padding: 2rem 2.1rem; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); border: 0; color: var(--text); position: relative; }
.lead-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 24px 24px 0 0; background: linear-gradient(90deg, var(--primary), var(--cyan), var(--violet)); }
.lead-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.3rem; }
.lead-card-head .form-card-title { font-size: 1.4rem; margin: 0 0 .15rem; }
.lead-card-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.live-badge { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 99px; background: #ecfdf3; color: #15803d; font-size: .78rem; font-weight: 700; }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.lead-card .ts-form input[type=text], .lead-card .ts-form input:not([type]), .lead-card .ts-form input[type=email], .lead-card .ts-form input[type=tel], .lead-card .ts-form textarea { padding: .72rem .95rem; }
.lead-card .ts-form textarea { min-height: 110px; }
.lead-card .ts-form label { font-size: .86rem; margin-bottom: .35rem; }
.lead-submit { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: .4rem; }
.lead-submit small { font-size: .82rem; }
.field-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.field-foot .field-error { margin-right: auto; }
.char-count { margin-top: .35rem; margin-left: auto; font-size: .76rem; color: var(--muted); white-space: nowrap; }
.char-count.is-ok { color: #16a34a; }
.ts-form .has-error .choice-card span { border-color: #f3b4b4; }
.ts-form .has-error .g-recaptcha { outline: 2px solid #f3b4b4; outline-offset: 3px; border-radius: 4px; }
.ts-form .is-invalid:focus { box-shadow: 0 0 0 4px rgba(220,38,38,.12); }
.field-error { animation: errIn .25s ease; }
.field-error::before { content: "\f06a"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: .35rem; font-size: .8em; }
@keyframes errIn { from { opacity: 0; transform: translateY(-4px); } }
.form-alert.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.form-alert[hidden] { display: none; }
.lead-card .form-alert { margin-bottom: 1.1rem; font-size: .92rem; }
.btn-ts[disabled] { cursor: progress; }

/* Left column on the dark hero */
.lead-contacts { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .7rem; }
.lead-contacts li { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(6px); transition: border-color .2s, background .2s; }
.lead-contacts li:hover { background: rgba(255,255,255,.08); border-color: rgba(94,168,255,.4); }
.lc-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.05rem; }
.lc-text { min-width: 0; line-height: 1.35; }
.lc-text small { display: block; color: var(--muted-dark); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.lc-text a, .lc-text strong { color: #fff; font-weight: 700; font-size: .96rem; word-break: break-word; }
.lc-text a:hover { color: var(--cyan); }
.lead-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.lead-trust div { padding: .9rem .6rem; border-radius: 14px; text-align: center; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.lead-trust strong { display: block; color: #fff; font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.lead-trust strong i { color: #fbbf24; font-size: .75rem; margin-left: 2px; vertical-align: middle; }
.lead-trust span { color: var(--muted-dark); font-size: .76rem; font-weight: 600; }
.lead-steps { list-style: none; padding: 0; margin: 0 0 1.4rem; counter-reset: ls; display: grid; gap: .9rem; }
.lead-steps li { counter-increment: ls; position: relative; padding-left: 3rem; line-height: 1.4; }
.lead-steps li::before { content: counter(ls); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: rgba(47,107,255,.25); border: 1px solid rgba(94,168,255,.45); }
.lead-steps li:not(:last-child)::after { content: ""; position: absolute; left: 16.5px; top: 38px; bottom: -12px; width: 1px; background: rgba(255,255,255,.14); }
.lead-steps strong { display: block; color: #fff; }
.lead-steps span { color: var(--muted-dark); font-size: .88rem; }
.lead-talk { margin: 1.3rem 0 0; color: var(--muted-dark); font-size: .92rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.lead-talk a { color: #fff; font-weight: 600; }
.lead-talk a:hover { color: var(--cyan); }
.lead-talk a i { color: var(--cyan); margin-right: .25rem; }

/* Quote wizard */
.wiz-progress { margin: -.2rem 0 1.4rem; }
.wiz-progress ol { list-style: none; padding: 0; margin: 0 0 .7rem; display: grid; grid-template-columns: repeat(4, 1fr); }
.wiz-progress li { display: flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; color: var(--muted); }
.wiz-progress li > span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #dbe1ee; background: #fff; font-size: .78rem; transition: .25s; }
.wiz-progress li > span i { display: none; }
.wiz-progress li.is-active { color: var(--text); }
.wiz-progress li.is-active > span { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(47,107,255,.7); }
.wiz-progress li.is-done { color: var(--text); cursor: pointer; }
.wiz-progress li.is-done > span { border-color: #22c55e; background: #22c55e; color: #fff; }
.wiz-progress li.is-done > span b { display: none; }
.wiz-progress li.is-done > span i { display: inline; font-size: .7rem; }
.wiz-bar { height: 4px; border-radius: 99px; background: #edf1f8; overflow: hidden; }
.wiz-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.no-js .wiz-progress, .wiz-progress { display: none; }
.is-wizard .wiz-progress { display: block; }
.wiz-step { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.wiz-step legend { float: none; width: auto; font-size: 1.15rem; font-weight: 800; margin-bottom: .25rem; }
.wiz-hint { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.wiz-step legend + .row, .wiz-step legend + [data-field] { margin-top: .9rem; }
.wiz-step .choice-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.is-wizard .wiz-step:not(.is-active) { display: none; }
.is-wizard .wiz-step.is-active { animation: stepIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } }
.wiz-nav { display: flex; align-items: center; gap: .8rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.wiz-nav [data-wiz-prev], .wiz-nav [data-wiz-next] { display: none; }
.is-wizard .wiz-nav [data-wiz-prev], .is-wizard .wiz-nav [data-wiz-next]:not([hidden]) { display: inline-flex; }
.wiz-nav [hidden] { display: none !important; }
.wiz-secure { flex: 1; text-align: center; color: var(--muted); font-size: .8rem; }
.wiz-nav .btn-ts { padding-block: .8rem; }

/* Below the hero */
.contact-extra { padding: 70px 0; background: var(--light); }
.contact-extra .side-card { padding: 1.7rem; }
.quote-faq { background: var(--light); padding: 90px 0; }
.quote-faq .section-head { margin-bottom: 2.5rem; }
.quote-faq-list { max-width: 820px; margin: 0 auto; }
.quote-faq .faq-item p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--muted); }

/* Success popup */
html.modal-open { overflow: hidden; }
.ts-modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 1rem; }
.ts-modal[hidden] { display: none; }
.ts-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 11, 31, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.ts-modal-dialog { position: relative; width: 100%; max-width: 470px; max-height: calc(100vh - 2rem); overflow: auto; padding: 2.6rem 2.1rem 2rem; border-radius: 26px; background: #fff; text-align: center; box-shadow: 0 40px 90px -20px rgba(5, 11, 31, .6); opacity: 0; transform: translateY(24px) scale(.95); transition: opacity .3s, transform .45s cubic-bezier(.2, 1.3, .4, 1); }
.ts-modal-dialog::before { content: ""; position: absolute; inset: 0 0 auto; height: 130px; background: radial-gradient(260px 120px at 50% 0%, rgba(34,197,94,.16), transparent 70%); pointer-events: none; }
.ts-modal.is-open .ts-modal-backdrop { opacity: 1; }
.ts-modal.is-open .ts-modal-dialog { opacity: 1; transform: none; }
.ts-modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--light); color: var(--muted); display: grid; place-items: center; transition: .2s; }
.ts-modal-x:hover { background: #e7ecf6; color: var(--text); transform: rotate(90deg); }
.success-anim { position: relative; width: 92px; height: 92px; margin: 0 auto 1.3rem; }
.success-anim svg { position: relative; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, #16a34a, #22c55e 60%, #22d3ee); box-shadow: 0 18px 40px -12px rgba(22, 163, 74, .65); fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; transform: scale(.5); opacity: 0; }
.success-anim circle { stroke: rgba(255,255,255,.35); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }
.success-anim path { stroke-width: 4.2; stroke-dasharray: 40; stroke-dashoffset: 40; }
.ts-modal.is-open .success-anim svg { animation: popIn .5s .1s cubic-bezier(.2, 1.5, .4, 1) forwards; }
.ts-modal.is-open .success-anim circle { animation: draw .6s .35s ease-out forwards; }
.ts-modal.is-open .success-anim path { animation: draw .4s .55s ease-out forwards; }
@keyframes popIn { to { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-anim i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 2px; background: var(--primary); opacity: 0; transform: rotate(calc(var(--i) * 36deg)) translateY(0); }
.success-anim i:nth-child(3n+1) { background: var(--cyan); border-radius: 50%; }
.success-anim i:nth-child(3n+2) { background: #fbbf24; }
.success-anim i:nth-child(4n) { background: var(--violet); }
.ts-modal.is-open .success-anim i { animation: burst .9s .45s cubic-bezier(.1, .8, .3, 1) forwards; }
@keyframes burst { 0% { opacity: 1; transform: rotate(calc(var(--i) * 36deg)) translateY(-30px) scale(1); } 100% { opacity: 0; transform: rotate(calc(var(--i) * 36deg)) translateY(-78px) scale(.3); } }
.ts-modal-dialog h2 { font-size: 1.75rem; margin: 0 0 .5rem; }
.success-text { color: var(--muted); margin: 0 auto 1rem; max-width: 380px; }
.success-ref { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 1.1rem; padding: .4rem .9rem; border-radius: 99px; background: var(--light); color: var(--muted); font-size: .85rem; }
.success-ref[hidden] { display: none; }
.success-ref strong { color: var(--text); font-family: var(--mono); letter-spacing: .02em; }
.success-steps { list-style: none; padding: 1rem; margin: 0 0 1.1rem; display: grid; gap: .55rem; text-align: left; border-radius: 16px; background: #f8faff; border: 1px solid var(--border); }
.success-steps li { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .92rem; }
.success-steps li span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; background: var(--grad); }
.success-note { color: var(--muted); font-size: .86rem; margin: 0 0 1.2rem; }
.success-note i { color: var(--primary); margin-right: .3rem; }
.ts-modal-actions { display: flex; gap: .7rem; justify-content: center; }
.ts-modal-actions .btn-ts { flex: 1; justify-content: center; }

@media (max-width: 991.98px) {
    .lead-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "form" "aside"; row-gap: 1.6rem; }
    .lead-hero { padding-bottom: 56px; }
    .lead-hero .page-hero-sub { margin-bottom: 0; }
    .lead-head .crumbs { margin-bottom: .8rem; }
}
@media (max-width: 575.98px) {
    .lead-hero { padding-top: calc(var(--header-h) + 18px); }
    .lead-hero .eyebrow { display: none; }
    .lead-hero .page-hero-title { font-size: 1.75rem; margin-bottom: .5rem; }
    .lead-hero .page-hero-sub { font-size: .98rem; }
    .lead-card { padding: 1.4rem 1.15rem; }
    .live-badge { display: none; }
    .lead-submit .btn-ts { width: 100%; justify-content: center; }
    .wiz-progress li { flex-direction: column; gap: .3rem; font-size: .72rem; text-align: center; }
    .wiz-secure { display: none; }
    .wiz-nav { justify-content: space-between; }
    .wiz-nav [data-wiz-next], .wiz-nav [data-wiz-submit] { flex: 1; justify-content: center; }
    .wiz-step .choice-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .wiz-step .choice-card span { padding: .75rem .7rem; font-size: .84rem; }
    .lead-trust strong { font-size: 1.15rem; }
    .ts-modal-dialog { padding: 2.3rem 1.3rem 1.4rem; }
    .ts-modal-actions { flex-direction: column-reverse; }
}

/* ==========================================================================
   Tools batch 3: Age calculator, WebP to JPG, WhatsApp link, Color picker, Notepad
   ========================================================================== */
@media (min-width: 1200px) {
    .drop-3col { grid-template-columns: repeat(3, 1fr); min-width: 780px; }
}
.btn-sm-ts { padding: .45rem .9rem !important; font-size: .85rem; }
kbd { padding: .1rem .4rem; border-radius: 6px; background: #fff; border: 1px solid var(--border); border-bottom-width: 2px; color: var(--text); font-size: .78rem; font-family: var(--mono); }
.ag-error { margin: 0; color: #dc2626; font-weight: 600; font-size: .88rem; }
.ag-error[hidden] { display: none; }
.opt[hidden] { display: none; }

/* Age calculator */
.ag-grid { display: grid; grid-template-columns: 360px 1fr; gap: 1.5rem; align-items: stretch; }
.ag-form .opt + .opt { margin-top: 0; }
.ag-form input[type=date] { min-height: 50px; font-size: 1.02rem !important; }
.ag-today { border: 0; background: none; color: var(--primary); font-weight: 700; font-size: .82rem; padding: 0; }
.ag-result { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 1.8rem; border-radius: 20px; color: #fff; overflow: hidden; background: radial-gradient(400px 220px at 100% 0%, rgba(34,211,238,.35), transparent 60%), radial-gradient(360px 240px at 0% 100%, rgba(139,92,246,.45), transparent 60%), var(--bg-dark-2); }
.ag-empty { text-align: center; color: var(--muted-dark); }
.ag-empty i { font-size: 2.6rem; color: #ff7ab6; margin-bottom: .8rem; }
.ag-empty p { margin: 0; }
.ag-label { margin: 0 0 .6rem; color: var(--muted-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.ag-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.ag-main div { padding: 1rem .6rem; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); text-align: center; }
.ag-main strong { display: block; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ag-main span { color: #c3cde8; font-weight: 600; font-size: .9rem; }
.ag-facts { display: grid; gap: .5rem; margin-top: 1.1rem; }
.ag-facts div { display: grid; grid-template-columns: 22px auto 1fr; align-items: center; gap: .6rem; font-size: .92rem; }
.ag-facts i { color: var(--cyan); }
.ag-facts span { color: var(--muted-dark); }
.ag-facts b { text-align: right; }
.ag-totals { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-top: 1.5rem; }
.ag-totals[hidden], .ag-share[hidden] { display: none; }
.ag-totals div { padding: 1rem .5rem; border-radius: 14px; background: var(--light); text-align: center; min-width: 0; }
.ag-totals strong { display: block; font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere; }
.ag-totals span { color: var(--muted); font-size: .78rem; font-weight: 600; }
.ag-share { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; margin-top: 1rem; color: var(--muted); font-size: .9rem; }

/* WhatsApp link generator */
.wa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.wa-phone { display: grid; grid-template-columns: minmax(0, 190px) 1fr; gap: .5rem; }
.wa-phone input { font-size: 1.05rem !important; letter-spacing: .02em; }
.wa-hint { display: block; margin-top: .4rem; color: var(--muted); font-size: .8rem; }
.wa-fmt { display: flex; align-items: center; gap: .3rem; margin-bottom: .4rem; }
.wa-fmt button { width: 34px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: .8rem; }
.wa-fmt button:hover { border-color: var(--primary); color: var(--primary); }
.wa-count { margin-left: auto; font-size: .76rem; color: var(--muted); }
.wa-templates { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.wa-templates button { border: 1px dashed #b9c4dc; background: #fff; border-radius: 99px; padding: .25rem .75rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.wa-templates button:hover { border-color: #25d366; color: #128c7e; }
.wa-out { display: flex; flex-direction: column; }
.wa-preview { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.wa-top { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; background: #075e54; color: #fff; line-height: 1.2; }
.wa-top small { display: block; color: #b8e0d6; font-size: .75rem; }
.wa-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #dfe5e7; color: #8696a0; }
.wa-chat { min-height: 120px; padding: 1rem; background: #efeae2 radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 14px 14px; display: flex; align-items: flex-end; justify-content: flex-end; }
.wa-bubble { position: relative; max-width: 85%; padding: .5rem .75rem .55rem; border-radius: 10px 0 10px 10px; background: #d9fdd3; color: #111b21; font-size: .92rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.12); overflow-wrap: anywhere; }
.wa-bubble em { color: #667781; }
.wa-bubble code { font-family: var(--mono); font-size: .85em; }
.wa-link { display: flex; gap: .5rem; margin-top: .35rem; }
.wa-link input { flex: 1; min-width: 0; padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid #dbe1ee; background: #fbfcff; font-family: var(--mono); font-size: .88rem; color: var(--text); }
.wa-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.wa-actions .btn-ts { flex: 1; justify-content: center; padding-inline: .8rem; font-size: .9rem; }
.wa-actions [aria-disabled=true] { opacity: .5; pointer-events: none; }
.wa-extras { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.wa-extras[hidden] { display: none; }
.wa-qr { text-align: center; }
.wa-qr canvas { width: 100%; max-width: 220px; height: auto; border-radius: 14px; box-shadow: var(--shadow); }
.wa-qr small { display: block; margin-top: .5rem; color: var(--muted); }
.wa-code textarea { width: 100%; padding: .8rem; border-radius: 12px; border: 1.5px solid #dbe1ee; background: #0e1630; color: #c3e8ff; font-family: var(--mono); font-size: .78rem; line-height: 1.55; resize: vertical; }

/* Image color picker */
.cp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: 1.2rem; }
.cp-toolbar label.btn-ts { cursor: pointer; margin: 0; }
.cp-tip { margin-left: auto; color: var(--muted); font-size: .85rem; }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.5rem; align-items: start; }
.cp-stage { position: relative; min-height: 260px; display: flex; align-items: center; justify-content: center; padding: .8rem; border-radius: 18px; overflow: hidden; background: repeating-conic-gradient(#eef1f7 0 25%, #fff 0 50%) 0 0 / 22px 22px; border: 1px solid var(--border); }
.cp-stage canvas#cpCanvas { display: block; max-width: 100%; border-radius: 8px; cursor: crosshair; touch-action: none; box-shadow: 0 6px 20px -8px rgba(16,32,84,.3); }
.cp-loupe { position: absolute; left: 0; top: 0; width: 132px; height: 132px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35); pointer-events: none; opacity: 0; transition: opacity .15s; image-rendering: pixelated; }
.cp-stage.is-hover .cp-loupe { opacity: 1; }
.cp-drop-hint { position: absolute; inset: 0; display: none; place-items: center; background: rgba(47,107,255,.85); color: #fff; font-weight: 700; font-size: 1.1rem; }
.cp-stage.is-over .cp-drop-hint { display: grid; }
.cp-side { display: flex; flex-direction: column; gap: 1rem; }
.cp-current { display: flex; align-items: center; gap: 1rem; }
.cp-swatch { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), var(--shadow); transition: background .1s; }
.cp-current small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.cp-current strong { font-family: var(--mono); font-size: 1.6rem; }
.cp-codes { display: grid; gap: .45rem; }
.cp-code { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .6rem .8rem; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; text-align: left; transition: .15s; }
.cp-code:hover { border-color: var(--primary); }
.cp-code span { width: 44px; flex: none; font-size: .72rem; font-weight: 800; color: var(--muted); }
.cp-code code { flex: 1; min-width: 0; color: var(--text); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-code i { color: var(--muted); }
.cp-code.is-copied { border-color: #22c55e; background: #ecfdf3; }
.cp-code.is-copied i::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #16a34a; }
.cp-block { padding: 1rem; border-radius: 16px; background: var(--light); }
.cp-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; font-size: .9rem; }
.cp-link { border: 0; background: none; color: var(--primary); font-weight: 700; font-size: .8rem; padding: 0; }
.cp-link.is-copied { color: #16a34a; }
.cp-palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.cp-palette button { height: 64px; border: 0; border-radius: 10px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: .35rem .45rem; font-size: .68rem; line-height: 1.2; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); transition: transform .15s; }
.cp-palette button:hover { transform: translateY(-2px); }
.cp-palette button b { font-family: var(--mono); }
.cp-palette button small { opacity: .75; }
.cp-palette button.is-copied b::after { content: " ✓"; }
.cp-history { display: flex; flex-wrap: wrap; gap: .4rem; }
.cp-history button { width: 34px; height: 34px; border-radius: 9px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }

/* Online notepad */
.np { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0; min-height: 560px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: #fff; }
.np-side { display: flex; flex-direction: column; gap: .7rem; padding: 1rem; background: var(--light); border-right: 1px solid var(--border); min-width: 0; }
.np-search { position: relative; }
.np-search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; }
.np-search input { width: 100%; padding: .6rem .8rem .6rem 2.2rem; border-radius: 10px; border: 1.5px solid #dbe1ee; background: #fff; font: inherit; font-size: .9rem; }
.np-search input:focus { outline: 0; border-color: var(--primary); }
.np-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; overflow-y: auto; max-height: 470px; align-content: start; }
.np-list button { width: 100%; display: grid; gap: .1rem; padding: .65rem .75rem; border: 0; border-radius: 10px; background: transparent; text-align: left; line-height: 1.3; }
.np-list button:hover { background: #e9eef8; }
.np-list button.is-active { background: #fff; box-shadow: 0 4px 14px -6px rgba(16,32,84,.25); }
.np-list b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-list small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-list em { font-style: normal; color: #9aa3b5; font-size: .72rem; }
.np-empty { color: var(--muted); font-size: .88rem; padding: .5rem; }
.np-main { display: flex; flex-direction: column; min-width: 0; }
.np-bar { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-bottom: 1px solid var(--border); }
.np-status { font-size: .82rem; font-weight: 600; color: #16a34a; white-space: nowrap; }
.np-status.is-saving { color: var(--muted); }
.np-status.is-error, .np-status.is-saved:has(.fa-circle-exclamation) { color: #dc2626; }
.np-tools { margin-left: auto; display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.np-btn { width: 36px; height: 36px; margin: 0; display: inline-grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: .15s; }
.np-btn:hover { background: var(--light); color: var(--primary); }
.np-danger:hover { background: #fdeceb; color: #dc2626; }
.np-menu { display: none; }
.np-text { flex: 1; width: 100%; min-height: 440px; padding: 1.4rem 1.6rem; border: 0; resize: none; font-family: var(--font); font-size: 17px; line-height: 1.75; color: var(--text); background: #fff; tab-size: 4; }
.np-text:focus { outline: 0; }
.np-foot { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: .6rem 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .8rem; }
.np-foot b { color: var(--text); }
.np-warn { margin: 0; padding: .7rem 1rem; background: #fff7e6; color: #92400e; font-size: .85rem; }
.np-warn[hidden] { display: none; }
.np:fullscreen, .np.is-focus { border-radius: 0; min-height: 100vh; }
.np.is-focus { position: fixed; inset: 0; z-index: 3000; }
.np:fullscreen .np-list { max-height: calc(100vh - 150px); }
.np:fullscreen .np-text, .np.is-focus .np-text { padding: 3rem max(1.6rem, calc((100% - 760px) / 2)); }

@media (max-width: 991.98px) {
    .ag-grid, .wa-grid, .cp-grid { grid-template-columns: 1fr; }
    .ag-totals { grid-template-columns: repeat(3, 1fr); }
    .cp-tip { display: none; }
}
@media (max-width: 767.98px) {
    .np { grid-template-columns: 1fr; position: relative; }
    .np-side { position: absolute; inset: 0 auto 0 0; width: 82%; z-index: 5; transform: translateX(-105%); transition: transform .25s; box-shadow: 10px 0 30px rgba(0,0,0,.15); }
    .np.show-side .np-side { transform: none; }
    .np-menu { display: inline-grid; }
    .np-status { font-size: 0; } .np-status i, .np-status .spinner-border { font-size: .9rem; }
    .np-text { padding: 1rem; min-height: 380px; }
    .wa-extras { grid-template-columns: 1fr; }
    .wa-phone { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .ag-main strong { font-size: 2.1rem; }
    .ag-totals { grid-template-columns: repeat(2, 1fr); }
    .ag-result { padding: 1.3rem; }
    .ag-facts div { grid-template-columns: 22px 1fr; }
    .ag-facts b { grid-column: 2; text-align: left; }
    .cp-palette { grid-template-columns: repeat(4, 1fr); }
    .np-btn { width: 32px; height: 32px; }
}

/* ==========================================================================
   Free Tools mega menu (categories) + categorized tools page
   ========================================================================== */
.nav-wrap { position: relative; }
.main-nav > li.has-mega { position: static; }
.mega {
    position: absolute; top: calc(100% + 14px); left: 0; right: 0; z-index: 50;
    padding: 1.6rem 1.6rem 0; border-radius: 20px;
    background: radial-gradient(600px 240px at 90% 0%, rgba(47,107,255,.16), transparent 60%), #111a33;
    border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .22s, transform .22s, visibility .22s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; }
.mega-head { display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; padding-bottom: .7rem; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; font-weight: 800; font-size: .9rem; letter-spacing: .01em; }
.mega-head i { color: var(--cyan); font-size: .85rem; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.mega ul a { display: flex; align-items: center; gap: .65rem; padding: .5rem .55rem; margin: 0 -.55rem; border-radius: 10px; color: #c9d3ee; font-weight: 600; font-size: .88rem; line-height: 1.3; transition: background .18s, color .18s; }
.mega ul a > i { flex: none; width: 22px; text-align: center; font-size: 1.05rem; background: linear-gradient(135deg, #5eead4, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mega ul a:hover, .mega ul a:focus-visible { background: rgba(255,255,255,.06); color: #fff; }
.mega ul a em { margin-left: auto; font-style: normal; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .45rem; border-radius: 99px; background: rgba(34,211,238,.15); color: var(--cyan); }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.3rem -1.6rem 0; padding: .9rem 1.6rem; border-top: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); border-radius: 0 0 20px 20px; font-size: .84rem; }
.mega-foot span { color: var(--muted-dark); }
.mega-foot span i { color: #fbbf24; margin-right: .3rem; }
.mega-foot a { color: #fff; font-weight: 700; }
.mega-foot a:hover { color: var(--cyan); }
@media (max-width: 1199.98px) {
    .mega { padding: 1.3rem 1.2rem 0; }
    .mega-cols { gap: .8rem; }
    .mega ul a { font-size: .82rem; gap: .5rem; }
    .mega-foot { margin-inline: -1.2rem; padding-inline: 1.2rem; }
}

/* Mobile menu: tools accordion */
.m-tools summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: .85rem 0; color: #fff; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; }
.m-tools summary::-webkit-details-marker { display: none; }
.m-tools summary i { font-size: .75rem; transition: transform .2s; }
.m-tools[open] summary i { transform: rotate(180deg); }
.m-tools-head { margin: 1rem 0 .3rem; color: var(--cyan); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.mobile-menu .m-tools a { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border: 0; font-size: .95rem; font-weight: 500; color: #c9d3ee; }
.mobile-menu .m-tools a i { width: 20px; text-align: center; color: var(--cyan); }
.mobile-menu .m-tools .m-tools-all { margin: .8rem 0 .4rem; color: #fff; font-weight: 700; }

/* /tools page */
.tools-jump { position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; padding: .6rem; margin: 0 auto 2.5rem; max-width: max-content; border-radius: 99px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow); }
.tools-jump a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 99px; color: var(--text); font-weight: 700; font-size: .88rem; }
.tools-jump a i { color: var(--primary); }
.tools-jump a:hover { background: var(--light); color: var(--primary); }
.tools-jump a span { font-size: .72rem; color: var(--muted); background: var(--light); border-radius: 99px; padding: 0 .45rem; }
.tools-cat { scroll-margin-top: calc(var(--header-h) + 90px); }
.tools-cat + .tools-cat { margin-top: 4rem; }
.tools-cat-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.tools-cat-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.3rem; box-shadow: 0 12px 24px -12px rgba(47,107,255,.7); }
.tools-cat-head h2 { font-size: 1.6rem; margin: 0; }
.tools-cat-head p { margin: 0; color: var(--muted); }
.tool-card { position: relative; }
.tool-card-badge { position: absolute; top: 1.2rem; right: 1.2rem; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .6rem; border-radius: 99px; background: rgba(47,107,255,.1); color: var(--primary); }
@media (max-width: 767.98px) {
    .tools-jump { position: static; border-radius: 16px; max-width: none; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
    .tools-jump a { white-space: nowrap; }
}

/* ==========================================================================
   SEO tools: SEO checker, meta tags, schema, robots.txt, redirect checker
   ========================================================================== */
/* Shared: Google result + social cards + code boxes */
.serp { padding: 1.1rem 1.2rem; border-radius: 16px; background: #fff; border: 1px solid var(--border); font-family: Arial, sans-serif; }
.serp-site { display: flex; align-items: center; gap: .65rem; margin-bottom: .35rem; line-height: 1.25; }
.serp-site img, .serp-fav { width: 28px; height: 28px; border-radius: 50%; padding: 4px; background: #f1f3f4; flex: none; object-fit: contain; }
.serp-fav { display: grid; place-items: center; padding: 0; font-weight: 700; font-size: .8rem; color: #4d5156; }
.serp-site b { display: block; font-size: 14px; color: #202124; font-weight: 400; }
.serp-site small { display: block; font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 480px; }
.serp-title { margin: 0 0 .2rem; font: 400 20px/1.3 Arial, sans-serif; color: #1a0dab; letter-spacing: 0; overflow-wrap: anywhere; }
.serp-desc { margin: 0; font: 14px/1.58 Arial, sans-serif; color: #4d5156; overflow-wrap: anywhere; }
.serp-mobile { max-width: 400px; margin: 0 auto; border-radius: 20px; }
.serp-mobile .serp-title { font-size: 18px; }
.og-card, .x-card { border: 1px solid #dadde1; border-radius: 12px; overflow: hidden; background: #fff; }
.og-img { aspect-ratio: 1.91 / 1; background: #eef1f7 center / cover; overflow: hidden; }
.og-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.og-img.is-missing { display: grid; place-items: center; }
.og-img.is-missing::after { content: "No share image"; color: #8a94a6; font-weight: 600; font-size: .85rem; }
.og-body { padding: .7rem .9rem .8rem; background: #f2f3f5; line-height: 1.35; }
.og-body small { display: block; color: #606770; font-size: .72rem; letter-spacing: .02em; }
.og-body b { display: block; margin: .15rem 0; color: #1d2129; font-size: 1rem; overflow-wrap: anywhere; }
.og-body span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #606770; font-size: .85rem; }
.x-card { position: relative; border-radius: 16px; }
.x-title { position: absolute; left: .7rem; bottom: .7rem; max-width: calc(100% - 1.4rem); padding: .15rem .5rem; border-radius: 6px; background: rgba(0,0,0,.72); color: #fff; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-from { display: block; margin-top: .3rem; color: #536471; font-size: .8rem; }
.mt-code, .sg-out, .rb-side { min-width: 0; }
.mt-code { margin-top: 1.5rem; }
.mt-code-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.mt-code-head small { color: var(--muted); font-weight: 500; }
.mt-code pre, .sg-out pre { margin: 0; padding: 1rem 1.1rem; border-radius: 14px; background: #0e1630; color: #dbe4ff; font: .8rem/1.65 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 460px; overflow: auto; }
.c-com { color: #7e8bb0; } .c-tag { color: #7dd3fc; } .c-attr { color: #c4b5fd; } .c-val { color: #86efac; }
.mt-tips { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .4rem; font-size: .86rem; }
.mt-tips li { display: flex; gap: .5rem; align-items: baseline; }
.mt-tips .is-ok i { color: #16a34a; } .mt-tips .is-warn i { color: #d97706; } .mt-tips .is-bad { color: #b91c1c; font-weight: 700; } .mt-tips .is-bad i { color: #dc2626; }
.st { display: inline-grid; place-items: center; min-width: 46px; height: 26px; padding: 0 .4rem; border-radius: 8px; font: 700 .8rem var(--mono); flex: none; }
.st-2 { background: #dcfce7; color: #15803d; } .st-3 { background: #fef3c7; color: #b45309; } .st-4, .st-5 { background: #fee2e2; color: #b91c1c; } .st-0, .st-1 { background: var(--light); color: var(--muted); }

/* SEO checker */
.seo-input { display: flex; align-items: center; gap: .6rem; padding: .45rem .45rem .45rem 1.1rem; border-radius: 18px; border: 2px solid var(--border); background: #fbfcff; transition: border-color .2s, box-shadow .2s; }
.seo-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 5px rgba(47,107,255,.12); background: #fff; }
.seo-input > i { color: var(--muted); }
.seo-input input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.05rem; padding: .6rem 0; color: var(--text); outline: 0; }
.seo-input .btn-ts { flex: none; }
.seo-recent { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .7rem; font-size: .82rem; color: var(--muted); }
.seo-recent[hidden] { display: none; }
.seo-recent button { border: 1px solid var(--border); background: #fff; border-radius: 99px; padding: .2rem .7rem; font-size: .8rem; color: var(--text); max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-recent button:hover { border-color: var(--primary); color: var(--primary); }
.seo-loading { display: flex; align-items: center; justify-content: center; gap: 2.5rem; padding: 2.5rem 1rem 1rem; flex-wrap: wrap; }
.seo-loading[hidden] { display: none; }
.seo-radar { position: relative; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(47,107,255,.12) 0 30%, transparent 31%), radial-gradient(circle, transparent 0 55%, rgba(47,107,255,.08) 56% 57%, transparent 58%); border: 2px solid rgba(47,107,255,.25); color: var(--primary); font-size: 1.5rem; overflow: hidden; }
.seo-radar span { position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(47,107,255,.45), transparent 30%); animation: spin 1.4s linear infinite; }
.seo-radar i { position: relative; }
.seo-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-weight: 600; color: #a2abbf; }
.seo-steps li { display: flex; align-items: center; gap: .6rem; transition: color .3s; }
.seo-steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d5dbe8; flex: none; }
.seo-steps li.is-active { color: var(--text); }
.seo-steps li.is-active::before { border-color: var(--primary); border-top-color: transparent; animation: spin .8s linear infinite; }
.seo-steps li.is-done { color: #16a34a; }
.seo-steps li.is-done::before { border-color: #16a34a; background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.seo-report { margin-top: 2rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.seo-report[hidden] { display: none; }
.seo-hero { display: grid; grid-template-columns: 170px 1fr auto; gap: 1.8rem; align-items: center; padding: 1.6rem; border-radius: 22px; background: radial-gradient(500px 220px at 100% 0%, rgba(47,107,255,.1), transparent 60%), var(--light); }
.seo-score { position: relative; width: 170px; height: 170px; }
.seo-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.seo-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.seo-ring .bg { stroke: #e3e8f3; }
.seo-ring .fg { stroke-dashoffset: var(--c, 327); transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.seo-ring:not(.is-on) .fg { stroke-dashoffset: 327 !important; }
.seo-ring.is-on .fg { stroke-dashoffset: var(--off); }
.seo-score-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.seo-score-num strong { font-size: 3rem; font-weight: 800; }
.seo-score-num span { color: var(--muted); font-weight: 600; font-size: .85rem; margin-top: .2rem; }
.seo-grade { display: inline-block; padding: .25rem .8rem; border-radius: 99px; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--g); background: color-mix(in srgb, var(--g) 12%, transparent); }
.seo-hero-main h2 { font-size: 1.35rem; margin: .5rem 0 .3rem; overflow-wrap: anywhere; }
.seo-hero-main h2 a { color: var(--primary); }
.seo-redirected { margin: 0 0 .4rem; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.seo-counts { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .5rem 0 .9rem; font-weight: 700; font-size: .9rem; }
.c-pass { color: #16a34a; } .c-warn { color: #d97706; } .c-fail { color: #dc2626; }
.seo-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.seo-stats div { padding: .6rem .7rem; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.seo-stats b { display: block; font-size: 1.05rem; }
.seo-stats small { color: var(--muted); font-size: .74rem; font-weight: 600; }
.seo-actions { display: flex; flex-direction: column; gap: .5rem; }
.seo-actions .btn-ts { justify-content: center; padding: .6rem 1rem; font-size: .88rem; }
.seo-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.seo-cat { display: grid; grid-template-columns: 1fr auto; gap: .3rem .5rem; align-items: center; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--border); color: var(--text); transition: .2s; }
.seo-cat:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--text); }
.seo-cat span { font-weight: 700; font-size: .86rem; }
.seo-cat span i { color: var(--primary); margin-right: .2rem; }
.seo-cat b { font-size: 1.15rem; }
.seo-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--light); overflow: hidden; }
.seo-bar i { display: block; height: 100%; border-radius: inherit; }
.seo-previews { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; margin-bottom: 1.4rem; }
.seo-sub { margin: 0 0 .5rem; font-weight: 700; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.seo-sub i { color: var(--primary); }
.seo-previews .og-card { max-width: 420px; }
.seo-filter { position: sticky; top: calc(var(--header-h) + 6px); z-index: 5; display: flex; gap: .4rem; flex-wrap: wrap; padding: .5rem; margin-bottom: 1rem; border-radius: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: 1px solid var(--border); }
.seo-filter button { border: 0; border-radius: 10px; padding: .5rem .9rem; background: transparent; font-weight: 700; font-size: .86rem; color: var(--muted); }
.seo-filter button span { font-size: .72rem; padding: .05rem .45rem; border-radius: 99px; background: var(--light); margin-left: .2rem; }
.seo-filter button.is-active { background: var(--text); color: #fff; }
.seo-filter button.is-active span { background: rgba(255,255,255,.2); }
.seo-group { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin-bottom: 1rem; background: #fff; scroll-margin-top: calc(var(--header-h) + 80px); }
.seo-group[hidden] { display: none; }
.seo-group > header { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.2rem; background: var(--light); border-bottom: 1px solid var(--border); }
.seo-group h3 { font-size: 1.02rem; margin: 0; }
.seo-group h3 i { color: var(--primary); margin-right: .3rem; }
.seo-check { display: flex; gap: .9rem; padding: .95rem 1.2rem; border-bottom: 1px solid #eef1f7; }
.seo-check:last-child { border-bottom: 0; }
.seo-check[hidden] { display: none; }
.seo-ic { flex: none; font-size: 1.15rem; margin-top: .15rem; }
.is-pass > .seo-ic { color: #16a34a; } .is-warn > .seo-ic { color: #d97706; } .is-fail > .seo-ic { color: #dc2626; } .is-info > .seo-ic { color: #64748b; }
.seo-check-body { flex: 1; min-width: 0; }
.seo-check-top { display: flex; flex-wrap: wrap; gap: .1rem .8rem; align-items: baseline; }
.seo-check-top b { font-size: .95rem; }
.seo-check-top span { color: var(--muted); font-size: .9rem; }
.seo-val { display: block; margin-top: .45rem; padding: .45rem .7rem; border-radius: 8px; background: var(--light); color: var(--text); font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.seo-check details { margin-top: .45rem; font-size: .88rem; }
.seo-check summary { cursor: pointer; color: var(--primary); font-weight: 700; font-size: .84rem; }
.seo-check details p { margin: .4rem 0 0; padding: .6rem .8rem; border-left: 3px solid var(--primary); background: #f5f8ff; border-radius: 0 8px 8px 0; }
.seo-check details ul { margin: .5rem 0 0; padding-left: 1.1rem; font: .78rem/1.6 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.seo-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.seo-extra .seo-group { padding-bottom: .6rem; }
.seo-table { width: 100%; font-size: .88rem; }
.seo-table th { padding: .6rem 1.2rem; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.seo-table td { padding: .45rem 1.2rem; border-top: 1px solid #eef1f7; }
.kd-bar { display: inline-block; width: 60px; height: 6px; margin-right: .5rem; border-radius: 99px; background: var(--light); vertical-align: middle; overflow: hidden; }
.kd-bar i { display: block; height: 100%; background: var(--grad); }
.seo-extra .seo-sub { padding: 0 1.2rem; }
.seo-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.2rem; }
.seo-chips span { padding: .25rem .65rem; border-radius: 99px; background: var(--light); font-size: .82rem; }
.seo-chips b { color: var(--primary); }
.seo-outline { list-style: none; margin: 0; padding: .8rem 1.2rem; display: grid; gap: .3rem; font-size: .86rem; max-height: 420px; overflow: auto; }
.seo-outline li { display: flex; gap: .5rem; align-items: baseline; }
.seo-outline li span { flex: none; font: 700 .68rem var(--mono); padding: .1rem .35rem; border-radius: 5px; background: var(--light); color: var(--primary); }
.seo-outline .lv2 { padding-left: 1.2rem; } .seo-outline .lv3 { padding-left: 2.4rem; color: var(--muted); } .seo-outline .lv4 { padding-left: 3.6rem; color: var(--muted); }
.seo-chain, .rc-chain { list-style: none; margin: 0; padding: .9rem 1.2rem; display: grid; gap: .55rem; }
.seo-chain li { display: flex; gap: .7rem; align-items: center; font-size: .86rem; overflow-wrap: anywhere; }
.seo-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.4rem; padding: 1.6rem 1.8rem; border-radius: 20px; color: #fff; background: radial-gradient(400px 200px at 100% 0%, rgba(34,211,238,.35), transparent 60%), var(--grad); }
.seo-cta h3 { font-size: 1.3rem; margin: 0 0 .3rem; }
.seo-cta p { margin: 0; color: rgba(255,255,255,.85); }
.seo-time { margin: .8rem 0 0; text-align: center; color: var(--muted); font-size: .8rem; }

/* Meta tag generator */
.mt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.mt-count { font-weight: 600; font-size: .74rem; color: var(--muted); }
.mt-count.is-good { color: #16a34a; } .mt-count.is-short { color: #d97706; } .mt-count.is-over { color: #dc2626; }
.mt-meter { height: 5px; margin-top: .4rem; border-radius: 99px; background: #e3e8f3; overflow: hidden; }
.mt-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: #94a3b8; transition: width .2s, background .2s; }
.mt-meter.is-good i { background: #22c55e; } .mt-meter.is-short i { background: #f59e0b; } .mt-meter.is-over i { background: #ef4444; }
.mt-side { position: sticky; top: calc(var(--header-h) + 20px); }
.mt-side .rz-mode button { font-size: .8rem; }
.mt-preview { min-height: 180px; }

/* Schema generator */
.sg-types { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.sg-types button { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: .55rem .95rem; font-weight: 700; font-size: .88rem; color: var(--text); transition: .2s; }
.sg-types button i { color: var(--primary); }
.sg-types button:hover { border-color: #9db8ff; }
.sg-types button.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.sg-types button.is-active i { color: #fff; }
.sg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.sg-form { gap: .85rem; }
.sg-form .opt + .opt { margin-top: 0; }
.sg-out { position: sticky; top: calc(var(--header-h) + 20px); }
.sg-rep { display: grid; gap: .7rem; }
.sg-rep-head { margin: 0; font-weight: 700; font-size: .88rem; }
.sg-row { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.sg-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 800; margin-top: .2rem; }
.sg-row-fields { flex: 1; min-width: 0; display: grid; gap: .6rem; }
.sg-row-fields .opt + .opt { margin-top: 0; }
.sg-rep > .btn-ts { justify-self: start; }
.sg-days { display: flex; flex-wrap: wrap; gap: .3rem; }
.sg-days label { display: inline-flex; align-items: center; gap: .3rem; margin: 0 !important; padding: .3rem .55rem; border-radius: 8px; background: var(--light); font-size: .8rem !important; font-weight: 600 !important; cursor: pointer; }
.sg-days input { accent-color: var(--primary); }
.sg-test { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; }
.sg-test small { color: var(--muted); font-size: .78rem; flex-basis: 100%; }

/* Robots.txt generator */
.rb-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.rb-import { display: flex; align-items: center; gap: .6rem; padding: .35rem .35rem .35rem 1rem; border-radius: 14px; border: 1.5px solid var(--border); background: #fbfcff; }
.rb-import:focus-within { border-color: var(--primary); }
.rb-import > i { color: var(--muted); }
.rb-import input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; outline: 0; padding: .45rem 0; }
.rb-presets { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .84rem; color: var(--muted); }
.rb-presets button { border: 1.5px solid var(--border); background: #fff; border-radius: 99px; padding: .35rem .8rem; font-weight: 700; font-size: .8rem; color: var(--text); }
.rb-presets button:hover { border-color: var(--primary); color: var(--primary); }
.rb-presets button.is-active { background: var(--text); color: #fff; border-color: var(--text); }
.rb-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.rb-builder { display: grid; gap: 1rem; transition: opacity .2s; }
.rb-builder.is-off { opacity: .45; pointer-events: none; }
.rb-bots { display: grid; gap: 1rem; }
.rb-group { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.rb-group > p { margin: 0; padding: .6rem 1rem; background: var(--light); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rb-bot { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .55rem 1rem; border-top: 1px solid #eef1f7; }
.rb-bot b { display: block; font-size: .88rem; }
.rb-bot small { color: var(--muted); font-size: .76rem; }
.rb-seg { display: inline-flex; flex: none; padding: 3px; border-radius: 10px; background: var(--light); }
.rb-seg button { border: 0; background: transparent; border-radius: 8px; padding: .3rem .6rem; font-size: .75rem; font-weight: 700; color: var(--muted); }
.rb-seg button.is-active[data-v=default] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.rb-seg button.is-active[data-v=allow] { background: #16a34a; color: #fff; }
.rb-seg button.is-active[data-v=block] { background: #dc2626; color: #fff; }
.rb-side { position: sticky; top: calc(var(--header-h) + 20px); }
.rb-out { width: 100%; min-height: 300px; padding: 1rem; border-radius: 14px; border: 0; background: #0e1630; color: #dbe4ff; font: .82rem/1.65 var(--mono); resize: vertical; }
.rb-out:not([readonly]) { box-shadow: 0 0 0 3px var(--cyan); }
.rb-test { margin-top: 1.2rem; padding: 1rem; border-radius: 16px; background: var(--light); }
.rb-test-head { margin: 0 0 .6rem; font-weight: 800; font-size: .9rem; }
.rb-test-head i { color: var(--primary); }
.rb-test-row { display: grid; grid-template-columns: 1fr 180px; gap: .5rem; }
.rb-test-row input, .rb-test-row select { padding: .6rem .8rem; border-radius: 10px; border: 1.5px solid #dbe1ee; font: inherit; font-size: .9rem; background: #fff; min-width: 0; }
.rb-result { display: flex; gap: .7rem; align-items: flex-start; margin-top: .7rem; padding: .8rem 1rem; border-radius: 12px; font-size: .9rem; }
.rb-result[hidden] { display: none; }
.rb-result i { font-size: 1.2rem; margin-top: .1rem; }
.rb-result small { display: block; margin-top: .2rem; color: var(--muted); }
.rb-result code { font-size: .82rem; }
.rb-result.is-ok { background: #ecfdf3; } .rb-result.is-ok i { color: #16a34a; }
.rb-result.is-bad { background: #fef2f2; } .rb-result.is-bad i { color: #dc2626; }

/* Redirect checker */
.rc-input { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 1rem; }
.rc-input textarea { width: 100%; min-height: 130px; padding: .9rem 1rem; border-radius: 14px; border: 1.5px solid #dbe1ee; background: #fbfcff; font: .9rem/1.6 var(--mono); color: var(--text); resize: vertical; }
.rc-input textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,107,255,.12); background: #fff; }
.rc-controls { display: flex; flex-direction: column; gap: .7rem; }
.rc-controls .btn-ts { justify-content: center; }
.rc-controls small { text-align: center; color: var(--muted); font-size: .8rem; }
.rc-results { display: grid; gap: 1rem; margin-top: 1.5rem; }
.rc-results:empty { display: none; }
.rc-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; }
.rc-head { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1.1rem; background: var(--light); }
.rc-head > i { font-size: 1.2rem; margin-top: .15rem; }
.rc-head div { flex: 1; min-width: 0; }
.rc-head b { display: block; font: 600 .88rem var(--mono); overflow-wrap: anywhere; }
.rc-head span { font-size: .88rem; color: var(--muted); }
.rc-head.is-ok { background: #f0fdf4; } .rc-head.is-ok > i { color: #16a34a; }
.rc-head.is-warn { background: #fffbeb; } .rc-head.is-warn > i { color: #d97706; }
.rc-head.is-bad { background: #fef2f2; } .rc-head.is-bad > i { color: #dc2626; }
.rc-badge { flex: none; font-size: .75rem; font-weight: 800; padding: .2rem .6rem; border-radius: 99px; background: #fff; border: 1px solid var(--border); }
.rc-chain li { position: relative; display: flex; gap: .8rem; align-items: flex-start; }
.rc-chain li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 30px; bottom: -12px; width: 2px; background: #e3e8f3; }
.rc-hop { min-width: 0; }
.rc-hop a { display: block; font: .84rem var(--mono); color: var(--text); overflow-wrap: anywhere; }
.rc-hop a:hover { color: var(--primary); }
.rc-hop small { color: var(--muted); font-size: .78rem; }
.rc-headers { border-top: 1px solid var(--border); }
.rc-headers summary { padding: .7rem 1.1rem; cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--primary); }
.rc-headers table { width: 100%; font-size: .8rem; margin-bottom: .6rem; }
.rc-headers th { width: 34%; padding: .3rem 1.1rem; font: 600 .78rem var(--mono); color: var(--muted); vertical-align: top; }
.rc-headers td { padding: .3rem 1.1rem .3rem 0; font-family: var(--mono); overflow-wrap: anywhere; }

@media (max-width: 991.98px) {
    .seo-hero { grid-template-columns: 130px 1fr; }
    .seo-score { width: 130px; height: 130px; }
    .seo-score-num strong { font-size: 2.3rem; }
    .seo-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .seo-actions .btn-ts { flex: 1; }
    .seo-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .seo-previews, .seo-extra, .mt-grid, .sg-grid, .rb-grid, .rb-top { grid-template-columns: minmax(0, 1fr); }
    .mt-side, .sg-out, .rb-side { position: static; }
}
@media (max-width: 575.98px) {
    .seo-input { flex-wrap: wrap; padding: .6rem; }
    .seo-input .btn-ts { width: 100%; justify-content: center; }
    .seo-hero { grid-template-columns: 1fr; text-align: center; padding: 1.2rem; }
    .seo-score { margin: 0 auto; }
    .seo-counts { justify-content: center; }
    .seo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .seo-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .seo-check { padding: .85rem .9rem; gap: .7rem; }
    .rc-input { grid-template-columns: 1fr; }
    .rb-test-row { grid-template-columns: 1fr; }
    .rb-import { flex-wrap: wrap; }
    .rb-import .btn-ts { width: 100%; justify-content: center; }
    .rb-bot { flex-wrap: wrap; }
}

/* ==========================================================================
   Tools batch 5 (10 tools)
   ========================================================================== */
.tool-app [hidden] { display: none !important; }

/* Keyword density */
.kd-mode { max-width: 380px; }
.kd-text { width: 100%; padding: 1rem; border-radius: 16px; border: 2px solid var(--border); background: #fbfcff; font: inherit; font-size: .95rem; resize: vertical; }
.kd-text:focus { outline: 0; border-color: var(--primary); background: #fff; }
.kd-opts { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: .9rem; }
.kd-target { flex: 1; min-width: 240px; display: flex; align-items: center; gap: .5rem; padding: 0 .9rem; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; }
.kd-target i { color: var(--primary); }
.kd-target input { flex: 1; border: 0; padding: .65rem 0; font: inherit; outline: 0; min-width: 0; }
.kd-out { margin-top: 1.8rem; }
.kd-stats { margin-top: 0; margin-bottom: 1.2rem; }
.kd-place { margin-bottom: 1.2rem; padding: 1.1rem; border-radius: 16px; background: var(--light); }
.kd-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.kd-check { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.kd-check i { margin-top: .15rem; }
.kd-check.is-ok i { color: #16a34a; } .kd-check.is-bad i { color: #dc2626; }
.kd-check b { display: block; font-size: .88rem; }
.kd-check small { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kd-tabs { max-width: 360px; margin-bottom: .8rem; }
.kd-table-wrap, .emi-table-wrap { border: 1px solid var(--border); border-radius: 16px; overflow: auto; max-height: 560px; }
.kd-table th, .emi-table th { position: sticky; top: 0; background: var(--light); z-index: 1; white-space: nowrap; }
.kd-hot { font-size: .65rem; font-weight: 800; text-transform: uppercase; padding: .1rem .4rem; border-radius: 99px; background: #fee2e2; color: #b91c1c; }

/* Broken links */
.bl-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; margin: 1.8rem 0 1rem; }
.bl-verdict { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.3rem; border-radius: 18px; }
.bl-verdict > i { font-size: 1.8rem; }
.bl-verdict b { display: block; font-size: 1.2rem; }
.bl-verdict span { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.bl-verdict.is-ok { background: #f0fdf4; } .bl-verdict.is-ok > i { color: #16a34a; }
.bl-verdict.is-bad { background: #fef2f2; } .bl-verdict.is-bad > i { color: #dc2626; }
.bl-counts { display: flex; gap: .5rem; }
.bl-counts div { min-width: 82px; padding: .6rem .7rem; border-radius: 12px; background: var(--light); text-align: center; }
.bl-counts strong { display: block; font-size: 1.3rem; line-height: 1.2; }
.bl-counts span { font-size: .7rem; font-weight: 700; color: var(--muted); }
.bc-broken strong, .bc-error strong { color: #dc2626; } .bc-redirect strong { color: #d97706; } .bc-ok strong { color: #16a34a; } .bc-blocked strong { color: #64748b; }
.bl-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.bl-bar .seo-filter { position: static; }
.bl-scope { padding: .5rem .7rem; border-radius: 10px; border: 1.5px solid var(--border); font: inherit; font-size: .85rem; background: #fff; }
.bl-list { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.bl-item { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 1rem; border-bottom: 1px solid #eef1f7; }
.bl-item:last-child { border-bottom: 0; }
.bl-item.is-broken, .bl-item.is-error { background: #fffafa; }
.bl-main { flex: 1; min-width: 0; }
.bl-main a { display: block; font: .84rem var(--mono); color: var(--text); overflow-wrap: anywhere; }
.bl-main small { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.bl-final { font-family: var(--mono); }
.bl-state { flex: none; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: .3rem; }
.is-broken .bl-state, .is-error .bl-state { color: #dc2626; } .is-redirect .bl-state { color: #d97706; } .is-ok .bl-state { color: #16a34a; }

/* Image cropper */
.cr-app { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.cr-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 300px; padding: 0; border-radius: 16px; overflow: hidden; background: repeating-conic-gradient(#eef1f7 0 25%, #fff 0 50%) 0 0 / 20px 20px; user-select: none; touch-action: none; }
.cr-stage canvas { display: block; max-width: 100%; }
.cr-box { position: absolute; box-shadow: 0 0 0 9999px rgba(5,11,31,.55); outline: 2px solid #fff; cursor: move; touch-action: none; }
.cr-box:focus-visible { outline-color: var(--cyan); }
.cr-box.is-circle { border-radius: 50%; }
.cr-grid { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.5) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgba(255,255,255,.5) 0 calc(66.66% + .5px), transparent 0), linear-gradient(transparent calc(33.33% - .5px), rgba(255,255,255,.5) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgba(255,255,255,.5) 0 calc(66.66% + .5px), transparent 0); }
.cr-box.is-circle .cr-grid { border-radius: 50%; }
.cr-size { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); padding: .1rem .5rem; border-radius: 6px; background: rgba(5,11,31,.8); color: #fff; font: 600 .72rem var(--mono); white-space: nowrap; pointer-events: none; }
.cr-box b { position: absolute; width: 14px; height: 14px; background: #fff; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.cr-box b[data-h=nw] { left: -7px; top: -7px; cursor: nwse-resize; } .cr-box b[data-h=ne] { right: -7px; top: -7px; cursor: nesw-resize; }
.cr-box b[data-h=se] { right: -7px; bottom: -7px; cursor: nwse-resize; } .cr-box b[data-h=sw] { left: -7px; bottom: -7px; cursor: nesw-resize; }
.cr-box b[data-h=n] { left: calc(50% - 7px); top: -7px; cursor: ns-resize; } .cr-box b[data-h=s] { left: calc(50% - 7px); bottom: -7px; cursor: ns-resize; }
.cr-box b[data-h=e] { right: -7px; top: calc(50% - 7px); cursor: ew-resize; } .cr-box b[data-h=w] { left: -7px; top: calc(50% - 7px); cursor: ew-resize; }
.cr-box.is-locked b[data-h=n], .cr-box.is-locked b[data-h=s], .cr-box.is-locked b[data-h=e], .cr-box.is-locked b[data-h=w] { display: none; }
.cr-tools { display: flex; align-items: center; gap: .3rem; margin-top: .7rem; }
.cr-tools .np-btn { border: 1px solid var(--border); background: #fff; }
.cr-ratios { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.cr-ratios button { border: 1.5px solid var(--border); background: #fff; border-radius: 10px; padding: .45rem .2rem; font-weight: 700; font-size: .8rem; color: var(--text); }
.cr-ratios button.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.cr-preview { display: block; max-width: 100%; margin: 0 auto; border-radius: 10px; background: repeating-conic-gradient(#eef1f7 0 25%, #fff 0 50%) 0 0 / 14px 14px; box-shadow: var(--shadow); }

/* Favicon generator */
.fv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.fv-drop { min-height: 140px; }
.fv-emoji-input { font-size: 1.4rem !important; }
.fv-emojis { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.fv-emojis button { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 1.25rem; }
.fv-emojis button:hover { border-color: var(--primary); }
.fv-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: .8rem; }
.fv-browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #dee1e6; }
.fv-tabs { display: flex; gap: 2px; padding: .45rem .5rem 0; }
.fv-tab { display: flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border-radius: 10px 10px 0 0; font-size: .78rem; color: #3c4043; max-width: 190px; }
.fv-tab.is-active { background: #fff; }
.fv-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-tab > i { font-size: .65rem; color: #5f6368; margin-left: auto; }
.fv-tab canvas { width: 16px; height: 16px; flex: none; }
.fv-url { padding: .5rem .8rem; background: #fff; font-size: .78rem; color: #5f6368; border-top: 1px solid #eee; }
.fv-url i { color: #188038; margin-right: .3rem; }
.fv-sizes { display: flex; align-items: flex-end; justify-content: space-around; padding: .9rem; border-radius: 14px; background: var(--light); }
.fv-sizes div { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.fv-sizes small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.fv-big { display: grid; place-items: center; padding: 1rem; border-radius: 14px; background: repeating-conic-gradient(#eef1f7 0 25%, #fff 0 50%) 0 0 / 18px 18px; }
.fv-big canvas { width: 160px; height: 160px; }
.mt-code pre#fvCode { max-height: none; }

/* Split PDF */
.sp-modes { margin: 1.2rem 0 1rem; max-width: 620px; }
.sp-panel { gap: .8rem; }
.sp-panel > .btn-ts { align-self: flex-start; }
.sp-row { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.sp-quick { display: flex; gap: .3rem; }
.sp-quick button { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: .55rem .7rem; font-size: .8rem; font-weight: 700; }
.sp-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.sp-item { cursor: default; transition: border-color .15s, box-shadow .15s; }
.sp-grid.is-picking .sp-item { cursor: pointer; }
.sp-grid.is-picking .sp-item:hover { border-color: #9db8ff; }
.sp-thumb { display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--light); border-radius: 8px; overflow: hidden; }
.sp-thumb canvas { max-width: 100%; max-height: 100%; }
.sp-check { position: absolute; top: .8rem; right: .8rem; font-size: 1.3rem; color: #d5dbe8; background: #fff; border-radius: 50%; }
.sp-item.is-sel { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,.2); }
.sp-item.is-sel .sp-check { color: var(--primary); }
.sp-grid:not(.is-picking) .sp-check { display: none; }
.sp-more { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; text-align: center; }

/* Compress PDF */
.cz-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 1.2rem; }
.cz-levels button { text-align: left; padding: 1rem 1.1rem; border-radius: 14px; border: 2px solid var(--border); background: #fff; transition: .2s; }
.cz-levels button b { display: block; font-size: 1rem; }
.cz-levels button span { font-size: .8rem; color: var(--muted); }
.cz-levels button.is-active { border-color: var(--primary); background: rgba(47,107,255,.05); box-shadow: 0 0 0 3px rgba(47,107,255,.12); }
.cz-progress { margin-top: 1rem; }
.cz-progress small { color: var(--muted); font-size: .82rem; }
.cz-result { margin-top: 1.2rem; padding: 1.2rem 1.3rem; border-radius: 16px; }
.cz-result.is-ok { background: #f0fdf4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cz-result.is-warn { background: #fffbeb; display: flex; gap: .8rem; }
.cz-result.is-warn i { color: #d97706; font-size: 1.2rem; margin-top: .1rem; }
.cz-result.is-warn b { display: block; }
.cz-result.is-warn span { color: var(--muted); font-size: .9rem; }
.cz-sizes { display: flex; align-items: center; gap: 1rem; }
.cz-sizes small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; }
.cz-sizes b { font-size: 1.3rem; }
.cz-sizes > i { color: var(--muted); }
.cz-fit { margin: 0; color: #15803d; font-weight: 700; font-size: .9rem; }
.cz-note { margin: 1rem 0 0; color: var(--muted); font-size: .82rem; }

/* Fancy text */
.ft-input { position: relative; }
.ft-input textarea { width: 100%; padding: 1rem 3rem 1rem 1.2rem; border-radius: 18px; border: 2px solid var(--border); background: #fbfcff; font: inherit; font-size: 1.2rem; font-weight: 600; resize: none; }
.ft-input textarea:focus { outline: 0; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 5px rgba(47,107,255,.12); }
.ft-input .np-btn { position: absolute; right: .6rem; top: .7rem; }
.ft-filter { margin: 1rem 0; max-width: 560px; }
.ft-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .6rem; }
.ft-item { position: relative; display: flex; align-items: center; gap: .3rem; padding: .35rem .6rem .35rem .35rem; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; transition: border-color .15s, background .15s; }
.ft-item:hover { border-color: #9db8ff; }
.ft-item.is-copied { border-color: #22c55e; background: #f0fdf4; }
.ft-fav { flex: none; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: #cbd3e5; }
.ft-fav.is-on, .ft-fav:hover { color: #f59e0b; }
.ft-copy { flex: 1; min-width: 0; border: 0; background: transparent; text-align: left; padding: .35rem 0; }
.ft-copy small { display: block; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ft-copy span { display: block; font-size: 1.15rem; color: var(--text); overflow-wrap: anywhere; line-height: 1.45; }
.ft-ic { color: var(--muted); font-size: .9rem; }
.ft-toast { position: fixed; left: 50%; bottom: 28px; z-index: 3000; transform: translate(-50%, 20px); padding: .6rem 1.1rem; border-radius: 99px; background: #0e1630; color: #fff; font-weight: 700; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; }
.ft-toast i { color: #4ade80; margin-right: .3rem; }
.ft-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* YouTube tag extractor */
.ytt-out { margin-top: 1.8rem; }
.ytt-card { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.4rem; align-items: start; padding: 1.1rem; border-radius: 18px; background: var(--light); }
.ytt-thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.ytt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ytt-thumb span { position: absolute; right: .5rem; bottom: .5rem; padding: .1rem .4rem; border-radius: 5px; background: rgba(0,0,0,.8); color: #fff; font: 600 .75rem var(--mono); }
.ytt-meta h2 { font-size: 1.2rem; margin: 0 0 .3rem; }
.ytt-meta p { margin: 0 0 .6rem; font-weight: 600; }
.ytt-stats { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .8rem; font-size: .85rem; color: var(--muted); }
.ytt-stats i { color: var(--primary); margin-right: .2rem; }
.ytt-tags { display: flex; flex-wrap: wrap; gap: .4rem; padding: 1rem 1.2rem; }
.ytt-tag { border: 1.5px solid var(--border); background: #fff; border-radius: 99px; padding: .3rem .8rem; font-size: .85rem; font-weight: 600; color: var(--text); transition: .15s; }
button.ytt-tag:hover { border-color: #ff6b81; }
.ytt-tag.is-on { background: #ff0033; border-color: #ff0033; color: #fff; }
.ytt-tag.is-hash { color: #065fd4; }
.ytt-count { margin: 0; padding: 0 1.2rem 1rem; color: var(--muted); font-size: .82rem; }
.ytt-text { margin: 0; padding: 1rem 1.2rem; font-size: .92rem; overflow-wrap: anywhere; }
.ytt-desc summary { padding: .8rem 1.2rem; cursor: pointer; color: var(--primary); font-weight: 700; font-size: .88rem; }
.ytt-desc .ytt-text { padding-top: 0; }

/* Percentage calculator */
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pc-card { padding: 1.3rem 1.4rem; border-radius: 18px; border: 1px solid var(--border); background: #fff; transition: border-color .2s, box-shadow .2s; }
.pc-card:focus-within { border-color: rgba(47,107,255,.5); box-shadow: var(--shadow); }
.pc-card h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.02rem; margin: 0 0 .9rem; }
.pc-card h2 span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: .75rem; }
.pc-q { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 .9rem; font-weight: 600; }
.pc-q input, .pc-q select { width: 110px; padding: .55rem .7rem; border-radius: 10px; border: 1.5px solid #dbe1ee; background: #fbfcff; font: inherit; font-weight: 700; color: var(--text); }
.pc-q select { width: auto; }
.pc-q input:focus, .pc-q select:focus { outline: 0; border-color: var(--primary); background: #fff; }
.pc-res { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem 1rem; border-radius: 12px; background: var(--light); }
.pc-res b { font-size: 1.5rem; font-weight: 800; }
.pc-res b small { font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: .3rem; }
.pc-f { margin: .6rem 0 0; font: .78rem var(--mono); color: var(--muted); }
.pc-meter { height: 8px; margin-top: .6rem; border-radius: 99px; background: var(--light); overflow: hidden; }
.pc-meter i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }

/* EMI calculator */
.emi-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.emi-form input[type=number] { font-size: 1.15rem !important; font-weight: 700; }
.emi-form input[type=range] { margin-top: .6rem; }
.emi-cur select { padding: .1rem .3rem; border-radius: 6px; border: 1px solid #dbe1ee; font-size: .8rem; font-weight: 700; background: #fff; }
.emi-unit { padding: 2px; font-weight: 400; }
.emi-unit button { padding: .15rem .6rem; font-size: .75rem; }
.emi-presets { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .82rem; color: var(--muted); }
.emi-presets button { border: 1px solid var(--border); background: #fff; border-radius: 99px; padding: .25rem .7rem; font-size: .78rem; font-weight: 700; color: var(--text); }
.emi-presets button:hover { border-color: var(--primary); color: var(--primary); }
.emi-result { display: flex; flex-direction: column; justify-content: center; padding: 1.8rem; border-radius: 20px; color: #fff; background: radial-gradient(400px 220px at 100% 0%, rgba(34,211,238,.3), transparent 60%), radial-gradient(360px 240px at 0% 100%, rgba(139,92,246,.4), transparent 60%), var(--bg-dark-2); }
.emi-big { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.3rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.emi-split { display: flex; align-items: center; gap: 1.4rem; }
.emi-donut { width: 130px; height: 130px; flex: none; transform: rotate(-90deg); }
.emi-donut circle { fill: none; stroke-width: 16; }
.emi-donut .d-p { stroke: #2f6bff; }
.emi-donut .d-i { stroke: #22d3ee; stroke-dasharray: 0 302; transition: stroke-dasharray .5s; }
.emi-split ul { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: .6rem; }
.emi-split li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: .5rem; font-size: .92rem; }
.emi-split li span { color: #c3cde8; }
.dot-p, .dot-i { width: 12px; height: 12px; border-radius: 3px; }
.dot-p { background: #2f6bff; } .dot-i { background: #22d3ee; }
.emi-total { grid-template-columns: 1fr auto !important; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.12); }
.emi-total b { font-size: 1.1rem; }
.emi-note { margin: 1.1rem 0 0; color: var(--muted-dark); font-size: .85rem; }
.emi-view button { padding: .3rem .7rem; font-size: .78rem; }

@media (max-width: 991.98px) {
    .cr-app, .fv-grid, .emi-grid, .ytt-card { grid-template-columns: minmax(0, 1fr); }
    .fv-side { position: static; }
    .bl-summary { grid-template-columns: 1fr; }
    .bl-counts { flex-wrap: wrap; }
}
@media (max-width: 767.98px) {
    .pc-grid { grid-template-columns: 1fr; }
    .cz-levels { grid-template-columns: 1fr; }
    .ft-list { grid-template-columns: 1fr; }
    .emi-split { flex-direction: column; align-items: stretch; }
    .emi-donut { margin: 0 auto; }
}
@media (max-width: 575.98px) {
    .kd-opts .btn-ts { width: 100%; justify-content: center; }
    .bl-counts div { min-width: 0; flex: 1; }
    .bl-state { display: none; }
    .cr-ratios { grid-template-columns: repeat(4, 1fr); }
    .pc-q input { width: 92px; }
}
.seo-group > header { flex-wrap: wrap; gap: .6rem; }

/* ==========================================================================
   Tools batch 6 (every category = 8 tools)
   ========================================================================== */
/* Domain age */
.da-out { margin-top: 1.8rem; }
.da-hero { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.4rem; align-items: center; padding: 1.4rem; border-radius: 20px; background: var(--light); margin-bottom: 1rem; }
.da-age { padding: 1.3rem; border-radius: 16px; color: #fff; text-align: center; background: radial-gradient(260px 160px at 100% 0%, rgba(34,211,238,.35), transparent 60%), var(--bg-dark-2); }
.da-age small { display: block; color: var(--muted-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.da-age strong { display: block; font-size: 2rem; font-weight: 800; margin: .3rem 0; }
.da-age strong span { font-size: .9rem; color: var(--cyan); margin-left: 1px; }
.da-age em { font-style: normal; color: #c3cde8; font-size: .85rem; }
.da-main h2 { font-size: 1.5rem; margin: 0 0 .8rem; overflow-wrap: anywhere; }
.da-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.da-dates div { padding: .8rem .9rem; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.da-dates i { color: var(--primary); }
.da-dates span { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; margin-top: .3rem; }
.da-dates b { font-size: .95rem; }
.da-dates b small { color: var(--muted); font-weight: 600; }
.da-dates .is-warn { border-color: #fcd34d; background: #fffbeb; } .da-dates .is-bad { border-color: #fca5a5; background: #fef2f2; } .da-dates .is-ok b small { color: #16a34a; }
.da-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.da-body { padding: 1rem 1.2rem; }
.da-big { font-size: 1.15rem; font-weight: 800; margin: 0 0 .3rem; }
.da-dnssec { margin: .7rem 0 0; font-size: .88rem; color: var(--muted); }
.da-dnssec.is-on { color: #16a34a; }
.da-status { list-style: none; margin: 0; padding: .6rem 1.2rem 1rem; display: grid; gap: .5rem; }
.da-status li { display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; font-size: .86rem; }
.da-status code { font-size: .78rem; background: var(--light); padding: .1rem .4rem; border-radius: 6px; }
.da-status span { color: var(--muted); }
.da-status .is-bad code { background: #fee2e2; color: #b91c1c; }
.da-dns th { width: 220px; padding: .6rem 1.2rem !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .82rem !important; color: var(--text) !important; vertical-align: top; }
.da-dns td { padding: .6rem 1.2rem !important; }
.da-dns code { display: inline-block; margin: 0 .35rem .35rem 0; padding: .15rem .5rem; border-radius: 6px; background: var(--light); font-size: .78rem; overflow-wrap: anywhere; }

/* Watermark */
.wm-app, .pp-app { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.5rem; align-items: start; }
.wm-stage { display: grid; place-items: center; padding: .6rem; border-radius: 16px; background: repeating-conic-gradient(#eef1f7 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.wm-stage canvas { max-width: 100%; max-height: 62vh; border-radius: 8px; box-shadow: var(--shadow); }
.wm-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.wm-thumbs button { position: relative; width: 64px; height: 64px; padding: 0; border-radius: 10px; border: 2px solid transparent; overflow: hidden; background: var(--light); }
.wm-thumbs button.is-active { border-color: var(--primary); }
.wm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.wm-thumbs span { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; line-height: 18px; }
.wm-pos, .pn-pos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.wm-pos button, .pn-pos button { position: relative; height: 38px; border-radius: 8px; border: 1.5px solid var(--border); background: #fff; }
.wm-pos button i:empty, .pn-pos button i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #cbd3e5; }
.wm-pos [data-p^=t] i, .pn-pos [data-p^=t] i { top: 6px; } .wm-pos [data-p^=m] i { top: calc(50% - 4px); } .wm-pos [data-p^=b] i, .pn-pos [data-p^=b] i { bottom: 6px; }
.wm-pos [data-p$=l] i, .pn-pos [data-p$=l] i { left: 8px; } .wm-pos [data-p$=c] i, .pn-pos [data-p$=c] i { left: calc(50% - 4px); } .wm-pos [data-p$=r] i, .pn-pos [data-p$=r] i { right: 8px; }
.wm-pos button.is-active, .pn-pos button.is-active { border-color: var(--primary); background: rgba(47,107,255,.06); }
.wm-pos button.is-active i:empty, .pn-pos button.is-active i { background: var(--primary); }
.wm-pos .wm-tile { grid-column: 1 / -1; font-weight: 700; font-size: .82rem; color: var(--text); }
.wm-pos .wm-tile i { position: static; color: var(--primary); }

/* Passport photo */
.pp-main { display: flex; flex-direction: column; align-items: center; }
.pp-stage { position: relative; overflow: hidden; border-radius: 6px; cursor: grab; touch-action: none; box-shadow: 0 0 0 1px var(--border), var(--shadow-lg); }
.pp-stage:active { cursor: grabbing; }
.pp-stage canvas { display: block; }
.pp-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pp-guide ellipse { fill: none; stroke: rgba(34,211,238,.95); stroke-width: .6; stroke-dasharray: 2 1.2; vector-effect: non-scaling-stroke; }
.pp-guide line { stroke: rgba(34,211,238,.7); stroke-width: .4; stroke-dasharray: 1.5 1.5; vector-effect: non-scaling-stroke; }
.pp-hint { margin: .8rem 0 .4rem; color: var(--muted); font-size: .84rem; text-align: center; }
.pp-main .opt { width: 100%; max-width: 420px; }
.pp-bgs { display: flex; gap: .4rem; }
.pp-bgs button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); }
.pp-bgs button.is-active { box-shadow: 0 0 0 3px var(--primary); }
.pp-out { display: block; margin: 0 auto; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* Rotate / organize / page numbers */
.ro-grid, .or-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ro-box { display: grid; place-items: center; aspect-ratio: 1; background: var(--light); border-radius: 8px; overflow: hidden; }
.ro-box .sp-thumb { aspect-ratio: auto; background: none; transition: transform .3s; }
.ro-box .sp-thumb canvas, .ro-box .sp-thumb img { display: block; max-width: 100%; max-height: 140px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.ro-item.is-sel { border-color: var(--primary); }
.or-item { cursor: grab; }
.or-item.is-dragging { opacity: .4; }
.or-item.is-over { border-color: var(--primary); box-shadow: -4px 0 0 var(--primary); }
.or-item .pd-tools button { font-size: .72rem; }
.pn-app { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.pn-preview { position: sticky; top: calc(var(--header-h) + 20px); text-align: center; }
.pn-canvas { position: relative; display: inline-grid; place-items: center; padding: 1rem; border-radius: 16px; background: var(--light); min-height: 300px; min-width: 240px; }
.pn-canvas canvas { max-width: 100%; box-shadow: 0 6px 24px rgba(0,0,0,.18); background: #fff; }
.pn-canvas .spinner-border { position: absolute; }
.pn-pos { grid-template-columns: repeat(3, 1fr); }

/* YouTube money */
.ym-local { color: #c3cde8; margin: -.8rem 0 1rem; font-size: .92rem; }
.ym-table { width: 100%; font-size: .9rem; border-collapse: collapse; }
.ym-table th, .ym-table td { padding: .5rem .4rem; border-bottom: 1px solid rgba(255,255,255,.1); text-align: right; }
.ym-table th:first-child { text-align: left; }
.ym-table thead th { color: var(--muted-dark); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.ym-table tbody th { color: #c3cde8; font-weight: 600; }
.ym-table .is-avg { color: var(--cyan); font-weight: 800; }
.ym-goal-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 600; }
.ym-goal-row input { width: 120px; padding: .5rem .7rem; border-radius: 10px; border: 1.5px solid #dbe1ee; font: inherit; font-weight: 700; }
.ym-goal-row b { color: var(--primary); }

/* Engagement rate */
.er-platforms { display: flex; flex-wrap: wrap; gap: .4rem; }
.er-platforms button { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: .55rem .95rem; font-weight: 700; font-size: .88rem; color: var(--text); }
.er-platforms button.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.er-gauge { position: relative; margin: .2rem 0 1rem; }
.er-gauge::before { content: ""; display: block; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #ef4444 0 25%, #f59e0b 25% 50%, #22c55e 50% 75%, #06b6d4 75%); }
.er-gauge i { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.3); transition: left .4s; }
.er-scale { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: .4rem; font-size: .72rem; color: var(--muted-dark); text-align: center; }
.er-verdict { color: #dbe4ff; font-size: .92rem; margin: 0; }
.er-l0 { color: #fca5a5; } .er-l1 { color: #fcd34d; } .er-l2 { color: #86efac; } .er-l3 { color: #67e8f9; }

/* Unit converter */
.uc-cats { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.2rem; }
.uc-cats button { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid var(--border); background: #fff; border-radius: 10px; padding: .45rem .8rem; font-weight: 700; font-size: .84rem; color: var(--text); }
.uc-cats button i { color: var(--primary); }
.uc-cats button.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.uc-cats button.is-active i { color: #fff; }
.uc-box { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: end; padding: 1.3rem; border-radius: 18px; background: var(--light); }
.uc-side label { display: block; font-weight: 700; font-size: .82rem; color: var(--muted); margin-bottom: .35rem; }
.uc-side input, .uc-out { display: block; width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid #dbe1ee; background: #fff; font: inherit; font-size: 1.5rem; font-weight: 800; color: var(--text); min-height: 58px; overflow-wrap: anywhere; }
.uc-out { background: #eef4ff; border-color: #c7d7fe; color: var(--primary-600); }
.uc-side select { width: 100%; margin-top: .5rem; padding: .6rem .8rem; border-radius: 10px; border: 1.5px solid #dbe1ee; font: inherit; font-weight: 600; background: #fff; }
.uc-swap { width: 48px; height: 48px; margin-bottom: 40px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; box-shadow: var(--shadow); transition: transform .25s; }
.uc-swap:hover { transform: rotate(180deg); }
.uc-formula { margin: .8rem 0; color: var(--muted); font: .85rem var(--mono); text-align: center; }
.uc-all { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.uc-item { display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem; text-align: left; padding: .7rem .9rem; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; transition: .15s; }
.uc-item b { font-size: 1.05rem; overflow-wrap: anywhere; }
.uc-item span { grid-column: 1; color: var(--muted); font-size: .78rem; font-weight: 600; }
.uc-item i { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--muted); }
.uc-item:hover { border-color: #9db8ff; }
.uc-item.is-active { border-color: var(--primary); }
.uc-item.is-copied { border-color: #22c55e; background: #f0fdf4; }

/* Date calculator */
.dc-mode { max-width: 520px; }
.dc-add { display: grid; grid-template-columns: 110px 1fr 150px; gap: .5rem; margin-top: .8rem; }
.dc-add select, .dc-add input { padding: .7rem .8rem; border-radius: 10px; border: 1.5px solid #dbe1ee; background: #fff; font: inherit; font-weight: 700; min-width: 0; }
.dc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.dc-facts div { padding: .65rem .8rem; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.dc-facts span { display: block; color: var(--muted-dark); font-size: .74rem; font-weight: 600; }
.dc-facts b { font-size: .98rem; }

@media (max-width: 991.98px) {
    .wm-app, .pp-app, .pn-app, .da-hero, .da-grid { grid-template-columns: minmax(0, 1fr); }
    .pn-preview { position: static; }
}
@media (max-width: 767.98px) {
    .uc-box { grid-template-columns: 1fr; }
    .uc-swap { margin: 0 auto; transform: rotate(90deg); }
    .da-dates { grid-template-columns: 1fr; }
    .da-dns th { width: 120px; }
}
@media (max-width: 575.98px) {
    .dc-add { grid-template-columns: 1fr 1fr; }
    .dc-add #dcAmt { grid-column: 1 / -1; order: -1; }
    .dc-facts { grid-template-columns: 1fr; }
}
.mega { max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; overscroll-behavior: contain; }

/* ==========================================================================
   Internet speed test + What is my IP
   ========================================================================== */
.st-app { max-width: 920px; margin: 0 auto; }
.st-gauge-wrap { position: relative; width: min(100%, 420px); margin: 0 auto; }
.st-gauge { width: 100%; display: block; overflow: visible; }
.st-track, .st-fill { fill: none; stroke-width: 16; stroke-linecap: round; }
.st-track { stroke: #e8edf7; }
.st-fill { stroke: url(#stGrad); transition: stroke-dashoffset .25s linear; }
.st-gauge text { font: 700 10px var(--font); fill: #94a0b8; text-anchor: middle; }
.st-needle { transition: transform .25s linear; }
.st-needle line { stroke: var(--text); stroke-width: 4; stroke-linecap: round; }
.st-needle circle { fill: var(--text); }
.st-read { position: absolute; left: 0; right: 0; top: 60%; text-align: center; line-height: 1; }
.st-read strong { display: block; font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.st-read span { color: var(--muted); font-weight: 700; font-size: .85rem; }
.st-read em { display: block; margin-top: .5rem; font-style: normal; color: var(--primary); font-weight: 700; font-size: .9rem; }
.st-go { position: relative; display: block; width: 104px; height: 104px; margin: .6rem auto 0; border: 0; border-radius: 50%; color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: .08em; background: var(--grad); box-shadow: 0 16px 40px -12px rgba(47,107,255,.7); transition: transform .2s; }
.st-go::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(47,107,255,.35); animation: stPulse 2s infinite; }
.st-go:hover { transform: scale(1.05); }
.st-go.is-running { opacity: .5; pointer-events: none; }
.st-go.is-running::before { animation: none; }
@keyframes stPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.st-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: 1.6rem; }
.st-card { padding: 1rem; border-radius: 16px; background: var(--light); border: 2px solid transparent; text-align: center; transition: border-color .2s, background .2s; }
.st-card.is-active { border-color: var(--primary); background: #fff; box-shadow: var(--shadow); }
.st-card span { display: block; color: var(--muted); font-weight: 700; font-size: .8rem; }
.st-card span i { color: var(--primary); }
.st-card[data-k=up] span i { color: #8b5cf6; }
.st-card b { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.st-card small { color: var(--muted); font-weight: 600; }
.st-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin-top: 1rem; color: var(--muted); font-size: .86rem; }
.st-meta i { color: var(--primary); margin-right: .2rem; }
.st-meta b { color: var(--text); font-weight: 600; }
.st-verdict { display: grid; grid-template-columns: 260px 1fr; gap: 1rem; margin-top: 1.5rem; padding: 1.2rem; border-radius: 18px; background: var(--light); }
.st-grade { padding: 1rem 1.2rem; border-radius: 14px; color: #fff; background: var(--bg-dark-2); }
.st-grade b { display: block; font-size: 1.5rem; }
.st-grade span { color: #c3cde8; font-size: .88rem; }
.st-excellent b { color: #67e8f9; } .st-good b { color: #86efac; } .st-average b { color: #fcd34d; } .st-slow b { color: #fca5a5; }
.st-uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.st-uses li { display: flex; align-items: center; gap: .55rem; padding: .55rem .8rem; border-radius: 10px; background: #fff; font-weight: 600; font-size: .88rem; }
.st-uses li > i:first-child { color: var(--primary); width: 18px; text-align: center; }
.st-mark { margin-left: auto; }
.st-uses .is-ok .st-mark { color: #16a34a; } .st-uses .is-no { color: var(--muted); } .st-uses .is-no .st-mark { color: #dc2626; }
.st-history { margin-top: 1.5rem; }
.st-history table { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.st-note { margin: 1.2rem 0 0; color: var(--muted); font-size: .82rem; text-align: center; }

.ip-hero { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.6rem 1.8rem; border-radius: 22px; color: #fff; background: radial-gradient(420px 220px at 100% 0%, rgba(34,211,238,.35), transparent 60%), radial-gradient(380px 240px at 0% 100%, rgba(139,92,246,.4), transparent 60%), var(--bg-dark-2); }
.ip-main small { color: var(--muted-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.ip-value { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: .3rem 0 .8rem; }
.ip-value strong { font: 800 clamp(1.6rem, 4.5vw, 2.6rem) var(--mono); letter-spacing: -.01em; overflow-wrap: anywhere; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ip-versions { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .88rem; }
.ip-versions b { color: var(--cyan); margin-right: .3rem; }
.ip-versions code { color: #dbe4ff; font-size: .85rem; overflow-wrap: anywhere; }
.ip-flag { flex: none; text-align: center; font-size: 3.4rem; line-height: 1; color: rgba(255,255,255,.3); }
.ip-flag small { display: block; margin-top: .4rem; font-size: .8rem; color: #c3cde8; }
.ip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.ip-grid .seo-group { margin: 0; }
.ip-dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; padding: 1rem 1.2rem; font-size: .88rem; }
.ip-dl dt { color: var(--muted); font-weight: 600; }
.ip-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.ip-dl code { font-size: .82rem; }
.ip-ua { display: block; color: var(--muted); font-weight: 400; text-align: left; font-size: .72rem; }
.ip-dl-wide { grid-template-columns: repeat(2, auto 1fr); }
.ip-lookup { display: flex; gap: .6rem; padding: 1rem 1.2rem; }
.ip-lookup input { flex: 1; min-width: 0; padding: .7rem .9rem; border-radius: 12px; border: 1.5px solid #dbe1ee; font: .95rem var(--mono); }
.ip-lookup input:focus { outline: 0; border-color: var(--primary); }

@media (max-width: 991.98px) {
    .ip-grid { grid-template-columns: 1fr; }
    .st-verdict { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .st-results { grid-template-columns: repeat(2, 1fr); }
    .st-uses { grid-template-columns: 1fr; }
    .ip-hero { flex-direction: column; align-items: flex-start; padding: 1.3rem; }
    .ip-flag { display: none; }
    .ip-dl-wide { grid-template-columns: auto 1fr; }
    .ip-lookup { flex-direction: column; }
}
.st-read { top: 64%; }
.st-go { margin-top: 1rem; }
.st-read { top: 70%; }

/* ==========================================================================
   Tabbed tools mega menu (7 categories)
   ========================================================================== */
.mega-tabs { padding: 0; overflow: hidden; }
.mega-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 430px; }
.mega-rail { display: flex; flex-direction: column; gap: .15rem; padding: 1rem .7rem; background: rgba(0,0,0,.18); border-right: 1px solid rgba(255,255,255,.06); }
.mega-tab { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .7rem .8rem; border: 0; border-radius: 12px; background: transparent; color: #c9d3ee; font-weight: 700; font-size: .9rem; text-align: left; transition: background .15s, color .15s; }
.mega-tab i { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.06); color: var(--cyan); font-size: .85rem; }
.mega-tab em { margin-left: auto; font-style: normal; font-size: .7rem; padding: .1rem .45rem; border-radius: 99px; background: rgba(255,255,255,.07); color: var(--muted-dark); }
.mega-tab:hover, .mega-tab.is-active { background: rgba(255,255,255,.07); color: #fff; }
.mega-tab.is-active i { background: var(--grad); color: #fff; }
.mega-tab.is-active em { background: rgba(34,211,238,.18); color: var(--cyan); }
.mega-panes { padding: 1.2rem 1.4rem; }
.mega-pane { display: none; }
.mega-pane.is-active { display: block; animation: megaIn .2s ease; }
@keyframes megaIn { from { opacity: 0; transform: translateX(6px); } }
.mega-pane-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .8rem; margin-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.mega-pane-head b { display: block; color: #fff; font-size: 1.02rem; }
.mega-pane-head span { color: var(--muted-dark); font-size: .82rem; }
.mega-pane-head a { flex: none; color: var(--cyan); font-weight: 700; font-size: .84rem; }
.mega-pane-head a:hover { color: #fff; }
.mega-tabs .mega-pane ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .8rem; }
.mega-tabs .mega-pane ul a { align-items: flex-start; padding: .6rem .6rem; margin: 0; }
.mega-tabs .mega-pane ul a > i { margin-top: .15rem; font-size: 1.1rem; }
.mega-tabs .mega-pane ul a > span { min-width: 0; }
.mega-tabs .mega-pane ul b { display: flex; align-items: center; gap: .4rem; color: #fff; font-size: .9rem; }
.mega-tabs .mega-pane ul b em { margin-left: 0; }
.mega-tabs .mega-pane ul small { display: block; color: var(--muted-dark); font-weight: 500; font-size: .76rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-tabs .mega-foot { margin: 0; border-radius: 0; }
@media (max-width: 1199.98px) {
    .mega-body { grid-template-columns: 210px minmax(0, 1fr); }
    .mega-tab { font-size: .84rem; padding: .6rem .6rem; }
    .mega-tabs .mega-pane ul small { display: none; }
}

/* ==========================================================================
   Network & Website tools (batch 7)
   ========================================================================== */
.og-verdict { display: flex; align-items: center; gap: .9rem; margin: 0 0 1rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--light); }
.og-verdict > i { font-size: 1.5rem; flex: none; }
.og-verdict b { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.og-verdict span { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.og-verdict.is-ok { background: #f0fdf4; } .og-verdict.is-ok > i { color: #16a34a; }
.og-verdict.is-warn { background: #fffbeb; } .og-verdict.is-warn > i { color: #d97706; }
.og-verdict.is-bad { background: #fef2f2; } .og-verdict.is-bad > i { color: #dc2626; }
.og-out, #dnsOut, #slOut, #hhOut, #riOut, #wdOut { margin-top: 1.6rem; }
.og-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1.2rem; }
.og-previews .og-card, .og-previews .x-card { max-width: 480px; }
.og-li .og-body { background: #fff; border-top: 1px solid #e0e0e0; }
.og-li .og-body b { font-size: .95rem; }
.og-wa { padding: .8rem; border-radius: 12px; background: #efeae2; }
.og-wa-card { display: flex; gap: .6rem; padding: .5rem; border-radius: 8px; background: #d1f4cc; }
.og-wa-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; flex: none; }
.og-wa-card b { display: block; font-size: .88rem; color: #111b21; }
.og-wa-card span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8rem; color: #54656f; }
.og-wa-card small { color: #667781; font-size: .75rem; }
.og-wa p { margin: .4rem .2rem 0; color: #027eb5; font-size: .82rem; overflow-wrap: anywhere; }
.og-x-small { display: flex; border: 1px solid #cfd9de; border-radius: 16px; overflow: hidden; }
.og-x-small img, .og-x-small > span { width: 120px; min-height: 120px; object-fit: cover; flex: none; background: #eef1f7; }
.og-x-small div { padding: .7rem .9rem; min-width: 0; }
.og-x-small small { color: #536471; font-size: .8rem; }
.og-x-small b { display: block; font-size: .9rem; }
.og-x-small em { font-style: normal; color: #536471; font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.dns-types { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.dns-types label { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 99px; border: 1px solid var(--border); background: #fff; font-weight: 700; font-size: .8rem; cursor: pointer; margin: 0; }
.dns-types input { accent-color: var(--primary); }
.dns-type { display: inline-block; min-width: 54px; padding: .1rem .45rem; margin-right: .4rem; border-radius: 6px; background: var(--grad); color: #fff; font: 700 .75rem var(--mono); text-align: center; }
.dns-group h3 { font-size: .95rem; }
.dns-table td { vertical-align: top; }
.dns-val { display: inline; border: 0; padding: 0; background: none; text-align: left; font: .84rem var(--mono); color: var(--text); overflow-wrap: anywhere; word-break: break-all; }
.dns-val:hover { color: var(--primary); }
.dns-val.is-copied { color: #16a34a; }
.dns-ttl { width: 110px; color: var(--muted); font-size: .78rem; white-space: nowrap; text-align: right; }
.dns-tag { display: inline-block; margin-left: .4rem; padding: .05rem .45rem; border-radius: 99px; background: rgba(47,107,255,.1); color: var(--primary); font-size: .68rem; font-weight: 800; }
.dns-tag.is-muted { background: var(--light); color: var(--muted); }
.dns-alt { margin: 0; padding: .6rem 1.2rem .9rem; font-size: .82rem; color: #b45309; overflow-wrap: anywhere; }

.wd-quick { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: .7rem; font-size: .82rem; color: var(--muted); }
.wd-quick button { border: 1px solid var(--border); background: #fff; border-radius: 99px; padding: .2rem .7rem; font-size: .8rem; font-weight: 600; }
.wd-quick button:hover { border-color: var(--primary); color: var(--primary); }
.wd-card { display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem; border-radius: 20px; }
.wd-card.is-up { background: linear-gradient(135deg, #ecfdf3, #f0fdfa); } .wd-card.is-down { background: linear-gradient(135deg, #fef2f2, #fff7ed); }
.wd-icon { font-size: 3rem; flex: none; }
.is-up .wd-icon { color: #16a34a; } .is-down .wd-icon { color: #dc2626; }
.wd-main h2 { font-size: 1.5rem; margin: 0 0 .2rem; overflow-wrap: anywhere; }
.wd-main p { margin: 0; color: var(--muted); }
.wd-reason { margin-top: .4rem !important; color: var(--text) !important; font-weight: 600; font-size: .9rem; }
.wd-stats { margin-top: 1rem; }
.wd-stats strong small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.wd-tips { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .9rem; display: grid; gap: .25rem; }
.wd-auto { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; color: var(--muted); font-size: .85rem; }

.sl-port { flex: none !important; width: 80px !important; padding: .55rem .6rem !important; border-radius: 10px; border: 1.5px solid var(--border) !important; background: #fff !important; font-size: .9rem !important; }
.sl-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; align-items: start; }
.sl-days { padding: 1.4rem 1rem; border-radius: 18px; text-align: center; color: #fff; background: var(--bg-dark-2); }
.sl-days small { display: block; color: var(--muted-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.sl-days strong { display: block; font-size: 3rem; font-weight: 800; line-height: 1.1; }
.sl-days span { color: #c3cde8; font-weight: 600; }
.sl-days em { display: block; margin-top: .5rem; font-style: normal; color: var(--muted-dark); font-size: .82rem; }
.sl-days.is-ok strong { color: #86efac; } .sl-days.is-warn strong { color: #fcd34d; } .sl-days.is-bad strong { color: #fca5a5; }
.sl-dl { border: 1px solid var(--border); border-radius: 16px; }
.sl-chain { list-style: none; margin: 0; padding: .9rem 1.2rem; display: grid; gap: .6rem; }
.sl-chain li { position: relative; padding-left: 1.4rem; }
.sl-chain li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.sl-chain li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 1.1rem; bottom: -.8rem; width: 2px; background: var(--border); }
.sl-chain span { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.sl-chain b { font-size: .92rem; }
.sl-chain small { display: block; color: var(--muted); font-size: .8rem; }

.hh-agent { flex: none; padding: .55rem .6rem; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; font: inherit; font-size: .88rem; }
.hh-top { display: flex; gap: 1.2rem; align-items: center; padding: 1.3rem; border-radius: 20px; background: var(--light); }
.hh-grade { flex: none; width: 110px; height: 110px; border-radius: 22px; display: grid; place-content: center; text-align: center; color: #fff; }
.hh-grade strong { font-size: 2.8rem; line-height: 1; font-weight: 800; }
.hh-grade span { font-size: .7rem; font-weight: 700; opacity: .85; }
.hh-grade.is-ok { background: linear-gradient(135deg, #16a34a, #22c55e); } .hh-grade.is-warn { background: linear-gradient(135deg, #d97706, #f59e0b); } .hh-grade.is-bad { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.hh-sum { min-width: 0; }
.hh-sum h2 { font-size: 1.1rem; margin: 0 0 .4rem; overflow-wrap: anywhere; }
.hh-sum p { margin: 0 0 .3rem; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.hh-leak { color: #b45309 !important; }
.hh-url { margin: 0; padding: .6rem 1.2rem 0; font: .8rem var(--mono); color: var(--muted); overflow-wrap: anywhere; }

.ri-filter { padding: .4rem .7rem; border-radius: 10px; border: 1.5px solid var(--border); font: inherit; font-size: .85rem; width: 160px; }
.ri-list { list-style: none; margin: 0; padding: 1rem 1.2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .35rem .8rem; max-height: 520px; overflow: auto; }
.ri-list a { font: .86rem var(--mono); color: var(--text); overflow-wrap: anywhere; }
.ri-list a:hover { color: var(--primary); }

.ua-mine { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-radius: 16px; background: var(--bg-dark-2); color: #fff; }
.ua-mine small { color: var(--muted-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.ua-mine code { flex: 1; min-width: 240px; color: #c3e8ff; font-size: .85rem; overflow-wrap: anywhere; }
.ua-mine .btn-ts { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.ua-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; margin-top: 1rem; }
.ua-card { padding: 1rem; border-radius: 14px; background: var(--light); }
.ua-card i { color: var(--primary); font-size: 1.2rem; }
.ua-card small { display: block; margin-top: .4rem; color: var(--muted); font-weight: 700; font-size: .74rem; }
.ua-card b { font-size: 1rem; overflow-wrap: anywhere; }
.ua-raw { display: block; max-width: 420px; color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }

.sr-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.sr-hero > div { padding: 1.3rem; border-radius: 18px; color: #fff; background: radial-gradient(260px 160px at 100% 0%, rgba(34,211,238,.3), transparent 60%), var(--bg-dark-2); }
.sr-hero small { display: block; color: var(--muted-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.sr-hero strong { display: block; font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; margin: .3rem 0; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-hero span { color: #c3cde8; font-size: .82rem; }

.pg-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pg-best { color: var(--muted); font-size: .92rem; } .pg-best i { color: #f59e0b; } .pg-best b { color: var(--text); }
.pg-wrap { max-height: none; }
.pg-table td { vertical-align: middle; white-space: nowrap; }
.pg-flag { font-size: 1.1rem; margin-right: .3rem; }
.pg-barcol { width: 30%; }
.pg-bar { display: block; height: 8px; border-radius: 99px; background: var(--light); overflow: hidden; }
.pg-bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .4s, background .4s; }
.pg-table tr.is-best { background: #f0fdf4; }
.pg-table tr.is-best td:first-child { font-weight: 800; }
.pg-badge { display: inline-block; padding: .15rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 800; background: var(--light); color: var(--muted); }
.pg-badge.is-ok { background: #dcfce7; color: #15803d; } .pg-badge.is-warn { background: #fef3c7; color: #b45309; } .pg-badge.is-bad { background: #fee2e2; color: #b91c1c; } .pg-badge.is-info { background: #e0f2fe; color: #0369a1; }
.pg-custom { padding: 0 1.2rem 1.2rem; }

.il-input { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem; border-radius: 18px; border: 2px solid var(--border); background: #fbfcff; }
.il-input:focus-within { border-color: var(--primary); background: #fff; }
.il-input textarea { flex: 1; min-width: 0; border: 0; background: transparent; padding: .6rem .7rem; font: .98rem var(--mono); resize: none; outline: 0; }
.il-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem; }
.il-card { padding: 1.2rem; border-radius: 18px; border: 1px solid var(--border); }
.il-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .6rem; }
.il-flag { font-size: 2.6rem; line-height: 1; }
.il-head b { display: block; font-size: 1.15rem; }
.il-card .ip-dl { padding: .4rem 0 .8rem; }
.il-map { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: 18px; }

.pc-common { display: flex; flex-wrap: wrap; gap: .35rem; }
.pc-common button { border: 1.5px solid var(--border); background: #fff; border-radius: 10px; padding: .35rem .65rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.pc-common button b { color: var(--text); margin-right: .2rem; }
.pc-common button.is-on { border-color: var(--primary); background: rgba(47,107,255,.07); color: var(--primary); }
#pcForm > .btn-ts { align-self: flex-start; }
.pk-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7rem; }
.pk-res { padding: 1rem; border-radius: 14px; border: 1.5px solid var(--border); text-align: center; }
.pk-res strong { display: block; font: 800 1.5rem var(--mono); }
.pk-res span { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.pk-res b { display: block; margin: .4rem 0 .1rem; }
.pk-res small { color: var(--muted); font-size: .74rem; }
.pk-res.is-open { border-color: #86efac; background: #f0fdf4; } .pk-res.is-open b { color: #15803d; }
.pk-res.is-closed b { color: #b91c1c; }

.vp-verdict { display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem; border-radius: 20px; background: var(--light); }
.vp-verdict .seo-radar { width: 70px; height: 70px; flex: none; }
.vp-verdict b { display: block; font-size: 1.35rem; }
.vp-verdict span { color: var(--muted); }
.vp-big { font-size: 3rem; flex: none; }
.vp-verdict.is-ok { background: linear-gradient(135deg, #ecfdf3, #f0fdfa); } .vp-verdict.is-ok .vp-big { color: #16a34a; }
.vp-verdict.is-warn { background: #fffbeb; } .vp-verdict.is-warn .vp-big { color: #d97706; }
.vp-verdict.is-bad { background: #eef2ff; } .vp-verdict.is-bad .vp-big { color: #4f46e5; }
.vp-checks { display: grid; gap: .6rem; margin-top: 1rem; }
.vp-item { display: flex; align-items: flex-start; gap: .9rem; padding: .9rem 1.1rem; border-radius: 14px; border: 1px solid var(--border); background: #fff; }
.vp-item > i { font-size: 1.2rem; margin-top: .15rem; width: 24px; text-align: center; }
.vp-item div { flex: 1; min-width: 0; }
.vp-item b { display: block; }
.vp-item span { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.vp-item em { flex: none; font-style: normal; font-size: .72rem; font-weight: 800; padding: .15rem .55rem; border-radius: 99px; }
.vp-item.is-ok > i { color: #16a34a; } .vp-item.is-ok em { background: #dcfce7; color: #15803d; }
.vp-item.is-warn > i { color: #d97706; } .vp-item.is-warn em { background: #fef3c7; color: #b45309; }
.vp-item.is-bad > i { color: #dc2626; } .vp-item.is-bad em { background: #fee2e2; color: #b91c1c; }
.vp-item.is-info > i { color: #0284c7; } .vp-item.is-info em { background: #e0f2fe; color: #0369a1; }

.sn-input input { font: 1.2rem var(--mono) !important; }
.sn-examples { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .8rem; color: var(--muted); }
.sn-examples button { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: .2rem .55rem; font: .78rem var(--mono); }
.sn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.sn-dl { border: 1px solid var(--border); border-radius: 16px; }
.sn-bin { padding: 1rem 1.2rem; border-radius: 16px; background: var(--light); display: grid; gap: .5rem; }
.sn-bin small { display: block; color: var(--muted); font-weight: 700; font-size: .72rem; }
.sn-bin code { font-size: .85rem; letter-spacing: .02em; overflow-wrap: anywhere; }
.is-net { color: var(--primary); font-weight: 700; } .is-host { color: #d97706; }
.sn-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 .2rem 0 .6rem; vertical-align: middle; }
.sn-key.is-net { background: var(--primary); } .sn-key.is-host { background: #d97706; }
#snSplit { padding: .35rem .5rem; border-radius: 8px; border: 1.5px solid var(--border); }

.ma-results { display: grid; gap: .7rem; margin-top: 1.2rem; }
.ma-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; border-radius: 16px; border: 1px solid var(--border); }
.ma-card.is-error { background: #fef2f2; }
.ma-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--grad); color: #fff; font-size: 1.2rem; }
.is-error .ma-icon { background: #ef4444; }
.ma-main { min-width: 0; }
.ma-main code { font-size: .85rem; color: var(--muted); }
.ma-main b { display: block; font-size: 1.15rem; margin: .1rem 0; }
.ma-main small { display: block; color: var(--muted); font-size: .84rem; }
.ma-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }

@media (max-width: 991.98px) {
    .og-previews, .sl-grid, .il-detail, .sn-grid { grid-template-columns: minmax(0, 1fr); }
    .sr-hero { grid-template-columns: 1fr; }
    .il-map { min-height: 280px; }
}
@media (max-width: 575.98px) {
    .wd-card, .hh-top, .vp-verdict { flex-direction: column; text-align: center; }
    .il-input { flex-direction: column; } .il-input .btn-ts { width: 100%; justify-content: center; }
    .pg-barcol { display: none; }
    .sl-port { width: 70px !important; }
}

.vp-item span b, .vp-item span code { display: inline; }

/* ==========================================================================
   Developer tools (dv-*)
   ========================================================================== */
.dv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.dv-bar .dv-sp { flex: 1 1 auto; }
.dv-seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 2px; border-radius: 12px; background: var(--light); border: 1px solid var(--border); }
.dv-seg button { border: 0; background: transparent; padding: .45rem .85rem; border-radius: 9px; font-weight: 700; font-size: .85rem; color: var(--muted); white-space: nowrap; transition: .15s; }
.dv-seg button:hover { color: var(--text); }
.dv-seg button.is-on { background: #fff; color: var(--primary); box-shadow: 0 2px 8px -2px rgba(16,32,84,.18); }
.dv-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; color: var(--text); font-weight: 700; font-size: .84rem; white-space: nowrap; cursor: pointer; transition: .15s; }
.dv-btn:hover { border-color: var(--primary); color: var(--primary); }
.dv-btn:disabled { opacity: .5; pointer-events: none; }
.dv-btn.is-primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(47,107,255,.6); }
.dv-btn.is-primary:hover { color: #fff; filter: brightness(1.07); }
.dv-btn input[type=file] { display: none; }
.dv-sel { padding: .45rem .7rem; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; font: inherit; font-size: .84rem; font-weight: 600; color: var(--text); max-width: 100%; }
.dv-chk { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 600; color: var(--text); cursor: pointer; margin: 0; white-space: nowrap; }
.dv-chk input { width: 16px; height: 16px; accent-color: var(--primary); }
.dv-io { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.dv-io.is-stack { grid-template-columns: minmax(0, 1fr); }
.dv-pane { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; overflow: hidden; background: #0d1426; border: 1px solid #1c2742; box-shadow: 0 14px 30px -18px rgba(5,11,31,.55); }
.dv-pane.is-drag { outline: 3px dashed var(--cyan); outline-offset: -6px; }
.dv-pane-h { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .55rem .75rem; background: #121b31; border-bottom: 1px solid #1c2742; color: #c7d2ee; font-size: .8rem; font-weight: 700; }
.dv-pane-h > b { color: #fff; font-size: .82rem; letter-spacing: .02em; }
.dv-pane-h > b i { color: var(--cyan); margin-right: .3rem; }
.dv-pane-h small { color: #7f8bab; font-weight: 600; }
.dv-pane-h .dv-sp { flex: 1 1 auto; }
.dv-ic { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 .5rem; gap: .3rem; border-radius: 8px; border: 1px solid #26334f; background: #17213a; color: #c7d2ee; font-size: .78rem; font-weight: 700; cursor: pointer; transition: .15s; grid-auto-flow: column; }
.dv-ic:hover { background: #22305a; color: #fff; border-color: #3a4a78; }
.dv-ic input[type=file] { display: none; }
.dv-code { flex: 1 1 auto; display: block; width: 100%; min-height: 340px; margin: 0; padding: .9rem 1rem; border: 0; outline: 0; resize: vertical; background: transparent; color: #e2e8f0; font-family: var(--mono); font-size: .84rem; line-height: 1.6; tab-size: 4; white-space: pre; overflow: auto; }
.dv-code.is-wrap { white-space: pre-wrap; word-break: break-all; }
.dv-code::placeholder { color: #5d6a8a; }
.dv-code:focus { box-shadow: inset 0 0 0 2px rgba(34,211,238,.35); }
pre.dv-code { max-height: 560px; }
.dv-code.is-sm { min-height: 150px; }
.dv-status { display: flex; align-items: flex-start; gap: .6rem; margin-top: .9rem; padding: .75rem 1rem; border-radius: 12px; background: var(--light); color: var(--text); font-size: .88rem; font-weight: 600; overflow-wrap: anywhere; }
.dv-status > i { margin-top: .2rem; }
.dv-status.is-ok { background: #ecfdf3; color: #166534; }
.dv-status.is-bad { background: #fef2f2; color: #991b1b; }
.dv-status.is-warn { background: #fffbeb; color: #92400e; }
.dv-status code { background: rgba(0,0,0,.06); padding: .05rem .35rem; border-radius: 5px; color: inherit; }
.dv-status pre { margin: .5rem 0 0; padding: .6rem .8rem; border-radius: 8px; background: #1e1015; color: #fecaca; font-size: .78rem; white-space: pre; overflow-x: auto; }
.dv-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.dv-stats > div { flex: 1 1 130px; padding: .7rem .9rem; border-radius: 12px; background: var(--light); }
.dv-stats b { display: block; font-size: 1.15rem; line-height: 1.2; }
.dv-stats span { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dv-stats .is-good b { color: #16a34a; }
.dv-card { padding: 1.2rem; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.dv-card + .dv-card { margin-top: 1rem; }
.dv-card > h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; margin: 0 0 .9rem; }
.dv-card > h3 i { color: var(--primary); }
.dv-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.dv-field > label { font-weight: 700; font-size: .84rem; margin: 0; }
.dv-in { width: 100%; padding: .65rem .8rem; border-radius: 10px; border: 1.5px solid #dbe1ee; background: #fff; font: inherit; font-size: .92rem; color: var(--text); }
.dv-in.is-mono, textarea.dv-in { font-family: var(--mono); font-size: .85rem; }
.dv-in:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
.dv-in.is-bad { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.1); }
.dv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.dv-kv { width: 100%; font-size: .86rem; border-collapse: collapse; }
.dv-kv th, .dv-kv td { padding: .5rem .7rem; border-top: 1px solid #eef1f7; vertical-align: top; text-align: left; }
.dv-kv thead th { border-top: 0; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.dv-kv td code, .dv-kv th code { font-family: var(--mono); font-size: .8rem; overflow-wrap: anywhere; color: var(--text); background: none; padding: 0; }
.dv-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.dv-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: 2rem 1rem; border: 2px dashed #c9d3ea; border-radius: 18px; background: var(--light); text-align: center; cursor: pointer; transition: .15s; }
.dv-drop:hover, .dv-drop.is-drag { border-color: var(--primary); background: #eef3ff; }
.dv-drop > i { font-size: 2rem; color: var(--primary); }
.dv-drop b { font-size: 1.02rem; }
.dv-drop small { color: var(--muted); }
.dv-drop input { display: none; }
.dv-copyrow { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 12px; background: var(--light); min-width: 0; }
.dv-copyrow > span { flex: none; min-width: 74px; font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dv-copyrow > code { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: .82rem; color: var(--text); overflow-wrap: anywhere; background: none; padding: 0; }
.dv-copyrow > button { flex: none; }
.dv-copyrow.is-match { background: #dcfce7; box-shadow: inset 0 0 0 2px #22c55e; }
.dv-list { display: grid; gap: .45rem; }
.j-k { color: #7dd3fc; } .j-s { color: #86efac; } .j-d { color: #fda4af; } .j-b { color: #c4b5fd; } .j-n { color: #94a3b8; }
@media (max-width: 991.98px) { .dv-io { grid-template-columns: minmax(0, 1fr); } .dv-code { min-height: 240px; } }
@media (max-width: 575.98px) {
    .dv-seg { width: 100%; } .dv-seg button { flex: 1 1 auto; padding: .45rem .5rem; }
    .dv-copyrow { flex-wrap: wrap; } .dv-copyrow > code { flex-basis: 100%; order: 3; }
    .dv-card { padding: 1rem; }
}
/* JSON tree */
.jf-tree { white-space: normal; }
.jf-tree ul { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 1px dashed #26334f; }
.jf-tree details > summary { cursor: pointer; list-style: none; padding: .05rem 0; border-radius: 4px; }
.jf-tree details > summary::-webkit-details-marker { display: none; }
.jf-tree details > summary::before { content: '\25B8'; display: inline-block; width: 1rem; color: #7f8bab; transition: transform .15s; }
.jf-tree details[open] > summary::before { transform: rotate(90deg); }
.jf-tree summary:hover { background: #17213a; }
.jf-tree summary em { font-style: normal; color: #7f8bab; font-size: .75rem; margin: 0 .35rem; }
.jf-tree details[open] > summary em, .jf-tree details[open] > summary .jf-br:last-child { display: none; }
.jf-br { color: #cbd5e1; }
.jf-leaf { padding: .05rem 0 .05rem 1rem; overflow-wrap: anywhere; }
.jf-idx { display: inline-block; min-width: 1.6rem; margin-right: .35rem; color: #7f8bab; font-size: .75rem; }
.jf-idx::after { content: ':'; }
.jf-more { padding-left: 1rem; color: #7f8bab; font-style: italic; }
.tool-app [hidden] { display: none !important; }
/* Base64 */
.b6-file { display: flex; align-items: center; gap: .8rem; margin: 1rem; padding: 1rem; border-radius: 12px; background: #17213a; color: #e2e8f0; }
.b6-file > i { font-size: 1.6rem; color: var(--cyan); }
.b6-file > div { flex: 1 1 auto; min-width: 0; }
.b6-file b { display: block; overflow-wrap: anywhere; }
.b6-file small { color: #7f8bab; }
.b6-bin { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; min-height: 340px; padding: 1.2rem; color: #e2e8f0; text-align: center; }
.b6-bin > i { font-size: 2.6rem; color: #86efac; }
.b6-bin img { max-width: 100%; max-height: 220px; border-radius: 10px; background: repeating-conic-gradient(#1c2742 0 25%, #121b31 0 50%) 0 0 / 16px 16px; }
.b6-bin small { color: #7f8bab; }
/* URL parser */
.dv-kv tbody th { width: 120px; color: var(--muted); font-weight: 700; font-size: .8rem; white-space: nowrap; }
.up-params td { padding: .35rem .45rem; }
.up-params td:last-child { width: 44px; text-align: center; }
.up-params .dv-in { padding: .45rem .6rem; font-size: .8rem; min-width: 110px; }
.up-params .dv-ic { background: #fff; color: var(--muted); border-color: var(--border); }
.up-params .dv-ic:hover { color: #dc2626; border-color: #fca5a5; background: #fff; }
.up-params tr.is-track td { background: #fffbeb; }
.dv-copyrow > code#upOut { white-space: normal; }
.mn-opts > div { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; padding: .7rem 1rem; margin-bottom: .9rem; border-radius: 12px; background: var(--light); }
/* Regex tester */
.rx-pattern { display: flex; align-items: center; gap: .2rem; padding: .35rem .4rem .35rem .9rem; border-radius: 14px; background: #0d1426; border: 1px solid #1c2742; }
.rx-pattern:focus-within { box-shadow: 0 0 0 4px rgba(47,107,255,.18); }
.rx-slash { color: #7f8bab; font-family: var(--mono); font-size: 1.2rem; }
#rxPat { flex: 1 1 auto; min-width: 0; padding: .6rem .4rem; border: 0; outline: 0; background: transparent; color: #fde68a; font-family: var(--mono); font-size: .98rem; }
#rxPat.is-bad { color: #fca5a5; }
.rx-flags { display: flex; gap: 3px; flex: none; }
.rx-flags button { width: 30px; height: 32px; border: 1px solid #26334f; border-radius: 8px; background: #17213a; color: #7f8bab; font-family: var(--mono); font-weight: 700; }
.rx-flags button.is-on { background: var(--grad); color: #fff; border-color: transparent; }
.rx-editor { position: relative; flex: 1 1 auto; display: flex; }
.rx-back { position: absolute; inset: 0; min-height: 0; overflow: hidden; color: transparent; pointer-events: none; resize: none; }
.rx-back mark { padding: 0; border-radius: 3px; background: rgba(34,211,238,.32); color: transparent; box-shadow: 0 0 0 1px rgba(34,211,238,.6); }
.rx-back mark.is-alt { background: rgba(250,204,21,.3); box-shadow: 0 0 0 1px rgba(250,204,21,.6); }
.rx-back mark.is-empty { border-left: 2px solid #f472b6; }
.rx-text { position: relative; background: transparent; caret-color: #fff; }
.rx-side .rx-matches { flex: 1 1 auto; max-height: 420px; overflow: auto; padding: .7rem; display: grid; align-content: start; gap: .5rem; }
.rx-m { border-radius: 10px; background: #121b31; border: 1px solid #1c2742; overflow: hidden; }
.rx-m-h { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; }
.rx-m-h span { color: #7f8bab; font-size: .72rem; font-weight: 800; }
.rx-m-h code { flex: 1 1 auto; min-width: 0; color: #67e8f9; font-family: var(--mono); font-size: .82rem; overflow-wrap: anywhere; background: none; }
.rx-m-h small { color: #7f8bab; font-family: var(--mono); font-size: .72rem; }
.rx-m .dv-kv th, .rx-m .dv-kv td { border-top-color: #1c2742; padding: .3rem .7rem; }
.rx-m .dv-kv th { width: 90px; color: #7f8bab; font-size: .74rem; }
.rx-m .dv-kv th em { color: #c4b5fd; font-style: normal; }
.rx-m .dv-kv td code { color: #e2e8f0; }
.rx-more { color: #7f8bab; font-size: .85rem; margin: .4rem; }
.rx-rep code { white-space: pre-wrap; max-height: 200px; overflow: auto; }
.rx-cheat summary { cursor: pointer; font-weight: 800; }
.rx-cheat summary i { color: var(--primary); margin-right: .3rem; }
.rx-cheat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.rx-cheat-grid b { display: block; margin-bottom: .4rem; }
.rx-cheat-grid dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .7rem; margin: 0; font-size: .84rem; }
.rx-cheat-grid dt code { font-family: var(--mono); color: var(--primary); background: #eef3ff; padding: .05rem .35rem; border-radius: 5px; }
.rx-cheat-grid dd { margin: 0; color: var(--muted); }
@media (max-width: 575.98px) { .rx-pattern { flex-wrap: wrap; padding: .5rem; } .rx-flags { width: 100%; justify-content: space-between; } .rx-flags button { flex: 1; } }
.rx-back, .rx-text { scrollbar-gutter: stable; }
/* JWT */
.jw-text, .jw-back { min-height: 150px; }
.jw-text { color: transparent !important; caret-color: #fff; }
.jw-text::selection { background: rgba(125,211,252,.3); color: transparent; }
.jw-back { color: #e2e8f0; }
.jw-c0 { color: #fb7185; } .jw-c1 { color: #c084fc; } .jw-c2 { color: #22d3ee; } .jw-c3 { color: #94a3b8; } .jw-dot { color: #fff; }
.jw-h .dv-pane-h b i { color: #fb7185; } .jw-p .dv-pane-h b i { color: #c084fc; }
.jw-h pre.dv-code, .jw-p pre.dv-code { min-height: 0; }
.jw-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.jw-badges:empty { display: none; }
.jw-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--light); color: var(--text); }
.jw-badge.is-ok { background: #dcfce7; color: #166534; } .jw-badge.is-bad { background: #fee2e2; color: #991b1b; } .jw-badge.is-warn { background: #fef3c7; color: #92400e; } .jw-badge.is-info { background: #e0e7ff; color: #3730a3; }
.jw-out code { font-size: .76rem; }
#jwEnc textarea.dv-in { min-height: 120px; }
/* Hash generator */
.hg-prog { margin-top: 1rem; }
.hg-prog span#hgProgName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; margin-right: 1rem; }
.hg-bar { height: 8px; border-radius: 99px; background: var(--light); overflow: hidden; }
.hg-bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .15s; }
#hgOut .dv-copyrow .dv-ic, .ug-list .dv-ic, .ib-snip .dv-ic { background: #fff; border-color: var(--border); color: var(--muted); }
#hgOut .dv-copyrow .dv-ic:hover { color: var(--primary); border-color: var(--primary); }
#hgOut .dv-copyrow > span { min-width: 96px; }
/* UUID */
.ug-hero { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.6rem 1rem; border-radius: 18px; background: #0d1426; background-image: radial-gradient(circle at 20% 0, rgba(47,107,255,.35), transparent 55%), radial-gradient(circle at 90% 100%, rgba(139,92,246,.3), transparent 50%); }
.ug-hero code { font-family: var(--mono); font-size: clamp(.9rem, 2.6vw, 1.45rem); font-weight: 700; color: #fff; text-align: center; overflow-wrap: anywhere; background: none; letter-spacing: .02em; }
.ug-count { width: 100px; }
/* Cron */
.cr-expr { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem .5rem 1rem; border-radius: 16px; background: #0d1426; border: 1px solid #1c2742; }
.cr-expr:focus-within { box-shadow: 0 0 0 4px rgba(47,107,255,.18); }
#crIn { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: #fde68a; font-family: var(--mono); font-size: clamp(1.2rem, 3.4vw, 2rem); font-weight: 700; letter-spacing: .12em; text-align: center; padding: .4rem 0; }
#crIn.is-bad { color: #fca5a5; }
.cr-parts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; margin-top: .6rem; }
.cr-parts button { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem .3rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; min-width: 0; }
.cr-parts button:hover { border-color: var(--primary); }
.cr-parts b { font-family: var(--mono); font-size: .9rem; color: var(--primary); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-parts span { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cr-human { margin-top: .9rem; padding: .9rem 1.1rem; border-radius: 14px; background: #eef3ff; color: #1e3a8a; font-weight: 700; font-size: 1.02rem; text-align: center; }
.cr-human i { margin-right: .35rem; }
.cr-human.is-bad { background: #fef2f2; color: #991b1b; font-size: .92rem; }
.cr-presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; justify-content: center; }
.cr-presets button { padding: .35rem .75rem; border-radius: 99px; border: 1px solid var(--border); background: #fff; font-size: .8rem; font-weight: 700; color: var(--text); }
.cr-presets button:hover { border-color: var(--primary); color: var(--primary); }
.cr-builder .dv-seg { display: flex; } .cr-builder .dv-seg button { flex: 1 1 auto; padding: .45rem .4rem; }
.cr-modes { display: grid; gap: .45rem; }
.cr-modes label { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 10px; background: var(--light); font-size: .88rem; font-weight: 600; cursor: pointer; margin: 0; }
.cr-modes label > input { accent-color: var(--primary); width: 16px; height: 16px; flex: none; }
.cr-modes label > span { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.cr-modes em { font-style: normal; }
.cr-modes .dv-sel { padding: .3rem .5rem; }
.cr-num { width: 70px; }
.cr-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; margin-top: .8rem; transition: opacity .15s; }
.cr-chips.is-f3, .cr-chips.is-f4 { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
.cr-chips.is-off { opacity: .55; }
.cr-chips button { padding: .35rem 0; border: 1px solid var(--border); border-radius: 7px; background: #fff; font-size: .76rem; font-weight: 700; color: var(--text); font-family: var(--mono); }
.cr-chips button.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cr-next { list-style: none; counter-reset: cr; margin: 0; padding: 0; display: grid; gap: .35rem; }
.cr-next li { counter-increment: cr; display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 10px; background: var(--light); font-size: .88rem; font-weight: 600; }
.cr-next li::before { content: counter(cr); width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; background: #fff; color: var(--primary); font-size: .74rem; font-weight: 800; }
.cr-next li span { flex: 1 1 auto; min-width: 0; }
.cr-next li small { color: var(--muted); font-weight: 700; white-space: nowrap; }
.cr-next li.text-danger::before, .cr-next li.text-muted::before { display: none; }
@media (max-width: 575.98px) { .cr-parts span { font-size: .6rem; } .cr-expr { flex-wrap: wrap; justify-content: center; } }
/* Image to Base64 */
.ib-list { display: grid; gap: 1rem; margin-top: 1rem; }
.ib-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; padding: 1rem; border-radius: 16px; border: 1px solid var(--border); background: #fff; }
.ib-thumb { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: repeating-conic-gradient(#eef1f7 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 1px solid var(--border); }
.ib-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ib-body { min-width: 0; }
.ib-head { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .6rem; }
.ib-name { flex: 1 1 auto; min-width: 0; }
.ib-name b { display: block; overflow-wrap: anywhere; }
.ib-name small { color: var(--muted); font-size: .8rem; }
.ib-x { background: #fff !important; color: var(--muted) !important; border-color: var(--border) !important; }
.ib-x:hover { color: #dc2626 !important; }
.ib-kinds button { padding: .35rem .6rem; font-size: .78rem; }
.ib-snip { margin-top: .6rem; }
.ib-snip textarea { font-size: .75rem; word-break: break-all; resize: vertical; }
.ib-warn { align-self: center; color: #92400e; font-size: .78rem; font-weight: 600; }
.ib-prev { flex: 1 1 auto; display: grid; place-items: center; min-height: 340px; padding: 1rem; background: repeating-conic-gradient(#1c2742 0 25%, #121b31 0 50%) 0 0 / 18px 18px; }
.ib-prev img { max-width: 100%; max-height: 420px; }
.ib-prev span { color: #7f8bab; font-weight: 600; }
@media (max-width: 575.98px) { .ib-card { grid-template-columns: minmax(0, 1fr); } .ib-thumb { max-height: 180px; aspect-ratio: auto; height: 160px; } }
/* Color converter */
.cc-top { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.2rem; align-items: stretch; }
.cc-swatch { --c: #2f6bff; position: relative; min-height: 170px; border-radius: 18px; overflow: hidden; background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#e5e9f2 0 25%, #fff 0 50%) 0 0 / 18px 18px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); color: #fff; }
.cc-swatch.is-light { color: #0e1630; }
.cc-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cc-swatch span { position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%); padding: .3rem .7rem; border-radius: 99px; background: rgba(0,0,0,.18); font-size: .78rem; font-weight: 700; pointer-events: none; white-space: nowrap; }
.cc-main { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.cc-in { font-size: 1.15rem !important; font-weight: 700; }
.cc-alpha { margin-top: .8rem; } .cc-alpha label { display: flex; justify-content: space-between; margin-bottom: .2rem; }
.cc-alpha input { width: 100%; accent-color: var(--primary); }
.cc-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: .5rem; margin-top: 1.2rem; }
.cc-formats .dv-copyrow > span { min-width: 64px; }
.cc-formats .dv-ic, #ugOut + .x { background: #fff; border-color: var(--border); color: var(--muted); }
.cc-formats .dv-ic:hover { color: var(--primary); border-color: var(--primary); background: #fff; }
.cc-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); border-radius: 14px; overflow: hidden; }
.cc-scale button { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .1rem; min-height: 86px; padding: .5rem .1rem; border: 0; transition: transform .15s; }
.cc-scale button:hover { transform: scaleY(1.06); position: relative; z-index: 1; }
.cc-scale button.is-base { box-shadow: inset 0 0 0 3px rgba(255,255,255,.7); }
.cc-scale b { font-size: .78rem; } .cc-scale span { font-family: var(--mono); font-size: .62rem; opacity: .85; }
.cc-harm { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.cc-h small { display: block; font-weight: 700; color: var(--muted); margin-bottom: .3rem; }
.cc-h > div { display: flex; border-radius: 10px; overflow: hidden; }
.cc-h button { flex: 1; height: 40px; border: 0; }
.cc-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .8rem; align-items: end; }
.cc-pin { display: flex; gap: .4rem; } .cc-pin input[type=color] { width: 48px; height: 44px; flex: none; padding: 3px; border: 1.5px solid #dbe1ee; border-radius: 10px; background: #fff; cursor: pointer; }
.cc-swap { height: 44px; min-width: 44px; background: #fff !important; color: var(--primary) !important; border-color: var(--border) !important; }
.cc-contrast { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
.cc-sample { padding: 1.4rem; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.cc-sample b { display: block; font-size: 1.6rem; line-height: 1.2; margin-bottom: .5rem; }
.cc-sample p { margin: 0 0 1rem; font-size: .95rem; }
.cc-btn { display: inline-block; padding: .45rem 1rem; border-radius: 10px; border: 2px solid var(--fg, currentColor); font-weight: 700; font-size: .88rem; }
.cc-ratio b { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; }
.cc-ratio span { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cc-ratio .is-great, .cc-ratio .is-good { color: #16a34a; } .cc-ratio .is-meh { color: #d97706; } .cc-ratio .is-bad { color: #dc2626; }
.cc-checks { display: grid; gap: .3rem; margin-top: .8rem; }
.cc-checks > div { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; border-radius: 9px; font-size: .84rem; }
.cc-checks .is-ok { background: #ecfdf3; color: #166534; } .cc-checks .is-bad { background: #fef2f2; color: #991b1b; }
.cc-checks b { min-width: 34px; } .cc-checks span { flex: 1; color: var(--text); } .cc-checks em { font-style: normal; font-weight: 800; font-size: .74rem; text-transform: uppercase; }
@media (max-width: 767.98px) {
    .cc-top { grid-template-columns: minmax(0, 1fr); } .cc-swatch { min-height: 120px; }
    .cc-contrast { grid-template-columns: minmax(0, 1fr); }
    .cc-scale { grid-template-columns: repeat(6, minmax(0, 1fr)); } .cc-scale button { min-height: 64px; }
    .cc-pair { grid-template-columns: minmax(0, 1fr); } .cc-swap { justify-self: center; transform: rotate(90deg); }
    .cc-formats { grid-template-columns: minmax(0, 1fr); }
}
.mega-tab span { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mega-body { grid-template-columns: 262px minmax(0, 1fr); }
@media (max-width: 1199.98px) { .mega-body { grid-template-columns: 222px minmax(0, 1fr); } .mega-tab { gap: .5rem; } }
.cc-formats { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
@media (max-width: 767.98px) { .cc-formats { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1199.98px) { .mega-tab em { display: none; } }
@media (max-width: 575.98px) { .cr-builder .dv-seg { flex-wrap: nowrap; } .cr-builder .dv-seg button { font-size: .74rem; padding: .4rem .2rem; } }
