:root {
    --bg-dark: #0f0c11;
    --bg-gradient: linear-gradient(135deg, #181216 0%, #291b24 100%);
    --card-bg: rgba(35, 25, 32, 0.45);
    --card-border: rgba(226, 169, 137, 0.15);
    --primary: #E2A989;
    --primary-dark: #C87A65;
    --text-main: #FDF9F6;
    --text-muted: #B3A4AA;
    --accent: #E8B49B;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    background-color: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow {
    position: absolute;
    filter: blur(120px);
    opacity: 0.5;
    border-radius: 50%;
    animation: drift 15s ease-in-out infinite alternate;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(226, 169, 137, 0.15) 0%, rgba(200, 122, 101, 0) 70%);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(162, 90, 115, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 600px;
    z-index: 10;
}

.screen {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideUpFade 0.6s ease forwards;
}

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

/* Glassmorphism Cards */
.card.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--glass-shadow);
}

/* Start Screen */
#start-screen {
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(226, 169, 137, 0.15);
    border: 1px solid rgba(226, 169, 137, 0.3);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.badge.success {
    background: rgba(144, 238, 144, 0.15);
    border-color: rgba(144, 238, 144, 0.3);
    color: #90EE90;
}

h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 400;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.2);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 122, 101, 0.3);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(226, 169, 137, 0.4);
    filter: brightness(1.1);
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(226, 169, 137, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(226, 169, 137, 0); }
    100% { box-shadow: 0 0 0 0 rgba(226, 169, 137, 0); }
}

/* Quiz Screen */
.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.progress-bar {
    flex-grow: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 20%;
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--primary);
}

.progress-text {
    font-weight: 600;
    color: var(--primary);
}

.question-text {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 30px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    color: var(--text-main);
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-btn:hover {
    background: rgba(226, 169, 137, 0.1);
    border-color: var(--primary);
    transform: translateX(5px);
}

.option-btn:active {
    transform: scale(0.98);
}

/* Loading Screen */
.center-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader {
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
}

.loader svg {
    animation: rotate 2s linear infinite;
    width: 100%;
    height: 100%;
}

.loader circle {
    stroke: var(--primary);
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
    stroke-linecap: round;
}

@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
    0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 200; stroke-dashoffset: -35px; }
    100% { stroke-dasharray: 90, 200; stroke-dashoffset: -124px; }
}

.loading-steps {
    list-style: none;
    margin-top: 20px;
    text-align: left;
}

.loading-step {
    color: var(--text-muted);
    margin-bottom: 10px;
    opacity: 0.4;
    transition: opacity 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-step.active {
    opacity: 1;
    color: var(--primary);
}

.loading-step.active::before {
    content: "✓";
    display: inline-block;
}

/* Result Screen */
.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-header h2 {
    font-size: 1.8rem;
    margin-top: 15px;
    line-height: 1.3;
}

.insight-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255,255,255,0.03);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 25px;
}

.insight-icon {
    font-size: 1.5rem;
}

.insight-box p {
    margin: 0;
    font-size: 1rem;
}

.dark-glass {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(226, 169, 137, 0.2);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.dark-glass h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.dark-glass p {
    margin: 0;
}

.highlight-text {
    color: var(--primary);
    font-size: 1.1rem;
}

.cta-container {
    text-align: center;
    margin-top: 30px;
}

.cta-container .btn {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scarcity-text {
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .card.glass {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .question-text {
        font-size: 1.3rem;
    }
    
    .features {
        flex-direction: column;
        gap: 10px;
    }
}
