/* ================================
   DocLabs - Main Stylesheet
   2026 Modern Medical Education SaaS
   ================================ */

/* CSS Variables */
:root {
    /* Primary Colors */
    --blue-primary: #0046AD;
    --blue-light: #3380FF;
    --blue-dark: #002E73;
    --blue-subtle: rgba(0, 70, 173, 0.08);

    /* Success (only for correct/success states) */
    --green-success: #33CC00;
    --green-accent: #00E676;

    /* Background */
    --cream-bg: #FAF9F6;
    --cream-light: #FFFFFF;
    --cream-dark: #F5F4F1;

    /* Text */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #8A8A8A;

    /* Accents */
    --red-error: #FF3B30;
    --orange-warning: #FF9500;

    /* Borders & Shadows */
    --border-subtle: rgba(0, 70, 173, 0.1);
    --border-emphasis: rgba(0, 70, 173, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 70, 173, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 70, 173, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 70, 173, 0.12);
    --shadow-glow: 0 0 20px rgba(0, 70, 173, 0.15);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;

    /* Fonts */
    --font-display-ar: 'Noto Kufi Arabic', sans-serif;
    --font-body-ar: 'Cairo', sans-serif;
    --font-display-en: 'Space Grotesk', sans-serif;
    --font-body-en: 'DM Sans', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body-ar);
    background-color: var(--cream-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display-ar);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--blue-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--blue-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body-ar);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--blue-primary);
    color: white;
    border-color: var(--blue-primary);
}

.btn-primary:hover {
    background: var(--blue-light);
    border-color: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background: var(--blue-primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--blue-subtle);
    color: var(--blue-primary);
}

.btn-white {
    background: white;
    color: var(--blue-primary);
    border-color: white;
}

.btn-white:hover {
    background: var(--cream-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: var(--space-lg) var(--space-xl);
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.btn-primary .btn-badge {
    background: rgba(255, 255, 255, 0.25);
}

/* ================================
   NAVIGATION
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--blue-primary);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-family: var(--font-display-en);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: var(--space-sm);
    padding-right: var(--space-sm);
    border-right: 1px solid var(--border-subtle);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--blue-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: var(--space-3xl);
    background: linear-gradient(180deg, var(--cream-bg) 0%, var(--cream-dark) 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230046AD' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--blue-subtle);
    color: var(--blue-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-headline {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subheadline {
    font-family: var(--font-body-en);
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.hero-subheadline strong {
    color: var(--blue-primary);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero-trust {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.trust-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.trust-logo {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--cream-light);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

/* Demo Window */
.hero-demo {
    position: relative;
}

.demo-window {
    background: var(--cream-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--cream-dark);
    border-bottom: 1px solid var(--border-subtle);
}

.demo-dots {
    display: flex;
    gap: 6px;
}

.demo-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-emphasis);
}

.demo-dots span:first-child {
    background: #FF5F56;
}

.demo-dots span:nth-child(2) {
    background: #FFBD2E;
}

.demo-dots span:last-child {
    background: #27CA40;
}

.demo-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.demo-content {
    padding: var(--space-xl);
    min-height: 320px;
}

.demo-upload,
.demo-processing,
.demo-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    border: 2px dashed var(--border-emphasis);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
}

.upload-zone:hover {
    border-color: var(--blue-primary);
    background: var(--blue-subtle);
}

.upload-icon {
    color: var(--blue-primary);
}

.upload-text {
    font-weight: 600;
    color: var(--text-primary);
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.sample-files {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
}

.sample-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.sample-file {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--cream-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
    font-family: inherit;
    font-size: 0.875rem;
}

.sample-file:hover {
    background: var(--blue-subtle);
    border-color: var(--blue-primary);
}

.sample-file svg {
    color: var(--blue-primary);
}

/* Processing Animation */
.processing-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

.processing-circle {
    position: absolute;
    inset: 0;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--blue-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.processing-text {
    font-weight: 600;
    color: var(--text-primary);
}

.processing-bar {
    width: 100%;
    height: 6px;
    background: var(--cream-dark);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.processing-fill {
    height: 100%;
    background: var(--blue-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* Results */
.result-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--cream-dark);
    border-radius: var(--radius-sm);
    width: 100%;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

.result-check {
    color: var(--green-success);
    font-size: 1.25rem;
    font-weight: 700;
}

.result-text strong {
    color: var(--blue-primary);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
}

/* ================================
   SECTIONS
   ================================ */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section-label {
    display: inline-block;
    background: var(--blue-subtle);
    color: var(--blue-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-family: var(--font-body-en);
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Problems Section */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.problem-card {
    background: var(--cream-light);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-primary);
}

.problem-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--blue-subtle);
    border-radius: var(--radius-md);
    color: var(--blue-primary);
    margin-bottom: var(--space-lg);
}

.problem-title {
    margin-bottom: var(--space-sm);
}

.problem-desc {
    font-family: var(--font-body-en);
    font-size: 0.9375rem;
}

/* How It Works */
.how-it-works {
    background: var(--cream-dark);
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-emphasis);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--blue-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.step-content {
    background: var(--cream-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    width: 100%;
}

.step-visual {
    margin-bottom: var(--space-md);
}

.step-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--blue-subtle);
    border-radius: var(--radius-md);
    color: var(--blue-primary);
}

.step-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.step-desc {
    font-family: var(--font-body-en);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.step-cost,
.step-badge {
    display: inline-block;
    background: var(--blue-subtle);
    color: var(--blue-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: var(--cream-light);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

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

.feature-card.large {
    grid-column: span 2;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--blue-subtle);
    border-radius: var(--radius-md);
    color: var(--blue-primary);
    margin-bottom: var(--space-lg);
}

.feature-title {
    font-family: var(--font-display-en);
    margin-bottom: var(--space-sm);
}

.feature-desc {
    font-family: var(--font-body-en);
}

/* Chat Preview */
.chat-preview {
    margin-top: var(--space-lg);
    background: var(--cream-dark);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.chat-bubble {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-family: var(--font-body-en);
    font-size: 0.9375rem;
}

.chat-bubble.user {
    background: var(--blue-primary);
    color: white;
    margin-left: 20%;
}

.chat-bubble.ai {
    background: var(--cream-light);
    border: 1px solid var(--border-subtle);
    margin-right: 10%;
}

.source-tag {
    display: inline-block;
    background: var(--blue-subtle);
    color: var(--blue-primary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    margin-top: var(--space-sm);
}

/* Pricing */
.pricing {
    background: var(--cream-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--cream-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 2px solid var(--border-subtle);
    position: relative;
    transition: all var(--transition-normal);
}

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

.pricing-card.popular {
    border-color: var(--blue-primary);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-primary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-name {
    font-family: var(--font-display-en);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.pricing-amount .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--blue-primary);
}

.pricing-amount .currency {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-credits {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pricing-savings {
    display: inline-block;
    background: var(--green-success);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    margin-top: var(--space-sm);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-features svg {
    color: var(--green-success);
    flex-shrink: 0;
}

.pricing-benefits {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.benefit {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
}

.benefit svg {
    color: var(--green-success);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.testimonial-card {
    background: var(--cream-light);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    border: 1px solid var(--border-subtle);
    border-right: 3px solid var(--blue-primary);
}

.testimonial-content {
    margin-bottom: var(--space-lg);
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--blue-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

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

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-detail {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    background: var(--cream-dark);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display-en);
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    position: relative;
    background: var(--blue-primary);
    color: white;
    text-align: center;
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-headline {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-subheadline {
    font-family: var(--font-body-en);
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    color: white;
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    opacity: 0.8;
}

.cta-trust span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--blue-primary);
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: white;
    font-family: var(--font-display-en);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-tagline {
    opacity: 0.8;
    color: white;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.footer-links a {
    display: block;
    color: white;
    opacity: 0.7;
    padding: var(--space-xs) 0;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.6;
    color: white;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    color: white;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ================================
   AUTH PAGES
   ================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: var(--cream-bg);
}

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

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    color: var(--blue-primary);
    font-family: var(--font-display-en);
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-logo .logo-icon {
    width: 40px;
    height: 40px;
}

.auth-card {
    background: var(--cream-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.auth-header p {
    font-family: var(--font-body-en);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
}

.form-input,
.form-select {
    padding: var(--space-md);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--blue-primary);
}

.auth-switch {
    text-align: center;
    margin-top: var(--space-lg);
    color: var(--text-secondary);
}

.auth-switch a,
.auth-switch button {
    color: var(--blue-primary);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
}

.alert {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.alert-error {
    background: rgba(255, 59, 48, 0.1);
    color: var(--red-error);
    border: 1px solid rgba(255, 59, 48, 0.2);
}

/* ================================
   DASHBOARD LAYOUT
   ================================ */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--cream-light);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--blue-primary);
    font-family: var(--font-display-en);
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-logo .logo-icon {
    width: 32px;
    height: 32px;
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: var(--blue-subtle);
    color: var(--blue-primary);
}

.nav-item.active {
    background: var(--blue-primary);
    color: white;
}

.sidebar-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--blue-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

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

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.user-credits {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.logout-btn {
    color: var(--text-muted);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.logout-btn:hover {
    background: var(--red-error);
    color: white;
}

.dashboard-main {
    flex: 1;
    margin-right: 260px;
    padding: var(--space-xl);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.header-title h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
}

.header-title p {
    color: var(--text-muted);
}

.header-credits {
    background: var(--blue-subtle);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
}

.credits-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.credits-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-primary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.stats-cards {
    grid-column: span 2;
    display: flex;
    gap: var(--space-lg);
}

.stat-card {
    flex: 1;
    background: var(--cream-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
}

.stat-info .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-info .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.dashboard-card {
    background: var(--cream-light);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.dashboard-card h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.empty-state .btn {
    margin-top: var(--space-lg);
}

/* Onboarding Page */
.onboarding-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--cream-bg) 0%, var(--cream-dark) 100%);
}

.onboarding-container {
    max-width: 600px;
    text-align: center;
}

.onboarding-header {
    margin-bottom: var(--space-2xl);
}

.onboarding-header .logo-icon.large {
    width: 80px;
    height: 80px;
    color: var(--blue-primary);
    margin-bottom: var(--space-lg);
}

.onboarding-header h1 {
    margin-bottom: var(--space-md);
}

.onboarding-content {
    background: var(--cream-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-subtle);
}

.onboarding-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.onboarding-step {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    text-align: right;
}

.onboarding-step .step-number {
    width: 40px;
    height: 40px;
    background: var(--blue-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-info h3 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.step-info p {
    font-size: 0.875rem;
}

.onboarding-credits-info {
    background: var(--blue-subtle);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: right;
}

.onboarding-credits-info h4 {
    margin-bottom: var(--space-md);
    color: var(--blue-primary);
}

.onboarding-credits-info ul {
    list-style: none;
}

.onboarding-credits-info li {
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
}

/* Chat Interface */
.chat-main {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.chat-header {
    flex-shrink: 0;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--cream-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: var(--space-lg);
    overflow-y: auto;
}

.chat-message {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.message-avatar {
    width: 40px;
    height: 40px;
    background: var(--blue-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.message-content {
    background: var(--cream-dark);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-body-en);
    max-width: 80%;
}

.message-content p {
    color: var(--text-primary);
}

.chat-input-container {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.chat-form {
    display: flex;
    gap: var(--space-md);
}

.chat-form input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: var(--font-body-en);
    font-size: 1rem;
}

.chat-form input:focus {
    outline: none;
    border-color: var(--blue-primary);
}

.chat-cost-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

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

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

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-trust {
        align-items: center;
    }

    .problems-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .steps-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-line {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card.large {
        grid-column: span 1;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .dashboard-main {
        margin-right: 0;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .steps-timeline {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .pricing-benefits {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .stats-cards {
        flex-direction: column;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   ONBOARDING FLOW
   ================================ */
.onboarding-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--cream-bg) 0%, var(--cream-dark) 100%);
}

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

.onboarding-progress {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--border-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--blue-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.onboarding-logo {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.onboarding-logo .logo-icon {
    width: 48px;
    height: 48px;
    color: var(--blue-primary);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
    transition: color var(--transition-fast);
}

.back-btn:hover {
    color: var(--blue-primary);
}

/* Chat-style onboarding cards */
.onboarding-card.chat-style {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: var(--space-lg);
}

.chat-message.bot {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeSlideIn 0.5s ease forwards;
}

.chat-message.bot.delay-1 {
    animation-delay: 0.5s;
}

.chat-message.bot.delay-2 {
    animation-delay: 1s;
}

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

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

.message-avatar {
    width: 48px;
    height: 48px;
    background: var(--blue-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.message-bubble {
    background: var(--cream-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    flex: 1;
}

.message-bubble h1,
.message-bubble h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.message-bubble p {
    margin-bottom: var(--space-sm);
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-bubble p.highlight {
    font-size: 1.125rem;
    color: var(--blue-primary);
}

.message-bubble .hint {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.message-bubble.celebrate {
    background: linear-gradient(135deg, var(--blue-subtle) 0%, rgba(51, 204, 0, 0.1) 100%);
    border-color: var(--green-success);
}

.message-bubble.sm {
    padding: var(--space-md);
}

.feature-list {
    list-style: none;
    margin-top: var(--space-md);
}

.feature-list li {
    padding: var(--space-sm) 0;
    color: var(--text-primary);
}

/* Choice Cards */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.choice-grid.years {
    grid-template-columns: repeat(4, 1fr);
}

.choice-grid.subjects {
    grid-template-columns: repeat(2, 1fr);
}

.choice-grid.goals {
    grid-template-columns: 1fr;
}

.choice-grid.styles {
    grid-template-columns: repeat(2, 1fr);
}

.choice-grid.horizontal {
    grid-template-columns: repeat(4, 1fr);
}

.choice-card {
    position: relative;
    cursor: pointer;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--cream-light);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    text-align: center;
}

.choice-card:hover .choice-content {
    border-color: var(--blue-primary);
    background: var(--blue-subtle);
}

.choice-card input:checked+.choice-content {
    border-color: var(--blue-primary);
    background: var(--blue-subtle);
    box-shadow: 0 0 0 3px rgba(0, 70, 173, 0.15);
}

.choice-icon {
    font-size: 2rem;
}

.year-card .choice-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-primary);
}

.choice-label {
    font-weight: 600;
    color: var(--text-primary);
}

.goal-card .choice-content {
    flex-direction: row;
    justify-content: flex-start;
    text-align: right;
}

.goal-card .choice-icon {
    font-size: 1.5rem;
}

.style-card .choice-content {
    padding: var(--space-md);
}

.style-card .choice-label {
    font-size: 0.875rem;
}

/* Multi-select subjects */
.subject-card .check-mark {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: var(--blue-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition-fast);
}

.subject-card input:checked~.check-mark {
    opacity: 1;
    transform: scale(1);
}

/* Credits Offer */
.credits-offer {
    margin-bottom: var(--space-xl);
}

.offer-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--cream-light) 0%, var(--blue-subtle) 100%);
    border: 2px solid var(--blue-primary);
    border-radius: var(--radius-lg);
    position: relative;
}

.offer-card.glow {
    box-shadow: var(--shadow-glow);
}

.offer-icon {
    font-size: 3rem;
}

.offer-content {
    flex: 1;
}

.offer-amount {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--blue-primary);
    line-height: 1;
}

.offer-label {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.offer-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-success);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.credits-breakdown {
    list-style: none;
    margin-top: var(--space-md);
}

.credits-breakdown li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.credits-breakdown li strong {
    color: var(--blue-primary);
}

.btn-celebrate {
    animation: celebrate 2s ease infinite;
}

@keyframes celebrate {

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

    50% {
        transform: scale(1.02);
    }
}

.credits-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
}

/* Charging Preview */
.charging-preview {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.charging-preview h4 {
    margin-bottom: var(--space-sm);
}

.charging-preview>p {
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.mini-packages {
    display: flex;
    gap: var(--space-md);
}

.mini-package {
    flex: 1;
    padding: var(--space-md);
    background: var(--cream-light);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    text-align: center;
}

.mini-package.popular {
    border-color: var(--blue-primary);
    background: var(--blue-subtle);
}

.pkg-name {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.pkg-credits {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pkg-price {
    display: block;
    font-weight: 700;
    color: var(--blue-primary);
}

/* Account Form */
.account-form .form-group {
    margin-bottom: var(--space-lg);
}

.account-form label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.account-form label .optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.account-form input,
.account-form select {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.account-form input:focus,
.account-form select:focus {
    outline: none;
    border-color: var(--blue-primary);
}

.field-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.terms-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
}

.terms-note a {
    color: var(--blue-primary);
}

.login-prompt {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.login-prompt span {
    color: var(--text-muted);
    margin-left: var(--space-sm);
}

.login-prompt a {
    font-weight: 600;
}

/* Style Section */
.style-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

/* Complete Page */
.celebrate-page {
    text-align: center;
}

.celebration-animation {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--blue-primary);
    animation: confetti-fall 3s ease-in infinite;
}

.confetti:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    background: var(--blue-primary);
}

.confetti:nth-child(2) {
    left: 30%;
    animation-delay: 0.5s;
    background: var(--green-success);
}

.confetti:nth-child(3) {
    left: 50%;
    animation-delay: 1s;
    background: var(--blue-light);
}

.confetti:nth-child(4) {
    left: 70%;
    animation-delay: 1.5s;
    background: var(--orange-warning);
}

.confetti:nth-child(5) {
    left: 90%;
    animation-delay: 2s;
    background: var(--blue-primary);
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.complete-content {
    position: relative;
    z-index: 1;
}

.complete-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
}

.complete-content h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.complete-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.credits-display {
    margin-bottom: var(--space-2xl);
}

.credits-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 100%);
    border-radius: 50%;
    color: white;
    box-shadow: var(--shadow-glow);
}

.credits-circle .credits-amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.credits-circle .credits-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.next-steps {
    background: var(--cream-light);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.next-steps h3 {
    margin-bottom: var(--space-lg);
}

.action-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.action-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--cream-dark);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-align: right;
    transition: all var(--transition-normal);
}

.action-card:hover {
    border-color: var(--blue-primary);
    background: var(--blue-subtle);
    transform: translateX(-4px);
}

.action-card.primary {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
    color: white;
}

.action-card.primary:hover {
    background: var(--blue-light);
    border-color: var(--blue-light);
}

.action-card.primary .action-desc {
    color: rgba(255, 255, 255, 0.8);
}

.action-icon {
    font-size: 2rem;
}

.action-title {
    display: block;
    font-weight: 700;
    font-size: 1.125rem;
}

.action-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* AGI Section */
.agi-section {
    background: var(--cream-dark);
}

.agi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.agi-card {
    background: var(--cream-light);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: all var(--transition-normal);
}

.agi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-primary);
}

.agi-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.agi-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.agi-card p {
    font-size: 0.875rem;
}

/* Onboarding Actions */
.onboarding-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Responsive Onboarding */
@media (max-width: 640px) {
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .choice-grid.years {
        grid-template-columns: repeat(2, 1fr);
    }

    .choice-grid.horizontal {
        grid-template-columns: repeat(2, 1fr);
    }

    .mini-packages {
        flex-direction: column;
    }

    .agi-grid {
        grid-template-columns: 1fr;
    }
}
/* SVG Icons Support */
.choice-icon.svg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
}

.choice-icon.svg-icon svg {
    width: 60%;
    height: 60%;
    stroke-width: 1.5;
    color: var(--blue-primary);
}

.major-card .choice-icon {
    font-size: unset;
}

.custom-subject-input {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--cream-light);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    animation: fadeSlideIn 0.3s ease;
}

.custom-subject-input.hidden {
    display: none;
}

.custom-subject-input label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.custom-subject-input input {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

/* Text Input Styling (Step 8) */
.text-input {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background-color: var(--cream-light);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    outline: none;
}

.text-input:focus {
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 4px var(--blue-subtle);
}

.text-input::placeholder {
    color: var(--text-muted);
}

/* --- Modern Onboarding Refinement (User Request) --- */

.onboarding-container {
    max-width: 900px !important; /* Wider canvas */
}

/* Horizontal Scroll Layout */
.choice-grid {
    /* Default grid is usually fine, but let's make it responsive grid by default and use horizontal for specific requested sections if needed */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding: 8px;
}

/* Specific horizontal style requested for Years/Preferences */
.horizontal-scroll-layout {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 16px 4px;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
}

.horizontal-scroll-layout::-webkit-scrollbar {
    height: 6px;
}
.horizontal-scroll-layout::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.horizontal-scroll-layout .choice-card {
    min-width: 160px;
    max-width: 180px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Enhanced Choice Cards */
.choice-card {
    position: relative;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy */
}

.choice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--blue-light);
}

.choice-card input:checked + .choice-content {
    border-color: var(--blue-primary);
    background: #f0f9ff;
    box-shadow: 0 0 0 2px var(--blue-primary);
}

.choice-content {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.choice-icon {
    font-size: 2.5rem; /* Larger icons */
    margin-bottom: 12px;
}

/* Search/Input Custom Style */
.custom-input-card {
    grid-column: 1 / -1; /* Full width */
    margin-top: 20px;
}

.animate-pop-in {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.9);
}

@keyframes popIn {
    to { opacity: 1; transform: scale(1); }
}

/* Stagger animations */
.choice-card:nth-child(1) { animation-delay: 0.05s; }
.choice-card:nth-child(2) { animation-delay: 0.1s; }
.choice-card:nth-child(3) { animation-delay: 0.15s; }
.choice-card:nth-child(4) { animation-delay: 0.2s; }
.choice-card:nth-child(5) { animation-delay: 0.25s; }
.choice-card:nth-child(6) { animation-delay: 0.3s; }

/* Themes for Majors (Dynamic Borders?) */
.choice-card[data-theme="blue"] input:checked + .choice-content { border-color: #2563eb; background: #eff6ff; }
.choice-card[data-theme="green"] input:checked + .choice-content { border-color: #16a34a; background: #f0fdf4; }
.choice-card[data-theme="purple"] input:checked + .choice-content { border-color: #9333ea; background: #faf5ff; }
.choice-card[data-theme="teal"] input:checked + .choice-content { border-color: #14b8a6; background: #f0fdfa; }

/* Custom Text Input */
.modern-text-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
}
.modern-text-input:focus {
    border-color: var(--blue-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

