/* =============================================
   expo.css – shared styles for the expo app
   Light, professional UI, deep violet + warm gold accent
   ============================================= */

:root {
    --expo-primary: #32127a;
    --expo-primary-dark: #25105e;
    --expo-accent: #6d3fd1;
    --expo-accent-light: #9b7fd4;
    --expo-gold: #f2a93b;
    --expo-gold-dark: #92600f;
    --expo-bg: #f5f4fc;
    --expo-surface: #ffffff;
    --expo-surface-soft: #faf9fe;
    --expo-text: #20233f;
    --expo-text-secondary: #5c5a72;
    --expo-text-muted: #8d8aa1;
    --expo-border: #e6e1f5;
    --expo-shadow-sm: 0 2px 8px rgba(32, 18, 74, .06);
    --expo-shadow: 0 4px 20px rgba(32, 18, 74, .08);
    --expo-shadow-lg: 0 12px 40px rgba(32, 18, 74, .12);
    --expo-radius-sm: 10px;
    --expo-radius-md: 16px;
    --expo-radius-lg: 22px;
    --expo-radius-xl: 30px;
    --expo-transition: .25s cubic-bezier(.22, 1, .36, 1);
}

/* Global reset */
.expo-page {
    background: var(--expo-bg);
    color: var(--expo-text);
    font-family: "Vazirmatn", "Roboto", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --------------------------
   Glass card
--------------------------- */
.expo-glass-card {
    background: var(--expo-surface);
    border: 1px solid var(--expo-border);
    border-radius: var(--expo-radius-lg);
    box-shadow: var(--expo-shadow-sm);
    transition: box-shadow var(--expo-transition), transform var(--expo-transition);
    position: relative;
    overflow: hidden;
}

.expo-glass-card:hover {
    border-color: #d7cdf0;
    box-shadow: var(--expo-shadow);
}

/* --------------------------
   Buttons
--------------------------- */
.expo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--expo-transition);
    text-decoration: none;
    white-space: nowrap;
}

.expo-btn-primary {
    background: var(--expo-primary);
    color: #fff;
    border-color: var(--expo-primary);
    box-shadow: 0 6px 16px -4px rgba(50, 18, 122, .4);
}

.expo-btn-primary:hover {
    background: var(--expo-primary-dark);
    border-color: var(--expo-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -6px rgba(50, 18, 122, .5);
}

.expo-btn-primary:disabled {
    opacity: .6;
    cursor: default;
    transform: none;
}

.expo-btn-outline {
    background: transparent;
    color: var(--expo-primary);
    border-color: var(--expo-primary);
}

.expo-btn-outline:hover {
    background: rgba(50, 18, 122, .05);
    border-color: var(--expo-primary-dark);
    transform: translateY(-2px);
}

.expo-btn-ghost {
    background: var(--expo-surface-soft);
    color: var(--expo-text);
    border-color: var(--expo-border);
}

.expo-btn-ghost:hover {
    border-color: var(--expo-primary);
    color: var(--expo-primary);
    background: #f0edfb;
}

.expo-btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.expo-btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}


#nextBtn,
#prevBtn {
    max-width: 90px;
}

/* --------------------------
   Particle background (light)
--------------------------- */
.expo-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.expo-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--expo-accent);
    border-radius: 50%;
    opacity: 0.2;
    animation: floatParticle 18s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.2;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-10vh) translateX(40px) scale(0.5);
        opacity: 0;
    }
}



/* --------------------------
   Hero Section (landing/quiz)
--------------------------- */
.expo-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    background: linear-gradient(180deg, #edeafc 0%, #f5f4fb 100%);
    border-radius: 28px;
    margin: 40px auto 0;
    max-width: 1200px;
    width: calc(100% - 15%);
}

.expo-hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50, 18, 122, .08), transparent 60%);
    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {

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

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

.expo-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.expo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--expo-border);
    color: var(--expo-primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: var(--expo-shadow-sm);
    animation: fadeInDown 0.8s ease;
}

.expo-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
    background: linear-gradient(120deg, #32127a 0%, #6d3fd1 60%, #32127a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite, fadeInUp 0.8s ease 0.2s both;
}

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

.expo-hero p {
    font-size: 1.25rem;
    color: var(--expo-text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.expo-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.expo-hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 48px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.expo-hero-stat {
    text-align: center;
}

.expo-hero-stat .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--expo-primary);
}

.expo-hero-stat .stat-label {
    font-size: 0.85rem;
    color: var(--expo-text-muted);
    margin-top: 4px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

/* --------------------------
   Story Section / Timeline
--------------------------- */
.expo-story-section {
    padding: 80px 6%;
    position: relative;
}

.expo-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.expo-section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--expo-text);
}

.expo-section-title p {
    color: var(--expo-text-secondary);
    font-size: 1.1rem;
}

.expo-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.expo-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--expo-primary), transparent);
    transform: translateX(50%);
}

.expo-timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
}

.expo-timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.expo-timeline-item .timeline-dot {
    position: absolute;
    right: 50%;
    top: 45%;
    width: 16px;
    height: 16px;
    background: var(--expo-primary);
    border-radius: 50%;
    transform: translateX(50%);
    box-shadow: 0 0 0 4px rgba(50, 18, 122, .1);
}

.expo-timeline-item .timeline-content {
    background: var(--expo-surface);
    border: 1px solid var(--expo-border);
    border-radius: var(--expo-radius-md);
    padding: 20px;
    box-shadow: var(--expo-shadow-sm);
    width: 370px;
}

/* --------------------------
   Quiz Styles
--------------------------- */
.expo-quiz-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.expo-quiz-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.expo-quiz-progress-bar {
    flex: 1;
    height: 6px;
    background: #e9e5f7;
    border-radius: 10px;
    overflow: hidden;
}

.expo-quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--expo-primary), var(--expo-accent));
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.expo-quiz-question {
    background: var(--expo-surface);
    border: 1px solid var(--expo-border);
    border-radius: var(--expo-radius-lg);
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: var(--expo-shadow-sm);
    animation: fadeInUp 0.5s ease both;
}

.expo-quiz-question h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.6;
    color: var(--expo-text);
}

.expo-option {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #fafafe;
    border: 1.5px solid var(--expo-border);
    border-radius: var(--expo-radius-sm);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all var(--expo-transition);
}

.expo-option:hover {
    background: #f0edfb;
    border-color: var(--expo-primary);
    transform: translateX(-4px);
}

.expo-option.selected {
    background: #f0edfb;
    border-color: var(--expo-primary);
    box-shadow: 0 0 0 3px rgba(50, 18, 122, .1);
}

.expo-option input[type="radio"] {
    margin-left: 14px;
    width: 18px;
    height: 18px;
    accent-color: var(--expo-primary);
    flex-shrink: 0;
}

.expo-option .option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(50, 18, 122, .1);
    color: var(--expo-primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 12px;
    flex-shrink: 0;
}

.expo-option .option-text {
    font-size: 1rem;
    color: var(--expo-text);
}

/* --------------------------
   Tags (shared)
--------------------------- */
.expo-tag {
    display: inline-block;
    background: #f0edfb;
    color: var(--expo-primary);
    padding: 6px 14px;
    border-radius: 20px;
    margin: 4px;
    font-size: 0.9rem;
    border: 1px solid #d9cff0;
}

/* --------------------------
   Modals
--------------------------- */
.expo-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.expo-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.expo-modal-box {
    background: #fff;
    border: 1px solid var(--expo-border);
    border-radius: var(--expo-radius-lg);
    padding: 40px;
    max-width: 90%;
    width: 550px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
    position: relative;
    animation: modalSlideIn 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(40px) scale(0.9);
        opacity: 0;
    }

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

/* Loader */
.expo-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
}

.expo-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--expo-primary);
    border-bottom-color: var(--expo-primary);
    animation: loaderSpin 1.5s ease-in-out infinite;
}

.expo-loader-ring:nth-child(2) {
    inset: 10px;
    border-right-color: var(--expo-gold);
    border-left-color: var(--expo-gold);
    animation-duration: 2s;
    animation-direction: reverse;
}

.expo-loader-ring:nth-child(3) {
    inset: 20px;
    border-top-color: #10b981;
    border-bottom-color: #10b981;
    animation-duration: 1s;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* --------------------------
   Share Buttons
--------------------------- */
.expo-share-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

.expo-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--expo-transition);
    border: none;
    cursor: pointer;
}

.expo-share-btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.expo-share-btn-whatsapp:hover {
    background: #1da851;
    box-shadow: 0 8px 20px -5px rgba(37, 211, 102, .4);
    transform: translateY(-2px);
}

.expo-share-btn-telegram {
    background: #229ED9;
    color: #fff;
}

.expo-share-btn-telegram:hover {
    background: #1a7fae;
    box-shadow: 0 8px 20px -5px rgba(34, 158, 217, .4);
    transform: translateY(-2px);
}

.expo-share-btn-copy,
.expo-share-btn-download {
    background: #f0edfb;
    color: var(--expo-text);
    border: 1px solid var(--expo-border);
}

.expo-share-btn-copy:hover,
.expo-share-btn-download:hover {
    background: #e3daf7;
    transform: translateY(-2px);
}

.expo-share-btn-download {
    background: var(--expo-primary);
    color: #fff;
    border-color: var(--expo-primary);
}

.expo-share-btn-download:hover {
    background: var(--expo-primary-dark);
    color: #fff;
}

/* --------------------------
   Results Grid (wall)
--------------------------- */
.expo-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* =========================================================
   Result reveal page — dense, information-forward layout
   ========================================================= */

.expo-result-hero {
    position: relative;
    padding: 56px 20px 36px;
    text-align: center;
    background: radial-gradient(120% 140% at 50% -10%, #ede8fb 0%, var(--expo-bg) 62%);
    overflow: hidden;
}

.expo-result-hero-glow {
    position: absolute;
    top: -140px;
    left: 50%;
    width: 520px;
    height: 520px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 63, 209, .18), transparent 65%);
    pointer-events: none;
}

.expo-result-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.expo-medallion {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--expo-primary), var(--expo-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px -8px rgba(50, 18, 122, .45);
}

.expo-medallion svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.expo-result-kicker {
    color: var(--expo-primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.expo-result-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--expo-text);
    margin-bottom: 10px;
    line-height: 1.35;
}

.expo-result-tagline {
    font-size: 1.05rem;
    color: var(--expo-text-secondary);
    margin-bottom: 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.expo-result-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 28px;
}

/* Quick stats strip: dense single-glance summary */
.expo-quickstats {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
    background: var(--expo-surface);
    border: 1px solid var(--expo-border);
    border-radius: var(--expo-radius-lg);
    box-shadow: var(--expo-shadow-sm);
    overflow: hidden;
}

.expo-quickstat {
    flex: 1;
    padding: 16px 12px;
    text-align: center;
    position: relative;
}

.expo-quickstat+.expo-quickstat::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    right: 100%;
    width: 1px;
    background: var(--expo-border);
}

.expo-quickstat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--expo-primary);
    line-height: 1.2;
    white-space: nowrap;
}

.expo-quickstat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--expo-text-muted);
    margin-top: 4px;
}

.expo-result-body {
    padding: 40px 20px 72px;
}

.expo-result-lede {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--expo-text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
    text-align: center;
}

.expo-result-h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--expo-text);
    margin-bottom: 16px;
}

.expo-result-h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--expo-text-muted);
    margin-bottom: 12px;
}

/* Two-column bento layout: aside (scores + strengths) + main (paths + plan) */
.expo-result-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
    max-width: 1040px;
    margin: 0 auto;
}

.expo-result-aside {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expo-result-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.expo-card-pad {
    padding: 22px;
}

/* Scores / radar */
.expo-scores-card canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.expo-score-legend {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.expo-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.expo-score-row:last-child {
    margin-bottom: 0;
}

.expo-score-label {
    width: 92px;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--expo-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expo-score-bar {
    flex: 1;
    height: 7px;
    background: #eee9f9;
    border-radius: 5px;
    overflow: hidden;
}

.expo-score-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--expo-primary), var(--expo-accent));
    border-radius: 5px;
    transition: width 1s cubic-bezier(.22, 1, .36, 1);
    width: 0%;
}

.expo-score-row.is-top .expo-score-fill {
    background: linear-gradient(90deg, var(--expo-gold-dark), var(--expo-gold));
}

.expo-score-row.is-top .expo-score-label {
    color: var(--expo-text);
}

.expo-score-num {
    width: 26px;
    text-align: left;
    font-weight: 700;
    color: var(--expo-primary);
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* Strengths */
.expo-strength-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expo-strength-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--expo-surface-soft);
    border: 1px solid var(--expo-border);
    border-radius: 100px;
    padding: 7px 14px;
    font-size: 0.85rem;
    color: var(--expo-text);
}

.expo-strength-chip svg {
    color: #10b981;
    flex-shrink: 0;
}

/* Career paths */
.expo-career-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.expo-career-item {
    display: flex;
    gap: 14px;
    background: var(--expo-surface);
    border: 1px solid var(--expo-border);
    border-radius: var(--expo-radius-md);
    padding: 16px 18px;
}

.expo-career-top {
    border-color: var(--expo-gold);
    box-shadow: 0 0 0 1px var(--expo-gold);
    background: linear-gradient(180deg, #fffaf0 0%, var(--expo-surface) 60%);
}

.expo-career-rank {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--expo-surface-soft);
    color: var(--expo-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.expo-career-top .expo-career-rank {
    background: var(--expo-gold);
    color: #4a2e02;
}

.expo-career-body {
    flex: 1;
    min-width: 0;
}

.expo-career-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.expo-career-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--expo-text);
}

.expo-career-score {
    color: var(--expo-primary);
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.expo-career-desc {
    color: var(--expo-text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* Suggestions & action items — tabbed to save vertical space */
.expo-plan-card {
    padding: 6px;
}

.expo-plan-tabs {
    display: flex;
    gap: 4px;
    padding: 6px;
}

.expo-plan-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--expo-text-muted);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 12px;
    border-radius: var(--expo-radius-sm);
    cursor: pointer;
    transition: all var(--expo-transition);
}

.expo-plan-tab:hover {
    color: var(--expo-primary);
}

.expo-plan-tab.is-active {
    background: var(--expo-surface-soft);
    color: var(--expo-primary);
    box-shadow: inset 0 0 0 1px var(--expo-border);
}

.expo-plan-panels {
    padding: 10px 16px 16px;
}

.expo-plan-panel {
    display: none;
}

.expo-plan-panel.is-active {
    display: block;
}

.expo-plan-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--expo-border);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.expo-plan-item:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.expo-plan-item-index {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--expo-surface-soft);
    color: var(--expo-primary);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.expo-plan-item-body h3 {
    margin: 0 0 4px;
    color: var(--expo-text);
    font-size: 0.94rem;
    font-weight: 700;
}

.expo-plan-item-body p {
    margin: 0;
    color: var(--expo-text-muted);
    font-size: 0.87rem;
    line-height: 1.65;
}

/* CTA card */
.expo-cta-card {
    padding: 30px;
    text-align: center;
    margin: 32px auto 0;
    max-width: 1040px;
}

.expo-cta-text {
    color: var(--expo-text-secondary);
    margin-bottom: 18px;
    font-size: 0.92rem;
}

.expo-phone-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.expo-phone-form input {
    border: 1.5px solid var(--expo-border);
    border-radius: 100px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    min-width: 220px;
}

.expo-phone-form input:focus {
    outline: none;
    border-color: var(--expo-primary);
    box-shadow: 0 0 0 3px rgba(50, 18, 122, .1);
}

.expo-form-message {
    margin-top: 14px;
    font-size: 0.9rem;
    min-height: 20px;
}

.expo-form-message.is-success {
    color: #10b981;
    font-weight: 600;
}

.expo-form-message.is-error {
    color: #e2483d;
    font-weight: 600;
}

.expo-share-container {
    max-width: 1040px;
    margin: 20px auto 0;
}

/* --------------------------
   Shareable result card (rendered off-screen, exported as image)
--------------------------- */
.expo-share-card-offstage {
    position: fixed;
    top: 0;
    left: -9999px;
    pointer-events: none;
    z-index: -1;
}

.expo-share-card {
    width: 400px;
    padding: 36px 30px 28px;
    background: linear-gradient(160deg, #f6f4fd 0%, #ffffff 55%, #f6f4fd 100%);
    font-family: "Vazirmatn", "Roboto", sans-serif;
    color: var(--expo-text);
    position: relative;
    box-sizing: border-box;
}

.expo-share-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 10px solid var(--expo-primary);
    pointer-events: none;
}

.expo-share-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.expo-share-card-brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--expo-primary);
}

.expo-share-card-kicker {
    font-size: 0.8rem;
    color: var(--expo-text-muted);
    background: var(--expo-surface-soft);
    padding: 5px 12px;
    border-radius: 100px;
}

.expo-share-card-medallion {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--expo-primary), var(--expo-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.expo-share-card-medallion svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

.expo-share-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.35;
}

.expo-share-card-tagline {
    font-size: 0.92rem;
    color: var(--expo-text-secondary);
    margin: 0 0 22px;
    line-height: 1.7;
}

.expo-share-card-scores {
    margin-bottom: 20px;
}

.expo-share-card-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.expo-share-card-score-label {
    width: 90px;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--expo-text-secondary);
}

.expo-share-card-score-bar {
    flex: 1;
    height: 8px;
    background: #eee9f9;
    border-radius: 5px;
    overflow: hidden;
}

.expo-share-card-score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--expo-primary), var(--expo-accent));
    border-radius: 5px;
}

.expo-share-card-score-num {
    width: 24px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--expo-primary);
}

.expo-share-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.expo-share-card-footer {
    border-top: 1px dashed var(--expo-border);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.expo-share-card-footer-label {
    font-size: 0.75rem;
    color: var(--expo-text-muted);
}

.expo-share-card-footer-url {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--expo-primary);
    direction: ltr;
}

/* Modal preview of the share card */
.expo-share-preview-wrap {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    max-height: 50vh;
    overflow-y: auto;
    background: var(--expo-surface-soft);
    border-radius: var(--expo-radius-md);
    padding: 16px;
}

.expo-share-preview-wrap img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--expo-shadow);
}

.expo-share-preview-loading {
    color: var(--expo-text-muted);
    font-size: 0.9rem;
    padding: 40px 0;
}

/* --------------------------
   Responsive
--------------------------- */
@media (max-width: 1024px) {
    .expo-hero h1 {
        font-size: 2.8rem;
    }

    .expo-result-grid {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 860px) {
    .expo-result-grid {
        grid-template-columns: 1fr;
    }

    .expo-result-aside {
        position: static;
    }
}

@media (max-width: 768px) {
    .expo-hero {
        margin-top: 10px;
        width: calc(100% - 20px);
        border-radius: 20px;
        padding: 60px 16px;
    }

    .expo-hero h1 {
        font-size: 2rem;
    }

    .expo-hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .expo-timeline::before {
        right: 20px;
    }

    .expo-timeline-item,
    .expo-timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-right: 60px;
        padding-left: 0;
    }

    .expo-timeline-item .timeline-dot,
    .expo-timeline-item:nth-child(even) .timeline-dot {
        right: 20px;
    }

    .expo-quiz-question {
        padding: 20px;
    }

    .expo-section-title h2 {
        font-size: 1.8rem;
    }

    .expo-results-grid {
        grid-template-columns: 1fr;
    }

    .expo-result-title {
        font-size: 1.5rem;
    }

    .expo-quickstats {
        flex-wrap: wrap;
    }

    .expo-quickstat {
        flex-basis: 50%;
    }

    .expo-quickstat+.expo-quickstat::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .expo-hero h1 {
        font-size: 1.6rem;
    }

    .expo-btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .expo-modal-box {
        padding: 24px;
        width: 95%;
    }

    .expo-medallion {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    .expo-medallion svg {
        width: 26px;
        height: 26px;
    }

    .expo-result-title {
        font-size: 1.3rem;
    }

    .expo-cta-card {
        padding: 22px;
    }

    .expo-plan-tabs {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {

    .expo-hero h1,
    .expo-hero-glow,
    .expo-quiz-question,
    .expo-hero-badge,
    .expo-hero p,
    .expo-hero-actions,
    .expo-hero-stats {
        animation: none !important;
    }

    .expo-score-fill {
        transition: none;
    }
}

/* =============================================
   ADDITIONS — quiz stepper (one question per screen)
   and single-card, screenshot-ready result layout
   ============================================= */

/* --------------------------
   Quiz exit / progress row
--------------------------- */
.expo-quiz-exit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--expo-surface);
    border: 1px solid var(--expo-border);
    color: var(--expo-text-muted);
    box-shadow: var(--expo-shadow-sm);
    flex-shrink: 0;
    transition: all var(--expo-transition);
}

.expo-quiz-exit:hover {
    color: var(--expo-primary);
    border-color: var(--expo-primary);
}

/* --------------------------
   Quiz stepper — one question visible at a time
--------------------------- */
.expo-quiz-question {
    display: none;
}

.expo-quiz-question.is-active {
    display: block;
}

.expo-quiz-step-label {
    text-align: center;
    color: var(--expo-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.expo-quiz-nav {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.expo-quiz-nav .expo-btn {
    flex: 1;
    justify-content: center;
}

.expo-quiz-nav .expo-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.expo-quiz-error {
    text-align: center;
    color: #e2483d;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 16px;
    min-height: 18px;
}

/* --------------------------
   Result page — single card, built for screenshots
--------------------------- */
.expo-result-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 16px 90px;
}

.expo-result-card {
    position: relative;
    background: var(--expo-surface);
    border: 1px solid var(--expo-border);
    border-radius: var(--expo-radius-xl);
    box-shadow: var(--expo-shadow-lg);
    padding: 44px 40px 34px;
    overflow: hidden;
}

.expo-result-card::before {
    content: "";
    position: absolute;
    top: -170px;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 63, 209, .14), transparent 65%);
    pointer-events: none;
}

.expo-result-card-header {
    position: relative;
    z-index: 1;
    text-align: center;
}

.expo-result-card-header .expo-medallion {
    margin: 0 auto 16px;
}

.expo-result-card-header .expo-result-tagline {
    margin-bottom: 0;
}

.expo-result-lede {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--expo-text-secondary);
    text-align: center;
    max-width: 480px;
    margin: 22px auto 0;
}

.expo-result-section {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px dashed var(--expo-border);
}

.expo-plan-list {
    display: flex;
    flex-direction: column;
}

.expo-plan-list .expo-plan-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--expo-border);
}

.expo-plan-list .expo-plan-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.expo-result-card-footer {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px dashed var(--expo-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .expo-result-card {
        padding: 34px 22px 26px;
        border-radius: var(--expo-radius-lg);
    }

    .expo-result-card::before {
        width: 360px;
        height: 360px;
        top: -140px;
    }
}




/* --------------------------
   Recent Results Marquee
--------------------------- */
.expo-marquee {
    --marquee-speed: 10s;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.expo-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: expoMarqueeMove var(--marquee-speed) linear infinite;
    will-change: transform;
}

.expo-marquee:hover .expo-marquee-track {
    animation-play-state: paused;
}

@keyframes expoMarqueeMove {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.expo-recent-card {
    flex: 0 0 300px;
    width: 300px;
    background: var(--expo-surface);
    border: 1px solid var(--expo-border);
    border-radius: var(--expo-radius-lg);
    box-shadow: var(--expo-shadow-sm);
    padding: 24px 22px 20px;
    transition: box-shadow var(--expo-transition), transform var(--expo-transition);
}

.expo-recent-card:hover {
    box-shadow: var(--expo-shadow);
    transform: translateY(-4px);
}

.expo-recent-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.expo-recent-badge {
    background: #f0edfb;
    color: var(--expo-primary);
    font-size: .76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

.expo-recent-date {
    color: var(--expo-text-muted);
    font-size: .74rem;
    white-space: nowrap;
}

.expo-recent-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--expo-text);
    line-height: 1.5;
}

.expo-recent-desc {
    color: var(--expo-text-secondary);
    font-size: .87rem;
    line-height: 1.75;
    margin-bottom: 16px;
    min-height: 66px;
}

.expo-recent-scores {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.expo-recent-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expo-recent-score-label {
    width: 76px;
    flex-shrink: 0;
    font-size: .72rem;
    font-weight: 600;
    color: var(--expo-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expo-recent-score-bar {
    flex: 1;
    height: 6px;
    background: #eee9f9;
    border-radius: 5px;
    overflow: hidden;
}

.expo-recent-score-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--expo-primary), var(--expo-accent));
    border-radius: 5px;
}

.expo-recent-score-num {
    width: 22px;
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    color: var(--expo-primary);
    flex-shrink: 0;
}

.expo-recent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.expo-recent-cta {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .expo-recent-card {
        flex: 0 0 260px;
        width: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .expo-marquee-track {
        animation: none;
    }
}