/* ✨ DIVINE AI STUDY COMPANION ✨ - Premium Magical UI */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ✨ SUPER FUTURISTIC GROK-STYLE THEME ✨ */
    --grok-purple: #8b5cf6;
    --grok-pink: #ec4899;
    --grok-blue: #3b82f6;
    --grok-cyan: #06b6d4;
    --grok-gold: #fbbf24;
    --grok-silver: #e5e7eb;
    --grok-dark-silver: #9ca3af;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-accent: #8b5cf6;

    /* Background Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-glass: rgba(0, 0, 0, 0.8);

    /* Futuristic Gradients */
    --gradient-grok: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #3b82f6 100%);
    --gradient-neon: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-cosmic: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #1a1a1a 100%);
    --gradient-glow: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);

    /* Futuristic Effects */
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
    --glow-pink: 0 0 20px rgba(236, 72, 153, 0.3);
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --glow-cyan: 0 0 15px rgba(6, 182, 212, 0.3);
    --glow-gold: 0 0 15px rgba(251, 191, 36, 0.4);

    /* Borders & Shadows */
    --border-glow: rgba(139, 92, 246, 0.2);
    --shadow-grok: 0 0 30px rgba(139, 92, 246, 0.2);
    --shadow-neon: 0 0 25px rgba(236, 72, 153, 0.15);
}

/* 🚀 FONT LOADING OPTIMIZATION */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiJ-Ek-_EeA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:
        /* Futuristic Black Base */
        var(--gradient-cosmic),
        /* Reflective metallic texture */
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
    /* 🚀 Performance optimization */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ✨ OPTIMIZED PARTICLE SYSTEM ✨ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Optimized floating particles */
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 20% 90%, rgba(6, 182, 212, 0.10) 0%, transparent 50%),
        /* Simplified energy streams */
        linear-gradient(45deg, rgba(139, 92, 246, 0.06) 0%, transparent 50%, rgba(59, 130, 246, 0.03) 100%),
        linear-gradient(-45deg, rgba(6, 182, 212, 0.04) 0%, transparent 50%, rgba(236, 72, 153, 0.02) 100%);
    animation: particleFlow 30s ease-in-out infinite;
    z-index: -1;
    opacity: 0.8;
    /* 🚀 Performance optimization */
    will-change: transform;
    transform: translateZ(0);
}

/* ✨ OPTIMIZED GLOW OVERLAY ✨ */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Optimized pulsing orbs */
        radial-gradient(circle at 25% 75%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 75% 25%, rgba(236, 72, 153, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.10) 0%, transparent 40%);
    animation: dynamicGlow 25s ease-in-out infinite;
    z-index: -1;
    opacity: 0.6;
    /* 🚀 Performance optimization */
    will-change: opacity;
    transform: translateZ(0);
}

@keyframes particleFlow {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-20px) translateX(15px) scale(1.05);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-10px) translateX(-10px) scale(0.95);
        opacity: 0.7;
    }
    75% {
        transform: translateY(15px) translateX(5px) scale(1.02);
        opacity: 0.85;
    }
}

@keyframes dynamicGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.02);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.98);
    }
    75% {
        opacity: 0.7;
        transform: scale(1.01);
    }
}

@keyframes gridShift {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 50px 50px, 50px 50px, 50px 50px, 50px 50px, 50px 50px, 50px 50px;
    }
}

@keyframes magicalMicroFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.9;
        filter: brightness(1.05);
    }
    20% {
        transform: translateY(-8px) translateX(8px) scale(1.05);
        opacity: 0.95;
        filter: brightness(1.1);
    }
    40% {
        transform: translateY(-16px) translateX(-4px) scale(0.95);
        opacity: 0.92;
        filter: brightness(1.03);
    }
    60% {
        transform: translateY(-12px) translateX(12px) scale(1.02);
        opacity: 0.96;
        filter: brightness(1.08);
    }
    80% {
        transform: translateY(-20px) translateX(6px) scale(0.98);
        opacity: 0.94;
        filter: brightness(1.06);
    }
}

/* ✨ MAGICAL PASSWORD PROTECTION ✨ */
.password-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-futuristic);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow: hidden;
}

.password-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.06) 0%, transparent 40%);
    animation: divineGlow 8s ease-in-out infinite alternate;
}

@keyframes divineGlow {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.05); }
}

.password-container {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 30px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow:
        0 25px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(251, 191, 36, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: appear 0.8s ease-out;
    overflow: hidden;
}

.password-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-xai);
    animation: shimmer 3s ease-in-out infinite;
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.password-header {
    margin-bottom: 2rem;
    position: relative;
}

.password-header i {
    font-size: 4rem;
    color: var(--grok-gold);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3));
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

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

.password-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(59, 130, 246, 0.4),
        0 0 25px rgba(139, 92, 246, 0.3);
    position: relative;
    z-index: 10;
}

.password-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
}

.password-form {
    margin-bottom: 2rem;
}

.password-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.password-input {
    width: 100%;
    padding: 1.25rem;
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.password-input:focus {
    outline: none;
    border-color: var(--xai-purple);
    box-shadow: var(--shadow-glow);
    background: rgba(0, 0, 0, 0.5);
}

.password-submit {
    background: var(--gradient-xai);
    color: #000;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.password-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.password-submit:hover::before {
    left: 100%;
}

.password-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.password-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.password-hint i {
    color: var(--xai-purple);
    margin-right: 0.5rem;
}

.hidden {
    display: none;
}

/* ✨ DIVINE APP HEADER ✨ */
.app-header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo-section i {
    font-size: 2.5rem;
    color: var(--grok-gold);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3));
    animation: sacredPulse 3s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

@keyframes sacredPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.5));
    }
}

.logo-section h1 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(59, 130, 246, 0.4),
        0 0 25px rgba(139, 92, 246, 0.3);
    position: relative;
    z-index: 10;
}

.logo-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 300;
}

.creator-badge small {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
}

/* ✨ MAGICAL CHAT CONTAINER ✨ */
.lds-chat-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.chat-wrapper {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 30px;
    overflow: hidden;
    box-shadow:
        0 25px 50px rgba(0,0,0,0.3),
        0 0 0 1px rgba(251, 191, 36, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    animation: divineAppear 1s ease-out;
}

.chat-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-xai);
    animation: divineFlow 4s ease-in-out infinite;
}

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

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

/* ✨ DIVINE CHAT HEADER ✨ */
.chat-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
    border-bottom: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.04) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.04) 0%, transparent 30%);
    animation: sacredBreath 6s ease-in-out infinite;
}

@keyframes sacredBreath {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.chat-header h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(139, 92, 246, 0.4),
        0 0 20px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 15;
    justify-content: center;
    gap: 1rem;
}

.chat-header h2 i {
    color: var(--grok-purple);
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Specific rule for prayer icon to remove spinning */
.chat-header h2 .fa-pray {
    animation: none !important;
    color: var(--grok-purple);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

@keyframes divineRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chat-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* ✨ ADVANCED INTERACTIVE CHAT MESSAGES ✨ */
.chat-messages {
    height: 520px;
    overflow-y: auto;
    background: rgba(0,0,0,0.08);
    padding: 2.5rem 2.5rem 1rem 2.5rem;
    scroll-behavior: smooth;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
    border-radius: 20px;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    margin: 1rem;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--xai-purple), var(--xai-pink));
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--xai-pink), var(--xai-purple));
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
}

.chat-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.01) 50%, transparent 100%);
    pointer-events: none;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    margin: 1rem;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--gradient-xai);
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: inset 0 0 5px rgba(251, 191, 36, 0.3);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-xai);
    box-shadow: inset 0 0 8px rgba(59, 130, 246, 0.4);
}

/* ✨ DIVINE MESSAGE BUBBLES ✨ */
.chat-message {
    margin-bottom: 2rem;
    animation: sacredFadeIn 0.5s ease-out;
    position: relative;
}

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

.chat-message.user {
    display: flex;
    justify-content: flex-end;
    animation: userSlideIn 0.5s ease-out;
}

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

.chat-message.ai {
    display: flex;
    justify-content: flex-start;
    animation: aiSlideIn 0.5s ease-out;
}

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

.message-content {
    max-width: 75%;
    padding: 1.5rem 1.75rem;
    border-radius: 24px;
    line-height: 1.7;
    word-wrap: break-word;
    position: relative;
    font-size: 1.05rem;
    font-weight: 400;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 8px 30px rgba(0,0,0,0.15),
        0 0 50px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: messageSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 1.25rem;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.chat-message.user .message-content {
    background:
        linear-gradient(135deg,
            rgba(59, 130, 246, 0.9) 0%,
            rgba(139, 92, 246, 0.8) 50%,
            rgba(59, 130, 246, 0.9) 100%);
    color: white;
    border-bottom-right-radius: 8px;
    box-shadow:
        0 8px 25px rgba(59, 130, 246, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(20px);
}

.chat-message.user .message-content:hover {
    background:
        linear-gradient(135deg,
            rgba(59, 130, 246, 0.95) 0%,
            rgba(139, 92, 246, 0.9) 50%,
            rgba(59, 130, 246, 0.95) 100%);
    box-shadow:
        0 12px 35px rgba(59, 130, 246, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.chat-message.user .message-content::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--xai-blue);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.chat-message.ai .message-content {
    background:
        linear-gradient(135deg,
            rgba(139, 92, 246, 0.08) 0%,
            rgba(236, 72, 153, 0.06) 50%,
            rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-bottom-left-radius: 8px;
    box-shadow:
        0 8px 25px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    backdrop-filter: blur(20px);
}

.chat-message.ai .message-content:hover {
    background:
        linear-gradient(135deg,
            rgba(139, 92, 246, 0.12) 0%,
            rgba(236, 72, 153, 0.08) 50%,
            rgba(139, 92, 246, 0.12) 100%);
    box-shadow:
        0 12px 35px rgba(139, 92, 246, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.chat-message.ai .message-content::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--bg-glass);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.welcome-message .message-content {
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    box-shadow:
        0 12px 40px rgba(0,0,0,0.3),
        0 0 0 1px rgba(251, 191, 36, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: welcomeGlow 2s ease-in-out infinite alternate;
}

@keyframes welcomeGlow {
    0% {
        box-shadow:
            0 12px 40px rgba(0,0,0,0.3),
            0 0 0 1px rgba(139, 92, 246, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow:
            0 12px 40px rgba(0,0,0,0.3),
            0 0 0 1px rgba(139, 92, 246, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 20px rgba(139, 92, 246, 0.08);
    }
}

.message-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.85;
    position: relative;
    transition: all 0.3s ease;
    padding: 0 0.5rem;
}

.message-info:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* ✨ BRIGHT ENHANCED MESSAGE MODE BADGES ✨ */
.message-mode {
    background: linear-gradient(135deg, var(--xai-purple), var(--xai-pink));
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow:
        0 4px 15px rgba(139, 92, 246, 0.6),
        0 0 30px rgba(236, 72, 153, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.message-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.message-mode:hover::before {
    left: 100%;
}

/* ✨ HIDDEN TIMESTAMPS - CLEAN INTERFACE ✨ */
.message-time {
    display: none !important;
}

/* Message reactions */
.message-reactions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-message:hover .message-reactions {
    opacity: 1;
}

.reaction-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.reaction-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.reaction-btn:active {
    transform: scale(0.95);
}

/* Remove duplicate message-mode styling */

/* ✨ ENHANCED INPUT SECTION ✨ */
.chat-input-section {
    background: rgba(0,0,0,0.08);
    backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-top: 1rem;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chat-input-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-xai);
    opacity: 0.3;
}

.chat-input-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-end;
    position: relative;
    z-index: 1;
    padding: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 1.5rem 1.75rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 400;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.2),
        0 2px 10px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    outline: none;
    resize: none;
    min-height: 50px;
    max-height: 120px;
}

.chat-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow:
        0 0 0 4px rgba(139, 92, 246, 0.15),
        0 0 20px rgba(236, 72, 153, 0.1),
        inset 0 2px 8px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    font-style: italic;
    opacity: 0.7;
}

.send-message-btn {
    padding: 1.25rem 2rem;
    background: var(--gradient-xai);
    border: none;
    border-radius: 25px;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.send-message-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.send-message-btn:hover::before {
    left: 100%;
}

.send-message-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.send-message-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.send-message-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

/* ✨ HOLOGRAPHIC BUTTON EFFECTS ✨ */
.quick-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    perspective: 1000px;
}

.topic-btn {
    position: relative;
    padding: 0.875rem 1rem;
    background:
        /* Multi-layer holographic gradient */
        linear-gradient(135deg,
            rgba(139, 92, 246, 0.1) 0%,
            rgba(236, 72, 153, 0.05) 25%,
            rgba(59, 130, 246, 0.08) 50%,
            rgba(139, 92, 246, 0.1) 75%,
            rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow:
        0 4px 20px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.topic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(139, 92, 246, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.topic-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.topic-btn:hover {
    transform: translateY(-4px) rotateX(5deg) rotateY(5deg) scale(1.02);
    box-shadow:
        0 12px 30px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(236, 72, 153, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
}

.topic-btn:hover::before {
    left: 100%;
}

.topic-btn:hover::after {
    opacity: 1;
}

.topic-btn:active {
    transform: translateY(-2px) rotateX(2deg) rotateY(2deg) scale(0.98);
    transition: all 0.1s ease;
}

.topic-btn i {
    color: var(--xai-purple);
    font-size: 1rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.5));
}

.topic-btn:hover i {
    color: var(--xai-pink);
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.7));
}

/* ✨ SHINY SEND BUTTON ✨ */
.send-message-btn {
    position: relative;
    padding: 1.25rem 2rem;
    background:
        /* Metallic gradient with holographic effect */
        linear-gradient(135deg,
            #1a1a2e 0%,
            #16213e 25%,
            #0f3460 50%,
            #16213e 75%,
            #1a1a2e 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow:
        0 8px 25px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.send-message-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(139, 92, 246, 0.3) 50%,
            rgba(255, 255, 255, 0.2) 80%,
            transparent);
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.send-message-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        conic-gradient(from 0deg at 50% 50%,
            rgba(139, 92, 246, 0.1) 0deg,
            rgba(236, 72, 153, 0.1) 60deg,
            rgba(59, 130, 246, 0.1) 120deg,
            rgba(6, 182, 212, 0.1) 180deg,
            rgba(139, 92, 246, 0.1) 240deg,
            rgba(236, 72, 153, 0.1) 300deg,
            rgba(139, 92, 246, 0.1) 360deg);
    animation: hologramRotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

@keyframes hologramRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.send-message-btn:hover::before {
    left: 100%;
}

.send-message-btn:hover::after {
    opacity: 0.6;
}

.send-message-btn:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 15px 35px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
}

.send-message-btn:active {
    transform: translateY(-3px) scale(0.98);
    transition: all 0.1s ease;
}

.send-message-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

/* ✨ ADVANCED HOLOGRAPHIC ACTION STEPS ✨ */
.action-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background:
        /* Multi-layer holographic background */
        linear-gradient(135deg,
            rgba(139, 92, 246, 0.1) 0%,
            rgba(236, 72, 153, 0.08) 25%,
            rgba(59, 130, 246, 0.12) 50%,
            rgba(6, 182, 212, 0.06) 75%,
            rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    cursor: pointer;
    box-shadow:
        0 4px 20px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.action-step::before {
    content: attr(data-number);
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background:
        conic-gradient(from 0deg at 50% 50%,
            var(--xai-purple) 0deg,
            var(--xai-pink) 60deg,
            var(--xai-blue) 120deg,
            var(--xai-cyan) 180deg,
            var(--xai-purple) 240deg,
            var(--xai-pink) 300deg,
            var(--xai-purple) 360deg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    box-shadow:
        0 2px 8px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.action-step::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(139, 92, 246, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 80%,
        transparent);
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.action-step span {
    margin-left: 2rem;
    position: relative;
    z-index: 2;
    color: var(--text-primary);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(139, 92, 246, 0.3);
}

.action-step:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 30px rgba(139, 92, 246, 0.3),
        0 0 50px rgba(236, 72, 153, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    background:
        linear-gradient(135deg,
            rgba(139, 92, 246, 0.15) 0%,
            rgba(236, 72, 153, 0.12) 25%,
            rgba(59, 130, 246, 0.18) 50%,
            rgba(6, 182, 212, 0.08) 75%,
            rgba(139, 92, 246, 0.15) 100%);
}

.action-step:hover::before {
    animation: numberGlow 2s ease-in-out infinite;
    box-shadow:
        0 4px 15px rgba(139, 92, 246, 0.5),
        0 0 20px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.action-step:hover::after {
    left: 100%;
}

.action-step:hover span {
    color: var(--text-primary);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(139, 92, 246, 0.5),
        0 0 15px rgba(236, 72, 153, 0.3);
    font-weight: 600;
}

.action-step:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

@keyframes numberGlow {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
        filter: brightness(1.2);
    }
}

/* Enhanced action steps container */
.action-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

/* Special styling for each action step */
.action-step:nth-child(1) {
    background:
        linear-gradient(135deg,
            rgba(139, 92, 246, 0.12) 0%,
            rgba(236, 72, 153, 0.08) 50%,
            rgba(139, 92, 246, 0.12) 100%);
}

.action-step:nth-child(2) {
    background:
        linear-gradient(135deg,
            rgba(236, 72, 153, 0.12) 0%,
            rgba(59, 130, 246, 0.08) 50%,
            rgba(236, 72, 153, 0.12) 100%);
}

.action-step:nth-child(3) {
    background:
        linear-gradient(135deg,
            rgba(59, 130, 246, 0.12) 0%,
            rgba(6, 182, 212, 0.08) 50%,
            rgba(59, 130, 246, 0.12) 100%);
}

/* Enhanced welcome prompt */
.welcome-prompt {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1.25rem 0;
    text-align: center;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(139, 92, 246, 0.4),
        0 0 20px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 10;
}

.welcome-prompt::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-xai);
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* ✨ SCROLL-BASED REACTIVITY ✨ */
@keyframes scrollGlow {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(139, 92, 246, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 8px 30px rgba(139, 92, 246, 0.3),
            0 0 50px rgba(236, 72, 153, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* ✨ CONSTANT GLOW - NO FLICKERING ✨ */
.topic-btn {
    animation: scrollGlow 8s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.5s);
}

/* Enhanced focus states for accessibility */
.topic-btn:focus,
.send-message-btn:focus,
.action-step:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.5),
        0 8px 25px rgba(139, 92, 246, 0.3);
}

/* ✨ SCRIPTURE LINKS ✨ */
.scripture-link {
    color: var(--grok-gold);
    font-weight: 600;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(251, 191, 36, 0.4);
    text-decoration: none;
    border-bottom: 2px solid rgba(251, 191, 36, 0.4);
    padding-bottom: 2px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.scripture-link:hover {
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(251, 191, 36, 0.8);
    border-bottom-color: rgba(251, 191, 36, 0.8);
    transform: translateY(-1px);
}

.scripture-link::after {
    content: '📖';
    position: absolute;
    top: -2px;
    right: -18px;
    font-size: 0.8em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scripture-link:hover::after {
    opacity: 1;
}

/* ✨ LDS LINKS ✨ */
.lds-link {
    color: var(--xai-blue);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
}

.lds-link:hover {
    color: var(--xai-cyan);
    background: rgba(59, 130, 246, 0.2);
    border-bottom-color: rgba(59, 130, 246, 0.8);
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* ✨ ADVANCED CODE SYNTAX HIGHLIGHTING ✨ */
.message-content code {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--xai-pink);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-content pre {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.05) 0%,
        rgba(59, 130, 246, 0.03) 50%,
        rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    backdrop-filter: blur(15px);
    box-shadow:
        0 4px 20px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.message-content pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-xai);
    border-radius: 12px 12px 0 0;
}

.message-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Code block copy button */
.message-content pre {
    position: relative;
}

.message-content pre::after {
    content: '📋';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.message-content pre:hover::after {
    opacity: 1;
}

.message-content pre::after:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: scale(1.1);
}

/* ✨ RICH MEDIA SUPPORT ✨ */
.message-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.message-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.message-content blockquote {
    border-left: 4px solid var(--xai-purple);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-style: italic;
    background: rgba(139, 92, 246, 0.05);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(10px);
}

.message-content blockquote::before {
    content: '"';
    font-size: 2rem;
    color: var(--xai-purple);
    position: absolute;
    margin-top: -0.5rem;
    margin-left: -0.5rem;
}

/* ✨ ADVANCED LINK STYLING ✨ */
.message-content a {
    color: var(--xai-purple);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.message-content a:hover {
    color: var(--xai-pink);
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.5);
}

.message-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-xai);
    transition: width 0.3s ease;
}

.message-content a:hover::after {
    width: 100%;
}

/* ✨ MESSAGE STATUS INDICATORS ✨ */
.message-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    opacity: 0.7;
}

.message-status.sent::before {
    content: '✓';
    color: var(--xai-cyan);
}

.message-status.delivered::before {
    content: '✓✓';
    color: var(--xai-blue);
}

.message-status.read::before {
    content: '✓✓';
    color: var(--xai-purple);
}

/* ✨ ADVANCED MESSAGE GROUPING ✨ */
.message-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.message-group .chat-message {
    margin-bottom: 0.25rem;
}

.message-group .message-info {
    opacity: 0.5;
}

.message-group .message-info:hover {
    opacity: 1;
}

/* ✨ SMOOTH MESSAGE TRANSITIONS ✨ */
.chat-messages {
    transition: all 0.3s ease;
}

.chat-message {
    transform-origin: center;
    will-change: transform, opacity;
}

/* ✨ ADVANCED MESSAGE ANIMATIONS ✨ */
@keyframes messageBounce {
    0% {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }
    50% {
        transform: translateY(-5px) scale(1.02);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.chat-message:nth-child(even) .message-content {
    animation: messageBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chat-message:nth-child(odd) .message-content {
    animation: messageSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ✨ ADVANCED MESSAGE THREADING ✨ */
.message-thread {
    border-left: 2px solid var(--xai-purple);
    padding-left: 1rem;
    margin-left: 1rem;
    position: relative;
}

.message-thread::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--xai-purple);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.message-thread-indicator {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.message-thread-indicator::before {
    content: '💬';
    font-size: 0.8rem;
}

/* ✨ MESSAGE EDITING INDICATOR ✨ */
.message-edited {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-left: 0.5rem;
}

.message-edited::before {
    content: '(edited)';
    font-style: italic;
}

/* ✨ MESSAGE SEARCH HIGHLIGHT ✨ */
.message-highlight {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.2) 0%,
        rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 0.25rem;
    animation: highlightPulse 2s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    }
}

/* ✨ SACRED FOOTER ✨ */
.app-footer {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-primary);
    padding: 2.5rem 0;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-xai);
    opacity: 0.3;
}

.app-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.01) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

.footer-left i {
    color: var(--grok-gold);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.3));
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

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

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

.footer-center i {
    color: var(--xai-purple);
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-right small {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.footer-right .creator-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-right .creator-info i {
    color: var(--xai-purple);
    font-size: 1rem;
}

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

/* ✨ MAGICAL LOADING INDICATOR ✨ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(10px);
}

.loading-overlay.enhanced {
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, rgba(0, 0, 0, 0.95) 70%);
}

.loading-content {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    box-shadow:
        0 25px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(251, 191, 36, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
}

.loading-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-xai);
    animation: divineFlow 3s ease-in-out infinite;
}

.loading-spirit {
    position: relative;
    margin-bottom: 1.5rem;
}

.loading-spirit i {
    font-size: 4rem;
    color: var(--grok-gold);
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
    animation: sacredPulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}

.spirit-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gradient-xai);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
    opacity: 0;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    right: 25%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    bottom: 25%;
    left: 25%;
    animation-delay: 2s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-40px) scale(0);
        opacity: 0;
    }
}

.loading-content p {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.loading-tip {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.loading-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-xai);
    border-radius: 2px;
    animation: progressFlow 2s ease-in-out infinite;
}

@keyframes progressFlow {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ✨ ADVANCED TYPING INDICATOR ✨ */
.typing-indicator {
    opacity: 0.9;
    animation: typingFadeIn 0.3s ease-out;
}

@keyframes typingFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.typing-dots {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    padding: 4px 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.typing-dots::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--grok-purple), var(--grok-pink));
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
    animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
    }
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--grok-purple), var(--grok-pink));
    border-radius: 50%;
    animation: typingAdvanced 1.8s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes typingAdvanced {
    0%, 80%, 100% {
        transform: scale(0.8) translateY(0) translateZ(0);
        opacity: 0.6;
        box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
    }
    40% {
        transform: scale(1.1) translateY(-2px) translateZ(0);
        opacity: 1;
        box-shadow: 0 0 12px rgba(139, 92, 246, 0.7);
    }
}

/* Typing indicator text */
.typing-indicator .message-content small {
    color: var(--text-secondary);
    font-style: italic;
    margin-left: 12px;
    vertical-align: middle;
    animation: textPulse 2s ease-in-out infinite;
}

/* Ensure typing indicator content is properly centered */
.typing-indicator .message-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: var(--glow-purple);
    }
    50% {
        text-shadow: var(--glow-pink);
    }
}

/* ✨ DYNAMIC BREATHING BUTTONS ✨ */
button, .btn, input[type="submit"], input[type="button"], .password-submit {
    background: var(--gradient-grok) !important;
    border: 1px solid var(--border-glow) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-grok) !important;
    animation: buttonBreath 4s ease-in-out infinite !important;
    transition: all 0.3s ease !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
}

button:hover, .btn:hover, input[type="submit"]:hover, input[type="button"]:hover, .password-submit:hover {
    background: var(--gradient-neon) !important;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.4),
        0 0 30px rgba(236, 72, 153, 0.3),
        0 0 40px rgba(59, 130, 246, 0.2) !important;
    transform: translateY(-2px) !important;
    filter: brightness(1.1) !important;
}

/* ✨ SACRED ACCESS BUTTON STYLING ✨ */
.password-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    min-height: 56px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

.password-submit i {
    font-size: 1.2rem !important;
    opacity: 0.9 !important;
}

.password-submit span {
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

@keyframes buttonBreath {
    0%, 100% {
        box-shadow: var(--shadow-grok);
        transform: scale(1) translateZ(0);
    }
    50% {
        box-shadow: var(--glow-purple);
        transform: scale(1.02) translateZ(0);
    }
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: var(--glow-purple), var(--glow-pink);
    }
    50% {
        box-shadow: var(--glow-pink), var(--glow-cyan);
    }
}

/* ✨ GLOWY ELEMENTS ✨ */
.chat-message, .message-content, .feature-group, .welcome-header, .password-container {
    box-shadow: var(--shadow-grok) !important;
    border: 1px solid var(--border-glow) !important;
    background: var(--bg-glass) !important;
    backdrop-filter: blur(10px) !important;
    position: relative !important;
    z-index: 5 !important;
}

/* ✨ CLEAN PASSWORD HINT STYLING ✨ */
.password-hint {
    text-align: center !important;
    margin-top: 16px !important;
    opacity: 0.8 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    color: var(--text-secondary) !important;
}

.password-hint i {
    margin-right: 8px !important;
    opacity: 0.7 !important;
}

.password-hint span {
    font-weight: 600 !important;
    color: var(--text-muted) !important;
}


/* ✨ MAGICAL PARTICLE EFFECTS ✨ */
.chat-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
    animation: messageParticles 15s ease-in-out infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes messageParticles {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* ✨ SACRED GOLDEN CROSS ICON ✨ */
.fa-cross {
    color: var(--lds-gold);
    text-shadow:
        0 0 5px rgba(251, 191, 36, 0.6),
        0 0 10px rgba(251, 191, 36, 0.4),
        0 0 15px rgba(251, 191, 36, 0.2);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 10;
}

/* ✨ CLEAN PASSWORD PAGE TYPOGRAPHY ✨ */
.password-header h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important;
    font-size: 2rem !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 8px !important;
}

.password-header p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    letter-spacing: 1px !important;
    opacity: 0.9 !important;
    text-transform: uppercase !important;
}

.password-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    margin-bottom: 24px !important;
    color: var(--text-secondary) !important;
}

/* Ensure cross doesn't get overlaid by gradients */
.fa-cross::before {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
}

/* ✨ REMOVE SPINNING FROM PRAYER ICON ✨ */
.fa-pray {
    animation: none !important;
}

/* ✨ PROFESSIONAL WELCOME MESSAGE STYLING ✨ */
.welcome-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glow);
}

.welcome-header h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-shadow:
        0 0 10px rgba(139, 92, 246, 0.5),
        0 0 20px rgba(236, 72, 153, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 10;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
    font-style: italic;
}

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

.welcome-intro {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.feature-group {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.feature-group:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.feature-group h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-group li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.feature-group li:before {
    content: "•";
    color: var(--xai-purple);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.welcome-actions {
    background: rgba(236, 72, 153, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.welcome-prompt {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.action-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.action-step {
    background: var(--gradient-xai);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.action-step:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Individual action step styling handled above */

/* ✨ ENHANCED WELCOME MESSAGE STYLING ✨ */
.welcome-message .message-content {
    max-width: 100% !important;
    padding: 2.5rem !important;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem !important;
    border-radius: 28px !important;
    box-shadow:
        0 12px 40px rgba(0,0,0,0.2),
        0 0 80px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Responsive adjustments for welcome message */
@media (max-width: 768px) {
    .welcome-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .welcome-header h3 {
        font-size: 1.2rem;
    }

    .welcome-message .message-content {
        padding: 1.5rem !important;
    }

    .action-steps {
        gap: 0.5rem;
    }

    .action-step {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .lds-chat-container {
        padding: 1rem;
    }

    .chat-header {
        padding: 1.5rem;
    }

    .chat-messages {
        height: 400px;
        padding: 1rem;
    }

    .chat-input-section {
        padding: 1.5rem;
    }

    .chat-input-group {
        flex-direction: column;
        gap: 1rem;
    }

    .quick-topics {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }

    .message-content {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .password-container {
        padding: 2rem;
        margin: 1rem;
    }

    .chat-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .message-content {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}