/* ====================================================
   PROJECT INFINITY — Design System
   India's Sovereign Super-AI Ecosystem
   ==================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+Devanagari:wght@400;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    /* Core palette */
    --bg-primary: #06060f;
    --bg-secondary: #0c0c1d;
    --bg-card: rgba(15, 15, 35, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);

    /* Indian tricolor accents */
    --saffron: #FF9933;
    --saffron-glow: rgba(255, 153, 51, 0.3);
    --saffron-dim: rgba(255, 153, 51, 0.15);
    --white-accent: #f0f0f5;
    --green: #138808;
    --green-glow: rgba(19, 136, 8, 0.3);
    --chakra-blue: #1a5276;

    /* Text */
    --text-primary: #e8e8f0;
    --text-secondary: rgba(232, 232, 240, 0.65);
    --text-muted: rgba(232, 232, 240, 0.4);

    /* Gradients */
    --gradient-tricolor: linear-gradient(135deg, #FF9933, #FFFFFF 50%, #138808);
    --gradient-saffron: linear-gradient(135deg, #FF9933, #ff6600);
    --gradient-green: linear-gradient(135deg, #138808, #1ebd0f);
    --gradient-hero: linear-gradient(180deg, rgba(6, 6, 15, 0) 0%, rgba(6, 6, 15, 1) 100%);

    /* Effects */
    --border-glass: 1px solid rgba(255, 255, 255, 0.06);
    --shadow-glow: 0 0 40px rgba(255, 153, 51, 0.08);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.hindi-text {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--saffron);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--saffron-dim);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--saffron);
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--saffron);
    margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--saffron-dim);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title .highlight {
    background: var(--gradient-tricolor);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(6, 6, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-glass);
    padding: 12px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
}

.nav-logo .infinity-symbol {
    font-size: 1.8rem;
    background: var(--gradient-tricolor);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: symbolPulse 3s ease-in-out infinite;
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--saffron);
    transition: var(--transition-fast);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    background: var(--gradient-saffron);
    color: var(--bg-primary) !important;
    font-weight: 600 !important;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth) !important;
    box-shadow: 0 4px 20px var(--saffron-glow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--saffron-glow);
}

.nav-cta::after {
    display: none !important;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--saffron);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title .gradient-text {
    background: var(--gradient-tricolor);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--gradient-saffron);
    color: var(--bg-primary);
    box-shadow: 0 4px 24px var(--saffron-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px var(--saffron-glow);
}

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

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    padding-top: 48px;
    border-top: var(--border-glass);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-tricolor);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ---------- Meta-Brain Section ---------- */
.meta-brain {
    background: var(--bg-secondary);
}

.meta-brain-visual {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.brain-diagram {
    position: relative;
    width: 500px;
    height: 500px;
}

.brain-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--saffron);
    box-shadow: 0 0 60px var(--saffron-glow), inset 0 0 30px var(--saffron-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
    animation: corePulse 4s ease-in-out infinite;
}

.brain-center-icon {
    font-size: 2.5rem;
    margin-bottom: 4px;
}

.brain-center-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--saffron);
}

.brain-center-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.brain-node {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-card);
    border: var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    cursor: pointer;
    z-index: 2;
}

.brain-node:hover {
    transform: scale(1.15);
    border-color: var(--saffron);
    box-shadow: 0 0 20px var(--saffron-glow);
    color: var(--text-primary);
}

.brain-node-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.brain-line {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--saffron-dim), transparent);
    transform-origin: left center;
    z-index: 1;
    animation: lineFlow 3s ease-in-out infinite;
}

/* ---------- Modules Section ---------- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.module-card {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-tricolor);
    opacity: 0;
    transition: var(--transition-fast);
}

.module-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 153, 51, 0.2);
    box-shadow: var(--shadow-glow);
    background: var(--bg-glass-hover);
}

.module-card:hover::before {
    opacity: 1;
}

.module-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: var(--saffron-dim);
}

.module-card:nth-child(even) .module-icon {
    background: var(--green-glow);
}

.module-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.module-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.module-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    color: var(--saffron);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Languages Section ---------- */
.languages {
    background: var(--bg-secondary);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.lang-card {
    padding: 16px 12px;
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition-smooth);
    cursor: default;
}

.lang-card:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(255, 153, 51, 0.15);
    transform: translateY(-4px);
}

.lang-native {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.lang-english {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-card.active {
    border-color: var(--saffron);
    box-shadow: 0 0 20px var(--saffron-glow);
}

/* ---------- Multimodal Section ---------- */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.capability-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition-smooth);
}

.capability-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 153, 51, 0.15);
    box-shadow: var(--shadow-glow);
}

.capability-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.capability-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}

.capability-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---------- Roadmap Section ---------- */
.roadmap {
    background: var(--bg-secondary);
}

.roadmap-timeline {
    display: flex;
    gap: 24px;
    position: relative;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--saffron), var(--green));
    z-index: 0;
}

.roadmap-phase {
    flex: 1;
    position: relative;
    z-index: 1;
}

.phase-marker {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    position: relative;
}

.phase-marker.active {
    background: var(--gradient-saffron);
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--saffron-glow);
    animation: markerPulse 2s ease-in-out infinite;
}

.phase-marker.upcoming {
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.phase-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.phase-duration {
    font-size: 0.8rem;
    color: var(--saffron);
    margin-bottom: 16px;
}

.phase-features {
    list-style: none;
}

.phase-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.phase-features li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--saffron);
}

/* ---------- CTA Section ---------- */
.cta-section {
    text-align: center;
    padding: 120px 0;
}

.cta-glow {
    position: relative;
}

.cta-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--saffron-dim), transparent 70%);
    z-index: 0;
    animation: ctaGlow 4s ease-in-out infinite;
}

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

.cta-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-sub {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.footer {
    padding: 40px 0;
    border-top: var(--border-glass);
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.footer-right a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-right a:hover {
    color: var(--saffron);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ---------- Keyframes ---------- */
@keyframes symbolPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes dotPulse {

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

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes corePulse {

    0%,
    100% {
        box-shadow: 0 0 60px var(--saffron-glow), inset 0 0 30px var(--saffron-dim);
    }

    50% {
        box-shadow: 0 0 80px var(--saffron-glow), inset 0 0 50px var(--saffron-dim);
    }
}

@keyframes lineFlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes markerPulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--saffron-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--saffron-glow);
    }
}

@keyframes ctaGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes chakraSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ---------- Console Styles ---------- */
.console-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.console-sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: var(--border-glass);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: var(--border-glass);
}

.sidebar-header .nav-logo {
    margin-bottom: 0;
}

.sidebar-modules {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.sidebar-module-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 12px 12px 8px;
}

.module-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
}

.module-btn:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.module-btn.active {
    background: var(--saffron-dim);
    color: var(--saffron);
    font-weight: 600;
}

.module-btn-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: var(--border-glass);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.sidebar-footer a:hover {
    color: var(--text-primary);
}

/* Chat Area */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.chat-header {
    padding: 16px 24px;
    border-bottom: var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.chat-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--green);
}

.chat-header-status .dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

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

/* Welcome State */
.welcome-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}

.welcome-infinity {
    font-size: 4rem;
    background: var(--gradient-tricolor);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    animation: symbolPulse 3s ease-in-out infinite;
}

.welcome-greeting {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.welcome-greeting-hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1rem;
    color: var(--saffron);
    margin-bottom: 24px;
}

.welcome-desc {
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.suggested-prompts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 600px;
}

.prompt-card {
    padding: 16px;
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: var(--radius);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.prompt-card:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(255, 153, 51, 0.15);
    transform: translateY(-2px);
}

.prompt-icon {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.prompt-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Message Bubbles */
.message {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-width: 85%;
}

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

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-card);
}

.message-avatar.ai {
    background: var(--saffron-dim);
    border: 1px solid rgba(255, 153, 51, 0.2);
    color: var(--saffron);
}

.message-avatar.user {
    background: var(--bg-glass);
    border: var(--border-glass);
}

.message-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.message.user .message-body {
    align-items: flex-end;
}

.message-name {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.message-name.ai-name {
    color: var(--saffron);
}

.message-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: 18px;
    border: var(--border-glass);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.message.ai .message-content {
    border-top-left-radius: 4px;
    background: rgba(15, 15, 35, 0.8);
}

.message.user .message-content {
    border-top-right-radius: 4px;
    background: var(--saffron-dim);
    border-color: rgba(255, 153, 51, 0.15);
}

.message-content p {
    margin-bottom: 12px;
}

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

.message-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: var(--saffron);
}

.message-content pre {
    background: #0d0d15;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    overflow-x: auto;
    position: relative;
}

.message-content pre code {
    background: transparent;
    padding: 0;
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Code block header / copy button */
.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    margin: -20px -20px 16px -20px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.copy-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.typing-chakra {
    width: 28px;
    height: 28px;
    border: 2px solid var(--saffron-dim);
    border-top-color: var(--saffron);
    border-radius: 50%;
    animation: chakraSpin 1s linear infinite;
}

.typing-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Chat Input */
.chat-input-area {
    padding: 16px 24px 24px;
    border-top: var(--border-glass);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 24px;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chat-input-wrapper:focus-within {
    border-color: var(--saffron);
    box-shadow: 0 0 30px var(--saffron-dim), 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.chat-input-wrapper:focus-within {
    border-color: rgba(255, 153, 51, 0.3);
    box-shadow: 0 0 20px var(--saffron-dim);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 12px 0;
}

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

.input-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.input-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.input-btn:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-saffron);
    color: var(--bg-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.send-btn:hover {
    box-shadow: 0 0 20px var(--saffron-glow);
    transform: scale(1.05);
}

.chat-input-hint {
    text-align: center;
    padding-top: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .roadmap-timeline {
        flex-direction: column;
    }

    .roadmap-timeline::before {
        top: 0;
        bottom: 0;
        left: 32px;
        width: 2px;
        height: auto;
        right: auto;
    }

    .brain-diagram {
        width: 350px;
        height: 350px;
    }

    .brain-center {
        width: 120px;
        height: 120px;
    }

    .brain-node {
        width: 60px;
        height: 60px;
        font-size: 0.55rem;
    }

    .brain-node-icon {
        font-size: 1.2rem;
    }

    .console-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 6, 15, 0.95);
        backdrop-filter: blur(20px);
        padding: 24px;
        border-bottom: var(--border-glass);
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

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

    .hero-actions {
        flex-direction: column;
    }

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

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

    .suggested-prompts {
        grid-template-columns: 1fr;
    }

    .brain-diagram {
        width: 280px;
        height: 280px;
    }

    .brain-center {
        width: 100px;
        height: 100px;
    }

    .brain-center-icon {
        font-size: 1.8rem;
    }

    .brain-center-label {
        font-size: 0.7rem;
    }

    .brain-node {
        width: 50px;
        height: 50px;
        font-size: 0.5rem;
    }

    .brain-node-icon {
        font-size: 1rem;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .console-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 100;
        width: 280px;
    }

    .console-sidebar.open {
        display: flex;
    }

    .console-menu-toggle {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

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

/* Console menu toggle (hidden by default) */
.console-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ---------- Settings Modal ---------- */
.settings-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.settings-overlay.open {
    display: flex;
}

.settings-modal {
    width: 500px;
    max-width: 95vw;
    max-height: 90vh;
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: var(--border-glass);
}

.settings-header h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.settings-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.settings-close-btn:hover {
    background: var(--bg-glass-hover);
}

.settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.settings-group {
    margin-bottom: 24px;
}

.settings-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settings-select,
.settings-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

.settings-select:focus,
.settings-input:focus {
    border-color: rgba(255, 153, 51, 0.3);
    box-shadow: 0 0 12px var(--saffron-dim);
}

.settings-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.settings-range {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    outline: none;
}

.settings-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--saffron);
    cursor: pointer;
    box-shadow: 0 0 10px var(--saffron-glow);
}

.settings-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

.settings-hint a {
    color: var(--saffron);
    text-decoration: underline;
}

.settings-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.settings-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--saffron);
}

.settings-footer {
    padding: 16px 24px;
    border-top: var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.settings-footer .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* ---------- Error Messages ---------- */
.message-avatar.error {
    background: rgba(231, 76, 60, 0.15);
}

.message-name.error-name {
    color: #e74c3c;
}

.error-content {
    color: var(--text-secondary) !important;
    background: rgba(231, 76, 60, 0.06);
    border-left: 3px solid #e74c3c;
    padding: 12px 16px !important;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- Config Notice ---------- */
.config-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--saffron-dim);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: var(--radius);
    margin-bottom: 24px;
    max-width: 500px;
    text-align: left;
}

.config-notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.config-notice-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.config-notice-text strong {
    color: var(--saffron);
}

/* ---------- Welcome Provider Badge ---------- */
.welcome-provider {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ---------- Streaming Cursor ---------- */
.stream-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--saffron);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ---------- Markdown List Fix ---------- */
.message-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.message-content ul li {
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.message-content h2,
.message-content h3,
.message-content h4 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.message-content h2 {
    font-size: 1.2rem;
}

.message-content h3 {
    font-size: 1.05rem;
}

.message-content h4 {
    font-size: 0.95rem;
}

/* ====================================================
   VOICE ASSISTANT STYLES
   ==================================================== */

/* ---------- Auto-Speak Toggle ---------- */
.auto-speak-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.auto-speak-toggle.active {
    background: rgba(255, 153, 51, 0.15);
    border-color: var(--saffron);
    color: var(--saffron);
    box-shadow: 0 0 8px rgba(255, 153, 51, 0.2);
}

.auto-speak-toggle:hover {
    background: rgba(255, 153, 51, 0.1);
    border-color: var(--saffron);
}

/* ---------- Language Selector ---------- */
.voice-lang-select {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    outline: none;
    max-width: 140px;
    transition: all 0.3s ease;
}

.voice-lang-select:hover {
    border-color: var(--saffron);
    background: rgba(255, 153, 51, 0.1);
}

.voice-lang-select:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 2px rgba(255, 153, 51, 0.2);
}

.voice-lang-select option {
    background: #1a1a2e;
    color: var(--text-primary);
}

/* ---------- Mic Button ---------- */
.voice-mic-btn {
    position: relative;
    transition: all 0.3s ease;
}

.voice-mic-btn.voice-active {
    opacity: 1 !important;
    cursor: pointer !important;
    color: #ff4444;
    animation: micGlow 1.5s ease-in-out infinite;
}

.mic-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.3);
    animation: micPulse 1.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes micPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
}

@keyframes micGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 68, 68, 0.6);
    }
}

/* ---------- Voice Orb (Siri Style) ---------- */
.voice-orb-container {
    position: relative;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 60px 24px;
    margin: 32px;
    background: rgba(15, 15, 35, 0.4);
    border: 1px solid rgba(255, 153, 51, 0.1);
    border-radius: var(--radius-lg);
    z-index: 10;
    pointer-events: none;
    transition: all 0.5s ease;
    animation: fadeInScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.voice-orb-container.active {
    display: flex;
    pointer-events: auto;
}

.voice-orb {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-core {
    width: 60px;
    height: 60px;
    background: var(--gradient-tricolor);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 30px var(--saffron-glow);
    animation: orbCorePulse 2s ease-in-out infinite;
}

.orb-ring {
    position: absolute;
    border: 2px solid var(--saffron-dim);
    border-radius: 50%;
    animation: orbRingPulse 4s linear infinite;
    opacity: 0;
}

.orb-ring:nth-child(1) {
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.orb-ring:nth-child(2) {
    width: 130px;
    height: 130px;
    animation-delay: 1.3s;
}

.orb-ring:nth-child(3) {
    width: 160px;
    height: 160px;
    animation-delay: 2.6s;
}

.voice-orb-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--saffron-dim) 0%, transparent 70%);
    opacity: 0.5;
    animation: orbGlow 4s ease-in-out infinite;
}

.voice-orb-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-align: center;
    max-width: 80%;
}

/* Animations */
@keyframes orbCorePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px var(--saffron-glow);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 50px var(--saffron-glow);
    }
}

@keyframes orbRingPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
        border-color: var(--saffron-dim);
    }

    20% {
        opacity: 0.5;
    }

    80% {
        opacity: 0.2;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
        border-color: var(--green-glow);
    }
}

@keyframes orbGlow {

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

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Voice Active State for Orb */
.voice-orb-container.listening .orb-core {
    background: var(--gradient-saffron);
    animation: orbCoreListen 0.5s ease-in-out infinite alternate;
}

.voice-orb-container.listening .voice-orb-text {
    color: var(--saffron);
}

@keyframes orbCoreListen {
    from {
        transform: scale(1.1);
        box-shadow: 0 0 40px var(--saffron);
    }

    to {
        transform: scale(1.3);
        box-shadow: 0 0 70px var(--saffron);
    }
}

/* ---------- Voice Status ---------- */
.voice-status {
    font-size: 0.72rem;
    color: var(--saffron);
    text-align: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.voice-status.visible {
    padding: 6px 0 2px;
    max-height: 30px;
    opacity: 1;
}

/* ---------- Message Actions (Speak Button) ---------- */
.message-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.speak-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.speak-btn:hover {
    background: rgba(255, 153, 51, 0.15);
    border-color: var(--saffron);
    color: var(--saffron);
}

.speak-btn.speaking {
    background: rgba(255, 153, 51, 0.2);
    border-color: var(--saffron);
    color: var(--saffron);
    animation: speakPulse 1.5s ease-in-out infinite;
}

@keyframes speakPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 153, 51, 0.3);
    }

    50% {
        box-shadow: 0 0 8px 4px rgba(255, 153, 51, 0.15);
    }
}

/* ---------- Mobile Voice Adjustments ---------- */
@media (max-width: 768px) {
    .voice-lang-select {
        max-width: 100px;
        font-size: 0.65rem;
    }

    .speak-btn {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

/* ---------- Feature Selector (Inside Input) ---------- */
.feature-selector {
    position: relative;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px 0 0 12px;
}

.feature-selector-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.feature-selector-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.feature-selector-btn .chevron-up {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.feature-selector.open .chevron-up {
    transform: rotate(180deg);
}

.feature-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    width: 240px;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-selector.open .feature-dropdown-menu {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-item.active {
    background: rgba(255, 153, 51, 0.1);
    border-color: rgba(255, 153, 51, 0.3);
}

.feature-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.feature-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.feature-item.active .feature-name {
    color: var(--saffron);
}

/* ---------- Chat Input Layout Adjustments ---------- */
.chat-input-wrapper {
    display: flex;
    align-items: stretch;
    padding: 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(24, 24, 30, 0.8);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
}

.chat-input {
    flex: 1;
    padding: 14px 18px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.chat-input:focus {
    box-shadow: none;
    border: none;
}

.input-actions {
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 18px;
}

/* ---------- Advanced Mode Toggles ---------- */
.module-btn.toggle-btn {
    position: relative;
    border-left: 3px solid transparent;
}

.module-btn.toggle-btn.active#godModeBtn {
    border-left-color: #ffde00;
    background: linear-gradient(90deg, rgba(255, 222, 0, 0.1), transparent);
    color: #ffde00;
    box-shadow: inset 5px 0 15px rgba(255, 222, 0, 0.05);
}

.module-btn.toggle-btn.active#selfImproveBtn {
    border-left-color: #00f2ff;
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.1), transparent);
    color: #00f2ff;
    box-shadow: inset 5px 0 15px rgba(0, 242, 255, 0.05);
}

.module-btn.toggle-btn.active .module-btn-icon {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 2px currentColor);
    }

    50% {
        filter: drop-shadow(0 0 8px currentColor);
    }
}

/* ---------- Attachment Menu ---------- */
.attachment-container {
    position: relative;
    display: flex;
    align-items: center;
}

.attachment-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 200px;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.attachment-container.open .attachment-menu {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.attachment-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.attachment-icon {
    font-size: 1rem;
}

.attachment-label {
    font-size: 0.85rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .feature-dropdown-menu {
        width: 200px;
    }

    .feature-selector-btn {
        padding: 0 12px;
    }

    .attachment-menu {
        width: 180px;
    }
}

/* ---------- PIN Modal ---------- */
.pin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.pin-modal-overlay.active {
    display: flex;
}

.pin-modal {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 153, 51, 0.3);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 153, 51, 0.1);
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

.pin-modal-header .lock-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--saffron));
}

.pin-modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--white-accent);
}

.pin-modal-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.pin-input-container input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    font-size: 1.5rem;
    letter-spacing: 12px;
    text-align: center;
    color: var(--saffron);
    margin-bottom: 24px;
    outline: none;
    transition: all 0.3s ease;
}

.pin-input-container input:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 15px rgba(255, 153, 51, 0.2);
}

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

.pin-btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.pin-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.pin-btn.submit {
    background: var(--gradient-saffron);
    color: #000;
}

.pin-btn:hover {
    transform: scale(1.02);
}

.pin-error {
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 16px;
    display: none;
}