/* Chatbot widget styles, snapshot of the inline block every shell page carries (about.html). Linked by the news pages. */
.chatbot-widget {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            pointer-events: none; /* Prevent interference during load */
        }

        .chatbot-widget .chatbot-toggle {
            pointer-events: auto; /* Allow toggle to be clickable */
        }

        .chatbot-widget.active {
            pointer-events: auto; /* Allow interaction when active */
        }

        .chatbot-toggle {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #7AC943, #3ADBB4);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 6px 22px rgba(122, 201, 67, 0.35);
            transition: all 0.3s ease;
            color: white;
        }

        .chatbot-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 28px rgba(122, 201, 67, 0.45);
        }

        .chatbot-window {
            position: absolute;
            bottom: 80px;
            right: 0;
            width: 370px;
            height: 520px;
            background: rgba(11, 14, 18, 0.92);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.10);
            border-radius: 18px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
            display: none;
            flex-direction: column;
            overflow: hidden;
        }

        .chatbot-widget.active .chatbot-window {
            display: flex;
        }

        .chatbot-header {
            display: flex;
            align-items: center;
            padding: 1rem 1.1rem;
            background: rgba(255,255,255,0.03);
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }

        .chatbot-avatar {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #7AC943, #3ADBB4);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 0.75rem;
            color: white;
        }

        .chatbot-info {
            flex: 1;
        }

        .chatbot-name {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 0.9rem;
        }

        .chatbot-status {
            font-size: 0.75rem;
            color: #7AC943;
        }

        .chatbot-close {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0.25rem;
            border-radius: 4px;
            transition: all 0.2s ease;
        }

        .chatbot-close:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .chatbot-messages {
            flex: 1;
            padding: 1rem;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .message {
            display: flex;
            gap: 0.5rem;
            max-width: 80%;
        }

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

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

        .message-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .bot-message .message-avatar {
            background: linear-gradient(135deg, #7AC943, #3ADBB4);
            color: white;
        }

        .user-message .message-avatar {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .message-content {
            background: rgba(255,255,255,0.06);
            padding: 0.6rem 0.85rem;
            border-radius: 14px;
            font-size: 0.86rem;
            line-height: 1.4;
            color: var(--text-primary);
        }

        .user-message .message-content {
            background: var(--accent-primary);
            color: white;
        }

        .chatbot-input {
            display: flex;
            padding: 1rem;
            gap: 0.5rem;
            border-top: 1px solid var(--border-subtle);
        }

        #chatbot-input-field {
            flex: 1;
            padding: 0.5rem 0.75rem;
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 22px;
            background: rgba(255,255,255,0.05);
            color: var(--text-primary);
            font-size: 0.85rem;
            outline: none;
            transition: border-color 0.2s ease;
        }

        #chatbot-input-field:focus {
            border-color: #7AC943;
        }

        .chatbot-send {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #7AC943, #3ADBB4);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .chatbot-send:hover {
            transform: scale(1.1);
        }

        @media (max-width: 480px) {
            .chatbot-window {
                width: calc(100vw - 40px);
                height: 400px;
                right: -10px;
            }
        }
    
@media (max-width: 820px) {
    footer .footer-content,
    .footer .footer-content,
    .footer-content {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.5rem 1.25rem !important;
        justify-content: stretch !important;
        padding: 0 !important;
        margin-bottom: 1.5rem !important;
    }
    footer .footer-section,
    .footer .footer-section {
        min-width: 0 !important;
    }
    footer .footer-links a,
    .footer .footer-links a,
    footer .footer-link,
    .footer .footer-link {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
    footer .footer-bottom,
    .footer .footer-bottom {
        text-align: center !important;
        padding: 1rem 0.5rem !important;
    }
    footer .footer-bottom p,
    .footer .footer-bottom p {
        overflow-wrap: anywhere !important;
    }
}
