        /* CSS Custom Properties - Design Tokens */
        /* Updated to match diegesundheitsexperten.de / TUTARIO branding */
        :root {
            /* Primary Brand Colors - TUTARIO */
            --color-primary: #00424F;
            /* Dark teal - main brand color */
            --color-primary-dark: #002A33;
            /* Darker teal for depth */
            --color-primary-light: #00B6C0;
            /* Turquoise accent */
            --color-accent-lime: #B6C81C;
            /* Lime green accent */
            --color-primary-gradient: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));

            /* Neutral Colors */
            --color-background: #F5F7F9;
            --color-surface: rgba(255, 255, 255, 0.92);
            --color-surface-solid: #ffffff;
            --color-surface-hover: rgba(255, 255, 255, 0.98);

            /* Text Colors */
            --color-text-primary: #00424F;
            --color-text-secondary: #4A6B6B;
            --color-text-muted: #7A9A9A;
            --color-text-inverse: #ffffff;

            /* Accent Colors */
            --color-success: #B6C81C;
            --color-error: #FF4757;
            --color-warning: #fbbf24;

            /* Borders & Shadows */
            --color-border: rgba(0, 66, 79, 0.1);
            --color-border-light: rgba(0, 66, 79, 0.05);
            --shadow-sm: 0 2px 8px rgba(0, 66, 79, 0.06);
            --shadow-md: 0 4px 16px rgba(0, 66, 79, 0.1);
            --shadow-lg: 0 8px 32px rgba(0, 66, 79, 0.12);
            --shadow-primary: 0 4px 16px rgba(0, 182, 192, 0.25);

            /* Spacing */
            --spacing-xs: 4px;
            --spacing-sm: 8px;
            --spacing-md: 16px;
            --spacing-lg: 24px;
            --spacing-xl: 32px;

            /* Border Radius - Pill-shaped buttons */
            --radius-sm: 8px;
            --radius-md: 16px;
            --radius-lg: 24px;
            --radius-xl: 30px;
            --radius-pill: 50px;
            --radius-full: 50%;

            /* Animation */
            --transition-fast: 0.15s ease;
            --transition-normal: 0.3s ease;
            --transition-slow: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

            /* Z-index layers */
            --z-widget: 1000;
            --z-modal: 1001;
            --z-toast: 1002;
        }

        /* Dark Mode - System Preference */
        @media (prefers-color-scheme: dark) {
            :root {
                --color-background: #1a1a2e;
                --color-surface: rgba(30, 30, 50, 0.95);
                --color-surface-solid: #1e1e32;
                --color-surface-hover: rgba(40, 40, 65, 0.98);

                --color-text-primary: #f0f0f0;
                --color-text-secondary: #b0b0b0;
                --color-text-muted: #808080;

                --color-border: rgba(255, 255, 255, 0.15);
                --color-border-light: rgba(255, 255, 255, 0.1);

                --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
                --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
                --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
            }
        }

        /* Manual Dark Mode Toggle */
        .dark-mode {
            --color-background: #1a1a2e;
            --color-surface: rgba(30, 30, 50, 0.95);
            --color-surface-solid: #1e1e32;
            --color-surface-hover: rgba(40, 40, 65, 0.98);

            --color-text-primary: #f0f0f0;
            --color-text-secondary: #b0b0b0;
            --color-text-muted: #808080;

            --color-border: rgba(255, 255, 255, 0.15);
            --color-border-light: rgba(255, 255, 255, 0.1);

            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
            --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
        }

        /* Reduced Motion Support */
        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-weight: 400;
            background-color: #F5F7F9;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Chatbot Widget Container */
        #chatbot-widget {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
        }

        /* Chat Button - Simple Flat Design (TUTARIO Style) */
        .chat-button {
            width: 60px;
            height: 60px;
            background: #00424F;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 66, 79, 0.3);
            transition: all 0.2s ease;
            border: none;
            position: relative;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            -webkit-user-select: none;
        }

        .chat-button:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 16px rgba(0, 66, 79, 0.4);
            background: #005566;
        }

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

        .chat-button svg {
            fill: white;
            width: 28px;
            height: 28px;
        }

        /* Chat Popup - Modern V2 Design */
        .chat-popup {
            position: absolute;
            bottom: 80px;
            right: 0;
            width: 90vw;
            max-width: 400px;
            min-width: 340px;
            height: 85vh;
            max-height: 696px;
            min-height: 480px;
            background: #ffffff;
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 66, 79, 0.25);
            border: 1px solid rgba(0, 182, 192, 0.1);
            display: none;
            flex-direction: column;
            overflow: hidden;
        }

        /* Gradient Mesh Background */
        .chat-popup::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -30%;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(0, 182, 192, 0.15) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        .chat-popup::after {
            content: '';
            position: absolute;
            bottom: -20%;
            left: -20%;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(182, 200, 28, 0.1) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        .chat-popup.active {
            display: flex;
        }

        /* Modern Header - Primary Dark Teal Bar */
        .chat-header {
            background: #00424F;
            padding: 16px 20px;
            color: #ffffff;
            position: relative;
            z-index: 10;
            display: flex;
            justify-content: space-between;
            align-items: center;
            min-height: 60px;
            border-radius: 20px 20px 0 0;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .profile-section {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        .profile-picture {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 66, 79, 0.1);
            border: none;
            flex-shrink: 0;
        }

        .profile-picture img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .profile-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .profile-name {
            font-size: 16px;
            font-weight: 700;
            color: #ffffff;
            line-height: 1.1;
            letter-spacing: -0.3px;
        }

        .profile-status {
            font-size: 12px;
            color: #00B6C0;
            font-weight: 500;
            margin-top: 2px;
        }

        .back-button {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .back-button:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .back-button:active {
            transform: scale(0.9);
            transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .back-button.hidden {
            display: none;
        }

        .profile-picture {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            overflow: visible;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .profile-picture::before {
            content: '';
            position: absolute;
            top: -2px;
            right: -2px;
            width: 12px;
            height: 12px;
            background: #B6C81C;
            border-radius: 50%;
            border: none;
            z-index: 2;
        }

        .profile-picture img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .greeting-text h3 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .greeting-text p {
            font-size: 13px;
            opacity: 0.9;
            font-weight: 400;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .greeting-text p::before {
            content: '●';
            font-size: 8px;
            color: #B6C81C;
        }

        .close-button {
            position: relative;
            background: rgba(255, 255, 255, 0.15);
            border: none;
            cursor: pointer;
            padding: 10px;
            border-radius: 12px;
            transition: all 0.2s ease;
            z-index: 10;
        }

        .close-button svg {
            fill: #ffffff;
            width: 18px;
            height: 18px;
        }

        .close-button:hover {
            background: rgba(255, 255, 255, 0.25);
        }

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

        /* Header Actions Container */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Language Switch Button */
        .language-switch-btn {
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 10px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .language-switch-btn:hover {
            background: rgba(255, 255, 255, 0.15);
        }

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

        .current-lang-text {
            font-size: 16px;
            font-weight: 700;
            color: white;
            letter-spacing: 0.5px;
        }

        /* Chat Content - V2 Modern Layout */
        .chat-content {
            flex: 1;
            padding: 35px 20px 24px 20px;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            overflow-x: hidden;
            position: relative;
            z-index: 1;
        }

        /* Hero Section */
        .hero-section {
            padding-top: 20px;
            margin-bottom: 12px;
        }

        .hero-title {
            font-size: 32px;
            font-weight: 700;
            color: #00424F;
            line-height: 1.2;
            margin-bottom: 4px;
            letter-spacing: -0.5px;
        }

        .hero-subtitle {
            font-size: 15px;
            color: #7A9A9A;
            font-weight: 400;
        }

        /* Quick Action Card */
        .action-card {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 182, 192, 0.15);
            border-radius: 16px;
            padding: 12px 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 8px;
        }

        .action-card:hover {
            background: rgba(0, 182, 192, 0.05);
            border-color: rgba(0, 182, 192, 0.3);
            transform: translateX(4px);
        }

        .action-card-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, #00B6C0, #00424F);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .action-card-icon svg {
            fill: white;
            width: 22px;
            height: 22px;
        }

        .action-card-content {
            flex: 1;
        }

        .action-card-title {
            font-size: 15px;
            font-weight: 600;
            color: #00424F;
            margin-bottom: 2px;
        }

        .action-card-desc {
            font-size: 13px;
            color: #7A9A9A;
        }

        .action-card-arrow {
            color: #00B6C0;
            font-size: 18px;
        }

        /* Secondary Actions Row - Two small cards side by side */
        .secondary-actions-row {
            display: flex;
            gap: 10px;
            margin-top: 8px;
        }

        /* Small Action Card */
        .action-card-small {
            flex: 1;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 182, 192, 0.15);
            border-radius: 12px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .action-card-small:hover {
            background: rgba(0, 182, 192, 0.05);
            border-color: rgba(0, 182, 192, 0.3);
            transform: translateY(-2px);
        }

        .action-card-icon-small {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #00B6C0, #00424F);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .action-card-icon-small svg {
            fill: white;
            width: 18px;
            height: 18px;
        }

        .action-card-content-small {
            flex: 1;
            min-width: 0;
        }

        .action-card-title-small {
            font-size: 13px;
            font-weight: 600;
            color: #00424F;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Conversation Card */
        .conversation-card {
            background: #00424F;
            border-radius: 16px;
            padding: 18px 20px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .conversation-card:hover {
            background: #005566;
            transform: translateX(4px);
        }

        .conversation-card-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 6px;
        }

        .conversation-card-icon {
            width: 20px;
            height: 20px;
            fill: #00B6C0;
        }

        .conversation-card-title {
            font-size: 14px;
            font-weight: 600;
            color: white;
        }

        .conversation-card-preview {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.7);
        }

        /* Initial Options - Modern Style */
        .initial-options {
            display: flex;
            flex-direction: column;
            gap: 0;
            flex: 1;
        }

        /* Option Buttons - Clean Simple Style */
        .option-button {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 30px;
            padding: 16px 22px;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease;
            display: flex;
            align-items: center;
            gap: 12px;
            text-align: left;
            font-size: 14px;
            font-weight: 500;
            color: #00424F;
        }

        .option-button:hover {
            background: #f8fafa;
            border-color: #00B6C0;
        }

        .option-button:active {
            background: #f0f5f5;
        }

        .option-icon {
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #00B6C0;
        }

        .option-button span {
            flex: 1;
        }

        .arrow {
            color: #00424F;
            font-size: 16px;
        }

        /* Continue Conversation */
        .continue-conversation {
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.4);
            box-shadow: 0 4px 16px rgba(0, 182, 192, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        .conversation-preview h4 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 12px;
            color: #00424F;
        }

        .preview-text {
            font-size: 13px;
            color: #5A7A7A;
            margin-bottom: 8px;
            line-height: 1.5;
        }

        .timestamp {
            font-size: 11px;
            color: #8A9A9A;
        }

        /* Chat Interface */
        .chat-interface {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 0;
            margin-bottom: 16px;
        }

        .message {
            margin-bottom: 16px;
            display: flex;
            flex-direction: column;
            animation: messageSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            opacity: 0;
            animation-fill-mode: forwards;
        }

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

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .message.user {
            align-items: flex-end;
        }

        .message.assistant {
            align-items: flex-start;
        }

        .message-bubble {
            max-width: 80%;
            padding: 16px 20px;
            border-radius: 18px;
            font-size: 13px;
            font-weight: 400;
            line-height: 1.5;
            word-wrap: break-word;
            white-space: pre-wrap;
        }

        .message-bubble table {
            width: 100%;
            border-collapse: collapse;
            margin: 12px 0;
            font-size: 12px;
        }

        .message-bubble table th,
        .message-bubble table td {
            padding: 8px 12px;
            text-align: left;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .message.user .message-bubble table th,
        .message.user .message-bubble table td {
            border-color: rgba(255, 255, 255, 0.3);
        }

        .message-bubble table th {
            background: rgba(0, 0, 0, 0.05);
            font-weight: 600;
        }

        .message.user .message-bubble table th {
            background: rgba(255, 255, 255, 0.2);
        }

        .message-bubble table tr:nth-child(even) {
            background: rgba(0, 0, 0, 0.02);
        }

        .message.user .message-bubble table tr:nth-child(even) {
            background: rgba(255, 255, 255, 0.1);
        }

        .message-bubble p {
            margin: 8px 0;
        }

        .message-bubble p:first-child {
            margin-top: 0;
        }

        .message-bubble p:last-child {
            margin-bottom: 0;
        }

        .message-bubble code {
            background: rgba(0, 0, 0, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Courier New', monospace;
            font-size: 11px;
        }

        .message.user .message-bubble code {
            background: rgba(255, 255, 255, 0.2);
        }

        .message-bubble pre {
            background: rgba(0, 0, 0, 0.05);
            padding: 12px;
            border-radius: 8px;
            overflow-x: auto;
            margin: 12px 0;
        }

        .message.user .message-bubble pre {
            background: rgba(255, 255, 255, 0.15);
        }

        .message-bubble pre code {
            background: none;
            padding: 0;
        }

        .message-bubble ul,
        .message-bubble ol {
            margin: 8px 0;
            padding-left: 24px;
        }

        .message-bubble li {
            margin: 4px 0;
        }

        .message-bubble strong {
            font-weight: 600;
        }

        .message-bubble em {
            font-style: italic;
        }

        .message-bubble a {
            color: #0066cc !important;
            text-decoration: underline;
            cursor: pointer;
        }

        .message-bubble a:hover {
            color: #0052a3 !important;
        }

        .message.user .message-bubble a {
            color: #66b3ff !important;
        }

        .message.user .message-bubble a:hover {
            color: #cce0ff !important;
        }

        .message.user .message-bubble {
            background: #00424F;
            color: white;
            border-bottom-right-radius: 6px;
            box-shadow:
                0 4px 14px rgba(0, 182, 192, 0.25),
                0 2px 6px rgba(0, 0, 0, 0.06);
        }

        .message.assistant .message-bubble {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: #2d3748;
            border-bottom-left-radius: 6px;
            border: 1px solid rgba(0, 0, 0, 0.04);
            box-shadow:
                0 2px 8px rgba(0, 0, 0, 0.04),
                0 1px 2px rgba(0, 0, 0, 0.02);
        }

        .message-time {
            font-size: 11px;
            color: #999;
            margin-top: 8px;
        }

        /* Media Attachment Styles */
        .message-attachment {
            margin-top: 8px;
            border-radius: 12px;
            overflow: hidden;
        }

        .message-attachment:first-child {
            margin-top: 0;
        }

        /* Image Preview */
        .attachment-image {
            max-width: 100%;
            max-height: 200px;
            border-radius: 12px;
            cursor: pointer;
            transition: transform 0.3s ease;
            display: block;
        }

        .attachment-image:hover {
            transform: scale(1.02);
        }

        /* Audio Player */
        .attachment-audio {
            width: 100%;
            height: 44px;
            border-radius: 22px;
            background: rgba(0, 0, 0, 0.08);
        }

        .message.user .attachment-audio {
            background: rgba(255, 255, 255, 0.2);
        }

        .attachment-audio::-webkit-media-controls-panel {
            background: transparent;
        }

        /* Voice Message Container */
        .voice-attachment {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 12px;
        }

        .message.user .voice-attachment {
            background: rgba(255, 255, 255, 0.15);
        }

        .voice-icon {
            width: 36px;
            height: 36px;
            background: #00424F;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .message.user .voice-icon {
            background: rgba(255, 255, 255, 0.3);
        }

        .voice-icon svg {
            width: 18px;
            height: 18px;
            fill: white;
        }

        .voice-player {
            flex: 1;
            min-width: 0;
        }

        .voice-player audio {
            width: 100%;
            height: 32px;
        }

        /* File Attachment Card */
        .file-attachment {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 12px;
            text-decoration: none;
            color: inherit;
            transition: background 0.2s ease;
        }

        .file-attachment:hover {
            background: rgba(0, 0, 0, 0.08);
        }

        .message.user .file-attachment {
            background: transparent;
            padding: 8px 0;
            border-radius: 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            margin-bottom: 4px;
        }

        .message.user .file-attachment:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .file-icon {
            width: 40px;
            height: 40px;
            background: #00424F;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .message.user .file-icon {
            background: rgba(255, 255, 255, 0.3);
        }

        .file-icon svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

        .file-info {
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }

        .file-name {
            font-size: 13px;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 2px;
        }

        .file-size {
            font-size: 11px;
            opacity: 0.7;
        }

        .file-download {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(0, 182, 192, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: background 0.2s ease;
        }

        .file-download:hover {
            background: rgba(0, 182, 192, 0.2);
        }

        .message.user .file-download {
            background: rgba(255, 255, 255, 0.2);
        }

        .message.user .file-download:hover {
            background: rgba(255, 255, 255, 0.35);
        }

        .file-download svg {
            width: 16px;
            height: 16px;
            fill: #00B6C0;
        }

        .message.user .file-download svg {
            fill: white;
        }

        /* Chat Input */
        .chat-input-container {
            display: flex;
            gap: 12px;
            align-items: center;
            padding: 0;
            background: transparent;
            border-radius: 0;
            border: none;
            margin-top: 8px;
        }

        #chatbot-chat-input {
            flex: 1;
            border: 1px solid rgba(255, 255, 255, 0.4);
            outline: none;
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            font-size: 12px;
            font-weight: 400;
            color: #333;
            padding: 14px 20px;
            border-radius: 25px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            transition: all 0.3s ease;
        }

        #chatbot-chat-input::placeholder {
            color: rgba(153, 153, 153, 0.7);
        }

        #chats-chat-input {
            flex: 1;
            border: 1px solid rgba(255, 255, 255, 0.4);
            outline: none;
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            font-size: 15px;
            font-weight: 400;
            color: #333;
            padding: 14px 20px;
            border-radius: 25px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            transition: all 0.3s ease;
        }

        #chats-chat-input::placeholder {
            color: rgba(153, 153, 153, 0.7);
        }

        .send-button {
            width: 35px;
            height: 35px;
            min-width: 35px;
            flex-shrink: 0;
            background: #00424F;
            border: none;
            border-radius: 50%;
            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(0, 182, 192, 0.3),
                0 2px 6px rgba(0, 0, 0, 0.08),
                inset 0 -1px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 4px rgba(255, 255, 255, 0.3);
            position: relative;
            overflow: hidden;
        }

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

        .send-button:active::before {
            width: 100%;
            height: 100%;
        }

        .send-button:hover {
            transform: scale(1.1) rotate(15deg);
            box-shadow: 0 6px 16px rgba(0, 182, 192, 0.4),
                0 3px 8px rgba(0, 0, 0, 0.1),
                inset 0 -1px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 4px rgba(255, 255, 255, 0.3);
        }

        .send-button:active {
            transform: scale(0.9) rotate(0deg);
            transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .send-button svg {
            color: white;
        }

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

        /* Attachment Button */
        .attachment-button {
            width: 38px;
            height: 38px;
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(0, 182, 192, 0.15);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s ease;
            color: #00B6C0;
            flex-shrink: 0;
        }

        .attachment-button:hover {
            background: rgba(0, 182, 192, 0.1);
            border-color: rgba(0, 182, 192, 0.3);
            transform: scale(1.05);
        }

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

        .attachment-button svg {
            width: 18px;
            height: 18px;
        }

        /* Hidden file input */
        .file-input-hidden {
            display: none;
        }

        /* Voice Button */
        .voice-button {
            width: 38px;
            height: 38px;
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(0, 182, 192, 0.15);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s ease;
            color: #00B6C0;
            flex-shrink: 0;
        }

        .voice-button:hover {
            background: rgba(0, 182, 192, 0.1);
            border-color: rgba(0, 182, 192, 0.3);
            transform: scale(1.05);
        }

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

        .voice-button.recording {
            background: #ff4757;
            border-color: transparent;
            color: white;
            animation: pulse-recording 1.5s ease-in-out infinite;
        }

        @keyframes pulse-recording {

            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
            }

            50% {
                box-shadow: 0 0 0 12px rgba(255, 71, 87, 0);
            }
        }

        .voice-button svg {
            width: 18px;
            height: 18px;
        }

        /* Recording Timer */
        .recording-timer {
            font-size: 12px;
            font-weight: 600;
            color: #ff4757;
            padding: 4px 10px;
            background: rgba(255, 71, 87, 0.1);
            border-radius: 12px;
            display: none;
        }

        .recording-timer.visible {
            display: block;
            animation: fadeIn 0.2s ease;
        }

        /* File Preview */
        .file-preview {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: rgba(0, 182, 192, 0.08);
            border-radius: 8px;
            margin-bottom: 8px;
            font-size: 12px;
            color: #00424F;
        }

        .file-preview .file-icon {
            color: #00B6C0;
        }

        .file-preview .file-name {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .file-preview .remove-file {
            background: none;
            border: none;
            cursor: pointer;
            color: #8A9A9A;
            padding: 4px;
            display: flex;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .file-preview .remove-file:hover {
            background: rgba(255, 71, 87, 0.1);
            color: #ff4757;
        }

        /* Cookie Consent */
        .cookie-consent {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.4);
            padding: 24px;
            z-index: 1001;
            box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08),
                0 -2px 8px rgba(0, 0, 0, 0.04);
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .cookie-consent.show {
            transform: translateY(0);
        }

        .cookie-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
        }

        .cookie-content p {
            color: #333;
            font-size: 15px;
            font-weight: 400;
            flex: 1;
        }

        .cookie-buttons {
            display: flex;
            gap: 12px;
        }

        .accept-btn,
        .decline-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .accept-btn {
            background: #00424F;
            color: white;
            box-shadow: 0 4px 16px rgba(0, 182, 192, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.08),
                inset 0 -1px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 4px rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .accept-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
            pointer-events: none;
        }

        .accept-btn:active::before {
            width: 100%;
            height: 100%;
        }

        .accept-btn:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 6px 20px rgba(0, 182, 192, 0.4),
                0 3px 10px rgba(0, 0, 0, 0.1),
                inset 0 -1px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 4px rgba(255, 255, 255, 0.2);
        }

        .accept-btn:active {
            transform: translateY(0) scale(0.98);
            transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .decline-btn {
            background: transparent;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: #666;
            border: 2px solid rgba(102, 102, 102, 0.3);
            box-shadow: none;
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .decline-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 8px;
            background: rgba(102, 102, 102, 0.1);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
            pointer-events: none;
        }

        .decline-btn:active::before {
            width: 100%;
            height: 100%;
        }

        .decline-btn:hover {
            background: rgba(102, 102, 102, 0.05);
            border-color: rgba(102, 102, 102, 0.4);
            color: #333;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .decline-btn:active {
            transform: translateY(0) scale(0.98);
            transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* FAQ Tab Styles */
        .faq-content {
            height: 100%;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            padding-right: 4px;
        }

        .faq-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .faq-item {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .faq-item:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            background: rgba(255, 255, 255, 0.85);
        }

        .faq-question {
            padding: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-weight: 600;
            color: #333;
            font-size: 14px;
            user-select: none;
        }

        .faq-toggle {
            font-size: 20px;
            color: #00B6C0;
            font-weight: 400;
            transition: transform 0.3s ease;
            line-height: 1;
        }

        .faq-item.active .faq-toggle {
            transform: rotate(45deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out, padding 0.3s ease;
            background: rgba(255, 255, 255, 0.3);
            border-top: 1px solid rgba(255, 255, 255, 0.0);
        }

        .faq-item.active .faq-answer {
            max-height: 300px;
            padding: 0 16px 16px 16px;
            border-top-color: rgba(255, 255, 255, 0.4);
        }

        .faq-answer p {
            margin: 0;
            font-size: 13px;
            color: #555;
            line-height: 1.5;
        }

        /* Responsive Design */

        /* Tablet breakpoint */
        @media (max-width: 768px) {
            .chat-popup {
                width: 95vw;
                max-width: 400px;
                height: 80vh;
                max-height: 600px;
                right: 2.5vw;
                bottom: 90px;
            }

            .greeting-text h3 {
                font-size: 16px;
            }

            .greeting-text p {
                font-size: 12px;
            }

            .option-button {
                padding: 16px 20px;
            }
        }

        /* Mobile breakpoint - Full screen experience */
        @media (max-width: 480px) {

            /* Prevent zoom on input focus (iOS fix) */
            input,
            textarea,
            select {
                font-size: 16px !important;
            }

            /* Full-screen mobile widget */
            #chatbot-widget {
                bottom: 0;
                right: 0;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
            }

            /* Hide the chat button when popup is open on mobile */
            #chatbot-widget:has(.chat-popup.active) .chat-button {
                display: none;
            }

            /* Position chat button properly when closed */
            #chatbot-widget:not(:has(.chat-popup.active)) {
                bottom: 20px;
                right: 20px;
                left: auto;
                top: auto;
                width: auto;
                height: auto;
            }

            .chat-popup {
                position: fixed !important;
                width: 100vw !important;
                max-width: none !important;
                min-width: 0 !important;
                /* Use 100% instead of vh units to prevent keyboard resize issues */
                height: 100% !important;
                max-height: none !important;
                min-height: 0 !important;
                border-radius: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                left: 0 !important;
                top: 0 !important;
                background: #ffffff;
                /* Prevent overscroll bounce and viewport scroll */
                overscroll-behavior: none !important;
                overflow: hidden !important;
                box-shadow: none !important;
                border: none !important;
                z-index: 9999 !important;
                /* Prevent any transform or translate that could cause shifts */
                transform: none !important;
                /* Disable touch-based scrolling on the popup itself */
                touch-action: pan-y pinch-zoom !important;
            }

            /* Lock body scroll when chat is open on mobile */
            body:has(.chat-popup.active) {
                overflow: hidden !important;
                position: fixed !important;
                width: 100% !important;
                height: 100% !important;
                /* Prevent iOS rubber-banding */
                overscroll-behavior: none !important;
            }

            /* Prevent input focus from triggering viewport resize */
            #chatbot-chat-input:focus,
            #chats-chat-input:focus {
                /* Prevent zoom and keep input in place */
                transform: translateZ(0) !important;
            }

            /* Hide gradient decorations on mobile */
            .chat-popup::before,
            .chat-popup::after {
                display: none !important;
            }

            .chat-header {
                border-radius: 0 !important;
            }

            .chat-header {
                padding: 16px 20px;
                min-height: 60px;
                padding-top: calc(env(safe-area-inset-top, 16px) + 8px);
                /* Notch support with extra padding */
            }

            /* Enhanced close button for mobile - larger touch target */
            .close-button {
                width: 44px;
                height: 44px;
                min-width: 44px;
                min-height: 44px;
                top: calc(env(safe-area-inset-top, 8px) + 8px);
                right: 12px;
                background: rgba(255, 255, 255, 0.25);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .close-button svg {
                width: 24px;
                height: 24px;
            }

            .close-button:hover,
            .close-button:active {
                background: rgba(255, 255, 255, 0.4);
                transform: scale(1.05);
            }

            /* Profile section mobile adjustments */
            .profile-section {
                gap: 12px;
            }

            .profile-picture {
                width: 42px;
                height: 42px;
            }

            .greeting-text h3 {
                font-size: 15px;
            }

            .greeting-text p {
                font-size: 12px;
            }

            .chat-content {
                padding: 12px;
                padding-bottom: env(safe-area-inset-bottom, 12px);
                /* Home indicator support */
                flex: 1;
                display: flex;
                flex-direction: column;
                min-height: 0;
                /* Allows flex children to shrink properly */
                overflow: hidden;
            }

            /* Chat interface fills available space on mobile */
            .chat-interface {
                flex: 1;
                display: flex;
                flex-direction: column;
                min-height: 0;
                height: 100%;
            }

            /* Tab content fills available space */
            .tab-content.active {
                flex: 1;
                display: flex;
                flex-direction: column;
                min-height: 0;
                /* Override the 80px padding from desktop - use proper mobile nav height */
                padding-bottom: calc(70px + env(safe-area-inset-bottom, 8px)) !important;
            }

            /* Improved scroll behavior for chat messages */
            .chat-messages {
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;
                scroll-behavior: smooth;
                margin-bottom: 12px;
                flex: 1;
                min-height: 0;
            }

            /* Smaller message bubbles on mobile */
            .message-bubble {
                max-width: 85%;
                padding: 12px 16px;
                font-size: 14px;
            }

            /* Option buttons - touch-friendly */
            .option-button {
                padding: 16px 18px;
                min-height: 56px;
                gap: 12px;
                border-radius: 14px;
            }

            .option-button span {
                font-size: 14px;
            }

            /* Better touch targets for action buttons */
            .top-action-btn {
                padding: 14px 16px;
                min-height: 48px;
                font-size: 14px;
            }

            .top-action-buttons {
                gap: 10px;
                margin-bottom: 20px;
            }

            /* Greeting response buttons - vertical stack on mobile */
            .greeting-response-buttons {
                flex-direction: column;
                gap: 10px;
            }

            .greeting-response-btn {
                padding: 14px 18px;
                min-height: 48px;
                font-size: 14px;
                white-space: normal;
                text-align: left;
            }

            /* Chat input improvements */
            .chat-input-container {
                gap: 6px;
                margin-top: auto;
                /* Pushes to bottom */
                padding: 10px 8px;
                padding-bottom: calc(env(safe-area-inset-bottom, 0) + 10px);
                position: relative !important;
                /* Override absolute position on mobile */
                bottom: auto !important;
                left: auto !important;
                right: auto !important;
                background: rgba(255, 255, 255, 0.98);
            }

            /* Allow input to shrink on small screens */
            #chatbot-chat-input,
            #chats-chat-input {
                min-width: 0 !important;
                flex: 1 1 auto !important;
            }

            #chatbot-chat-input,
            #chats-chat-input {
                padding: 14px 18px;
                font-size: 16px !important;
                /* Prevents iOS zoom - must be 16px+ */
                border-radius: 22px;
                -webkit-text-size-adjust: 100%;
                touch-action: manipulation;
            }

            /* Prevent all iOS zoom on inputs */
            input[type="text"],
            input[type="email"],
            input[type="tel"],
            textarea {
                font-size: 16px !important;
                -webkit-text-size-adjust: 100%;
            }

            .send-button {
                width: 44px;
                height: 44px;
                min-width: 44px;
                min-height: 44px;
            }

            /* Bottom navigation full width on mobile */
            .chatbot-navigation {
                position: fixed !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                padding: 12px 20px;
                gap: 16px;
                border-radius: 0;
                padding-bottom: calc(env(safe-area-inset-bottom, 8px) + 8px);
            }

            .nav-button {
                padding: 10px 8px;
                min-height: 48px;
            }

            .nav-icon {
                width: 24px;
                height: 24px;
            }

            .nav-button span {
                font-size: 10px;
            }

            /* FAQ items touch-friendly */
            .faq-question {
                padding: 18px 16px;
                min-height: 56px;
                font-size: 14px;
            }

            .faq-answer p {
                font-size: 14px;
            }

            /* Session previews */
            .session-preview {
                padding: 14px;
            }

            .session-preview-title {
                font-size: 14px;
            }

            .session-preview-text {
                font-size: 13px;
            }

            /* Language modal mobile */
            .language-modal {
                padding: 32px 20px !important;
                border-radius: 0 !important;
            }

            .language-modal h2 {
                font-size: 20px;
            }

            .language-buttons {
                flex-direction: column;
                gap: 12px;
                max-width: 100%;
            }

            .language-btn {
                padding: 18px 20px;
                min-height: 48px;
            }

            /* Header actions mobile */
            .header-actions {
                gap: 4px;
            }

            .language-switch-btn {
                padding: 10px 14px;
            }

            .current-lang-text {
                font-size: 14px;
            }

            /* Cookie consent mobile */
            .cookie-consent {
                padding: 16px;
            }

            .cookie-content {
                flex-direction: column;
                text-align: center;
                gap: 16px;
            }

            .cookie-content p {
                font-size: 14px;
            }

            .cookie-buttons {
                width: 100%;
                justify-content: center;
                flex-direction: column;
                gap: 10px;
            }

            .accept-btn,
            .decline-btn {
                width: 100%;
                min-height: 48px;
                font-size: 14px;
            }

            /* Error action buttons */
            .error-action-btn {
                padding: 16px 20px;
                min-height: 52px;
                font-size: 14px;
            }

            /* Initial options spacing */
            .initial-options {
                gap: 12px;
            }
        }

        /* Landscape mode on mobile */
        @media (max-width: 896px) and (orientation: landscape) {
            .chat-popup {
                height: 100dvh;
            }

            .chat-header {
                padding: 10px 20px;
                min-height: 50px;
            }

            .profile-picture {
                width: 36px;
                height: 36px;
            }

            .greeting-text h3 {
                font-size: 14px;
            }

            .greeting-text p {
                font-size: 11px;
            }

            .chat-content {
                padding: 8px 16px;
            }

            .chatbot-navigation {
                padding: 8px 24px;
            }

            .nav-button {
                flex-direction: row;
                gap: 8px;
                padding: 8px 12px;
            }

            .nav-icon {
                width: 18px;
                height: 18px;
            }

            .language-modal {
                padding: 20px;
            }

            .language-modal h2 {
                font-size: 18px;
                margin-bottom: 8px;
            }

            .language-modal p {
                font-size: 13px;
                margin-bottom: 16px;
            }

            .language-buttons {
                flex-direction: row;
            }
        }

        /* Small mobile devices (iPhone SE, etc.) */
        @media (max-width: 375px) {
            .chat-content {
                padding: 10px;
            }

            .option-button {
                padding: 14px 16px;
                min-height: 52px;
            }

            .message-bubble {
                max-width: 88%;
                padding: 10px 14px;
                font-size: 13px;
            }

            .greeting-response-btn {
                padding: 12px 14px;
                font-size: 13px;
            }

            .chatbot-navigation {
                padding: 10px 16px;
            }
        }

        /* Tablet landscape */
        @media (min-width: 769px) and (max-width: 1024px) {
            .chat-popup {
                width: 400px;
                height: 600px;
            }
        }

        /* Hover states - disable on touch devices */
        @media (hover: none) and (pointer: coarse) {
            .option-button:hover {
                transform: none;
                background: rgba(255, 255, 255, 0.6);
            }

            .option-button:active {
                transform: scale(0.98);
                background: rgba(255, 255, 255, 0.8);
            }

            .greeting-response-btn:hover::before {
                width: 0;
                height: 0;
            }

            .greeting-response-btn:active {
                background: #00424F;
                color: white;
            }

            .send-button:hover {
                transform: none;
            }

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

            .nav-button:hover::before {
                width: 0;
                height: 0;
            }

            .close-button:hover {
                transform: none;
            }
        }

        /* Loading Animation - Enhanced Typing Indicator */
        .typing-indicator {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 16px 20px;
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 18px;
            border-bottom-left-radius: 5px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            max-width: 80px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            animation: typingPulse 2s ease-in-out infinite;
        }

        @keyframes typingPulse {

            0%,
            100% {
                box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
            }

            50% {
                box-shadow: 0 4px 16px rgba(0, 182, 192, 0.12),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
            }
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            background: #00424F;
            border-radius: 50%;
            animation: typing 1.4s infinite ease-in-out;
            box-shadow: 0 0 4px rgba(0, 182, 192, 0.4);
        }

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

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

        @keyframes typing {

            0%,
            60%,
            100% {
                transform: translateY(0) scale(1);
                opacity: 0.4;
                box-shadow: 0 0 4px rgba(0, 182, 192, 0.2);
            }

            30% {
                transform: translateY(-12px) scale(1.2);
                opacity: 1;
                box-shadow: 0 4px 8px rgba(0, 182, 192, 0.6);
            }
        }

        /* Micro Loading Indicator */
        .micro-loader {
            display: inline-block;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(0, 182, 192, 0.2);
            border-top-color: #00B6C0;
            border-radius: 50%;
            animation: microSpin 0.8s linear infinite;
        }

        @keyframes microSpin {
            to {
                transform: rotate(360deg);
            }
        }

        /* Button Loading State */
        .send-button.loading::after,
        .top-action-btn.loading::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: microSpin 0.6s linear infinite;
        }

        .send-button.loading svg,
        .top-action-btn.loading span {
            opacity: 0;
        }

        /* Language Selection Modal */
        .language-modal {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            border-radius: 20px;
            padding: 48px 24px;
            box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.5);
        }

        .language-modal.hidden {
            display: none;
        }

        .language-modal h2 {
            font-size: 22px;
            color: #2D5A5A;
            margin-bottom: 12px;
            text-align: center;
            font-weight: 700;
        }

        .language-modal p {
            font-size: 14px;
            color: #5A7A7A;
            margin-bottom: 32px;
            text-align: center;
        }

        .language-modal .privacy-notice {
            font-size: 11px;
            color: #8A9A9A;
            margin-top: 24px;
            margin-bottom: 0;
            text-align: center;
            line-height: 1.5;
        }

        .language-buttons {
            display: flex;
            gap: 16px;
            width: 100%;
            max-width: 280px;
        }

        .language-btn {
            flex: 1;
            padding: 20px 24px;
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.4);
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 15px;
            font-weight: 600;
            color: #2D5A5A;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            box-shadow: 0 4px 16px rgba(0, 182, 192, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
            position: relative;
            overflow: hidden;
        }

        .language-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 12px;
            background: rgba(0, 182, 192, 0.1);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .language-btn:active::before {
            width: 100%;
            height: 100%;
        }

        .language-btn:hover {
            background: rgba(255, 255, 255, 0.8);
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 8px 24px rgba(0, 182, 192, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
            border-color: rgba(0, 182, 192, 0.2);
        }

        .language-btn:active {
            transform: translateY(-1px) scale(1);
            transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .language-btn.selected {
            background: #00424F;
            color: white;
            border-color: rgba(0, 182, 192, 0.6);
            box-shadow: 0 6px 20px rgba(0, 182, 192, 0.3),
                0 3px 10px rgba(0, 0, 0, 0.1),
                inset 0 -1px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 4px rgba(255, 255, 255, 0.2);
        }

        .language-flag {
            font-size: 32px;
            line-height: 1;
        }

        /* Top Action Buttons */
        .top-action-buttons {
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
            padding: 0;
        }

        .top-action-btn {
            flex: 1;
            padding: 14px 20px;
            background: #00424F;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 15px;
            font-weight: 600;
            color: white;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 16px rgba(0, 182, 192, 0.25),
                0 2px 8px rgba(0, 0, 0, 0.08),
                inset 0 -1px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 4px rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .top-action-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .top-action-btn:active::before {
            width: 100%;
            height: 100%;
        }

        .top-action-btn:hover {
            background: #00424F;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 6px 20px rgba(0, 182, 192, 0.35),
                0 3px 10px rgba(0, 0, 0, 0.1),
                inset 0 -1px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 4px rgba(255, 255, 255, 0.2);
        }

        .top-action-btn:active {
            transform: translateY(0) scale(0.98);
            transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .top-action-icon {
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Greeting Response Buttons - Theme Aligned Pill Style */
        .greeting-response-buttons {
            margin-top: 16px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .greeting-response-btn {
            background: #ffffff;
            border: 1.5px solid #00B6C0;
            border-radius: 20px;
            padding: 10px 18px;
            cursor: pointer;
            transition: all 0.25s ease;
            font-size: 13px;
            font-weight: 500;
            color: #00424F;
            text-align: center;
            line-height: 1.4;
            box-shadow: 0 2px 6px rgba(0, 182, 192, 0.15);
            position: relative;
            overflow: hidden;
            white-space: nowrap;
        }

        .greeting-response-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #00424F;
            opacity: 0;
            transition: opacity 0.25s ease;
            z-index: -1;
            border-radius: 20px;
        }

        .greeting-response-btn:hover::before {
            opacity: 1;
        }

        .greeting-response-btn:hover {
            color: white;
            border-color: #00424F;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 66, 79, 0.3);
        }

        .greeting-response-btn:active {
            transform: translateY(0);
            transition: all 0.1s ease;
        }

        /* Error Action Buttons */
        .error-action-buttons {
            margin-top: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .error-action-btn {
            background: #00424F;
            border: none;
            border-radius: 8px;
            padding: 14px 20px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 15px;
            font-weight: 600;
            color: white;
            text-align: center;
            line-height: 1.5;
            box-shadow: 0 4px 16px rgba(0, 182, 192, 0.25),
                0 2px 8px rgba(0, 0, 0, 0.08),
                inset 0 -1px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 4px rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .error-action-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .error-action-btn:active::before {
            width: 100%;
            height: 100%;
        }

        .error-action-btn:hover {
            background: #00424F;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 6px 20px rgba(0, 182, 192, 0.35),
                0 3px 10px rgba(0, 0, 0, 0.1),
                inset 0 -1px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 4px rgba(255, 255, 255, 0.2);
        }

        .error-action-btn:active {
            transform: translateY(0) scale(0.98);
            transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Navigation Buttons */
        /* V2 Floating Navigation */
        .chatbot-navigation {
            position: absolute;
            bottom: 24px;
            left: 24px;
            right: 24px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: 50px;
            /* Full structural pill */
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px;
            box-shadow: 0 15px 40px rgba(0, 66, 79, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05);
            z-index: 1000;
        }

        /* Padding for content to scroll behind nav - kept minimal */
        .tab-content,
        .chats-content,
        .faq-content {
            padding-bottom: 80px !important;
        }

        .nav-button {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 8px 0;
            background: transparent;
            border: none;
            cursor: pointer;
            border-radius: 40px;
            /* Inner pill */
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            color: #8A9A9A;
            position: relative;
        }

        .nav-button.active {
            color: #00424F;
            background: rgba(0, 182, 192, 0.1);
        }

        .nav-button:hover:not(.active) {
            color: #00424F;
            background: rgba(0, 0, 0, 0.03);
        }

        .nav-icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .nav-button.active .nav-icon {
            transform: translateY(-2px);
        }

        .nav-button.active .nav-icon svg {
            stroke-width: 2.5px;
        }

        .nav-button span {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.3px;
            text-transform: uppercase;
        }

        /* Tab Content - Smooth Transitions */
        .tab-content {
            display: none;
            opacity: 0;
            transform: translateX(20px);
            transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .tab-content.active {
            display: flex;
            flex-direction: column;
            height: 100%;
            opacity: 1;
            transform: translateX(0);
            animation: fadeSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes fadeSlideIn {
            from {
                opacity: 0;
                transform: translateX(30px) scale(0.98);
            }

            to {
                opacity: 1;
                transform: translateX(0) scale(1);
            }
        }

        .tab-content.chats {
            padding: 0;
        }

        .chats-content {
            display: flex;
            flex-direction: column;
            gap: 16px;
            flex: 1;
            margin-top: 8px;
            overflow-y: auto;
            padding: 0 4px;
        }

        /* Session Thread Previews */
        .session-preview {
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-radius: 12px;
            padding: 16px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(0, 182, 192, 0.06),
                0 1px 4px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
            position: relative;
            overflow: hidden;
        }

        .session-preview::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: #00424F;
            transform: scaleY(0);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .session-preview:hover {
            background: rgba(255, 255, 255, 0.8);
            transform: translateX(4px);
            box-shadow: 0 4px 16px rgba(0, 182, 192, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        .session-preview:hover::before {
            transform: scaleY(1);
        }

        .session-preview-header {
            margin-bottom: 8px;
        }

        .session-preview-title {
            font-size: 14px;
            color: #2D5A5A;
            font-weight: 600;
            margin-bottom: 6px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .session-preview-title-label {
            font-size: 11px;
            color: #8A9A9A;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .session-preview-text {
            font-size: 13px;
            color: #5A7A7A;
            line-height: 1.5;
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .session-preview-text-label {
            font-size: 11px;
            color: #8A9A9A;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .session-preview-time {
            font-size: 11px;
            color: #8A9A9A;
            margin-top: 8px;
        }

        .session-preview-time-label {
            font-size: 10px;
            color: #8A9A9A;
            font-weight: 500;
            margin-right: 4px;
        }

        .sessions-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 8px;
        }

        .sessions-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            color: #5A7A7A;
            font-size: 14px;
        }

        .sessions-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 32px 24px;
            color: #8A9A9A;
            font-size: 13px;
            text-align: center;
        }

        /* Scroll to Bottom Button */
        .scroll-to-bottom {
            position: absolute;
            bottom: 80px;
            right: 20px;
            width: 44px;
            height: 44px;
            background: #00424F;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 20px rgba(0, 182, 192, 0.4),
                0 3px 10px rgba(0, 0, 0, 0.12),
                inset 0 -1px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 4px rgba(255, 255, 255, 0.3);
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            z-index: 10;
            opacity: 0;
            transform: scale(0) translateY(20px);
            animation: none;
        }

        /* Scroll to Top Button */
        .scroll-to-top {
            position: absolute;
            bottom: 140px;
            right: 20px;
            width: 44px;
            height: 44px;
            background: #00424F;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 20px rgba(0, 182, 192, 0.4),
                0 3px 10px rgba(0, 0, 0, 0.12),
                inset 0 -1px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 4px rgba(255, 255, 255, 0.3);
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            z-index: 10;
            opacity: 0;
            transform: scale(0) translateY(20px);
            animation: none;
        }

        .scroll-to-bottom.visible {
            display: flex;
            opacity: 1;
            transform: scale(1) translateY(0);
            animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .scroll-to-top.visible {
            display: flex;
            opacity: 1;
            transform: scale(1) translateY(0);
            animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes bounceIn {
            0% {
                opacity: 0;
                transform: scale(0.3) translateY(30px);
            }

            50% {
                transform: scale(1.05) translateY(-5px);
            }

            100% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .scroll-to-bottom:hover {
            transform: scale(1.15) translateY(-4px);
            box-shadow: 0 10px 28px rgba(0, 182, 192, 0.5),
                0 5px 14px rgba(0, 0, 0, 0.15),
                inset 0 -1px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 4px rgba(255, 255, 255, 0.3);
        }

        .scroll-to-bottom:active {
            transform: scale(0.95) translateY(0);
            transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .scroll-to-bottom svg {
            color: white;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .scroll-to-bottom:hover svg {
            transform: translateY(3px);
        }

        /* Badge for unread messages count (optional) */
        .scroll-to-bottom .badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: var(--color-error);
            color: white;
            font-size: 10px;
            font-weight: 700;
            padding: 3px 6px;
            border-radius: 10px;
            min-width: 18px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
        }

        /* ==========================================
           ACCESSIBILITY ENHANCEMENTS
           ========================================== */

        /* Focus Visible Styles */
        .chat-button:focus-visible,
        .option-button:focus-visible,
        .nav-button:focus-visible,
        .send-button:focus-visible,
        .close-button:focus-visible,
        .back-button:focus-visible,
        .top-action-btn:focus-visible,
        .greeting-response-btn:focus-visible,
        .language-btn:focus-visible,
        .faq-question:focus-visible,
        .accept-btn:focus-visible,
        .decline-btn:focus-visible {
            outline: 3px solid var(--color-primary);
            outline-offset: 2px;
        }

        /* Skip to content link (hidden until focused) */
        .skip-link {
            position: absolute;
            top: -100px;
            left: 0;
            background: var(--color-primary-gradient);
            color: white;
            padding: 12px 24px;
            z-index: 10000;
            border-radius: 0 0 var(--radius-sm) var(--radius-sm);
            transition: top var(--transition-fast);
        }

        .skip-link:focus {
            top: 0;
        }

        /* Screen reader only text */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* ==========================================
           SKELETON LOADING STATES
           ========================================== */

        .skeleton {
            background: linear-gradient(90deg,
                    var(--color-border) 25%,
                    var(--color-surface-hover) 50%,
                    var(--color-border) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: var(--radius-md);
        }

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

            100% {
                background-position: -200% 0;
            }
        }

        .skeleton-message {
            height: 60px;
            margin-bottom: 16px;
            border-radius: 18px;
        }

        .skeleton-message.user {
            margin-left: auto;
            width: 70%;
        }

        .skeleton-message.assistant {
            width: 80%;
        }

        .skeleton-session {
            height: 80px;
            margin-bottom: 12px;
        }

        .skeleton-text {
            height: 16px;
            margin-bottom: 8px;
        }

        .skeleton-text.short {
            width: 40%;
        }

        .skeleton-text.medium {
            width: 70%;
        }

        .skeleton-text.full {
            width: 100%;
        }

        /* ==========================================
           MICRO-INTERACTIONS & ANIMATIONS
           ========================================== */

        /* Message send animation */
        @keyframes messageFlyUp {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.9);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .message.sending {
            animation: messageFlyUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        /* Ripple effect for buttons */
        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
            transform: scale(0);
            animation: rippleEffect 0.6s linear;
            pointer-events: none;
        }

        @keyframes rippleEffect {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        /* Tab content transitions */
        .tab-content {
            opacity: 0;
            transform: translateX(20px);
        }

        .tab-content.active {
            opacity: 1;
            transform: translateX(0);
            animation: tabSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes tabSlideIn {
            from {
                opacity: 0;
                transform: translateX(30px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Pull to refresh indicator */
        .pull-indicator {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%) translateY(-100%);
            padding: 12px;
            background: var(--color-surface);
            border-radius: var(--radius-full);
            box-shadow: var(--shadow-md);
            transition: transform 0.2s ease;
            z-index: 10;
        }

        .pull-indicator.visible {
            transform: translateX(-50%) translateY(10px);
        }

        .pull-indicator.refreshing .pull-spinner {
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* Share button for messages */
        .share-button {
            position: absolute;
            right: -40px;
            top: 50%;
            transform: translateY(-50%);
            width: 32px;
            height: 32px;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-full);
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transition: opacity var(--transition-fast), transform var(--transition-fast);
        }

        .message:hover .share-button {
            display: flex;
            opacity: 1;
        }

        .share-button:hover {
            transform: translateY(-50%) scale(1.1);
            background: var(--color-surface-hover);
        }

        /* Toast notification */
        .toast {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--color-primary-dark);
            color: white;
            padding: 12px 24px;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-lg);
            z-index: var(--z-toast);
            opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .toast.visible {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* Error retry button */
        .retry-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: transparent;
            border: 2px solid var(--color-error);
            color: var(--color-error);
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all var(--transition-normal);
        }

        .retry-button:hover {
            background: var(--color-error);
            color: white;
        }

        /* Swipe hint */
        .swipe-hint {
            position: absolute;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: var(--radius-md);
            font-size: 12px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        /* Removed conflicting mobile top: auto override */

        .swipe-hint.visible {
            opacity: 1;
        }

        /* Mobile keyboard support - DISABLED per user request
           The UI should not move up when keyboard opens */
        /*
        :root {
            --keyboard-height: 0px;
        }

        .keyboard-open .chat-popup {
            height: calc(100dvh - var(--keyboard-height)) !important;
        }

        .keyboard-open .chat-input-container {
            position: fixed !important;
            bottom: calc(var(--keyboard-height) + env(safe-area-inset-bottom, 0px)) !important;
            left: 0 !important;
            right: 0 !important;
        }
        */

        /* Desktop styles - applied only above mobile breakpoint */
        @media (min-width: 481px) {
            .chat-popup {
                position: absolute !important;
                top: auto !important;
                bottom: 80px !important;
                left: auto !important;
                right: 0 !important;
                width: 90vw !important;
                max-width: 400px !important;
                max-height: 696px !important;
                border-radius: 24px !important;
            }
        }

        /* ========================================= */
        /* V2 MODERN DESIGN UPDATES (ALL PAGES)      */
        /* ========================================= */

        /* 1. Session List Items (Match Action Card) */
        .session-preview {
            background: rgba(255, 255, 255, 0.8) !important;
            backdrop-filter: blur(10px) !important;
            border: 1px solid rgba(0, 182, 192, 0.15) !important;
            border-radius: 16px !important;
            padding: 16px 20px !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 8px !important;
            transition: all 0.2s ease !important;
            box-shadow: none !important;
            cursor: pointer;
        }

        .session-preview:hover {
            background: rgba(0, 182, 192, 0.05) !important;
            border-color: rgba(0, 182, 192, 0.3) !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 182, 192, 0.1) !important;
        }

        .session-preview-title {
            font-size: 15px !important;
            font-weight: 600 !important;
            color: #00424F !important;
        }

        .session-preview-text {
            color: #7A9A9A !important;
            font-size: 13px !important;
        }

        /* 2. FAQ Items (Match Action Card) */
        .faq-item {
            background: rgba(255, 255, 255, 0.8) !important;
            backdrop-filter: blur(10px) !important;
            border: 1px solid rgba(0, 182, 192, 0.15) !important;
            border-radius: 16px !important;
            box-shadow: none !important;
        }

        .faq-item:hover {
            background: rgba(0, 182, 192, 0.05) !important;
            border-color: rgba(0, 182, 192, 0.3) !important;
            transform: translateY(-2px) !important;
        }

        .faq-question {
            font-weight: 600 !important;
            color: #00424F !important;
            font-size: 15px !important;
        }

        .faq-toggle {
            color: #B6C81C !important;
            /* Lime accent */
        }

        /* 3. Chat Input (Floating Pill) */
        /* 3. Chat Input (Fully Transparent - No Block) */
        .chat-input-container {
            background: transparent !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            padding: 12px 16px !important;
            border-radius: 0 !important;
            border: none !important;
            box-shadow: none !important;
            margin: 0 !important;
            position: absolute !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            width: 100% !important;
            z-index: 1100 !important;
            /* Higher than nav (1000) */
            box-sizing: border-box !important;
            pointer-events: auto !important;
            /* Allow clicks on input */
        }

        .chat-input-wrapper {
            pointer-events: auto !important;
            background: #ffffff !important;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
            border-radius: 50px !important;
            border: 1px solid rgba(0, 182, 192, 0.2) !important;
        }

        #chatbot-chat-input,
        #chats-chat-input {
            border: none !important;
            background: transparent !important;
            box-shadow: none !important;
            border-radius: 50px !important;
        }

        /* 4. Chat Messages - Removed flex overrides to match working version */

        .message-bubble {
            border-radius: 20px !important;
            padding: 14px 18px !important;
            box-shadow: none !important;
            font-size: 14px !important;
            line-height: 1.5 !important;
        }

        .message.bot .message-bubble {
            background: #f9fafb !important;
            border: 1px solid #f3f4f6 !important;
            color: #1f2937 !important;
            border-top-left-radius: 4px !important;
            backdrop-filter: none !important;
        }

        .message.user .message-bubble {
            background: #00424F !important;
            /* Dark Teal */
            color: white !important;
            border-top-right-radius: 4px !important;
            box-shadow: none !important;
        }


        /* 6. Action Cards (Clean V3) */
        .action-card {
            background: #ffffff !important;
            border: 1px solid #f3f4f6 !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
            border-radius: 16px !important;
            padding: 16px 20px !important;
            backdrop-filter: none !important;
        }

        .action-card:hover {
            border-color: #e5e7eb !important;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08) !important;
            transform: translateY(-2px);
        }

        .action-card-icon {
            background: #F3F4F6 !important;
            border-radius: 50% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .action-card-icon svg path {
            stroke: #00424F !important;
        }

        .action-card-title {
            color: #111827 !important;
            font-weight: 600 !important;
        }

        .action-card-desc {
            color: #6B7280 !important;
        }

        .action-card-arrow {
            color: #B6C81C !important;
            font-weight: bold;
        }

        /* 5. Language Modal */
        .language-modal {
            background: rgba(255, 255, 255, 0.95) !important;
            backdrop-filter: blur(15px) !important;
            border-radius: 24px !important;
        }

        .language-btn {
            background: rgba(255, 255, 255, 0.8) !important;
            border: 1px solid rgba(0, 182, 192, 0.15) !important;
            border-radius: 50px !important;
            /* Pill shape */
            color: #00424F !important;
            padding: 14px 24px !important;
            font-weight: 600 !important;
            transition: all 0.2s ease !important;
        }

        .language-btn:hover {
            background: #00424F !important;
            color: white !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 66, 79, 0.2) !important;
        }

        /* New Chat Button */
        #chatbot-new-chat {
            background: #00424F !important;
            /* Dark Teal Primary */
            color: white !important;
            border: none !important;
            box-shadow: 0 4px 12px rgba(0, 66, 79, 0.3) !important;
            justify-content: center !important;
        }

        #chatbot-new-chat:hover {
            transform: translateY(-2px);
            background: #00616F !important;
        }

        /* Home Preset Options */
        .home-preset-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 16px;
            width: 100%;
        }

        .home-preset-btn {
            background: white;
            border: 1px solid #E5E7EB;
            border-radius: 12px;
            padding: 12px 16px;
            color: #1F2937;
            font-size: 14px;
            font-weight: 500;
            text-align: left;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .home-preset-btn:hover {
            background: #F9FAFB;
            border-color: #D1D5DB;
            transform: translateY(-1px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        .home-preset-btn:active {
            transform: translateY(0);
            background: #F3F4F6;
        }

        .home-preset-arrow {
            color: #9CA3AF;
            font-size: 16px;
            transition: transform 0.2s ease;
        }

        .home-preset-btn:hover .home-preset-arrow {
            color: #6B7280;
            transform: translateX(4px);
        }

        /* Language Launcher (Floating Buttons) */
        .language-launcher {
            position: absolute;
            bottom: 80px;
            right: 0;
            display: flex;
            flex-direction: row;
            /* Side by side */
            gap: 16px;
            align-items: flex-end;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 990;
            /* Below widget but above page content */
            pointer-events: none;
            /* Allow clicks to pass through container */
            opacity: 0;
            transform: translateY(10px) scale(0.9);
            visibility: hidden;
            padding-right: 10px;
            /* Slight padding from right edge */
        }

        /* Only show when widget is NOT active (controlled via JS class or simply always show and hide when .active is present on widget) */
        /* Actually, better to control visibility via a class on the container triggered by JS */
        .language-launcher.visible {
            opacity: 1;
            transform: translateY(0) scale(1);
            visibility: visible;
            pointer-events: auto;
        }

        .launcher-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: white;
            border: none;
            box-shadow: 0 4px 12px rgba(0, 66, 79, 0.15);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 20px;
            position: relative;
            z-index: 992;
        }

        .launcher-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(0, 66, 79, 0.2);
        }

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

        .launcher-flag {
            display: block;
            line-height: 1;
        }

        /* Add a small tooltip or label on hover if needed */
        .launcher-btn::before {
            content: attr(title);
            position: absolute;
            bottom: -25px;
            /* Below the button */
            left: 50%;
            transform: translateX(-50%);
            background: #00424F;
            color: white;
            font-size: 11px;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 6px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            white-space: nowrap;
            pointer-events: none;
        }

        .launcher-btn:hover::before {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        /* Launcher Group & Options (Flyout) */
        .launcher-group {
            position: relative;
            display: flex;
            flex-direction: column;
            /* Stack vertically: Options above Button */
            align-items: center;
            justify-content: flex-end;
        }

        .launcher-options {
            position: absolute;
            bottom: 55px;
            /* Above the button */
            left: 50%;
            transform: translateX(-50%) scale(0.95);
            background: white;
            border-radius: 12px;
            padding: 6px;
            /* Padding for the container */
            box-shadow: 0 4px 20px rgba(0, 66, 79, 0.15);
            border: 1px solid rgba(0, 66, 79, 0.08);
            /* Subtle border */
            min-width: 220px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            /* Gap between buttons */

            /* Animation Properties */
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            z-index: 900;
        }

        /* Show options on hover over the group (button or options area) */
        .launcher-group:hover .launcher-options,
        .launcher-options:hover {
            /* Ensure it stays open when hovering options */
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) scale(1);
            pointer-events: auto;
        }

        .launcher-option-btn {
            text-align: left;
            background: transparent;
            border: none;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            color: #00424F;
            font-weight: 500;
            transition: all 0.15s ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
            line-height: 1.3;
            white-space: normal;
            /* Allow text wrapping */
        }

        .launcher-option-btn:hover {
            background: #F0F4F5;
            /* Light teal background on hover */
            color: #002A33;
            transform: translateX(-2px);
            /* Slight nudge left */
        }

        .launcher-option-arrow {
            color: #B6C81C;
            /* Brand accent color */
            font-size: 14px;
            opacity: 0;
            transform: translateX(-4px);
            transition: all 0.2s ease;
            margin-left: 8px;
            /* Spacing between text and arrow */
            flex-shrink: 0;
        }

        .launcher-option-btn:hover .launcher-option-arrow {
            opacity: 1;
            transform: translateX(0);
        }

        /* Currency Input Mode */
        .chat-input-container.currency-mode {
            position: relative;
        }

        .chat-input-container.currency-mode::before {
            content: '€';
            position: absolute;
            left: 56px;
            /* Adjust based on attachment button width */
            top: 50%;
            transform: translateY(-50%);
            font-size: 16px;
            font-weight: 600;
            color: var(--color-text-primary);
            z-index: 10;
        }

        .chat-input-container.currency-mode input {
            padding-left: 32px !important;
            /* Space for the currency symbol */
            font-weight: 600;
            color: var(--color-primary);
        }

        /* Dark mode support for currency */
        @media (prefers-color-scheme: dark) {
            .chat-input-container.currency-mode::before {
                color: var(--color-text-primary);
            }

            .chat-input-container.currency-mode input {
                color: white;
            }
        }

        .dark-mode .chat-input-container.currency-mode::before {
            color: var(--color-text-primary);
        }

        .dark-mode .chat-input-container.currency-mode input {
            color: white;
        }

        /* Single Digit Input Mode */
        .chat-input-container.digit-mode input {
            text-align: center;
            font-size: 24px;
            font-weight: 700;
            letter-spacing: 0;
            color: var(--color-primary);
            max-width: 60px;
            margin: 0 auto;
        }

        .chat-input-container.digit-mode input::placeholder {
            color: rgba(0, 66, 79, 0.3);
            font-weight: 400;
        }

        .dark-mode .chat-input-container.digit-mode input {
            color: white;
        }