* {
    box-sizing: border-box;
}

.top-offer-bar {
    width: 100%;
    position: relative;
    z-index: 1002;
    background: linear-gradient(90deg, #1e1b4b 0%, #312e81 35%, #4338ca 65%, #1e1b4b 100%);
    background-size: 200% 100%;
    animation: bannerGradient 7s ease infinite;
    color: #ffffff;
    font-size: 0.8438rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px rgba(30, 27, 75, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.sticky-top-offer {
    position: sticky;
    top: 0;
}

@keyframes bannerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.mobile-tap-link {
    display: none;
}

.top-offer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
}

.offer-left-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.offer-pulse-icon {
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
    animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(251, 191, 36, 0.4); }
    50% { transform: scale(1.18); box-shadow: 0 0 20px rgba(251, 191, 36, 0.8); }
}

.offer-tag-chip {
    background: #f59e0b;
    color: #0f172a;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.125rem 0.4375rem;
    border-radius: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.offer-ticker-container {
    position: relative;
    height: 1.625rem;
    overflow: hidden;
    width: clamp(360px, 52vw, 640px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.offer-ticker-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    pointer-events: none;
    color: #f1f5f9;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.offer-ticker-item.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.offer-ticker-item.is-exiting {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.offer-text-plain {
    color: #f1f5f9;
    font-weight: 400;
}

.highlight-amt {
    color: #fbbf24;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.highlight-gift {
    color: #38bdf8;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gift-name-truncate {
    display: inline-block;
    vertical-align: middle;
}

.btn-top-offer-claim {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-top-offer-claim:hover {
    background: #ffffff;
    color: #1e1b4b;
    transform: translateX(2px);
}

@media (max-width: 860px) {
    .offer-left-badge .offer-tag-chip {
        display: none;
    }
}

@media (max-width: 640px) {
    .top-offer-bar {
        padding: 0;
        height: 38px;
        display: flex;
        align-items: center;
    }

    .top-offer-bar:active {
        opacity: 0.9;
    }

    .mobile-tap-link {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 5;
    }

    .top-offer-container {
        padding: 0 10px;
        gap: 6px;
        justify-content: space-between;
        height: 100%;
        max-width: 100%;
    }

    .offer-left-badge {
        display: flex;
        gap: 0;
    }

    .offer-left-badge .offer-tag-chip {
        display: none;
    }

    .offer-pulse-icon {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .offer-ticker-container {
        width: auto;
        flex: 1;
        height: 100%;
        margin: 0 4px;
        justify-content: flex-start;
    }

    .offer-ticker-item {
        font-size: 11.5px;
        justify-content: flex-start;
        gap: 3px;
    }

    .gift-name-truncate {
        max-width: calc(100vw - 190px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .btn-top-offer-claim {
        width: 24px;
        height: 24px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.35);
        pointer-events: none;
    }

    .btn-top-offer-claim .claim-btn-text {
        display: none;
    }

    .btn-top-offer-claim i {
        font-size: 10px;
    }
}