/* Tasky Chatbot Styles - Ultra Modern Theme */
:root {
    --primary-color: #0A1840;
    --primary-dark: #1B4FBD;
    --gold: #cda434;
    --gold-dark: #b58e26;
    --secondary-color: #1B4FBD;
    --bg-color: #fdfbf6;
    --text-primary: #0F1C33;
    --text-secondary: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f1f5f9;
    margin: 0;
    height: 100vh;
}

/* Chatbot Toggle Button */
.chatbot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 68px;
    height: 68px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(33, 133, 208, 0.4), 0 0 0 0 rgba(33, 133, 208, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 8px 32px rgba(33, 133, 208, 0.3), 0 0 0 0 rgba(33, 133, 208, 0.3); }
    50% { box-shadow: 0 8px 40px rgba(33, 133, 208, 0.5), 0 0 0 12px rgba(33, 133, 208, 0); }
    100% { box-shadow: 0 8px 32px rgba(33, 133, 208, 0.3), 0 0 0 0 rgba(33, 133, 208, 0); }
}

.chatbot-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    background: transparent;
    display: block;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    border-radius: 50%;
    box-shadow: 0 12px 40px rgba(33, 133, 208, 0.5);
    animation: none;
}

.chatbot-toggle:hover img {
    transform: rotate(-10deg) scale(1.1);
}

.chatbot-toggle.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    border-radius: 50%; /* Circle when open */
    animation: pop-open 0.4s ease forwards;
}

@keyframes pop-open {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 400px;
    height: 650px;
    background: var(--white);
    border-radius: 28px; /* MORE CURVED */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(33, 133, 208, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.9);
    overflow: hidden;
}

/* FLOATING MODAL MODE - NEVER SEEN BEFORE */
.chatbot-container.display-modal {
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 60%) scale(0.8);
    width: 900px;
    height: 600px;
    max-width: 95vw;
    max-height: 85vh;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.chatbot-container.display-modal.active {
    transform: translate(50%, 50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.chatbot-container.display-modal::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
    opacity: 0.05;
    pointer-events: none;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10%, -10%) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.chatbot-container.display-modal .chatbot-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    color: var(--text-primary);
    padding: 35px 50px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.chatbot-container.display-modal .chatbot-header .chatbot-logo {
    width: 65px;
    height: 65px;
    background: transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border: none;
    overflow: hidden;
    padding: 0;
}

.chatbot-container.display-modal .chatbot-header #tasky-bot-name {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    color: #0f172a !important; /* DEEP CHARCOAL */
    background: none !important;
    -webkit-text-fill-color: #0f172a !important;
    filter: none !important;
    margin-bottom: 4px;
}

.chatbot-container.display-modal .api-status .status-badge {
    background: #ecfdf5 !important; /* Very light green */
    color: #047857 !important; /* DARK EMERALD */
    font-weight: 800;
    font-size: 12px;
    border: 1.5px solid #10b981 !important;
    padding: 5px 12px !important;
}

.chatbot-container.display-modal .api-status .status-badge::before {
    background: #10b981 !important;
    box-shadow: 0 0 8px #10b981 !important;
}

.chatbot-container.display-modal .chatbot-messages {
    padding: 30px 50px;
    background: transparent;
}

.chatbot-container.display-modal .chatbot-input {
    padding: 30px 50px 50px;
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.chatbot-container.display-modal .message-input {
    border-radius: 24px;
    padding: 22px 35px;
    font-size: 18px;
    background: white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(33, 133, 208, 0.15);
}

.chatbot-container.display-modal .send-button {
    width: 70px;
    height: 70px;
    border-radius: 22px;
}

.chatbot-container.display-modal .chatbot-close {
    background: rgba(0,0,0,0.08);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
}

.chatbot-container.display-modal .chatbot-close:hover {
    background: rgba(0,0,0,0.15);
}

/* Standard Active State */
.chatbot-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#tasky-bot-name {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.chatbot-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmer 3s linear infinite;
}

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

.chatbot-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-logo {
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.chatbot-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.chatbot-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    background: transparent;
    display: block;
    padding: 0;
}

.api-status {
    font-size: 10px;
    margin-top: 2px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 8px #10B981;
}

@keyframes pulse-dot {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 8px #10B981;
    }
    50% { 
        opacity: 0.7; 
        transform: scale(0.9);
        box-shadow: 0 0 4px #10B981;
    }
}

.status-badge.connected { 
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.chatbot-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chatbot-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.chatbot-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

/* Messages */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    position: relative;
}

.chatbot-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(33, 133, 208, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(22, 120, 194, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.chatbot-messages::-webkit-scrollbar {
    width: 5px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

.message {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    max-width: 85%;
    animation: messageEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes messageEnter {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    60% {
        transform: translateY(-3px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.message.bot, .message.agent { align-self: flex-start; }

.message-logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: transparent;
    border-radius: 50%;
    border: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 0;
}

.message-logo:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(33, 133, 208, 0.25);
}

.message-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    background: transparent;
    display: block;
    padding: 0;
}

.message-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.message.user .message-content {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(14,165,233,0.25);
    border: 1px solid rgba(14,165,233,0.2);
}
.message.user .message-content b { color: #fff; }
.message.bot .message-content, .message.agent .message-content {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    color: #0F1C33;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 16px rgba(15,28,51,.06);
    border: 1px solid #E6EDF8;
}
.message.bot .message-content { border-left: 3px solid #cda434; }

.message.system .message-content {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
    text-align: center;
    font-size: 13px;
}

/* Input Area */
.chatbot-input {
    padding: 14px 16px 12px;
    background: var(--white);
    border-top: 1px solid #edf2f7;
    position: relative;
    display: flex;
    flex-direction: column;
}

.chatbot-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(33, 133, 208, 0.1), transparent);
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.message-input {
    flex: 1;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    max-height: 120px;
    outline: none;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transition: all 0.3s ease;
}

.message-input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(33, 133, 208, 0.15), 0 4px 12px rgba(33, 133, 208, 0.1);
    transform: translateY(-1px);
}

.message-input::placeholder {
    color: #94a3b8;
}

.send-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    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 12px rgba(33, 133, 208, 0.35);
    position: relative;
    overflow: hidden;
}

.send-button::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.5s;
}

.send-button:hover:not(:disabled)::before {
    left: 100%;
}

.send-button:hover:not(:disabled) {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 133, 208, 0.45);
}

.send-button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

.chatbot-footer-info {
    position: absolute;
    top: -30px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    background: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    pointer-events: none;
    z-index: 100;
    width: fit-content;
    white-space: nowrap;
}

.chatbot-container.display-modal .chatbot-footer-info {
    top: -45px;
    padding: 8px 20px;
    font-size: 12px;
}

.chatbot-footer-info span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-size: 12px;
}

.chatbot-container.display-modal .chatbot-footer-info span {
    font-size: 15px;
}

/* Chat History Detail Modal Fix */
#conversation-detail-messages .message.user .message-content {
    background: #f1f5f9;
    color: #1e293b !important; /* Ensure user text is dark and readable */
    border: 1px solid #e2e8f0;
}

#conversation-detail-messages .message.bot .message-content {
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

/* Recommendations */
.recommendations-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
    border-top: 1px solid rgba(33, 133, 208, 0.08);
    min-height: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recommendation-chip {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(33, 133, 208, 0.1);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recommendation-chip:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(33, 133, 208, 0.35);
    border-color: transparent;
}

.recommendation-chip i {
    margin-right: 5px;
}

/* Recommendations "More" Button */
.rec-more-btn {
    display: inline-flex !important;
    align-items: center;
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 1px dashed var(--primary-color) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap !important;
    opacity: 0.8;
    line-height: normal;
    box-shadow: none;
    text-shadow: none;
    margin: 0;
    min-height: 0;
    min-width: 0;
    width: auto;
    height: auto;
    font-family: inherit;
}

.rec-more-btn:hover {
    opacity: 1 !important;
    background: rgba(33, 133, 208, 0.08) !important;
    transform: translateY(-1px);
}

/* Recommendations "All" Modal */
.rec-all-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.rec-all-modal.active {
    opacity: 1;
    pointer-events: all;
}

.rec-all-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.rec-all-modal-content {
    position: relative;
    width: 100%;
    max-height: 50vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.25s ease-out;
    transform: translateY(100%);
    transition: transform 0.25s ease-out;
}

.rec-all-modal.active .rec-all-modal-content {
    transform: translateY(0);
}

.rec-all-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 15px;
    color: #1a202c;
    flex-shrink: 0;
}

.rec-all-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #718096;
    padding: 0 4px;
    line-height: 1;
}

.rec-all-modal-close:hover {
    color: #1a202c;
}

.rec-all-modal-list {
    padding: 12px 20px 20px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rec-all-modal-chip {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    color: var(--primary-color);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(33, 133, 208, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.rec-all-modal-chip:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(33, 133, 208, 0.35);
    border-color: transparent;
}

.rec-all-modal-chip i {
    margin-right: 5px;
}

/* KB Modal */
.kb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

.kb-modal-content {
    background: white;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.kb-modal-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.kb-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

#closeKbModal {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#closeKbModal:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.kb-modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    flex: 1;
}

.kb-modal-body::-webkit-scrollbar {
    width: 6px;
}

.kb-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.kb-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.kb-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Support Actions - Modern Techy Design */
.support-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border: 1px solid rgba(33, 133, 208, 0.15);
    border-radius: 16px;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 8px 32px rgba(33, 133, 208, 0.12), 0 0 0 1px rgba(33, 133, 208, 0.05);
    width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
}

.support-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradient-move 2s linear infinite;
    border-radius: 16px 16px 0 0;
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.support-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: none;
    color: #64748b;
    font-size: 11px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.support-close-btn:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.support-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-align: center;
    padding-top: 4px;
    display: block;
    width: 100%;
}

.support-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.4;
    display: block;
    width: 100%;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.action-button:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f1f7ff 0%, #e0efff 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(33, 133, 208, 0.25);
}

.action-button:hover::before {
    left: 100%;
}

.action-button i {
    font-size: 15px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.live-chat-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(33, 133, 208, 0.4);
    position: relative;
    z-index: 1;
}

.live-chat-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(33, 133, 208, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.live-chat-btn i {
    color: white;
    font-size: 16px;
}

.email-btn {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-color: #d1d5db;
}

.email-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

.email-btn i {
    color: #6366f1;
}

.action-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

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

.message {
    animation: fadeIn 0.3s ease forwards;
}

/* Typing Animation */
.message.typing {
    animation: none;
    opacity: 1;
}

.message.typing .message-content {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 14px 18px;
}

.message.typing .message-content::after {
    display: none;
}

.typing-dots {
    display: flex;
    gap: 5px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

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

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

@keyframes typingBounce {
    0%, 60%, 100% { 
        transform: translateY(0); 
        opacity: 0.5;
    }
    30% { 
        transform: translateY(-8px); 
        opacity: 1;
    }
}

/* Empty State */
.empty-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

.empty-chat i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.empty-chat p {
    font-size: 14px;
    line-height: 1.6;
}

/* TNC Buttons */
.tnc-btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    border: none;
}

.tnc-btn.accept {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tnc-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.tnc-btn.decline {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.tnc-btn.decline:hover {
    background: #e5e7eb;
    color: #4b5563;
}

/* TNC Floating Modal */
.tnc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.tnc-modal {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.tnc-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.tnc-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tnc-modal-header h3::before {
    content: '\f05a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
}

.tnc-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    max-height: 45vh;
}

.tnc-modal-body p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

.tnc-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.tnc-modal-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tnc-modal-btn.accept {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tnc-modal-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.tnc-modal-btn.decline {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.tnc-modal-btn.decline:hover {
    background: #e5e7eb;
    color: #4b5563;
}

/* Lead Capture Intro Button - Centered Below Message */
.lead-intro-message {
    display: flex;
    justify-content: center;
    padding: 16px 0;
    animation: fadeInUp 0.4s ease;
}

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

.lead-intro-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
    position: relative;
    overflow: hidden;
}

.lead-intro-btn::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;
}

.lead-intro-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.5);
}

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

.lead-intro-btn i {
    font-size: 18px;
}

/* Lead Capture Floating Modal */
.lead-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

.lead-modal-overlay.closing {
    animation: modalFadeOut 0.3s ease forwards;
}

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

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

.lead-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    animation: modalSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lead-modal.luxury-theme .lead-modal-header {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    position: relative;
    color: white;
}

.lead-modal-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: float 4s ease-in-out infinite;
}

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

.lead-modal-title h3 {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 0;
}

.lead-modal-title p {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

.lead-modal-body {
    padding: 40px;
    flex: 1;
}

.luxury-form-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.luxury-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.luxury-input-group label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.luxury-input-group label i {
    color: var(--primary-color);
    font-size: 14px;
}

.name-split {
    display: flex;
    gap: 10px;
}

.luxury-input {
    width: 100%;
    padding: 18px 24px;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.luxury-input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(33, 133, 208, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.form-verification-status {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    padding: 10px;
    border-radius: 12px;
}

.lead-modal-footer {
    padding: 0 40px 40px;
}

.luxury-btn {
    width: 100%;
    padding: 22px;
    border-radius: 20px;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.luxury-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.luxury-btn:active {
    transform: translateY(0) scale(0.98);
}

.lead-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.lead-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.lead-modal-overlay.closing .lead-modal {
    animation: modalSlideDown 0.3s ease forwards;
}

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

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

/* Idle End Session Button */
.idle-message-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
    padding: 0 4px;
}

.idle-end-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
    animation: fadeInUp 0.4s ease;
}

.idle-end-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.45);
}

.idle-end-btn:active {
    transform: translateY(0) scale(0.98);
}

.idle-end-btn i {
    font-size: 14px;
}

/* Multimodal Styles */
.multimodal-preview {
    padding: 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.preview-item {
    position: relative;
    width: 60px; height: 60px; border-radius: 8px; overflow: hidden; border: 2px solid var(--primary-color);
}

.preview-item img {
    width: 100%; height: 100%; object-fit: cover;
}

.remove-preview {
    position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; background: #ef4444; color: white; border: none; border-radius: 50%; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.input-action-btn {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #64748b; cursor: pointer; transition: all 0.2s; border-radius: 50%; border: 1.5px solid #e2e8f0; background: white;
}

.input-action-btn:hover {
    color: var(--primary-color); border-color: var(--primary-color); background: #f0f7ff;
}

.input-action-btn.recording {
    background: #fee2e2; color: #ef4444; border-color: #ef4444; animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Idle Warning UI Enhancements */
.idle-warning-content {
    display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; text-align: center;
}

.idle-warning-content p {
    margin: 0; line-height: 1.5;
}

.idle-warning-content .idle-end-btn {
    width: fit-content; margin: 4px auto 0;
}

/* Timer dot for 10min auto-close */
.timer-dot {
    width: 8px; height: 8px; background: #ef4444; border-radius: 50%; animation: blink-red 1s infinite; margin: 0 auto;
}

@keyframes blink-red {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Doc Links Floating Modal */
.doc-links-modal {
    position: absolute; inset: 0; z-index: 1000;
    display: flex; align-items: flex-end; justify-content: center;
}
.doc-links-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.3);
}
.doc-links-panel {
    position: relative; z-index: 1001;
    width: 100%; max-height: 70%;
    background: #fff; border-radius: 16px 16px 0 0;
    display: flex; flex-direction: column;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
    animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.doc-links-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.doc-links-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: #111827; }
.doc-links-header button {
    background: none; border: none; font-size: 24px; cursor: pointer;
    color: #6b7280; padding: 4px 8px; line-height: 1;
}
.doc-links-header button:hover { color: #111827; }
.doc-links-body {
    flex: 1; overflow-y: auto; padding: 12px 16px;
}
.doc-link-card {
    background: #f9fafb; border-radius: 12px; padding: 14px 16px;
    margin-bottom: 10px; border: 1px solid #e5e7eb;
    cursor: pointer; transition: all 0.15s;
}
.doc-link-card:hover {
    border-color: #3b82f6; box-shadow: 0 2px 8px rgba(59,130,246,0.1);
}
.doc-link-card-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.doc-link-card-header .title {
    font-weight: 600; font-size: 14px; color: #111827; flex: 1;
}
.doc-link-type-badge {
    font-size: 10px; font-weight: 700; padding: 2px 8px;
    border-radius: 20px; text-transform: uppercase; letter-spacing: 0.3px;
    flex-shrink: 0;
}
.doc-link-type-badge.html { background: #dbeafe; color: #1d4ed8; }
.doc-link-type-badge.pdf { background: #fce7f3; color: #be185d; }
.doc-link-type-badge.url { background: #d1fae5; color: #047857; }
.doc-link-card-excerpt {
    font-size: 12px; color: #6b7280; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.doc-link-card-url {
    font-size: 11px; color: #3b82f6; margin-top: 4px;
    word-break: break-all;
}
.doc-matches-btn {
    display: inline-block; margin-top: 8px; padding: 6px 14px;
    background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe;
    border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 600;
    transition: background 0.2s;
}
.doc-matches-btn:hover { background: #e0e7ff; }
.doc-match-snippet {
    padding: 10px 14px; margin-bottom: 8px; background: #f9fafb;
    border-left: 3px solid #4f46e5; border-radius: 4px; font-size: 13px;
    line-height: 1.5; color: #374151;
}
.mode-selector{ display:flex; flex-direction:column; gap:10px; padding:16px; background:linear-gradient(180deg,#ffffff 0%, #f8fafd 100%); border:1px solid #e2e8f0; border-radius:18px; margin:12px 0; box-shadow:0 8px 24px rgba(15,28,51,.06); }
.mode-title{ font-size:10px; font-weight:800; color:#0A1840; text-transform:uppercase; letter-spacing:.12em; text-align:center; opacity:.7; }
.mode-btn{ display:flex; flex-direction:row; align-items:center; gap:12px; padding:12px 14px; background:#fff; border:1.5px solid #e2e8f0; border-radius:14px; cursor:pointer; font-size:13px; font-weight:800; color:#0F1C33; transition:all .2s; text-align:left; box-shadow:0 2px 10px rgba(15,28,51,.04); }
.mode-btn small{ display:block; font-weight:600; color:#64748b; font-size:11px; margin-top:2px; }
.mode-btn:hover{ border-color:#0A1840; background:linear-gradient(135deg,#0A1840,#1B4FBD); color:#fff; transform:translateY(-1px); box-shadow:0 10px 24px rgba(10,24,64,.22); }
.mode-btn:hover small{ color:#C9A96A; }
.mode-ic{ width:46px; height:46px; border-radius:14px; background:linear-gradient(135deg,#0A1840,#1B4FBD); display:grid; place-items:center; font-size:23px; flex-shrink:0; box-shadow:0 6px 14px rgba(10,24,64,.18); }
.mode-tx{ flex:1; line-height:1.3; font-size:16px; }
.mode-btn:hover .mode-ic{ background:rgba(255,255,255,.16); box-shadow:none; }
.mode-arrow{ font-size:19px; font-weight:900; color:var(--accent,#cda434); flex-shrink:0; transition:transform .2s; }
.mode-btn:hover .mode-arrow{ color:#C9A96A; transform:translateX(3px); }
.quick-replies{ display:flex; flex-wrap:wrap; gap:8px; padding:12px 6px; justify-content:center; align-items:center; }
.quick-btn{ padding:9px 16px; background:#fff; border:1.2px solid #E6EDF8; border-radius:999px; font-size:12px; font-weight:800; color:#0F1C33; cursor:pointer; transition:all .2s; box-shadow:0 2px 10px rgba(15,28,51,.06); letter-spacing:.01em; }
.quick-btn:hover{ background:linear-gradient(135deg,#0A1840,#1B4FBD); color:#fff; border-color:#0A1840; transform:translateY(-1px); box-shadow:0 8px 18px rgba(10,24,64,.18); }
.quick-btn[data-reset], .quick-btn.reset{ background:#FEE2E2; border-color:#FECACA; color:#991B1B; }
.quick-btn[data-reset]:hover, .quick-btn.reset:hover{ background:#DC2626; color:#fff; border-color:#DC2626; }
.message.bot .message-content{ background:linear-gradient(180deg,#ffffff 0%, #f8fafd 100%); border:1px solid #E6EDF8; color:#0F1C33; border-radius:16px; border-bottom-left-radius:6px; box-shadow:0 4px 16px rgba(15,28,51,.06); font-size:13px; line-height:1.55; }
.message.bot .message-content b{ color:#0A1840; }
.message.user .message-content{ background:linear-gradient(135deg,#0A1840 0%, #1B4FBD 100%); border-radius:16px; border-bottom-right-radius:6px; box-shadow:0 6px 18px rgba(10,24,64,.22); }
.premium-category{ display:flex; align-items:center; justify-content:center; gap:8px; padding:10px 14px; background:linear-gradient(135deg,#0A1840,#1B4FBD); color:#fff; border-radius:999px; font-size:12px; font-weight:800; letter-spacing:.02em; box-shadow:0 6px 16px rgba(10,24,64,.18); margin:6px auto; width:fit-content; }
.catalog-card{ background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:10px; cursor:pointer; }
.catalog-card:hover{ border-color:#2185D0; }
#vc-balloon{position:fixed;bottom:90px;right:22px;z-index:1199;max-width:280px;background:#fff;border:1px solid #E6EDF8;border-radius:14px;padding:12px 14px;box-shadow:0 18px 40px rgba(15,28,51,.18);font-size:12.5px;line-height:1.5;display:none;animation:vcPop .3s ease;cursor:pointer}
#vc-balloon::after{content:"";position:absolute;bottom:-8px;right:24px;width:14px;height:14px;background:#fff;border-right:1px solid #E6EDF8;border-bottom:1px solid #E6EDF8;transform:rotate(45deg)}
@keyframes vcPop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
