:root {
    --sunrise-primary: #FF6B35;
    --navy-premium: #0F172A;
    --navy-light: #334155;
    --bg-light: #F8FAFC;
    --border-grey: #E2E8F0;
    --white: #FFFFFF;
    --verified-green: #10B981;
    --star-yellow: #F59E0B;
    --urgent-red: #EF4444;
    --shadow-soft: 0 10px 40px -10px rgba(15, 23, 42, 0.1);
}

/* GLOBAL STICKY HEADER */
#global-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100000;
    /* Higher than modals */
    background: var(--navy-premium);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1E293B;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#global-sticky-header h1 {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.05em;
    margin: 0;
}

#global-sticky-header h1 span {
    color: var(--sunrise-primary);
}

@keyframes breath {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.pulse-dots {
    animation: breath 1.5s infinite;
}

.border-dots-pulse {
    border-bottom: 2px dotted #FF6B35;
    animation: borderPulse 1.5s infinite;
}

@keyframes borderPulse {
    0% {
        opacity: 0.5;
        border-color: #FF6B35;
    }

    50% {
        opacity: 1;
        border-color: #F59E0B;
    }

    100% {
        opacity: 0.5;
        border-color: #FF6B35;
    }
}

.border-dots-pulse-white {
    border-bottom: 2px dotted #FFFFFF;
    animation: borderPulseWhite 1.5s infinite;
}

@keyframes borderPulseWhite {
    0% {
        opacity: 0.5;
        border-color: #FFFFFF;
    }

    50% {
        opacity: 1;
        border-color: #E2E8F0;
    }

    100% {
        opacity: 0.5;
        border-color: #FFFFFF;
    }
}

/* NEW: Validation Feedback Styles */
.input-error {
    border: 2px solid #EF4444 !important;
    background-color: #FEF2F2 !important;
}

/* Update .flash-free to look like an Active Audit Status */
.flash-free {
    font-weight: 900;
    color: var(--sunrise-primary);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
    animation: statusPulse 2s infinite ease-in-out;
    letter-spacing: 1px;
}

@keyframes statusPulse {

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

    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* Neural Frequency Preloader REMOVED */

/* Main Content Initial State (Visible Immediate) */
#react-hero-root,
.unstoppable-cta {
    opacity: 1;
    /* transition: opacity 1.5s ease-out; Removed for instant load */
}

#react-hero-root.loaded,
.unstoppable-cta.loaded {
    opacity: 1;
}

/* Ensure Preloader is ALWAYS on top */
#global-preloader {
    z-index: 999999 !important;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--navy-light);
    background: #0F172A;
    /* Match navy to avoid white gaps */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure numbers are legible and aligned */
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#landingPage {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* FIX: Off-screen render class for PDF generation */
.off-screen-render {
    position: fixed;
    /* Fixed prevents scrollbar issues better than absolute */
    left: -9999px;
    top: 0;
    width: 750px !important;
    display: block !important;
    z-index: -1;
}


/* Legacy Button Style */
.custom-cta-button {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: var(--sunrise-primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.custom-cta-button:hover {
    transform: translateY(-2px);
    background-color: #e55b2b;
}

/* --- INTERMEDIATE PAGE HEADER/FOOTER STYLES --- */
.intermediate-header {
    background: var(--navy-premium);
    color: white;
    padding: 1rem 2rem;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.intermediate-footer {
    background: var(--navy-premium);
    color: white;
    padding: 1.5rem 2rem;
    width: 100%;
    margin-top: auto;
    text-align: center;
    font-size: 0.85rem;
    color: #CBD5E1;
}

/* UI FOR QUESTION PAGE */
.question-page {
    display: none;
    min-height: 100vh;
    width: 100vw;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    flex-direction: column;
    overflow-x: hidden;
}

.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#flowContainers {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.flow-container {
    display: none;
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
    background: #0F172A;
    /* Dark premium background for results */
    align-items: center;
    justify-content: center;
}

.flow-container.active {
    display: flex !important;
}

/* Assessment Results Card */
.assessment-results-card {
    background: white;
    width: 100%;
    max-width: 800px;
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.results-footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.histogram-grid {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.histo-bar-wrapper {
    text-align: left;
}

.histo-label {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.histo-track {
    height: 16px;
    background: #F1F5F9;
    border-radius: 10px;
    overflow: hidden;
}

.histo-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35, #FF9F64);
    border-radius: 10px;
    transition: width 0.1s linear;
    /* Fast for simulation */
}

.histo-fill.settled {
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Timer UI */
#syncCountdownUI {
    margin-top: 20px;
    padding: 30px;
    background: #F8FAFC;
    border-radius: 20px;
    border: 2px dashed #CBD5E1;
    text-align: center;
}

.timer-display {
    font-size: 4rem;
    font-weight: 900;
    color: #FF6B35;
    font-variant-numeric: tabular-nums;
    margin: 10px 0;
}

.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* Risk Card Dynamic */
.premium-risk {
    background: #FFF1F2;
    border: 2px solid #FECDD3;
    max-width: 600px;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(225, 29, 72, 0.1);
    text-align: center;
}

.risk-icon-pulse {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: iconPulse 2s infinite;
}

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

    50% {
        transform: scale(1.1);
    }

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

.risk-message-box {
    margin-bottom: 30px;
}

.dashboard-note {
    background: white;
    padding: 25px;
    border-radius: 20px;
    text-align: left;
    margin-bottom: 30px;
    border-left: 6px solid #E11D48;
}

.note-label {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #991B1B;
    margin-bottom: 5px;
}

.note-content {
    font-size: 0.95rem;
    color: #475569;
}

.risk-cta {
    background: #0F172A !important;
}

.question-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
}

.question-container {
    width: 100%;
    max-width: 750px;
    background: #fff;
    padding: 0 20px;
}

.progress-container {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: #FF6B35;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.progress-label {
    font-size: 0.9rem;
    color: #64748B;
    font-weight: 500;
}

.question-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy-premium);
    margin-bottom: 30px;
    line-height: 1.3;
    text-align: left;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.option-card {
    padding: 20px 25px;
    background: #F8FAFC;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navy-premium);
    border: 2px solid transparent;
    text-align: left;
}

.option-card:hover {
    background: #F1F5F9;
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--sunrise-primary);
    background: #fff;
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.1);
}

.quiz-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #F1F5F9;
}

/* Other Pages */
.details-page,
.success-page,
#paymentPageContainer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    padding: 0;
    flex-direction: column;
    z-index: 2000;
    overflow-y: auto;
}

.details-content-wrapper,
.success-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
}

.details-form,
.success-container {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-grey);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-group label {
    display: block;
    color: var(--navy-premium);
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-light);
}

/* REPORT PREVIEW STYLES */
#reportPreview {
    width: 100%;
    text-align: left;
    margin-top: 20px;
    padding: 20px;
}

.report-card {
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    clear: both;
    box-sizing: border-box;
    overflow: hidden;
    height: auto;
}

@media (max-width: 768px) {
    .report-card {
        padding: 15px;
    }

    .report-header-bg {
        margin: -15px -15px 15px -15px !important;
        padding: 15px 10px;
        font-size: 1rem;
        /* Slightly larger for readability */
        line-height: 1.4;
        min-height: auto;
        /* Remove fixed height constraint */
        text-transform: uppercase;
        letter-spacing: 1px;
        /* Airy spacing */
        background: linear-gradient(to right, #0F172A, #1E293B) !important;
        /* Subtle gradient */
        border-bottom: 3px solid var(--sunrise-primary);
        /* Pop of color */
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

        /* Centering Logic */
        display: flex;
        justify-content: center;
        text-align: center;
        align-items: center;
    }
}

.report-header-bg {
    background: linear-gradient(to right, #0F172A, #1E293B);
    color: white;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 1.2rem;
    margin: -30px -30px 20px -30px;
    border-radius: 12px 12px 0 0;

    /* Centering & Premium Styling */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 3px solid var(--sunrise-primary);
    letter-spacing: 1px;
    gap: 10px;
}

/* Modal & Spinner */
.payment-modal,
.sample-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.payment-modal.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.payment-modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    z-index: 1001;
    position: relative;
    max-height: 90vh;
    /* Allow scrolling on small screens */
    overflow-y: auto;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--sunrise-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

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

/* NEW: Arrow Pulse Animation */
@keyframes arrowMove {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }

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

.arrow-pulse {
    display: inline-block;
    animation: arrowMove 1.5s infinite ease-in-out;
    margin: 0 0.5rem;
}

/* FOOTER */
footer {
    background: var(--navy-premium);
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-top: auto;
}

footer .policy-links a {
    margin: 0 8px;
    color: #CBD5E1;
    text-decoration: none;
    font-size: 0.85rem;
}

/* PRICING BUTTONS FORCE */
#pricingModal button {
    position: relative !important;
    z-index: 999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Redirection Overlay Fix */
#redirectLoadingOverlay {
    pointer-events: none !important;
    z-index: 9999;
}

#redirectLoadingOverlay.active {
    display: flex !important;
    pointer-events: auto !important;
    z-index: 9999;
}

/* FORCE HIDE UTILITY */
.hidden {
    display: none !important;
}

/* --- AUTHORITY BRIDGE & RISK METER --- */
.bridge-container {
    background: #0F172A;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px;
    border-radius: 24px;
    animation: fadeIn 0.8s ease-out;
}

.risk-meter-box {
    width: 240px;
    height: 120px;
    position: relative;
    overflow: hidden;
    margin: 30px 0;
}

.risk-meter-arc {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 15px solid #1E293B;
    border-bottom-color: transparent;
    border-left-color: transparent;
    transform: rotate(-45deg);
}

.risk-meter-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 15px solid var(--sunrise-primary);
    border-bottom-color: transparent;
    border-left-color: transparent;
    transform: rotate(-45deg);
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%);
    animation: riskFill 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes riskFill {
    0% {
        transform: rotate(-45deg);
        opacity: 0;
    }

    100% {
        transform: rotate(135deg);
        opacity: 1;
    }
}

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

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

.risk-label {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sunrise-primary);
    margin-top: 10px;
    text-transform: uppercase;
}

.trust-badge-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-grey);
}

.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--navy-light);
}

.trust-icon {
    width: 24px !important;
    height: 24px !important;
    fill: var(--navy-premium);
}

/* Feature List Styling */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e1b4b;
    line-height: 1.4;
    text-align: left;
}

.icon-circle {
    stroke: #F97316;
}

.highlighted .icon-circle {
    stroke: #22C55E;
}

.feature-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Timer Circle Styling */
.timer-circle-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.timer-circle {
    width: 120px;
    height: 120px;
    border: 8px solid var(--sunrise-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy-premium);
    animation: pulse-timer 1s infinite alternate;
}

@keyframes pulse-timer {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.secondary-cta-button {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    color: var(--navy-premium);
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--navy-premium);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.secondary-cta-button:hover {
    background: var(--navy-premium);
    color: white;
}

/* Fix for React Hero Root */
#react-hero-root {
    min-height: 90vh;
    background: var(--navy-premium);
}

/* Overhauled Hero Component Visuals */
.btn-fill-hover {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-fill-hover:hover {
    background-color: var(--sunrise-primary) !important;
    border-color: var(--sunrise-primary) !important;
}

/* Increase Apt Skola brand span in the footer/hero */
#mainFooter p,
.brand-logo-container,
.brand-badge-text {
    font-size: 1.5rem;
}

.brand-badge-text span {
    font-size: 3rem;
}

/* GitHub Performance and Blinking Fix */
@keyframes fastBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.blink-arrow-bold {
    font-weight: 900 !important;
    display: inline-block;
    animation: fastBlink 0.8s infinite;
    margin-left: 8px;
}

/* Hero Massive Arrow and Top Nav */
@keyframes arrow-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-arrow-massive {
    font-size: 3.2rem !important;
    font-weight: 900 !important;
    margin-left: 15px;
    animation: arrow-blink 0.8s steps(1) infinite;
    vertical-align: middle;
    line-height: 0;
}

.hero-top-nav {
    position: absolute;
    top: 2.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    z-index: 100;
}

/* Force Active Visibility */
.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* High-End Visual Transitions */
@keyframes shake {

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

    25% {
        transform: translate(-5px, 0);
    }

    75% {
        transform: translate(5px, 0);
    }
}

.animate-shake {
    animation: shake 0.2s ease-in-out infinite;
}

@keyframes progress-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.animate-pulse-fast {
    animation: progress-pulse 1.5s ease-in-out infinite;
}

@keyframes flicker {

    0%,
    19.999%,
    22%,
    62.999%,
    64%,
    64.999%,
    70%,
    100% {
        opacity: 1;
    }

    20%,
    21.999%,
    63%,
    63.999%,
    65%,
    69.999% {
        opacity: 0.4;
    }
}

.animate-flicker {
    animation: flicker 2s linear infinite;
}

.neon-purple {
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

.neon-gold {
    filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.8));
}

.neon-cyan {
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8));
}

.path-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 3s ease-out forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* DNA Finalization Sequence Styles */
@keyframes liquid-fill {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

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

.liquid-animate {
    position: relative;
    overflow: hidden;
}

.liquid-animate::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: liquid-fill 1.5s infinite;
}

.vibrant-green {
    background-color: #10B981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    transition: all 0.5s ease;
}

.frosted-glass {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    transition: all 1s ease-in-out;
}

/* MOMENTUM FEATURES: CTA BUTTON PULSE */
@keyframes cta-pulse {
    0% {
        box-shadow: 0 20px 50px rgba(255, 107, 53, 0.5);
    }

    50% {
        box-shadow: 0 20px 80px rgba(255, 107, 53, 0.9), 0 0 0 20px rgba(255, 107, 53, 0);
    }

    100% {
        box-shadow: 0 20px 50px rgba(255, 107, 53, 0.5);
    }
}

.cta-button-pulse {
    animation: cta-pulse 2s infinite;
}

/* --- MILESTONE BLOCKS --- */
.milestone-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
    border: 1px solid #E2E8F0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone-card.active {
    transform: translateY(0);
    opacity: 1;
}

.milestone-header {
    margin-bottom: 2rem;
}

.milestone-visual {
    width: 60px;
    height: 60px;
    background: var(--sunrise-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.pulsing-check {
    animation: pulseCheck 2s infinite;
}

@keyframes pulseCheck {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(255, 107, 53, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.calculating .calc-bar {
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.calculating .calc-fill {
    height: 100%;
    background: var(--sunrise-primary);
    width: 0%;
    animation: calcProgress 3s forwards ease-in-out;
}

@keyframes calcProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 66%;
    }
}

.milestone-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--navy-light);
}

/* --- MOMENTUM TRIGGER MODAL --- */
.momentum-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 5000;
    transition: all 0.4s ease;
}

.momentum-modal {
    background: #0F172A;
    /* Navy Premium */
    color: white;
    width: 100%;
    max-width: 600px;
    padding: 3rem 2rem;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.momentum-overlay.active .momentum-modal {
    transform: translateY(0);
}

.momentum-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.momentum-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #CBD5E1;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.momentum-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.phone-input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    padding-right: 3.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
    transition: all 0.3s;
}

.phone-input-wrapper input:focus {
    outline: none;
    border-color: var(--sunrise-primary);
    background: rgba(255, 255, 255, 0.15);
}

.phone-check {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #10B981;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.momentum-cta {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 900;
    background: var(--sunrise-primary);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.momentum-cta:disabled {
    background: #334155;
    opacity: 0.5;
    cursor: not-allowed;
}

.ghost-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #94A3B8;
    line-height: 1.5;
    text-align: center;
}

/* --- MULTI-COLOR HISTOGRAM BARS --- */
.bar-orange {
    background: #FF6B35 !important;
}

.bar-blue {
    background: #3B82F6 !important;
}

.bar-green {
    background: #10B981 !important;
}

.bar-yellow {
    background: #F59E0B !important;
}

/* --- ENAGEMENT BANNER STYLES --- */
.engagement-banner {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: slideInRight 0.5s ease-out;
    border-left: 5px solid var(--sunrise-primary);
    text-align: left;
}

.engagement-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #FF6B35;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.engagement-content {
    flex: 1;
}

.engagement-content h4 {
    font-weight: 800;
    color: var(--navy-premium);
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.engagement-content p {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.4;
    margin: 0;
}

/* --- MOMENTUM INPUT POLISH --- */
#momentumPhone {
    background: #1E293B !important;
    border: 1px solid #334155 !important;
    color: #F8FAFC !important;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.15em;
    font-weight: 600;
}

/* --- CALCULATING TRUST ANIMATION --- */
.calculating-trust-area {
    max-width: 300px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trust-bar-moving {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.trust-bar-fill {
    width: 30%;
    height: 100%;
    background: var(--sunrise-primary);
    border-radius: 3px;
    position: absolute;
    animation: moveTrustBar 2s linear infinite;
}

@keyframes moveTrustBar {
    0% {
        left: -30%;
    }

    100% {
        left: 100%;
    }
}

/* --- NEW COMPONENTS FOR SYNC REPORT --- */
.sync-score-block {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sync-score-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: 10px;
}

.sync-score-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0F172A;
    line-height: 1;
}

.sync-score-sub {
    font-size: 0.9rem;
    color: #10B981;
    font-weight: 700;
    margin-top: 5px;
}

.btn-ambassador {
    display: block;
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 2px dashed #F59E0B;
    border-radius: 12px;
    color: #92400E;
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-ambassador:hover {
    transform: scale(1.02);
}

.btn-partner {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    color: #475569;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.xray-card {
    margin-top: 25px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.xray-card h3 {
    color: #1E40AF;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.xray-card .price {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1D4ED8;
    margin-bottom: 10px;
}

.btn-xray {
    display: inline-block;
    background: #2563EB;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

.foviz-banner {
    margin-top: 25px;
    padding: 20px;
    background: #111827;
    border-radius: 16px;
    color: white;
    text-align: center;
    border: 1px solid #374151;
}

.foviz-banner h3 {
    color: #FF6B35;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.foviz-banner h3 a {
    color: inherit;
    text-decoration: none;
}

.foviz-banner h3 a:hover {
    text-decoration: underline;
}

.foviz-banner p {
    font-size: 0.9rem;
    color: #9CA3AF;
}

/* APT SKOLA EXCLUSIVE BLOCK */
.apt-skola-exclusive {
    background: #EFF6FF;
    /* Match X-ray card bg for consistency or choose diff */
    border: 1px solid #BFDBFE;
    border-radius: 16px;
    padding: 20px;
    margin-top: 30px;
    text-align: left;
}

/* --- DNA FINALIZATION SEQUENCE STYLES --- */
.dna-final-sequence {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    text-align: center;
    z-index: 2002;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gold-trust-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    opacity: 0;
    /* Starts hidden, appears in lock phase */
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gold-trust-icon.active {
    opacity: 1;
    transform: scale(1);
    animation: shieldPulse 1.5s infinite;
}

@keyframes shieldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.dna-bar-container {
    width: 100%;
    margin: 10px 0;
    text-align: left;
}

.dna-bar-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #CBD5E1;
    /* Light Slate for Dark Background */
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.dna-bar-track {
    height: 12px;
    background: #E2E8F0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dna-bar-liquid {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF6B35, #F59E0B);
    border-radius: 6px;
    position: relative;
    transition: width 0.1s linear;
    /* Smooth fill */
}

.dna-bar-liquid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    animation: liquidThrob 1.5s infinite;
}

@keyframes liquidThrob {
    0% {
        transform: translateX(-100%);
    }

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

.dna-bar-liquid.locked {
    background: #10B981 !important;
    /* Emerald Green */
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.dna-status-text {
    margin-top: 30px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy-premium);
    min-height: 1.5em;
    transition: color 0.3s ease;
}

.dna-status-text.secured {
    color: #10B981;
}

/* BLUR OVERLAY FOR LOCK PHASE */
.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2001;
    /* Behind content but above everything else */
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.blur-overlay.active {
    opacity: 1;
}

/* Pricing Section Highlight */
#pricingModal.highlight-pulse {
    animation: sectionPulse 1s ease-out;
}

@keyframes sectionPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }

    50% {
        box-shadow: 0 0 0 30px rgba(255, 107, 53, 0);
    }

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

/* COST OF CONFUSION CALCULATOR STYLES */
#confusionDonut {
    background: conic-gradient(var(--sunrise-primary) 0%,
            var(--sunrise-primary) var(--anxiety-degree, 0%),
            var(--navy-premium) var(--anxiety-degree, 0%),
            var(--navy-premium) 100%) !important;
    /* Removed Green/Verified colors as per Forensic Audit rules */
    border-radius: 50%;
    width: 200px;
    height: 200px;
    position: relative;
    transition: background 0.5s ease;
}

#confusionDonut::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 50%;
}

/* Neural Pulse Animation (Breathing Glow) */
@keyframes neuralPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 107, 53, 0);
    }

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

.neural-pulse {
    animation: neuralPulse 2s infinite ease-in-out;
}