.offers-page-container {
    margin-top: 1rem;
    padding: 0 1rem;
}
.offers-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--page-bg);
}
.offer-block {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.offers-page-container .offer-block:nth-child(n + 4) {
    display: none;
}
.mobile-link {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
}
.offer-inner-block {
    display: flex;
    justify-content: space-between;
    background-color: #2b0438;
    min-height: 131px;
}
.offer-left-block,
.offer-right-block {
    width: 50%;
    display: flex;
    align-items: center;
}
.offer-logo {
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.3rem 1rem 1rem;
    background-color: #510b69;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}
.offer-logo:hover {
    background-color: #5f1976;
}
.offer-logo img {
    width: 100%;
    padding: 0 0.5rem;
}
.rating-container {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 1rem 0;
}
.offer-votes,
.offer-score {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stars-container {
    position: relative;
    display: inline-block;
    color: transparent;
    font-size: 20px;
    margin-bottom: 0.7rem;
}
.stars-container:before {
    position: absolute;
    top: 0;
    left: 0;
    content: '★★★★★';
    color: #d3d3d3;
}
.stars-container:after {
    position: absolute;
    top: 0;
    left: 0;
    content: '★★★★★';
    color: #ffcb0f;
    overflow: hidden;
}
.star-100:after {
    width: 100%;
}
.star-90:after {
    width: 90%;
}
.star-80:after {
    width: 80%;
}
.star-70:after {
    width: 70%;
}
.star-50:after {
    width: 50%;
}
.offer-votes span {
    font-size: 1rem;
    font-weight: 600;
}
.offer-score {
    align-items: flex-end;
    padding-right: 1rem;
}
.offer-score-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.site-rating {
    margin-bottom: 0.3rem;
    font-size: 2rem;
    font-weight: 600;
    color: var(--highlight);
}
.site-rating-text {
    font-size: 1rem;
    font-weight: 600;
}
.offer-right-block {
    background-color: #510b69;
    border-radius: 25px;
}
.offers-page-container .offer-right-block {
    border-radius: 0;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}
.offer-right-block:hover {
    background-color: #5f1976;
}
.welcome-bonus-block {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 700;
    line-height: 1.5rem;
}
.welcome-bonus-block span.welcome-title {
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.welcome-bonus-block span {
    font-weight: 600;
}
.btn-block {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.offer-btn {
    position: relative;
    overflow: hidden;
    width: 16rem;
    height: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    color: white;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgb(0, 197, 0);
    text-decoration: none;
    box-shadow: 0 4px 0 rgb(0, 133, 0);
    transition: transform 0.25s ease;
}
.offer-btn:hover {
    transform: translateY(-2px);
}

/* looping shine */
.offer-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: translateX(-120%) skewX(-20deg);
    animation: shineLoop 3s infinite;
    pointer-events: none;
}

/* ripple on click */
.offer-btn::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.offer-btn:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes shineLoop {
    0% {
        transform: translateX(-120%) skewX(-20deg);
    }
    50% {
        transform: translateX(120%) skewX(-20deg);
    }
    100% {
        transform: translateX(120%) skewX(-20deg);
    }
}
@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(25);
        opacity: 0;
    }
}

/* center ripple at click (requires small JS normally), fallback: center it */
.offer-btn:active::after {
    top: 50%;
    left: 50%;
}

.label-container {
    width: 100%;
    padding: 0.5rem;
    color: #fff;
    font-size: 0.75rem;
    background: #361f5b;
}
.welcome-bonus-block span {
    text-align: center;
}
/* RESPONSIVE */

@media (max-width: 1064px) {
    .offer-btn {
        width: 13rem;
        font-size: 0.8rem;
    }
}

.flag {
    position: absolute;
    padding: 5px 10px;
    background-color: #f91c5f;
    top: -5px;
    left: -10px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 767px) {
    .flag {
        padding: 4px 10px;
        top: -4px;
        left: 0px;
        border-radius: 3px;
        font-size: 14px;
    }
    .mobile-link {
        display: block;
    }
    .offer-right-block {
        flex-direction: column;
        justify-content: center;
        padding: 1rem;
        border-radius: 0;
    }
    .welcome-bonus-block {
        margin-bottom: 1.5rem;
    }
    .btn-block,
    .welcome-bonus-block {
        width: 100%;
    }
    .offer-left-block {
        flex-direction: column;
    }
    .offer-logo {
        width: 90%;
        margin-bottom: 1rem;
        background-color: transparent;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        padding: 0;
    }
    .rating-container {
        width: 100%;
        justify-content: space-between;
        padding: 0 0 1rem 2%;
    }
    .offer-votes {
        align-items: flex-start;
    }
    .offer-btn {
        width: 18rem;
        font-size: 1.2rem;
        border-radius: 2rem;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.03rem;
        text-shadow: 0 3px 3px #0000005c;
        -webkit-box-shadow: 0 5px 8px 0 #14121db3;
        box-shadow: 0 5px 8px 0 #14121db3;
        -webkit-transition: 0.15s ease-out;
        -o-transition: 0.15s ease-out;
        transition: 0.15s ease-out;
    }
    .offer-btn:active,
    .offer-btn:hover {
        transform: scale(1) translateY(3px);
        background: var(--btn);
    }
}

@media (max-width: 540px) {
    .offer-btn {
        width: 15rem;
    }
}
@media (max-width: 480px) {
    .offer-btn {
        width: 12rem;
    }
}
