:root {
    --bg-color-1: #0B0415;
    --bg-color-2: #1A0B2E;
    --primary-glow: #8A2BE2;
    --gold: #D4AF37;
    --gold-glow: #F7B733;
    --text-main: #F4F4F9;
    --text-muted: #AFA8BA;
    --glass-bg: rgba(26, 11, 46, 0.6);
    --glass-border: rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-color-1), var(--bg-color-2));
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, .cinzel {
    font-family: 'Cinzel', serif;
}

/* Background Effects */
.bg-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.8), rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 150px 150px;
    opacity: 0.3;
    z-index: -2;
    animation: twinkle 15s linear infinite;
}

.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(138,43,226,0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
}

@keyframes twinkle {
    0% { transform: translateY(0); }
    100% { transform: translateY(-150px); }
}

/* Main Container */
#app-container {
    width: 90%;
    max-width: 600px;
    min-height: 400px;
    padding: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Common UI Elements */
.title {
    font-size: 1.8rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(90deg, #D4AF37, #F7B733);
    color: #0B0415;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 183, 51, 0.6);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Options / Questions List */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid transparent;
    padding: 1.2rem;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.option-btn span.emoji {
    margin-right: 15px;
    font-size: 1.2rem;
}

.option-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    border-left: 3px solid var(--gold);
    transform: translateX(5px);
}

/* Quiz Progress Bar */
.quiz-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--primary-glow));
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px var(--gold);
}

/* Progress / Loading Screen */
.loading-container {
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--primary-glow));
    border-radius: 10px;
    box-shadow: 0 0 10px var(--gold);
}

.loading-text {
    margin-top: 1rem;
    font-style: italic;
    color: var(--gold);
}

/* Tarot Cards Selection */
.cards-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 2rem;
    justify-items: center;
}

.tarot-card {
    width: 80px;
    height: 130px;
    background: linear-gradient(135deg, #2a1b38, #1a0b2e);
    border: 1px solid var(--gold);
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.05) 10px, rgba(212, 175, 55, 0.05) 20px);
}

.tarot-card::before {
    content: '✨';
    font-size: 1.5rem;
    opacity: 0.2;
}

.tarot-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    border-color: var(--gold-glow);
}

.tarot-card.selected {
    transform: translateY(-15px) scale(1.1);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.8);
    border-color: var(--primary-glow);
    z-index: 5;
}

.tarot-card.selected::before {
    display: none;
}

.card-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--gold);
    color: var(--bg-color-1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 10;
}

.card-selection-info {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gold);
    font-weight: bold;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sales Page & Video Player */
.video-container {
    width: 100%;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 12px;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}


.video-progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 0.8rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.video-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-glow));
    box-shadow: 0 0 10px var(--gold-glow);
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* Estado inativo para as cartas do Passo 9 até que o vídeo termine */
.cards-inactive {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(80%);
    transition: all 0.5s ease;
}

/* Quando as cartas são ativadas */
.cards-active {
    opacity: 1 !important;
    pointer-events: auto !important;
    filter: grayscale(0%) !important;
}

/* Step 1 Redesign */
.badge-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge .dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    border-radius: 50%;
    display: inline-block;
}

.video-loop-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-loop-container video {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    gap: 15px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    text-transform: lowercase;
    line-height: 1.2;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 480px) {
    #app-container {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .tarot-card {
        width: 65px;
        height: 105px;
    }
}
