/* Original RodneyBot styles, isolated variables; the widget stays on home only. */
#chatbot-window,#chatbot-toggle {
    /* Colors */
    --bg-primary: #181A20;
    --bg-secondary: #21242D;
    --bg-tertiary: #121418;
    --bg-glass: rgba(24, 26, 32, 0.82);

    --text-primary: #F8FAFC;
    --text-secondary: #E2E8F0;
    --text-muted: #94A3B8;

    --color-primary: #D12B5E;
    --color-primary-dark: #A81643;
    --color-primary-light: rgba(209, 43, 94, 0.12);
    --color-primary-text: #E85C87;

    --color-accent: #C5A880;
    --color-accent-dark: #A3835B;
    --color-accent-light: rgba(197, 168, 128, 0.12);

    --color-teal: #43B0B7;
    --color-teal-light: rgba(67, 176, 183, 0.12);

    --border-color: #2D313D;
    --border-warm: #373D4C;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 20px -2px rgba(209, 43, 94, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.3), 0 8px 16px -4px rgba(209, 43, 94, 0.06);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;

    /* Spacing */
    --section-padding: 7rem 2rem;
}
.chatbot-wrapper {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    z-index: 2000;
    width: min(450px, calc(100vw - 4rem));
    height: min(610px, calc(100vh - 8rem));
    height: min(610px, calc(100dvh - 8rem));
    background-color: var(--bg-secondary);
    border-radius: 18px;
    border: 1px solid var(--border-warm);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s;
}

#chatbot-window.active,
.chatbot-wrapper.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

.chatbot-btn,
#chatbot-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2001;
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(209, 43, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.chatbot-btn:hover,
#chatbot-toggle:hover {
    transform: scale(1.05);
    background-color: var(--color-primary-dark);
    box-shadow: 0 6px 25px rgba(209, 43, 94, 0.4);
}

.chatbot-btn:focus-visible,
#chatbot-toggle:focus-visible {
    outline-color: #FFFFFF;
}

.chatbot-btn svg,
#chatbot-toggle svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.chatbot-header {
    background-color: var(--color-primary);
    color: #FFFFFF;
    padding: 0.85rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.5rem;
}

.chatbot-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-accent);
}

.chatbot-profile h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.status-indicator {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.status-indicator::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #22C55E;
    border-radius: 50%;
}

.chatbot-close-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chatbot-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.chatbot-header :focus-visible {
    outline-color: #FFFFFF;
}

#chatbot-messages,
.chatbot-body {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    padding: 1.1rem;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-warm) transparent;
}

.chat-message {
    flex: 0 0 auto;
    max-width: 90%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    animation: fadeInSimple 0.3s ease forwards;
}

.chat-message.bot {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-warm);
    border-bottom-left-radius: 2px;
    align-self: flex-start;
}

.chat-message.bot a {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 600;
}

.chat-message.bot a:hover {
    color: var(--text-primary);
}

.chat-message.user {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
    max-width: 85%;
}

.chat-typing-indicator {
    align-self: flex-start;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-warm);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    display: none;
    align-items: center;
    gap: 4px;
}

.chat-typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: pulse-soft 1s infinite alternate;
}

.chat-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.chat-quick-replies,
.chatbot-quick-replies,
#chatbot-quick-replies {
    flex: 0 0 auto;
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    width: 100%;
    padding: 0.35rem 0 0.6rem;
    background-color: transparent;
}

.quick-reply-btn {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-warm);
    padding: 0.55rem 0.7rem;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-secondary);
}

.quick-reply-btn:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--text-primary);
}

.chatbot-footer {
    display: flex;
    flex: 0 0 auto;
    min-height: 68px;
    padding: 0.7rem 1rem;
    border-top: 1px solid var(--border-warm);
    background-color: var(--bg-secondary);
    align-items: center;
    gap: 0.75rem;
}

.chatbot-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
}

.chatbot-input:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.chatbot-input::placeholder {
    color: var(--text-muted);
}

.chatbot-send-btn {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chatbot-send-btn:hover {
    color: var(--color-primary-text);
    transform: translateX(2px);
}

.chatbot-send-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


.visually-hidden,.contact-honeypot{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#chatbot-window{font-family:var(--sans);font-size:15px;line-height:1.6}
@media(max-width:768px){.chatbot-wrapper{width:min(450px,calc(100vw - 2rem));height:min(610px,calc(100dvh - 7rem));right:1rem;bottom:5.5rem;border-radius:16px}.chatbot-btn,#chatbot-toggle{right:1rem;bottom:1rem}}
@media(max-width:600px){.chatbot-wrapper{width:calc(100vw - 1rem);height:calc(100dvh - 6.25rem - env(safe-area-inset-bottom,0px));right:.5rem;bottom:calc(5.25rem + env(safe-area-inset-bottom,0px))}.chatbot-btn,#chatbot-toggle{bottom:calc(1rem + env(safe-area-inset-bottom,0px))}#chatbot-messages,.chatbot-body{padding:.9rem}.chatbot-footer{padding:.55rem .85rem}}
@media(max-width:350px){.chat-quick-replies,.chatbot-quick-replies,#chatbot-quick-replies{grid-template-columns:1fr}}
@keyframes fadeInSimple{from{opacity:0}to{opacity:1}}
@keyframes typingBounce{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-4px);opacity:1}}
.runtime-status{font-size:13px;line-height:1.6;color:var(--muted);margin-top:12px}
.runtime-status[role=alert]{color:#ffabbb}
.local-mode-banner{padding:10px 22px;background:#30291e;color:#f7d7a6;text-align:center;font:500 12px/1.5 var(--sans)}
