/* improvU CSS - Strictly following design.json specifications */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: #6B7280;
    background-color: #F8F9FB;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Following design.json navigation specs */
.nav {
    background: #F8F9FB;
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0F172A 0%, #1E2875 100%);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #4169E1 0%, #FFD700 100%);
    border-radius: 4px;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #4169E1;
}

.nav-login-btn {
    font-size: 15px;
    font-weight: 600;
    color: #4169E1;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-login-btn:hover {
    color: #5B7FFF;
}

/* Hero Section - Following design.json hero specs */
.hero {
    background: #F8F9FB;
    padding: 156px 0 120px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Availability Badge - Following design.json badge specs */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1E2875;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-top: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
}

/* Typography - Following design.json typography specs */
.hero-title {
    font-size: 96px;
    font-weight: 800;
    line-height: 1.05;
    color: #1E2875;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    margin-top: -20px;
}

.hero-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #4B5563;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons - Following design.json button specs */
.btn-primary {
    background: #4169E1;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 100px;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(65, 105, 225, 0.3), 0 8px 10px -6px rgba(65, 105, 225, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #5B7FFF;
    box-shadow: 0 15px 35px -5px rgba(65, 105, 225, 0.4), 0 12px 15px -6px rgba(65, 105, 225, 0.3);
    transform: translateY(-3px);
}

.btn-primary:active {
    background: #3454C7;
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: #FFFFFF;
    color: #4169E1;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 100px;
    border: 2px solid #4169E1;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #4169E1;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: #4169E1;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-ghost:hover {
    background: rgba(65, 105, 225, 0.1);
    transform: translateY(-2px);
}

.btn-ghost:active {
    transform: translateY(0);
}


/* Growth Layers Header Section */
.growth-layers-header {
    background: #FFFFFF;
    padding: 80px 0 40px;
    text-align: center;
}

.growth-layers-header .section-header {
    max-width: 800px;
    margin: 0 auto;
}

/* Complete System Section */
.complete-system-section {
    background: #F8F9FB;
    padding: 120px 0;
}

.complete-system-section .section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.system-item {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    padding: 32px 32px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.system-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.15), 0 12px 15px -6px rgba(15, 23, 42, 0.1);
}

.system-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.system-icon svg {
    width: 100%;
    height: 100%;
}

.system-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #0F172A;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.system-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #374151;
    margin-bottom: 24px;
}

.system-cta-btn {
    display: inline-block;
    background: #4169E1;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(65, 105, 225, 0.3), 0 8px 10px -6px rgba(65, 105, 225, 0.25);
}

.system-cta-btn:hover {
    background: #5B7FFF;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(65, 105, 225, 0.4), 0 12px 15px -6px rgba(65, 105, 225, 0.3);
    color: #FFFFFF;
    text-decoration: none;
}

/* Responsive Design for System Grid */
@media (max-width: 768px) {
    .system-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .system-item {
        padding: 32px 24px;
    }
    
    .complete-system-section {
        padding: 60px 0;
    }
    
    .complete-system-section .section-header {
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .system-item {
        padding: 24px 20px;
    }
    
    .system-title {
        font-size: 18px;
    }
    
    .system-description {
        font-size: 14px;
    }
}

/* Alternating Features Section - Following design.json specs */
.alternating-features {
    background: #F8FAFC;
    padding: 0;
}

.feature-row {
    padding: 120px 0;
    border-bottom: 1px solid #E5E8F0;
}

.feature-row .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-text {
    flex: 1;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #4169E1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: transparent;
    border: 1px solid #4169E1;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: #1E2875;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.feature-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: #6B7280;
    font-style: italic;
    margin-bottom: 24px;
}

.feature-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #6B7280;
    margin-bottom: 32px;
}

.feature-cta-btn {
    display: inline-block;
    background: #4169E1;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(65, 105, 225, 0.3), 0 8px 10px -6px rgba(65, 105, 225, 0.25);
}

.feature-cta-btn:hover {
    background: #5B7FFF;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(65, 105, 225, 0.4), 0 12px 15px -6px rgba(65, 105, 225, 0.3);
    color: #FFFFFF;
    text-decoration: none;
}

.feature-mockup {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-mockup svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    filter: drop-shadow(0 10px 25px rgba(15, 23, 42, 0.15)) drop-shadow(0 8px 10px rgba(15, 23, 42, 0.1));
}

/* Reverse layout for alternating effect */
.feature-row-reverse .feature-content {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .feature-row-reverse .feature-content {
        flex-direction: column;
    }
    
    .feature-title {
        font-size: 36px;
    }
    
    .feature-subtitle {
        font-size: 18px;
    }
    
    .feature-description {
        font-size: 16px;
    }
    
    .feature-row {
        padding: 60px 0;
    }
    
    .feature-row .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .feature-title {
        font-size: 28px;
    }
    
    .feature-subtitle {
        font-size: 16px;
    }
    
    .feature-row {
        padding: 40px 0;
    }
}

/* Success Stories Section - Following design.json logoClients specs */
.clients-section {
    background: #FFFFFF;
    padding: 60px 0 80px;
}

/* Success Stories Carousel */
.success-stories-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.success-stories-track {
    display: flex;
    gap: 24px;
    animation: scrollStories 40s linear infinite;
    width: fit-content;
}

.success-stories-track:hover {
    animation-play-state: paused;
}

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

.success-story {
    text-align: center;
    padding: 24px 20px;
    background: #FFFFFF;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
    width: 280px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.success-story:hover {
    background: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}

.success-story .quote {
    font-size: 16px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 8px;
    position: relative;
    padding: 0 20px;
}

.success-story .quote::before {
    content: '"';
    position: absolute;
    left: 0;
    color: #4169E1;
    font-size: 24px;
    font-weight: 700;
}

.success-story .quote::after {
    content: '"';
    position: absolute;
    right: 0;
    color: #4169E1;
    font-size: 24px;
    font-weight: 700;
}

.success-story .author {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

/* Features Section - Following design.json feature specs */
.benefits-section {
    background: #FFFFFF;
    padding: 100px 0;
}

.process-section {
    background: #F8F9FB;
    padding: 100px 0;
}

/* Main page section headers */
.benefits-section .section-header,
.process-section .section-header {
    display: block;
    text-align: center;
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.overline {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #4169E1;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.section-title {
    display: block;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    color: #1E2875;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    margin-top: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-description {
    display: block;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: #4B5563;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Benefits Grid - Following design.json threeColumnFeatureGrid pattern */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-item {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.15), 0 12px 15px -6px rgba(15, 23, 42, 0.1);
}

.benefit-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    transition: all 0.3s ease;
}

.benefit-link:hover {
    text-decoration: none;
    color: inherit;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.benefit-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #0F172A;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.benefit-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #6B7280;
}

/* Feature Expand Buttons and Details */
.feature-expand-btn {
    background: #4169E1;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 16px;
    width: 100%;
}

.feature-expand-btn:hover {
    background: #5B7FFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.feature-detail {
    margin-top: 24px;
    padding: 24px;
    background: #F8F9FB;
    border-radius: 16px;
    border: 1px solid #E5E8F0;
}

.feature-demo {
    width: 100%;
}

/* Chat Interface Styles */
.chat-interface {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(30, 40, 117, 0.08);
}

.chat-header {
    background: #4169E1;
    color: #FFFFFF;
    padding: 16px;
    text-align: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-messages {
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.message {
    margin-bottom: 16px;
}

.message p {
    margin: 0;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.ai-message p {
    background: #E5E8F0;
    color: #1E2875;
    margin-right: 40px;
}

.user-message p {
    background: #4169E1;
    color: #FFFFFF;
    margin-left: 40px;
}

.voice-input {
    padding: 16px;
    text-align: center;
    border-top: 1px solid #E5E8F0;
}

.voice-btn {
    background: #FFD700;
    color: #1E2875;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-btn:hover {
    background: #FFA500;
}

/* Quest Interface Styles */
.quest-interface {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(30, 40, 117, 0.08);
}

.progress-bar {
    background: #E5E8F0;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
}

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

.progress-text {
    font-size: 12px;
    color: #6B7280;
    margin-top: 8px;
    display: block;
}

.quest-card {
    background: #F8F9FB;
    border: 1px solid #E5E8F0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.quest-card.active {
    background: #FFFFFF;
    border-color: #4169E1;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.1);
}

.quest-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1E2875;
}

.quest-card p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #6B7280;
}

.quest-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.xp-badge {
    background: #FFD700;
    color: #1E2875;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
}

.location-btn {
    background: #10B981;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: #059669;
}

/* Session Interface Styles */
.session-interface {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(30, 40, 117, 0.08);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E8F0;
}

.session-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1E2875;
}

.live-indicator {
    font-size: 12px;
    font-weight: 600;
    color: #EF4444;
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.participant {
    background: #F8F9FB;
    border: 1px solid #E5E8F0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #1E2875;
}

.session-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E8F0;
}

.control-btn {
    background: #E5E8F0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.control-btn:hover {
    background: #D1D5DB;
}

.control-btn.leave {
    background: #EF4444;
    color: #FFFFFF;
}

.control-btn.leave:hover {
    background: #DC2626;
}

.upcoming-sessions h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1E2875;
}

.upcoming-sessions p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #6B7280;
}

/* Responsive Design for Feature Details */
@media (max-width: 768px) {
    .participants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quest-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .session-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Process Section - Following design.json process specs */

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    margin-bottom: 80px;
}

.process-step {
    text-align: center;
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.process-icon svg {
    width: 100%;
    height: 100%;
}

.process-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #0F172A;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.process-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #6B7280;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 80px;
}

.service-category {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.service-tag {
    background: transparent;
    color: #4169E1;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 1px solid #4169E1;
    padding: 4px 12px;
    border-radius: 4px;
}

.process-footer {
    text-align: center;
}

.process-footer-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
    color: #1E2875;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.process-footer-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #6B7280;
}

/* App Screenshots Section */
.portfolio-section {
    background: #FFFFFF;
    padding: 80px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.2), 0 12px 15px -6px rgba(15, 23, 42, 0.15);
}

.portfolio-image {
    width: 100%;
    height: auto;
}

.portfolio-image svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Final CTA Section - Following design.json specs with dark theme */
.final-cta-section {
    background: #1E2875;
    color: #FFFFFF;
    padding: 120px 0 0;
    text-align: center;
}

/* Conversation Tags */
.conversation-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    min-height: 40px;
    position: relative;
}

.conversation-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    opacity: 0;
    animation: rotateTag 18s infinite;
    position: absolute;
}

.conversation-tag:nth-child(1) { animation-delay: 0s; }
.conversation-tag:nth-child(2) { animation-delay: 2s; }
.conversation-tag:nth-child(3) { animation-delay: 4s; }
.conversation-tag:nth-child(4) { animation-delay: 6s; }
.conversation-tag:nth-child(5) { animation-delay: 8s; }
.conversation-tag:nth-child(6) { animation-delay: 10s; }
.conversation-tag:nth-child(7) { animation-delay: 12s; }
.conversation-tag:nth-child(8) { animation-delay: 14s; }
.conversation-tag:nth-child(9) { animation-delay: 16s; }

@keyframes rotateTag {
    0%, 100% { opacity: 0; transform: translateY(10px); z-index: 0; }
    2% { opacity: 0; transform: translateY(10px); z-index: 1; }
    5%, 16% { opacity: 1; transform: translateY(0); z-index: 1; }
    19% { opacity: 0; transform: translateY(-10px); z-index: 1; }
    22% { opacity: 0; transform: translateY(-10px); z-index: 0; }
}

@media (max-width: 768px) {
    .conversation-tags {
        gap: 8px;
        margin-bottom: 32px;
    }
    
    .conversation-tag {
        font-size: 11px;
        padding: 6px 12px;
    }
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.final-cta-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}

.final-cta-subtitle {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.final-cta-description {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-button {
    background: #FFFFFF;
    color: #0F172A;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 48px;
    border-radius: 100px;
    border: 2px solid #FFFFFF;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 48px;
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.3), 0 8px 10px -6px rgba(255, 255, 255, 0.25);
}

.final-cta-button:hover {
    background: transparent;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(255, 255, 255, 0.4), 0 12px 15px -6px rgba(255, 255, 255, 0.3);
}

.rating-section {
    margin-bottom: 48px;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.star {
    color: #FFD700;
    font-size: 24px;
}

.rating-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.testimonial {
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-text {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-author {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Integrated Footer */
.integrated-footer {
    background: #141B52;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

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

.footer-brand-text {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
}

.footer-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-column-title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4169E1;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .final-cta-title {
        font-size: 48px;
    }
    
    .final-cta-subtitle {
        font-size: 24px;
    }
    
    .final-cta-description {
        font-size: 18px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .final-cta-section {
        padding: 80px 0 0;
    }
    
    .final-cta-content {
        padding-bottom: 60px;
    }
    
    .final-cta-title {
        font-size: 36px;
    }
    
    .final-cta-subtitle {
        font-size: 20px;
    }
    
    .final-cta-description {
        font-size: 16px;
    }
    
    .testimonial-text {
        font-size: 18px;
    }
}

/* Footer - Following design.json footer specs */
.footer {
    background: #F8F9FB;
    padding: 60px 0;
    border-top: 1px solid #E5E8F0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-info {
    text-align: center;
}

.footer-copyright,
.footer-location {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #9CA3AF;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link:hover {
    color: #4169E1;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 72px;
    }
    
    .section-title {
        font-size: 48px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pricing-card {
        padding: 40px 32px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 52px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .process-footer-title {
        font-size: 28px;
    }
    
    .pricing-title {
        font-size: 32px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Focus States for Accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.nav-link:focus,
.nav-login-btn:focus,
.pricing-link:focus,
.footer-link:focus {
    outline: 2px solid #4169E1;
    outline-offset: 2px;
}

/* JAZZ Page Styles */
.jazz-main {
    padding: 120px 0 80px;
    background: #F8F9FB;
    min-height: 100vh;
}

.jazz-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 24px;
    height: calc(100vh - 200px);
}

.jazz-sidebar {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(30, 40, 117, 0.08);
}

.jazz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.jazz-title {
    font-size: 20px;
    font-weight: 600;
    color: #1E2875;
    margin: 0;
}

.new-session-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #4169E1;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-session-btn:hover {
    background: #5B7FFF;
}

.new-session-btn svg {
    width: 16px;
    height: 16px;
}

.session-list {
    margin-bottom: 24px;
}

.session-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.session-item:hover {
    background: #F8F9FB;
}

.session-item.active {
    background: #E5E8F0;
}

.session-item h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1E2875;
    margin: 0 0 4px 0;
}

.session-item p {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #F8F9FB;
    border-radius: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #4169E1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1E2875;
    margin: 0;
}

.user-info p {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
}

.jazz-chat {
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(30, 40, 117, 0.08);
}

.scenario-header {
    padding: 16px 24px;
    border-bottom: 1px solid #E5E8F0;
}

.scenario-badge {
    background: #4169E1;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.ai-message {
    align-self: flex-start;
}

.message.user-message {
    align-self: flex-end;
}

.message-content {
    background: #F8F9FB;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.message.ai-message .message-content {
    background: #4169E1;
    color: white;
}

.message.user-message .message-content {
    background: #E5E8F0;
    color: #1E2875;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #6B7280;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.voice-input {
    padding: 24px;
    border-top: 1px solid #E5E8F0;
    text-align: center;
}

.voice-btn {
    width: 60px;
    height: 60px;
    background: #4169E1;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.voice-btn:hover {
    background: #5B7FFF;
    transform: scale(1.05);
}

.voice-btn.recording {
    background: #FF4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.voice-btn svg {
    width: 24px;
    height: 24px;
}

.voice-prompt {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.jazz-feedback {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(30, 40, 117, 0.08);
}

.jazz-feedback h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1E2875;
    margin: 0 0 24px 0;
}

.feedback-metric {
    margin-bottom: 20px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.metric-header span:first-child {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.metric-value {
    font-size: 14px;
    font-weight: 600;
    color: #1E2875;
}

.progress-bar {
    height: 8px;
    background: #E5E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4169E1, #10B981);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.session-settings {
    margin: 24px 0;
    padding: 16px;
    background: #F8F9FB;
    border-radius: 12px;
}

.session-settings h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1E2875;
    margin: 0 0 12px 0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.setting-item span:first-child {
    color: #6B7280;
}

.setting-value {
    color: #1E2875;
    font-weight: 500;
}

.end-session-btn {
    width: 100%;
    background: #10B981;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.end-session-btn:hover {
    background: #059669;
}

/* ConvoQuest Page Styles */
.convoquest-main {
    padding: 120px 0 80px;
    background: #F8F9FB;
    min-height: 100vh;
}

.convoquest-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #1E2875;
    margin: 0 0 16px 0;
}

.page-subtitle {
    font-size: 20px;
    color: #6B7280;
    margin: 0;
}

.progress-section {
    margin-bottom: 48px;
}

.progress-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(30, 40, 117, 0.08);
    text-align: center;
}

.progress-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1E2875;
    margin: 0 0 24px 0;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.progress-bar-large {
    width: 300px;
    height: 12px;
    background: #E5E8F0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill-large {
    height: 100%;
    background: linear-gradient(90deg, #4169E1, #FFD700);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 16px;
    font-weight: 600;
    color: #1E2875;
}

.progress-note {
    font-size: 16px;
    color: #6B7280;
    margin: 16px 0 0 0;
}

.difficulty-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.filter-label {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
}

.difficulty-btn {
    padding: 8px 16px;
    border: 2px solid #E5E8F0;
    background: white;
    color: #6B7280;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-btn:hover {
    border-color: #4169E1;
    color: #4169E1;
}

.difficulty-btn.active {
    background: #4169E1;
    color: white;
    border-color: #4169E1;
}

.quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.quest-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(30, 40, 117, 0.08);
    transition: all 0.3s ease;
}

.quest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 40, 117, 0.12);
}

.quest-card[data-completed="true"] {
    background: #F0FDF4;
    border: 2px solid #10B981;
}

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.quest-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1E2875;
    margin: 0;
}

.quest-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.difficulty-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.difficulty-badge.easy {
    background: #DCFCE7;
    color: #166534;
}

.difficulty-badge.medium {
    background: #FEF3C7;
    color: #92400E;
}

.difficulty-badge.advanced {
    background: #FEE2E2;
    color: #991B1B;
}

.points-badge {
    background: #4169E1;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.points-badge.completed {
    background: #10B981;
}

.quest-description {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.quest-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    background: #F3F4F6;
    color: #374151;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
}

.quest-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
}

.quest-time svg {
    width: 16px;
    height: 16px;
}

.quest-actions {
    display: flex;
    gap: 12px;
}

.view-details-btn {
    flex: 1;
    background: transparent;
    color: #4169E1;
    border: 2px solid #4169E1;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: #4169E1;
    color: white;
}

.start-quest-btn {
    flex: 1;
    background: #4169E1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-quest-btn:hover {
    background: #5B7FFF;
}

.completed-btn {
    flex: 1;
    background: #10B981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.completed-btn svg {
    width: 16px;
    height: 16px;
}

/* Quest Modal Styles */
.quest-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1E2875;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6B7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 24px;
}

.quest-objective h4,
.quest-tips h4,
.location-finder h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1E2875;
    margin: 0 0 12px 0;
}

.quest-objective p {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.quest-tips ul {
    margin: 0 0 24px 0;
    padding-left: 20px;
}

.quest-tips li {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 8px;
}

.find-locations-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #10B981;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.find-locations-btn:hover {
    background: #059669;
}

.find-locations-btn svg {
    width: 16px;
    height: 16px;
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #F8F9FB;
    border-radius: 8px;
}

.location-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1E2875;
    margin: 0 0 4px 0;
}

.location-info p {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
}

.location-distance {
    font-size: 12px;
    color: #4169E1;
    font-weight: 500;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px 24px;
}

.btn-secondary {
    flex: 1;
    background: transparent;
    color: #6B7280;
    border: 2px solid #E5E8F0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #6B7280;
}

.btn-primary {
    flex: 1;
    background: #4169E1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #5B7FFF;
}

/* ImprovCircle Page Styles */
.improvcircle-main {
    padding: 120px 0 80px;
    background: #F8F9FB;
    min-height: 100vh;
}

.improvcircle-header {
    text-align: center;
    margin-bottom: 48px;
}

.improvcircle-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

/* Feature page section headers (JAZZ, ConvoQuest, ImprovCircle) */
.jazz-main .section-header,
.convoquest-main .section-header,
.improvcircle-main .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Feature page section titles */
.jazz-main .section-header h2,
.convoquest-main .section-header h2,
.improvcircle-main .section-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 600;
    color: #1E2875;
    margin: 0;
}

.section-header svg {
    width: 24px;
    height: 24px;
    color: #4169E1;
}

.new-btn,
.refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #4169E1;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-btn:hover,
.refresh-btn:hover {
    background: #5B7FFF;
}

.new-btn svg,
.refresh-btn svg {
    width: 16px;
    height: 16px;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.session-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(30, 40, 117, 0.08);
    transition: all 0.3s ease;
}

.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 40, 117, 0.12);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.session-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1E2875;
    margin: 0;
}

.level-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.level-badge.beginner {
    background: #DCFCE7;
    color: #166534;
}

.level-badge.intermediate {
    background: #FEF3C7;
    color: #92400E;
}

.level-badge.advanced {
    background: #FEE2E2;
    color: #991B1B;
}

.session-description {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.session-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.participants {
    font-size: 14px;
    color: #6B7280;
}

.session-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6B7280;
}

.session-time svg {
    width: 16px;
    height: 16px;
}

.join-btn {
    width: 100%;
    background: #4169E1;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-btn:hover {
    background: #5B7FFF;
}

.join-btn:disabled,
.join-btn.joined {
    background: #10B981;
    cursor: not-allowed;
}

.find-partner-section {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(30, 40, 117, 0.08);
    margin-bottom: 24px;
}

.partners-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.partner-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F8F9FB;
    border-radius: 12px;
}

.partner-avatar {
    width: 40px;
    height: 40px;
    background: #4169E1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.partner-info {
    flex: 1;
}

.partner-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1E2875;
    margin: 0 0 4px 0;
}

.partner-status {
    font-size: 12px;
    font-weight: 500;
}

.partner-status.online {
    color: #10B981;
}

.partner-status.offline {
    color: #6B7280;
}

.invite-btn {
    background: #4169E1;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.invite-btn:hover {
    background: #5B7FFF;
}

.invite-btn:disabled {
    background: #E5E8F0;
    color: #6B7280;
    cursor: not-allowed;
}

.unlock-notice {
    background: linear-gradient(135deg, #FEF3C7, #FBBF24);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 24px;
}

.unlock-notice h3 {
    font-size: 18px;
    font-weight: 600;
    color: #92400E;
    margin: 0 0 12px 0;
}

.unlock-notice p {
    font-size: 14px;
    color: #92400E;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.unlock-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.unlock-bar {
    width: 200px;
    height: 8px;
    background: rgba(146, 64, 14, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.unlock-fill {
    height: 100%;
    background: #92400E;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.unlock-progress span {
    font-size: 12px;
    color: #92400E;
    font-weight: 500;
}

.community-feed-section {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(30, 40, 117, 0.08);
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F8F9FB;
    border-radius: 12px;
}

.feed-avatar {
    width: 32px;
    height: 32px;
    background: #4169E1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.feed-content {
    flex: 1;
}

.feed-content p {
    font-size: 14px;
    color: #1E2875;
    margin: 0 0 4px 0;
}

.feed-time {
    font-size: 12px;
    color: #6B7280;
}

/* Responsive Design for New Pages */
@media (max-width: 1024px) {
    .jazz-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        height: auto;
    }
    
    .jazz-sidebar {
        order: 3;
    }
    
    .jazz-chat {
        order: 1;
        min-height: 500px;
    }
    
    .jazz-feedback {
        order: 2;
    }
    
    .improvcircle-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .quests-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-bar-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .progress-bar-large {
        width: 100%;
        max-width: 300px;
    }
    
    .difficulty-filter {
        flex-wrap: wrap;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.section-header,
.benefit-item,
.process-step,
.pricing-card {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   CONVOQUEST PAGE - Modern Gamification Design
   ============================================ */

/* Glassmorphism Base */
.cq-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

/* Hero Section */
.cq-hero {
    background: linear-gradient(135deg, #F8F9FB 0%, #E8EEFF 100%);
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cq-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(65, 105, 225, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, 5%); }
}

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

.cq-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(65, 105, 225, 0.1);
    color: #4169E1;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
    border: 1px solid rgba(65, 105, 225, 0.2);
}

.badge-icon {
    font-size: 16px;
}

.cq-hero-title {
    font-size: 56px;
    font-weight: 800;
    color: #1E2875;
    letter-spacing: -0.03em;
    margin: 0 0 16px 0;
    line-height: 1.1;
}

.cq-hero-subtitle {
    font-size: 20px;
    color: #6B7280;
    margin: 0;
    line-height: 1.6;
}

.rotating-text-wrapper {
    display: inline-block;
    min-width: 200px;
}

.rotating-text {
    display: inline-block;
    color: #4169E1;
    font-weight: 600;
    animation: textRotate 8s ease-in-out infinite;
}

@keyframes textRotate {
    0%, 20% { opacity: 1; transform: translateY(0); }
    25%, 45% { opacity: 0; transform: translateY(-10px); }
    50%, 70% { opacity: 1; transform: translateY(0); }
    75%, 95% { opacity: 0; transform: translateY(-10px); }
}

/* Dashboard Section */
.cq-dashboard {
    padding: 40px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.cq-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
}

/* Stats Section */
.cq-stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cq-stat-card {
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cq-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

.cq-stat-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
}

.xp-icon {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.level-icon {
    position: relative;
    background: transparent;
}

.level-ring {
    width: 56px;
    height: 56px;
}

.level-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: #4169E1;
}

.streak-icon {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    animation: streakPulse 2s ease-in-out infinite;
}

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

.quests-icon {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

.cq-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cq-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1E2875;
}

.cq-stat-label {
    font-size: 13px;
    color: #6B7280;
}

.cq-stat-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #10B981;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.cq-stat-badge.show {
    opacity: 1;
    transform: scale(1);
    animation: xpPopIn 0.5s ease-out;
}

@keyframes xpPopIn {
    0% { transform: scale(0) translateY(10px); opacity: 0; }
    50% { transform: scale(1.2) translateY(-5px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Active Quest Tracker */
.cq-active-quest {
    border-radius: 24px;
    padding: 24px;
    min-height: 200px;
}

.cq-active-quest-header {
    margin-bottom: 20px;
}

.cq-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4169E1 0%, #5B7FFF 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.cq-active-quest-empty {
    text-align: center;
    padding: 20px;
}

.cq-active-quest-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.cq-active-quest-empty p {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 4px 0;
}

.cq-active-quest-empty span {
    font-size: 14px;
    color: #9CA3AF;
}

.cq-active-quest-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1E2875;
    margin: 0 0 8px 0;
}

.cq-active-quest-content p {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.cq-active-quest-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cq-active-xp {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1E2875;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 100px;
}

.cq-active-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6B7280;
}

.cq-active-quest-actions {
    display: flex;
    gap: 12px;
}

.cq-btn-complete {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cq-btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.cq-btn-abandon {
    background: transparent;
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #E5E8F0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cq-btn-abandon:hover {
    background: #FEE2E2;
    color: #EF4444;
    border-color: #FCA5A5;
}

/* Category Filters */
.cq-filters {
    padding: 24px 0;
    position: sticky;
    top: 80px;
    z-index: 50;
    background: rgba(248, 249, 251, 0.9);
    backdrop-filter: blur(10px);
}

.cq-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cq-category-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cq-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 100px;
    border: 2px solid #E5E8F0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cq-pill:hover {
    border-color: #4169E1;
    color: #4169E1;
}

.cq-pill.active {
    background: linear-gradient(135deg, #4169E1 0%, #5B7FFF 100%);
    color: white;
    border-color: transparent;
}

.pill-icon {
    font-size: 16px;
}

.cq-view-toggle {
    display: flex;
    gap: 4px;
    background: white;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #E5E8F0;
}

.cq-view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #9CA3AF;
    transition: all 0.2s ease;
}

.cq-view-btn:hover {
    color: #4169E1;
}

.cq-view-btn.active {
    background: #4169E1;
    color: white;
}

/* Quests Grid */
.cq-quests-section {
    padding: 20px 0 60px;
}

.cq-quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.cq-quests-grid.list-view {
    grid-template-columns: 1fr;
}

/* Quest Card */
.cq-quest-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cq-quest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4169E1 0%, #FFD700 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cq-quest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(31, 38, 135, 0.15);
}

.cq-quest-card:hover::before {
    opacity: 1;
}

.cq-quest-card.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.cq-quest-card.completed::before {
    background: #10B981;
    opacity: 1;
}

.cq-quest-card.locked {
    opacity: 0.6;
    pointer-events: none;
}

.cq-quest-card.locked::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.3;
}

/* Quest Card Header */
.cq-quest-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.cq-quest-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4169E1 0%, #5B7FFF 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cq-quest-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.cq-difficulty-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cq-difficulty-badge.easy {
    background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
    color: #166534;
}

.cq-difficulty-badge.medium {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
}

.cq-difficulty-badge.hard {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
}

.cq-xp-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1E2875;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 100px;
}

/* Quest Card Content */
.cq-quest-title {
    font-size: 20px;
    font-weight: 700;
    color: #1E2875;
    margin: 0 0 8px 0;
}

.cq-quest-description {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.cq-quest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.cq-tag {
    background: rgba(65, 105, 225, 0.1);
    color: #4169E1;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
}

.cq-quest-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cq-quest-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9CA3AF;
}

.cq-quest-actions {
    display: flex;
    gap: 10px;
}

.cq-btn-details {
    background: transparent;
    color: #4169E1;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #4169E1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cq-btn-details:hover {
    background: #4169E1;
    color: white;
}

.cq-btn-start {
    background: linear-gradient(135deg, #4169E1 0%, #5B7FFF 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cq-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(65, 105, 225, 0.3);
}

.cq-btn-completed {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Achievements Section */
.cq-achievements {
    background: linear-gradient(135deg, #1E2875 0%, #2D3A8C 100%);
    padding: 60px 0;
    margin-top: 40px;
}

.cq-achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.cq-achievements-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.achievements-icon {
    font-size: 32px;
}

.achievements-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
}

.cq-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.cq-achievement {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cq-achievement:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.cq-achievement.locked {
    opacity: 0.4;
}

.cq-achievement-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.cq-achievement.locked .cq-achievement-icon {
    filter: grayscale(1);
}

.cq-achievement-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
}

.cq-achievement-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Modal Styles */
.cq-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.cq-modal.active {
    display: flex;
}

.cq-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cq-modal-content {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 28px;
    padding: 32px;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cq-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    transition: all 0.2s ease;
}

.cq-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1E2875;
}

.cq-modal-header {
    margin-bottom: 24px;
}

.cq-modal-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.cq-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1E2875;
    margin: 0 0 8px 0;
}

.cq-modal-header p {
    font-size: 16px;
    color: #6B7280;
    margin: 0;
    line-height: 1.6;
}

/* Modal Tabs */
.cq-modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #E5E8F0;
    padding-bottom: 12px;
}

.cq-tab {
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #9CA3AF;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cq-tab:hover {
    color: #4169E1;
    background: rgba(65, 105, 225, 0.05);
}

.cq-tab.active {
    color: #4169E1;
    background: rgba(65, 105, 225, 0.1);
}

.cq-tab-content {
    display: none;
}

.cq-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cq-modal-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1E2875;
    margin: 0 0 12px 0;
}

.cq-modal-body p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.6;
}

.cq-objective,
.cq-skills,
.cq-time-estimate {
    margin-bottom: 24px;
}

.cq-skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Tips List */
.cq-tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cq-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(65, 105, 225, 0.05);
    border-radius: 12px;
    border-left: 3px solid #4169E1;
}

.cq-tip-number {
    width: 24px;
    height: 24px;
    background: #4169E1;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cq-tip-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

/* Location Finder */
.cq-location-finder {
    text-align: center;
}

.cq-find-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.cq-find-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.cq-find-location-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cq-locations-list {
    text-align: left;
}

.cq-locations-hint {
    text-align: center;
    color: #9CA3AF;
    font-size: 14px;
}

.cq-location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: #F8F9FB;
    border-radius: 12px;
    margin-bottom: 10px;
}

.cq-location-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1E2875;
    margin: 0 0 4px 0;
}

.cq-location-info p {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

.cq-location-distance {
    font-size: 13px;
    font-weight: 600;
    color: #4169E1;
}

/* Modal Footer */
.cq-modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E5E8F0;
}

.cq-btn-secondary {
    flex: 1;
    background: transparent;
    color: #6B7280;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 24px;
    border-radius: 14px;
    border: 1px solid #E5E8F0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cq-btn-secondary:hover {
    background: #F8F9FB;
    border-color: #D1D5DB;
}

.cq-btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4169E1 0%, #5B7FFF 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cq-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(65, 105, 225, 0.3);
}

/* Completion Modal */
.cq-completion-modal {
    text-align: center;
}

.cq-completion-header {
    margin-bottom: 24px;
    position: relative;
}

.cq-trophy {
    font-size: 64px;
    margin-bottom: 16px;
    animation: trophyBounce 0.6s ease-out;
}

@keyframes trophyBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cq-completion-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1E2875;
    margin: 0 0 8px 0;
}

.cq-completion-header p {
    font-size: 18px;
    color: #6B7280;
}

.cq-completion-xp {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.xp-earned {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: #1E2875;
    animation: xpCount 1s ease-out;
}

@keyframes xpCount {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.xp-label {
    font-size: 14px;
    font-weight: 600;
    color: #92400E;
}

/* Reflection Section */
.cq-reflection {
    text-align: left;
    margin-bottom: 24px;
}

.cq-reflection h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1E2875;
    margin: 0 0 8px 0;
}

.cq-reflection p {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 12px 0;
}

.cq-reflection textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border: 2px solid #E5E8F0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.cq-reflection textarea:focus {
    outline: none;
    border-color: #4169E1;
}

/* Rating Stars */
.cq-rating {
    margin-bottom: 24px;
}

.cq-rating h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1E2875;
    margin: 0 0 12px 0;
}

.cq-rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.cq-star {
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.2s ease;
    padding: 0;
}

.cq-star:hover,
.cq-star.active {
    opacity: 1;
    transform: scale(1.2);
}

.cq-completion-actions {
    margin-top: 24px;
}

.cq-btn-celebrate {
    width: 100%;
}

/* Level Up Modal */
.cq-levelup-modal {
    text-align: center;
}

.cq-levelup-header {
    margin-bottom: 24px;
}

.cq-levelup-icon {
    font-size: 64px;
    animation: levelUpPop 0.6s ease-out;
}

@keyframes levelUpPop {
    0% { transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0); }
}

.cq-levelup-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #1E2875;
    margin: 16px 0 8px 0;
}

.cq-new-level {
    font-size: 24px;
    font-weight: 700;
    color: #4169E1;
    margin: 0;
}

.cq-levelup-unlocks {
    background: #F8F9FB;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.cq-levelup-unlocks h4 {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    margin: 0 0 12px 0;
}

.cq-unlock-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    margin-bottom: 8px;
}

.cq-unlock-item:last-child {
    margin-bottom: 0;
}

.cq-unlock-icon {
    font-size: 24px;
}

.cq-unlock-text {
    font-size: 14px;
    font-weight: 500;
    color: #1E2875;
}

/* Confetti Container */
.cq-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FFD700;
    animation: confettiFall 3s ease-out forwards;
}

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

/* Footer */
.cq-footer {
    background: #1E2875;
    padding: 48px 0 24px;
}

.cq-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cq-footer .footer-brand-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.cq-footer .footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 4px 0 0 0;
}

.cq-footer .footer-links {
    display: flex;
    gap: 32px;
}

.cq-footer .footer-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cq-footer .footer-link:hover {
    color: white;
}

.cq-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.cq-footer .footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cq-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .cq-stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .cq-active-quest {
        order: -1;
    }
}

@media (max-width: 768px) {
    .cq-hero {
        padding: 120px 0 40px;
    }

    .cq-hero-title {
        font-size: 36px;
    }

    .cq-hero-subtitle {
        font-size: 16px;
    }

    .cq-stats-section {
        grid-template-columns: 1fr 1fr;
    }

    .cq-stat-card {
        padding: 16px;
    }

    .cq-stat-icon {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .cq-stat-value {
        font-size: 16px;
    }

    .cq-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cq-category-pills {
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .cq-view-toggle {
        display: none;
    }

    .cq-quests-grid {
        grid-template-columns: 1fr;
    }

    .cq-modal-content {
        padding: 24px;
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
        margin-top: auto;
    }

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

    .cq-footer .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .cq-hero-title {
        font-size: 28px;
    }

    .cq-stats-section {
        grid-template-columns: 1fr;
    }

    .cq-stat-card {
        flex-direction: row;
        justify-content: flex-start;
    }

    .cq-category-pills {
        flex-wrap: nowrap;
    }

    .cq-pill {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 14px;
    }

    .cq-achievements-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .cq-achievement {
        padding: 16px;
    }

    .cq-achievement-icon {
        font-size: 36px;
    }
}