/* ==========================================
   FameThink - Ultra Premium Modern Style
   Color Palette:
   - Gold: #b8860b (184,134,11)
   - Dark Gold: #8a6408 (138,100,8)
   - Darker Gold: #5c4305 (92,67,5)
   - Almost Black: #2e2103 (46,33,3)
   - Black: #000000 (0,0,0)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

:root {
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #b8860b;
    --darker-gold: #8b7355;
    --almost-black: #0a0a0a;
    --black: #000000;
    --text-light: #ffffff;
    --text-secondary: #b8b8b8;
    --text-dim: #808080;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(212, 175, 55, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, rgba(10, 10, 10, 1) 50%),
                radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, rgba(10, 10, 10, 1) 50%),
                var(--black);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(212, 175, 55, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(212, 175, 55, 0.03) 3px
        );
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* ==========================================
   Navigation - Ultra Modern Glassmorphism
   ========================================== */
.navbar {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    padding: 0.8rem 0;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    transform: scale(1.03);
    filter: brightness(1.2);
}

.logo-container {
    height: 40px;
    width: 40px;
    overflow: hidden;
}

.brand-logo {
    height: 90px;
    margin-left: -18px;
    margin-top: -20px;
    width: auto;
    margin-right: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.navbar-brand:hover .brand-logo {
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
    transform: scale(1.05);
}

.brand-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rotate-glow 3s ease-in-out infinite;
}

@keyframes rotate-glow {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
    }
    50% { 
        transform: rotate(180deg) scale(1.1);
        filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.8));
    }
}

.brand-name {
    letter-spacing: 0.5px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--black) !important;
    padding: 0.7rem 2rem !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.btn-gold:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-chat {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold) !important;
    padding: 0.7rem 1.8rem !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-chat:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--black) !important;
    border-color: var(--gold-light);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

.btn-chat i {
    font-size: 1.1rem;
}

/* ==========================================
   Split Screen Layout - Premium Edition
   ========================================== */
.split-container {
    display: flex;
    height: 100vh;
    padding-top: 85px;
    position: relative;
    z-index: 2;
}

.left-section {
    flex: 1;
    background: linear-gradient(135deg, 
                rgba(10, 10, 10, 0.95) 0%, 
                rgba(20, 20, 20, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    border-right: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.left-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
                rgba(212, 175, 55, 0.08) 0%, 
                transparent 50%);
    animation: rotate-gradient 20s linear infinite;
}

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

.left-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(212, 175, 55, 0.03) 49%, rgba(212, 175, 55, 0.03) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(212, 175, 55, 0.03) 49%, rgba(212, 175, 55, 0.03) 51%, transparent 52%);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.left-content {
    max-width: 700px;
    z-index: 1;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -2px;
    text-align: center;
}

.gold-text {
    background: linear-gradient(135deg, 
                var(--gold-light) 0%, 
                var(--gold) 50%, 
                var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.gold-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
                transparent 0%, 
                var(--gold) 50%, 
                transparent 100%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

/* Custom Question Input */
.custom-question-container {
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
    padding: 0 30px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.input-icon {
    position: absolute;
    left: 1.5rem;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none;
    z-index: 2;
}

.custom-question-input {
    flex: 1;
    padding: 1.2rem 5rem 1.2rem 4rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.custom-question-input::placeholder {
    color: var(--text-dim);
    font-weight: 300;
}

.custom-question-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2),
                inset 0 2px 10px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.ask-button {
    position: absolute;
    right: 0.5rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    border: none;
    border-radius: 50%;
    color: var(--black);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.ask-button:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ask-button:active {
    transform: scale(0.95);
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    padding:5px 50px;
}

.questions-list::-webkit-scrollbar {
    width: 6px;
}

.questions-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.questions-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
    border-radius: 10px;
}

.questions-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
}

.question-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.question-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(212, 175, 55, 0.1), 
                transparent);
    transition: left 0.6s;
}

.question-item:hover::before {
    left: 100%;
}

.question-item:nth-child(1) { animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards; }
.question-item:nth-child(2) { animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards; }
.question-item:nth-child(3) { animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s backwards; }
.question-item:nth-child(4) { animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards; }
.question-item:nth-child(5) { animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s backwards; }
.question-item:nth-child(6) { animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s backwards; }

.question-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.question-item i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 45px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.question-item span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.3px;
}

.right-section {
    flex: 1;
    background: linear-gradient(135deg, 
                rgba(20, 20, 20, 0.9) 0%, 
                rgba(10, 10, 10, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4rem;
    position: relative;
    overflow: hidden;
}

.right-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, 
                rgba(212, 175, 55, 0.15) 0%, 
                transparent 70%);
    filter: blur(60px);
    animation: float-blur 8s ease-in-out infinite;
}

@keyframes float-blur {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -30px) scale(1.1); }
}

.right-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, 
                rgba(212, 175, 55, 0.1) 0%, 
                transparent 70%);
    filter: blur(80px);
    animation: float-blur 10s ease-in-out infinite reverse;
}

.floating-profiles {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

/* Profile List Container */
.profiles-list {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: scrollUp 30s linear infinite;
}

.profiles-list:hover {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Profile Item - List Style */
.profile-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInFromRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.profile-item:hover ~ .profile-item {
    animation-play-state: running;
}

.profile-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(212, 175, 55, 0.1), 
                transparent);
    transition: left 0.6s;
}

.profile-item:hover::before {
    left: 100%;
}

.profile-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Staggered animation delays */
.profile-item:nth-child(1) { animation-delay: 0.1s; }
.profile-item:nth-child(2) { animation-delay: 0.2s; }
.profile-item:nth-child(3) { animation-delay: 0.3s; }
.profile-item:nth-child(4) { animation-delay: 0.4s; }
.profile-item:nth-child(5) { animation-delay: 0.5s; }
.profile-item:nth-child(6) { animation-delay: 0.6s; }
.profile-item:nth-child(7) { animation-delay: 0.7s; }
.profile-item:nth-child(8) { animation-delay: 0.8s; }

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

/* Profile Avatar */
.profile-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3),
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-item:hover .profile-avatar {
    border-color: var(--gold-light);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5),
                0 0 30px rgba(212, 175, 55, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(10%);
}

.profile-item:hover .profile-avatar img {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1.1);
}

/* Chat Bubble - Profile Info */
.profile-info-bubble {
    flex: 1;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 1rem 1.3rem;
    position: relative;
    transition: all 0.3s ease;
}

.profile-info-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent rgba(10, 10, 10, 0.6) transparent transparent;
    filter: drop-shadow(-1px 0 0 rgba(212, 175, 55, 0.2));
}

.profile-item:hover .profile-info-bubble {
    background: rgba(10, 10, 10, 0.8);
    border-color: rgba(212, 175, 55, 0.4);
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.profile-item:hover .profile-name {
    color: var(--gold-light);
}

.profile-profession {
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-profession i {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Fade in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Shake animation for empty input */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* ==========================================
   Responsive Design - Premium Edition
   ========================================== */
@media (max-width: 1200px) {
    .main-title {
        font-size: 4rem;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
    }
    
    .profile-name {
        font-size: 1.1rem;
    }
    
    .profile-profession {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .split-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .left-section,
    .right-section {
        flex: none;
        min-height: 50vh;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .right-section {
        border-bottom: none;
    }
    
    .main-title {
        font-size: 3.5rem;
    }
    
    .questions-list {
        gap: 0.8rem;
    }
    
    .question-item {
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.8rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .custom-question-input {
        padding: 1rem 4.5rem 1rem 3.5rem;
        font-size: 0.95rem;
    }
    
    .input-icon {
        left: 1.2rem;
        font-size: 1rem;
    }
    
    .ask-button {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .question-item {
        gap: 1rem;
        padding: 1rem 1.3rem;
    }
    
    .question-item i {
        font-size: 1.6rem;
    }
    
    .question-item span {
        font-size: 1rem;
    }
    
    .profile-item {
        gap: 1rem;
        padding: 1rem;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
    }
    
    .profile-name {
        font-size: 1rem;
    }
    
    .profile-profession {
        font-size: 0.85rem;
    }
    
    .left-section,
    .right-section {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .split-container {
        padding-top: 75px;
    }
    
    .main-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .custom-question-input {
        padding: 0.9rem 4rem 0.9rem 3rem;
        font-size: 0.9rem;
    }
    
    .input-icon {
        left: 1rem;
        font-size: 0.95rem;
    }
    
    .ask-button {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    
    .question-item {
        padding: 1rem;
    }
    
    .profile-item {
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .profile-avatar {
        width: 50px;
        height: 50px;
    }
    
    .profile-info-bubble {
        padding: 0.8rem 1rem;
    }
    
    .profile-name {
        font-size: 0.95rem;
    }
    
    .profile-profession {
        font-size: 0.8rem;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .btn-gold {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.9rem;
    }
}

/* ==========================================
   Premium Loading State
   ========================================== */
@keyframes shimmer-load {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer-load 2s infinite;
}

/* Console welcome message styling (invisible but fun) */

/* ==========================================
   Chat Screen Styles - ChatGPT Inspired
   ========================================== */
.chat-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--black);
    z-index: 2000;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Chat Header */
.chat-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    z-index: 100;
}

/* Chat Content Area (Sidebar + Wrapper) */
.chat-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar Styles */
.chat-sidebar {
    width: 280px;
    background: rgba(10, 10, 10, 0.98);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.chat-sidebar.collapsed {
    transform: translateX(-280px);
}

.sidebar-header {
    padding: 1.5rem 1.2rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sidebar-title i {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.new-chat-button {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    border: none;
    color: var(--black);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.new-chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 10px;
}

.chat-history-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.history-group {
    padding: 0 1.2rem;
}

.history-group-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.history-item:hover {
    background: var(--glass-bg);
}

.history-item.active {
    background: var(--glass-bg);
    border-left: 3px solid var(--gold);
}

.history-item i {
    font-size: 0.9rem;
    color: var(--gold);
    flex-shrink: 0;
}

.history-text {
    flex: 1;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-delete {
    opacity: 0;
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 0.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.history-item:hover .history-delete {
    opacity: 1;
}

.history-delete:hover {
    color: #ff4444;
}

.sidebar-footer {
    padding: 1.2rem;
    border-top: 1px solid var(--glass-border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--glass-bg);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.08);
}

.user-avatar {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.user-plan {
    font-size: 0.75rem;
    color: var(--gold);
}

.chat-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Chat Header - now moved to above */

.sidebar-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: scale(1.05);
}

.back-button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateX(-5px);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.chat-title i {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Message Bubble */
.message {
    display: flex;
    gap: 1rem;
    animation: messageSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

/* AI Response Components */
.ai-response-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Initial Answer Section */
.initial-answer {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--gold);
    border-radius: 12px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Celebrity Answers Section */
.celeb-answers-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.celeb-answers-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.celeb-answers-title i {
    font-size: 1.4rem;
}

.celeb-answer-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.celeb-answer-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--gold);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.15);
}

.celeb-answer-card.answer-yes {
    border-left: 4px solid #4caf50;
}

.celeb-answer-card.answer-no {
    border-left: 4px solid #f44336;
}

.celeb-answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.celeb-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.celeb-name i {
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.answer-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.answer-badge.badge-yes {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.answer-badge.badge-no {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.answer-badge i {
    font-size: 1rem;
}

.celeb-answer-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    padding-left: 0.5rem;
}

/* Final Answer Summary */
.final-answer-section {
    background: linear-gradient(135deg, 
                rgba(212, 175, 55, 0.1) 0%, 
                rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 1rem;
}

.final-answer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.final-answer-title i {
    font-size: 1.5rem;
}

.opinion-bars {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.opinion-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.opinion-label {
    min-width: 80px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opinion-label.label-yes {
    color: #4caf50;
}

.opinion-label.label-no {
    color: #f44336;
}

.opinion-label i {
    font-size: 1.2rem;
}

.opinion-bar-container {
    flex: 1;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.opinion-bar-fill {
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-light);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.opinion-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.2), 
                transparent);
    animation: shimmer-bar 2s infinite;
}

@keyframes shimmer-bar {
    0% { left: -100%; }
    100% { left: 100%; }
}

.opinion-bar-fill.bar-yes {
    background: linear-gradient(90deg, 
                rgba(76, 175, 80, 0.6) 0%, 
                rgba(76, 175, 80, 0.8) 100%);
    box-shadow: inset 0 2px 10px rgba(76, 175, 80, 0.3);
}

.opinion-bar-fill.bar-no {
    background: linear-gradient(90deg, 
                rgba(244, 67, 54, 0.6) 0%, 
                rgba(244, 67, 54, 0.8) 100%);
    box-shadow: inset 0 2px 10px rgba(244, 67, 54, 0.3);
}

.opinion-percentage {
    font-size: 1rem;
    font-weight: 700;
    min-width: 60px;
    text-align: right;
}

.opinion-percentage.percentage-yes {
    color: #4caf50;
}

.opinion-percentage.percentage-no {
    color: #f44336;
}

/* Animation for answer cards */
@keyframes slideInAnswer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.celeb-answer-card {
    animation: slideInAnswer 0.5s ease-out backwards;
}

.celeb-answer-card:nth-child(1) { animation-delay: 0.1s; }
.celeb-answer-card:nth-child(2) { animation-delay: 0.2s; }
.celeb-answer-card:nth-child(3) { animation-delay: 0.3s; }
.celeb-answer-card:nth-child(4) { animation-delay: 0.4s; }
.celeb-answer-card:nth-child(5) { animation-delay: 0.5s; }

/* View All Answers Button */
.view-all-answers-btn {
    width: 100%;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    color: var(--gold);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1rem;
}

.view-all-answers-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.view-all-answers-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.view-all-answers-btn:hover i {
    transform: translateY(3px);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
}

/* Modal Container */
.modal-container {
    background: linear-gradient(135deg, 
                rgba(20, 20, 20, 0.98) 0%, 
                rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7),
                0 0 60px rgba(212, 175, 55, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* Modal Header */
.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
}

.modal-title i {
    font-size: 1.7rem;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
    color: #f44336;
    transform: rotate(90deg);
}

/* Modal Content */
.modal-content {
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* Modal Celebrity Cards */
.modal-content .celeb-answer-card {
    animation: slideInModalCard 0.4s ease-out backwards;
}

.modal-content .celeb-answer-card:nth-child(1) { animation-delay: 0.05s; }
.modal-content .celeb-answer-card:nth-child(2) { animation-delay: 0.08s; }
.modal-content .celeb-answer-card:nth-child(3) { animation-delay: 0.11s; }
.modal-content .celeb-answer-card:nth-child(4) { animation-delay: 0.14s; }
.modal-content .celeb-answer-card:nth-child(5) { animation-delay: 0.17s; }
.modal-content .celeb-answer-card:nth-child(6) { animation-delay: 0.20s; }
.modal-content .celeb-answer-card:nth-child(7) { animation-delay: 0.23s; }
.modal-content .celeb-answer-card:nth-child(8) { animation-delay: 0.26s; }
.modal-content .celeb-answer-card:nth-child(9) { animation-delay: 0.29s; }
.modal-content .celeb-answer-card:nth-child(10) { animation-delay: 0.32s; }
.modal-content .celeb-answer-card:nth-child(n+11) { animation-delay: 0.35s; }

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

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }
    
    .modal-header {
        padding: 1.2rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-title i {
        font-size: 1.4rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .view-all-answers-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
}

.message-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.message.user .message-avatar {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--black);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.message.assistant .message-avatar {
    background: var(--glass-bg);
    border: 1px solid var(--gold);
    color: var(--gold);
}

.message-content {
    flex: 1;
    max-width: 800px;
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--black) !important;
    border-radius: 18px;
    padding: 1rem 1.3rem;
}

.message.assistant .message-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1rem 1.3rem;
    color: var(--text-light);
}

.message-text {
    font-size: 1rem;
    line-height: 1.6;
}

.message.user .message-text {
    color: var(--black) !important;
}

.message.assistant .message-text {
    color: var(--text-light);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 0.4rem;
    padding: 1rem 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat Input Area */
.chat-input-wrapper {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    flex-shrink: 0;
}

.chat-input-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    padding: 0.8rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-input-container:focus-within {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    resize: none;
    outline: none;
    max-height: 200px;
    line-height: 1.5;
}

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

.chat-send-button {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    border: none;
    border-radius: 50%;
    color: var(--black);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.chat-send-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.chat-send-button:active {
    transform: scale(0.95);
}

.chat-send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive AI Response */
@media (max-width: 768px) {
    .ai-response-container {
        gap: 1rem;
    }
    
    .initial-answer {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .celeb-answers-title {
        font-size: 1.1rem;
    }
    
    .celeb-answer-card {
        padding: 1rem;
    }
    
    .celeb-answer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }
    
    .celeb-name {
        font-size: 1rem;
    }
    
    .celeb-answer-text {
        font-size: 0.95rem;
    }
    
    .final-answer-section {
        padding: 1.5rem 1rem;
    }
    
    .final-answer-title {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .opinion-bar-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .opinion-label {
        min-width: auto;
    }
    
    .opinion-percentage {
        text-align: left;
    }
    
    .opinion-bar-container {
        height: 35px;
    }
    
    .opinion-bar-fill {
        font-size: 0.9rem;
    }
}

/* Responsive Chat */
@media (max-width: 768px) {
    .chat-sidebar {
        position: absolute;
        height: 100vh;
        z-index: 200;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .chat-sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .chat-header {
        padding: 1rem 1.5rem;
        gap: 0.8rem;
    }
    
    .chat-title {
        font-size: 1rem;
    }
    
    .back-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .back-button span {
        display: none;
    }
    
    .chat-messages {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }
    
    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .chat-input-wrapper {
        padding: 1rem 1rem;
    }
    
    .chat-input-container {
        padding: 0.6rem 0.8rem;
    }
    
    .chat-input {
        font-size: 0.95rem;
    }
    
    .chat-send-button {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .sidebar-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

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

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

/* ==========================================
   User Menu Dropdown - Premium Style
   ========================================== */
.user-menu-container {
    position: relative;
    display: inline-block;
    z-index: 1002;
}

.btn-user-menu {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-user-menu i.fa-user-circle {
    font-size: 1.3rem;
}

.btn-user-menu i.fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.btn-user-menu:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(20, 20, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1100; /* Very high z-index to ensure it's above other elements */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: visible;
    pointer-events: auto;
}

.user-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
    pointer-events: auto !important;
}

.dropdown-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar-large i {
    font-size: 1.8rem;
    color: var(--black);
}

.user-info-large {
    flex: 1;
    min-width: 0;
}

.user-name-large {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email-large {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-item i {
    width: 20px;
    color: var(--gold);
    font-size: 1rem;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding-left: 2rem;
}

.dropdown-item:first-of-type {
    margin-top: 0.5rem;
}

.dropdown-item:last-of-type {
    margin-bottom: 0.5rem;
    color: #ff6b6b;
}

.dropdown-item:last-of-type:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.dropdown-item:last-of-type i {
    color: #ff6b6b;
}

/* Responsive User Menu */
@media (max-width: 768px) {
    .btn-user-menu {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .btn-user-menu span {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .user-dropdown {
        min-width: 260px;
    }
}
