﻿:root {
    --bg-black: #000;
    --card-bg: rgba(11, 12, 16, 0.82);
    --card-border: rgba(255, 255, 255, 0.12);
    --text-main: #f8fafc;
    --text-muted: #d1d5db;
    --green: #15c05d;
    --green-hover: #0fa54f;
    --green-shadow: rgba(21, 192, 93, 0.4);
    --danger: #ff6b6b;
}

html {
    background-color: var(--bg-black);
}

body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow: hidden auto;
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: "Barlow Condensed", "Segoe UI", sans-serif;
}

h1,
h2 {
    font-family: "Orbitron", "Barlow Condensed", sans-serif;
}

.panel-badge-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.icon-local {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.icon-telegram {
    width: 30px;
    height: 30px;
}

.icon-link-telegram {
    width: 18px;
    height: 18px;
}

.icon-bs {
    font-size: 1.2rem;
    color: #9df8c4;
}

.title-icon {
    margin-right: 8px;
    color: #98f0bf;
    font-size: 1.05em;
    vertical-align: middle;
}

.wallpaper {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.6s ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.backdrop {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.15), transparent 45%),
        linear-gradient(160deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.75));
    z-index: 1;
}

.page-blur-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    backdrop-filter: blur(0);
    background: rgba(6, 8, 14, 0);
    transition: opacity 0.35s ease, backdrop-filter 0.35s ease, background-color 0.35s ease;
}

.page-blur-overlay.is-active {
    opacity: 1;
    backdrop-filter: blur(4px);
    background: rgba(6, 8, 14, 0.12);
}

.app {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.panel {
    width: 90%;
    max-width: 430px;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    animation: rise 0.35s ease-out;
    text-align: center;
}

.panel-loading {
    width: auto;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.is-hidden {
    display: none;
}

@keyframes stepEnter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes stepLeave {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
}

.step-entering {
    animation: stepEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.step-leaving {
    animation: stepLeave 0.28s ease-in forwards;
}

h1 {
    margin: 0 0 12px;
    font-size: 1.45rem;
    letter-spacing: 0.04em;
}

.subtitle {
    margin: 0 0 24px;
    color: var(--text-muted);
    line-height: 1.45;
}

.subtitle-quiz {
    color: #96f7bd;
}

.input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 12px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-size: 0.98rem;
    outline: none;
    margin-bottom: 10px;
}

.input-wrap {
    position: relative;
    margin: 8px 0 16px;
}

.input-wrap .input {
    margin-bottom: 0;
    padding-left: 42px;
}

.input-logo {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
}

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.input-with-icon {
    padding-left: 38px;
}

.input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
    border-style: dashed;
}

.input:disabled::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

@keyframes inputShake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-7px); }
    40%  { transform: translateX(7px); }
    60%  { transform: translateX(-5px); }
    80%  { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.input-shake {
    animation: inputShake 0.4s ease;
}

.pix-locked-modal {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: stepEnter 0.2s ease forwards;
}

.pix-locked-modal.is-hidden {
    display: none;
}

.pix-locked-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 26px 22px 20px;
    max-width: 280px;
    width: 85%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: stepEnter 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pix-locked-text {
    color: #dfe7ff;
    font-size: 0.93rem;
    line-height: 1.55;
    margin: 0;
}

.pix-locked-btn {
    background: rgba(21, 192, 93, 0.85);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 11px 0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    letter-spacing: 0.03em;
}

.input-wrap:has(#pix-input:disabled) .input-logo {
    opacity: 0.4;
}

.pix-overlay {
    display: none;
    position: absolute;
    inset: 0;
    cursor: pointer;
    z-index: 1;
}

.input-wrap:has(#pix-input:disabled) .pix-overlay {
    display: block;
}

.input:focus {
    border-color: rgba(21, 192, 93, 0.75);
    box-shadow: 0 0 0 3px rgba(21, 192, 93, 0.2);
}

.error {
    min-height: 20px;
    margin: 0 0 8px;
    color: var(--danger);
    font-size: 0.9rem;
}

.button-main {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 12px;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--green);
    box-shadow: 0 14px 30px -14px var(--green-shadow);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button-main:hover {
    background: var(--green-hover);
    transform: translateY(-1px);
}

.button-main:active {
    transform: translateY(0);
}

.button-main:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    background: #5e6670;
    transform: none;
}

.button-main:disabled:hover {
    background: #5e6670;
    transform: none;
}

.button-back {
    margin-top: 12px;
    border: none;
    padding: 0;
    background: transparent;
    color: #fff;
    font-size: 0.92rem;
    cursor: pointer;
    text-underline-offset: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.button-icon {
    font-size: 0.95em;
}

.button-main-right {
    justify-content: space-between;
    padding-left: 16px;
    padding-right: 16px;
}

            #btn-cadastro {
                justify-content: center;
            }

            .button-check-right {
                justify-content: space-between;
                padding-left: 16px;
                padding-right: 16px;
            }

.is-pulsing {
    animation: pulseGlow 1.2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 14px 30px -14px var(--green-shadow);
    }

    50% {
        box-shadow:
            0 14px 30px -12px rgba(21, 192, 93, 0.55),
            0 0 0 6px rgba(21, 192, 93, 0.15);
    }

    100% {
        box-shadow: 0 14px 30px -14px var(--green-shadow);
    }
}

.quiz-progress-wrap {
    margin: 0;
    padding: 0;
    text-align: left;
}

.quiz-progress-header {
    width: 90%;
    max-width: 430px;
    margin: 0 auto 12px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.quiz-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #b9f9d4;
}

.quiz-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.quiz-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #15c05d, #56f08f);
    transition: width 0.35s ease;
}

.question-text {
    margin: 0 0 22px;
    font-size: 20px;
    line-height: 1.42;
    font-weight: bold;
}

.loading-wrap {
    display: grid;
    place-items: center;
    gap: 14px;
    min-height: 120px;
}

.status-icon {
    color: #97edbd;
    font-size: 1.35rem;
    filter: drop-shadow(0 0 8px rgba(151, 237, 189, 0.4));
}

.spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.success-title {
    font-size: 1.35rem;
    margin: 0 0 12px;
}

.success-subtitle {
    color: #dfe7ff;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 18px;
}

.step-video {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-video.is-hidden {
    display: none;
}

.story-video {
    width: 100%;
    max-width: 360px;
    max-height: 90vh;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.success-check-icon {
    font-size: 2.8rem;
    color: #4ade80;
    filter: drop-shadow(0 0 18px #4ade8099) drop-shadow(0 0 40px #4ade8055);
    animation: checkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes checkPop {
    from {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.loading-title {
    margin: 0;
}

.success-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    color: #9ae9ff;
    font-weight: 700;
    text-decoration: none;
}

.success-link:hover {
    text-decoration: none;
}

.button-telegram {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 14px 12px;
    background: linear-gradient(180deg, #2ea8ff, #137bff);
    color: #ffffff;
    cursor: pointer;
    box-shadow:
        0 14px 30px -12px rgba(46, 168, 255, 0.55),
        0 0 0 0 rgba(19, 123, 255, 0.35);
    animation: telegramPulse 1.35s ease-in-out infinite, telegramBlinkSmooth 1.2s ease-in-out infinite;
}

.button-telegram:hover {
    transform: translateY(-1px);
}

.button-telegram:active {
    transform: translateY(0);
}

@keyframes telegramPulse {
    0% {
        box-shadow:
            0 14px 30px -12px rgba(46, 168, 255, 0.55),
            0 0 0 0 rgba(19, 123, 255, 0.3);
    }

    70% {
        box-shadow:
            0 14px 30px -8px rgba(46, 168, 255, 0.7),
            0 0 0 8px rgba(19, 123, 255, 0);
    }

    100% {
        box-shadow:
            0 14px 30px -12px rgba(46, 168, 255, 0.55),
            0 0 0 0 rgba(19, 123, 255, 0);
    }
}

@keyframes telegramBlinkSmooth {
    0% {
        filter: brightness(1);
    }

    40% {
        filter: brightness(1);
    }

    70% {
        filter: brightness(1.2);
    }

    100% {
        filter: brightness(1);
    }
}

.step-final {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.step-final.is-hidden {
    display: none;
}

.step-final .panel {
    width: 90%;
    max-width: 430px;
}

.download-hint {
    color: #dfe7ff;
    font-size: 1.1rem;
    line-height: 1.35;
    text-align: center;
    margin: 0;
}

.download-link {
    border: 0;
    background: transparent;
    color: #dfe7ff;
    font-size: .9rem;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 0;
}

.download-link:hover {
    color: #ffffff;
}

.stores-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    padding: 20px;
    box-sizing: border-box;
}

.stores-modal.is-hidden {
    display: none;
}

.stores-modal-card {
    width: min(410px, 90%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(13, 17, 28, 0.96), rgba(8, 11, 20, 0.96));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    padding: 20px 18px 16px;
    position: relative;
    display: grid;
    gap: 10px;
}

.stores-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
}

.stores-title {
    margin: 4px 0 6px;
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    padding: 12px 10px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.store-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.store-btn i {
    font-size: 1.1rem;
}

.store-google {
    background: linear-gradient(180deg, #2a2f3f, #181c28);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.store-apple {
    background: linear-gradient(180deg, #2a2f3f, #181c28);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.stores-have {
    margin-top: 6px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(180deg, #2ea8ff, #137bff);
    color: #fff;
    font-weight: 700;
    padding: 11px 10px;
    cursor: pointer;
}

.wallpaper-mobile {
    background-image: url("../media/img/wallpaper-mobile.png");
    opacity: 1;
}

.wallpaper-desktop {
    background-image: url("../media/img/wallpaper-desktop.png");
    opacity: 0;
}

.bi-arrow-left-short {
    position: relative;
    top: 2px;
}

@media (min-width: 768px) {
    .wallpaper-mobile {
        opacity: 0;
    }

    .wallpaper-desktop {
        opacity: 1;
    }
}
