/* Popup + FAQ integration */
:root {
    --popup-text-primary: #ffffff;
    --popup-color-primary: #fc634f;
    --popup-color-primary-hover: #ef8c26;
    --popup-color-primary-active: #ef8c26;
    --popup-color-primary-alt: #ef8c26;
    --popup-color-accent: #000000;
    --popup-color-gradient-end: #fc634f;
    --popup-bg: rgba(8, 12, 21, 0.96);
}

body.popup-open {
    overflow: hidden;
}

.casino-popup {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    background: var(--popup-bg);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.casino-popup.show {
    visibility: visible;
    opacity: 1;
}

.redirect-notice {
    max-width: 520px;
    padding: 15px;
    text-align: center;
    color: var(--popup-text-primary);
    animation: fadeIn 0.5s ease-in-out;
}

.notice-title {
    margin-bottom: 10px;
    color: var(--popup-text-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.roulette-wheel {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: spin 3s linear infinite;
}

.wheel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border: 3px solid var(--popup-text-primary);
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--popup-color-primary) 0deg 45deg,
        var(--popup-color-accent) 45deg 90deg,
        var(--popup-color-primary) 90deg 135deg,
        var(--popup-color-accent) 135deg 180deg,
        var(--popup-color-primary) 180deg 225deg,
        var(--popup-color-accent) 225deg 270deg,
        var(--popup-color-primary) 270deg 315deg,
        var(--popup-color-accent) 315deg 360deg
    );
    box-shadow: 0 0 30px rgba(32, 153, 255, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--popup-text-primary);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.ball {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--popup-color-accent);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
    animation: ballBounce 0.6s ease-in-out infinite alternate;
}

.progress-container {
    width: min(280px, 100%);
    text-align: center;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: #9a68d1;
    box-shadow: 0 0 10px rgba(32, 153, 255, 0.6);
}

.progress-fill {
    width: 0%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--popup-color-primary), var(--popup-color-gradient-end), var(--popup-color-primary));
    background-size: 200% 100%;
    transition: width 0.1s linear;
    animation: progressShine 2s ease-in-out infinite;
}

.progress-text {
    margin-top: 12px;
    color: var(--popup-color-primary);
    font-size: 14px;
    font-weight: 700;
}

.faq-container,
.expert-review-faq {
    margin: 1.8em 0 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(10, 20, 39, 0.94), rgba(12, 24, 46, 0.9));
}

.faq-container > h2,
.expert-review-faq__header {
    margin-top: 0;
    margin-bottom: 18px;
    padding-top: 0;
    border-top: 0;
    color: #f7f8fb;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.faq-item {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
    background: #1a181c;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px 14px 24px;
    border: 0;
    background: #1a181c;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover,
.faq-question:focus-visible {
    background: #242228;
    outline: none;
}

.faq-question-text,
.faq-question h3 {
    flex: 1;
    margin: 0;
    padding-right: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.faq-arrow {
    position: relative;
    display: inline-flex;
    width: 18px;
    min-width: 18px;
    height: 18px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.faq-arrow::before,
.faq-arrow::after {
    position: absolute;
    background: #fc634f;
    border-radius: 999px;
    content: "";
}

.faq-arrow::before {
    width: 18px;
    height: 2px;
}

.faq-arrow::after {
    width: 2px;
    height: 18px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    border-top: 0 solid #000;
    background: #1a181c;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, border-top-width 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 16px 24px 24px;
    border-top-width: 2px;
    opacity: 1;
}

.faq-answer p,
.faq-answer span {
    display: block;
    margin: 0;
    color: #fff;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .faq-container > h2,
    .expert-review-faq__header {
        font-size: 28px;
    }

    .notice-title {
        font-size: 20px;
    }

    .roulette-wheel {
        width: 100px;
        height: 100px;
    }

    .faq-question {
        padding: 12px 12px 12px 18px;
    }

    .faq-question-text,
    .faq-question h3 {
        font-size: 16px;
        padding-right: 12px;
    }

    .faq-item.active .faq-answer {
        padding: 14px 18px 20px;
    }

    .faq-answer {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes ballBounce {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.3);
    }
}

@keyframes progressShine {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}
