/* Super Ads — Quiz Dating Match */

.sa-quiz-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.45s ease,
        visibility 0s linear 0.45s;
}

.sa-quiz-overlay--visible {
    background: rgba(8, 10, 18, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.45s ease;
}

.sa-quiz-modal {
    --sa-cta-color: #ff4458;
    width: 100%;
    max-width: 400px;
    max-height: min(90vh, 680px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 22px;
    background:
        radial-gradient(120% 80% at 10% 0%, color-mix(in srgb, var(--sa-cta-color) 22%, transparent), transparent 55%),
        radial-gradient(100% 70% at 100% 100%, rgba(88, 86, 214, 0.14), transparent 50%),
        #12141c;
    color: #f5f5f7;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    transform: translateY(28px) scale(0.96);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--sa-cta-color) rgba(255, 255, 255, 0.08);
}

.sa-quiz-modal::-webkit-scrollbar {
    width: 8px;
}

.sa-quiz-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    margin: 10px 0;
}

.sa-quiz-modal::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--sa-cta-color), color-mix(in srgb, var(--sa-cta-color) 70%, #fff));
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.sa-quiz-modal::-webkit-scrollbar-thumb:hover {
    background: var(--sa-cta-color);
    background-clip: padding-box;
}

.sa-quiz-overlay--visible .sa-quiz-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.sa-quiz-phase {
    padding: 26px 22px 20px;
    box-sizing: border-box;
}

.sa-quiz-phase--hidden { display: none; }

.sa-quiz-fade-in {
    animation: saQuizFadeIn 0.3s ease forwards;
}

.sa-quiz-fade-out {
    animation: saQuizFadeOut 0.24s ease forwards;
}

@keyframes saQuizFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes saQuizFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

.sa-quiz-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 16px;
}

.sa-quiz-bar span {
    display: block;
    height: 100%;
    width: 8%;
    background: linear-gradient(90deg, var(--sa-cta-color), color-mix(in srgb, var(--sa-cta-color) 70%, #ffb087));
    border-radius: 99px;
    transition: width 0.35s ease;
}

.sa-quiz-progress {
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 14px;
}

.sa-quiz-question {
    font-size: clamp(20px, 4.5vw, 24px);
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.sa-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.sa-quiz-option {
    display: block;
    width: 100%;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.sa-quiz-option:hover {
    border-color: color-mix(in srgb, var(--sa-cta-color) 70%, transparent);
    background: color-mix(in srgb, var(--sa-cta-color) 16%, transparent);
    transform: translateY(-1px);
}

.sa-quiz-option--selected {
    border-color: var(--sa-cta-color) !important;
    background: linear-gradient(135deg, color-mix(in srgb, var(--sa-cta-color) 40%, transparent), color-mix(in srgb, var(--sa-cta-color) 22%, transparent)) !important;
}

.sa-quiz-option:disabled { cursor: default; }

.sa-quiz-online {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #7dffa3;
    font-weight: 600;
    margin: 0 0 10px;
}

.sa-quiz-online-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ddc84;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(61, 220, 132, 0.75);
    animation: saQuizOnlineBlink 1.1s ease-in-out infinite;
}

.sa-quiz-online-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(61, 220, 132, 0.7);
    animation: saQuizOnlineRipple 1.1s ease-out infinite;
}

.sa-quiz-online-label {
    transition: opacity 0.2s ease;
}

.sa-quiz-online-label.is-updating {
    opacity: 0.55;
}

@keyframes saQuizOnlineBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    45% { opacity: 1; transform: scale(1.05); }
    50% { opacity: 0.2; transform: scale(0.85); }
    55% { opacity: 1; transform: scale(1.15); }
}

@keyframes saQuizOnlineRipple {
    0% { transform: scale(0.7); opacity: 0.8; }
    100% { transform: scale(1.9); opacity: 0; }
}

.sa-quiz-footer-text {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    margin: 8px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Searching — coração moderno pulsando */
.sa-quiz-search {
    text-align: center;
    padding: 34px 12px 22px;
}

.sa-quiz-search-visual {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-quiz-search-glow {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--sa-cta-color) 45%, transparent), transparent 70%);
    filter: blur(10px);
    animation: saQuizHeartGlow 1.1s ease-in-out infinite;
    pointer-events: none;
}

.sa-quiz-search-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--sa-cta-color) 55%, transparent);
    pointer-events: none;
    animation: saQuizHeartRing 1.8s ease-out infinite;
}

.sa-quiz-search-ring--b {
    animation-delay: 0.9s;
    border-color: color-mix(in srgb, var(--sa-cta-color) 35%, rgba(255, 255, 255, 0.2));
}

.sa-quiz-search-heart {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    color: var(--sa-cta-color);
    filter: drop-shadow(0 8px 22px color-mix(in srgb, var(--sa-cta-color) 55%, transparent));
    animation: saQuizHeartPulse 1.1s ease-in-out infinite;
}

.sa-quiz-search-heart svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes saQuizHeartPulse {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.14); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    70% { transform: scale(1); }
}

@keyframes saQuizHeartRing {
    0% {
        transform: scale(0.55);
        opacity: 0.75;
    }
    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

@keyframes saQuizHeartGlow {
    0%, 100% { opacity: 0.45; transform: scale(0.9); }
    50% { opacity: 0.95; transform: scale(1.12); }
}

.sa-quiz-search-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #fff;
    letter-spacing: -0.02em;
    animation: saQuizTextGlow 1.8s ease-in-out infinite;
}

.sa-quiz-search-sub {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}

.sa-quiz-search-bar {
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sa-quiz-search-bar span {
    display: block;
    height: 100%;
    width: 42%;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, var(--sa-cta-color), color-mix(in srgb, var(--sa-cta-color) 70%, #fff), transparent);
    animation: saQuizLoad 1.35s ease-in-out infinite;
}

@keyframes saQuizLoad {
    0% { transform: translateX(-130%); }
    100% { transform: translateX(280%); }
}

@keyframes saQuizTextGlow {
    0%, 100% { opacity: 0.88; }
    50% { opacity: 1; text-shadow: 0 0 18px color-mix(in srgb, var(--sa-cta-color) 40%, transparent); }
}

/* Match */
#sa-quiz-phase-match {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 18px 22px;
    box-sizing: border-box;
}

#sa-quiz-phase-match.sa-quiz-phase--hidden {
    display: none;
}

.sa-quiz-match-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sa-cta-color), color-mix(in srgb, var(--sa-cta-color) 70%, #ffb087));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.sa-quiz-match-badge--pop {
    animation: saQuizBadgePop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes saQuizBadgePop {
    0% { transform: scale(0.85); opacity: 0.5; }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.sa-quiz-match-hero {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 12px;
}

.sa-quiz-hero-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 220px;
    width: 100%;
    margin: 0 auto;
    background: #1c1f2b;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.sa-quiz-hero-card--swap {
    animation: saQuizHeroSwap 0.4s ease;
}

@keyframes saQuizHeroSwap {
    0% { opacity: 0; transform: scale(0.94) translateY(8px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.sa-quiz-hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sa-quiz-hero-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 14px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    text-align: left;
}

.sa-quiz-hero-meta strong {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.sa-quiz-hero-meta span {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.sa-quiz-match-title {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 6px;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    width: 100%;
}

.sa-quiz-match-sub {
    text-align: center;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.4;
    width: 100%;
}

.sa-quiz-others-label {
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 8px;
    width: 100%;
}

.sa-quiz-others {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 0 14px;
    width: 100%;
}

.sa-quiz-other-card {
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: #1c1f2b;
    position: relative;
    aspect-ratio: 3 / 4;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.sa-quiz-other-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--sa-cta-color) 55%, transparent);
}

.sa-quiz-other-card--active {
    border-color: var(--sa-cta-color);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--sa-cta-color) 35%, transparent);
    transform: translateY(-2px);
}

.sa-quiz-other-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.sa-quiz-other-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 5px 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
    pointer-events: none;
}

.sa-quiz-other-meta strong {
    font-size: 10px;
    color: #fff;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sa-quiz-other-meta span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
}

.sa-quiz-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 17px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    color: #fff !important;
    text-decoration: none !important;
    letter-spacing: 0.03em;
    text-transform: none;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
    transition: filter 0.2s ease, transform 0.2s ease;
    animation: saQuizCtaPulse 1.5s ease-in-out infinite;
}

.sa-quiz-cta-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    flex-shrink: 0;
    animation: saQuizHeartBeat 1.2s ease-in-out infinite;
}

.sa-quiz-cta-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

@keyframes saQuizHeartBeat {
    0%, 100% { transform: scale(1); }
    20% { transform: scale(1.18); }
    40% { transform: scale(1); }
    55% { transform: scale(1.12); }
    70% { transform: scale(1); }
}

.sa-quiz-cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--sa-cta-color) 55%, transparent), transparent 70%);
    z-index: -1;
    animation: saQuizCtaHalo 1.5s ease-in-out infinite;
    pointer-events: none;
}

.sa-quiz-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: translateX(-140%) skewX(-18deg);
    animation: saQuizCtaShimmer 2.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.sa-quiz-cta span {
    position: relative;
    z-index: 2;
    color: #fff !important;
}

.sa-quiz-cta--pulse {
    animation: saQuizCtaPulse 1.5s ease-in-out infinite, saQuizCtaPop 0.45s ease;
}

.sa-quiz-cta:hover {
    filter: brightness(1.12) saturate(1.08);
    transform: translateY(-2px) scale(1.03);
    animation-play-state: paused;
    color: #fff !important;
    text-decoration: none !important;
}

.sa-quiz-cta:hover::before,
.sa-quiz-cta:hover::after {
    animation-play-state: paused;
}

@keyframes saQuizCtaPulse {
    0%, 100% {
        box-shadow:
            0 6px 22px color-mix(in srgb, var(--sa-cta-color) 45%, transparent),
            0 0 0 0 color-mix(in srgb, var(--sa-cta-color) 0%, transparent);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 10px 34px color-mix(in srgb, var(--sa-cta-color) 65%, transparent),
            0 0 22px color-mix(in srgb, var(--sa-cta-color) 45%, transparent);
        transform: scale(1.035);
    }
}

@keyframes saQuizCtaHalo {
    0%, 100% { opacity: 0.35; transform: scale(0.98); }
    50% { opacity: 0.9; transform: scale(1.06); }
}

@keyframes saQuizCtaShimmer {
    0% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
    15% { opacity: 1; }
    45% { opacity: 1; }
    100% { transform: translateX(260%) skewX(-18deg); opacity: 0; }
}

@keyframes saQuizCtaPop {
    0% { transform: scale(0.95); }
    60% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.sa-quiz-cta-note {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 10px 0 0;
    width: 100%;
    line-height: 1.35;
}

@media (max-width: 520px) {
    .sa-quiz-modal {
        border-radius: 18px;
        max-width: 100%;
    }

    .sa-quiz-phase {
        padding: 18px 14px 16px;
    }

    #sa-quiz-phase-match {
        padding: 18px 14px 20px;
    }

    .sa-quiz-match-hero {
        max-width: 240px;
    }

    .sa-quiz-hero-card {
        max-height: 190px;
    }

    .sa-quiz-match-title {
        font-size: 18px;
    }

    .sa-quiz-others {
        gap: 6px;
    }
}
