:root {
    --bg-color: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --primary-color: #ffd700;
    /* Gold */
    --secondary-color: #ff6b6b;
    /* Soft Red/Pink */
    --text-color: #ffffff;
    --text-secondary: #e0e0e0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --chat-bg: #efeae2;
    /* WhatsApp Light BG */
    --chat-header: #008069;
    --chat-incoming: #ffffff;
    --chat-outgoing: #d9fdd3;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

/* Utilities */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Quiz Container */
.quiz-container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-top: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
}

/* Old header styles removed to avoid conflict with new enhanced styles at bottom */

/* Options */
.options-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.option-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #d946ef 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.2rem 2rem;
    border-radius: 50px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy spring */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow:
        0 10px 20px -5px rgba(217, 70, 239, 0.4),
        0 5px 10px -5px rgba(255, 107, 107, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 0.8rem;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* Ensure full width */
}

.option-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 50px 50px 100% 100% / 20px;
    pointer-events: none;
}

.option-btn:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 15px 30px -5px rgba(217, 70, 239, 0.6),
        0 8px 15px -5px rgba(255, 107, 107, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    filter: brightness(1.05);
    background: linear-gradient(135deg, #ff8585 0%, #e879f9 100%);
}

.option-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(217, 70, 239, 0.4);
}

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

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.5s ease;
}

/* WhatsApp Simulation */
.whatsapp-container {
    width: 100%;
    max-width: 480px;
    /* Mobile width */
    height: 100vh;
    background: var(--chat-bg);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.chat-header {
    background: var(--chat-header);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #ccc;
}

.chat-info h3 {
    font-size: 1rem;
    margin: 0;
}

.chat-info span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.chat-body {
    flex: 1;
    padding: 20px 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    /* WhatsApp Dark Doodle */
    /* background-opacity is not valid, opacity is handled by the image or overlay if needed */
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.message.incoming {
    background: var(--chat-incoming);
    align-self: flex-start;
    border-top-left-radius: 0;
    color: #111b21;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.message.outgoing {
    background: var(--chat-outgoing);
    align-self: flex-end;
    border-top-right-radius: 0;
    color: #111b21;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.message-time {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.45);
    float: right;
    margin-left: 8px;
    margin-top: 4px;
}

.typing-indicator {
    background: var(--chat-incoming);
    padding: 8px 12px;
    border-radius: 15px;
    border-top-left-radius: 0;
    align-self: flex-start;
    display: flex;
    gap: 4px;
    width: fit-content;
    margin-bottom: 10px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #8696a0;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

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

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

@keyframes typing {

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

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

.chat-footer {
    padding: 10px;
    background: #f0f2f5;
    display: none;
    align-items: center;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    color: #111b21;
    font-family: inherit;
}

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

.send-btn {
    background: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
}

/* Audio Player Simulation */
.audio-player {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 260px;
    padding: 5px 0;
}

.play-btn-container {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.play-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #e9e9eb;
    /* Incoming Grey */
    color: #54656f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding-left: 4px;
    /* Optical adjustment */
    cursor: pointer;
    transition: all 0.2s;
}

.message.outgoing .play-icon {
    background: #b3cfc2;
    /* Outgoing Greenish */
    color: #0b4f43;
}

.audio-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.audio-progress {
    width: 100%;
    height: 20px;
    /* Taller for waveform */
    background: transparent;
    position: relative;
    overflow: hidden;
    /* Empty waveform (Gray bars) */
    background-image: repeating-linear-gradient(90deg, #d1d1d6 0, #d1d1d6 2px, transparent 2px, transparent 4px);
}

.message.outgoing .audio-progress {
    /* Outgoing empty waveform (Faint Green bars) */
    background-image: repeating-linear-gradient(90deg, rgba(11, 79, 67, 0.3) 0, rgba(11, 79, 67, 0.3) 2px, transparent 2px, transparent 4px);
    background-color: transparent;
}

.audio-bar {
    height: 100%;
    width: 0%;
    transition: width 0.1s linear;
    position: absolute;
    top: 0;
    left: 0;
    /* Filled waveform (Dark Grey/Blue bars) */
    background-image: repeating-linear-gradient(90deg, #54656f 0, #54656f 2px, transparent 2px, transparent 4px);
    background-color: transparent;
}

.message.outgoing .audio-bar {
    /* Outgoing filled waveform (Dark Green bars) */
    background-image: repeating-linear-gradient(90deg, #0b4f43 0, #0b4f43 2px, transparent 2px, transparent 4px);
    background-color: transparent;
}

/* Remove Knob */
.audio-bar::after {
    display: none;
}

.audio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #667781;
    margin-top: 2px;
}

.message.outgoing .audio-meta {
    color: #0b4f43;
}

.audio-mic {
    font-size: 0.9rem;
    color: #34b7f1;
    /* Blue mic */
}

.message.outgoing .audio-mic {
    color: #34b7f1;
    /* Blue mic for outgoing too usually */
}

/* Image Message */
.image-message img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 5px;
}

/* CTA Button */
.cta-button {
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Final CTA on Chat */
.final-cta {
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    color: #000;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
    text-transform: uppercase;
    animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Zodiac Grid */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.zodiac-option {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.zodiac-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    border-color: var(--secondary-color);
}

.zodiac-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.zodiac-label {
    background: #d946ef;
    color: white;
    padding: 0.8rem;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .zodiac-label {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* Carousel Styles */
.carousel-container {
    width: 100%;
    margin: 1.5rem 0;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
    aspect-ratio: 4/5;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.indicator.active {
    background: #d946ef;
    transform: scale(1.2);
}

.carousel-btn {
    width: 100%;
    background: #d946ef;
    background: linear-gradient(135deg, #e879f9, #d946ef);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4);
}

/* Online Status Card */
.online-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 2rem 0;
    color: #000;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.online-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.online-info h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #000;
}

.online-status {
    color: #25D366;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    background-color: #25D366;
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.highlight-pink {
    background: #d946ef;
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
}

/* --- Advanced Animations & Micro-interactions --- */

/* Keyframes */
@keyframes elasticBounce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(0.95);
    }

    50% {
        transform: scale(1.02);
    }

    70% {
        transform: scale(0.98);
    }

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

@keyframes microVibrate {

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

    25% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(2px);
    }
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes particleExplosion {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

@keyframes checkMarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

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

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

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Enhanced Button Styles */
.option-btn,
.zodiac-option,
.carousel-btn {
    position: relative;
    overflow: hidden;
    /* For ripple */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smooth easing */
}

/* Hover Effects */
.option-btn:hover,
.zodiac-option:hover,
.carousel-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(217, 70, 239, 0.4);
    /* Pink glow */
    filter: brightness(1.1);
}

.zodiac-option:hover {
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
    /* Adjust for zodiac */
}

/* Clicked/Active State */
.btn-clicked {
    animation: elasticBounce 0.4s ease-out forwards;
    background-color: #c026d3 !important;
    /* Slightly darker pink */
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Ripple Element */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

/* Particles */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffd700;
    /* Gold sparkles */
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
}

/* Confirmation Icon */
.confirm-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    font-size: 1.5rem;
    color: white;
    opacity: 0;
}

.btn-clicked .confirm-icon {
    animation: checkMarkPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Page Transitions */
.fade-in-slide {
    animation: fadeSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Enhanced Header Styles */
.quiz-header {
    margin-bottom: 1rem;
    position: relative;
}

.quiz-header h1 {
    font-size: 1.6rem;
    /* Slightly smaller */
    line-height: 1.3;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 50%, #ffd700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.5px;
    animation: shine 3s linear infinite;
    /* Dynamic shine effect */
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
    /* Glow */
}

.quiz-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Step Question (H2) */
#step-question {
    font-size: 1.4rem !important;
    /* Override inline */
    color: white;
    font-weight: 700;
    margin-top: 0.5rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeSlideIn 0.5s ease-out;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* --- Premium Loading Screen --- */

.loader-system {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.orbit-1 {
    width: 100%;
    height: 100%;
    border-top: 2px solid #ffd700;
    border-right: 2px solid rgba(255, 215, 0, 0.3);
    animation: spin 2s linear infinite;
}

.orbit-2 {
    width: 70%;
    height: 70%;
    border-bottom: 2px solid #d946ef;
    border-left: 2px solid rgba(217, 70, 239, 0.3);
    animation: spinReverse 3s linear infinite;
}

.orbit-3 {
    width: 40%;
    height: 40%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: pulseScale 1.5s ease-in-out infinite;
}

.star-core {
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.8);
    animation: glowPulse 2s infinite alternate;
    z-index: 2;
}

.loading-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.loading-subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeText 2s infinite;
}

@keyframes spinReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes pulseScale {

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

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

@keyframes glowPulse {
    from {
        box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.5);
    }

    to {
        box-shadow: 0 0 30px 10px rgba(255, 215, 0, 0.9);
    }
}

@keyframes fadeText {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* --- Premium Lead Capture Screen --- */

/* Result Title */
.result-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    font-weight: 900;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    animation: pulseGlow 2s infinite alternate;
}

/* Result Description */
.result-desc {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Premium Input Field */
.premium-input-wrapper {
    position: relative;
    margin: 2rem 0;
}

.premium-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    background: rgba(15, 12, 41, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.premium-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2), inset 0 2px 5px rgba(0, 0, 0, 0.3);
    background: rgba(15, 12, 41, 0.8);
}

.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Floating Icon inside input (optional, added via JS or HTML) */
.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffd700;
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0.8;
}

/* Zion Online Screen */
.zion-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.highlight-text {
    background: transparent;
    color: #d946ef !important;
    padding: 0;
    font-weight: 800;
    display: inline;
    transform: none;
    margin: 0;
    box-shadow: none;
    font-size: inherit;
    text-shadow: 0 0 20px rgba(217, 70, 239, 0.6);
    letter-spacing: normal;
}

.online-card {
    background: white;
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.online-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.online-info {
    flex: 1;
    text-align: left;
}

.online-info h3 {
    color: #000;
    font-size: 1.2rem;
    margin-bottom: 2px;
    font-weight: 800;
}

.online-status {
    color: #25D366;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-dot {
    width: 15px;
    height: 15px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 10px #25D366;
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* WhatsApp CTA Button */
.whatsapp-cta {
    background: #d946ef;
    /* Purple/Pink to match reference */
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 15px;
    /* Less rounded */
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 0 #a21caf;
    /* 3D effect */
    transition: all 0.1s;
    position: relative;
    overflow: hidden;
}

.whatsapp-cta:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #a21caf;
}

.whatsapp-cta:hover {
    background: #c026d3;
}

@keyframes pulseGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.2));
    }

    to {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.6));
    }
}

@keyframes shineBtn {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* --- Full Screen Loader --- */
.full-screen-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #240b36 0%, #0f0c29 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.full-screen-loader.hidden {
    display: none;
}

.loading-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 2rem;
}

/* Background Stars Effect */
.full-screen-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: starsMove 100s linear infinite;
    opacity: 0.6;
}

@keyframes starsMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-1000px);
    }
}

/* --- Zion Online Screen Styles --- */

.zion-title {
    font-size: 1.8rem;
    line-height: 1.4;
    color: #ffd700;
    /* Gold */
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}



/* --- Chat Option Buttons --- */
.chat-option-btn {
    background: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 20px 20px 20px 5px;
    /* Bubble shape */
    color: #111b21;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: fit-content;
    max-width: 85%;
    margin-bottom: 0.5rem;
    position: relative;
    border: 1px solid #e9edef;
}

.chat-option-btn:hover {
    background: #f0f2f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.chat-option-btn:active {
    transform: scale(0.98);
    background: #e9edef;
}

/* Add a subtle accent line */
.chat-option-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 4px;
    background: #00a884;
    /* WhatsApp Green */
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.chat-option-btn:hover::before {
    opacity: 1;
}

/* --- Full Screen Capture Screen --- */
.full-screen-capture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #240b36 0%, #0f0c29 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    padding: 2rem;
}

.full-screen-capture.hidden {
    display: none;
}

/* Background Stars Effect (Same as loader) */
.full-screen-capture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: starsMove 100s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

/* Content styling within full screen */
.full-screen-capture .quiz-header {
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.full-screen-capture .result-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    color: #ffd700;
}

.full-screen-capture .result-desc {
    font-size: 1.2rem;
    color: #e0e0e0;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.full-screen-capture .premium-input-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    margin-bottom: 2rem;
}

.full-screen-capture .premium-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.2rem;
    padding: 1.5rem 1.5rem 1.5rem 3.5rem;
    border-radius: 15px;
    width: 100%;
    transition: all 0.3s;
}

.full-screen-capture .premium-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #d946ef;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.3);
    outline: none;
}

.full-screen-capture .input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #d946ef;
    font-size: 1.2rem;
}

.full-screen-capture .whatsapp-cta {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.full-screen-capture .whatsapp-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    filter: brightness(1.1);
}

/* Question Subtitle */
#question-subtitle {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #ffd700;
}

/* Urgent Banner Styles */
.urgent-banner {
    background: linear-gradient(135deg, #ff4b1f, #ff9068);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(255, 75, 31, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: bounceInDown 1s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.urgent-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: shimmer 3s infinite;
}

.urgent-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulseText 2s infinite;
}

.urgent-text {
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

@keyframes bounceInDown {
    0% {
        opacity: 0;
        transform: translate3d(0, -3000px, 0);
    }

    60% {
        opacity: 1;
        transform: translate3d(0, 25px, 0);
    }

    75% {
        transform: translate3d(0, -10px, 0);
    }

    90% {
        transform: translate3d(0, 5px, 0);
    }

    100% {
        transform: none;
    }
}

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

    50% {
        transform: scale(1.05);
    }

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

/* Navigation Header */
.nav-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    width: 100%;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1rem;
    padding: 0;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-header .progress-container {
    margin-bottom: 0;
    flex-grow: 1;
}

.back-btn.hidden {
    visibility: hidden;
    /* Use visibility to keep layout space if desired, or display: none; */
    opacity: 0;
    pointer-events: none;
    display: none;
    /* Actually sticking with display: none for now as layout shift is fine here */
}

/* Back Redirect Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    color: #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay:not(.hidden) .modal-content {
    transform: translateY(0);
}

.modal-title {
    color: #f59e0b;
    /* Gold/Orange */
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.modal-image-container {
    width: 100%;
    height: 180px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-social-proof {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.highlight-purple {
    color: #8b5cf6;
    font-weight: 700;
}

.modal-cta-btn {
    background: #0088ff;
    /* Blue */
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -1px rgba(37, 99, 235, 0.06);
}

.modal-cta-btn:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.modal-footer-text {
    font-size: 0.85rem;
    color: #6b7280;
}