/* Challenge Section Specific Styles */
.challenge-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.challenge-card:active {
    transform: scale(0.98);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.rank-text {
    font-weight: 900;
}

.bot-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.bot-item {
    background: var(--card2);
    border: 1px solid var(--line);
    border-radius: var(--radius3);
    padding: 15px;
    text-align: center;
}

.timer-bar {
    height: 6px;
    background: var(--line);
    width: 100%;
    margin-bottom: 20px;
    border-radius: 3px;
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    background: var(--accent2);
    width: 100%;
    transition: width 1s linear;
}

.duel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.player-score {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 12px;
    text-align: center;
}

.q-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 15px;
}

.q-opt {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 15px 20px;
    border-radius: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1.4;
    word-break: break-word;
}

.q-opt:active {
    background: var(--line);
}

.q-opt.correct {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.q-opt.wrong {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

/* Match Result Modal Animation */
@keyframes mrPulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

/* ─── Profile Enhancement ─── */
.profile-header {
    background: linear-gradient(135deg, rgba(46, 242, 154, 0.1) 0%, rgba(65, 200, 229, 0.1) 100%);
    padding: 30px 20px;
    border-radius: 24px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    padding: 4px;
    background: var(--bg);
}

.profile-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent2);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 3px solid var(--bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.rank-progress-container {
    padding: 0 10px;
    margin-bottom: 20px;
}

.rank-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 8px 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 10px;
    box-shadow: 0 0 15px var(--accent);
}

.grid3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.profile-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 5px;
    text-align: center;
    transition: 0.3s;
}

.profile-stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

.profile-stat-val {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 2px;
}

.profile-stat-label {
    font-size: 10px;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
}