:root {
    --bg-color: #030712; /* Very dark blue/black */
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-hover: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(255, 255, 255, 0.15);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --accent-primary: #818cf8; /* Indigo */
    --accent-secondary: #2dd4bf; /* Teal */
    --accent-tertiary: #c084fc; /* Purple */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --glow-shadow: 0 0 20px rgba(129, 140, 248, 0.4);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Glow Effects */
.glow-bg, .glow-bg-2, .glow-bg-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.25;
    animation: float 25s infinite alternate ease-in-out;
}

.glow-bg {
    width: 600px; height: 600px;
    top: -100px; left: -200px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
}

.glow-bg-2 {
    width: 700px; height: 700px;
    top: 40%; right: -200px;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    animation-delay: -5s;
}

.glow-bg-3 {
    width: 500px; height: 500px;
    bottom: -100px; left: 10%;
    background: radial-gradient(circle, var(--accent-tertiary), transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(120px, 150px); }
}

/* Typography & Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Top Banner */
.top-banner {
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.9), rgba(129, 140, 248, 0.15), rgba(3, 7, 18, 0.9));
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1001;
}

.top-banner span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.banner-divider {
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .top-banner {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem;
        text-align: center;
    }
    .banner-divider { display: none; }
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-secondary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    color: white;
    box-shadow: 0 4px 15px rgba(129, 140, 248, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(129, 140, 248, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--card-bg);
    border-color: var(--card-border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 0 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    animation: fadeRight 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeRight {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.badge-container {
    display: inline-block;
}

.badge {
    background: rgba(129, 140, 248, 0.1);
    color: #c7d2fe;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(129, 140, 248, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 0 10px rgba(129, 140, 248, 0.1);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-muted);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Hero Visual - Floating Elements */
.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeLeft 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: absolute;
    transition: transform 0.3s ease;
}

.main-panel {
    width: 380px;
    padding: 2rem;
    z-index: 2;
    animation: floatPanel 6s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.dot:nth-child(1) { background: #ef4444; }
.dot:nth-child(2) { background: #f59e0b; }
.dot:nth-child(3) { background: #10b981; }

.metric-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.metric-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.metric-row i {
    font-size: 2rem;
    color: var(--accent-primary);
    background: rgba(129, 140, 248, 0.1);
    padding: 0.8rem;
    border-radius: 16px;
}

.metric-row h4 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.metric-row span { font-size: 0.85rem; color: var(--text-muted); }

.side-panel-1, .side-panel-2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.side-panel-1 {
    top: 15%;
    right: 5%;
    z-index: 1;
    animation: floatPanel 7s ease-in-out infinite reverse;
}
.side-panel-1 i { color: var(--accent-tertiary); font-size: 1.5rem; }

.side-panel-2 {
    bottom: 20%;
    left: 0;
    z-index: 3;
    animation: floatPanel 8s ease-in-out infinite 1s;
}
.side-panel-2 i { color: var(--accent-secondary); font-size: 1.5rem; }

@keyframes floatPanel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Sections Global */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header h2 span {
    color: var(--accent-secondary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Advantage Section */
.advantage-section {
    padding: 6rem 5%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.01), transparent);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1500px;
    margin: 0 auto;
}

.advantage-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: all 0.4s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    background: var(--card-hover);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 0 20px rgba(129, 140, 248, 0.05);
}

.adv-icon {
    width: 50px; height: 50px;
    margin: 0 auto 1rem;
    background: rgba(45, 212, 191, 0.1);
    color: var(--accent-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: rotate(-5deg);
    transition: transform 0.4s ease;
}

.advantage-card:hover .adv-icon {
    transform: rotate(0) scale(1.1);
    background: var(--accent-secondary);
    color: white;
}

.advantage-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.advantage-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* Modules Grid */
.modules-section {
    padding: 6rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.module-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.module-grid.grid-6 {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.module-grid.grid-6 .module-card {
    padding: 1rem 1rem;
}

.module-grid.external-portals .module-card, .module-grid.grid-4 .module-card {
    padding: 1.5rem 1.25rem;
}

.module-grid.grid-6 h3, .module-grid.external-portals h3, .module-grid.grid-4 h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.module-grid.grid-6 p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.module-grid.external-portals p, .module-grid.grid-4 p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.module-grid.grid-6 .icon-box, .module-grid.external-portals .icon-box, .module-grid.grid-4 .icon-box {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
}

.module-grid.grid-6 .tags span, .module-grid.external-portals .tags span, .module-grid.grid-4 .tags span {
    font-size: 0.75rem;
    padding: 3px 8px;
}

.module-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.module-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.module-card:hover {
    transform: translateY(-8px);
    background: var(--card-hover);
    border-color: var(--card-border-hover);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
}

.module-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.2px;
}

.module-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tags span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(129, 140, 248, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(129, 140, 248, 0.2);
}

/* CTA Section */
.cta {
    padding: 6rem 5%;
}

.cta-banner {
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1), rgba(45, 212, 191, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZD0iTTEgMWgydjJIMUMxeiIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAyKSIvPjwvc3ZnPg==');
    opacity: 0.5;
}

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

.cta-content h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.2rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Orbit Graphic Animation */
.orbit {
    position: relative;
    width: 300px; height: 300px;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}
.planet {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.5);
}
.moon {
    position: absolute;
    width: 40px; height: 40px;
    background: rgba(3, 7, 18, 0.8);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-main);
    backdrop-filter: blur(5px);
}
.moon-1 { top: -20px; left: 50%; transform: translateX(-50%); color: #f59e0b; }
.moon-2 { bottom: 20%; right: -10px; color: #2dd4bf; }
.moon-3 { bottom: 20%; left: -10px; color: #c084fc; }

@keyframes spin { 100% { transform: rotate(360deg); } }
.moon { animation: counterSpin 30s linear infinite; }
@keyframes counterSpin { 100% { transform: rotate(-360deg) translateX(-50%); } }

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 4rem 5% 2rem;
    background: rgba(0,0,0,0.3);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.footer-logo span { color: var(--accent-secondary); font-weight: 400; }

.footer-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.copyright {
    font-size: 0.85rem !important;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}

/* Utilities for JS */
.card-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .module-grid.grid-4, .module-grid.grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
        gap: 3rem;
    }
    
    .hero-content {
        align-items: center;
    }

    .hero-actions { justify-content: center; }
    
    .hero-visual {
        min-height: 400px;
    }
    
    .cta-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-content p { margin-left: auto; margin-right: auto; }
}

/* Highlight Banner */
.highlight-banner {
    max-width: 1200px;
    margin: 2rem auto -2rem;
    padding: 0 5%;
    position: relative;
    z-index: 10;
}

.highlight-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(129, 140, 248, 0.4);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), inset 0 0 30px rgba(129, 140, 248, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.highlight-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.highlight-quote-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.highlight-content h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.4;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 500;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .hero { padding-top: 2rem; gap: 2rem; }
    .hero h1 { font-size: 2.4rem; }
    
    .hero-actions { flex-direction: column; width: 100%; gap: 1rem; }
    .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; }
    
    .hero-visual { min-height: 300px; }
    .main-panel { width: 90%; max-width: 340px; padding: 1.5rem; }
    .side-panel-1, .side-panel-2 { display: none; }
    
    .advantage-grid, .module-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .advantage-section { padding: 4rem 5%; }
    .modules-section { padding: 4rem 5%; }
    .cta { padding: 4rem 5%; }
    
    .cta-banner { padding: 3rem 2rem; }
    .orbit { transform: scale(0.75); margin-top: -20px; }
    
    .highlight-content { padding: 2.5rem 1.5rem; }
    .highlight-quote-icon { font-size: 2rem; margin-bottom: 1rem; }
    .highlight-content h3 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 0.95rem; }
    
    .section-header { margin-bottom: 2.5rem; }
    .section-header h2 { font-size: 1.8rem; }
    
    .module-card { padding: 1.5rem; border-radius: 20px; }
    .advantage-card { padding: 2rem 1.5rem; border-radius: 20px; }
    
    .cta-content h2 { font-size: 1.6rem; }
    .cta-banner { border-radius: 20px; }
    
    footer { padding: 2rem 5% 1rem; }
}

/* Contact Section */
.contact-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
}
.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =========================================================
   LIGHT MODE THEME (data-theme="light")
========================================================= */
[data-theme="light"] {
    --bg-color: #f0f4ff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-hover: rgba(255, 255, 255, 0.95);
    --card-border: rgba(129, 140, 248, 0.2);
    --card-border-hover: rgba(129, 140, 248, 0.5);
    --text-main: #1e1b4b;
    --text-muted: #475569;
    --glow-shadow: 0 0 20px rgba(129, 140, 248, 0.2);
}
[data-theme="light"] body { background-color: var(--bg-color); }
[data-theme="light"] .navbar { background: rgba(240, 244, 255, 0.92); border-bottom: 1px solid rgba(129,140,248,0.2); }
[data-theme="light"] .glow-bg, [data-theme="light"] .glow-bg-2, [data-theme="light"] .glow-bg-3 { opacity: 0.12; }
[data-theme="light"] .top-banner { background: linear-gradient(90deg, #6366f1, #4f46e5); }
[data-theme="light"] .module-card, [data-theme="light"] .advantage-card { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
[data-theme="light"] .highlight-banner { background: rgba(240,244,255,0.9); }
[data-theme="light"] .highlight-content { background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(224,231,255,0.95)); }

/* =========================================================
   READING PROGRESS BAR
========================================================= */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    z-index: 99999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(129,140,248,0.6);
}

/* =========================================================
   DARK / LIGHT TOGGLE BUTTON
========================================================= */
#theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    margin-left: 0.5rem;
}
#theme-toggle:hover { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }

/* =========================================================
   ACTIVE NAV LINK
========================================================= */
.nav-links a.nav-active {
    color: var(--accent-primary) !important;
}
.nav-links a.nav-active::after {
    width: 100% !important;
}

/* =========================================================
   SCROLL TO TOP BUTTON
========================================================= */
#scroll-top-btn {
    position: fixed;
    bottom: 140px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(129,140,248,0.4);
}
#scroll-top-btn.visible { opacity: 1; transform: translateY(0); }
#scroll-top-btn:hover { background: var(--accent-secondary); transform: translateY(-3px); }

/* =========================================================
   STATS COUNTER SECTION
========================================================= */
.stats-section {
    padding: 4rem 5%;
    background: linear-gradient(135deg, rgba(129,140,248,0.06) 0%, rgba(45,212,191,0.04) 100%);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.stat-card {
    padding: 2rem 1rem;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card i { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   MODULE SEARCH & FILTER BAR
========================================================= */
.module-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: 2rem 0 3rem;
}
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}
.search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}
#module-search {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border-radius: 50px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}
#module-search:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(129,140,248,0.15); }
#module-search::placeholder { color: var(--text-muted); }
.filter-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.filter-btn.active { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }

/* =========================================================
   FAQ SECTION
========================================================= */
.faq-section {
    padding: 6rem 5%;
    max-width: 900px;
    margin: 0 auto;
}
.faq-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item.open { border-color: var(--accent-primary); }
.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    gap: 1rem;
    transition: color 0.3s;
}
.faq-item.open .faq-question { color: var(--accent-primary); }
.faq-icon { font-size: 1.2rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.5rem 1.5rem; }

/* =========================================================
   AI CHATBOT
========================================================= */
#chatbot-container { position: fixed; bottom: 28px; right: 28px; z-index: 9999; }

#chat-toggle {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(129,140,248,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
#chat-toggle:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(129,140,248,0.6); }
.chat-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #f43f5e;
    color: white;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #030712;
}

#chat-window {
    position: absolute;
    bottom: 76px; right: 0;
    width: 360px;
    height: 520px;
    background: #0f172a;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transform-origin: bottom right;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#chat-window.open { opacity: 1; transform: scale(1) translateY(0); pointer-events: all; }

#chat-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(129,140,248,0.15), rgba(45,212,191,0.1));
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.chat-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: white; flex-shrink: 0;
}
.chat-title { font-weight: 700; font-size: 0.95rem; color: var(--text-main); }
.chat-status { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.status-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
#chat-close { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 0.25rem; }
#chat-close:hover { color: var(--text-main); }

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--card-border) transparent;
}
.msg { display: flex; }
.bot-msg { justify-content: flex-start; }
.user-msg { justify-content: flex-end; }
.msg-bubble {
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.55;
    max-width: 85%;
    word-wrap: break-word;
}
.bot-msg .msg-bubble {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    border-bottom-left-radius: 4px;
    color: var(--text-main);
}
.user-msg .msg-bubble {
    background: linear-gradient(135deg, var(--accent-primary), #6366f1);
    color: white;
    border-bottom-right-radius: 4px;
}
.quick-replies { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.25rem 0; }
.quick-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.quick-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.typing-indicator { display: flex; gap: 5px; align-items: center; padding: 0.85rem 1rem !important; }
.typing-indicator span {
    width: 7px; height: 7px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing-bounce 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce { 0%,60%,100%{transform:translateY(0);} 30%{transform:translateY(-8px);} }

#chat-input-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--card-border);
    background: rgba(255,255,255,0.02);
}
#chat-input {
    flex: 1;
    padding: 0.65rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--card-border);
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.3s;
}
#chat-input:focus { border-color: var(--accent-primary); }
#chat-input::placeholder { color: var(--text-muted); }
#chat-send {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}
#chat-send:hover { transform: scale(1.1); }

@media (max-width: 480px) {
    #chat-window { width: calc(100vw - 32px); right: -14px; }
}

/* Scrollable quick replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem 0;
    max-height: 90px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* AI Disclaimer bar (top of chat) */
#ai-disclaimer {
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.08);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 0.75rem;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
#ai-disclaimer i { font-size: 0.9rem; flex-shrink: 0; }

/* Footer disclaimer (bottom, above input) */
#chat-footer-disclaimer {
    padding: 0.5rem 1rem;
    background: rgba(45, 212, 191, 0.04);
    border-top: 1px solid rgba(45, 212, 191, 0.15);
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
#clear-data-btn {
    background: none;
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    cursor: pointer;
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s;
    font-family: inherit;
}
#clear-data-btn:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: #f87171;
}
#chat-clear:hover { color: #f87171 !important; }

/* Stats section: Mentor + Counters side by side */
.stats-inner-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* Mentor profile card inside stats */
.mentor-stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(129,140,248,0.08), rgba(45,212,191,0.06));
    border: 1px solid rgba(129,140,248,0.25);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.mentor-stat-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(129,140,248,0.15), transparent 70%);
    border-radius: 50%;
}
.mentor-stat-avatar {
    width: 80px; height: 80px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: white;
    box-shadow: 0 8px 25px rgba(129,140,248,0.3);
}
.mentor-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(129,140,248,0.15);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.mentor-stat-name {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.mentor-stat-creds {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}
.mentor-stat-creds span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.mentor-stat-creds i { color: var(--accent-secondary); flex-shrink: 0; font-size: 0.85rem; }
.mentor-stat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: gap 0.3s;
}
.mentor-stat-link:hover { gap: 0.7rem; }

/* Stack on mobile */
@media (max-width: 900px) {
    .stats-inner-wrap { grid-template-columns: 1fr; }
    .mentor-stat-card { flex-direction: column; text-align: center; }
    .mentor-stat-creds span { justify-content: center; }
}

/* Chat toast notification */
@keyframes fadeInToast {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
#chat-toast { transition: opacity 0.5s ease; }

/* === CHATBOT ENHANCED FEATURES === */
.chat-header-btns { display: flex; gap: 0.25rem; align-items: center; }
.chat-hdr-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 0.3rem; border-radius: 6px; transition: all 0.2s; }
.chat-hdr-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-main); }

/* Minimized state */
#chat-window.minimized #chat-messages,
#chat-window.minimized #ai-disclaimer,
#chat-window.minimized #chat-footer-disclaimer,
#chat-window.minimized #chat-input-row { display: none; }
#chat-window.minimized { height: auto !important; min-height: 0; }

/* Message meta row (time + actions) */
.msg-meta { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.25rem; padding: 0 0.25rem; opacity: 0; transition: opacity 0.2s; }
.msg:hover .msg-meta { opacity: 1; }
.msg-time { font-size: 0.68rem; color: var(--text-muted); }
.msg-action-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.8rem; padding: 0.15rem 0.3rem; border-radius: 5px; transition: all 0.2s; }
.msg-action-btn:hover { background: rgba(255,255,255,0.07); color: var(--text-main); }
.msg-action-btn.active-like { color: #4ade80; }
.msg-action-btn.active-dislike { color: #f87171; }

/* User msg meta align right */
.user-msg .msg-meta { justify-content: flex-end; }
.bot-msg .msg-meta { justify-content: flex-start; }

/* Follow-up chips (contextual, after each bot reply) */
.follow-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.2rem 0 0.6rem 0.25rem; }
.follow-chip {
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(129,140,248,0.3);
    background: rgba(129,140,248,0.06);
    color: var(--accent-primary);
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.follow-chip:hover { background: var(--accent-primary); color: white; border-color: var(--accent-primary); transform: translateY(-1px); }

/* Character counter */
#char-counter { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; align-self: center; }

/* ===== LEARNING ADVANTAGE SECTION — ENHANCED ===== */

/* Credibility strip under heading */
.adv-credibility-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.2rem;
}
.adv-credibility-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(129,140,248,0.25);
    background: rgba(129,140,248,0.07);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.adv-credibility-strip i { color: var(--accent-primary); font-size: 0.9rem; }

/* Advantage tag badge */
.adv-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    background: rgba(45,212,191,0.12);
    color: var(--accent-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

/* Module tags inside advantage cards */
.adv-modules-used {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.adv-mod-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(129,140,248,0.1);
    border: 1px solid rgba(129,140,248,0.2);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    white-space: nowrap;
}

/* Proof Points Row */
.adv-proof-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}
.adv-proof-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}
.adv-proof-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(129,140,248,0.2);
    transform: translateY(-3px);
}
.adv-proof-card > i {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.adv-proof-content strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}
.adv-proof-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Quote banner */
.adv-quote-banner {
    max-width: 860px;
    margin: 2.5rem auto 0;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(129,140,248,0.08), rgba(45,212,191,0.06));
    border: 1px solid rgba(129,140,248,0.2);
    border-radius: 20px;
    text-align: center;
    position: relative;
}
.adv-quote-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    opacity: 0.3;
    margin-bottom: 0.5rem;
}
.adv-quote-banner blockquote {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.5;
    border: none;
    padding: 0;
    margin: 0 0 0.6rem;
}
.adv-quote-source {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1100px) {
    .adv-proof-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .adv-proof-row { grid-template-columns: 1fr; }
    .adv-credibility-strip span { font-size: 0.72rem; }
    .adv-quote-banner { padding: 1.5rem; }
    .adv-quote-banner blockquote { font-size: 0.95rem; }
}

/* ===== AI-DRIVEN CHATBOT ENHANCEMENTS ===== */

/* Settings Panel */
#chat-settings-panel {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    animation: slideDownPanel 0.25s ease;
}
@keyframes slideDownPanel {
    from { opacity:0; transform:translateY(-8px); }
    to   { opacity:1; transform:translateY(0); }
}
.settings-panel-inner {
    padding: 1rem 1.2rem;
    background: rgba(15,23,42,0.95);
}
.settings-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.settings-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.settings-desc a { color: var(--accent-secondary); }
.settings-input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.settings-input-row input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    color: var(--text-main);
    font-size: 0.78rem;
    font-family: inherit;
}
.settings-input-row input:focus { outline: none; border-color: var(--accent-primary); }
.settings-input-row button {
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.2s;
}
.settings-input-row button:hover { opacity: 0.85; }
#gemini-status-msg { font-size: 0.75rem; min-height: 1.2rem; margin-bottom: 0.5rem; }
.settings-modes { display: flex; gap: 0.5rem; }
.mode-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.mode-card i { font-size: 1.2rem; }
.mode-card strong { font-size: 0.75rem; color: var(--text-main); }
.mode-card.active {
    border-color: var(--accent-primary);
    background: rgba(129,140,248,0.1);
    color: var(--accent-primary);
}
.mode-card.active strong { color: var(--accent-primary); }

/* Autocomplete Dropdown */
#chat-autocomplete {
    display: none;
    position: absolute;
    bottom: calc(100% + 2px);
    left: 0; right: 0;
    background: #0f172a;
    border: 1px solid rgba(129,140,248,0.2);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    z-index: 50;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.4);
}
.ac-item {
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ac-item:hover { background: rgba(129,140,248,0.1); color: var(--text-main); padding-left: 1.3rem; }

/* Context Bubble (section-aware proactive prompt) */
#ctx-bubble {
    position: fixed;
    bottom: 110px;
    right: 24px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(129,140,248,0.35);
    border-radius: 50px;
    padding: 0.55rem 0.9rem 0.55rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(129,140,248,0.15);
    animation: ctxSlideIn 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
    transition: opacity 0.6s ease;
    max-width: 280px;
    white-space: nowrap;
}
#ctx-bubble:hover { border-color: var(--accent-primary); background: rgba(129,140,248,0.08); }
#ctx-bubble-close {
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: 0.75rem; line-height: 1;
    padding: 0.1rem 0.2rem;
    flex-shrink: 0;
}
#ctx-bubble-close:hover { color: #f87171; }
@keyframes ctxSlideIn {
    from { opacity:0; transform:translateX(30px) scale(0.9); }
    to   { opacity:1; transform:translateX(0) scale(1); }
}

/* Typewriter cursor blink while streaming */
.msg-bubble.typing-live::after {
    content: '▋';
    animation: cursorBlink 0.7s step-end infinite;
    color: var(--accent-primary);
    margin-left: 2px;
}
@keyframes cursorBlink {
    0%,100% { opacity:1; } 50% { opacity:0; }
}

/* ===== INTELLIGENT MODULE SEARCH ===== */

/* Wrapper */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.srch-icon-main {
    position: absolute;
    left: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}
#module-search {
    padding-left: 2.8rem !important;
    padding-right: 6rem !important;
}
.srch-input-clear {
    position: absolute;
    right: 3.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem;
    border-radius: 50%;
    display: none;
    transition: all 0.2s;
}
#module-search:not(:placeholder-shown) ~ .srch-input-clear { display: flex; }
.srch-input-clear:hover { color: #f87171; background: rgba(248,113,113,0.1); }
.srch-kbd {
    position: absolute;
    right: 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    opacity: 0.5;
    pointer-events: none;
}

/* Filter bar with icons */
.filter-btn i { font-size: 0.85rem; }

/* Result panel */
#search-result-panel {
    max-width: 900px;
    margin: 0.75rem auto 0;
    display: none;
    animation: fadeInDown 0.25s ease;
}
@keyframes fadeInDown {
    from { opacity:0; transform:translateY(-6px); }
    to   { opacity:1; transform:translateY(0); }
}

/* Count bar */
.srch-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(45,212,191,0.07);
    border: 1px solid rgba(45,212,191,0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
    width: fit-content;
    margin: 0 auto;
}
.srch-count i { color: var(--accent-secondary); font-size: 1rem; }
.srch-count strong { color: var(--text-main); }
.srch-count em { font-style: italic; color: var(--accent-primary); }
.srch-clear-btn {
    background: none;
    border: 1px solid rgba(248,113,113,0.3);
    border-radius: 50px;
    color: #f87171;
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.2s;
}
.srch-clear-btn:hover { background: rgba(248,113,113,0.1); }

/* Keyword highlight */
mark.srch-hl {
    background: rgba(250,204,21,0.25);
    color: #fbbf24;
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 700;
}

/* Relevance badge on card */
.relevance-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    margin-left: auto;
    white-space: nowrap;
    animation: fadeInDown 0.3s ease;
    background: rgba(129,140,248,0.12);
    border: 1px solid rgba(129,140,248,0.25);
    color: var(--accent-primary);
}
.relevance-badge[data-score="3"], .relevance-badge[data-score="4"], .relevance-badge[data-score="5"] {
    background: rgba(251,191,36,0.12);
    border-color: rgba(251,191,36,0.3);
    color: #fbbf24;
}
.relevance-badge[data-score="2"] {
    background: rgba(45,212,191,0.1);
    border-color: rgba(45,212,191,0.25);
    color: var(--accent-secondary);
}

/* Card show/hide transitions */
.module-card { transition: opacity 0.3s ease, transform 0.3s ease; }
.card-hidden  { opacity: 0 !important; pointer-events: none; height: 0; padding: 0; margin: 0; overflow: hidden; border: none; }
.card-visible { opacity: 1; }

/* Empty state */
.srch-empty {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 20px;
    margin: 1rem 0;
}
.srch-empty-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}
.srch-empty p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.srch-empty strong { color: var(--text-main); }
.srch-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.srch-suggestions span { color: var(--text-muted); font-size: 0.82rem; align-self: center; }
.srch-sug-btn {
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    border: 1px solid rgba(129,140,248,0.3);
    background: rgba(129,140,248,0.07);
    color: var(--accent-primary);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.srch-sug-btn:hover { background: var(--accent-primary); color: white; }
.srch-empty-hint { font-size: 0.8rem !important; }
.srch-link-btn {
    background: none; border: none;
    color: var(--accent-secondary);
    cursor: pointer; font-size: inherit;
    text-decoration: underline;
    font-family: inherit;
}

.module-grid.grid-6 .card-header {
    margin-bottom: 0.75rem;
}

/* Featured Module */
.featured-module {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    align-items: center;
}
@media (max-width: 900px) {
    .featured-module {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}
