/* =========================================
   ХАРДКОРНЫЕ ЗАДАНИЯ (4-е задание)
   ========================================= */

.bp-quest-card.hardcore {
    border: 1px solid rgba(231, 76, 60, 0.5);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(26, 26, 26, 1) 100%);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.15);
    position: relative;
    overflow: hidden;
}

/* Делаем иконку красной */
.bp-quest-card.hardcore .bp-quest-icon {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c !important;
}

/* Заголовок с красным свечением */
.bp-quest-card.hardcore .bp-quest-title {
    color: #fff;
    text-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

/* Полоса прогресса тоже красная (передается инлайн, но на всякий случай) */
.bp-quest-card.hardcore .bp-progress-fill {
    background: #e74c3c !important;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

/* Приглушение, если хардкор выполнен */
.bp-quest-card.hardcore.completed {
    opacity: 0.6;
    filter: grayscale(0.5);
}
/* =========================================
   БОЕВОЙ ПРОПУСК (BP)
   ========================================= */
/* Заблокированные задания (доступны после 00:00) */
.bp-quest-card.locked {
    opacity: 0.6;
    border-style: dashed;
    background: rgba(38, 38, 46, 0.5);
}
/* Плашка "На сегодня всё" */
.bp-quest-card.full-width, 
.bp-quests-grid .empty-state {
    grid-column: 1 / -1; /* Занимает все колонки, которые есть в сетке */
    width: 100%;
}
.bp-reroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.bp-reroll-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--green-txt);
    color: var(--green-txt);
}
.bp-reroll-btn i {
    font-size: 18px;
}

.bp-reroll-btn.premium {
    background: rgba(240, 178, 50, 0.1);
    border-color: rgba(240, 178, 50, 0.3);
    color: #f0b232;
}
.bp-reroll-btn.premium:hover {
    background: rgba(240, 178, 50, 0.2);
    border-color: #f0b232;
}
.bp-quest-card.locked:hover {
    transform: none;
    border-color: rgba(255,255,255,0.05);
}

.bp-quest-lock-text {
    margin-top: 8px;
    color: #f0b232;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.bp-quest-card.completed {
opacity: 0.6;
    filter: grayscale(0.5);
}

.bp-quest-done-text {
    margin-top: 8px;
    color: var(--green-txt);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
/* --- 1. Прогресс-бар --- */
.bp-progress-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    width: 100%;
}

.bp-level-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--greendark) 0%, var(--greenlight) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(80, 180, 120, 0.4);
    flex-shrink: 0;
}

.bp-level-num {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.bp-level-text {
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.bp-progress-bar-wrapper {
    flex-grow: 1;
    width: 100%;
}

.bp-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #a0a0a0;
    margin-bottom: 8px;
}
.bp-progress-text b {
    color: #fff;
}

.bp-progress-track {
    height: 14px;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.bp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--greenlight), var(--green-txt));
    border-radius: 8px;
    transition: width 0.4s ease;
}

/* --- 2. Статус и кнопка "Купить" --- */
.bp-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f0b232 0%, #d49a1a 100%);
    color: #1a1a1a;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-decoration: none;
}

.bp-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 178, 50, 0.3);
    color: #1a1a1a;
}

.bp-bought-status {
    display: flex;
    align-items: center;
    gap: 10px;
padding: 6px 12px;
    background: var(--greenchat);
    border: 1px solid var(--green-slide);
    border-radius: 8px;;
}

.bp-bought-status i {
    font-size: 24px;
    color: var(--green-txt);
}

/* --- 3. Сетка наград --- */
.bp-rewards-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 15px !important;
    width: 100% !important;
    padding: 30px 0 15px 0 !important;
    box-sizing: border-box !important;
}

/* --- 4. Карточка награды --- */
.bp-reward-card {
    margin-top: 10px !important;
    width: 100%;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    padding: 20px 10px 15px 10px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between;
    box-sizing: border-box;
}

.bp-reward-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.2);
}

.bp-reward-card.reached {
    border-color: var(--greenchat);
    background: rgba(80, 180, 120, 0.05);
	cursor: pointer;
}

.bp-reward-level {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #303030;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.bp-reward-card.reached .bp-reward-level {
background: var(--greenlight);
    color: var(--green-primary);
}

.bp-reward-icon {
    font-size: 32px;
    margin: 10px 0;
}

.bp-reward-name {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.bp-reward-status {
    font-size: 10px;
    color: #676767;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 5px;
}

.bp-reward-card.reached .bp-reward-status {
    color: var(--green-txt);
}

/* --- 5. Сетка ежедневных заданий --- */
.bp-quests-grid {
    display: grid;
    /* 4 колонки на больших экранах, 2 на средних, 1 на телефонах */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    width: 100%;
}

.bp-quest-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.2s;
}

.bp-quest-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bp-quest-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: linear-gradient(23deg, var(--greendark) 0%, var(--greenlight) 55%);
    color: var(--green-txt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.bp-quest-text {
    display: flex;
    flex-direction: column;
}

.bp-quest-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.bp-quest-reward {
    color: #f0b232;
    font-size: 12px;
    font-weight: 600;
}

.bp-quest-progress-block {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.bp-quest-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #a0a0a0;
    margin-bottom: 6px;
}

.bp-quest-progress-text b {
    color: #fff;
}

/* --- 6. Мобильная адаптация --- */
@media (max-width: 768px) {
    .bp-progress-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .bp-level-circle {
        width: 60px;
        height: 60px;
    }
    
    .bp-level-num {
        font-size: 22px;
    }

    .bp-progress-text {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .bp-rewards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding-top: 20px !important;
    }

    .bp-reward-card {
        padding: 15px 5px 10px 5px;
    }

    .bp-reward-icon {
        font-size: 26px;
        margin: 5px 0;
    }
    
    .bp-reward-name {
        font-size: 11px;
    }

    /* Мобильная сетка квестов (1 в ряд) */
    .bp-quests-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

@media (max-width: 400px) {
    .bp-rewards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}