:root {
    --bg: #0F172A;
    --bg-soft: #1E293B;
    --panel: #1E293B;
    --panel-elevated: #334155;
    --line: #334155;

    --text: #F1F5F9;
    --muted: #94A3B8;
    --muted-2: #64748B;

    --primary: #2ECC71;
    --primary-hover: #4ADE80;
    --accent: #22D3EE;

    --cta: #00FFA3;
    --cta-text: #0F172A;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.30);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.42);
    --glow-primary: 0 0 24px rgba(46, 204, 113, 0.18);
    --glow-cta: 0 0 32px rgba(0, 255, 163, 0.22);

    /* Functional Utility Colors */
    --success: #2ECC71;
    --warning: #FACC15;
    --danger: #EF4444;
    --info: #3B82F6;
    --orange: #F59E0B;
    --navy: #0F172A;
    --steel: #475569;
    --teal: #14B8A6;
    --rose: #F43F5E;

    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(46, 204, 113, 0.05), transparent 38%),
        var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    height: 80px;
    width: auto;
    display: block;
}

@media (max-width: 540px) {
    .brand img {
        height: 64px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        color 0.22s ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: var(--cta-text);
    box-shadow: var(--shadow-sm), var(--glow-primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md), 0 0 28px rgba(46, 204, 113, 0.24);
}

.btn-cta {
    background: var(--cta);
    color: var(--cta-text);
    box-shadow: var(--shadow-sm), var(--glow-cta);
}

.btn-cta:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md), 0 0 40px rgba(0, 255, 163, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-color: var(--line);
}

.btn-secondary:hover {
    border-color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
}

.hero {
    padding: 72px 0 30px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: center;
    padding: 64px;
    border-radius: 34px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)), var(--bg-soft);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.hero-card-centered {
    text-align: center;
    padding: 80px 40px;
}

.hero-card-centered .eyebrow,
.hero-card-centered h1,
.hero-card-centered .hero-subheadline,
.hero-card-centered .hero-copy,
.hero-card-centered .hero-actions,
.hero-card-centered .trust-row {
    margin-left: auto;
    margin-right: auto;
}

.hero-card-centered .hero-actions {
    justify-content: center;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(46, 204, 113, 0.08), transparent 24%),
        radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.06), transparent 20%);
    z-index: -1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(46, 204, 113, 0.10);
    border: 1px solid rgba(46, 204, 113, 0.18);
    margin-bottom: 20px;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.4rem);
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 20px;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 16px;
}

.hero-subheadline {
    margin: 0 0 18px;
    color: var(--text);
    font-size: 1.18rem;
    max-width: 58ch;
}

.hero-copy {
    margin: 0 0 28px;
    color: var(--muted);
    max-width: 62ch;
}

.hero-note {
    margin: 14px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 8px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 22px;
    color: var(--muted);
    font-size: 14px;
    margin-top: 22px;
}

.trust-row span::before {
    content: "•";
    color: var(--accent);
    margin-right: 8px;
}

.section {
    padding: 24px 0;
}

.section-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)), var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 42px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.section-header {
    max-width: 780px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-header h2 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.section-header p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.grid-3,
.grid-2 {
    display: grid;
    gap: 18px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3-2 {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .grid-4,
    .grid-3-2 {
        grid-template-columns: 1fr;
    }
}

.card {
    position: relative;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.01));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(46, 204, 113, 0.15);
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-weight: 800;
    color: var(--cta-text);
    background: var(--primary);
    box-shadow: 0 10px 24px rgba(46, 204, 113, 0.16);
}

.faq-list {
    display: grid;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 22px;
    font-weight: 700;
    position: relative;
    transition: background 0.2s ease;
}

.faq-item summary:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-content {
    padding: 0 22px 20px;
    color: var(--muted);
}

.cta {
    padding: 24px 0 84px;
}

.cta-panel {
    text-align: center;
    padding: 52px;
    border-radius: 32px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at top center, rgba(46, 204, 113, 0.05), transparent 30%),
        linear-gradient(180deg, var(--panel), var(--bg));
    box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3vw, 2.9rem);
}

.cta-panel p {
    margin: 0 auto 24px;
    max-width: 760px;
    color: var(--muted);
    font-size: 1.03rem;
}

.footer {
    padding: 0 0 42px;
    text-align: center;
    color: var(--muted-2);
    font-size: 14px;
}

.fade-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.08s;
}

.delay-2 {
    animation-delay: 0.16s;
}

.delay-3 {
    animation-delay: 0.24s;
}

.delay-4 {
    animation-delay: 0.32s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ─── Hamburger Button ─────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 60;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger:hover {
    background: rgba(46, 204, 113, 0.08);
    border-color: var(--primary);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Nav Overlay ───────────────────────────────── */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.menu-open .mobile-nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

/* ─── Mobile Nav Drawer ────────────────────────────────── */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100dvh;
    background: var(--bg-soft);
    border-left: 1px solid var(--line);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 48px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
}

body.menu-open .mobile-nav {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.6);
}

.mobile-nav-header .brand img {
    height: 48px;
    width: auto;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.mobile-nav-close span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--muted);
    border-radius: 2px;
    position: absolute;
    transition: background 0.2s ease;
}

.mobile-nav-close span:nth-child(1) { transform: rotate(45deg); }
.mobile-nav-close span:nth-child(2) { transform: rotate(-45deg); }
.mobile-nav-close:hover span { background: #ef4444; }

.mobile-nav-links {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-links li a:hover {
    background: rgba(46, 204, 113, 0.06);
    color: var(--primary);
    padding-left: 32px;
}

.mobile-nav-links li a .nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-nav-cta {
    padding: 20px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.4);
}

.mobile-nav-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
}

/* ─── Responsive Breakpoints ───────────────────────────── */
@media (max-width: 980px) {
    .hamburger {
        display: flex;
    }

    .hero-card,
    .grid-3,
    .grid-2,
    .product-hero {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .hero-card,
    .section-card,
    .cta-panel {
        padding: 32px 20px;
    }

    .nav {
        flex-direction: row;
        padding: 0 16px;
        gap: 12px;
        min-height: 68px;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--max), calc(100% - 24px));
    }

    .hero {
        padding-top: 28px;
    }

    h1 {
        max-width: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }
}

/* Format Badges */
.badge {
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-soft);
    color: var(--muted);
    border: 1px solid var(--line);
    margin-bottom: 12px;
}

.badge-html {
    color: var(--accent);
    border-color: rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.05);
}

.badge-xlsx {
    color: var(--primary);
    border-color: rgba(46, 204, 113, 0.3);
    background: rgba(46, 204, 113, 0.05);
}

.badge-docx {
    color: var(--accent);
    border-color: rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.05);
}

.badge-bundle {
    color: var(--cta-text);
    background: var(--cta);
    border: none;
}

/* PDP Shared Styles */
.breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--text);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 10px;
    color: var(--line);
}

.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 40px 0 60px;
}

.product-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.8rem);
    margin-top: 16px;
    margin-bottom: 16px;
}

.product-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin: 24px 0;
}

.product-media {
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)), var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.feature-list li {
    position: relative;
    padding-left: 32px;
    color: var(--text);
    line-height: 1.5;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 900;
}

.req-list {
    list-style: none;
    padding: 0;
}

.req-list li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
    margin-bottom: 8px;
}

.req-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Bundle PDP Styles */
.bundle-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)), var(--bg-soft);
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    position: relative;
}

.bundle-item h4 {
    margin: 0 0 8px 0;
    color: var(--text);
    font-size: 1.05rem;
}

.bundle-item p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.bundle-saving {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    margin-top: 16px;
    display: inline-block;
}

/* ─── Unified Ad System ───────────────────────────── */
/* Canonical classes: .ad-unit, .ad-unit-top, .ad-unit-mid, .ad-unit-bottom, .ad-unit-sticky, .ad-unit-tool */
/* Legacy aliases: .ad-placeholder-*, .ad-slot, .ad-top, .ad-mid, .ad-bottom */

/* JS Fallback for browser without :has() support:
   document.querySelectorAll('ins.adsbygoogle[data-ad-status="unfilled"]').forEach(ad => {
       const wrap = ad.closest('.ad-unit, .ad-placeholder, .ad-slot, .ad-top, .ad-mid, .ad-bottom');
       if (wrap) wrap.style.display = 'none';
   });
*/

/* 1. Base Wrapper */
.ad-unit,
.ad-placeholder,
.ad-slot,
.ad-top,
.ad-mid,
.ad-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    margin: 24px auto;
    overflow: hidden;
    min-height: 90px;
    transition: min-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

/* 2. Unfilled Ads - Collapse Cleanly */
/* Triggers when Google AdSense marks the <ins> as unfilled */
.ad-unit:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.ad-placeholder:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.ad-top:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.ad-mid:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.ad-bottom:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* 3. Placeholder Styling (For dev/mock mode without live tags) */
/* Adds dashed box ONLY if there is no <ins> tag inside the wrapper */
.ad-unit:not(:has(ins)),
.ad-placeholder:not(:has(ins)),
.ad-slot:not(:has(ins)) {
    background: rgba(255, 255, 254, 0.02);
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
    padding: 12px;
}

.ad-unit:not(:has(ins)):hover,
.ad-placeholder:not(:has(ins)):hover,
.ad-slot:not(:has(ins)):hover {
    background: rgba(46, 204, 113, 0.03);
    border-color: rgba(46, 204, 113, 0.3);
}

.ad-unit:not(:has(ins))::before,
.ad-placeholder:not(:has(ins))::before,
.ad-slot:not(:has(ins))::before {
    content: "Advertisement";
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-2);
    margin-bottom: 8px;
    line-height: 1;
}

/* Specific styling for the inner span in mock mode */
.ad-unit span,
.ad-placeholder span,
.ad-slot span {
    font-size: 14px;
    color: var(--muted);
    font-style: italic;
    opacity: 0.6;
    line-height: 1.2;
}

/* 4. Placement Variants */

/* Top Ad */
.ad-unit-top, .ad-placeholder-top, .ad-top {
    max-width: 970px;
    margin-top: 10px;
    margin-bottom: 30px;
}

/* Inline/Tool Ad */
.ad-unit-inline, .ad-placeholder-inline, 
.ad-unit-tool, .ad-placeholder-tool {
    margin-bottom: 24px;
}

/* Mid Content Ad */
.ad-unit-mid, .ad-placeholder-mid, .ad-mid {
    margin: 40px auto;
}

/* Bottom Ad */
.ad-unit-bottom, .ad-placeholder-bottom, .ad-bottom {
    max-width: 728px;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Sticky Bottom Ad */
.ad-unit-sticky, 
.ad-placeholder-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    margin: 0;
    border: none;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 64px;
    padding: 0 20px;
    flex-direction: row; /* Horizontal layout for sticky */
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

/* Remove ::before text logic for sticky mock so it's less cramped */
.ad-unit-sticky:not(:has(ins))::before,
.ad-placeholder-sticky:not(:has(ins))::before {
    margin-bottom: 0;
    margin-right: 12px;
    opacity: 0.8;
}

.ad-unit-sticky span,
.ad-placeholder-sticky span {
    font-size: 13px;
    margin-top: 1px;
}

.ad-sticky-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    color: var(--muted);
    transition: all 0.2s ease;
    border: 1px solid transparent;
    outline: none;
    line-height: 1;
}

.ad-sticky-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* ────────── Overlap Prevention & Sticky logic ────────── */

/* Base body padding if sticky ad is present */
body.has-sticky-ad {
    padding-bottom: 70px;
}

/* Remove padding if sticky ad is explicitly hidden or unfilled */
body.has-sticky-ad:has(.ad-unit-sticky[style*="display: none"]),
body.has-sticky-ad:has(.ad-placeholder-sticky[style*="display: none"]),
body.has-sticky-ad:has(.ad-unit-sticky ins[data-ad-status="unfilled"]),
body.has-sticky-ad:has(.ad-placeholder-sticky ins[data-ad-status="unfilled"]) {
    padding-bottom: 0 !important;
}

/* Shift active sticky result bar ABOVE the sticky ad */
/* Only shift if the sticky result bar is currently visible */
body:has(.ad-unit-sticky:not([style*="display: none"])) .sticky-result-bar.visible,
body:has(.ad-placeholder-sticky:not([style*="display: none"])) .sticky-result-bar.visible {
    transform: translateY(-64px) !important;
}

/* Prevent shift if the sticky ad is actually unfilled */
body:has(.ad-unit-sticky ins[data-ad-status="unfilled"]) .sticky-result-bar.visible,
body:has(.ad-placeholder-sticky ins[data-ad-status="unfilled"]) .sticky-result-bar.visible {
    transform: translateY(0) !important;
}

/* Ensure result bar animation is smooth */
.sticky-result-bar {
    z-index: 1500 !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), bottom 0.3s ease !important;
}

@media (max-width: 768px) {
    .ad-unit-top, .ad-placeholder-top, .ad-top {
        min-height: 60px;
    }
    .ad-unit-sticky, .ad-placeholder-sticky {
        padding: 8px 12px;
    }
}