.quiz-box {
    max-width: 1200px;
    width: 90%;
    margin: 1.5rem auto;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid;
    border-color: var(--glass-border);
    padding: 30px;
    transition: var(--transition);
}

.progress-container {
    width: 100%;
    height: 6px;
    background: #252525;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    transition: width 0.4s ease;
}

.quiz-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.quiz-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 35px;
    align-items: center;
}

.image-wrapper {
    width: 100%;
    height: 550px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    background: #111;
}

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

.image-wrapper :hover {
    transform: scale(1.05);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 450px;
    height: fit-content;
}

@media (max-width: 1200px) {
    .quiz-body {
        grid-template-columns: 1fr;
    }

    .options-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .quiz-body {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .image-wrapper {
        height: 380px;
    }
}

@media (max-width: 700px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .quiz-box {
        padding: 15px;
    }

    .quiz-body {
        gap: 15px;
    }
}

.quiz-btn {
    background: #222;
    color: #fff;
    border: 1px solid #333;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    outline: none;
    text-decoration: none;
}

.quiz-btn:hover:not(:disabled) {
    background: #2a2a2a;
    border-color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.quiz-btn:disabled {
    cursor: not-allowed;
}

.quiz-btn.correct {
    background: #16a34a !important;
    border-color: #22c55e !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.quiz-btn.wrong {
    background: #dc2626 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.quiz-end-card {
    animation: fadeIn 0.5s ease forwards;
    display: grid;
    grid-template-columns: 1fr 1fr;
}


.quiz-end-card .img-wrapper {
    width: 100%;
    height: 380px;
}

.quiz-end-card .img-wrapper img {
    width: 100%;
    object-fit: cover;
}

.share-quiz-btn {
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    outline: none;
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    border: none;
    width: 100%;
}

.share-quiz-btn:hover:not(:disabled) {
    border-color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.quiz-end-card .quiz-btn {
    display: block;
    width: 100%;
}

.quiz-end-card input {
    width: 100%;
    padding: 15px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1.3rem;
    box-sizing: border-box;
    outline: none;
}

.share-block {
    margin-top: 3rem;
}

.quiz-end-card {
    min-height: 520px;
}

.quiz-end-card .share-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz-end-card h2 {
    margin-top: 0;
    font-size: 2rem;
    color: #a855f7;
}


.result-score {
    font-size: 1.2rem;
    color: #ccc;
    margin: 0 0 1rem 0;
}

.result-score strong {
    color: #fff;
    font-size: 1.5rem;
}

.quiz-end-card .badge {
    background: #222;
    padding: 10px 15px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid #333;
    background: rgba(156, 39, 176, 0.2);

}

.quiz-end-card .badge span {
    color: #888;
}

.quiz-end-card .badge strong {
    color: #ec4899;
}

/* .badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    background: rgba(156, 39, 176, 0.2);
    color: #e040fb;
    border: 1px solid rgba(224, 64, 251, 0.4);
} */

.result-feedback {
    color: #b3b3b3;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.end-content {
    height: fit-content;
}

@media (max-width: 1200px) {
    .quiz-end-card {
        display: block;
        grid-template-columns: 1fr;
    }

    .quiz-end-card .img-wrapper {
        display: block;
        height: 300px;
    }

    .quiz-end-card img {
        height: 100%;
        width: auto;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}