#qrw-overlay {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: qrw-fadeIn 0.5s forwards;
}

@keyframes qrw-fadeIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes qrw-fadeOut {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

#qrw-overlay.qrw-fade-out {
    animation: qrw-fadeOut 0.3s ease-out forwards;
}

#qrw-modal {
    background-color: var(--qrw-bg-color, #ffffff);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 420px;
    max-height: 70vh;
    overflow: hidden;
    position: relative;
    animation: qrw-slideUp 0.4s ease-out;
}

@keyframes qrw-slideUp {
    0%   { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.qrw-progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #eee;
}

.qrw-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--qrw-primary-color, #6B21A8);
    border-radius: 0 3px 3px 0;
    transition: width 0.4s ease;
}

.qrw-content {
    padding: 30px 24px;
    text-align: center;
}

.qrw-question {
    font-size: 20px;
    font-weight: 600;
    color: var(--qrw-text-color, #333333);
    margin-bottom: 24px;
    line-height: 1.4;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrw-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qrw-option {
    background-color: var(--qrw-primary-color, #6B21A8);
    color: var(--qrw-secondary-color, #FFFFFF);
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    border: none;
    width: 100%;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}

.qrw-option:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

.qrw-option:active {
    transform: translateY(1px);
}

.qrw-loading-screen {
    display: none;
    padding: 40px 24px 60px;
    text-align: center;
}

.qrw-loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.qrw-loading-dots span {
    width: 10px;
    height: 10px;
    background-color: var(--qrw-primary-color, #6B21A8);
    border-radius: 50%;
    animation: qrw-bounce 1.2s infinite ease-in-out;
}

.qrw-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.qrw-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes qrw-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.qrw-loading-text {
    font-size: 18px;
    color: var(--qrw-primary-color, #6B21A8);
    animation: qrw-pulse 1.5s infinite;
}

@keyframes qrw-pulse {
    0%   { opacity: 0.3; }
    50%  { opacity: 1; }
    100% { opacity: 0.3; }
}

.qrw-result-screen {
    display: none;
    padding: 30px 24px;
    text-align: center;
}

.qrw-result-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--qrw-text-color, #333333);
    margin-bottom: 12px;
    line-height: 1.3;
}

.qrw-result-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.qrw-reward-button {
    background-color: var(--qrw-primary-color, #6B21A8);
    color: var(--qrw-secondary-color, #FFFFFF);
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    border: none;
    width: 100%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

.qrw-reward-button:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

.qrw-reward-button:active {
    transform: translateY(1px);
}

.qrw-reward-button svg {
    flex-shrink: 0;
}

.qrw-button-subtext {
    font-size: 13px;
    color: #999;
    margin-top: 12px;
}

#qrw-spinner-overlay {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: qrw-fadeIn 0.5s forwards;
}

#qrw-spinner-overlay.qrw-fade-out {
    animation: qrw-fadeOut 0.3s ease-out forwards;
}

.qrw-spinner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qrw-spinner-svg {
    width: 7rem;
    height: 7rem;
    animation: qrw-spin 1s linear infinite;
}

.qrw-spinner-svg .qrw-spinner-track {
    opacity: 0.25;
}

.qrw-spinner-svg .qrw-spinner-fill {
    opacity: 0.75;
}

@keyframes qrw-spin {
    to { transform: rotate(360deg); }
}

.qrw-spinner-text {
    font-family: Verdana, Geneva, sans-serif;
    color: transparent;
    padding: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    font-size: 1.15rem;
    animation: qrw-spinnerTextIn 1s ease-in-out forwards, qrw-pulse 2s ease-in-out infinite 1s;
}

@keyframes qrw-spinnerTextIn {
    0%   { color: transparent; }
    100% { color: var(--qrw-text-color, #333333); }
}

body.qrw-page-blocked {
    overflow: hidden !important;
}

@media (max-width: 480px) {
    #qrw-modal {
        max-width: 95%;
        max-height: 75vh;
    }

    .qrw-content {
        padding: 20px 16px;
    }

    .qrw-question {
        font-size: 18px;
        min-height: 48px;
    }

    .qrw-option {
        padding: 12px 16px;
        font-size: 14px;
    }

    .qrw-result-title {
        font-size: 20px;
    }
}
