/* CSS for index_free_tools_asin_converter_newww.html */

/* ── Hero ── */
    .gradient-hero {
        background: #ffffff;
        position: relative;
        overflow: hidden;
    }

    .hero-blob {
        position: absolute;
        border-radius: 50%;
        filter: blur(100px);
        opacity: 0.8;
        pointer-events: none;
        z-index: 0;
        will-change: transform;
    }

    .hero-blob-1 {
        width: 600px;
        height: 600px;
        background: rgba(4, 107, 252, 0.35);
        top: -200px;
        left: -150px;
    }

    .hero-blob-2 {
        width: 500px;
        height: 500px;
        background: rgba(255, 153, 0, 0.25);
        top: 50px;
        right: -100px;
    }

    .hero-blob-3 {
        width: 400px;
        height: 400px;
        background: rgba(4, 107, 252, 0.25);
        bottom: -100px;
        left: 30%;
    }

    .hero-content {
        position: relative;
        z-index: 10;
    }

    .hero-grid {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background-image:
            linear-gradient(rgba(4, 107, 252, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(4, 107, 252, 0.03) 1px, transparent 1px);
        background-size: 60px 60px;
        pointer-events: none;
        z-index: 1;
    }

    /* ── Section blobs ── */
    .section-blob {
        position: absolute;
        border-radius: 50%;
        filter: blur(120px);
        pointer-events: none;
        z-index: 0;
    }
    .section-blob-blue  { background: rgba(4, 107, 252, 0.15); }
    .section-blob-orange { background: rgba(255, 153, 0, 0.12); }
    .section-blob-navy   { background: rgba(4, 20, 61, 0.08); }

    /* ── Macrobox dark ── */
    .macrobox-dark {
        background: #04143d;
        position: relative;
        overflow: hidden;
    }

    .macrobox-dark::before {
        content: '';
        position: absolute;
        top: -30%; right: -15%;
        width: 500px; height: 500px;
        background: radial-gradient(circle, rgba(4, 107, 252, 0.4) 0%, transparent 60%);
        pointer-events: none;
    }

    .macrobox-dark::after {
        content: '';
        position: absolute;
        bottom: -25%; left: -10%;
        width: 400px; height: 400px;
        background: radial-gradient(circle, rgba(255, 153, 0, 0.25) 0%, transparent 60%);
        pointer-events: none;
    }

    /* ── Buttons ── */
    .btn-pill { border-radius: 50px; }

    /* ── FAQ Accordion ── */
    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .faq-item.active .faq-answer { max-height: 400px; }
    .faq-item.active .faq-icon  {
        transform: rotate(45deg);
        background: #046bfc;
        color: white;
    }

    /* ── FAQ Tab System ── */
    .faq-tab {
        padding: 10px 20px;
        border: 2px solid #e2e8f0;
        border-radius: 30px;
        background: white;
        font-size: 14px;
        font-weight: 600;
        color: #64748b;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .faq-tab:hover {
        border-color: #046bfc;
        color: #046bfc;
    }
    .faq-tab.active {
        background: #046bfc;
        border-color: #046bfc;
        color: white;
    }
    .faq-tab:focus-visible {
        outline-offset: 3px;
        border-radius: 50px;
    }
    .faq-category {
        display: none;
    }
    .faq-category.active {
        display: block;
    }

    /* ── Submenu ── */
    .submenu {
        position: fixed;
        top: 72px; left: 0; right: 0;
        z-index: 40;
        background: rgba(4, 20, 61, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    .submenu.visible { transform: translateY(0); }

    .submenu-link {
        color: rgba(255,255,255,0.7);
        font-size: 13px; font-weight: 500;
        padding: 12px 16px;
        transition: all 0.2s;
        white-space: nowrap;
        position: relative;
    }
    .submenu-link:hover, .submenu-link.active { color: white; }
    .submenu-link.active::after {
        content: '';
        position: absolute;
        bottom: 0; left: 16px; right: 16px;
        height: 2px; background: #046bfc; border-radius: 2px;
    }

    .progress-bar {
        position: absolute; bottom: 0; left: 0;
        height: 2px;
        background: linear-gradient(90deg, #046bfc, #3d8bfd);
        width: 0%; transition: width 0.1s linear;
    }

    /* ── Select arrow hide native ── */
    select { background-image: none; }

    /* ── Result panel loading state ── */
    .result-loading {
        position: relative;
        overflow: hidden;
    }
    .result-loading::after {
        content: '';
        position: absolute;
        top: 0; left: -100%; width: 100%; height: 100%;
        background: linear-gradient(90deg, transparent, rgba(4,107,252,0.06), transparent);
        animation: shimmer 1.5s infinite;
    }
    @keyframes shimmer {
        100% { left: 100%; }
    }

    /* ── Step cards animation ── */
    .step-card {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .step-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.12), 0 12px 24px -8px rgba(4,107,252,0.1);
    }

    /* ── Identifier cards ── */
    .id-card {
        transition: all 0.3s ease;
    }
    .id-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1), 0 8px 20px -6px rgba(4,107,252,0.08);
    }

    /* ── Use-case cards ── */
    .usecase-card {
        transition: all 0.3s ease;
    }
    .usecase-card:hover {
        border-color: rgba(4, 107, 252, 0.3);
        box-shadow: 0 20px 40px -12px rgba(0,0,0,0.08), 0 8px 20px -6px rgba(4,107,252,0.06);
        transform: translateY(-4px);
    }

    /* ── Funnel bento cards ── */
    .funnel-card {
        transition: all 0.3s ease;
    }
    .funnel-card:hover {
        border-color: rgba(255,255,255,0.3);
        background: rgba(255,255,255,0.12);
    }

    /* ── Dashboard float animation ── */
    @keyframes dashboardFloat {
        0%, 100% { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(0); }
        50%       { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-8px); }
    }
    .dashboard-float img { animation: dashboardFloat 4s ease-in-out infinite; }

    /* ── Accessibility ── */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
    }
    .skip-link {
        position: absolute;
        top: -100%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        padding: 0.75rem 1.5rem;
        background: #046bfc;
        color: #fff;
        font-weight: 600;
        border-radius: 0 0 0.5rem 0.5rem;
        transition: top 0.2s;
    }
    .skip-link:focus {
        top: 0;
    }

    /* ── Focus-visible ── */
    :focus-visible {
        outline: 2px solid #046bfc;
        outline-offset: 2px;
    }
    a:focus:not(:focus-visible),
    button:focus:not(:focus-visible) {
        outline: none;
    }

    /* ── Reduced motion ── */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
        .reveal, .reveal-left, .reveal-right {
            opacity: 1 !important;
            transform: none !important;
        }
    }

    /* ── Scroll-reveal ── */
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal.visible, .reveal-left.visible, .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
    .reveal-d1 { transition-delay: 0.1s; }
    .reveal-d2 { transition-delay: 0.2s; }
    .reveal-d3 { transition-delay: 0.3s; }
    .reveal-d4 { transition-delay: 0.4s; }

    /* ── Scroll-margin for fixed nav ── */
    section[id] {
        scroll-margin-top: 140px;
    }

    /* ── Mobile blob downsizing ── */
    @media (max-width: 640px) {
        .hero-blob-1 { width: 300px; height: 300px; }
        .hero-blob-2 { width: 250px; height: 250px; }
        .hero-blob-3 { width: 200px; height: 200px; }
    }

    /* ── Submenu edge-fade mask ── */
    .submenu .max-w-6xl {
        mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    }

    /* ── Sticky CTA smooth transform ── */
    #stickyCta {
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    #stickyCta.visible {
        transform: translateY(0);
    }

    /* ── Toast snackbar ── */
    .toast-snackbar {
        position: fixed;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        background: #04143d;
        color: white;
        padding: 12px 24px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 500;
        z-index: 9999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s, transform 0.3s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    .toast-snackbar.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    /* ── Bulk Converter Upsell Popup ── */
    .bulk-popup-overlay {
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: rgba(4, 20, 61, 0.55);
        backdrop-filter: blur(6px);
        opacity: 0;
        transition: opacity 0.35s ease;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
    }
    .bulk-popup-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }
    .bulk-popup {
        background: white;
        border-radius: 20px;
        max-width: 480px;
        width: 100%;
        padding: 32px 28px 28px;
        position: relative;
        box-shadow: 0 25px 60px rgba(4, 20, 61, 0.25), 0 8px 24px rgba(4, 107, 252, 0.12);
        transform: translateY(20px) scale(0.97);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .bulk-popup-overlay.visible .bulk-popup {
        transform: translateY(0) scale(1);
    }
    .bulk-popup-close {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f1f5f9;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, transform 0.2s;
    }
    .bulk-popup-close:hover {
        background: #e2e8f0;
        transform: rotate(90deg);
    }
    @media (max-width: 480px) {
        .bulk-popup { padding: 24px 20px 20px; }
    }

    /* ── Exit-Intent Popup ── */
    .exit-intent-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
    .exit-intent-overlay.visible { opacity: 1; pointer-events: auto; }
    .exit-intent-card { background: #fff; border-radius: 1.5rem; max-width: 480px; width: 100%; box-shadow: 0 25px 60px rgba(0,0,0,.3); transform: translateY(24px) scale(.96); transition: transform .4s cubic-bezier(.16,1,.3,1); position: relative; }
    .exit-intent-overlay.visible .exit-intent-card { transform: translateY(0) scale(1); }
    .exit-intent-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; background: #f1f5f9; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #64748b; transition: background .2s, color .2s; z-index: 2; }
    .exit-intent-close:hover { background: #e2e8f0; color: #1e293b; }
    .exit-intent-close:focus-visible { outline: 2px solid #046bfc; outline-offset: 2px; }

    /* ── Product Sourcer Wheel Carousel ── */
    .ps-wheel-container {
        position: relative;
        overflow: visible;
        overscroll-behavior: contain;
        touch-action: pan-x;
    }
    .ps-wheel-card {
        position: absolute;
        width: 88%;
        left: 6%;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    .ps-wheel-card[data-position="center"] {
        z-index: 10;
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
        pointer-events: auto;
        cursor: zoom-in;
    }
    .ps-wheel-card[data-position="top"] {
        z-index: 5;
        transform: translateY(-65%) scale(0.82);
        opacity: 0.5;
        filter: blur(3px);
    }
    .ps-wheel-card[data-position="bottom"] {
        z-index: 5;
        transform: translateY(65%) scale(0.82);
        opacity: 0.5;
        filter: blur(3px);
    }
    .ps-wheel-card[data-position="hidden"] {
        z-index: 1;
        transform: translateY(0) scale(0.6);
        opacity: 0;
        filter: blur(6px);
    }

    /* ── Bulk Converter Wheel Carousel (mirrors Product Sourcer) ── */
    .bk-wheel-container {
        position: relative;
        overflow: visible;
        overscroll-behavior: contain;
        touch-action: pan-x;
    }
    .bk-wheel-card {
        position: absolute;
        width: 88%;
        left: 6%;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    .bk-wheel-card[data-position="center"] {
        z-index: 10;
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
        pointer-events: auto;
        cursor: zoom-in;
    }
    .bk-wheel-card[data-position="top"] {
        z-index: 5;
        transform: translateY(-65%) scale(0.82);
        opacity: 0.5;
        filter: blur(3px);
    }
    .bk-wheel-card[data-position="bottom"] {
        z-index: 5;
        transform: translateY(65%) scale(0.82);
        opacity: 0.5;
        filter: blur(3px);
    }
    .bk-wheel-card[data-position="hidden"] {
        z-index: 1;
        transform: translateY(0) scale(0.6);
        opacity: 0;
        filter: blur(6px);
    }

    /* Product Sourcer Lightbox */
    .ps-lightbox {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0);
        opacity: 0;
        pointer-events: none;
        transition: background 0.35s ease, backdrop-filter 0.35s ease, opacity 0.35s ease;
    }
    .ps-lightbox.visible {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(8px);
        opacity: 1;
        pointer-events: auto;
        cursor: zoom-out;
    }
    .ps-lightbox img {
        max-width: 92vw;
        max-height: 88vh;
        border-radius: 16px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
        transform: scale(0.85);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .ps-lightbox.visible img {
        transform: scale(1);
    }
    .ps-lightbox-close {
        position: absolute;
        top: 20px;
        right: 24px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }
    .ps-lightbox-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    /* ── Daily Limit Banner ── */
    .limit-banner {
        background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 40%, #f0f4ff 100%);
        border: 2px solid rgba(4, 107, 252, 0.18);
        border-radius: 20px;
        padding: 32px 24px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    .limit-banner::before {
        content: '';
        position: absolute;
        top: -40px; right: -40px;
        width: 140px; height: 140px;
        background: radial-gradient(circle, rgba(4, 107, 252, 0.08) 0%, transparent 70%);
        pointer-events: none;
    }
    .limit-banner::after {
        content: '';
        position: absolute;
        bottom: -30px; left: -30px;
        width: 100px; height: 100px;
        background: radial-gradient(circle, rgba(255, 153, 0, 0.06) 0%, transparent 70%);
        pointer-events: none;
    }
    .limit-banner-pulse {
        animation: limitPulse 3s ease-in-out infinite;
    }
    @keyframes limitPulse {
        0%, 100% { box-shadow: 0 4px 24px rgba(4, 107, 252, 0.08); }
        50% { box-shadow: 0 8px 32px rgba(4, 107, 252, 0.15); }
    }

    /* ── Noscript banner ── */
    .noscript-banner {
        background: #fef3c7;
        color: #92400e;
        text-align: center;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 500;
    }

    /* ── Print stylesheet ── */
    @media print {
        nav, .submenu, #stickyCta, .toast-snackbar, .hero-blob, .hero-grid, .section-blob, .bulk-popup-overlay, .limit-banner, .ps-lightbox, footer { display: none !important; }
        body { font-size: 12pt; color: #000; }
        a { color: #000; text-decoration: underline; }
        .macrobox-dark { background: #f8f8f8 !important; color: #000 !important; }
        .macrobox-dark * { color: #000 !important; }
        section { break-inside: avoid; }
    }
