:root {
    --bg: #ffffff;
    --ink: #231f20;
    --violet-1: #741094;
    --violet-2: #c503fb;
    --violet-3: #4b74b2;
    --border: #6e7db9;
    --green: #0cad60;
    --yellow: #ffde59;
    --red: #f53040;
    --muted: #6e6e6e;
    --gradient-purple: linear-gradient(135deg, #8A2BE2 0%, #6A0DAD 100%);
    --gradient-pink: linear-gradient(to right, #FF007F, #FF1493);
}


#quiz-scope * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


#quiz-scope {
    overflow-x: hidden;
}


#quiz-scope {
    font-family: 'Ubuntu', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--gradient-purple);
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    margin: 0;
    max-width: 100vw;
}

/* Iframe optimization */

#quiz-scope .iframe-mode {
    padding: 0;
    background: var(--gradient-purple);
}


#quiz-scope .iframe-mode .quiz-wrapper {
    padding: 10px;
}

/* ========== QUIZ CONTAINER ========== */

#quiz-scope .quiz-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}


#quiz-scope .quiz-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 0;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }


    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== PROGRESS BAR ========== */

#quiz-scope .progress-container {
    background: var(--gradient-purple);
    padding: 25px 30px 20px;
    border-radius: 24px 24px 0 0;
}


#quiz-scope .progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}


#quiz-scope .step-counter {
    color: white;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}


#quiz-scope .step-counter i {
    color: var(--yellow);
}


#quiz-scope .progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}


#quiz-scope .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--yellow) 0%, var(--green) 100%);
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    width: 0%;
    box-shadow: 0 0 20px rgba(255, 222, 89, 0.6);
}

/* ========== QUIZ CONTENT ========== */

#quiz-scope .quiz-content {
    padding: 40px 35px;
}


#quiz-scope .step {
    display: none;
    animation: fadeIn 0.5s ease;
}


#quiz-scope .step.active {
    display: block;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateX(20px);
    }


    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== WELCOME SCREEN ========== */

#quiz-scope .welcome-screen {
    text-align: center;
}


#quiz-scope .welcome-icon {
    font-size: 80px;
    margin-bottom: 20px;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,

    100% {
        transform: scale(1);
    }


    50% {
        transform: scale(1.1);
    }
}


#quiz-scope h1 {
    color: var(--ink);
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
}


#quiz-scope .subtitle {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 30px;
}


#quiz-scope .highlight {
    color: var(--violet-1);
    font-weight: 700;
}

/* ========== QUESTIONS ========== */

#quiz-scope .question-header {
    margin-bottom: 30px;
}


#quiz-scope .question-label {
    font-size: 24px;
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}


#quiz-scope .question-label i {
    color: var(--violet-1);
    font-size: 28px;
}


#quiz-scope .question-subtitle {
    color: var(--muted);
    font-size: 15px;
    margin-left: 40px;
}

/* ========== OPTIONS ========== */

#quiz-scope .options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}


#quiz-scope .option-card {
    background: #f8f9ff;
    border: 3px solid transparent;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
}


#quiz-scope .option-card:hover {
    border-color: var(--violet-2);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(117, 16, 148, 0.2);
}


#quiz-scope .option-card.selected {
    background: var(--gradient-purple);
    border-color: var(--violet-1);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(117, 16, 148, 0.4);
}



#quiz-scope .option-text {
    font-weight: 700;
    font-size: 18px;
}


#quiz-scope .option-subtext {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.8;
    font-weight: 500;
}

.option-card.selected .option-text,

#quiz-scope .option-card.selected .option-subtext {
    color: white;
}

/* Body parts with multiple selection */

#quiz-scope .body-parts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}


#quiz-scope .body-part-card {
    background: #f8f9ff;
    border: 3px solid transparent;
    border-radius: 16px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    position: relative;
}


#quiz-scope .body-part-card:hover {
    border-color: var(--violet-2);
    transform: translateY(-2px);
}


#quiz-scope .body-part-card.selected {
    background: var(--gradient-purple);
    border-color: var(--violet-1);
    color: white;
    box-shadow: 0 4px 20px rgba(117, 16, 148, 0.3);
}


#quiz-scope .body-part-card.selected::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--yellow);
    font-size: 20px;
}

/* ========== BUTTONS ========== */

#quiz-scope .btn {
    width: 100%;
    padding: 18px;
    font-size: 20px;
    font-weight: 900;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--gradient-purple);
    color: white;
    box-shadow: 0 6px 24px rgba(117, 16, 148, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}


#quiz-scope .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}


#quiz-scope .btn:hover::before {
    width: 300px;
    height: 300px;
}


#quiz-scope .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(117, 16, 148, 0.6);
}


#quiz-scope .btn:active {
    transform: translateY(0);
}


#quiz-scope .btn-icon {
    margin-left: 8px;
}

/* ========== LOADING SCREEN ========== */

#quiz-scope .loading-screen {
    text-align: center;
    padding: 20px 0;
}


#quiz-scope .spinner-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 40px auto;
}


#quiz-scope .spinner {
    width: 120px;
    height: 120px;
    border: 10px solid #f3f3f3;
    border-top: 10px solid var(--violet-1);
    border-right: 10px solid var(--violet-2);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {

    0% {
        transform: rotate(0deg);
    }


    100% {
        transform: rotate(360deg);
    }
}


#quiz-scope .spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: var(--violet-1);
}


#quiz-scope .loading-text {
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    margin: 15px 0;
    line-height: 1.6;
}


#quiz-scope .timer {
    font-size: 48px;
    color: var(--violet-1);
    font-weight: 900;
    margin: 30px 0;
    font-family: 'Ubuntu', monospace;
}


#quiz-scope .loading-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
    text-align: left;
}


#quiz-scope .loading-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9ff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}


#quiz-scope .loading-feature i {
    color: var(--green);
    font-size: 20px;
}

/* ========== RESULTS SCREEN ========== */

#quiz-scope .results-screen {
    text-align: center;
}


#quiz-scope .congrats-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: celebrate 1s ease infinite;
}

@keyframes celebrate {

    0%,

    100% {
        transform: rotate(-5deg) scale(1);
    }


    50% {
        transform: rotate(5deg) scale(1.1);
    }
}


#quiz-scope .results-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #e9e0ff 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    border: 2px solid var(--violet-3);
}


#quiz-scope .results-title {
    font-size: 22px;
    color: var(--violet-1);
    font-weight: 900;
    margin-bottom: 20px;
}




#quiz-scope .discount-box {
    background: var(--gradient-pink);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin: 25px 0;
    box-shadow: 0 8px 24px rgba(255, 0, 127, 0.3);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}


#quiz-scope .discount-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 0, 127, 0.5);
}


#quiz-scope .discount-text {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}


#quiz-scope .discount-highlight {
    font-size: 28px;
    font-weight: 900;
    color: var(--yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========== PRODUCTS SECTION ========== */

#quiz-scope #products-section {
    display: none;
    animation: fadeInUp 0.8s ease;
}


#quiz-scope #products-section.show {
    display: block;
}

@keyframes fadeInUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }


    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== PRODUCTS STYLING (EXACT COPY from emag.html) ========== */

#quiz-scope .ofertas-container {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: stretch;
    padding: 18px;
    flex-wrap: wrap;
}


#quiz-scope .card {
    position: relative;
    width: 100%;
    max-width: 280px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 12px 12px 14px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}


#quiz-scope s {
    color: var(--red);
}


#quiz-scope small {
    color: #555;
}


#quiz-scope .card--side::before {
    display: flex;
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 32px;
    background: linear-gradient(to right, #8A2BE2, #6A0DAD);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}


#quiz-scope .card__kicker {
    top: -12px;
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    letter-spacing: .4px;
    text-transform: capitalize;
}


#quiz-scope .card__kicker-less {
    top: -12px;
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    letter-spacing: .4px;
    text-transform: capitalize;
}


#quiz-scope .card__kickermain {
    position: relative;
    z-index: 1;
    background: linear-gradient(to right, #FF007F, #FF1493);
    text-shadow: 0em 0.1em 0.1em rgb(0 0 0);
    border-radius: 14px 14px 0 0;
    padding: 6px;
    font-weight: 800;
    font-size: 19px;
    color: #7ED957;
    letter-spacing: .4px;
    text-transform: capitalize;
}


#quiz-scope .card--best {
    background: linear-gradient(to right, #8A2BE2, #6A0DAD);
    border-color: #E9AFC1;
    padding: 0 0 14px;
}


#quiz-scope .card--best .card__inner {
    background: transparent;
    padding: 14px 16px 18px;
    border-radius: 15px;
    color: #fff;
}


#quiz-scope .h3 {
    margin: 8px 0 4px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: .5px;
}


#quiz-scope .h3--xl {
    font-size: 36px;
    line-height: 1.05;
    text-transform: uppercase;
    text-shadow: 0 .08em .08em rgba(0, 0, 0, .45)
}


#quiz-scope .sub {
    font-size: 16px;
    color: #2e2e2e;
    margin-top: 2px;
    font-weight: 400;
    text-align: center;
}


#quiz-scope .sub-main {
    font-size: 20px;
    color: #2e2e2e;
    margin-top: 2px;
    text-shadow: .08em .08em .08em rgba(0, 0, 0, .6);
}


#quiz-scope .pote {
    width: 72%;
    margin: 10px auto 6px
}


#quiz-scope .was {
    font-weight: 900;
    font-size: 22px;
    color: var(--red);
    margin: 4px 0;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(0, 0, 0, 1);
    stroke: rgba(0, 0, 0, 1);
}


#quiz-scope .now {
    font-weight: 900;
    margin: 0;
    text-shadow: .08em .08em .08em rgba(0, 0, 0, .6);
    -webkit-text-stroke: 2px #000;
}


#quiz-scope .now--yellow {
    font-size: 38px;
    color: var(--yellow);
}


#quiz-scope .now--green {
    font-size: 52px;
    color: var(--green);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(255, 255, 255, 1);
}


#quiz-scope .ship {
    font-weight: 900;
    margin: 6px 0 8px;
    letter-spacing: .3px;
    font-size: 14px;
}


#quiz-scope .bullets {
    list-style: none;
    padding: 0;
    margin: 6px auto 8px;
    width: 90%;
    text-align: left
}


#quiz-scope .bullets li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 5px 0;
    font-weight: 800;
    font-size: 13px;
}


#quiz-scope .check {
    font-size: 16px;
    line-height: 1;
    flex: 0 0 18px;
    display: inline-block
}


#quiz-scope .check--yellow {
    color: #ffd700;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35))
}


#quiz-scope .check--blue {
    color: #2a5ba5
}


#quiz-scope .check--black {
    color: #000
}


#quiz-scope .check--green {
    color: #00bf63
}


#quiz-scope .btn {
    display: block;
    text-decoration: none;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 10px auto 6px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
    color: #000;
    background: linear-gradient(#dadada 50%, #e0e0e0 51%);
}


#quiz-scope .btn--green {
    background: linear-gradient(#00bf63 50%, #04ac5b 51%);
    color: #fff;
    border: 2px solid #04ac5b;
}


#quiz-scope .btn:active {
    transform: translateY(1px)
}

/* Pulsing green button for CTAs */

#quiz-scope .btn-quiz-green {
    background: linear-gradient(#00bf63 50%, #04ac5b 51%) !important;
    color: #fff !important;
    border: 2px solid #04ac5b !important;
    animation: pulseGreen 2s ease-in-out infinite;
    box-shadow: 0 6px 24px rgba(12, 173, 96, 0.4) !important;
}


#quiz-scope .btn-quiz-green:hover {
    background: linear-gradient(#04ac5b 50%, #00bf63 51%) !important;
}

@keyframes pulseGreen {

    0%,

    100% {
        transform: scale(1);
        box-shadow: 0 6px 24px rgba(12, 173, 96, 0.4);
    }


    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 32px rgba(12, 173, 96, 0.6);
    }
}


#quiz-scope .cards-pay {
    width: 80%;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 10px auto;
}


#quiz-scope .cards-pay img {
    max-width: 100%;
    height: auto;
}


#quiz-scope .pay {
    font-size: 12px;
    font-weight: 700;
    padding: .25em .45em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff
}


#quiz-scope .total {
    margin-top: 8px;
    font-weight: 900
}


#quiz-scope .total s {
    color: #000;
    opacity: .8
}


#quiz-scope .card--best .h3--xl {
    color: #00BF63
}


#quiz-scope .mobile {
    display: flex;
}


#quiz-scope .pote-mobile {
    width: 50%;
}


#quiz-scope .surprise-bounce {
    display: inline-block;
    transform-origin: center bottom;
    text-shadow: 0 2px 0 #000, 0 0 18px rgba(244, 190, 16, .45);
    animation: surprise-pop 6s cubic-bezier(.34, 1.56, .64, 1) .2s infinite both;
    will-change: transform;
}

@keyframes surprise-pop {

    0% {
        transform: translateY(24px) scale(.6) rotate(-2deg);
        opacity: 0;
    }


    16% {
        transform: translateY(-8px) scale(1.15) rotate(0);
        opacity: 1;
    }


    22% {
        transform: translateY(0) scale(1.00);
    }


    25% {
        transform: translateY(-3px) scale(1.03);
    }


    28% {
        transform: translateY(0) scale(1.00);
    }


    100% {
        transform: translateY(0) scale(1.00);
        opacity: 1;
    }
}

/* Guarantee Section */

#quiz-scope .guarantee-section {
    background-color: #f4f7f9;
    padding: 60px 20px;
    font-family: 'Ubuntu', sans-serif;
    color: #333;
}


#quiz-scope .guarantee-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


#quiz-scope .guarantee-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a2a4b;
    margin-bottom: 10px;
    line-height: 1.2;
}


#quiz-scope .guarantee-title .red-highlight {
    color: #c9302c;
}


#quiz-scope .guarantee-text {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px;
}


#quiz-scope .guarantee-text p {
    margin-bottom: 20px;
}


#quiz-scope .guarantee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}


#quiz-scope .guarantee-badge {
    flex-shrink: 0;
    width: 200px;
}


#quiz-scope .guarantee-badge img {
    width: 100%;
    height: auto;
}


#quiz-scope .trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}


#quiz-scope .trust-badges img {
    height: 50px;
    object-fit: contain;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {

    #quiz-scope .card--best {
        order: 1;
    }


    #quiz-scope .card--left {
        order: 3;
    }


    #quiz-scope .card--right {
        order: 2;
    }
}

@media (max-width: 768px) {

    #quiz-scope {
        padding: 10px;
    }


    #quiz-scope .quiz-wrapper {
        padding: 10px 0;
    }


    #quiz-scope .quiz-content {
        padding: 25px 20px;
    }


    #quiz-scope h1 {
        font-size: 24px;
    }


    #quiz-scope .question-label {
        font-size: 18px;
    }

    .options-grid,

    #quiz-scope .body-parts-grid {
        grid-template-columns: 1fr;
    }


    #quiz-scope .loading-features {
        grid-template-columns: 1fr;
    }

    /* EXACT COPY from emag.html responsive */

    #quiz-scope .card--best {
        order: 1
    }


    #quiz-scope .card--left {
        order: 3
    }


    #quiz-scope .card--right {
        order: 2
    }


    #quiz-scope .mobile {
        display: flex;
    }


    #quiz-scope .card {
        max-width: 100%;
    }


    #quiz-scope .pote-mobile {
        width: 50%;
    }


    #quiz-scope .now--green {
        font-size: 32px;
    }


    #quiz-scope .now--yellow {
        font-size: 26px;
    }


    #quiz-scope .h3 {
        font-size: 24px;
    }


    #quiz-scope .h3--xl {
        font-size: 28px;
    }


    #quiz-scope .was {
        font-size: 18px;
    }


    #quiz-scope .pote {
        width: 100%;
    }


    #quiz-scope .ship {
        font-size: 13px;
        margin: 4px 0 6px;
    }


    #quiz-scope .pote {
        margin: 8px auto 4px;
    }


    #quiz-scope .was {
        font-size: 16px;
        margin: 2px 0;
    }


    #quiz-scope .sub {
        font-size: 14px;
    }


    #quiz-scope .sub-main {
        font-size: 18px;
    }


    #quiz-scope .bullets {
        margin: 4px auto 6px;
        width: 92%;
    }


    #quiz-scope .bullets li {
        display: flex;
        justify-content: flex-start;
        flex-direction: row;
        align-items: flex-start;
        font-size: 11px;
    }


    #quiz-scope .btn {
        font-size: 18px;
        padding: 10px 12px;
    }


    #quiz-scope .cards-pay {
        width: 90%;
        gap: 4px;
    }


    #quiz-scope .cards-pay img {
        max-width: 100%;
    }


    #quiz-scope .total {
        font-size: 14px;
    }


    #quiz-scope .card {
        padding: 10px 10px 12px;
    }

    .card__kicker,

    #quiz-scope .card__kicker-less {
        font-size: 15px;
    }


    #quiz-scope .card__kickermain {
        font-size: 17px;
        padding: 5px;
    }

    /* Guarantee section mobile */

    #quiz-scope .guarantee-content {
        flex-direction: column;
        gap: 20px;
    }


    #quiz-scope .guarantee-badge {
        width: 150px;
    }


    #quiz-scope .guarantee-text {
        text-align: center;
    }


    #quiz-scope .guarantee-title {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    #quiz-scope * {
        animation: none !important;
        transition: none !important;
    }
}