/* 1. Hero Result Card */
.result-card {
    background: linear-gradient(160deg, #1a1a2e 0%, #0b0b12 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 30px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

/* Background Glow Effect */
.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* CHANGED: Amber to Blue (rgba 59, 130, 246) */
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 2. Winning Amount (Pulsing Gold) */
.win-amount {
    font-size: 3.5rem;
    font-weight: 800;
    /* CHANGED: Gold to Blue */
/*    color: #3b82f6;*/
    /* CHANGED: Amber shadow to Blue shadow */
    text-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
    margin: 10px 0;
    letter-spacing: -1px;
}

.rank-badge {
/* CHANGED: Background, text, and border to Blue */
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid #3b82f6;
    padding: 5px 15px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

/* 3. Stats Grid (Correct/Wrong/Time) */
.result-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.stat-val {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.stat-lbl {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

/* Colors for stats */
.text-green {
    color: #2ecc71 !important;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.text-red {
    color: #e74c3c !important;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.text-blue {
/* CHANGED: Standard blue to your specific #3b82f6 */
    color: #3b82f6 !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* 4. Leaderboard Strip Design */
.leaderboard-section {
    max-width: 800px;
    margin: 0 auto;
}

.lb-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(22, 22, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    transition: transform 0.2s;
}

/* User's own strip (Highlighted) */
.lb-strip.active-user {
/* CHANGED: Using your exact blue variable/hex */
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

/* Rank Number styling */
.lb-rank {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #888;
}

/* Top 3 Rank Colors */
.lb-strip:nth-child(2) .lb-rank {
    background: #FFD700;
    color: #000;
    box-shadow: 0 0 10px #FFD700;
}

/* 1st (Header is child 1) */
.lb-strip:nth-child(3) .lb-rank {
    background: #C0C0C0;
    color: #000;
}

/* 2nd */
.lb-strip:nth-child(4) .lb-rank {
    background: #CD7F32;
    color: #000;
}

/* 3rd */

.lb-name {
    flex-grow: 1;
    padding-left: 15px;
    font-weight: 500;
}

.lb-score {
    font-weight: bold;
    color: #fff;
}

.lb-time {
    font-size: 0.8rem;
    color: #666;
    margin-left: 10px;
    width: 60px;
    text-align: right;
}

/* Action Buttons */
.action-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-outline-glass {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    background: transparent;
    padding: 12px;
    border-radius: 12px;
    width: 100%;
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- REVIEW SECTION STYLES --- */

:root {
/* New Semantic Neon Colors */
    --neon-green: #00ffa3;
    --neon-red: #ff2a2a;
    --neon-green-glow: rgba(0, 255, 163, 0.3);
    --neon-red-glow: rgba(255, 42, 42, 0.3);
}

.review-section-title {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    margin-top: 10px;
    position: relative;
}

/* The divider line */
.review-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--border-subtle);
    margin: 10px auto 0;
}

/* Individual Question Card */
.review-card {
    background: rgba(18, 18, 28, 0.4); /* Slightly darker than main card */
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.review-q-text {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--border-subtle); /* subtle indicator */
}

/* --- OPTION STYLES IN REVIEW --- */
.review-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* STATE: CORRECT ANSWER (The Green One) */
.review-option.correct {
    background: rgba(0, 255, 163, 0.05);
    border-color: var(--neon-green);
    color: #fff;
    box-shadow: 0 0 10px var(--neon-green-glow);
}

/* STATE: WRONG SELECTION (The Red One) */
.review-option.wrong {
    background: rgba(255, 42, 42, 0.05);
    border-color: var(--neon-red);
    color: #ffcccc;
    box-shadow: 0 0 10px var(--neon-red-glow);
}

/* Icons inside the options */
.status-icon {
    font-size: 1.1rem;
}
.status-icon.check { color: var(--neon-green); }
.status-icon.cross { color: var(--neon-red); }

/* Badge for "Your Answer" */
.ans-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
}
.ans-badge-green { background: var(--neon-green); color: #000; }
.ans-badge-red { background: var(--neon-red); color: #fff; }