/*
    EPA Chat — Professional UI (Jan 2026)
    Palette: Clean light default with electric blue + mint accents.
*/
@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
    --app-height: 100vh;
    --page-bg: #f9fafb;
    --bg-gradient: none;
    --surface: #ffffff;
    --panel: #ffffff;
    --panel-strong: #ffffff;
    --border: #e5e7eb;
    --border-light: #e5e7eb;
    --glow: rgba(37, 99, 235, 0.12);
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-strong: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.15);
    --mint: #38bdf8;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.16);
    --radius-lg: 16px;
    --radius-sm: 10px;
    --bot-message-bg: #f1f5f9;
    --user-message-bg: #2563eb;
    --bot-text: #0f172a;
    --user-text: #ffffff;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-placeholder: #94a3b8;
    --input-text: #020617;
    --typing-color: #38bdf8;
    --highlight: #38bdf8;
    --suggestion-bg: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    --suggestion-title: #1e3a8a;
    --suggestion-text: #1f2937;
    --suggestion-btn-bg: #ffffff;
    --suggestion-btn-text: #2563eb;
    --referral-bg: #fff7ed;
    --referral-border: #fed7aa;
    --referral-title: #9a3412;
    --referral-text: #7c2d12;
    --referral-link-bg: #ffffff;
    --referral-link-border: #fed7aa;
    --referral-link-text: #7c2d12;
    --feedback-bg: #f1f5f9;
    --feedback-border: #38bdf8;
    --feedback-btn-bg: #ffffff;
    --feedback-btn-border: #e5e7eb;
    --feedback-btn-hover: #e2e8f0;
}

@supports (height: 100svh) {
    :root {
        --app-height: 100svh;
    }
}

[data-theme="dark"] {
    --page-bg: #0b0f19;
    --bg-gradient: none;
    --surface: #111827;
    --panel: #111827;
    --panel-strong: #111827;
    --border: #1f2937;
    --border-light: #1f2937;
    --glow: rgba(99, 102, 241, 0.2);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-strong: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.18);
    --mint: #22d3ee;
    --text: #e5e7eb;
    --text-secondary: #94a3b8;
    --text-light: #64748b;
    --muted: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(2, 6, 23, 0.4);
    --shadow: 0 2px 8px rgba(2, 6, 23, 0.5);
    --shadow-lg: 0 8px 32px rgba(2, 6, 23, 0.65);
    --bot-message-bg: #1e293b;
    --user-message-bg: #2563eb;
    --bot-text: #e5e7eb;
    --user-text: #ffffff;
    --input-bg: #020617;
    --input-border: #1e293b;
    --input-placeholder: #64748b;
    --input-text: #f9fafb;
    --typing-color: #22d3ee;
    --highlight: #38bdf8;
    --suggestion-bg: linear-gradient(135deg, #0f172a 0%, #111827 100%);
    --suggestion-title: #e2e8f0;
    --suggestion-text: #cbd5f5;
    --suggestion-btn-bg: #0b1220;
    --suggestion-btn-text: #a5b4fc;
    --referral-bg: #111827;
    --referral-border: #1f2937;
    --referral-title: #fdba74;
    --referral-text: #fcd9bd;
    --referral-link-bg: #0b1220;
    --referral-link-border: #1f2937;
    --referral-link-text: #ffedd5;
    --feedback-bg: #0f172a;
    --feedback-border: #38bdf8;
    --feedback-btn-bg: #111827;
    --feedback-btn-border: #1f2937;
    --feedback-btn-hover: #1f2937;
}


* { box-sizing: border-box; }

html {
    height: 100%;
    min-height: var(--app-height);
}

/* Font Awesome Icons Fallback */
.fas, .fa, .fa-solid {
    font-family: 'Font Awesome 6 Free', 'FontAwesome', sans-serif !important;
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fab, .fa-brands {
    font-family: 'Font Awesome 6 Brands', 'FontAwesome', sans-serif !important;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

body {
    margin: 0;
    height: var(--app-height);
    min-height: var(--app-height);
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--page-bg);
    background-image: var(--bg-gradient);
    color: var(--text);
    display: block;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: manipulation;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.015em;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.chat-container {
    width: 100%;
    max-width: 100%;
    height: var(--app-height);
    min-height: var(--app-height);
    background: var(--panel-strong);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    margin: 0;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .chat-header {
        padding: 12px 18px;
        height: 60px;
        gap: 8px;
    }

    .header-content { gap: 8px; }

    .bot-avatar { width: 34px; height: 34px; padding: 4px; }

    .chat-messages {
        padding: 18px 16px calc(120px + env(safe-area-inset-bottom));
        gap: 10px;
    }

    .message {
        max-width: 100%;
        gap: 8px;
        margin-bottom: 14px;
    }

    .message-content {
        padding: 12px 14px;
        font-size: 14px;
    }

    .chat-input-area { padding: 14px 16px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

    .input-wrapper {
        padding: 11px 12px;
        gap: 10px;
    }

    textarea.chat-input {
        font-size: 14px;
        line-height: 1.45;
    }

    .send-btn { width: 34px; height: 34px; }

    .scroll-bottom { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 26px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    height: 64px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px) saturate(150%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.header-content { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.bot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    object-fit: contain;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary-light), rgba(6, 182, 212, 0.1));
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.15);
    animation: botPulse 2s ease-in-out infinite;
}

@keyframes botPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(6, 182, 212, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
    }
}

/* Bot message container dengan speaking animation */
.message.bot {
    animation: slideInLeft 0.3s ease-out;
}

.message.bot .message-content {
    position: relative;
}

/* Bot is typing animation */
.message.bot.typing {
    opacity: 0.8;
}
.bot-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bot-title-image {
    display: block;
    height: 26px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
}

.bot-info h2 {
    margin: 0;
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    font-size: 15px;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.status {
    display: none;
}

.header-actions { 
    display: flex; 
    gap: 6px; 
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0.13, 1);
    font-size: 22px;
    position: relative;
}

.icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: var(--primary-light);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.2s ease;
}

.icon-btn:hover::before { 
    opacity: 1;
}

.icon-btn:hover { 
    color: var(--primary);
}

.icon-btn:active {
    transform: scale(0.93);
}
.icon-btn:active { transform: scale(0.96); }
.close-btn { color: #ff6b6b; }

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Voice Button */
.voice-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 16px;
    flex-shrink: 0;
}

.voice-btn:hover {
    background: var(--primary-hover);
}

.voice-btn.recording {
    animation: recordingPulse 1s infinite;
    background: #ff4444;
}

@keyframes recordingPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
}

.chat-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    flex: 1;
    min-height: 0;
}

.chat-sidebar {
    border-right: 1px solid var(--border);
    padding: 16px;
    background: var(--surface);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-section + .sidebar-section { margin-top: 16px; }

.sidebar-section--suggestion {
    background: var(--suggestion-bg);
    padding: 16px;
    border-radius: 12px;
}

.sidebar-section--suggestion .sidebar-title {
    color: var(--suggestion-title);
    margin-bottom: 12px;
}

.suggestion-text {
    color: var(--suggestion-text);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.suggestion-btn {
    width: 100%;
    padding: 10px;
    background: var(--suggestion-btn-bg);
    color: var(--suggestion-btn-text);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.sidebar-section--referral {
    background: var(--referral-bg);
    border: 1px solid var(--referral-border);
    padding: 16px;
    border-radius: 12px;
}

.referral-title {
    color: var(--referral-title);
    margin-bottom: 10px;
}

.referral-text {
    color: var(--referral-text);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.referral-link {
    background: var(--referral-link-bg);
    border: 1px solid var(--referral-link-border);
    color: var(--referral-link-text);
    border-radius: 8px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


.sidebar-title {
    margin: 0 0 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.chip-list { 
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chip {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    padding: 9px 13px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0.13, 1);
    text-align: left;
    width: 100%;
}

.chip:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(16, 163, 127, 0.12);
}

.chip:active {
    transform: scale(0.98);
}
.link-list { display: grid; gap: 6px; }

.link-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: transparent;
    border: none;
    font-weight: 500;
    font-size: 13px;
    color: var(--text);
    transition: all 0.15s ease;
}

.link-item:hover { 
    background: var(--primary-light);
    color: var(--primary);
}

/* Trending Questions */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.trending-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.trending-icon {
    font-size: 14px;
    color: var(--text-secondary);
}

/* WhatsApp QR Code */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(16, 163, 127, 0.08), rgba(16, 163, 127, 0.04));
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(16, 163, 127, 0.08);
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qr-hint {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    text-align: center;
}



.chat-main {
    position: relative;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    padding: 24px 26px calc(140px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scroll-padding-bottom: calc(140px + env(safe-area-inset-bottom));
    position: relative;
    min-height: 0;
    display: none;
}

.chat-messages.active {
    display: flex;
    flex-direction: column;
}

.welcome-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 22px;
    text-align: center;
    background: linear-gradient(135deg, #f7f9fb 0%, #f1f5f9 50%, #e8f4f8 100%);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.welcome-screen.hidden {
    display: none !important;
    z-index: -1;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.welcome-avatar {
    width: 104px;
    height: 104px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(16, 163, 127, 0.15));
    animation: bounceIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), bobbing 3.5s ease-in-out infinite;
    animation-delay: 0s, 1.2s;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(20px);
    }
    70% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bobbing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.welcome-content h2 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    animation: slideUp 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.1s;
    opacity: 0;
    animation-fill-mode: forwards;
    line-height: 1.2;
}

.welcome-content p {
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 400;
    animation: slideUp 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.25s;
    opacity: 0;
    animation-fill-mode: forwards;
    line-height: 1.6;
    max-width: 300px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUpSoft {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.995);
        filter: blur(2px);
    }
    60% {
        opacity: 1;
        transform: translateY(0) scale(1.002);
        filter: blur(0.5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.message {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    max-width: 80%;
    animation: fadeUpSoft 0.45s cubic-bezier(0.25, 0.9, 0.4, 1) both;
}

.message.user-message { margin-left: auto; flex-direction: row-reverse; }

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
}

.bot-message .message-avatar {
    background: transparent;
}

.user-message .message-avatar {
    background: var(--primary);
}

.message-content {
    background: var(--bot-message-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px 15px;
    color: var(--bot-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    line-height: 1.65;
    word-wrap: break-word;
}

.bot-message .message-content { 
    border-top-left-radius: 4px;
}

.user-message .message-content {
    background: var(--user-message-bg);
    color: var(--user-text);
    border: none;
    border-top-right-radius: 4px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(2, 6, 23, 0.25);
}

.message-content p { 
    margin: 0 0 6px;
    line-height: 1.55;
    font-size: 14px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 12px;
}

.user-message .message-header {
    justify-content: center;
    flex-direction: column;
}

.message-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--bot-text);
}

.user-message .message-author { 
    color: #fff; 
    display: none;
}

.message-time { 
    font-size: 11px; 
    color: var(--text-secondary); 
    margin-left: auto; 
    display: none;
}
.user-message .message-time { 
    color: rgba(255, 255, 255, 0.85); 
    display: none;
}

.quick-reply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0.13, 1);
    margin-right: 8px;
    margin-top: 8px;
    text-decoration: none;
}

.quick-reply:hover { 
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(16, 163, 127, 0.12);
}

.quick-reply:active {
    transform: scale(0.96);
}

.typing-indicator { display: flex; align-items: center; gap: 10px; padding: 0 22px 18px; }
.typing-dots { display: inline-flex; gap: 6px; }
.typing-dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--typing-color);
    animation: bounce 1.2s infinite ease-in-out;
    opacity: 0.9;
}
.typing-dots span:nth-child(2) { animation-delay: 0.14s; }
.typing-dots span:nth-child(3) { animation-delay: 0.28s; }

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.scroll-bottom {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.2, 0, 0.13, 1);
    font-size: 19px;
    z-index: 50;
}

.scroll-bottom:hover {
    background: var(--primary-light);
    box-shadow: 0 6px 16px rgba(16, 163, 127, 0.2);
    transform: translateY(10px);
}

.scroll-bottom.show { 
    opacity: 1; 
    pointer-events: auto; 
    transform: translateY(0);
    animation: bounce-down 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounce-down {
    0% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.chat-input-area {
    padding: 18px 24px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--panel);
    flex-shrink: 0;
    backdrop-filter: blur(12px) saturate(140%);
    position: sticky;
    bottom: 0;
    z-index: 5;
}

.input-wrapper {
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    padding: 12px 14px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-height: 52px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.22s cubic-bezier(0.2, 0, 0.13, 1);
}

.input-wrapper:focus-within {
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 6px 18px rgba(0, 0, 0, 0.08);
    background: var(--panel-strong);
}

textarea.chat-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--input-text);
    line-height: 1.5;
    max-height: 120px;
    min-height: 22px;
    padding: 5px 0;
    font-weight: 500;
}
textarea.chat-input::placeholder { color: var(--input-placeholder); opacity: 0.8; }

.send-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.2, 0, 0.13, 1);
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.25);
    position: relative;
    touch-action: manipulation;
}

.send-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.35);
    transform: translateY(-1px);
}

.send-btn:active {
    transform: scale(0.94);
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { 
    background: var(--border); 
    border-radius: 10px; 
}
.chat-messages::-webkit-scrollbar-thumb:hover { 
    background: var(--text-secondary); 
}

/* Footer Styles */
footer {
    background: var(--surface);
    border-color: var(--border) !important;
    color: var(--text-secondary) !important;
}

footer a {
    color: var(--primary);
    transition: all 0.2s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-strong);
    text-decoration: underline;
}

/* ===== YENİ ÖZELLİKLER ===== */

/* WhatsApp Action Button */
.whatsapp-action-btn {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    padding: 10px 16px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.whatsapp-action-btn:hover {
    background: var(--primary-hover);
}

.whatsapp-action-btn:active {
    transform: translateY(0);
}

/* Feedback Buttons */
.feedback-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 0;
    background: transparent;
    font-size: 12px;
}

.feedback-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
}

.feedback-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: scale(1.05);
}

.feedback-btn:active {
    transform: scale(0.95);
}

/* Reservation Form Modal */
.reservation-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    max-width: 100%;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
}

.form-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.form-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.form-btn.submit {
    background: var(--primary);
    color: white;
}

.form-btn.submit:hover {
    background: var(--primary-hover);
}

.form-btn.cancel {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

.form-btn.cancel:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Analytics Display */
.analytics-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Courier New', monospace;
    color: var(--muted);
}

.analytics-stat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0;
}

.stat-box {
    background: rgba(79, 225, 193, 0.1);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border-left: 3px solid var(--mint);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.5px;
}

/* ===== Feedback Sistem Stilleri ===== */
.feedback-buttons {
    display: flex !important;
    gap: 8px;
    margin: 8px 0 0 0 !important;
    padding: 8px !important;
    background: var(--feedback-bg) !important;
    border-radius: 6px !important;
    border-left: 3px solid var(--feedback-border) !important;
}

.feedback-buttons button {
    padding: 6px 12px;
    border: 1px solid var(--feedback-btn-border);
    background: var(--feedback-btn-bg);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.feedback-buttons button:hover {
    background-color: var(--feedback-btn-hover);
    border-color: var(--feedback-border);
    transform: translateY(-1px);
}

.feedback-buttons button:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ===== WhatsApp Buton Stilleri ===== */
.whatsapp-action-btn {
    padding: 8px 14px;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s ease;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0 0;
}

.whatsapp-action-btn:hover {
    background: var(--primary-hover);
}

.whatsapp-action-btn:active {
    transform: translateY(0);
}

/* ===== Rezervasyon Form Stilleri ===== */
.reservation-form {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    background: var(--panel);
    margin: 12px 0 0 0;
}

.form-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.1);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .chat-body {
        grid-template-columns: 1fr;
    }
    
    .chat-sidebar {
        display: none;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .voice-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .bot-avatar {
        width: 45px;
        height: 45px;
    }
    
    .bot-info h2 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .chat-container {
        border-radius: 0;
        height: var(--app-height);
        max-height: var(--app-height);
    }
    
    .chat-header {
        border-radius: 0;
        padding: 12px;
    }
    
    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(47, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-submit-btn {
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    margin-top: 8px;
}

.form-submit-btn:hover {
    background: var(--primary-strong);
    box-shadow: 0 4px 12px rgba(47, 123, 255, 0.3);
}

/* Responsive */

@media (max-width: 1024px) {
    .chat-body { grid-template-columns: 1fr; }
    .chat-sidebar { display: none; }
    .chat-container { height: var(--app-height); max-height: var(--app-height); }
    body { padding: 0; }
}

@media (max-width: 640px) {
    .chat-container { border-radius: 16px; }
    .chat-header { padding: 16px; }
    .chat-messages { padding: 16px; }
    .message { max-width: 100%; }
    .message-avatar { display: none; }
    
    .analytics-stat {
        grid-template-columns: 1fr;
    }
}

/* ===== NEW UI/UX FEATURES ===== */

/* Emoji Reactions */
.message-reactions {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.reaction-btn {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reaction-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: scale(1.1);
}

.reaction-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.reaction-count {
    font-size: 11px;
    font-weight: 600;
}

/* Typing Animation */
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--typing-color);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Message Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message {
    animation: fadeInUp 0.3s ease-out;
}

.message.user {
    animation: slideInRight 0.3s ease-out;
}

.message.bot {
    animation: slideInLeft 0.3s ease-out;
}

/* File Upload Area */
.file-upload-area {
    background: var(--panel);
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin: 10px 0;
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.02);
}

.file-upload-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 10px;
}

.file-upload-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.file-upload-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

/* File Preview */
.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 8px 0;
}

.file-preview-icon {
    font-size: 32px;
    color: var(--primary);
}

.file-preview-info {
    flex: 1;
}

.file-preview-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.file-preview-size {
    font-size: 12px;
    color: var(--text-light);
}

.file-preview-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.file-preview-remove:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

/* Image Preview in Messages */
.message-image {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.message-image:hover {
    transform: scale(1.02);
}

/* Voice Features UI */
.voice-btn {
    background: var(--primary-light);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--primary);
}

.voice-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.voice-btn.recording {
    background: #ff4444;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Listening Indicator */
.listening-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.listening-animation {
    display: flex;
    gap: 3px;
}

.listening-animation span {
    width: 3px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
    animation: soundWave 1.2s ease-in-out infinite;
}

.listening-animation span:nth-child(2) { animation-delay: 0.2s; }
.listening-animation span:nth-child(3) { animation-delay: 0.4s; }
.listening-animation span:nth-child(4) { animation-delay: 0.6s; }

@keyframes soundWave {
    0%, 100% { height: 16px; }
    50% { height: 8px; }
}

.listening-text {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

/* Transcript Display */
.transcript-display {
    padding: 8px 12px;
    background: var(--panel);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.transcript-display.final {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* Voice Error Toast */
.voice-error-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #ff4444;
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transition: transform 0.3s;
}

.voice-error-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Lead Capture Form Styles */
.lead-capture-form {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 16px 0;
}

.lead-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.lead-form-header i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 12px;
}

.lead-form-header h3 {
    font-size: 20px;
    margin: 0 0 8px 0;
    color: var(--text);
}

.lead-form-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.interest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-checkbox {
    display: inline-block;
    cursor: pointer;
}

.chip-checkbox input {
    display: none;
}

.chip-checkbox span {
    display: inline-block;
    padding: 8px 16px;
    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
}

.chip-checkbox:hover span {
    border-color: var(--primary);
    background: var(--primary-light);
}

.chip-checkbox input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--panel);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border-light);
}

.form-privacy {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    margin-top: 12px;
}

.form-privacy a {
    color: var(--primary);
    text-decoration: underline;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

.chat-messages {
    scroll-behavior: smooth;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Sentiment Indicators */
.sentiment-positive {
    border-left: 3px solid #4caf50;
}

.sentiment-negative {
    border-left: 3px solid #ff4444;
}

.sentiment-neutral {
    border-left: 3px solid #ffc107;
}

/* Loading Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Fade transitions */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 300ms;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 300ms;
}

/* Analytics Modal */
.analytics-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s;
}

.analytics-modal-content {
    background: var(--panel-strong);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.analytics-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--text);
}

.analytics-header button {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.analytics-header button:hover {
    background: var(--border-light);
    color: var(--text);
}

.analytics-body {
    padding: 24px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.analytics-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
}

.analytics-card h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    font-weight: 500;
}

.analytics-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.analytics-section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.analytics-section h3 {
    font-size: 16px;
    margin: 0 0 16px 0;
    color: var(--text);
}

.analytics-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analytics-section li {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analytics-section li:last-child {
    border-bottom: none;
}

.badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.analytics-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.analytics-actions button {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.analytics-actions button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== PREMIUM WELCOME SCREEN B ===== */

.welcome-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #f0faff 0%, #fce7f3 25%, #f5f3ff 50%, #dbeafe 75%, #faf5ff 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* Animated Particle Background - Legacy */
.particles {
    display: none;
}

/* Neon Gradient Background */
.neon-gradient-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.welcome-screen .neon-gradient-bg {
    background-image: url('../assets/images/light.png');
    background-attachment: fixed;
}


.neon-glow {
    display: none;
}

.neon-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #9333ea, #9333ea 40%, transparent);
    top: -20%;
    right: -10%;
    animation: neonShift1 6s ease-in-out infinite;
}

.neon-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #9333ea, #9333ea 40%, transparent);
    bottom: -10%;
    left: -5%;
    animation: neonShift2 8s ease-in-out infinite;
}

.neon-glow-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #9333ea, #9333ea 40%, transparent);
    top: 30%;
    right: 5%;
    animation: neonShift3 7s ease-in-out infinite;
}


@keyframes neonShift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

@keyframes neonShift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.1); }
}

@keyframes neonShift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, 25px) scale(1.1); }
}

/* Welcome Content */
.welcome-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 1s ease;
    max-width: 600px;
    padding: 40px;
}

/* Bot Avatar Welcome */
.bot-avatar-welcome {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideDown 0.8s ease 0.15s forwards;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}


.bot-logo-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    animation: robotFloat 3s ease-in-out infinite;
}

@keyframes robotFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(40px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* Premium Badge */
.premium-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #06b6d4;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
    animation: slideDown 0.8s ease 0.1s forwards;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-badge i {
    font-size: 12px;
}

/* Welcome Title */
.welcome-content h2,
.premium-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 900;
    margin: 0 0 30px 0;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: slideDown 0.8s ease 0.2s forwards;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}


@keyframes neonGlow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
        filter: brightness(1);
    }
    50% { 
        text-shadow: 0 0 20px rgba(255, 0, 153, 0.4);
        filter: brightness(1.1);
    }
}

.gradient-text {
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Welcome Subtitle */
.welcome-content p {
    font-size: 18px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 0 30px 0;
    animation: slideDown 0.8s ease 0.3s forwards;
    letter-spacing: 0.3px;
    display: none;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.3);
    animation: slideDown 0.8s ease 0.4s forwards;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(6, 182, 212, 0.4);
}

.cta-button i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .welcome-content {
        padding: 30px 20px;
    }

    .bot-avatar-welcome {
        width: 100px;
        height: 100px;
        margin: 0 auto 20px;
    }

    .welcome-content h2,
    .premium-title {
        font-size: 36px;
        letter-spacing: 1.5px;
    }

    .welcome-content p {
        font-size: 16px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .welcome-content {
        padding: 20px 15px;
    }

    .bot-avatar-welcome {
        width: 80px;
        height: 80px;
        margin: 0 auto 15px;
    }

    .welcome-content h2,
    .premium-title {
        font-size: 26px;
        letter-spacing: 1px;
        white-space: normal;
    }

    .welcome-content p {
        font-size: 14px;
    }

    .premium-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ===== UI UPGRADE OVERRIDES (2026) ===== */
:root {
    --font-base: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Fraunces', 'Georgia', serif;
    --accent-1: #0f4c81;
    --accent-2: #f59e0b;
    --accent-3: #2563eb;
    --bubble-border: var(--border);
    --surface-soft: var(--bot-message-bg);
}


body {
    font-family: 'Inter', system-ui, sans-serif;
}

.bot-info h2,
.welcome-content h2 {
    font-family: var(--font-display);
    letter-spacing: -0.005em;
    font-weight: 700;
}

.chat-main {
    background: var(--surface);
    position: relative;
}

.message {
    max-width: 76%;
}

.bot-message .message-content {
    background: var(--bot-message-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.user-message .message-content {
    background: var(--user-message-bg);
    color: var(--user-text);
    box-shadow: var(--shadow);
}

.message-content {
    font-size: 14px;
    line-height: 1.55;
}

.quick-reply {
    border-radius: 999px;
    padding: 9px 16px;
    border: 1px solid rgba(15, 76, 129, 0.2);
    background: rgba(15, 76, 129, 0.08);
    white-space: nowrap;
}

.quick-reply:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    background: rgba(15, 76, 129, 0.14);
}

.whatsapp-action-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.25);
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 600;
}

.whatsapp-action-btn:hover {
    filter: brightness(1.03);
}

.cta-button {
    font-family: var(--font-base);
}

@media (max-width: 768px) {
    .message {
        max-width: 100%;
    }
}

.choice-row,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 0 0;
    align-items: center;
}

.action-row {
    padding-top: 4px;
}

.action-row .quick-reply,
.action-row .whatsapp-action-btn {
    padding: 8px 14px;
    font-size: 12.5px;
}



