/* Cash Back promo cards — shared shop + auth */

@keyframes scp-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scp-icon-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes scp-shine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-credit-promo--animate,
    .auth-cashback-teaser--animate,
    .store-credit-promo__icon-anim,
    .auth-cashback-teaser {
        animation: none !important;
    }
}

.store-credit-promo {
    --scp-bg1: #ecfdf5;
    --scp-bg2: #d1fae5;
    --scp-border: rgba(16, 185, 129, 0.22);
    --scp-text: #0f172a;
    --scp-muted: #64748b;
    --scp-accent: #059669;
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--scp-border);
    background: linear-gradient(135deg, var(--scp-bg1) 0%, #f0fdf4 55%, var(--scp-bg2) 100%);
    background-size: 200% 200%;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 4px 14px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.store-credit-promo--animate {
    animation: scp-enter 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.store-credit-promo--compact {
    padding: 0.65rem 0.85rem !important;
    margin-bottom: 0.65rem !important;
    border-radius: 10px;
}

.store-credit-promo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 45%,
        transparent 90%
    );
    background-size: 200% 100%;
    opacity: 0.45;
    animation: scp-shine 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .store-credit-promo::after {
        animation: none;
        opacity: 0.2;
    }
}

.store-credit-promo__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.store-credit-promo__icon-wrap {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--scp-accent);
    font-size: 0.95rem;
}

.store-credit-promo--compact .store-credit-promo__icon-wrap {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.store-credit-promo__icon-anim {
    animation: scp-icon-pulse 2.8s ease-in-out infinite;
}

.store-credit-promo__main {
    flex: 1;
    min-width: 0;
}

.store-credit-promo__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.25rem;
}

.store-credit-promo__title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--scp-text);
}

.store-credit-promo:not(.store-credit-promo--compact) .store-credit-promo__title {
    font-size: 0.9375rem;
}

.store-credit-promo--compact .store-credit-promo__title {
    font-size: 0.78rem;
}

.store-credit-promo__badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.store-credit-promo__line {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--scp-text);
}

.store-credit-promo--compact .store-credit-promo__line {
    font-size: 0.78rem;
}

.store-credit-promo__line--muted {
    font-size: 0.72rem;
    color: var(--scp-muted);
    margin-top: 0.35rem;
}

.store-credit-promo__amount {
    font-weight: 800;
    color: var(--scp-accent);
}

.store-credit-promo__foot {
    margin: 0.35rem 0 0;
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--scp-muted);
}

.store-credit-promo__balance-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin-top: 0.4rem;
}

.store-credit-promo__pill {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.14);
    color: #065f46;
    border: 1px solid rgba(5, 150, 105, 0.22);
}

.store-credit-promo__link {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--scp-accent);
    text-decoration: none;
}

.store-credit-promo__link:hover {
    text-decoration: underline;
}

.store-credit-promo__guest-links {
    margin-top: 0.45rem;
    font-size: 0.72rem;
    color: var(--scp-muted);
}

.store-credit-promo__guest-links a {
    font-weight: 600;
    color: var(--scp-accent);
    text-decoration: none;
}

.store-credit-promo__guest-links a:hover {
    text-decoration: underline;
}

.store-credit-promo__guest-sep {
    opacity: 0.45;
    padding: 0 0.2rem;
}

/* Login / register — slim animated teaser */
.auth-cashback-teaser {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    background: linear-gradient(120deg, #ecfdf5 0%, #f0fdf4 50%, #d1fae5 100%);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    position: relative;
}

.auth-cashback-teaser--animate {
    animation: scp-enter 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-cashback-teaser::before {
    content: '';
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.15), transparent 55%);
    pointer-events: none;
}

.auth-cashback-teaser__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #059669;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    animation: scp-icon-pulse 3s ease-in-out infinite;
}

.auth-cashback-teaser__text {
    position: relative;
    z-index: 1;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #0f172a;
}

.auth-cashback-teaser__text strong {
    color: #047857;
    font-weight: 800;
}

.auth-cashback-teaser__sub {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
}

.auth-cashback-teaser__more {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #059669;
    text-decoration: none;
}

.auth-cashback-teaser__more:hover {
    text-decoration: underline;
    color: #047857;
}

.store-credit-promo__foot .store-credit-promo__link {
    font-weight: 600;
}
