/* ===================================
   Deep Compass Test - Conversational Interface
   Kokology-style Projective Psychological Test
   ================================== */

:root {
    /* Mithaq Brand Colors */
    --bg-deep: #1A2B56;
    --bg-dark: #243557;
    --bg-card: rgba(36, 53, 87, 0.8);

    /* Mithaq Palette */
    --color-pink: #F2D1D1;
    --color-pink-light: #F8E5E5;
    --color-mint: #A8E6CF;
    --color-mint-dark: #7DD3B0;

    /* Text Colors */
    --text-primary: #F5F5F5;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;

    /* Functional */
    --success: #4CAF50;
    --error: #E57373;

    /* Effects */
    --glow-primary: 0 0 20px rgba(242, 209, 209, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Typography */
    --font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===================================
   Intro Screen
   ================================== */

.intro-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    animation: fadeIn 0.6s ease;
}

.intro-screen.intro-exit {
    animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    max-width: 420px;
}

.intro-orb {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 209, 209, 0.3) 0%, transparent 70%);
    animation: orbPulse 3s ease-in-out infinite;
}

.orb-emoji {
    font-size: 4rem;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

.intro-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.intro-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.intro-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.intro-badge {
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.intro-cta {
    padding: 1.1rem 3rem;
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-mint) 100%);
    color: var(--bg-deep);
    font-family: var(--font-family);
    font-size: 1.25rem;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: ctaPulse 2s ease-in-out infinite;
}

.intro-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(242, 209, 209, 0.4);
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(242, 209, 209, 0.2);
    }

    50% {
        box-shadow: 0 8px 35px rgba(242, 209, 209, 0.5);
    }
}

.intro-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===================================
   Progress Bar
   ================================== */

.progress-strip {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prog-dots {
    display: flex;
    justify-content: space-between;
    direction: ltr;
}

.prog-dot {
    font-size: 1.1rem;
    opacity: 0.3;
    transition: all 0.4s ease;
    filter: grayscale(100%);
}

.prog-dot.done {
    opacity: 1;
    filter: grayscale(0%);
    animation: dotPop 0.4s ease;
}

@keyframes dotPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.prog-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.prog-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-mint) 0%, var(--color-pink) 100%);
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* ===================================
   Analysis Animation Enhancement
   ================================== */

.analyzing-emoji-big {
    font-size: 3rem;
    animation: float 2s ease-in-out infinite;
}

.analysis-steps {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.analysis-step {
    font-size: 1.3rem;
    opacity: 0.2;
    transition: all 0.4s ease;
}

.analysis-step.active {
    opacity: 1;
    animation: dotPop 0.4s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(180deg, var(--bg-deep) 0%, #0f1a35 100%);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
    min-height: 100vh;
    transition: background 1.5s ease;
}

/* Generative Atmosphere Transitions */
body.atmosphere-night {
    background: linear-gradient(180deg, #0a0f1f 0%, #1a1f3a 50%, #0f1a35 100%);
}

body.atmosphere-day {
    background: linear-gradient(180deg, #2a4a7a 0%, #4a7ab0 30%, #1A2B56 100%);
}

body.atmosphere-storm {
    background: linear-gradient(180deg, #1a1a2e 0%, #3d3d5c 50%, #16213e 100%);
}

/* ===================================
   Stars Background
   ================================== */

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ===================================
   Main App Container
   ================================== */

.app {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* ===================================
   Chat Container
   ================================== */

.chat-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* ===================================
   Interview Container (Chat Style)
   ================================== */

.interview-container {
    width: 100%;
    max-width: 600px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.interview-container .atmosphere-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    transition: background 1.5s ease;
}

.interview-container.night .atmosphere-overlay {
    background: radial-gradient(ellipse at top, rgba(100, 149, 237, 0.1) 0%, transparent 50%);
}

.interview-container.day .atmosphere-overlay {
    background: radial-gradient(ellipse at top, rgba(255, 223, 100, 0.15) 0%, transparent 50%);
}

.interview-container.storm .atmosphere-overlay {
    background: linear-gradient(180deg, rgba(100, 100, 100, 0.2) 0%, transparent 30%);
    animation: stormFlicker 5s ease-in-out infinite;
}

@keyframes stormFlicker {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }

    75% {
        opacity: 0.2;
    }
}

/* Chat Header */
.chat-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.compass-symbol {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.chat-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-pink);
    margin: 0 0 0.25rem;
}

.chat-header .subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

/* Chat Bubbles */
.chat-bubble {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 85%;
}

.chat-bubble.assistant {
    align-self: flex-start;
}

.chat-bubble.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-bubble .avatar {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 209, 209, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
}

.bubble-content {
    background: rgba(36, 53, 87, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem 1.25rem;
}

.chat-bubble.user .bubble-content {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-pink-light) 100%);
    color: var(--bg-deep);
    border: none;
}

.bubble-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.25rem 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--color-mint);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Input Area */
.chat-input-area {
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(26, 43, 86, 0.9);
    position: relative;
    z-index: 1;
}

.chat-textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    resize: none;
    transition: border-color 0.3s ease;
}

.chat-textarea:focus {
    outline: none;
    border-color: var(--color-pink);
}

.chat-textarea::placeholder {
    color: var(--text-muted);
}

.send-button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-mint-dark) 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--bg-deep);
}

.send-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(168, 230, 207, 0.4);
}

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

/* Analyzing State */
.analyzing-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.orbit-animation {
    width: 100px;
    height: 100px;
}

.orbit {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(242, 209, 209, 0.2);
    border-radius: 50%;
    position: relative;
    animation: spin 2s linear infinite;
}

.planet {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--color-pink);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(242, 209, 209, 0.6);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.analyzing-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-pink);
}

.analyzing-subtext {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Success State */
.success-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    padding: 2rem;
}

.success-state .checkmark {
    width: 80px;
    height: 80px;
    background: var(--color-mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: scaleIn 0.5s ease;
}

.success-state h2 {
    font-size: 1.5rem;
    color: var(--color-mint);
}

.success-state p {
    color: var(--text-secondary);
}

/* ===================================
   Mystical Orb
   ================================== */

.mystical-orb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--color-pink-light), var(--color-pink), transparent);
    box-shadow:
        0 0 60px rgba(242, 209, 209, 0.4),
        0 0 100px rgba(242, 209, 209, 0.2);
    animation: orbPulse 3s ease-in-out infinite, orbFloat 4s ease-in-out infinite;
}

.mystical-orb.success {
    background: radial-gradient(circle at 30% 30%, var(--color-mint), #7DD3B0, transparent);
    box-shadow:
        0 0 60px rgba(168, 230, 207, 0.4),
        0 0 100px rgba(168, 230, 207, 0.2);
}

@keyframes orbPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===================================
   Message Bubbles
   ================================== */

.message-bubble {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    text-align: center;
    max-width: 100%;
}

.message-bubble.system {
    background: rgba(242, 209, 209, 0.1);
    border: 1px solid rgba(242, 209, 209, 0.2);
}

.message-bubble.user {
    background: rgba(168, 230, 207, 0.15);
    border: 1px solid rgba(168, 230, 207, 0.3);
    margin-right: 20%;
    text-align: right;
}

.message-bubble.small {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.bubble-icon {
    margin-left: 0.5rem;
}

.message-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.message-subtext,
.message-question {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.message-question {
    color: var(--color-pink-light);
    margin-top: 0.75rem;
}

/* ===================================
   Progress Dots
   ================================== */

.progress-dots {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-pink);
    box-shadow: 0 0 10px rgba(242, 209, 209, 0.5);
}

.dot.completed {
    background: var(--color-mint);
}

/* ===================================
   Messages Area
   ================================== */

.messages-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-height: 40vh;
    overflow-y: auto;
    padding: 1rem;
}

/* ===================================
   Input Area
   ================================== */

.input-area {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    resize: none;
    transition: all 0.3s ease;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-input:focus {
    outline: none;
    border-color: var(--color-pink);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(242, 209, 209, 0.2);
}

.send-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-mint) 100%);
    color: var(--bg-deep);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(242, 209, 209, 0.4);
}

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

.input-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    width: 100%;
}

/* ===================================
   Buttons
   ================================== */

.continue-btn,
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-mint) 100%);
    color: var(--bg-deep);
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-btn:hover,
.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(242, 209, 209, 0.3);
}

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

/* ===================================
   Phone Input
   ================================== */

/* ===================================
   Visual Quiz Interface
   ================================== */

.quiz-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    min-height: 80vh;
    justify-content: center;
}

.quiz-progress {
    text-align: center;
}

.quiz-progress-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-pink) 0%, var(--color-mint) 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.quiz-question {
    text-align: center;
    padding: 1rem 0;
}

.quiz-question-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.quiz-question-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.6;
}

.quiz-question-subtitle {
    font-size: 1.05rem;
    color: var(--color-pink-light);
    margin: 0;
}

.choices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}

.choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    color: var(--text-primary);
    min-height: 100px;
}

.choice-card:hover {
    border-color: var(--color-pink);
    background: rgba(242, 209, 209, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 209, 209, 0.15);
}

.choice-card:active {
    transform: scale(0.97);
}

.choice-card.selected {
    border-color: var(--color-mint);
    background: rgba(168, 230, 207, 0.2);
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(168, 230, 207, 0.3);
}

.choice-card.fade-out {
    opacity: 0.3;
    transform: scale(0.95);
    pointer-events: none;
}

.choice-emoji {
    font-size: 2.2rem;
}

.choice-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    color: var(--text-secondary);
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: var(--color-mint);
    box-shadow: 0 0 20px rgba(168, 230, 207, 0.2);
}

.phone-prefix {
    padding: 1rem 0.75rem 1rem 1.25rem;
    background: rgba(168, 230, 207, 0.2);
    color: var(--color-mint);
    font-weight: 600;
    font-size: 1.1rem;
}

.phone-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1.1rem;
    text-align: left;
    direction: ltr;
}

.phone-input::placeholder {
    color: var(--text-muted);
}

.phone-input:focus {
    outline: none;
}

/* Email Input */
.email-input-wrapper {
    width: 100%;
    max-width: 320px;
}

.email-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1.1rem;
    text-align: left;
    direction: ltr;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.email-input::placeholder {
    color: var(--text-muted);
}

.email-input:focus {
    outline: none;
    border-color: var(--color-mint);
    box-shadow: 0 0 20px rgba(168, 230, 207, 0.2);
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.25);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.timer-icon {
    font-size: 1.2rem;
}

.timer-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.timer-text strong {
    color: var(--color-pink);
    font-size: 1.1rem;
}

/* Lock CTA Text */
.lock-cta-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-mint);
    margin-bottom: 0.75rem;
}

.error-text {
    color: var(--error);
    font-size: 0.9rem;
    min-height: 1.5rem;
}

/* ===================================
   Success State
   ================================== */

.success-animation {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-mint) 0%, #7DD3B0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--bg-deep);
    animation: scaleIn 0.5s ease;
}

.success-text {
    color: var(--color-mint) !important;
}

/* ===================================
   Reveal Container (Partial Reveal)
   ================================== */

.reveal-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

/* Archetype Card (Public Result) */
.archetype-card {
    background: linear-gradient(135deg, rgba(242, 209, 209, 0.15) 0%, rgba(168, 230, 207, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(242, 209, 209, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.archetype-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.archetype-emoji {
    font-size: 3.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.archetype-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-pink);
    margin: 0;
}

.personality-summary {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.barnum-hook {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: right;
}

.barnum-hook .quote-icon {
    color: var(--color-mint);
    font-size: 1.5rem;
}

.barnum-hook p {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-style: italic;
    margin: 0;
    line-height: 1.7;
}

/* Traits Section (Strengths & Challenges) */
.traits-section {
    margin-top: 1.5rem;
    text-align: right;
}

.traits-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.traits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.trait-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.trait-badge.strength {
    background: rgba(168, 230, 207, 0.2);
    color: var(--color-mint);
    border: 1px solid rgba(168, 230, 207, 0.3);
}

.trait-badge.challenge {
    background: rgba(242, 209, 209, 0.15);
    color: var(--color-pink);
    border: 1px solid rgba(242, 209, 209, 0.25);
}

/* Advice Section */
.advice-section {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(168, 230, 207, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(168, 230, 207, 0.15);
}

.advice-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    text-align: right;
}

/* Locked Section (The Treasure) */
.locked-section {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.1) 0%, rgba(242, 209, 209, 0.08) 100%);
    border: 1px solid rgba(168, 230, 207, 0.15);
    border-radius: 20px;
}

/* Partner Card (Unlocked) */
.partner-card {
    background: linear-gradient(135deg, rgba(242, 209, 209, 0.15) 0%, rgba(168, 230, 207, 0.1) 100%);
    border: 1px solid rgba(242, 209, 209, 0.25);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
}

.partner-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.partner-emoji-large {
    font-size: 2.5rem;
}

.partner-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-pink);
    margin: 0;
}

.partner-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    text-align: right;
}

/* Traits Card */
.traits-card {
    background: rgba(36, 53, 87, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
}

/* WhatsApp Share Button */
.wa-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #25D366;
    color: #fff;
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wa-share-btn:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.wa-share-btn svg {
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 1rem 0;
}

.cta-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.app-link-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-mint) 100%);
    color: var(--bg-deep);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 209, 209, 0.3);
}

.locked-content {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.15) 0%, rgba(242, 209, 209, 0.1) 100%);
    padding: 2rem;
    text-align: center;
}

.locked-content.blurred {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.partner-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.partner-emoji {
    font-size: 2.5rem;
    opacity: 0.6;
}

.partner-preview h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.locked-text {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.preview-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Lock Overlay */
.lock-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.lock-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.lock-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-mint);
    margin-bottom: 0.5rem;
}

.lock-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Unlock Button */
.unlock-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-mint-dark) 100%);
    color: var(--bg-deep);
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.unlock-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 230, 207, 0.4);
}

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

.btn-icon {
    font-size: 1.2rem;
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* WhatsApp CTA */
.whatsapp-cta {
    text-align: center;
    margin: 1rem 0;
}

.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #25D366;
    color: white;
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.cta-section {
    text-align: center;
    margin-top: 1rem;
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.app-link {
    color: var(--color-pink);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.app-link:hover {
    color: var(--color-pink-light);
    text-decoration: underline;
}

/* ===================================
   Analyzing Animation
   ================================== */

.analyzing-animation {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(242, 209, 209, 0.2);
    border-radius: 50%;
    position: relative;
    animation: spin 2s linear infinite;
}

.planet {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--color-pink);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(242, 209, 209, 0.6);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===================================
   Animations
   ================================== */

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.appear {
    opacity: 0;
    transform: translateY(20px);
    animation: appear 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===================================
   Footer
   ================================== */

.footer {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo img {
    height: 30px;
    opacity: 0.7;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===================================
   Responsive
   ================================== */

@media (max-width: 600px) {
    .chat-container {
        padding: 0 0.5rem;
    }

    .message-bubble {
        padding: 1.25rem 1.5rem;
    }

    .message-text {
        font-size: 1.15rem;
    }

    .mystical-orb {
        width: 90px;
        height: 90px;
    }

    /* Reveal Container Mobile Fixes */
    .reveal-container {
        padding: 0.5rem;
        gap: 1rem;
        max-width: 100%;
    }

    .archetype-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .archetype-emoji {
        font-size: 2.5rem;
    }

    .archetype-name {
        font-size: 1.3rem;
    }

    .archetype-description {
        font-size: 0.95rem;
    }

    .locked-section {
        border-radius: 16px;
    }

    .quiz-container {
        padding: 0.5rem;
        gap: 1rem;
        min-height: 70vh;
    }

    .quiz-question-title {
        font-size: 1.2rem;
    }

    .quiz-question-icon {
        font-size: 2.5rem;
    }

    .choices-grid {
        gap: 0.5rem;
    }

    .choice-card {
        padding: 1rem 0.5rem;
        min-height: 85px;
    }

    .choice-emoji {
        font-size: 1.8rem;
    }

    .choice-label {
        font-size: 0.8rem;
    }

    .lock-overlay {
        padding: 1.25rem;
    }

    .lock-title {
        font-size: 1.1rem;
    }

    .lock-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .phone-input-wrapper {
        max-width: 100%;
    }

    .phone-input {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .email-input-wrapper {
        max-width: 100%;
    }

    .email-input {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .countdown-timer {
        padding: 0.5rem 1rem;
    }

    .lock-cta-text {
        font-size: 0.9rem;
    }

    .unlock-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Main container scrollable fix */
main {
    min-height: 100vh;
    overflow-y: auto;
    padding-bottom: 100px;
}

/* Reveal section scrollable */
.reveal-section {
    min-height: 100vh;
    overflow-y: auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}