
/* AI CHAT MAIN SECTION */
.chat-main {
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 45px);
}

.chat-header {
    text-align: center;
    margin-bottom: 30px;
}

.chat-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chat-subtitle {
    font-size: 16px;
    color: #94a3b8;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(15, 20, 25, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

.message {
    display: flex;
    gap: 16px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-avatar {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
}

.ai-avatar {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #ffffff;
}

.message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-sender {
    font-weight: 700;
    font-size: 14px;
    color: #e2e8f0;
}

.message-time {
    font-size: 12px;
    color: #64748b;
}

.message-text {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 15px;
}

.user-message {
    background: rgba(99, 102, 241, 0.1);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.ai-message {
    background: rgba(15, 20, 25, 0.6);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px;
}

.empty-state-icon {
    font-size: 64px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 700;
    color: #e2e8f0;
}

.empty-state-subtitle {
    font-size: 16px;
    color: #94a3b8;
    text-align: center;
    max-width: 500px;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.suggestion-chip {
    padding: 10px 18px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.suggestion-chip:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #ffffff;
}

.chat-input-container {
    padding: 24px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(15, 20, 25, 0.6);
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    min-height: 52px;
    max-height: 150px;
    outline: none;
    transition: all 0.3s;
}

.chat-input:focus {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.chat-input::placeholder {
    color: #64748b;
}

.send-button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 14px 18px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    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% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.offer-card {
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.offer-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
}
.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.offer-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 8px;
}
.sponsored-badge {
    background: linear-gradient(135deg, #10b981, #34d399, #059669);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.offer-visual {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    padding: 30px;
    margin: 15px 0;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.offer-description {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}
.offer-cta {
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #4c1d95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
