/* =========================
   STICKY OFFER (lean)
   ========================= */

.sticky-offer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transform: translateY(-110%);
    transition: transform .32s ease, opacity .2s ease;
    opacity: 0;
    pointer-events: none;
    padding-top: env(safe-area-inset-top, 0);
    /* isola repaints sem afetar layout */
    contain: paint style;
    /* evita layout shift durante show/hide */
    will-change: transform, opacity;
}

.sticky-offer.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.sticky-offer__inner {
    max-width: clamp(320px, 92vw, 520px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;

    /* mantém o mesmo look, mas com menos custo em devices sem blur */
    background:
        linear-gradient(180deg, rgba(255, 77, 77, .18), rgba(41, 0, 0, .92)),
        #290000;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0 0 16px 16px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, .35),
        inset 0 0 0 1px rgba(255, 0, 0, .15);
}

/* aplica blur só onde suportado e em telas maiores (menos custo no mobile) */
@supports (backdrop-filter: blur(6px)) {
    @media (min-width: 641px) {
        .sticky-offer__inner {
            backdrop-filter: blur(6px);
        }
    }
}

.sticky-offer__tag {
    font-weight: 800;
    font-size: 14px;
    color: #eaeaea;
    letter-spacing: .2px;
    opacity: .95;
}

/* =========================
   TIMER
   ========================= */

.sticky-offer__timer {
    display: flex;
    align-items: center;
    gap: 10px 14px;
    flex-wrap: nowrap;
}

.unit-2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 48px;
    padding: 0;
    /* mantém altura exata */
    border-radius: 12px;

    font-weight: 900;
    font-size: 22px;
    line-height: 1;
    color: #fff;

    /* mantém o visual, simplificando a composição */
    background:
        radial-gradient(120% 120% at 20% 20%, rgba(255, 80, 80, .9), transparent 55%),
        linear-gradient(180deg, var(--accent, #ff4d4d), #b10000);
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 6px 18px rgba(255, 0, 0, .25);
    /* evita custo contínuo */
    will-change: auto;
}

.sticky-offer__timer small {
    font-size: 16px;
    color: #ddd;
    margin-left: 5px;
    font-weight: 700;
    opacity: .9;
}

.sticky-offer__phrase {
    font-weight: 700;
    color: #f1f1f1;
    text-align: center;
    font-size: 14px;
    letter-spacing: .2px;
    opacity: .95;
}

/* =========================
   CTA
   ========================= */

.sticky-offer__cta {
    text-decoration: none;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
    transition: transform .15s ease, box-shadow .15s ease;
    touch-action: manipulation;
}

@media (hover:hover) {
    .sticky-offer__cta:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, .35);
    }

    .sticky-offer__cta:active {
        transform: translateY(1px);
    }
}

/* =========================
   REDUCE MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {
    .sticky-offer {
        transition: none !important;
    }

    .sticky-offer__cta {
        transition: none !important;
    }
}