/* ==========================================================
   DREAM XV BRAND STYLE SYSTEM v1.1
   ========================================================== */

:root {
    /* Color Palette */
    --void-navy: #0C1A2E;
    --cosmos: #112240;
    --lunar-gold: #C47D1A;
    --sunrise-amber: #E8A030;
    --earth-teal: #1B8A7A;
    --starlight: #F0E8D0;
    --atmosphere: #0D4A5A;
    --crescent-rim: #FFD580;
    --deep-space: #070E1A;
    --nebula-mist: #1A3048;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    /* Transitions & Motion */
    --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: 300ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Spacing System (Base 4px) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
    --space-32: 128px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--deep-space);
}

body {
    background-color: var(--deep-space);
    color: var(--starlight);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Scales */
.display-xl {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.display-lg {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--starlight);
}

h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
}

.body-large {
    font-size: 18px;
    line-height: 1.7;
}

.body-text {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(240, 232, 208, 0.85);
}

.label-text {
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ==========================================================
   CINEMATIC LOADING SCREEN
   ========================================================== */

.loading-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--deep-space);
    z-index: 9999;
    transition: opacity var(--transition-slow);
}

.loading-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-container video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100dvh;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.overlay-elements {
    position: absolute;
    bottom: 10vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.loading-indicator {
    width: 220px;
    height: 3px;
    background: rgba(240, 232, 208, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.loading-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--lunar-gold), var(--sunrise-amber));
    animation: loading-fill 10s linear forwards;
}

@keyframes loading-fill {
    from { width: 0%; }
    to { width: 100%; }
}

/* ==========================================================
   WEBSITE CONTENT LAYOUT
   ========================================================== */

#main-content {
    position: relative;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Glassmorphic Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    background: rgba(12, 26, 46, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 48, 72, 0.3);
    transition: var(--transition-medium);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
}

.brand-logo {
    animation: pulse-logo 4s ease-in-out infinite alternate;
}

@keyframes pulse-logo {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(232, 160, 48, 0.2)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(232, 160, 48, 0.5)); }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--starlight);
}

.logo-text .accent-text {
    color: var(--sunrise-amber);
}

.nav-links {
    display: flex;
    gap: var(--space-8);
}

.nav-link {
    text-decoration: none;
    color: rgba(240, 232, 208, 0.75);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--sunrise-amber);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(27, 138, 122, 0.12), transparent 50%),
                radial-gradient(circle at bottom left, rgba(12, 26, 46, 0.95), var(--deep-space));
    padding-top: 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(26, 48, 72, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(26, 48, 72, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    font-family: var(--font-code);
    font-size: 12px;
    letter-spacing: 0.25em;
    color: var(--earth-teal);
    margin-bottom: var(--space-4);
    background: rgba(27, 138, 122, 0.1);
    padding: var(--space-1) var(--space-3);
    border-radius: 20px;
    border: 1px solid rgba(27, 138, 122, 0.25);
}

.gradient-text {
    background: linear-gradient(135deg, var(--lunar-gold), var(--crescent-rim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    margin-top: var(--space-6);
    margin-bottom: var(--space-12);
    color: rgba(240, 232, 208, 0.8);
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 16px 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-medium);
}

.btn-primary {
    background: linear-gradient(135deg, var(--lunar-gold), var(--sunrise-amber));
    color: var(--void-navy);
    border: none;
    box-shadow: 0 4px 20px rgba(196, 125, 26, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 160, 30, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--starlight);
    border: 2px solid var(--lunar-gold);
}

.btn-secondary:hover {
    background: rgba(196, 125, 26, 0.08);
    border-color: var(--sunrise-amber);
    transform: translateY(-2px);
}

/* Sections Setup */
.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.section-number {
    font-family: var(--font-code);
    font-size: 18px;
    color: var(--lunar-gold);
    border-bottom: 2px solid var(--earth-teal);
    padding-bottom: 2px;
}

.section-title {
    font-size: 32px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Story Section */
.story-section {
    padding: var(--space-32) 0;
    background: linear-gradient(180deg, var(--deep-space) 0%, var(--void-navy) 100%);
    border-bottom: 1px solid rgba(26, 48, 72, 0.3);
}

.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-16);
    align-items: center;
}

.story-lead {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: var(--space-6);
    color: var(--sunrise-amber);
}

.story-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.story-meta-card {
    background: rgba(17, 34, 64, 0.4);
    border: 1px solid rgba(26, 48, 72, 0.6);
    padding: var(--space-6);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: var(--transition-medium);
}

.story-meta-card:hover {
    border-color: var(--earth-teal);
    transform: translateX(8px);
}

.meta-label {
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--earth-teal);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.meta-value {
    font-size: 16px;
    color: var(--starlight);
}

/* Principles Section */
.principles-section {
    padding: var(--space-32) 0;
    background: var(--deep-space);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.principle-card {
    background: var(--cosmos);
    border: 1px solid rgba(26, 48, 72, 0.5);
    padding: var(--space-8);
    border-radius: 8px;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.principle-card:hover {
    transform: translateY(-8px);
    border-color: var(--lunar-gold);
    box-shadow: 0 10px 30px rgba(12, 26, 46, 0.5);
}

.principle-icon {
    color: var(--sunrise-amber);
    margin-bottom: var(--space-6);
}

.principle-title {
    margin-bottom: var(--space-4);
    font-size: 22px;
    font-weight: 600;
}

.principle-desc {
    color: rgba(240, 232, 208, 0.75);
    font-size: 15px;
    line-height: 1.6;
}

/* Studio Section */
.studio-section {
    padding: var(--space-32) 0;
    background: linear-gradient(180deg, var(--deep-space) 0%, var(--void-navy) 100%);
    text-align: center;
}

.studio-card {
    position: relative;
    background: radial-gradient(circle at top left, rgba(27, 138, 122, 0.1), transparent), var(--cosmos);
    border: 1px solid rgba(26, 48, 72, 0.8);
    border-radius: 12px;
    padding: var(--space-16) var(--space-8);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.studio-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(196, 125, 26, 0.05), transparent 45%);
    pointer-events: none;
}

.studio-card h2 {
    margin-bottom: var(--space-4);
}

.studio-features {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.feature-tag {
    font-family: var(--font-code);
    font-size: 13px;
    background: rgba(26, 48, 72, 0.5);
    border: 1px solid rgba(27, 138, 122, 0.2);
    color: var(--starlight);
    padding: var(--space-2) var(--space-4);
    border-radius: 4px;
}

/* Footer */
.footer {
    background: var(--deep-space);
    border-top: 1px solid rgba(26, 48, 72, 0.5);
    padding: var(--space-12) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 14px;
    color: rgba(240, 232, 208, 0.6);
    letter-spacing: 0.1em;
}

.footer-creed {
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--earth-teal);
    letter-spacing: 0.05em;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(240, 232, 208, 0.4);
    margin-top: var(--space-4);
}

/* ==========================================================
   MOBILE RESPONSIVENESS
   ========================================================== */

@media (max-width: 768px) {
    .display-xl {
        font-size: 42px;
    }

    .display-lg {
        font-size: 32px;
    }

    .hero-section {
        min-height: 85dvh;
        padding-top: 80px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--space-3);
    }

    .btn {
        width: 100%;
    }

    .nav-links {
        display: none; /* Can expand into hamburger menu if needed */
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .story-lead {
        font-size: 22px;
    }
    
    .loading-container video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .loading-indicator {
        width: 158px;
    }
}

/* ==========================================================
   TERMS & CONDITIONS MODAL
   ========================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

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

.modal-content {
    background: var(--cosmos);
    border: 1px solid rgba(26, 48, 72, 0.8);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: modal-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-slide-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid rgba(26, 48, 72, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 26, 46, 0.5);
}

.modal-header h3 {
    font-size: 20px;
    color: var(--sunrise-amber);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--starlight);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--lunar-gold);
}

.modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: rgba(240, 232, 208, 0.8);
    scrollbar-width: thin;
    scrollbar-color: var(--lunar-gold) var(--cosmos);
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--cosmos);
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--lunar-gold);
    border-radius: 3px;
}

.modal-body h4 {
    color: var(--starlight);
    margin-top: var(--space-6);
    margin-bottom: var(--space-2);
    font-size: 17px;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: var(--space-4);
}

.modal-body ul {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}

.modal-body li {
    margin-bottom: var(--space-2);
}

.modal-body hr {
    border: 0;
    border-top: 1px solid rgba(26, 48, 72, 0.5);
    margin: var(--space-6) 0;
}

.meta-date {
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--earth-teal);
    margin-bottom: var(--space-6) !important;
}

.modal-body a {
    color: var(--sunrise-amber);
    text-decoration: none;
    transition: var(--transition-fast);
}

.modal-body a:hover {
    text-decoration: underline;
    color: var(--lunar-gold);
}

.footer-note {
    font-style: italic;
    text-align: center;
    color: var(--starlight);
    margin-top: var(--space-4);
    font-size: 14px;
}

.hidden {
    display: none !important;
}

/* ==========================================================
   SPA VIEWS TRANSITION SETUP
   ========================================================== */

.view-panel {
    transition: opacity var(--transition-slow);
    opacity: 1;
}

/* ==========================================================
   GOOGLE AUTHENTICATION VIEW
   ========================================================== */

#auth-view {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, var(--cosmos) 0%, var(--deep-space) 100%);
    padding: var(--space-6);
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: rgba(17, 34, 64, 0.65);
    border: 1px solid rgba(26, 48, 72, 0.8);
    border-radius: 16px;
    padding: var(--space-12) var(--space-8);
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(7, 14, 26, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: var(--space-6);
    border: 2px solid var(--lunar-gold);
    animation: pulse-logo 4s ease-in-out infinite alternate;
}

.auth-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--space-2);
    letter-spacing: -0.01em;
}

.auth-subtitle {
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--earth-teal);
    margin-bottom: var(--space-8);
    letter-spacing: 0.1em;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    background: #FFFFFF;
    color: #0C1A2E;
    border: none;
    border-radius: 4px;
    padding: 14px var(--space-6);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-medium);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-btn:hover {
    background: #F5F5F5;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.google-icon {
    flex-shrink: 0;
}

/* Account Chooser Dialog */
#account-chooser {
    width: 100%;
    margin-top: var(--space-8);
    border-top: 1px solid rgba(26, 48, 72, 0.6);
    padding-top: var(--space-6);
    text-align: left;
    animation: modal-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chooser-header {
    margin-bottom: var(--space-4);
    display: flex;
    flex-direction: column;
}

.chooser-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--starlight);
}

.chooser-domain {
    font-size: 12px;
    color: rgba(240, 232, 208, 0.5);
}

.account-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.account-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3);
    border-radius: 6px;
    background: rgba(26, 48, 72, 0.3);
    border: 1px solid rgba(26, 48, 72, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.account-item:hover {
    background: rgba(27, 138, 122, 0.1);
    border-color: var(--earth-teal);
}

.avatar-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--lunar-gold);
    color: var(--void-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.account-info {
    display: flex;
    flex-direction: column;
}

.account-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--starlight);
}

.account-email {
    font-size: 12px;
    color: rgba(240, 232, 208, 0.6);
}

.custom-account-btn {
    font-size: 13px;
    color: var(--sunrise-amber);
    cursor: pointer;
    text-align: center;
    margin-bottom: var(--space-4);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.custom-account-btn:hover {
    color: var(--lunar-gold);
}

#custom-account-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    background: rgba(7, 14, 26, 0.3);
    padding: var(--space-4);
    border-radius: 6px;
    border: 1px solid rgba(26, 48, 72, 0.4);
    animation: modal-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#custom-account-form input {
    background: var(--void-navy);
    border: 1px solid rgba(26, 48, 72, 0.8);
    padding: 10px var(--space-4);
    border-radius: 4px;
    color: var(--starlight);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

#custom-account-form input:focus {
    border-color: var(--lunar-gold);
}

/* ==========================================================
   ONBOARDING EXPERIENCE VIEW
   ========================================================== */

#onboarding-view {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, var(--void-navy) 0%, var(--deep-space) 100%);
    padding: var(--space-6);
}

.onboarding-container {
    width: 100%;
    max-width: 600px;
}

.onboard-step {
    transition: opacity var(--transition-slow);
}

.cinematic-text-wrapper {
    margin-bottom: var(--space-12);
    text-align: center;
}

.cinematic-text-wrapper h2 {
    font-size: 40px;
    margin-bottom: var(--space-4);
}

.cinematic-text-wrapper p {
    font-size: 20px;
    color: rgba(240, 232, 208, 0.75);
}

/* Step Reveal Animations */
.fade-line {
    opacity: 0;
    transform: translateY(10px);
    animation: fade-up-line 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.8s; }
.delay-2 { animation-delay: 2s; }
.delay-3 { animation-delay: 3.2s; }

@keyframes fade-up-line {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#start-onboard-btn {
    display: block;
    margin: 0 auto;
    opacity: 0;
    animation: fade-up-line 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Onboarding Quiz Styles */
.quiz-progress-wrapper {
    margin-bottom: var(--space-8);
}

.progress-step-text {
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--earth-teal);
    display: block;
    margin-bottom: var(--space-2);
}

.quiz-progress {
    width: 100%;
    height: 4px;
    background: rgba(26, 48, 72, 0.6);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lunar-gold), var(--sunrise-amber));
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#onboard-quiz h3 {
    font-size: 26px;
    margin-bottom: var(--space-6);
}

.question-subtitle {
    font-size: 13px;
    color: rgba(240, 232, 208, 0.5);
    margin-top: -16px;
    margin-bottom: var(--space-6);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    border-radius: 8px;
    background: var(--cosmos);
    border: 1px solid rgba(26, 48, 72, 0.8);
    cursor: pointer;
    transition: var(--transition-medium);
}

.quiz-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.quiz-option span {
    font-size: 16px;
    font-weight: 500;
    color: rgba(240, 232, 208, 0.8);
    position: relative;
    padding-left: var(--space-6);
    display: inline-block;
}

/* Radio circle fallback styling */
.quiz-option span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(240, 232, 208, 0.3);
    background: transparent;
    transition: var(--transition-fast);
}

.quiz-option input:checked + span::before {
    border-color: var(--sunrise-amber);
    background: var(--sunrise-amber);
    box-shadow: 0 0 10px rgba(232, 160, 48, 0.4);
}

/* Checkbox box fallback styling */
.quiz-option.checkbox span::before {
    border-radius: 3px;
}

.quiz-option:hover {
    border-color: var(--lunar-gold);
    background: rgba(17, 34, 64, 0.8);
}

.quiz-option input:checked + span {
    color: var(--starlight);
}

.quiz-nav {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-4);
}

/* ==========================================================
   DASHBOARD VIEW
   ========================================================== */

#dashboard-view {
    min-height: 100dvh;
    background-color: var(--deep-space);
}

/* Dashboard Top Nav */
.dashboard-navbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(12, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 48, 72, 0.5);
    height: 80px;
}

.user-menu-container {
    position: relative;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    padding: var(--space-2) var(--space-3);
    border-radius: 30px;
    background: rgba(26, 48, 72, 0.3);
    border: 1px solid rgba(26, 48, 72, 0.5);
    transition: var(--transition-fast);
}

.user-profile-trigger:hover {
    border-color: var(--earth-teal);
    background: rgba(26, 48, 72, 0.5);
}

.chevron-icon {
    color: rgba(240, 232, 208, 0.5);
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    width: 240px;
    background: var(--cosmos);
    border: 1px solid rgba(26, 48, 72, 0.8);
    border-radius: 8px;
    padding: var(--space-4) 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modal-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-user-info {
    padding: var(--space-2) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-user-info span {
    font-size: 13px;
    color: rgba(240, 232, 208, 0.8);
    word-break: break-all;
}

.account-created-date {
    font-family: var(--font-code);
    font-size: 11px !important;
    color: var(--earth-teal) !important;
}

.profile-dropdown hr {
    border: 0;
    border-top: 1px solid rgba(26, 48, 72, 0.5);
    margin: var(--space-2) 0;
}

.dropdown-item {
    display: block;
    padding: var(--space-2) var(--space-4);
    color: var(--starlight);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(27, 138, 122, 0.1);
    color: var(--sunrise-amber);
}

/* Dashboard Content Layout */
.dashboard-main {
    padding-top: var(--space-8);
    padding-bottom: var(--space-16);
}

.dashboard-welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(17, 34, 64, 0.6) 0%, rgba(12, 26, 46, 0.2) 100%);
    border: 1px solid rgba(26, 48, 72, 0.4);
    border-radius: 16px;
    padding: var(--space-8) var(--space-12);
    margin-bottom: var(--space-8);
}

.dashboard-tagline {
    font-family: var(--font-code);
    font-size: 14px;
    color: var(--lunar-gold);
    letter-spacing: 0.15em;
    margin-top: var(--space-2);
}

.large-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--lunar-gold);
    color: var(--void-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 36px;
    border: 3px solid rgba(240, 232, 208, 0.2);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--space-8);
}

.dashboard-section-card {
    background: var(--cosmos);
    border: 1px solid rgba(26, 48, 72, 0.5);
    border-radius: 12px;
    padding: var(--space-6) var(--space-8);
    margin-bottom: var(--space-6);
}

.dashboard-section-title {
    font-size: 20px;
    font-weight: 600;
    border-left: 3px solid var(--earth-teal);
    padding-left: var(--space-3);
    margin-bottom: var(--space-6);
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
}

.action-card {
    background: rgba(7, 14, 26, 0.4);
    border: 1px solid rgba(26, 48, 72, 0.6);
    border-radius: 8px;
    padding: var(--space-4);
    cursor: pointer;
    transition: var(--transition-medium);
}

.action-card:hover {
    border-color: var(--sunrise-amber);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.action-icon {
    color: var(--lunar-gold);
    margin-bottom: var(--space-3);
}

.action-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.action-card p {
    font-size: 12px;
    color: rgba(240, 232, 208, 0.6);
    line-height: 1.4;
}

/* Recent Projects Empty State */
.projects-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-6);
    text-align: center;
}

.empty-state-icon {
    color: rgba(240, 232, 208, 0.15);
    margin-bottom: var(--space-4);
}

.empty-state-text {
    font-size: 15px;
    color: rgba(240, 232, 208, 0.6);
}

/* Right Panels */
.dashboard-panel-card {
    background: var(--cosmos);
    border: 1px solid rgba(26, 48, 72, 0.5);
    border-radius: 12px;
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

/* Agent Status List */
.agent-status-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.agent-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: rgba(7, 14, 26, 0.3);
    border: 1px solid rgba(26, 48, 72, 0.5);
    border-radius: 6px;
}

.agent-role {
    font-size: 13px;
    color: var(--starlight);
}

.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px var(--space-3);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-running {
    background: rgba(232, 160, 48, 0.1);
    color: var(--sunrise-amber);
    border: 1px solid rgba(232, 160, 48, 0.25);
}

.status-ready {
    background: rgba(27, 138, 122, 0.1);
    color: var(--earth-teal);
    border: 1px solid rgba(27, 138, 122, 0.25);
}

.status-completed {
    background: rgba(240, 232, 208, 0.05);
    color: rgba(240, 232, 208, 0.5);
    border: 1px solid rgba(240, 232, 208, 0.15);
}

/* AI Providers List */
.providers-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.provider-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: rgba(7, 14, 26, 0.3);
    border: 1px solid rgba(26, 48, 72, 0.5);
    border-radius: 6px;
    transition: var(--transition-fast);
}

.provider-name {
    font-size: 13px;
    color: var(--starlight);
}

.connection-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px var(--space-3);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-connected {
    background: rgba(27, 138, 122, 0.1);
    color: var(--earth-teal);
    border: 1px solid rgba(27, 138, 122, 0.25);
}

.status-inactive {
    background: rgba(26, 48, 72, 0.3);
    color: rgba(240, 232, 208, 0.3);
    border: 1px solid rgba(26, 48, 72, 0.4);
}

/* ==========================================================
   DASHBOARD MOBILE RESPONSIVENESS
   ========================================================== */

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .dashboard-welcome-banner {
        padding: var(--space-6);
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .large-avatar-placeholder {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* ==========================================================
   SPINNER & PROJECT LIST STYLES
   ========================================================== */

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.project-list-card {
    background: rgba(17, 34, 64, 0.4);
    border: 1px solid rgba(26, 48, 72, 0.6);
    border-radius: 8px;
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-medium);
    cursor: pointer;
}

.project-list-card:hover {
    border-color: var(--lunar-gold);
    transform: translateX(4px);
    background: rgba(17, 34, 64, 0.6);
}

.project-list-card .project-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--starlight);
}

.project-list-card .project-date {
    font-family: var(--font-code);
    font-size: 11px;
    color: rgba(240, 232, 208, 0.5);
}

.project-list-card .project-status {
    font-family: var(--font-code);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(27, 138, 122, 0.15);
    color: var(--earth-teal);
    border: 1px solid rgba(27, 138, 122, 0.3);
}

/* Settings toast notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--cosmos);
    border: 1px solid rgba(26, 48, 72, 0.8);
    border-radius: 8px;
    padding: var(--space-4) var(--space-6);
    color: var(--starlight);
    font-family: var(--font-body);
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}