:root {
    --sj-challenge-bg: #1b2838;
    --sj-challenge-card-bg: #232d3b;
    --sj-challenge-accent: #66c0f4; /* Steam Blue */
    --sj-challenge-reward: #a3ff00; /* Neon Green */
    --sj-challenge-reward-cyan: #00f2ff; /* Neon Cyan */
    --sj-challenge-completed: #4b6b22;
}

.challenges-header {
    margin-bottom: 2rem;
}

.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.challenge-card {
    background-color: var(--sj-challenge-card-bg);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    transition: transform 0.2s, background-color 0.2s;
    border: none;
    cursor: pointer;
}

.challenge-card:hover {
    background-color: #2d3846;
}

.challenge-card.completed {
    opacity: 0.7;
}

.challenge-card.completed .challenge-title {
    text-decoration: none;
}

.challenge-icon-wrapper {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #171d25;
}

.challenge-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.challenge-info {
    flex-grow: 1;
    min-width: 0;
}

.challenge-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.challenge-game-name {
    font-size: 0.75rem;
    color: var(--sj-challenge-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: block;
}

.challenge-description {
    font-size: 0.85rem;
    color: #acb2b8;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.challenge-progress-container {
    height: 6px;
    background: #171d25;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
    width: 100%;
}

.challenge-progress-bar {
    height: 100%;
    background: var(--sj-challenge-accent);
    border-radius: 3px;
}

.challenge-progress-text {
    font-size: 0.7rem;
    color: #8f98a0;
    margin-top: 4px;
    display: block;
}

.challenge-reward-badge {
    text-align: right;
    flex-shrink: 0;
    padding-left: 10px;
}

.reward-amount {
    color: var(--sj-challenge-reward);
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
}

.reward-label {
    font-size: 0.65rem;
    color: #8f98a0;
    text-transform: uppercase;
}

.challenge-status-tag {
    position: absolute;
    top: -8px;
    right: 12px;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-available { background: #5c7e10; color: #fff; }
.status-inprogress { background: #66c0f4; color: #171d25; }
.status-completed { background: var(--sj-challenge-completed); color: #fff; }

.challenge-check {
    color: var(--sj-challenge-reward);
    font-size: 1.2rem;
}

/* Empty State */
.challenges-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #8f98a0;
}

.challenges-empty i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

/* Modal Enhancements */
.challenge-modal-header {
    padding: 0;
    border: none;
    position: relative;
}

.challenge-modal-banner {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.challenge-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.reward-highlight {
    background: rgba(163, 255, 0, 0.1);
    border: 1px solid rgba(163, 255, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.reward-icon-big {
    font-size: 2.5rem;
    color: var(--sj-challenge-reward);
    margin-bottom: 10px;
}

.reward-value-big {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Bungee', cursive;
}

.challenges-tips-btn{
    top: 22px;
    left: 14px;
}