/**
 * Soul Compass - Personality Discovery
 * Animated, immersive styling for BuddyBoss
 * 
 * @package SoulCompass
 */

/* ============================================
   CSS VARIABLES & CUSTOM PROPERTIES
   ============================================ */
:root {
    --sc-primary: #6C5CE7;
    --sc-secondary: #A29BFE;
    --sc-accent: #FD79A8;
    --sc-success: #00B894;
    --sc-warning: #FDCB6E;
    --sc-dark: #2D3436;
    --sc-light: #F8F9FA;
    --sc-glass: rgba(255, 255, 255, 0.15);
    --sc-glass-border: rgba(255, 255, 255, 0.25);
    --sc-shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
    --sc-shadow-lg: 0 25px 80px rgba(108, 92, 231, 0.25);
    --sc-radius: 20px;
    --sc-radius-lg: 32px;
    --sc-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --sc-transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes sc-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes sc-pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.4),
                    0 0 40px rgba(108, 92, 231, 0.2),
                    0 0 60px rgba(108, 92, 231, 0.1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(108, 92, 231, 0.6),
                    0 0 60px rgba(108, 92, 231, 0.4),
                    0 0 90px rgba(108, 92, 231, 0.2);
    }
}

@keyframes sc-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes sc-rotate-gradient {
    0% { --sc-angle: 0deg; }
    100% { --sc-angle: 360deg; }
}

@keyframes sc-slide-up {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sc-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes sc-scale-in {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes sc-reveal {
    0% {
        clip-path: circle(0% at 50% 50%);
        opacity: 0;
    }
    100% {
        clip-path: circle(100% at 50% 50%);
        opacity: 1;
    }
}

@keyframes sc-particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes sc-orbit {
    from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes sc-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes sc-morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
    75% { border-radius: 60% 40% 60% 30% / 60% 30% 50% 60%; }
}

@keyframes sc-typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes sc-blink {
    50% { border-color: transparent; }
}

@keyframes sc-confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-500px) rotate(720deg); opacity: 0; }
}

@keyframes sc-number-count {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   BASE CONTAINER & BACKGROUND
   ============================================ */
.sc-container {
    position: relative;
    min-height: 100vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
}

.sc-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(108, 92, 231, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(253, 121, 168, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 184, 148, 0.15) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Animated particles background */
.sc-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.sc-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: sc-particle-float linear infinite;
}

.sc-particle:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; background: var(--sc-primary); }
.sc-particle:nth-child(2) { left: 20%; animation-duration: 18s; animation-delay: 2s; background: var(--sc-accent); }
.sc-particle:nth-child(3) { left: 30%; animation-duration: 12s; animation-delay: 4s; background: var(--sc-success); }
.sc-particle:nth-child(4) { left: 40%; animation-duration: 20s; animation-delay: 1s; background: var(--sc-warning); }
.sc-particle:nth-child(5) { left: 50%; animation-duration: 16s; animation-delay: 3s; background: var(--sc-secondary); }
.sc-particle:nth-child(6) { left: 60%; animation-duration: 14s; animation-delay: 5s; background: var(--sc-primary); }
.sc-particle:nth-child(7) { left: 70%; animation-duration: 17s; animation-delay: 2s; background: var(--sc-accent); }
.sc-particle:nth-child(8) { left: 80%; animation-duration: 19s; animation-delay: 4s; background: var(--sc-success); }
.sc-particle:nth-child(9) { left: 90%; animation-duration: 13s; animation-delay: 1s; background: var(--sc-warning); }

/* ============================================
   WELCOME SCREEN
   ============================================ */
.sc-welcome {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: sc-slide-up 1s ease-out;
}

.sc-welcome-icon {
    font-size: 120px;
    margin-bottom: 30px;
    animation: sc-float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(108, 92, 231, 0.5));
}

.sc-welcome h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--sc-secondary) 50%, var(--sc-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.sc-welcome p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

.sc-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-accent) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--sc-transition);
    box-shadow: var(--sc-shadow);
    position: relative;
    overflow: hidden;
}

.sc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.sc-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--sc-shadow-lg);
}

.sc-btn:hover::before {
    left: 100%;
}

.sc-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.sc-btn-secondary {
    background: var(--sc-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--sc-glass-border);
}

.sc-btn-icon {
    font-size: 1.3em;
}

/* ============================================
   QUESTIONNAIRE STYLES
   ============================================ */
.sc-questionnaire {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Progress bar */
.sc-progress-container {
    margin-bottom: 40px;
    animation: sc-slide-up 0.6s ease-out;
}

.sc-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.sc-progress-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.sc-progress-dimension {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.sc-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.sc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sc-primary), var(--sc-accent), var(--sc-success));
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: sc-shimmer 3s linear infinite;
}

/* Question card */
.sc-question-card {
    background: var(--sc-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sc-glass-border);
    border-radius: var(--sc-radius-lg);
    padding: 50px;
    box-shadow: var(--sc-shadow-lg);
    animation: sc-scale-in 0.6s ease-out;
}

.sc-question-card.sc-exiting {
    animation: sc-slide-out 0.4s ease-in forwards;
}

@keyframes sc-slide-out {
    to {
        opacity: 0;
        transform: translateX(-100px) scale(0.9);
    }
}

.sc-question-number {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--sc-primary), var(--sc-secondary));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sc-question-text {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 40px;
}

/* Answer options */
.sc-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sc-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 22px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sc-radius);
    cursor: pointer;
    transition: var(--sc-transition);
    overflow: hidden;
}

.sc-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--sc-primary), var(--sc-secondary));
    opacity: 0.15;
    transition: width 0.4s ease;
}

.sc-option:hover {
    border-color: var(--sc-primary);
    transform: translateX(8px);
}

.sc-option:hover::before {
    width: 100%;
}

.sc-option.sc-selected {
    border-color: var(--sc-primary);
    background: rgba(108, 92, 231, 0.2);
}

.sc-option.sc-selected::before {
    width: 100%;
    opacity: 0.25;
}

.sc-option-marker {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--sc-transition);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.sc-option.sc-selected .sc-option-marker {
    border-color: var(--sc-primary);
    background: var(--sc-primary);
}

.sc-option.sc-selected .sc-option-marker::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.sc-option-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Navigation buttons */
.sc-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.sc-btn-nav {
    padding: 15px 30px;
    font-size: 1rem;
}

.sc-btn-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   LOADING & CALCULATING STATES
   ============================================ */
.sc-loading {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 40px;
    animation: sc-reveal 1s ease-out;
}

.sc-loading-orb {
    width: 150px;
    height: 150px;
    margin: 0 auto 40px;
    background: linear-gradient(135deg, var(--sc-primary), var(--sc-accent), var(--sc-success));
    border-radius: 50%;
    animation: sc-morph 8s ease-in-out infinite, sc-pulse-glow 2s ease-in-out infinite;
    position: relative;
}

.sc-loading-orb::before {
    content: '🔮';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    animation: sc-breathe 2s ease-in-out infinite;
}

.sc-loading-text {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}

.sc-loading-subtext {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.sc-loading-dots {
    display: inline-flex;
    gap: 8px;
}

.sc-loading-dots span {
    width: 10px;
    height: 10px;
    background: var(--sc-primary);
    border-radius: 50%;
    animation: sc-float 1.5s ease-in-out infinite;
}

.sc-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.sc-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ============================================
   RESULTS DISPLAY
   ============================================ */
.sc-results {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    animation: sc-reveal 1.2s ease-out;
}

.sc-results-header {
    text-align: center;
    margin-bottom: 50px;
}

.sc-results-title {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.sc-archetype-reveal {
    animation: sc-scale-in 1s ease-out 0.3s both;
}

.sc-archetype-icon {
    font-size: 100px;
    margin-bottom: 20px;
    display: block;
    animation: sc-float 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.sc-archetype-name {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.sc-archetype-title {
    font-size: 1.4rem;
    color: var(--sc-secondary);
    font-style: italic;
    margin-bottom: 30px;
}

.sc-archetype-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Results grid */
.sc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.sc-result-card {
    background: var(--sc-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sc-glass-border);
    border-radius: var(--sc-radius);
    padding: 35px;
    animation: sc-slide-up 0.6s ease-out both;
}

.sc-result-card:nth-child(1) { animation-delay: 0.1s; }
.sc-result-card:nth-child(2) { animation-delay: 0.2s; }
.sc-result-card:nth-child(3) { animation-delay: 0.3s; }
.sc-result-card:nth-child(4) { animation-delay: 0.4s; }

.sc-result-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.sc-result-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--sc-primary), var(--sc-secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sc-result-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

/* Trait bars */
.sc-trait-item {
    margin-bottom: 25px;
}

.sc-trait-item:last-child {
    margin-bottom: 0;
}

.sc-trait-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.sc-trait-labels span:last-child {
    color: var(--sc-secondary);
}

.sc-trait-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.sc-trait-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.sc-trait-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sc-trait-dimension {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Strengths & Challenges lists */
.sc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sc-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    animation: sc-slide-in-right 0.5s ease-out both;
}

.sc-list li:last-child {
    border-bottom: none;
}

.sc-list li:nth-child(1) { animation-delay: 0.1s; }
.sc-list li:nth-child(2) { animation-delay: 0.2s; }
.sc-list li:nth-child(3) { animation-delay: 0.3s; }
.sc-list li:nth-child(4) { animation-delay: 0.4s; }

.sc-list-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sc-strengths .sc-list-icon { color: var(--sc-success); }
.sc-challenges .sc-list-icon { color: var(--sc-warning); }

/* Element badge */
.sc-element-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-top: 20px;
}

.sc-element-badge.fire { background: linear-gradient(135deg, #E17055, #FDCB6E); }
.sc-element-badge.water { background: linear-gradient(135deg, #00CEC9, #81ECEC); }
.sc-element-badge.earth { background: linear-gradient(135deg, #00B894, #55EFC4); }
.sc-element-badge.air { background: linear-gradient(135deg, #74B9FF, #A29BFE); }

/* ============================================
   SOUL CARD (PROFILE DISPLAY)
   ============================================ */
.sc-soul-card {
    position: relative;
    max-width: 420px;
    margin: 40px auto;
    padding: 40px;
    border-radius: var(--sc-radius-lg);
    overflow: hidden;
    animation: sc-scale-in 0.8s ease-out;
}

.sc-soul-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent,
        transparent
    );
    animation: sc-rotate-gradient 4s linear infinite;
}

.sc-soul-card-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.sc-soul-card-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.sc-soul-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-soul-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.sc-soul-card-archetype {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.sc-soul-card-archetype-icon {
    font-size: 2rem;
    margin-right: 10px;
    vertical-align: middle;
}

.sc-soul-card-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.sc-trait-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
    backdrop-filter: blur(5px);
}

/* ============================================
   PROFILE BADGE
   ============================================ */
.sc-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: sc-pulse-glow 3s ease-in-out infinite;
}

.sc-badge-icon {
    font-size: 1.2em;
}

/* Mini badge */
.sc-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

/* ============================================
   COMPATIBILITY VIEW
   ============================================ */
.sc-compatibility {
    text-align: center;
    padding: 40px;
    background: var(--sc-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--sc-radius);
    animation: sc-scale-in 0.6s ease-out;
}

.sc-compatibility-score {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--sc-primary), var(--sc-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: sc-number-count 1s ease-out;
}

.sc-compatibility-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.sc-compatibility-avatars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -20px;
    margin-bottom: 30px;
}

.sc-compatibility-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.sc-compatibility-avatar:nth-child(2) {
    margin-left: -20px;
}

/* ============================================
   ACTION BUTTONS & CONTROLS
   ============================================ */
.sc-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.sc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--sc-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--sc-glass-border);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--sc-transition);
}

.sc-share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   LOGIN REQUIRED STATE
   ============================================ */
.sc-login-required {
    text-align: center;
    padding: 80px 40px;
    background: var(--sc-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--sc-radius-lg);
    max-width: 500px;
    margin: 40px auto;
    color: #fff;
    font-size: 1.2rem;
}

/* ============================================
   NO RESULTS STATE
   ============================================ */
.sc-no-results {
    text-align: center;
    padding: 60px 40px;
    background: var(--sc-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--sc-radius);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .sc-container {
        padding: 20px 15px;
    }

    .sc-question-card {
        padding: 30px 25px;
    }

    .sc-option {
        padding: 18px 20px;
    }

    .sc-option-text {
        font-size: 1rem;
    }

    .sc-nav-buttons {
        flex-direction: column;
    }

    .sc-btn-nav {
        width: 100%;
        justify-content: center;
    }

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

    .sc-welcome-icon {
        font-size: 80px;
    }

    .sc-archetype-icon {
        font-size: 70px;
    }

    .sc-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   CONFETTI CELEBRATION
   ============================================ */
.sc-confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.sc-confetti-piece {
    position: absolute;
    bottom: -20px;
    width: 15px;
    height: 15px;
    animation: sc-confetti 3s ease-out forwards;
}

/* ============================================
   TOOLTIP STYLES
   ============================================ */
.sc-tooltip {
    position: relative;
}

.sc-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 10px 15px;
    background: var(--sc-dark);
    color: #fff;
    font-size: 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--sc-transition);
    z-index: 100;
}

.sc-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   PRIVACY TOGGLE
   ============================================ */
.sc-privacy-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--sc-radius);
}

.sc-toggle {
    position: relative;
    width: 60px;
    height: 32px;
}

.sc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    transition: var(--sc-transition);
}

.sc-toggle-slider::before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background: #fff;
    border-radius: 50%;
    transition: var(--sc-transition);
}

.sc-toggle input:checked + .sc-toggle-slider {
    background: var(--sc-success);
}

.sc-toggle input:checked + .sc-toggle-slider::before {
    transform: translateX(28px);
}

.sc-privacy-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* ============================================
   DIMENSION WHEEL (SVG ANIMATION)
   ============================================ */
.sc-dimension-wheel {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 40px auto;
}

.sc-wheel-segment {
    transition: var(--sc-transition);
    cursor: pointer;
}

.sc-wheel-segment:hover {
    filter: brightness(1.2);
    transform-origin: center;
    transform: scale(1.05);
}

/* ============================================
   DARK MODE OVERRIDE (for light themes)
   ============================================ */
.sc-light-mode .sc-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.sc-light-mode .sc-container::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(108, 92, 231, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(253, 121, 168, 0.08) 0%, transparent 50%);
}

.sc-light-mode .sc-question-card,
.sc-light-mode .sc-result-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.sc-light-mode .sc-question-text,
.sc-light-mode .sc-result-card-title {
    color: var(--sc-dark);
}

.sc-light-mode .sc-option-text {
    color: var(--sc-dark);
}

/* ============================================
   GUEST LANDING PAGE
   ============================================ */
.sc-guest-landing {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: var(--sc-radius-lg);
    overflow: hidden;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-guest-landing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(108, 92, 231, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(253, 121, 168, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(162, 155, 254, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.sc-guest-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.sc-guest-particles .sc-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--sc-primary), var(--sc-accent));
    border-radius: 50%;
    opacity: 0.5;
    animation: sc-particle-float 8s ease-in-out infinite;
}

.sc-guest-particles .sc-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.sc-guest-particles .sc-particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 1s; }
.sc-guest-particles .sc-particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 2s; }
.sc-guest-particles .sc-particle:nth-child(4) { left: 40%; top: 60%; animation-delay: 3s; }
.sc-guest-particles .sc-particle:nth-child(5) { left: 50%; top: 30%; animation-delay: 4s; }
.sc-guest-particles .sc-particle:nth-child(6) { left: 60%; top: 70%; animation-delay: 5s; }
.sc-guest-particles .sc-particle:nth-child(7) { left: 70%; top: 25%; animation-delay: 6s; }
.sc-guest-particles .sc-particle:nth-child(8) { left: 80%; top: 55%; animation-delay: 7s; }
.sc-guest-particles .sc-particle:nth-child(9) { left: 90%; top: 85%; animation-delay: 0.5s; }
.sc-guest-particles .sc-particle:nth-child(10) { left: 15%; top: 45%; animation-delay: 1.5s; }
.sc-guest-particles .sc-particle:nth-child(11) { left: 85%; top: 35%; animation-delay: 2.5s; }
.sc-guest-particles .sc-particle:nth-child(12) { left: 45%; top: 90%; animation-delay: 3.5s; }
.sc-guest-particles .sc-particle:nth-child(13) { left: 75%; top: 15%; animation-delay: 4.5s; }
.sc-guest-particles .sc-particle:nth-child(14) { left: 25%; top: 65%; animation-delay: 5.5s; }
.sc-guest-particles .sc-particle:nth-child(15) { left: 55%; top: 50%; animation-delay: 6.5s; }

@keyframes sc-particle-float {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        opacity: 0.4; 
    }
    50% { 
        transform: translateY(-30px) scale(1.2); 
        opacity: 0.7; 
    }
}

.sc-guest-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    width: 100%;
}

.sc-guest-icon {
    margin-bottom: 24px;
}

.sc-compass-icon {
    font-size: 72px;
    display: inline-block;
    animation: sc-float 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(108, 92, 231, 0.5));
}

.sc-guest-title {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, #fff 0%, var(--sc-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sc-guest-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.sc-guest-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.sc-guest-feature {
    background: var(--sc-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--sc-glass-border);
    border-radius: var(--sc-radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--sc-transition);
}

.sc-guest-feature:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.sc-feature-icon {
    font-size: 24px;
}

.sc-feature-text {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.sc-guest-archetypes {
    margin-bottom: 40px;
}

.sc-guest-archetypes h3 {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    font-weight: 500;
}

.sc-archetype-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.sc-archetype-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--sc-transition);
    cursor: default;
}

.sc-archetype-mini:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.sc-archetype-mini-icon {
    font-size: 16px;
}

.sc-archetype-mini-name {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sc-guest-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--sc-transition);
    border: none;
    min-width: 180px;
}

.sc-btn-primary {
    background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-accent) 100%);
    color: #fff;
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

.sc-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.5);
    color: #fff;
}

.sc-btn-secondary {
    background: var(--sc-glass);
    backdrop-filter: blur(10px);
    border: 2px solid var(--sc-glass-border);
    color: #fff;
}

.sc-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    color: #fff;
}

.sc-guest-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Guest Landing Responsive */
@media (max-width: 768px) {
    .sc-guest-landing {
        padding: 40px 24px;
        min-height: auto;
    }
    
    .sc-compass-icon {
        font-size: 56px;
    }
    
    .sc-guest-title {
        font-size: 28px;
    }
    
    .sc-guest-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .sc-guest-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .sc-archetype-preview {
        gap: 8px;
    }
    
    .sc-archetype-mini {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .sc-guest-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .sc-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ============================================
   NO RESULTS MESSAGE
   ============================================ */
.sc-no-results {
    background: var(--sc-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--sc-glass-border);
    border-radius: var(--sc-radius);
    padding: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}
