        /* ATC Bot Widget Styles */
        #atc-bot-widget {
            position: fixed;
            bottom: 28px;
            right: 28px;
            z-index: 9998;
            font-family: 'Inter', sans-serif;
        }

        /* ─── Toggle Button ─────────────────────────────────── */
        .atc-bot-toggle {
            width: 58px;
            height: 58px;
            border-radius: 50%;
            background: linear-gradient(145deg, #6366f1 0%, #8b5cf6 60%, #a855f7 100%);
            box-shadow:
                0 8px 24px -4px rgba(99, 102, 241, 0.55),
                0 2px 8px rgba(0,0,0,0.10),
                inset 0 1px 0 rgba(255,255,255,0.18);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.45rem;
            cursor: pointer;
            transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.4);
            border: none;
            outline: none;
        }
        .atc-bot-toggle:hover {
            transform: scale(1.12) rotate(8deg);
            box-shadow:
                0 14px 32px -4px rgba(99, 102, 241, 0.65),
                0 4px 12px rgba(0,0,0,0.12);
        }
        .atc-bot-toggle.active {
            transform: scale(0.92) rotate(0deg);
            background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
            color: #6366f1;
            box-shadow: 0 4px 14px rgba(0,0,0,0.1);
        }

        /* ─── Chat Window ────────────────────────────────────── */
        .atc-bot-chat {
            position: absolute;
            bottom: 74px;
            right: 0;
            width: 360px;
            height: 520px;
            background: rgba(255, 255, 255, 0.72);
            backdrop-filter: blur(28px) saturate(180%);
            -webkit-backdrop-filter: blur(28px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.55);
            border-radius: 24px;
            box-shadow:
                0 32px 64px rgba(0, 0, 0, 0.13),
                0 8px 24px rgba(99, 102, 241, 0.08),
                inset 0 1px 0 rgba(255,255,255,0.8);
            display: none;
            flex-direction: column;
            overflow: hidden;
            transform-origin: bottom right;
            animation: atcBotFadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        @keyframes atcBotFadeIn {
            from {
                opacity: 0;
                transform: scale(0.75) translateY(30px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        /* ─── Header ─────────────────────────────────────────── */
        .atc-bot-header {
            padding: 18px 20px;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
            color: white;
            display: flex;
            align-items: center;
            gap: 13px;
            position: relative;
            overflow: hidden;
        }
        .atc-bot-header::before {
            content: '';
            position: absolute;
            top: -40px;
            right: -30px;
            width: 130px;
            height: 130px;
            background: rgba(255,255,255,0.07);
            border-radius: 50%;
        }
        .atc-bot-header::after {
            content: '';
            position: absolute;
            bottom: -50px;
            left: -20px;
            width: 100px;
            height: 100px;
            background: rgba(255,255,255,0.05);
            border-radius: 50%;
        }
        .atc-bot-avatar {
            width: 42px;
            height: 42px;
            background: rgba(255, 255, 255, 0.18);
            border: 1.5px solid rgba(255,255,255,0.3);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            position: relative;
            flex-shrink: 0;
            backdrop-filter: blur(8px);
        }
        .atc-bot-avatar::after {
            content: '';
            position: absolute;
            bottom: -3px;
            right: -3px;
            width: 11px;
            height: 11px;
            background: #4ade80;
            border: 2px solid white;
            border-radius: 50%;
            box-shadow: 0 0 0 2px rgba(74,222,128,0.3);
        }
        .atc-bot-info {
            flex: 1;
            min-width: 0;
        }
        .atc-bot-info h4 {
            margin: 0 0 2px 0;
            font-size: 0.97rem;
            font-weight: 700;
            letter-spacing: 0.01em;
        }
        .atc-bot-info span {
            font-size: 0.75rem;
            opacity: 0.82;
            font-weight: 400;
        }
        .atc-bot-minimize {
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 8px;
            color: white;
            cursor: pointer;
            padding: 5px 8px;
            opacity: 0.85;
            transition: all 0.2s;
            position: relative;
            z-index: 1;
        }
        .atc-bot-minimize:hover {
            opacity: 1;
            background: rgba(255,255,255,0.2);
        }

        /* ─── Messages Area ──────────────────────────────────── */
        .atc-bot-messages {
            flex: 1;
            padding: 18px 16px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
            scroll-behavior: smooth;
            background: linear-gradient(to bottom, rgba(248,250,252,0.5) 0%, rgba(255,255,255,0.3) 100%);
        }
        .atc-bot-messages::-webkit-scrollbar {
            width: 4px;
        }
        .atc-bot-messages::-webkit-scrollbar-track {
            background: transparent;
        }
        .atc-bot-messages::-webkit-scrollbar-thumb {
            background: rgba(99, 102, 241, 0.18);
            border-radius: 10px;
        }

        /* ─── Message Bubbles ────────────────────────────────── */
        .atc-msg {
            max-width: 82%;
            padding: 11px 15px;
            border-radius: 18px;
            font-size: 0.875rem;
            line-height: 1.55;
            position: relative;
            animation: atcMsgSlide 0.28s ease-out;
        }
        @keyframes atcMsgSlide {
            from { opacity: 0; transform: translateY(8px) scale(0.97); }
            to   { opacity: 1; transform: translateY(0)  scale(1); }
        }
        .atc-msg.bot {
            align-self: flex-start;
            background: rgba(255, 255, 255, 0.88);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(226,232,240,0.7);
            color: #1e293b;
            border-bottom-left-radius: 4px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        }
        .atc-msg.user {
            align-self: flex-end;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            color: white;
            border-bottom-right-radius: 4px;
            box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
        }

        /* ─── Inline content inside messages ────────────────── */
        .atc-msg h3, .atc-msg h4 {
            margin: 6px 0 3px 0;
            font-size: 0.95rem;
            color: inherit;
        }
        .atc-msg p { margin: 3px 0; }
        .atc-msg ul, .atc-msg ol {
            margin: 4px 0;
            padding-left: 18px;
        }
        .atc-msg code {
            background: rgba(99,102,241,0.08);
            padding: 2px 5px;
            border-radius: 5px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.82em;
            color: #6366f1;
        }
        .user .atc-msg code,
        .atc-msg.user code {
            background: rgba(255,255,255,0.2);
            color: white;
        }
        .atc-msg table {
            width: 100%;
            border-collapse: collapse;
            margin: 8px 0;
            font-size: 0.8rem;
            background: white;
            border-radius: 8px;
            overflow: hidden;
        }
        .atc-msg th, .atc-msg td {
            border: 1px solid rgba(0,0,0,0.05);
            padding: 6px 10px;
            text-align: left;
        }
        .atc-msg th {
            background: rgba(99,102,241,0.12);
            color: #4f46e5;
            font-weight: 700;
        }

        /* ─── Typing Indicator ───────────────────────────────── */
        .atc-bot-typing {
            font-size: 0.78rem;
            color: #94a3b8;
            padding: 0 18px 8px;
            display: none;
            align-items: center;
            gap: 6px;
        }
        .atc-bot-typing i {
            color: #a5b4fc;
        }

        /* ─── Input Area ─────────────────────────────────────── */
        .atc-bot-input-area {
            padding: 13px 14px;
            background: rgba(255, 255, 255, 0.65);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-top: 1px solid rgba(226,232,240,0.5);
            display: flex;
            gap: 9px;
            align-items: center;
        }
        .atc-bot-input {
            flex: 1;
            border: 1.5px solid #e2e8f0;
            border-radius: 14px;
            padding: 10px 14px;
            font-size: 0.875rem;
            outline: none;
            transition: all 0.22s ease;
            background: rgba(255,255,255,0.9);
            color: #1e293b;
            font-family: 'Inter', sans-serif;
        }
        .atc-bot-input::placeholder { color: #94a3b8; }
        .atc-bot-input:focus {
            border-color: #818cf8;
            background: white;
            box-shadow: 0 0 0 3.5px rgba(99,102,241,0.12);
        }
        .atc-bot-send {
            width: 42px;
            height: 42px;
            border-radius: 13px;
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.22s ease;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(99,102,241,0.35);
        }
        .atc-bot-send:hover {
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            transform: scale(1.06) translateY(-1px);
            box-shadow: 0 6px 16px rgba(99,102,241,0.45);
        }
        .atc-bot-send:active {
            transform: scale(0.96) translateY(0);
        }

        /* ─── Mobile ─────────────────────────────────────────── */
        @media (max-width: 480px) {
            #atc-bot-widget {
                bottom: 16px;
                right: 16px;
            }
            .atc-bot-chat {
                width: calc(100vw - 32px);
                height: 470px;
                right: -4px;
                border-radius: 20px;
            }
        }