﻿﻿/* ════ SOURCE: main.css ════ */
/* ═══════════════════════════════════════════════════════════════
   SEO Tool Pro — main.css v2
   ───────────────────────────────────────────────────────────────
   • Services grid: 3-col desktop / 2-col tablet / 1-col mobile
     (via CSS Grid, not .col-6 .col-md-4 which was lopsided)
   • Mobile nav z-index fixed (1050 > hero 1)
   • System font stack first, Plus Jakarta Sans second
   • Lead form styles (new)
   • All :root colors overrideable from admin dashboard
   ═══════════════════════════════════════════════════════════════ */

:root {
    --primary:       #1E3A8A;
    --primary-light: #2563EB;
    --primary-dark:  #1e3370;
    --accent:        #22C55E;
    --accent-dark:   #16a34a;
    --wa-green:      #25D366;
    --wa-dark:       #128C7E;
    --bg:            #F8FAFC;
    --bg-card:       #ffffff;
    --bg-secondary:  #f1f5f9;
    --text:          #0f172a;
    --text-muted:    #64748b;
    --border:        #e2e8f0;
    --danger:        #dc2626;
    --danger-bg:     #fef2f2;

    --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
    --shadow:        0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:     0 10px 40px rgba(0,0,0,.14);

    --radius:        12px;
    --radius-sm:     8px;
    --radius-lg:     20px;

    /* System font stack FIRST — paints instantly with zero network wait.
       Plus Jakarta Sans loads async and swaps in via font-display:swap. */
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
            'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
            sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo,
                 Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

    --header-h:      64px;
    --transition:    all .2s ease;

    /* z-index scale — single source of truth */
    --z-header:       1050;
    --z-dropdown:     1055;
    --z-wa-float:     1060;
    --z-modal:        1070;
}

[data-bs-theme="dark"] {
    --bg:           #0a0f1e;
    --bg-card:      #111827;
    --bg-secondary: #1f2937;
    --text:         #f1f5f9;
    --text-muted:   #94a3b8;
    --border:       #1f2937;
    --danger-bg:    #1f0a0a;
    --shadow:       0 4px 16px rgba(0,0,0,.4);
    --shadow-lg:    0 10px 40px rgba(0,0,0,.5);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background .3s, color .3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--text); }
h1 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
h3 { font-size: clamp(1rem, 2vw, 1.35rem); }
p  { color: var(--text-muted); margin-bottom: 1rem; }
a  { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   HEADER / NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header); /* above hero, always */
    height: var(--header-h);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, .13); }
.site-header .navbar { height: var(--header-h); padding: 0; }

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-weight: 800;
    font-size: 1.15rem;
    min-height: 44px; /* tap target */
}
.brand-icon { font-size: 1.4rem; color: var(--accent); }
.brand-text { color: var(--text); }
.navbar-brand img { display: block; }

/* ── Mobile toggler ────────────────────────────────────────── */
.navbar-toggler {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: .4rem .6rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    min-width: 44px; min-height: 44px; /* tap target */
}
.navbar-toggler:focus { box-shadow: none; outline: 2px solid var(--primary-light); outline-offset: 2px; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815,23,42,0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
[data-bs-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28241,245,249,0.9%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-wa-mobile {
    background: var(--wa-green);
    color: #fff;
    border-radius: 8px;
    padding: .4rem .7rem;
    font-size: .95rem;
    font-weight: 700;
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
}
.nav-wa-mobile:hover { background: var(--wa-dark); color: #fff; }

/* Mobile collapse menu — z-index FIX:
   Must be HIGHER than hero (header=1050 already, collapse is child of header nav
   but rendered as position:absolute — so give it its own explicit stack).  */
.navbar-collapse { background: var(--bg-card); }

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        z-index: var(--z-dropdown); /* ← THE FIX: was 999, now 1055, above hero */
        border-bottom: 1px solid var(--border);
        padding: .75rem 1rem 1rem;
        box-shadow: var(--shadow);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .navbar-collapse .navbar-nav { gap: .1rem !important; }
    .navbar-collapse .nav-link { padding: .65rem .75rem !important; }
}

.nav-link {
    font-weight: 600;
    font-size: .88rem;
    color: var(--text-muted) !important;
    padding: .5rem .75rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: var(--bg-secondary);
}

.nav-wa-btn {
    background: var(--wa-green) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    padding: .45rem 1rem !important;
}
.nav-wa-btn:hover { background: var(--wa-dark) !important; color: #fff !important; }

/* Theme toggle */
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.theme-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #3b82f6 100%);
    padding: 60px 0 90px;
    position: relative;
    overflow: hidden;
    z-index: 0;                /* Explicit: hero lives at z-index 0 */
    isolation: isolate;         /* Create a new stacking context so ::before pseudo
                                   can never bleed out and obscure the navbar above */
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -40%; right: -15%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, .07) 0%, transparent 70%);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 45px;
    background: var(--bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    padding: .3rem .9rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.hero-title { color: #fff; font-weight: 800; margin-bottom: .85rem; line-height: 1.2; }
.hero-subtitle { color: rgba(255, 255, 255, .82); font-size: 1rem; margin-bottom: 2rem; }

/* ═══════════════════════════════════════════════════════════════
   TOOL CARD (search)
   ═══════════════════════════════════════════════════════════════ */
.tool-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
}
.tool-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }

.tool-input-group {
    display: flex;
    gap: .4rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: .35rem;
}
.tool-input-group:focus-within { border-color: var(--primary-light); background: var(--bg-card); }

.tool-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: .95rem;
    padding: .55rem .7rem;
    color: var(--text);
    font-family: var(--font-mono);
    letter-spacing: .04em;
    min-width: 0;
}
.tool-input::placeholder { color: var(--text-muted); font-family: var(--font); font-size: .88rem; }

.btn-search {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
    padding: .6rem 1.35rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
    min-height: 40px;
}
.btn-search:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(34, 197, 94, .4); }
.btn-search:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.tool-trust {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
/* v5.2: Force explicit color — was getting overridden in some themes */
.tool-card .trust-item,
.tool-trust .trust-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: #1e293b !important;    /* dark slate — always readable on white card */
    font-weight: 600;
}
.tool-card .trust-item i,
.tool-trust .trust-item i {
    color: #22c55e;                /* green accent — works on all bg */
    font-size: .95rem;
}
/* Dark mode override */
[data-bs-theme="dark"] .tool-card .trust-item,
[data-bs-theme="dark"] .tool-trust .trust-item {
    color: #e2e8f0 !important;     /* light slate on dark card */
}

/* ═══════════════════════════════════════════════════════════════
   RESULT SECTION (from API)
   ═══════════════════════════════════════════════════════════════ */
.result-section { display: none; margin-top: 1.25rem; }
.result-section.visible { display: block; animation: slideIn .3s ease; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.result-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: .9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.result-header h5 { margin: 0; font-size: .92rem; font-weight: 700; }
.result-body { padding: 1.1rem 1.25rem; }
.result-row {
    display: flex;
    gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.result-row:last-child { border-bottom: none; }
.result-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    min-width: 130px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: .25rem;
    padding-top: .1rem;
}
.result-value {
    font-family: var(--font-mono);
    font-size: .88rem;
    color: var(--text);
    word-break: break-all;
    flex: 1;
}
.result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-wrap: wrap;
    gap: .5rem;
}
.copy-btn {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    border-radius: 7px;
    padding: .28rem .7rem;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: .3rem;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── CNIC Multi-Result Card (v5.2) ───────────────────────── */
.multi-numbers-section {
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem .5rem;
    background: var(--bg-secondary);
}
.multi-numbers-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.multi-numbers-count {
    background: var(--primary);
    color: #fff;
    font-size: .7rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-weight: 700;
    margin-left: auto;
    letter-spacing: 0;
}
.multi-numbers-list {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.multi-number-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .65rem .85rem;
    transition: border-color .15s, transform .15s;
}
.multi-number-row:hover {
    border-color: var(--primary-light);
    transform: translateX(2px);
}
.multi-number-idx {
    width: 24px; height: 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.multi-number-value {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .98rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .02em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.multi-number-actions {
    display: flex;
    gap: .4rem;
    align-items: center;
    flex-shrink: 0;
}
.copy-num-btn {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    padding: .3rem .7rem;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: all .15s;
}
.copy-num-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(34, 197, 94, .08);
}
.wa-num-btn {
    background: var(--wa-green);
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.wa-num-btn:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(37, 211, 102, .35);
}
@media (max-width: 540px) {
    .multi-number-row { padding: .55rem .7rem; gap: .55rem; }
    .multi-number-value { font-size: .9rem; }
    .copy-num-btn { padding: .25rem .55rem; font-size: .72rem; }
    .multi-number-idx { width: 22px; height: 22px; font-size: .68rem; }
}

/* ── Post-result upsell CTA (v5) ───────────────────────────── */
.result-upsell {
    margin-top: .9rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-left: 3px solid var(--primary-light);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    animation: fadeInUp .35s ease .15s both;
}
[data-bs-theme="dark"] .result-upsell {
    background: var(--bg-secondary);
    border-left-color: var(--primary-light);
}
.result-upsell-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.result-upsell-text {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 1 1 260px;
    min-width: 0;
}
.result-upsell-icon {
    font-size: 2rem;
    color: var(--primary-light);
    flex-shrink: 0;
    background: rgba(37, 99, 235, .12);
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
}
[data-bs-theme="dark"] .result-upsell-icon {
    background: rgba(37, 99, 235, .25);
}
.result-upsell-text > div { display: flex; flex-direction: column; min-width: 0; }
.result-upsell-text strong { font-size: .95rem; color: var(--text); font-weight: 700; line-height: 1.2; }
.result-upsell-text span   { font-size: .8rem;  color: var(--text-muted); margin-top: .2rem; line-height: 1.4; }
[data-bs-theme="dark"] .result-upsell-text strong { color: #f1f5f9; }
[data-bs-theme="dark"] .result-upsell-text span   { color: #94a3b8; }
.result-upsell-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.result-upsell-actions .btn-whatsapp,
.result-upsell-actions .btn-primary-custom {
    padding: .55rem 1rem;
    font-size: .85rem;
}
@media (max-width: 540px) {
    .result-upsell-inner { flex-direction: column; align-items: stretch; }
    .result-upsell-actions { width: 100%; }
    .result-upsell-actions > * { flex: 1; justify-content: center; }
}

/* ── No Result box ─────────────────────────────────────────── */
.no-result-box {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.no-result-box p { font-size: .92rem; margin-bottom: 1rem; color: var(--text-muted); }

/* ── WhatsApp btn ──────────────────────────────────────────── */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--wa-green);
    color: #fff;
    border: none;
    padding: .75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-whatsapp:hover { background: var(--wa-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, .35); }
.btn-whatsapp i { font-size: 1.1rem; }

/* Floating WhatsApp */
.wa-float {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: var(--z-wa-float);
    width: 56px; height: 56px;
    background: var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, .45);
    transition: var(--transition);
    text-decoration: none;
}
.wa-float:hover { background: var(--wa-dark); color: #fff; transform: scale(1.1); }
.wa-float-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--wa-green);
    opacity: .4;
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
    0%   { transform: scale(1);   opacity: .4; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ── Loader / Spinner ──────────────────────────────────────── */
.loader-wrap { display: flex; flex-direction: column; align-items: center; gap: .85rem; padding: 2rem; }
.spinner-ring {
    width: 44px; height: 44px;
    border: 4px solid var(--border);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-size: .88rem; color: var(--text-muted); font-weight: 500; }

/* Error */
.error-box {
    background: var(--danger-bg);
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: .9rem 1.1rem;
    color: var(--danger);
    font-weight: 500;
    font-size: .9rem;
}
[data-bs-theme="dark"] .error-box { border-color: #7f1d1d; color: #fca5a5; }

/* ═══════════════════════════════════════════════════════════════
   STATS — CSS Grid (was col-6 col-md-3, now clean)
   ═══════════════════════════════════════════════════════════════ */
.stats-section { padding: 50px 0; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { text-align: center; padding: 1.25rem; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--primary-dark); line-height: 1; margin-bottom: .2rem; }
.stat-label  { font-size: .85rem; color: var(--text-muted); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   SERVICES — Modern 3-col desktop / 2-col tablet / 1-col mobile
   ═══════════════════════════════════════════════════════════════ */
.services-section { padding: 70px 0; background: var(--bg); }

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
/* 2 columns at tablet */
@media (min-width: 576px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
/* 3 columns at desktop — the primary requested layout */
@media (min-width: 992px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
/* NO 4-column at XL — admin asked for clean 3-col, not cramped 4-col */

.service-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.35rem;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
    min-height: 280px; /* consistent row heights even with varying content */
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
    border-color: var(--primary-light);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 44px; height: 44px;
    background: rgba(37, 99, 235, .1);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: .9rem;
}
.service-title { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.service-desc  { font-size: .8rem; color: var(--text-muted); margin-bottom: .65rem; line-height: 1.5; flex-grow: 1; }
.service-meta  { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; }
.service-delivery {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    color: var(--accent-dark);
    font-weight: 600;
    background: rgba(34, 197, 94, .1);
    padding: .2rem .55rem;
    border-radius: 999px;
}
.service-price { font-size: .88rem; font-weight: 800; color: var(--primary); }
.service-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    background: var(--wa-green);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: .55rem .9rem;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
    margin-top: auto;
    min-height: 40px;
}
.service-wa-btn:hover { background: var(--wa-dark); color: #fff; }

/* Services CTA banner */
.services-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    color: #fff;
    margin-top: 2rem;
}
.services-cta h3 { color: #fff; margin-bottom: .5rem; }
.services-cta p  { color: rgba(255, 255, 255, .82); margin-bottom: 1.25rem; }

/* ═══════════════════════════════════════════════════════════════
   LEAD CAPTURE FORM (new)
   ═══════════════════════════════════════════════════════════════ */
.lead-section { padding: 60px 0; background: var(--bg-secondary); }

.lead-card {
    max-width: 780px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.lead-card-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.lead-card-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.35rem;
    flex-shrink: 0;
}
.lead-card-title { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 0 0 .2rem 0; }
.lead-card-subtitle { font-size: .88rem; color: var(--text-muted); margin: 0; }

.lead-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (min-width: 640px) {
    .lead-form-row { grid-template-columns: 1fr 1fr; }
}

.lead-field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.lead-field label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .4rem;
}
.lead-field .required { color: var(--danger); }
.lead-field .lead-optional { color: var(--text-muted); font-weight: 500; font-size: .78rem; }

.lead-field input,
.lead-field select,
.lead-field textarea {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .65rem .85rem;
    font-size: .92rem;
    font-family: var(--font);
    color: var(--text);
    width: 100%;
    transition: var(--transition);
    min-height: 42px;
}
.lead-field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.lead-field input:invalid:not(:placeholder-shown) { border-color: var(--danger); }

.lead-submit {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
    padding: .85rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
}
.lead-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(34, 197, 94, .4); }
.lead-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.lead-btn-loader { display: inline-flex; align-items: center; gap: .5rem; }

.lead-privacy-note {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1rem;
    font-size: .78rem;
    color: var(--text-muted);
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
}
.lead-privacy-note i { color: var(--accent); }

.lead-response {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    display: none;
}
.lead-response.show { display: block; }
.lead-response.success {
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .3);
    color: var(--accent-dark);
}
.lead-response.error {
    background: var(--danger-bg);
    border: 1px solid #fecaca;
    color: var(--danger);
}
[data-bs-theme="dark"] .lead-response.error { border-color: #7f1d1d; color: #fca5a5; }

/* ═══════════════════════════════════════════════════════════════
   CONTENT / BLOG / FAQ / AUTHOR / FOOTER
   ═══════════════════════════════════════════════════════════════ */
.content-section { padding: 70px 0; }
.content-section h2 { color: var(--text); margin-bottom: 1rem; }
.content-section h2::after {
    content: '';
    display: block;
    width: 44px; height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: .5rem;
}

/* Blog grid — same responsive pattern as services */
.blog-section { padding: 70px 0; }
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.blog-card-img {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .25);
    font-size: 3.5rem;
}
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-category {
    display: inline-block;
    background: rgba(30, 58, 138, .1);
    color: var(--primary-light);
    font-size: .72rem;
    font-weight: 700;
    padding: .22rem .65rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .65rem;
    align-self: flex-start;
}
.blog-card-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .65rem; line-height: 1.4; }
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--primary-light); }
.blog-meta { font-size: .77rem; color: var(--text-muted); display: flex; gap: .85rem; flex-wrap: wrap; margin-top: auto; }
.blog-meta i { color: var(--accent); }

/* Blog meta shown ON page-hero (blue gradient bg) — higher contrast */
.page-hero .blog-meta {
    color: #ffffff !important;
    justify-content: center;
    gap: 1.5rem;
    font-size: .88rem !important;
    font-weight: 500;
    margin-top: 1.25rem;
    opacity: 1 !important;
}
.page-hero .blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #ffffff !important;
}
.page-hero .blog-meta i {
    color: #ffffff !important;
    opacity: .95;
}

/* FAQ */
.faq-section { padding: 60px 0; background: var(--bg-card); }
.faq-section h2 { text-align: center; margin-bottom: 2.25rem; }
.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    margin-bottom: .6rem;
    overflow: hidden;
}
.accordion-button {
    background: var(--bg-card) !important;
    color: var(--text) !important;
    font-weight: 600;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) { color: var(--primary) !important; }
.accordion-body { color: var(--text-muted); font-size: .92rem; }

/* Author box */
.author-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    margin: 1.75rem 0;
}
.author-avatar {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.author-name { font-weight: 700; color: var(--text); margin-bottom: .15rem; }
.author-bio-text { font-size: .87rem; color: var(--text-muted); margin: 0; }

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    padding: .7rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }
.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
    padding: .7rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(34, 197, 94, .35); color: #fff; }

/* Section title */
.section-title { text-align: center; margin-bottom: 2.75rem; }
.section-title h2 { margin-bottom: .65rem; }
.section-title p { max-width: 520px; margin: 0 auto; }

/* Page hero (for pages, legal, blog post) — compact modern height */
.page-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 38px 0 32px;          /* was 55px — now tighter, less wasted space */
    color: #fff;
    text-align: center;
}
.page-hero h1 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.3rem);   /* responsive, cap at 2.3rem (was free-flowing ~3rem+) */
    line-height: 1.25;
    max-width: 780px;
    margin: 0 auto;
}
.page-hero p  { color: rgba(255, 255, 255, .85); }

/* Category badge on page-hero (blue gradient bg) — high contrast, readable */
.page-hero .blog-category {
    background: rgba(255, 255, 255, .22) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, .45) !important;
    backdrop-filter: blur(8px);
    padding: .35rem .95rem !important;
    font-size: .75rem !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.main-content-area { padding: 48px 0; }
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 18px); }

/* ═══════════════════════════════════════════════════════════
   POST CONTENT — readable typography
   ═══════════════════════════════════════════════════════════ */
.post-content {
    max-width: 68ch;             /* optimal reading width (~680px) */
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text);
}
.post-content > *:first-child { margin-top: 0; }

/* Heading hierarchy — H2 smaller than H1, H3 smaller than H2 */
.post-content h2 {
    color: var(--text);
    font-size: 1.65rem;
    font-weight: 700;
    margin: 2.2rem 0 .85rem;
    line-height: 1.3;
    letter-spacing: -.01em;
}
.post-content h3 {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.6rem 0 .6rem;
    line-height: 1.35;
}
.post-content h4 {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.3rem 0 .5rem;
}

.post-content p  { color: var(--text-muted); margin-bottom: 1.15rem; }
.post-content ul, .post-content ol {
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-bottom: 1.15rem;
}
.post-content li { margin-bottom: .5rem; }
.post-content strong { color: var(--text); font-weight: 700; }
.post-content a {
    color: var(--primary-light);
    border-bottom: 1px solid transparent;
    transition: border-color .15s;
}
.post-content a:hover { border-color: var(--primary-light); }

/* Inline code — proper chip styling */
.post-content code {
    background: var(--bg-secondary);
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
    padding: .15em .45em;
    border-radius: 5px;
    border: 1px solid var(--border);
    font-weight: 500;
}

/* Block code */
.post-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.15rem;
    overflow-x: auto;
    margin: 1.25rem 0;
}
.post-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text);
}

/* Blockquote */
.post-content blockquote {
    border-left: 3px solid var(--primary-light);
    background: var(--bg-secondary);
    margin: 1.25rem 0;
    padding: .85rem 1.15rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text);
    font-style: italic;
}

/* Image inside content */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.25rem 0;
}

@media (max-width: 640px) {
    .post-content { font-size: .98rem; line-height: 1.7; }
    .post-content h2 { font-size: 1.4rem; margin-top: 1.8rem; }
    .post-content h3 { font-size: 1.15rem; }
    .main-content-area { padding: 32px 0; }
    .page-hero { padding: 28px 0 24px; }
}

/* Ads */
.ad-slot { text-align: center; padding: .75rem 0; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER — v5 Professional (trust banner, compliance strip, back-to-top)
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 0;
}

/* Trust banner sits above the main grid */
.footer-trust-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, .06), rgba(34, 197, 94, .06));
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}
.trust-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { .trust-badges { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .trust-badges { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.trust-badge {
    display: flex;
    align-items: center;
    gap: .85rem;
}
.trust-badge > i {
    font-size: 1.75rem;
    color: var(--primary);
    flex-shrink: 0;
    background: var(--bg-card);
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.trust-badge > div { display: flex; flex-direction: column; min-width: 0; }
.trust-badge strong { font-size: .9rem; color: var(--text); font-weight: 700; line-height: 1.2; }
.trust-badge span { font-size: .78rem; color: var(--text-muted); margin-top: .15rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 55px 0 28px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
        gap: 2.5rem;
    }
}
.footer-col-brand { min-width: 0; }
.footer-col { min-width: 0; }

.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; margin-bottom: .65rem; }
.footer-tagline { font-size: .88rem; color: var(--text-muted); margin-bottom: 1.1rem; line-height: 1.55; }
.footer-heading { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
    color: var(--text-muted);
    font-size: .87rem;
    text-decoration: none;
    transition: color .15s ease, transform .15s ease;
    display: inline-flex;
    align-items: center;
}
.footer-links a:hover { color: var(--primary-light); transform: translateX(2px); }

/* WhatsApp CTA card in footer brand column */
.footer-wa-cta {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    background: var(--wa-green);
    color: #fff;
    padding: .7rem 1.1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    margin-bottom: 1.1rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}
.footer-wa-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.footer-wa-cta > i { font-size: 1.5rem; }
.footer-wa-cta-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.footer-wa-cta-num { display: block; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }

.social-links { display: flex; gap: .45rem; flex-wrap: wrap; }
.social-link {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.social-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

/* Compliance notice above bottom bar */
.footer-compliance {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: .85rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.footer-compliance strong { color: var(--text); }

.footer-divider { border-color: var(--border); margin: 0 0 1.25rem; opacity: 1; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .82rem;
    padding-bottom: 1.5rem;
}
.footer-copyright { color: var(--text-muted); font-style: normal; margin: 0; }
.footer-trust-text {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: .82rem;
}
.footer-trust-text i { color: var(--accent); margin-right: .2rem; }
.footer-sep { color: var(--border); }

/* Back to Top button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px; height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: var(--z-wa-float);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}
/* Move back-to-top up when WhatsApp float is also visible */
.wa-float ~ .back-to-top,
body:has(.wa-float) .back-to-top {
    bottom: 92px;
}

@media (max-width: 640px) {
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .back-to-top { width: 40px; height: 40px; bottom: 16px; right: 16px; }
    body:has(.wa-float) .back-to-top { bottom: 80px; }
}
.social-links { display: flex; gap: .45rem; flex-wrap: wrap; }
.social-link {
    width: 36px; height: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: .88rem;
    transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE (mobile-first tweaks)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    :root { --header-h: 58px; }
    .hero-section { padding: 40px 0 70px; }
    .hero-title { font-size: 1.55rem; }
    .hero-subtitle { font-size: .9rem; }
    .tool-card { padding: 1.25rem; }
    .tool-input-group { flex-wrap: wrap; }
    .tool-input  { width: 100%; min-width: 0; }
    .btn-search  { width: 100%; justify-content: center; }
    .tool-trust  { gap: .65rem; }
    .trust-item  { font-size: .74rem; }
    .stats-section { padding: 35px 0; }
    .stat-number { font-size: 1.8rem; }
    .services-section { padding: 50px 0; }
    .services-cta { padding: 1.75rem 1.25rem; }
    .lead-card { padding: 1.5rem 1.25rem; }
    .lead-card-head { flex-direction: column; gap: .75rem; }
    .author-box { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: .35rem; }
    .wa-float { width: 50px; height: 50px; font-size: 1.4rem; bottom: 18px; right: 18px; }
    .result-label { min-width: 100px; }
}
@media (max-width: 479.98px) {
    .hero-badge { font-size: .72rem; }
    .service-card { padding: 1.1rem; }
    .lead-card-title { font-size: 1.1rem; }
}

/* ── Accessibility ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible (keyboard nav) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Print (because we're a "professional" SaaS now 😉) */
@media print {
    .site-header, .site-footer, .wa-float, .lead-section, .btn-search, .service-wa-btn { display: none !important; }
    body { background: #fff; color: #000; }
}



/* ════ SOURCE: tools.css ════ */
/* ═══════════════════════════════════════════════════════════
   LIVE TRACKER PRO — TOOLS SYSTEM (v5.4)
   Categorized gallery, redirect loader, vehicle results
   Uses existing brand vars: --primary, --accent, etc.
   ═══════════════════════════════════════════════════════════ */

/* ── Homepage Tool Gallery ─────────────────────────────── */
.homepage-gallery {
    padding: 4rem 0 3rem;
    background: var(--bg-secondary, #f8fafc);
    border-top: 1px solid var(--border, #e2e8f0);
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.homepage-gallery .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-eyebrow {
    display: inline-block;
    color: var(--primary-light, #2563EB);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: .65rem;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text, #0f172a);
    margin: 0 0 .65rem;
    letter-spacing: -.02em;
}
.section-subtitle {
    color: var(--text-muted, #64748b);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.gallery-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.gallery-category {
    background: var(--bg-card, #fff);
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.gallery-category::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--cat-color, var(--primary));
    opacity: .9;
}
.gallery-category:hover {
    transform: translateY(-3px);
    border-color: var(--cat-color, var(--primary-light));
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.gallery-cat-header {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1.15rem;
}
.gallery-cat-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--cat-color) 15%, transparent);
    color: var(--cat-color, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.gallery-cat-text { flex: 1; min-width: 0; }
.gallery-cat-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 .2rem;
    color: var(--text, #0f172a);
}
.gallery-cat-desc {
    font-size: .82rem;
    color: var(--text-muted, #64748b);
    margin: 0;
    line-height: 1.4;
}

.gallery-tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.gallery-tool-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    background: var(--bg-secondary, #f1f5f9);
    color: var(--text, #0f172a);
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border, #e2e8f0);
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.gallery-tool-pill i { font-size: .85rem; color: var(--cat-color, var(--primary-light)); }
.gallery-tool-pill:hover {
    background: var(--cat-color, var(--primary-light));
    color: #fff;
    border-color: var(--cat-color, var(--primary-light));
    transform: translateY(-1px);
}
.gallery-tool-pill:hover i { color: #fff; }
.gallery-tool-pill-more {
    background: transparent;
    color: var(--text-muted, #64748b);
    font-style: italic;
}

.gallery-footer-cta {
    text-align: center;
    margin-top: 1rem;
}
.gallery-footer-cta .btn {
    padding: .85rem 2rem;
    font-weight: 600;
    border-radius: 10px;
}

/* ── /tools listing page ───────────────────────────────── */
.tool-category-section {
    margin-bottom: 3rem;
}
.tool-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--cat-color, var(--primary));
}
.tool-category-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--cat-color) 15%, transparent);
    color: var(--cat-color, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
}
.tool-category-title {
    margin: 0 0 .15rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text, #0f172a);
}
.tool-category-desc {
    margin: 0;
    color: var(--text-muted, #64748b);
    font-size: .9rem;
}
.tool-category-count {
    margin-left: auto;
    background: color-mix(in srgb, var(--cat-color) 12%, transparent);
    color: var(--cat-color);
    padding: .35rem .85rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.tool-grid-card {
    background: var(--bg-card, #fff);
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text, #0f172a);
    transition: all .2s;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    position: relative;
    min-height: 140px;
}
.tool-grid-card:hover {
    transform: translateY(-3px);
    border-color: var(--cat-color, var(--primary-light));
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    color: var(--text, #0f172a);
}
.tool-grid-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--cat-color) 15%, transparent);
    color: var(--cat-color, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.tool-grid-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}
.tool-grid-desc {
    font-size: .82rem;
    color: var(--text-muted, #64748b);
    line-height: 1.45;
    flex: 1;
}
.tool-grid-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: var(--cat-color, var(--primary-light));
    font-size: 1.05rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all .2s;
}
.tool-grid-card:hover .tool-grid-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Redirect Loader (Categories B + C) ────────────────── */
.redirect-loader-card {
    background: var(--bg-card, #fff);
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    max-width: 580px;
    margin: 0 auto;
}

.redirect-spinner-wrap {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.5rem;
    position: relative;
}
.redirect-spinner {
    width: 100%;
    height: 100%;
    border: 5px solid var(--bg-secondary, #f1f5f9);
    border-top-color: var(--primary-light, #2563EB);
    border-right-color: var(--primary-light, #2563EB);
    border-radius: 50%;
    animation: redirect-spin 1.2s linear infinite;
}
.redirect-spinner-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.4rem;
    color: var(--primary, #1E3A8A);
}
@keyframes redirect-spin {
    to { transform: rotate(360deg); }
}

.redirect-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 .3rem;
    color: var(--text, #0f172a);
}
.redirect-subtitle {
    color: var(--text-muted, #64748b);
    margin-bottom: 1.5rem;
}

.redirect-progress {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary, #f1f5f9);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: .65rem;
}
.redirect-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-light, #2563EB), var(--accent, #22C55E));
    border-radius: 999px;
}
.redirect-countdown {
    font-size: .85rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.redirect-countdown span {
    color: var(--primary, #1E3A8A);
    font-weight: 800;
    font-size: 1.05rem;
}

.redirect-upsell {
    background: linear-gradient(135deg, rgba(37,211,102,.08), rgba(37,211,102,.03));
    border: 1px dashed rgba(37,211,102,.35);
    border-radius: 12px;
    padding: 1.15rem;
    margin-top: 1.5rem;
}
.redirect-upsell-text {
    margin: 0 0 .75rem;
    color: var(--text, #0f172a);
    font-size: .9rem;
    font-weight: 500;
}
.redirect-upsell-text i {
    color: var(--primary-light, #2563EB);
    margin-right: .35rem;
}
.btn-whatsapp-upsell {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: .7rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    box-shadow: 0 4px 14px rgba(37,211,102,.35);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-whatsapp-upsell:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,.45);
}

.redirect-state-ready { animation: fadeInUp .35s ease; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}
.redirect-success-icon {
    font-size: 4rem;
    color: var(--accent, #22C55E);
    margin-bottom: 1rem;
    animation: pop .5s cubic-bezier(.175, .885, .32, 1.275);
}
@keyframes pop {
    0%   { transform: scale(0); }
    100% { transform: scale(1); }
}

.btn-redirect-final {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: linear-gradient(135deg, var(--primary, #1E3A8A), var(--primary-light, #2563EB));
    color: #fff;
    text-decoration: none;
    padding: 1.1rem 2.2rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 8px 22px rgba(30,58,138,.3);
    transition: transform .15s, box-shadow .15s;
}
.btn-redirect-final:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30,58,138,.4);
}
.redirect-disclaimer {
    font-size: .8rem;
    color: var(--text-muted, #64748b);
}
.redirect-disclaimer i {
    color: var(--accent, #22C55E);
    margin-right: .3rem;
}

/* ── Vehicle Verification Result ───────────────────────── */
.vehicle-result {
    max-width: 720px;
    margin: 0 auto;
}
.vehicle-status-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-radius: 14px;
    margin-bottom: 1.25rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.status-clear {
    background: linear-gradient(135deg, #22C55E, #16a34a);
}
.status-stolen {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: pulse-warn 2s infinite;
}
.status-unknown {
    background: linear-gradient(135deg, #64748b, #475569);
}
@keyframes pulse-warn {
    0%, 100% { box-shadow: 0 8px 24px rgba(239,68,68,.3); }
    50%      { box-shadow: 0 8px 32px rgba(239,68,68,.55); }
}
.vehicle-status-icon {
    font-size: 2.8rem;
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}
.vehicle-status-label {
    font-size: .82rem;
    font-weight: 600;
    opacity: .9;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .15rem;
}
.vehicle-status-value {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

.vehicle-upsell {
    margin-top: 1.25rem;
    padding: 1.15rem 1.35rem;
    background: linear-gradient(135deg, rgba(37,211,102,.08), rgba(37,211,102,.03));
    border: 1px solid rgba(37,211,102,.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.vehicle-upsell-text { flex: 1; min-width: 200px; }
.vehicle-upsell-text strong {
    display: block;
    color: var(--text, #0f172a);
    font-size: 1rem;
    margin-bottom: .15rem;
}
.vehicle-upsell-text p {
    margin: 0;
    color: var(--text-muted, #64748b);
    font-size: .85rem;
}

.result-card-error {
    border-color: #fecaca !important;
}
.result-card-error .result-card-header {
    color: #991b1b;
}
.result-badge-demo {
    background: #f59e0b;
    color: #fff;
}
.demo-notice {
    padding: .75rem 1rem;
    background: #fffbeb;
    border-top: 1px solid #fde68a;
    color: #92400e;
    font-size: .82rem;
    margin: 1rem -1.5rem -1.5rem;
}

/* ── FAQ section (shared by all tool layouts) ─────────── */
.faq-section {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.faq-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
}
.faq-item[open] {
    border-color: var(--primary-light, #2563EB);
    box-shadow: 0 4px 12px rgba(30,58,138,.08);
}
.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--text, #0f172a);
    position: relative;
    padding-right: 2.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-light, #2563EB);
    transition: transform .2s;
    font-weight: 300;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-muted, #64748b);
    line-height: 1.7;
    font-size: .92rem;
}

.tool-content {
    max-width: 800px;
    margin: 2.5rem auto;
    line-height: 1.75;
    color: var(--text, #0f172a);
}
.tool-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}
.tool-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: .75rem;
    font-weight: 700;
}
.tool-content p { margin-bottom: 1rem; }
.tool-content ul, .tool-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.tool-content li { margin-bottom: .35rem; }

@media (max-width: 600px) {
    .gallery-categories, .tool-grid { grid-template-columns: 1fr; }
    .vehicle-status-banner { flex-direction: column; text-align: center; }
    .redirect-loader-card { padding: 2rem 1.25rem; }
    .tool-category-header { flex-wrap: wrap; }
    .tool-category-count { margin-left: 0; }
}

/* ═══════════════════════════════════════════════════════════
   v5.5 — PREMIUM UI ENHANCEMENTS
   - SIM category featured section (soft grey background)
   - Glassmorphism cards (subtle blur + thin borders)
   - Button hover animations + soft shadows
   - 3-state redirect flow (input → loading → ready)
   ═══════════════════════════════════════════════════════════ */

/* ── SIM Tools Featured Section (homepage gallery) ────── */
.gallery-category[style*="--cat-color: #2563EB"],
.gallery-category-featured {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.gallery-category[style*="--cat-color: #2563EB"]::after {
    content: "FEATURED";
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    padding: .25rem .65rem;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(30,58,138,.3);
}
[data-theme="dark"] .gallery-category[style*="--cat-color: #2563EB"],
[data-theme="dark"] .gallery-category-featured {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

/* ── Glassmorphism for non-featured category cards ────── */
.gallery-category:not([style*="--cat-color: #2563EB"]) {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    text-align: center;
}
[data-theme="dark"] .gallery-category:not([style*="--cat-color: #2563EB"]) {
    background: rgba(30, 41, 59, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
}
.gallery-category:not([style*="--cat-color: #2563EB"]) .gallery-cat-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .65rem;
}
.gallery-category:not([style*="--cat-color: #2563EB"]) .gallery-cat-icon {
    width: 64px; height: 64px;
    font-size: 1.85rem;
}
.gallery-category:not([style*="--cat-color: #2563EB"]) .gallery-tool-list {
    justify-content: center;
}

/* Premium hover for ALL category cards */
.gallery-category {
    transition: transform .3s cubic-bezier(.175, .885, .32, 1.275),
                box-shadow .3s ease,
                border-color .3s ease;
}
.gallery-category:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

/* ── /tools listing page — Glassmorphism cards ─────────── */
.tool-grid-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px) saturate(160%);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
    transition: transform .3s cubic-bezier(.175, .885, .32, 1.275),
                box-shadow .3s, border-color .3s;
}
[data-theme="dark"] .tool-grid-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}
.tool-grid-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
}
.tool-grid-card .tool-grid-icon {
    margin: 0 auto;
    width: 52px; height: 52px;
    font-size: 1.45rem;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--cat-color, #2563EB) 25%, transparent);
}
.tool-grid-arrow {
    position: static !important;
    opacity: 0 !important;
    transform: scale(0) !important;
    margin-top: .5rem;
    transition: all .3s !important;
}
.tool-grid-card:hover .tool-grid-arrow {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* ── Premium button polish ─────────────────────────────── */
.btn,
.btn-search,
.btn-redirect-final,
.btn-whatsapp-upsell {
    transition: transform .2s cubic-bezier(.175, .885, .32, 1.275),
                box-shadow .2s ease,
                background .2s ease,
                color .2s ease;
}
.btn-search:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 58, 138, .25);
}
.btn:active,
.btn-search:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(30, 58, 138, .2);
}

/* ── 3-State Redirect Flow (v5.5) ──────────────────────── */

/* Hero centered variant */
.page-hero-centered { text-align: center; }
.page-hero-centered h1 { margin-left: auto; margin-right: auto; }

.tool-section-centered {
    padding-top: 2rem;
}

.redirect-card-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .1),
                0 2px 8px rgba(0, 0, 0, .04);
    text-align: center;
    animation: cardEnter .5s cubic-bezier(.175, .885, .32, 1.275);
}
@keyframes cardEnter {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
[data-theme="dark"] .redirect-card-wrapper {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

.redirect-state {
    animation: stateFadeIn .4s ease;
}
@keyframes stateFadeIn {
    from { opacity: 0; transform: scale(.97); }
    to   { opacity: 1; transform: scale(1); }
}

.redirect-icon-large {
    width: 96px; height: 96px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    box-shadow: 0 10px 28px rgba(30, 58, 138, .35);
    animation: iconBob 3s ease-in-out infinite;
}
@keyframes iconBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.redirect-card-title {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 .4rem;
    color: var(--text, #0f172a);
    letter-spacing: -.01em;
}
.redirect-card-subtitle {
    color: var(--text-muted, #64748b);
    margin-bottom: 1.75rem;
    font-size: .95rem;
}

/* Input form (state 1) */
.redirect-input-group {
    margin-bottom: 1.25rem;
    text-align: left;
}
.redirect-input-label {
    display: block;
    font-weight: 600;
    font-size: .85rem;
    color: var(--text, #0f172a);
    margin-bottom: .5rem;
    letter-spacing: .02em;
}
.redirect-input {
    width: 100%;
    padding: .95rem 1.1rem;
    font-size: 1rem;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text, #0f172a);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.redirect-input:focus {
    outline: none;
    border-color: var(--primary-light, #2563EB);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    background: #fff;
}
[data-theme="dark"] .redirect-input {
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
}

.btn-redirect-check {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    box-shadow: 0 8px 22px rgba(30, 58, 138, .3);
    transition: transform .2s cubic-bezier(.175, .885, .32, 1.275), box-shadow .2s;
    letter-spacing: .02em;
}
.btn-redirect-check:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 58, 138, .4);
}
.btn-redirect-check:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(30, 58, 138, .3);
}

.trust-badges-mini {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.trust-badge-mini {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--text-muted, #64748b);
    font-size: .78rem;
    font-weight: 500;
}
.trust-badge-mini i {
    color: var(--accent, #22C55E);
    font-size: .9rem;
}

/* Loader (state 2) — premium polish */
.redirect-state-loading {
    padding: 1rem 0;
}
.redirect-spinner-wrap {
    width: 110px; height: 110px;
    margin: 0 auto 1.5rem;
    position: relative;
}
.redirect-spinner {
    width: 100%; height: 100%;
    border: 5px solid rgba(37, 99, 235, .12);
    border-top-color: #2563EB;
    border-right-color: #1E3A8A;
    border-radius: 50%;
    animation: spinSmooth 1.1s cubic-bezier(.5, .15, .5, .85) infinite;
}
@keyframes spinSmooth {
    to { transform: rotate(360deg); }
}
.redirect-spinner-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.4rem;
    color: #1E3A8A;
}
.redirect-progress {
    width: 100%;
    max-width: 400px;
    height: 8px;
    margin: 1.5rem auto .75rem;
    background: rgba(37, 99, 235, .12);
    border-radius: 999px;
    overflow: hidden;
}
.redirect-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563EB, #22C55E);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(34, 197, 94, .4);
}
.redirect-countdown {
    font-size: .88rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 1.75rem;
    font-weight: 500;
}
.redirect-countdown i { margin-right: .3rem; }
.redirect-countdown span {
    color: #1E3A8A;
    font-weight: 800;
    font-size: 1.05rem;
}

/* Upsell box during loading — premium WhatsApp callout */
.redirect-upsell-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, .08), rgba(37, 211, 102, .02));
    border: 1.5px solid rgba(37, 211, 102, .25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}
.redirect-upsell-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(37, 211, 102, .35);
    animation: pulseGreen 2s ease-in-out infinite;
}
@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 6px 16px rgba(37, 211, 102, .35); }
    50%      { box-shadow: 0 8px 24px rgba(37, 211, 102, .55); }
}
.redirect-upsell-content { flex: 1; min-width: 0; }
.redirect-upsell-content strong {
    display: block;
    color: var(--text, #0f172a);
    font-size: .95rem;
    margin-bottom: .15rem;
}
.redirect-upsell-content p {
    margin: 0 0 .65rem;
    color: var(--text-muted, #64748b);
    font-size: .82rem;
    line-height: 1.4;
}

/* Ready state — Premium animated "View Results" button */
.redirect-state-ready {
    padding: 1rem 0;
}
.redirect-success-icon {
    font-size: 4.5rem;
    color: var(--accent, #22C55E);
    margin-bottom: 1rem;
    animation: successPop .6s cubic-bezier(.175, .885, .32, 1.275);
    line-height: 1;
}
@keyframes successPop {
    0%   { opacity: 0; transform: scale(0); }
    60%  { opacity: 1; transform: scale(1.15); }
    100% { transform: scale(1); }
}

.btn-view-results {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #22C55E 100%);
    background-size: 200% 200%;
    border-radius: 14px;
    margin: 1rem 0;
    box-shadow: 0 12px 30px rgba(30, 58, 138, .35),
                0 4px 12px rgba(34, 197, 94, .25);
    position: relative;
    overflow: hidden;
    letter-spacing: .02em;
    animation: viewBtnIn .55s cubic-bezier(.175, .885, .32, 1.275),
               gradientShift 4s ease infinite alternate;
    transition: transform .25s cubic-bezier(.175, .885, .32, 1.275),
                box-shadow .25s ease;
}
@keyframes viewBtnIn {
    from { opacity: 0; transform: scale(.85) translateY(15px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.btn-view-results:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 18px 40px rgba(30, 58, 138, .45),
                0 6px 18px rgba(34, 197, 94, .35);
    color: #fff;
}
.btn-view-results:active {
    transform: translateY(-1px) scale(1.01);
}
.btn-view-results-pulse {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(.8);
    opacity: 0;
    animation: btnPulseRing 2s ease-out infinite;
    pointer-events: none;
}
@keyframes btnPulseRing {
    0%   { opacity: .8; transform: translate(-50%, -50%) scale(.95); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}
.btn-view-results i {
    font-size: 1.25rem;
}

.redirect-disclaimer {
    margin-top: 1rem;
    font-size: .85rem;
    color: var(--text-muted, #64748b);
}
.redirect-disclaimer i {
    color: var(--accent, #22C55E);
    margin-right: .35rem;
}

.redirect-help-link {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border, #e2e8f0);
    font-size: .88rem;
    color: var(--text-muted, #64748b);
}
.redirect-help-link a {
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
}
.redirect-help-link a:hover {
    text-decoration: underline;
}

/* ── /tools listing page header polish ─────────────────── */
.tool-category-section {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
}
[data-theme="dark"] .tool-category-section {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
}

/* ── Mobile polish ─────────────────────────────────────── */
@media (max-width: 600px) {
    .redirect-card-wrapper { padding: 1.75rem 1.25rem; }
    .redirect-icon-large { width: 76px; height: 76px; font-size: 2rem; }
    .btn-view-results { padding: 1rem 1.5rem; font-size: 1rem; }
    .redirect-upsell-box { flex-direction: column; text-align: center; }
    .redirect-upsell-icon { margin: 0 auto; }
}



/* ════ SOURCE: tools_v5.6.css ════ */
/* ════════════════════════════════════════════════════════════
   LIVE TRACKER PRO — TOOLS v5.6 (PREMIUM SOLID UI)
   ────────────────────────────────────────────────────────────
   Drops glassmorphism. Solid surfaces. Matches homepage Services
   card style. Reuses existing brand vars (--primary, --accent).
   ════════════════════════════════════════════════════════════ */

/* ── 1. Override v5.5 glassmorphism with solid surfaces ─── */

/* Solid category cards on homepage (match .service-card pattern) */
.gallery-category {
    background: var(--bg-card) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius, 12px);
    padding: 1.5rem 1.35rem;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    text-align: left;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* Top accent bar — animates in on hover (Services pattern) */
.gallery-category::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.gallery-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
    border-color: var(--primary-light) !important;
}
.gallery-category:hover::before { transform: scaleX(1); }

/* Reset any v5.5 ::after pseudo-element badges except featured */
.gallery-category::after { content: none; }

/* SIM tools featured visual weight */
.gallery-category-featured {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(37, 99, 235, .04) 100%) !important;
    border-color: var(--primary-light) !important;
    box-shadow: 0 8px 24px rgba(30, 58, 138, .08);
}
.gallery-category-featured::before {
    transform: scaleX(1);
    height: 4px;
}
.gallery-category-featured::after {
    content: "FEATURED";
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    padding: .25rem .65rem;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(30, 58, 138, .3);
    z-index: 1;
}
.gallery-category-featured .gallery-cat-icon {
    width: 56px; height: 56px;
    font-size: 1.65rem;
}

/* Header inside cards: left-aligned (Services pattern) */
.gallery-cat-header {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1rem;
    text-align: left !important;
    flex-direction: row !important;
}
.gallery-cat-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm, 8px);
    background: color-mix(in srgb, var(--cat-color, var(--primary-light)) 12%, transparent);
    color: var(--cat-color, var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.gallery-cat-title {
    font-size: .98rem;
    font-weight: 700;
    margin: 0 0 .15rem;
    color: var(--text);
    line-height: 1.3;
}
.gallery-cat-desc {
    font-size: .8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Tool pills inside categories — left aligned, solid */
.gallery-tool-list {
    justify-content: flex-start !important;
}
.gallery-tool-pill {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .8rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    transition: all .2s ease;
}
.gallery-tool-pill:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(30, 58, 138, .25);
}
.gallery-tool-pill:hover i { color: #fff; }


/* ── 2. /tools listing page — solid premium cards ─────── */

.tool-category-section {
    background: var(--bg-card) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-lg, 16px);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

.tool-grid-card {
    background: var(--bg-card) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1.5px solid var(--border) !important;
    text-align: left !important;
    align-items: flex-start !important;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tool-grid-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.tool-grid-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--primary-light) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08) !important;
}
.tool-grid-card:hover::before { transform: scaleX(1); }
.tool-grid-card .tool-grid-icon {
    margin: 0 0 .85rem !important;
    width: 44px; height: 44px;
    box-shadow: none;
}


/* ── 3. Redirect tool page — homepage-style search box ── */

.redirect-tool-page {
    padding: 2.25rem 0 3rem;
}

.redirect-tool-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-lg, 0 12px 30px rgba(0,0,0,.08));
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
    /* Mobile keyboard friendly */
    scroll-margin-top: 80px;
}
.redirect-tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
}

.redirect-tool-icon {
    width: 72px; height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(30, 58, 138, .25);
}

.redirect-tool-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 .4rem;
    color: var(--text);
    letter-spacing: -.01em;
}
.redirect-tool-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin: 0 0 1.75rem;
    font-size: .92rem;
}

/* Reuses homepage .tool-input-group + .tool-input + .btn-search but
   overrides for centered, full-width feel on dedicated page */
.redirect-tool-card .tool-input-group {
    margin-bottom: .8rem;
}
.redirect-tool-card .btn-search {
    width: 100%;
    padding: .85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 6px 18px rgba(30, 58, 138, .3);
    transition: transform .15s cubic-bezier(.4, 0, .2, 1),
                box-shadow .2s ease,
                filter .15s ease;
}
.redirect-tool-card .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 58, 138, .4);
    filter: brightness(1.05);
}
/* Tactile press — quick scale-down on click */
.redirect-tool-card .btn-search:active {
    transform: scale(.97) translateY(0);
    box-shadow: 0 3px 10px rgba(30, 58, 138, .25);
    transition-duration: .08s;
}

.redirect-trust-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.redirect-trust-row .trust-item {
    font-size: .78rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 500;
}
.redirect-trust-row .trust-item i {
    color: var(--accent);
    font-size: .9rem;
}


/* ── 4. Inline SVG loaders (~2KB total, GPU-accelerated) ── */

.svg-loader {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
    display: block;
}

/* Radar pulse rings */
.svg-loader-radar circle {
    transform-origin: center;
    transform-box: fill-box;
    fill: none;
    stroke: var(--primary-light);
    stroke-width: 2;
    opacity: 0;
    animation: radarPulse 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
.svg-loader-radar circle:nth-child(1) { animation-delay: 0s; }
.svg-loader-radar circle:nth-child(2) { animation-delay: .8s; }
.svg-loader-radar circle:nth-child(3) { animation-delay: 1.6s; }
.svg-loader-radar .radar-dot {
    fill: var(--primary);
    stroke: none;
    opacity: 1;
    animation: radarDot 1.2s ease-in-out infinite;
}
@keyframes radarPulse {
    0%   { r: 4; opacity: 1; stroke-width: 3; }
    100% { r: 44; opacity: 0; stroke-width: 1; }
}
@keyframes radarDot {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.3); }
}

.processing-text {
    text-align: center;
    color: var(--text);
    font-weight: 600;
    margin: 0 0 .25rem;
    font-size: 1.05rem;
}
.processing-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: .85rem;
    margin: 0 0 1.25rem;
}

/* Progress bar (during 5-sec wait) */
.progress-track {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 999px;
    overflow: hidden;
    margin: 1rem 0 .5rem;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(34, 197, 94, .35);
}
.progress-meta {
    text-align: center;
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 500;
}
.progress-meta strong { color: var(--primary); font-weight: 700; }


/* ── 5. Skeleton shimmer (button placeholder during processing) ── */

.skeleton-button {
    width: 100%;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        rgba(255, 255, 255, .8) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: shimmerSweep 1.4s ease-in-out infinite;
    margin: 1rem 0;
}
[data-theme="dark"] .skeleton-button {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, .04) 0%,
        rgba(255, 255, 255, .12) 50%,
        rgba(255, 255, 255, .04) 100%
    );
    background-size: 200% 100%;
}
@keyframes shimmerSweep {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ── 6. WhatsApp sticky upsell during 5-sec wait ────────── */

.wa-upsell-sticky {
    margin-top: 1.5rem;
    padding: 1.15rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, .08), rgba(37, 211, 102, .02));
    border: 1.5px solid rgba(37, 211, 102, .25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.wa-upsell-sticky-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 211, 102, .35);
    animation: waPulse 2s ease-in-out infinite;
}
@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, .35); }
    50%      { box-shadow: 0 6px 18px rgba(37, 211, 102, .55); }
}
.wa-upsell-sticky-content { flex: 1; min-width: 0; }
.wa-upsell-sticky-content strong {
    display: block;
    color: var(--text);
    font-size: .92rem;
    margin-bottom: .15rem;
}
.wa-upsell-sticky-content p {
    margin: 0 0 .5rem;
    color: var(--text-muted);
    font-size: .8rem;
    line-height: 1.45;
}
.wa-upsell-sticky-content a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #25D366;
    color: #fff !important;
    text-decoration: none;
    padding: .45rem 1rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    transition: transform .15s, box-shadow .2s, background .15s;
}
.wa-upsell-sticky-content a:hover {
    background: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, .35);
}


/* ── 7. THE EXPENSIVE "VIEW RESULTS" BUTTON ─────────────── */

.btn-view-results-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .015em;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(135deg,
        var(--primary) 0%,
        var(--primary-light) 50%,
        var(--accent) 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    border: none;
    border-radius: 14px;
    margin: 0 0 1rem;
    box-shadow:
        0 12px 32px rgba(30, 58, 138, .35),
        0 4px 12px rgba(34, 197, 94, .2),
        inset 0 1px 0 rgba(255, 255, 255, .2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1),
                box-shadow .25s ease,
                background-position .6s ease;
    animation: viewResultsIn .55s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes viewResultsIn {
    0%   { opacity: 0; transform: scale(.85) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Pulse ring around button (separate element for control) */
.btn-view-results-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: inherit;
    background-size: 200% 200%;
    opacity: 0;
    animation: viewResultsPulse 2s ease-out infinite;
    z-index: -1;
}
@keyframes viewResultsPulse {
    0%   { opacity: .5; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.08); }
}

/* Hover: gradient shifts + lift */
.btn-view-results-premium:hover {
    transform: translateY(-3px) scale(1.015);
    background-position: 100% 50%;
    box-shadow:
        0 18px 42px rgba(30, 58, 138, .45),
        0 6px 18px rgba(34, 197, 94, .3),
        inset 0 1px 0 rgba(255, 255, 255, .25);
    color: #fff !important;
}

/* Tactile press */
.btn-view-results-premium:active {
    transform: scale(.97);
    transition-duration: .08s;
    box-shadow:
        0 4px 12px rgba(30, 58, 138, .3),
        inset 0 2px 4px rgba(0, 0, 0, .15);
}

.btn-view-results-premium i {
    font-size: 1.2rem;
}

.results-disclaimer {
    text-align: center;
    color: var(--text-muted);
    font-size: .82rem;
    margin: .65rem 0 0;
}
.results-disclaimer i {
    color: var(--accent);
    margin-right: .3rem;
}


/* ── 8. Stage transitions ──────────────────────────────── */

.tool-stage {
    animation: stageEnter .35s ease;
}
@keyframes stageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.success-checkmark-svg {
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem;
    display: block;
}
.success-checkmark-svg .check-circle {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: drawCircle .55s ease forwards;
}
.success-checkmark-svg .check-mark {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck .35s .55s ease forwards;
}
@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}
@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}


/* ── 9. Mobile polish ──────────────────────────────────── */

@media (max-width: 600px) {
    .redirect-tool-card {
        padding: 1.75rem 1.25rem;
        margin: 0 .5rem;
    }
    .redirect-tool-icon { width: 60px; height: 60px; font-size: 1.6rem; }
    .redirect-tool-title { font-size: 1.2rem; }
    .btn-view-results-premium { padding: 1.05rem 1.5rem; font-size: 1rem; }
    .wa-upsell-sticky { flex-direction: column; text-align: center; }
    .svg-loader { width: 76px; height: 76px; }
    .redirect-trust-row { gap: 1rem; }
}


/* ── 10. Admin tools — Blue/Green premium accent ───────── */

body.admin-body .admin-card {
    border: 1px solid var(--border);
    transition: border-color .2s, box-shadow .2s;
}
body.admin-body .admin-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}
.admin-action-row {
    display: flex;
    gap: .5rem;
    align-items: stretch;
}
.admin-action-row > * {
    flex: 1;
}



/* ════ SOURCE: tools_v5.7.css ════ */
/* ════════════════════════════════════════════════════════════
   LIVE TRACKER PRO — TOOLS v5.7 (Premium Sectional + Modern App)
   ────────────────────────────────────────────────────────────
   • Homepage: 3 distinct sections with bold typography
   • SIM page: Mirrors homepage hero search box (inherits .hero-section + .tool-card)
   • Vehicle page: Modern web app with AJAX, big banner, premium cards
   • Mobile: Zero horizontal overflow, 95% width on small screens
   • All tool cards use Services pattern (top-bar accent + lift)
   ════════════════════════════════════════════════════════════ */


/* ═══════ 1. HOMEPAGE GALLERY — 3 SECTION LAYOUT ═══════ */

.homepage-gallery-v57 {
    padding: 4rem 0 3rem;
    background: var(--bg-secondary, #f8fafc);
    border-top: 1px solid var(--border, #e2e8f0);
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.gallery-section {
    margin-bottom: 3.25rem;
}
.gallery-section:last-child { margin-bottom: 1.5rem; }

/* Featured section (SIM) — subtle bg highlight + extra padding */
.gallery-section-featured {
    background: linear-gradient(135deg,
        rgba(37, 99, 235, .04) 0%,
        rgba(34, 197, 94, .03) 100%);
    border: 1.5px solid rgba(37, 99, 235, .12);
    border-radius: 18px;
    padding: 2rem 1.75rem 2.25rem;
    margin: 0 0 3.25rem;
    position: relative;
}
.gallery-section-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
    border-radius: 18px 18px 0 0;
}
[data-theme="dark"] .gallery-section-featured {
    background: linear-gradient(135deg,
        rgba(37, 99, 235, .08) 0%,
        rgba(34, 197, 94, .05) 100%);
    border-color: rgba(37, 99, 235, .2);
}

/* Section header */
.gallery-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 1.5px solid var(--border, #e2e8f0);
}
.gallery-section-featured .gallery-section-header {
    border-bottom-color: rgba(37, 99, 235, .2);
}
.gallery-section-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary, #1E3A8A), var(--primary-light, #2563EB));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.65rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(30, 58, 138, .25);
}
.gallery-section-featured .gallery-section-icon {
    background: linear-gradient(135deg, var(--primary-light, #2563EB), var(--accent, #22C55E));
}
.gallery-section-text { flex: 1; min-width: 0; }
.gallery-section-title {
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 800;
    margin: 0 0 .25rem;
    color: var(--text);
    letter-spacing: -.015em;
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    line-height: 1.2;
}
.gallery-section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary, #1E3A8A), var(--primary-light, #2563EB));
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .14em;
    padding: .25rem .7rem;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(30, 58, 138, .3);
    vertical-align: middle;
}
.gallery-section-subtitle {
    font-size: .92rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}
.gallery-section-count {
    background: var(--bg-card);
    color: var(--primary-light);
    font-size: .75rem;
    font-weight: 700;
    padding: .35rem .85rem;
    border-radius: 999px;
    border: 1.5px solid rgba(37, 99, 235, .25);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Tool cards grid */
.gallery-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

/* Individual tool card — Services pattern */
.gallery-tool-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 1.35rem 1.25rem 1.15rem;
    text-decoration: none !important;
    color: var(--text);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1),
                box-shadow .25s ease,
                border-color .25s ease;
    min-height: 175px;
}
/* Top accent bar (hidden until hover) */
.gallery-tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tool-color, var(--primary-light)), var(--accent, #22C55E));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.gallery-tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--tool-color, var(--primary-light));
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
    color: var(--text);
}
.gallery-tool-card:hover::before { transform: scaleX(1); }
.gallery-tool-card:active { transform: translateY(-2px) scale(.99); transition-duration: .08s; }

.gallery-tool-card-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--tool-color, var(--primary-light)) 12%, transparent);
    color: var(--tool-color, var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: .85rem;
    transition: transform .25s;
}
.gallery-tool-card:hover .gallery-tool-card-icon {
    transform: scale(1.06);
}

.gallery-tool-card-title {
    font-size: .98rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    color: var(--text);
    line-height: 1.3;
}
.gallery-tool-card-desc {
    font-size: .82rem;
    color: var(--text-muted);
    margin: 0 0 .85rem;
    line-height: 1.5;
    flex: 1;
}
.gallery-tool-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding-top: .75rem;
    border-top: 1px dashed var(--border);
}
.gallery-tool-card-mode {
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.gallery-tool-card-arrow {
    color: var(--tool-color, var(--primary-light));
    font-size: 1rem;
    transition: transform .25s;
}
.gallery-tool-card:hover .gallery-tool-card-arrow {
    transform: translateX(4px);
}

.gallery-footer-cta {
    text-align: center;
    margin-top: 2rem;
}


/* ═══════ 2. SIM TOOL PAGE — INHERITS HOMEPAGE HERO ═══════ */

/* The hero structure is reused from main.css. We just add light polish here. */
.sim-tool-hero {
    padding-bottom: 1.5rem;
}
.sim-tool-hero .hero-badge {
    background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(34, 197, 94, .12));
    color: var(--primary, #1E3A8A);
    border: 1px solid rgba(37, 99, 235, .25);
    font-weight: 700;
    letter-spacing: .08em;
}

/* Mobile responsive: ensure the search box scales to ~95% with proper padding */
@media (max-width: 600px) {
    .sim-tool-hero {
        padding-left: 0;
        padding-right: 0;
    }
    .sim-tool-hero .container { padding-left: 1rem; padding-right: 1rem; }
    .sim-tool-hero .hero-title { font-size: 1.6rem; line-height: 1.2; }
    .sim-tool-hero .hero-subtitle { font-size: .92rem; }
    .sim-tool-hero .tool-card { padding: 1.25rem; }
    .sim-tool-hero .tool-input-group { flex-wrap: nowrap; }
    .sim-tool-hero .tool-input { font-size: 16px; /* prevents iOS zoom-on-focus */ }
    .sim-tool-hero .btn-search { padding: .55rem .85rem; }
    .sim-tool-hero .btn-search span { display: none; }  /* icon only on tiny screens */
    .sim-tool-hero .tool-trust { gap: .6rem; flex-wrap: wrap; justify-content: center; }
    .sim-tool-hero .trust-item { font-size: .72rem; }
}
@media (max-width: 380px) {
    .sim-tool-hero .hero-title { font-size: 1.4rem; }
    .sim-tool-hero .tool-card-title { font-size: .92rem; }
}


/* ═══════ 3. VEHICLE PAGE — MODERN WEB APP ═══════ */

.vehicle-hero {
    padding-bottom: 2rem;
}
.vehicle-hero .vehicle-badge {
    background: linear-gradient(135deg, rgba(34, 197, 94, .15), rgba(34, 197, 94, .05));
    color: var(--accent-dark, #16a34a);
    border: 1px solid rgba(34, 197, 94, .3);
    font-weight: 700;
    letter-spacing: .08em;
}

/* Vehicle Search Card — distinct from SIM tool-card */
.vehicle-search-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.85rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .07);
    position: relative;
    overflow: hidden;
}
.vehicle-search-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #1E3A8A), var(--accent, #22C55E));
}

.vehicle-search-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -.01em;
}

.vehicle-input-group {
    position: relative;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0;
    display: flex;
    align-items: stretch;
    transition: border-color .15s ease, background .15s ease;
    overflow: hidden;
}
.vehicle-input-group:focus-within {
    border-color: var(--primary-light);
    background: var(--bg-card);
}
.vehicle-input-icon {
    display: flex;
    align-items: center;
    padding: 0 .9rem 0 1.05rem;
    color: var(--text-muted);
    font-size: 1.15rem;
    flex-shrink: 0;
}
.vehicle-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    padding: .95rem .25rem;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, monospace;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.vehicle-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font);
}

.btn-vehicle-check {
    background: linear-gradient(135deg, var(--primary, #1E3A8A), var(--primary-light, #2563EB));
    color: #fff;
    border: none;
    padding: .85rem 1.35rem;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
    transition: transform .15s cubic-bezier(.4, 0, .2, 1),
                box-shadow .2s ease,
                filter .15s ease;
}
.btn-vehicle-check:hover:not(:disabled) {
    filter: brightness(1.08);
    box-shadow: -4px 0 16px rgba(30, 58, 138, .3);
}
.btn-vehicle-check:active:not(:disabled) {
    transform: scale(.97);
    transition-duration: .08s;
}
.btn-vehicle-check:disabled,
.btn-vehicle-check.is-loading {
    opacity: .7;
    cursor: not-allowed;
}
.btn-vehicle-check.is-loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    margin-left: .3rem;
    animation: spinSmall 0.8s linear infinite;
}
@keyframes spinSmall {
    to { transform: rotate(360deg); }
}

.vehicle-input-hint {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: .55rem;
}

.vehicle-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    justify-content: center;
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px dashed var(--border);
}
.vehicle-trust-row .trust-item {
    font-size: .78rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 500;
}
.vehicle-trust-row .trust-item i {
    color: var(--accent);
    font-size: .9rem;
}

/* Form-level error message */
.vehicle-form-error {
    max-width: 600px;
    margin: 1rem auto 0;
    padding: .85rem 1.15rem;
    background: rgba(239, 68, 68, .08);
    border: 1.5px solid rgba(239, 68, 68, .3);
    border-radius: 10px;
    color: #b91c1c;
    font-size: .88rem;
    text-align: center;
    font-weight: 500;
}
[data-theme="dark"] .vehicle-form-error {
    background: rgba(239, 68, 68, .12);
    color: #fca5a5;
}


/* ═══════ 4. VEHICLE — LOADING STATE ═══════ */

.vehicle-result-section {
    padding: 1rem 0 3rem;
}

.vehicle-loading {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
    animation: stageEnter .35s ease;
}
.vehicle-loading .svg-loader {
    width: 84px; height: 84px;
    margin: 0 auto 1rem;
}
.vehicle-loading-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .25rem;
}
.vehicle-loading-subtext {
    color: var(--text-muted);
    font-size: .88rem;
    margin-bottom: 1.75rem;
}

/* Skeleton card mimicking result layout */
.vehicle-skeleton {
    max-width: 560px;
    margin: 0 auto;
}
.vehicle-skeleton-banner,
.vehicle-skeleton-card,
.vehicle-skeleton-line {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        rgba(255, 255, 255, .8) 50%,
        var(--bg-secondary) 100%);
    background-size: 200% 100%;
    animation: shimmerSweep 1.4s ease-in-out infinite;
    border-radius: 8px;
}
[data-theme="dark"] .vehicle-skeleton-banner,
[data-theme="dark"] .vehicle-skeleton-card,
[data-theme="dark"] .vehicle-skeleton-line {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, .04) 0%,
        rgba(255, 255, 255, .12) 50%,
        rgba(255, 255, 255, .04) 100%);
    background-size: 200% 100%;
}
.vehicle-skeleton-banner {
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 14px;
}
.vehicle-skeleton-card {
    height: 200px;
    padding: 1.25rem;
    background-image: none;  /* solid panel for child shimmer */
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    animation: none;
}
.vehicle-skeleton-line {
    height: 14px;
    margin-bottom: .75rem;
    width: 100%;
}
.vehicle-skeleton-line-lg { height: 22px; width: 60%; }
.vehicle-skeleton-line-sm { width: 40%; height: 12px; }


/* ═══════ 5. VEHICLE — RESULT (with smooth fade-in) ═══════ */

.vehicle-result {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s ease, transform .4s ease;
}
.vehicle-result.vehicle-result-visible {
    opacity: 1;
    transform: translateY(0);
}

/* BIG status banner */
.vehicle-status-banner {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
    color: #fff;
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    position: relative;
    overflow: hidden;
}
.vehicle-status-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, .15), transparent 70%);
    pointer-events: none;
}
.banner-clear {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}
.banner-stolen {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    animation: bannerPulse 2.2s ease-in-out infinite;
}
@keyframes bannerPulse {
    0%, 100% { box-shadow: 0 12px 32px rgba(239, 68, 68, .35); }
    50%      { box-shadow: 0 16px 40px rgba(239, 68, 68, .55); }
}
.banner-unknown {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
}

.vehicle-status-banner-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .18);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.1rem;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.vehicle-status-banner-text {
    flex: 1;
    min-width: 0;
}
.vehicle-status-banner-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .9;
    margin-bottom: .15rem;
}
.vehicle-status-banner-value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.2;
    margin-bottom: .25rem;
}
.vehicle-status-banner-desc {
    font-size: .85rem;
    opacity: .92;
    line-height: 1.45;
}

/* Vehicle detail card */
.vehicle-detail-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
}
.vehicle-detail-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.35rem;
    background: var(--bg-secondary);
    border-bottom: 1.5px solid var(--border);
}
.vehicle-detail-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.vehicle-detail-card-title i {
    color: var(--primary-light);
}
.vehicle-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.vehicle-detail-badge-verified {
    background: rgba(34, 197, 94, .12);
    color: var(--accent-dark, #16a34a);
}
.vehicle-detail-badge-demo {
    background: rgba(245, 158, 11, .15);
    color: #b45309;
}

.vehicle-detail-rows {
    padding: 0;
}
.vehicle-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.35rem;
    border-bottom: 1px solid var(--border);
}
.vehicle-detail-row:last-child { border-bottom: none; }
.vehicle-detail-label {
    font-size: .82rem;
    color: var(--text-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    flex-shrink: 0;
}
.vehicle-detail-label i {
    color: var(--primary-light);
    font-size: .9rem;
}
.vehicle-detail-value {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    text-align: right;
    word-break: break-word;
    min-width: 0;
}
.vehicle-detail-mono {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: .9rem;
    letter-spacing: .04em;
}

.vehicle-demo-notice {
    padding: .8rem 1.35rem;
    background: rgba(245, 158, 11, .08);
    border-top: 1px solid rgba(245, 158, 11, .2);
    color: #92400e;
    font-size: .82rem;
}
.vehicle-demo-notice i { margin-right: .35rem; }
[data-theme="dark"] .vehicle-demo-notice {
    background: rgba(245, 158, 11, .15);
    color: #fcd34d;
}

/* WhatsApp upsell card (after result) */
.vehicle-upsell-card {
    margin-top: 1.25rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, .08), rgba(37, 211, 102, .02));
    border: 1.5px solid rgba(37, 211, 102, .25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.vehicle-upsell-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(37, 211, 102, .35);
}
.vehicle-upsell-content {
    flex: 1;
    min-width: 200px;
}
.vehicle-upsell-content strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: .2rem;
}
.vehicle-upsell-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: .85rem;
    line-height: 1.45;
}
.btn-vehicle-upsell {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #25D366;
    color: #fff !important;
    text-decoration: none;
    padding: .65rem 1.25rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 700;
    transition: transform .15s, box-shadow .2s, background .15s;
    flex-shrink: 0;
}
.btn-vehicle-upsell:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 211, 102, .35);
}
.btn-vehicle-upsell:active {
    transform: scale(.97);
}


/* ═══════ 6. RESPONSIVE — MOBILE FIRST POLISH ═══════ */

/* Prevent any horizontal overflow */
.homepage-gallery-v57,
.vehicle-result-section,
.sim-tool-hero,
.vehicle-hero {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .gallery-section-header { gap: .75rem; }
    .gallery-section-icon { width: 48px; height: 48px; font-size: 1.4rem; }
    .gallery-section-title { font-size: 1.2rem; }
    .gallery-section-subtitle { font-size: .85rem; }
    .gallery-section-count { font-size: .7rem; padding: .25rem .65rem; }
    .gallery-cards-grid { grid-template-columns: 1fr 1fr; gap: .85rem; }
    .gallery-tool-card { padding: 1.15rem 1rem .95rem; min-height: 160px; }
    .gallery-tool-card-title { font-size: .9rem; }
    .gallery-tool-card-desc { font-size: .76rem; }
    .gallery-section-featured { padding: 1.5rem 1.15rem; }

    .vehicle-search-card { padding: 1.35rem 1.15rem; }
    .vehicle-input-group { flex-wrap: nowrap; }
    .vehicle-input { font-size: 16px; /* prevents iOS zoom */ }
    .btn-vehicle-check { padding: .7rem 1rem; }
    .btn-vehicle-check span { display: none; }
    .vehicle-trust-row { gap: .8rem; }

    .vehicle-status-banner { padding: 1.15rem 1.25rem; gap: .85rem; }
    .vehicle-status-banner-icon { width: 52px; height: 52px; font-size: 1.65rem; }
    .vehicle-status-banner-value { font-size: 1.15rem; }
    .vehicle-status-banner-desc { font-size: .78rem; }

    .vehicle-detail-card-head { padding: .95rem 1.1rem; }
    .vehicle-detail-row { padding: .75rem 1.1rem; gap: .65rem; }
    .vehicle-detail-label { font-size: .78rem; }
    .vehicle-detail-value { font-size: .88rem; }

    .vehicle-upsell-card { padding: 1.15rem; gap: .85rem; }
    .vehicle-upsell-content { min-width: 100%; text-align: center; }
    .vehicle-upsell-icon { margin: 0 auto; }
    .btn-vehicle-upsell { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .gallery-cards-grid { grid-template-columns: 1fr; }
    .gallery-section-featured { padding: 1.25rem 1rem; border-radius: 14px; }
    .gallery-section-header { flex-wrap: wrap; }
    .gallery-section-count { width: 100%; text-align: center; margin-top: .5rem; }

    .vehicle-search-card { padding: 1.15rem .95rem; }
    .vehicle-input-group { flex-direction: column; }
    .vehicle-input-icon { padding: .85rem 1rem .25rem; align-self: flex-start; }
    .vehicle-input { padding: .25rem 1rem .5rem; }
    .btn-vehicle-check { width: 100%; justify-content: center; padding: .85rem 1rem; }
    .btn-vehicle-check span { display: inline; }

    .vehicle-status-banner { flex-direction: column; text-align: center; padding: 1.25rem 1rem; }
    .vehicle-status-banner-icon { margin: 0 auto; }
    .vehicle-detail-row { flex-direction: column; align-items: flex-start; gap: .25rem; }
    .vehicle-detail-value { text-align: left; width: 100%; }
}

/* Stage entry animation (reused from v5.6) */
@keyframes stageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Shimmer animation (reused) */
@keyframes shimmerSweep {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}



/* ════ SOURCE: tools_v5.9.css ════ */
/* ════════════════════════════════════════════════════════════
   LIVE TRACKER PRO — TOOLS v5.9 (Polish + SEO Layer)
   ────────────────────────────────────────────────────────────
   - Badge contrast fix (solid white + brand-colored bold text)
   - Mobile dark-mode toggle z-index + click reliability
   - SIM tools premium "Analyzing Database..." loader styles
   - WebApplication schema is in header.php (no CSS needed)
   ════════════════════════════════════════════════════════════ */


/* ═══════ 1. HERO BADGE CONTRAST FIX ═══════ */

.hero-badge,
.page-hero-badge {
    background: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, .65) !important;
    color: var(--primary, #1E3A8A) !important;
    font-weight: 800 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase;
    padding: .42rem 1.05rem !important;
    font-size: .76rem !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18),
                0 1px 0 rgba(255, 255, 255, .35) inset;
    text-shadow: none;
}
.hero-badge i,
.page-hero-badge i {
    color: var(--primary-light, #2563EB);
    font-size: .9rem;
}

/* SIM tool hero badge — slightly accented */
.sim-tool-hero .hero-badge {
    background: #fff !important;
    color: var(--primary, #1E3A8A) !important;
    border-color: var(--primary-light, #2563EB) !important;
    box-shadow: 0 6px 16px rgba(30, 58, 138, .25),
                0 1px 0 rgba(255, 255, 255, .4) inset;
}
.sim-tool-hero .hero-badge i {
    color: var(--accent, #22C55E);
}

/* Vehicle hero badge */
.vehicle-hero .vehicle-badge,
.vehicle-hero .hero-badge {
    background: #fff !important;
    color: var(--accent-dark, #16a34a) !important;
    border-color: var(--accent, #22C55E) !important;
    box-shadow: 0 6px 16px rgba(34, 197, 94, .22),
                0 1px 0 rgba(255, 255, 255, .4) inset;
}
.vehicle-hero .vehicle-badge i,
.vehicle-hero .hero-badge i {
    color: var(--accent-dark, #16a34a);
}


/* ═══════ 2. MOBILE DARK-MODE TOGGLE — Z-INDEX FIX ═══════ */

/* Ensure nav collapse menu items are above any decorative overlays
   but below modal/dropdown menus (z-index: 1050 typical) */
.navbar-collapse {
    position: relative;
    z-index: 1040;
}
.navbar-collapse .nav-item,
.navbar-collapse .nav-link,
.navbar-collapse #themeToggleMob,
.navbar-collapse .dark-mode-toggle {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

/* Make mobile dark-mode button clearly tappable (44px min) */
#themeToggleMob,
.dark-mode-toggle {
    min-height: 44px;
    cursor: pointer;
    transition: background-color .15s ease;
    border-radius: 8px;
}
#themeToggleMob:hover,
#themeToggleMob:focus-visible,
.dark-mode-toggle:hover,
.dark-mode-toggle:focus-visible {
    background-color: rgba(0, 0, 0, .04);
    outline: none;
}
[data-bs-theme="dark"] #themeToggleMob:hover,
[data-bs-theme="dark"] #themeToggleMob:focus-visible,
[data-bs-theme="dark"] .dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, .06);
}


/* ═══════ 3. SIM TOOL — "ANALYZING DATABASE..." PREMIUM LOADER ═══════ */

/* The SIM tool result section uses this overlay during the 3-sec wait */
.sim-loader-overlay {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    margin: 1.25rem auto 0;
    max-width: 560px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .07);
    animation: simLoaderEnter .35s ease;
}
@keyframes simLoaderEnter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Database scanning visual — animated SVG (~1KB) with gradient bars */
.sim-loader-scanner {
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    position: relative;
}
.sim-loader-scanner svg {
    width: 100%;
    height: 100%;
}
.sim-loader-scanner .scanner-bar {
    fill: var(--primary-light, #2563EB);
    opacity: 0.3;
    transform-origin: center bottom;
    transform-box: fill-box;
    animation: scannerBars 1.4s ease-in-out infinite;
}
.sim-loader-scanner .scanner-bar:nth-child(1) { animation-delay: 0s; }
.sim-loader-scanner .scanner-bar:nth-child(2) { animation-delay: 0.18s; }
.sim-loader-scanner .scanner-bar:nth-child(3) { animation-delay: 0.36s; }
.sim-loader-scanner .scanner-bar:nth-child(4) { animation-delay: 0.54s; }
.sim-loader-scanner .scanner-bar:nth-child(5) { animation-delay: 0.72s; }
@keyframes scannerBars {
    0%, 100% { transform: scaleY(0.4); opacity: 0.3; fill: var(--primary-light, #2563EB); }
    50%      { transform: scaleY(1);   opacity: 1;   fill: var(--accent, #22C55E); }
}
.sim-loader-scanner .scanner-pulse {
    fill: none;
    stroke: var(--primary, #1E3A8A);
    stroke-width: 2.5;
    opacity: 0;
    animation: scannerPulse 2s ease-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}
@keyframes scannerPulse {
    0%   { opacity: 0.6; transform: scale(0.85); }
    100% { opacity: 0;   transform: scale(1.15); }
}

.sim-loader-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .25rem;
    letter-spacing: -.005em;
}
.sim-loader-subtitle {
    color: var(--text-muted);
    font-size: .85rem;
    margin: 0 0 1.25rem;
}

/* Step ticker — visual feedback through the 3 seconds */
.sim-loader-steps {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.sim-loader-step {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    color: var(--text-muted);
    font-weight: 500;
    opacity: .55;
    transition: opacity .25s ease, color .25s ease;
}
.sim-loader-step .step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: background-color .25s ease, transform .25s ease;
}
.sim-loader-step.is-active {
    opacity: 1;
    color: var(--text);
}
.sim-loader-step.is-active .step-dot {
    background: var(--accent);
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(34, 197, 94, .5);
}
.sim-loader-step.is-done {
    opacity: 1;
    color: var(--accent-dark, #16a34a);
}
.sim-loader-step.is-done .step-dot {
    background: var(--accent);
}

.sim-loader-progress {
    width: 100%;
    max-width: 320px;
    height: 5px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 999px;
    overflow: hidden;
}
.sim-loader-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-light, #2563EB), var(--accent, #22C55E));
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(34, 197, 94, .35);
    transition: width 3s linear;
}

/* Mobile loader polish */
@media (max-width: 600px) {
    .sim-loader-overlay { padding: 1.75rem 1.15rem; }
    .sim-loader-scanner { width: 76px; height: 76px; }
    .sim-loader-steps { gap: .85rem; }
    .sim-loader-step { font-size: .72rem; }
}



/* ════ SOURCE: tools_v6.css ════ */
/* ════════════════════════════════════════════════════════════
   LIVE TRACKER PRO — TOOLS v6.0 (pSEO Foundation)
   ────────────────────────────────────────────────────────────
   - Tool breadcrumb (Home > Tools > Tool > City)
   - Admin city manager polish
   - Bulk-add textarea styling
   ════════════════════════════════════════════════════════════ */


/* ── Tool page breadcrumb ──────────────────────────────── */
.tool-breadcrumb {
    background: var(--bg-secondary, #f8fafc);
    border-bottom: 1px solid var(--border, #e2e8f0);
    padding: .65rem 0;
    font-size: .82rem;
}
[data-bs-theme="dark"] .tool-breadcrumb {
    background: rgba(255, 255, 255, .03);
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .15rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted, #64748b);
    font-weight: 500;
}
.breadcrumb-item a {
    color: var(--text-muted, #64748b);
    text-decoration: none;
    padding: .25rem .5rem;
    border-radius: 6px;
    transition: background-color .15s, color .15s;
}
.breadcrumb-item a:hover {
    background: rgba(37, 99, 235, .08);
    color: var(--primary-light, #2563EB);
}
/* Neutralise Bootstrap 5's ::before "/" divider — our breadcrumb-list uses
   its own <span class="breadcrumb-sep"> icons, so the Bootstrap pseudo-element
   must be suppressed to prevent the duplicate slash before the last crumb. */
.breadcrumb-list .breadcrumb-item + .breadcrumb-item::before {
    content: none;
    display: none;
}

.breadcrumb-sep {
    margin: 0 .15rem;
    color: var(--text-muted, #94a3b8);
    font-size: .7rem;
    opacity: .7;
}
.breadcrumb-item.is-current {
    color: var(--text, #0f172a);
    font-weight: 700;
    padding: .25rem .5rem;
}

@media (max-width: 600px) {
    .tool-breadcrumb { padding: .45rem 0; font-size: .76rem; }
    .breadcrumb-item a { padding: .15rem .35rem; }
}


/* ── Admin: City Manager polish ────────────────────────── */
.city-province-block {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    background: var(--bg-card, #fff);
    overflow: hidden;
}
.city-province-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1.15rem;
    background: var(--bg-secondary, #f1f5f9);
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.city-province-head h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.city-province-head .city-count-badge {
    background: rgba(37, 99, 235, .12);
    color: var(--primary-light, #2563EB);
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 999px;
}

.city-list {
    list-style: none;
    margin: 0;
    padding: .75rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.city-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .8rem;
    color: var(--text);
    font-weight: 500;
}
.city-chip.is-inactive {
    opacity: .55;
    text-decoration: line-through;
}
.city-chip-action {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: .25rem;
}
.city-chip-action button {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: .85rem;
    transition: color .15s;
}
.city-chip-action button:hover {
    color: var(--primary, #1E3A8A);
}
.city-chip-action button.btn-delete-city:hover {
    color: #dc2626;
}

/* Bulk add textarea */
.bulk-add-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, .04), rgba(34, 197, 94, .03));
    border: 1.5px dashed rgba(37, 99, 235, .25);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.bulk-add-textarea {
    width: 100%;
    min-height: 96px;
    padding: .75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: .9rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s;
}
.bulk-add-textarea:focus {
    outline: none;
    border-color: var(--primary-light, #2563EB);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.bulk-add-hint {
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: .35rem;
    line-height: 1.5;
}
.bulk-add-hint code {
    background: rgba(0, 0, 0, .06);
    padding: .1rem .4rem;
    border-radius: 4px;
    font-size: .85em;
}
[data-bs-theme="dark"] .bulk-add-hint code {
    background: rgba(255, 255, 255, .08);
}


/* ── Mobile-friendly admin ────────────────────────────── */
@media (max-width: 768px) {
    .city-province-head { flex-wrap: wrap; gap: .5rem; }
    .city-list { padding: .5rem; }
    .bulk-add-card { padding: 1.15rem; }
}



/* ════ SOURCE: v6.0.2.css ════ */
/* ═════════════════════════════════════════════════════════════
   LIVE TRACKER PRO — Frontend v6.0.2 (High-Authority Build)
   ─────────────────────────────────────────────────────────────
   • Premium Author Box (E-E-A-T, Person Schema support)
   • Floating WhatsApp Share Button (tool result + blog pages)
   • Inter + Slate/Indigo theme tokens (layered on main.css)
   ═════════════════════════════════════════════════════════════ */

/* global-theme.css provides the font and base vars — @import for Inter removed */
:root {
    --font-heading:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --primary-50:    rgba(37, 99, 235, .08);
    --indigo-500:    #6366F1;
    --slate-700:     #334155;
    --slate-600:     #475569;
    --radius-input:  16px;
    --radius-btn:    16px;
    --shadow-glow:   0 0 0 4px rgba(37, 99, 235, .12);
    --text-soft:     #94a3b8;
    --border-soft:   #f1f5f9;
    --bg-elevated:   var(--bg-card);
    --radius-xl:     20px;
}

/* Plus Jakarta Sans for all headings */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title h2, .tool-card-title,
.service-title, .blog-card-title, .faq-title,
.author-box-name {
    font-family: var(--font-heading);
}

/* Consistent 16px radius on search inputs and primary buttons */
.tool-input {
    border-radius: var(--radius-input) !important;
}
.btn-search {
    border-radius: var(--radius-btn) !important;
}

/* ─────────── Premium Author Box v6.0.2 ──────────────────── */
.author-box-v602 {
    margin: 2.5rem 0 1.5rem;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f6ff 0%, #fafcff 60%, #f8f0ff 100%);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}
.author-box-v602::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--indigo-500, #6366F1), #a78bfa);
    border-radius: 16px 16px 0 0;
}
[data-bs-theme="dark"] .author-box-v602 {
    background: linear-gradient(135deg, rgba(30,58,138,.15) 0%, rgba(30,41,59,.9) 100%);
    border-color: rgba(99,102,241,.25);
}

.author-box-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Avatar */
.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(30,58,138,.2);
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--indigo-500, #6366F1));
    display: flex;
    align-items: center;
    justify-content: center;
}
.author-box-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.author-box-avatar-initial {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* Meta block */
.author-box-meta {
    flex: 1;
    min-width: 0;
}
.author-box-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary-light, #3B82F6);
    margin-bottom: .2rem;
}
.author-box-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text, #0f172a);
    margin: 0 0 .25rem;
    line-height: 1.2;
}
.author-box-designation {
    font-size: .82rem;
    color: var(--text-muted, #64748b);
    font-weight: 500;
}

/* Share button in header */
.author-box-share {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem 1rem;
    background: #25D366;
    color: #fff;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .2s, transform .15s;
    box-shadow: 0 2px 8px rgba(37,211,102,.35);
}
.author-box-share:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-1px);
}
.author-box-share i { font-size: 1rem; }

/* Bio */
.author-box-bio {
    font-size: .9rem;
    line-height: 1.75;
    color: var(--slate-700, #334155);
    margin-bottom: 1rem;
}
[data-bs-theme="dark"] .author-box-bio { color: var(--text-muted); }

/* Expertise tags */
.author-box-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}
.author-expertise-tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    background: rgba(59,130,246,.1);
    color: var(--primary-light, #2563EB);
    border: 1px solid rgba(59,130,246,.2);
}
.author-expertise-tag i { font-size: .65rem; color: #22C55E; }

/* Social links row */
.author-box-socials {
    display: flex;
    gap: .5rem;
    margin-top: .25rem;
}
.author-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--bg-card, #fff);
    color: var(--text-muted, #64748b);
}
.author-social-link:hover { transform: translateY(-2px); opacity: .85; }
.author-social-link.twitter  { color: #000; }
.author-social-link.linkedin { color: #0077B5; }
.author-social-link.facebook { color: #1877F2; }
.author-social-link.website  { color: var(--primary-light); }

/* Mobile tweak */
@media (max-width: 576px) {
    .author-box-v602 { padding: 1.25rem; }
    .author-box-header { flex-wrap: wrap; }
    .author-box-avatar { width: 60px; height: 60px; }
    .author-box-avatar-initial { font-size: 1.5rem; }
    .author-box-share { font-size: .75rem; padding: .35rem .75rem; }
}

/* ─────────── Floating WhatsApp Share Button (mobile) ──────── */
/* Shown on tool result pages + blog posts on mobile.
   The existing .wa-float is the persistent contact button — this
   is a SHARE button positioned on the left side to avoid conflict. */
.wa-share-float {
    position: fixed;
    bottom: 20px;
    left: 18px;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.1rem .55rem .85rem;
    background: #25D366;
    color: #fff;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(37,211,102,.45);
    transition: transform .2s, box-shadow .2s;
    animation: wa-bounce-in .4s cubic-bezier(.34,1.56,.64,1) both;
}
.wa-share-float i { font-size: 1.2rem; }
.wa-share-float:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,.5);
}
@keyframes wa-bounce-in {
    from { opacity: 0; transform: scale(.6) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Hide on desktop (>= lg) — tools result pages show it only on mobile */
@media (min-width: 992px) {
    .wa-share-float { display: none !important; }
}

/* On tool result pages, show the WA share after result appears */
.wa-share-float.result-hidden {
    display: none !important;
}

/* ─────────── Breadcrumb polish (hybrid visual + JSON-LD) ─── */
/* Already in tools_v6.css — just re-affirm blog/legal context */
.tool-breadcrumb .container {
    padding-top: 0;
    padding-bottom: 0;
}
.breadcrumb-item.is-current {
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 576px) {
    .breadcrumb-item:not(:first-child):not(:last-child) { display: none; }
    .breadcrumb-sep:not(:last-of-type)                   { display: none; }
}

/* ─────────── Search Type Toggle Pill (v6.0.2) ─────────────── */
.search-type-toggle {
    display: flex;
    gap: .4rem;
    margin-bottom: .85rem;
}
.stoggle-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .52rem 1rem;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 50px;
    background: var(--bg-secondary, #f8fafc);
    color: var(--text-muted, #64748b);
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, opacity .18s;
    white-space: nowrap;
    user-select: none;
}
.stoggle-btn:hover {
    border-color: var(--primary-light, #3B82F6);
    color: var(--primary, #1E3A8A);
    background: var(--primary-50, rgba(59,130,246,.08));
}
.stoggle-btn.active {
    background: var(--primary, #1E3A8A);
    color: #fff;
    border-color: var(--primary, #1E3A8A);
    box-shadow: 0 3px 12px rgba(30,58,138,.25);
}
[data-bs-theme="dark"] .stoggle-btn {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-muted);
}
[data-bs-theme="dark"] .stoggle-btn.active {
    background: var(--primary-light, #3B82F6);
    border-color: var(--primary-light, #3B82F6);
    color: #fff;
}

/* ─────────── Mobile Responsiveness Patch (< 576px) ────────── */
@media (max-width: 575.98px) {
    /* Search input + button stack vertically on small screens */
    .tool-input-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        position: relative;
    }
    .tool-input {
        border-radius: 16px !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    .btn-search {
        border-radius: 16px !important;
        width: 100% !important;
        justify-content: center !important;
        order: 3;
    }
    #clearSearch {
        position: absolute;
        right: .65rem;
        top: .7rem;
        z-index: 2;
        order: 2;
    }
    /* Toggle pills stay side-by-side (pill style) */
    .search-type-toggle {
        flex-direction: row;
        gap: .4rem;
    }
    .stoggle-btn {
        border-radius: 50px;
        flex: 1;
    }
    /* Ensure result card doesn't overflow */
    .result-card {
        padding: 1rem !important;
    }
    .result-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: .15rem !important;
    }
}



/* ════ SOURCE: v6.5.1.css ════ */
/* ═════════════════════════════════════════════════════════════
   LiveTracker Pro — v6.5.1 (Bulk Engine, SEO, Performance)
   ─────────────────────────────────────────────────────────────
   • Vibrant green search buttons (#22C55E)
   • Trusted badge
   • 3-step PTA loading animation (homepage)
   • Bulk search page styles
   • Reports modal
   • Keyword link highlight
   • Mobile-first touch target enforcement (min 48px)
   • Strict 16px border-radius system
   ═════════════════════════════════════════════════════════════ */

/* ─────────── Search Button → Vibrant Green ─────────────────── */
.btn-search {
    background: #22C55E !important;
    border-color: #22C55E !important;
    color: #fff !important;
    border-radius: 16px !important;
    min-height: 48px;
    font-weight: 700;
    transition: background .18s, box-shadow .18s, transform .12s;
    box-shadow: 0 4px 14px rgba(34,197,94,.35);
}
.btn-search:hover,
.btn-search:focus {
    background: #16A34A !important;
    border-color: #16A34A !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(34,197,94,.45);
    transform: translateY(-1px);
}
.btn-search:active {
    background: #15803D !important;
    transform: translateY(0);
}
.btn-search i { font-size: .95rem; }

/* ─────────── Touch Target Enforcement (min 48px) ────────────── */
.stoggle-btn {
    min-height: 48px !important;
}
.tool-input {
    min-height: 48px !important;
}
.btn-whatsapp {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}

/* ─────────── Trusted by 50K Pakistanis Badge ────────────────── */
.trusted-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1.1rem .45rem .85rem;
    background: linear-gradient(135deg, rgba(34,197,94,.12) 0%, rgba(34,197,94,.06) 100%);
    border: 1.5px solid rgba(34,197,94,.35);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    color: #15803D;
    margin-bottom: 1.1rem;
    animation: badge-in .5s cubic-bezier(.34,1.56,.64,1) both;
}
[data-bs-theme="dark"] .trusted-badge {
    background: rgba(34,197,94,.15);
    border-color: rgba(34,197,94,.4);
    color: #4ADE80;
}
.trusted-badge .badge-shield {
    font-size: 1.05rem;
    flex-shrink: 0;
}
@keyframes badge-in {
    from { opacity: 0; transform: scale(.7) translateY(-8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─────────── Homepage 3-Step PTA Loading Sequence ──────────── */
.pta-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
}
.pta-loader-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 0 0 rgba(34,197,94,.5);
    animation: pta-pulse 1.5s ease-in-out infinite;
}
.pta-loader-icon i { font-size: 2rem; color: #fff; }
@keyframes pta-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    70%  { box-shadow: 0 0 0 18px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.pta-loader-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text, #0f172a);
    margin-bottom: .25rem;
    min-height: 1.5em;
}
.pta-loader-sub {
    font-size: .82rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 1.1rem;
}
.pta-loader-steps {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 100%;
    max-width: 280px;
    margin-bottom: 1.1rem;
}
.pta-step {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .82rem;
    color: var(--text-muted, #64748b);
    padding: .35rem .75rem;
    border-radius: 8px;
    transition: background .25s, color .25s;
}
.pta-step.is-active {
    background: rgba(34,197,94,.1);
    color: #15803D;
    font-weight: 700;
}
.pta-step.is-done {
    color: #22C55E;
}
[data-bs-theme="dark"] .pta-step.is-active { background: rgba(34,197,94,.15); color: #4ADE80; }
[data-bs-theme="dark"] .pta-step.is-done   { color: #4ADE80; }
.pta-step-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    transition: transform .2s;
}
.pta-step.is-active .pta-step-dot { animation: pta-dot-bounce .6s ease-in-out infinite alternate; }
@keyframes pta-dot-bounce {
    from { transform: scale(.8); }
    to   { transform: scale(1.3); }
}
.pta-step.is-done .pta-step-dot::after {
    content: '✓';
    font-size: .65rem;
    color: #fff;
}
.pta-loader-progress {
    width: 100%;
    max-width: 280px;
    height: 4px;
    background: rgba(34,197,94,.18);
    border-radius: 99px;
    overflow: hidden;
}
.pta-loader-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22C55E, #16A34A);
    border-radius: 99px;
    width: 0;
    transition: width 3s linear;
}

/* ─────────── Bulk Search Page ───────────────────────────────── */
.bulk-search-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.bulk-search-card {
    background: var(--bg-card, #fff);
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.bulk-search-header {
    background: linear-gradient(135deg, var(--primary,#1E3A8A) 0%, #22C55E 100%);
    padding: 1.75rem 2rem 1.5rem;
    color: #fff;
}
.bulk-search-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: .25rem;
    color: #fff;
}
.bulk-search-header p {
    font-size: .88rem;
    opacity: .88;
    margin: 0;
}
.bulk-search-body { padding: 1.75rem 2rem; }
.bulk-textarea {
    width: 100%;
    min-height: 200px;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 16px;
    padding: .85rem 1rem;
    font-family: ui-monospace, monospace;
    font-size: .88rem;
    resize: vertical;
    background: var(--bg-secondary, #f8fafc);
    color: var(--text, #0f172a);
    transition: border-color .18s, box-shadow .18s;
}
.bulk-textarea:focus {
    border-color: #22C55E;
    box-shadow: 0 0 0 3px rgba(34,197,94,.15);
    outline: none;
}
.bulk-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 2rem;
    background: #22C55E;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 48px;
    transition: background .18s, box-shadow .18s;
    box-shadow: 0 4px 14px rgba(34,197,94,.35);
}
.bulk-submit-btn:hover  { background: #16A34A; box-shadow: 0 6px 20px rgba(34,197,94,.45); }
.bulk-submit-btn:disabled { opacity: .65; cursor: not-allowed; }
.bulk-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    margin-top: 1.5rem;
}
.bulk-result-table th {
    background: var(--bg-secondary, #f8fafc);
    padding: .65rem .85rem;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted, #64748b);
    border-bottom: 1.5px solid var(--border, #e2e8f0);
    text-align: left;
}
.bulk-result-table td {
    padding: .65rem .85rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
    vertical-align: top;
}
.bulk-result-table tr:last-child td { border-bottom: none; }
.bulk-status-found    { color: #22C55E; font-weight: 700; }
.bulk-status-error    { color: #EF4444; font-weight: 700; }
.bulk-status-pending  { color: #F59E0B; font-weight: 700; }
.bulk-progress-bar-wrap {
    background: var(--bg-secondary, #f8fafc);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin: .75rem 0;
}
.bulk-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #22C55E, #16A34A);
    border-radius: 8px;
    transition: width .3s ease;
}
.bulk-export-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.2rem;
    background: transparent;
    border: 1.5px solid #22C55E;
    color: #22C55E;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
    min-height: 44px;
}
.bulk-export-btn:hover { background: #22C55E; color: #fff; }

/* ─────────── Report Info Button & Modal ─────────────────────── */
.btn-report {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .75rem;
    background: transparent;
    border: 1px solid var(--border, #e2e8f0);
    color: var(--text-muted, #64748b);
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    min-height: 36px;
}
.btn-report:hover {
    background: rgba(239,68,68,.08);
    border-color: #EF4444;
    color: #EF4444;
}
.report-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn .2s ease;
}
.report-modal {
    background: var(--bg-card, #fff);
    border-radius: 16px;
    padding: 1.75rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
    animation: slideUp .25s cubic-bezier(.34,1.56,.64,1);
}
.report-modal h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: .35rem;
}
.report-modal p {
    font-size: .85rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 1rem;
}
.report-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-bottom: 1rem;
}
.report-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    padding: .65rem .5rem;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: var(--bg-secondary, #f8fafc);
    color: var(--text, #0f172a);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.report-type-btn i { font-size: 1.2rem; color: var(--text-muted, #64748b); }
.report-type-btn.selected,
.report-type-btn:hover {
    border-color: #22C55E;
    background: rgba(34,197,94,.08);
    color: #15803D;
}
.report-type-btn.selected i { color: #22C55E; }
.report-note-input {
    width: 100%;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 10px;
    padding: .65rem .85rem;
    font-size: .85rem;
    resize: none;
    background: var(--bg-secondary, #f8fafc);
    color: var(--text, #0f172a);
    margin-bottom: 1rem;
    transition: border-color .15s;
}
.report-note-input:focus {
    border-color: #22C55E;
    outline: none;
}
.report-modal-actions { display: flex; gap: .5rem; }
.report-submit-btn {
    flex: 1;
    padding: .6rem;
    background: #22C55E;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    min-height: 44px;
    transition: background .15s;
}
.report-submit-btn:hover { background: #16A34A; }
.report-cancel-btn {
    padding: .6rem 1.1rem;
    background: var(--bg-secondary, #f8fafc);
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    color: var(--text, #0f172a);
}
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ─────────── Auto-linked keywords ──────────────────────────── */
.auto-kw-link {
    color: var(--primary-light, #3B82F6);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}
.auto-kw-link:hover { color: var(--primary, #1E3A8A); text-decoration-style: solid; }

/* ─────────── Responsive Overflow Guard ──────────────────────── */
*,*::before,*::after { box-sizing: border-box; }

@media (max-width: 320px) {
    .hero-title  { font-size: 1.45rem !important; }
    .tool-card   { padding: 1rem .75rem !important; }
}
@media (max-width: 575.98px) {
    .trusted-badge { font-size: .75rem; padding: .4rem .85rem .4rem .6rem; }
    .bulk-search-header { padding: 1.25rem 1.1rem 1rem; }
    .bulk-search-body   { padding: 1.25rem 1.1rem; }
}
@media (min-width: 1400px) {
    .bulk-search-wrap { max-width: 900px; }
}

/* ─────────── Result card footer with Report button ──────────── */
.result-footer-v651 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .4rem;
    padding-top: .75rem;
    margin-top: .5rem;
    border-top: 1px solid var(--border, #e2e8f0);
}
.result-footer-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }

/* ─────────── Admin: Keyword Links table ─────────────────────── */
.kw-link-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .65rem;
    background: rgba(34,197,94,.1);
    color: #15803D;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM GLASSMORPHISM RESULT CARDS — v7
   Found state: dark glass + neon accents + fade-in
   Not Found state: same layout, blurred placeholders + glow CTA
   ═══════════════════════════════════════════════════════════════ */

:root {
    --neon-purple:       #a855f7;
    --neon-purple-dim:   rgba(168, 85, 247, .15);
    --neon-purple-border:rgba(168, 85, 247, .28);
    --neon-green:        #22c55e;
    --glass-bg:          rgba(10, 15, 35, 0.88);
    --glass-bg-light:    rgba(15, 23, 55, 0.80);
    --glass-blur:        blur(20px) saturate(1.6);
    --glass-border:      rgba(168, 85, 247, .25);
    --glass-shadow:      0 8px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(168,85,247,.08), inset 0 1px 0 rgba(255,255,255,.05);
}

/* ── Shared: entry animation ──────────────────────────────────── */
@keyframes glassCardFadeIn {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* ── Glassmorphism Found Card ─────────────────────────────────── */
.result-card--glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--glass-shadow) !important;
    overflow: hidden;
    animation: glassCardFadeIn .5s cubic-bezier(.22, 1, .36, 1) forwards;
}

/* Light mode: softer dark glass so it still reads on white bg */
@media (prefers-color-scheme: light) {
    .result-card--glass { background: rgba(8, 14, 36, 0.86); }
}

/* ── Glass header (shared by found + not-found) ───────────────── */
.result-header--glass {
    background: linear-gradient(135deg,
        rgba(88, 28, 135, .75) 0%,
        rgba(37, 99, 235, .70) 100%) !important;
    border-bottom: 1px solid rgba(168, 85, 247, .2) !important;
}

/* ── Found card: row + value colours ─────────────────────────── */
.result-card--glass .result-row {
    border-bottom-color: rgba(168, 85, 247, .1) !important;
}
.result-card--glass .result-label {
    color: #94a3b8 !important;
}
.result-card--glass .result-value {
    color: #e2e8f0 !important;
}

/* ── Glass footer ─────────────────────────────────────────────── */
.result-footer--glass {
    background: rgba(255, 255, 255, .03) !important;
    border-top: 1px solid rgba(168, 85, 247, .12) !important;
}
.result-footer--glass .text-muted { color: #64748b !important; }
.result-footer--glass .copy-btn {
    border-color: rgba(168, 85, 247, .3) !important;
    color: #94a3b8 !important;
}
.result-footer--glass .copy-btn:hover {
    border-color: var(--neon-purple) !important;
    color: var(--neon-purple) !important;
    background: rgba(168, 85, 247, .1) !important;
}

/* ── Verified badge (found state) ─────────────────────────────── */
.result-badge--verified {
    display: inline-flex;
    align-items: center;
    background: rgba(34, 197, 94, .18);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, .35);
    padding: .25rem .75rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════════════
   NOT FOUND — Premium Placeholder Card
   ═══════════════════════════════════════════════════════════════ */

.result-card--not-found {
    border-color: rgba(168, 85, 247, .35) !important;
}

/* ── Blurred data rows ─────────────────────────────────────────── */
.result-body--blurred .result-row {
    border-bottom-color: rgba(168, 85, 247, .1) !important;
}
.result-body--blurred .result-label {
    color: #64748b !important;
}

/* ── Live pulsing dot (Not Found header) ──────────────────────── */
.live-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 10px;
    height: 10px;
    margin-left: .6rem;
    vertical-align: middle;
    flex-shrink: 0;
}
.live-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #a855f7;
    animation: liveDotPulse 1.6s ease-out infinite;
}
.live-dot__ring {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c084fc;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 6px 2px rgba(168, 85, 247, .7);
}
@keyframes liveDotPulse {
    0%   { transform: scale(1);   opacity: .7; }
    70%  { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* ── Scanning line overlay ─────────────────────────────────────── */
.result-body--scanning {
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    top: -6px;
    height: 6px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(168, 85, 247, .18) 20%,
        rgba(168, 85, 247, .75) 50%,
        rgba(168, 85, 247, .18) 80%,
        transparent 100%
    );
    box-shadow:
        0 0 12px 4px rgba(168, 85, 247, .55),
        0 0 28px 8px rgba(168, 85, 247, .25);
    animation: scanSweep 2.2s cubic-bezier(.4, 0, .6, 1) infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes scanSweep {
    0%   { top: -6px;   opacity: 0; }
    6%   { opacity: 1; }
    94%  { opacity: 1; }
    100% { top: 100%;   opacity: 0; }
}

/* Subtle shimmer wash across the blurred area as the line sweeps */
.result-body--scanning::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(168, 85, 247, .04) 50%,
        transparent 100%
    );
    background-size: 100% 200%;
    animation: scanShimmer 2.2s cubic-bezier(.4, 0, .6, 1) infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes scanShimmer {
    0%   { background-position: 0 -100%; }
    100% { background-position: 0 200%; }
}
.blur-placeholder {
    display: inline-block;
    color: #cbd5e1;
    filter: blur(7px);
    user-select: none;
    pointer-events: none;
    letter-spacing: .06em;
    font-family: var(--font-mono);
    font-size: .88rem;
}

/* ── Neon icon helpers ─────────────────────────────────────────── */
.icon-neon-purple { color: var(--neon-purple) !important; }
.icon-neon-green  { color: var(--neon-green)  !important; }

/* ── Premium alert strip ───────────────────────────────────────── */
.not-found-premium-alert {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    background: rgba(168, 85, 247, .07);
    border-top: 1px solid rgba(168, 85, 247, .18);
    border-bottom: 1px solid rgba(168, 85, 247, .18);
    padding: 1rem 1.25rem;
}
.not-found-premium-alert > i {
    font-size: 1.2rem;
    color: var(--neon-purple);
    flex-shrink: 0;
    margin-top: .12rem;
}
.not-found-premium-alert p {
    margin: 0;
    font-size: .875rem;
    color: #cbd5e1;
    line-height: 1.65;
    font-weight: 500;
}

/* ── Not Found CTA footer ──────────────────────────────────────── */
.not-found-cta-footer {
    background: rgba(0, 0, 0, .15) !important;
    border-top: none !important;
    padding: 1.15rem 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

/* ── Locked badge ──────────────────────────────────────────────── */
.result-badge--locked {
    display: inline-flex;
    align-items: center;
    background: rgba(168, 85, 247, .18);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, .38);
    padding: .25rem .75rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
}

/* ── Glowing WhatsApp CTA Button ───────────────────────────────── */
.btn-wa-glow {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border-radius: var(--radius) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: .9rem 1.5rem !important;
    letter-spacing: .01em;
    box-shadow:
        0 0 22px rgba(37, 211, 102, .50),
        0 4px 18px rgba(37, 211, 102, .35) !important;
    animation: waGlowPulse 2.8s ease-in-out infinite;
    transition: transform .2s ease, box-shadow .2s ease !important;
}
@keyframes waGlowPulse {
    0%, 100% {
        box-shadow:
            0 0 22px rgba(37, 211, 102, .50),
            0 4px 18px rgba(37, 211, 102, .35);
    }
    50% {
        box-shadow:
            0 0 42px rgba(37, 211, 102, .80),
            0 8px 32px rgba(37, 211, 102, .60);
    }
}
.btn-wa-glow:hover {
    transform: translateY(-2px) scale(1.015) !important;
    box-shadow:
        0 0 50px rgba(37, 211, 102, .90),
        0 12px 36px rgba(37, 211, 102, .65) !important;
}

/* ── Share row (Not Found footer) ─────────────────────────────── */
.share-row {
    display: flex;
    gap: .6rem;
    margin-top: .75rem;
    width: 100%;
}

/* Share buttons — full-size (Not Found) */
.btn-share-copy,
.btn-share-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    flex: 1;
    padding: .6rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
    white-space: nowrap;
}

.btn-share-copy {
    background: rgba(168, 85, 247, .12);
    color: #d8b4fe;
    border: 1.5px solid rgba(168, 85, 247, .3);
}
.btn-share-copy:hover {
    background: rgba(168, 85, 247, .22);
    border-color: rgba(168, 85, 247, .6);
    color: #ede9fe;
    transform: translateY(-1px);
}

.btn-share-wa {
    background: rgba(37, 211, 102, .12);
    color: #86efac;
    border: 1.5px solid rgba(37, 211, 102, .3);
}
.btn-share-wa:hover {
    background: rgba(37, 211, 102, .22);
    border-color: rgba(37, 211, 102, .6);
    color: #dcfce7;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, .25);
}

/* Share buttons — compact (Found card footer) */
.btn-share-copy--sm,
.btn-share-wa--sm {
    flex: unset;
    padding: .28rem .65rem;
    font-size: .75rem;
    border-radius: 7px;
}

/* ── No-link fallback ──────────────────────────────────────────── */
.not-found-no-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #94a3b8;
    font-size: .88rem;
    font-weight: 500;
    justify-content: center;
    padding: .5rem 0;
}
.not-found-no-link i { color: var(--neon-purple); font-size: 1.05rem; }

/* ── Light-mode overrides for glassmorphism result card ───────── */
[data-bs-theme="light"] .result-card--glass {
    --glass-bg: rgba(255, 255, 255, 0.94);
    --glass-border: rgba(30, 58, 138, .18);
    --glass-shadow: 0 8px 32px rgba(0,0,0,.10), 0 0 0 1px rgba(30,58,138,.07);
    background: var(--bg-card) !important;
    border: 1px solid var(--primary-light) !important;
    box-shadow: var(--shadow-lg) !important;
}
[data-bs-theme="light"] .result-header--glass {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    border-bottom: 1px solid rgba(30, 58, 138, .15) !important;
}
[data-bs-theme="light"] .result-card--glass .result-row {
    border-bottom-color: var(--border) !important;
}
[data-bs-theme="light"] .result-card--glass .result-label {
    color: var(--text-muted) !important;
}
[data-bs-theme="light"] .result-card--glass .result-value {
    color: var(--text) !important;
}
[data-bs-theme="light"] .result-footer--glass {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border) !important;
}
[data-bs-theme="light"] .result-footer--glass .text-muted {
    color: var(--text-muted) !important;
}
[data-bs-theme="light"] .result-footer--glass .copy-btn {
    border-color: var(--border) !important;
    color: var(--text-muted) !important;
}
[data-bs-theme="light"] .result-footer--glass .copy-btn:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: rgba(34, 197, 94, .06) !important;
}
[data-bs-theme="light"] .result-badge--verified {
    background: rgba(34, 197, 94, .12);
    color: var(--accent-dark);
    border-color: rgba(34, 197, 94, .30);
}
[data-bs-theme="light"] .btn-share-copy {
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
    border-color: rgba(37, 99, 235, .22);
}
[data-bs-theme="light"] .btn-share-copy:hover {
    background: rgba(37, 99, 235, .15);
    color: var(--primary-dark);
    border-color: rgba(37, 99, 235, .45);
}
[data-bs-theme="light"] .btn-share-wa {
    background: rgba(37, 211, 102, .08);
    color: var(--wa-dark);
    border-color: rgba(37, 211, 102, .22);
}
[data-bs-theme="light"] .result-card--not-found {
    border-color: rgba(37, 99, 235, .30) !important;
}

/* ── CNIC copy button inline ──────────────────────────────────── */
.cnic-copy-btn {
    margin-left: auto;
    flex-shrink: 0;
    background: transparent;
    border: 1.5px solid rgba(168, 85, 247, .35);
    color: #c4b5fd;
    padding: .22rem .6rem;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    transition: all .15s;
}
.cnic-copy-btn:hover {
    background: rgba(168, 85, 247, .15);
    border-color: rgba(168, 85, 247, .65);
    color: #e9d5ff;
}
[data-bs-theme="light"] .cnic-copy-btn {
    border-color: var(--border);
    color: var(--text-muted);
}
[data-bs-theme="light"] .cnic-copy-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: rgba(37, 99, 235, .06);
}

/* ── "Record Fetched" footer label ───────────────────────────── */
.result-fetched-label {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: #64748b;
}
[data-bs-theme="light"] .result-fetched-label {
    color: var(--text-muted);
}

/* ── WhatsApp "Need Help?" CTA inside result card ─────────────── */
.wa-help-cta {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1.25rem;
    background: rgba(37, 211, 102, .07);
    border-top: 1px solid rgba(37, 211, 102, .18);
    flex-wrap: wrap;
}
[data-bs-theme="light"] .wa-help-cta {
    background: rgba(37, 211, 102, .05);
    border-top-color: rgba(37, 211, 102, .15);
}
.wa-help-cta__icon {
    font-size: 1.6rem;
    color: var(--wa-green);
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: rgba(37, 211, 102, .12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: waGlowPulse 2.8s ease-in-out infinite;
}
.wa-help-cta__text {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
}
.wa-help-cta__text strong {
    font-size: .88rem;
    color: #e2e8f0;
    font-weight: 700;
    line-height: 1.2;
}
[data-bs-theme="light"] .wa-help-cta__text strong {
    color: var(--text);
}
.wa-help-cta__text span {
    font-size: .76rem;
    color: #94a3b8;
    margin-top: .15rem;
    line-height: 1.4;
}
[data-bs-theme="light"] .wa-help-cta__text span {
    color: var(--text-muted);
}
.wa-help-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    color: #fff !important;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .wa-help-cta { flex-direction: column; align-items: flex-start; }
    .wa-help-cta__btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   LIVE INPUT VALIDATOR — operator badge + validation states
   ══════════════════════════════════════════════════════════════ */

/* Input valid/invalid border states */
#searchInput.is-valid-input {
    border-color: #22C55E !important;
    box-shadow: 0 0 0 2.5px rgba(34, 197, 94, .18) !important;
    transition: border-color .15s, box-shadow .15s;
}
#searchInput.is-invalid-input {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 2.5px rgba(239, 68, 68, .15) !important;
    transition: border-color .15s, box-shadow .15s;
}

/* Hint bar — shown below the input group */
.input-hint-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    min-height: 1.6rem;
    padding: .28rem 0 0;
    font-size: .76rem;
    transition: opacity .15s;
}
.input-hint-bar:empty {
    min-height: 0;
    padding: 0;
}

/* Base badge pill */
.hint-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .74rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    white-space: nowrap;
    line-height: 1.3;
    transition: background .15s, border-color .15s;
}

/* Valid — green */
.hint-badge--valid {
    color: #16A34A;
    background: rgba(34, 197, 94, .10);
    border-color: rgba(34, 197, 94, .30);
}
[data-bs-theme="dark"] .hint-badge--valid {
    color: #4ADE80;
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .25);
}

/* Info — neutral */
.hint-badge--info {
    color: #64748B;
    background: rgba(100, 116, 139, .10);
    border-color: rgba(100, 116, 139, .22);
}
[data-bs-theme="dark"] .hint-badge--info {
    color: #94A3B8;
    background: rgba(100, 116, 139, .12);
    border-color: rgba(100, 116, 139, .22);
}
.hint-eg {
    font-weight: 400;
    opacity: .7;
    font-size: .7rem;
    margin-left: .15rem;
}

/* Operator badge — color from CSS vars set inline */
.hint-operator-badge {
    color: var(--op-color);
    background: var(--op-bg);
    border-color: color-mix(in srgb, var(--op-color) 30%, transparent);
    font-weight: 700;
    letter-spacing: .01em;
}

/* Operator abbreviation circle */
.op-abbr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-right: .1rem;
    letter-spacing: 0;
}



