/**
 * activity_rewards — PARADOX (токены --gx-* из game_theme.css)
 */

.gx_activity_rewards {
    font-family: "Exo 2", sans-serif;
}

/* Уведомление о балансе */
.gx_activity_rewards .gx_ar_notice {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gx-text-2, rgba(255, 255, 255, 0.78));
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid var(--gx-border-light, rgba(139, 92, 246, 0.22));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.gx_activity_rewards .gx_ar_notice a {
    color: var(--gx-purple-light, #a78bfa);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid rgba(167, 139, 250, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.gx_activity_rewards .gx_ar_notice a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.gx_activity_rewards .gx_ar_notice--wallet {
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.12) 0%,
        rgba(109, 40, 217, 0.08) 100%
    );
}

/* Оболочка под виджет */
.gx_activity_rewards .gx_ar_shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Инфо-блок (как карточка темы) */
.gx_activity_rewards .gx_ar_intro.referal_block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 20px;
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--gx-card, #12151c);
    border: 1px solid var(--gx-border, rgba(139, 92, 246, 0.1));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.gx_activity_rewards .gx_ar_intro.referal_block:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 0 28px rgba(139, 92, 246, 0.12);
}

.gx_activity_rewards .gx_ar_intro .black_list_left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 260px;
}

.gx_activity_rewards .gx_ar_intro .black_list_left i {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gx-purple-light, #a78bfa);
    background: linear-gradient(
        145deg,
        rgba(139, 92, 246, 0.2) 0%,
        rgba(109, 40, 217, 0.12) 100%
    );
    border: 1px solid var(--gx-border-light, rgba(139, 92, 246, 0.22));
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.gx_activity_rewards .black_list_text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.gx_activity_rewards .black_list_h1 {
    font-size: 16px;
    font-weight: 800;
    color: var(--gx-text, #fff);
    letter-spacing: 0.02em;
}

.gx_activity_rewards .black_list_h2 {
    font-size: 13px;
    font-weight: 500;
    color: var(--gx-text-3, rgba(255, 255, 255, 0.4));
    line-height: 1.45;
}

/* Счётчик дней подряд */
.gx_activity_rewards .gx_ar_streak.referal_procent {
    flex-shrink: 0;
    margin: 0 !important;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gx-purple-light, #c4b5fd) !important;
    background: rgba(139, 92, 246, 0.12) !important;
    border: 1px dashed rgba(167, 139, 250, 0.45) !important;
}

/* Контейнер AJAX-виджета */
.gx_activity_rewards .gx_ar_widget#activity-rewards {
    min-height: 120px;
    position: relative;
}

.gx_activity_rewards .gx_ar_widget .loader {
    margin: 40px auto;
}

/* Баннер (если выводит виджет) */
.gx_activity_rewards .activity-rewards-banner {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(
        155deg,
        var(--gx-card, #12151c) 0%,
        var(--gx-card-light, #181c26) 100%
    );
    border: 1px solid var(--gx-border, rgba(139, 92, 246, 0.1));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.gx_activity_rewards .activity-rewards-banner a {
    padding: 28px 24px;
    display: block;
    width: 100%;
    height: 100%;
    white-space: normal;
    text-decoration: none;
    color: inherit;
}

.gx_activity_rewards .activity-rewards-banner h3 {
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--gx-text, #fff);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--gx-border-light, rgba(139, 92, 246, 0.2));
}

.gx_activity_rewards .activity-rewards-banner p {
    color: var(--gx-text-2, rgba(255, 255, 255, 0.72));
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

.gx_activity_rewards .activity-rewards-banner img {
    width: 100%;
    max-width: 270px;
    display: block;
    margin: 0 auto 18px;
    border-radius: 12px;
    border: 1px solid var(--gx-border, rgba(139, 92, 246, 0.12));
}

/* Акцент «день подряд» внутри виджета */
.gx_activity_rewards .day-in-a-row {
    font-weight: 800 !important;
    border-bottom: none !important;
    background: linear-gradient(
        100deg,
        var(--gx-purple-dark, #6d28d9) 0%,
        var(--gx-purple, #8b5cf6) 45%,
        var(--gx-pink, #ec4899) 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* Сетка наград */
.gx_activity_rewards #activity-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: flex-start;
}

.gx_activity_rewards .reward {
    box-sizing: border-box;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    width: calc(50% - 6px);
    min-width: 260px;
    flex: 1 1 calc(50% - 6px);
    background: linear-gradient(
        145deg,
        rgba(24, 28, 38, 0.95) 0%,
        rgba(18, 21, 28, 0.98) 100%
    );
    border: 1px solid var(--gx-border, rgba(139, 92, 246, 0.12));
    min-height: 100px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gx_activity_rewards .reward::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
        circle at 20% 0%,
        rgba(139, 92, 246, 0.18),
        transparent 55%
    );
    transition: opacity 0.25s ease;
}

.gx_activity_rewards .reward:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12);
    transform: translateY(-1px);
}

.gx_activity_rewards .reward:hover::before {
    opacity: 1;
}

.gx_activity_rewards .reward .received {
    display: none;
}

.gx_activity_rewards .reward.active .received {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    z-index: 2;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(8, 9, 13, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: inherit;
}

.gx_activity_rewards .reward .reward-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    line-height: 1.1;
    border-radius: 14px;
    background: linear-gradient(
        145deg,
        var(--gx-purple-dark, #6d28d9) 0%,
        var(--gx-purple, #8b5cf6) 55%,
        rgba(236, 72, 153, 0.85) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.35);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.gx_activity_rewards .reward .reward-day span {
    font-size: 22px;
    text-align: center;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 6px;
}

.gx_activity_rewards .reward .reward-day i {
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    color: rgba(255, 255, 255, 0.88);
    margin-top: -2px;
}

.gx_activity_rewards .reward .reward-content {
    flex: 1;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 14px;
    min-width: 0;
}

.gx_activity_rewards .reward .reward-content span:nth-child(1) {
    line-height: 1.35;
    font-weight: 800;
    font-size: 15px;
    color: var(--gx-text, #fff);
}

.gx_activity_rewards .reward .reward-content span:nth-child(2) {
    font-size: 13px;
    color: var(--gx-text-2, rgba(255, 255, 255, 0.68));
    line-height: 1.45;
}

.gx_activity_rewards .reward:last-child {
    margin-bottom: 0;
}

/* Иконки переключения вкладок виджета */
.gx_activity_rewards #iconrewards {
    box-sizing: border-box;
    margin: 0 8px 16px 0;
    padding: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 12px;
    color: var(--gx-text-3, rgba(255, 255, 255, 0.45));
    background: var(--gx-card-light, #181c26);
    border: 1px solid var(--gx-border, rgba(139, 92, 246, 0.12));
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease,
        box-shadow 0.2s ease, transform 0.15s ease;
}

.gx_activity_rewards #iconrewards:hover {
    color: var(--gx-purple-light, #a78bfa);
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(167, 139, 250, 0.35);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}

/* Прогресс / CTA полоса */
.gx_activity_rewards #wrapper {
    width: 100%;
    min-height: 100px;
    background: var(--gx-card, #12151c);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--gx-border, rgba(139, 92, 246, 0.12));
    margin-bottom: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.gx_activity_rewards #inner {
    width: 100%;
    height: 100%;
    min-height: 100px;
    position: absolute;
    top: 0;
    left: -100%;
    background: linear-gradient(
        90deg,
        rgba(109, 40, 217, 0.35) 0%,
        rgba(139, 92, 246, 0.25) 50%,
        rgba(236, 72, 153, 0.15) 100%
    );
    border-radius: inherit;
    transition: left 0.35s ease;
    border-top: 3px solid var(--gx-purple, #8b5cf6);
}

.gx_activity_rewards #wrapper:hover #inner {
    left: 0;
}

.gx_activity_rewards #buttontext {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    color: var(--gx-text, #fff);
    position: relative;
    z-index: 1;
}

.gx_activity_rewards #arrowrewards {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: var(--gx-text-2, rgba(255, 255, 255, 0.72));
    position: relative;
    z-index: 1;
}

.gx_activity_rewards .gx_ar_widget center {
    box-sizing: border-box;
    margin: 0;
}

@media (max-width: 991.98px) {
    .gx_activity_rewards .gx_ar_intro.referal_block {
        flex-direction: column;
        align-items: stretch;
    }

    .gx_activity_rewards .gx_ar_intro .black_list_left i {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .gx_activity_rewards .gx_ar_streak.referal_procent {
        width: 100%;
        text-align: center;
    }

    .gx_activity_rewards .reward {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .gx_activity_rewards .reward {
        flex-direction: column;
        align-items: stretch;
    }

    .gx_activity_rewards .reward .reward-content {
        padding-left: 0;
        padding-top: 12px;
    }

    .gx_activity_rewards .reward .reward-day {
        align-self: flex-start;
    }
}
