/**
 * Neon widget theme — dark glass panel with an animated AI orb (welcome)
 * and a compact operator card in the header (handoff active).
 *
 * STRICT RULES enforced throughout this file:
 *   1. NEVER set `display` on .chatbot-badge, .chatbot-window, or .chatbot-header.
 *      Those are state-controlled by base chatbot.css ([data-state="open"|"closed"])
 *      and overriding `display` here at equal specificity wins on load order —
 *      that's the bug that kept the badge stacked on top of an open panel.
 *   2. NEVER use `flex-wrap` on the header — it causes action buttons to
 *      wrap to a second row on narrow widths, pushing the close button
 *      out of view.
 *   3. NEVER use `margin-auto` to fight `justify-content: space-between`
 *      from the base — they interact unpredictably with 4+ flex items.
 *   4. Hidden state is controlled by ONE mechanism per element:
 *      - .chatbot-operator-card → [hidden] attribute (JS toggles)
 *      - .chatbot-hero          → [data-visible="1"] attribute (JS toggles)
 *      Never mix.
 *
 * All selectors scoped to .raplsaich-chatbot.theme-neon so the other themes
 * are completely untouched.
 */

.raplsaich-chatbot.theme-neon {
    --raplsaich-neon-ink: #f4f3f7;
    --raplsaich-neon-text-dim: #b9b3ce;
    --raplsaich-neon-text-mute: #807c8e;
    --raplsaich-neon-violet: #8b5cf6;
    --raplsaich-neon-magenta: #e879f9;
    --raplsaich-neon-cyan: #22d3ee;
    --raplsaich-neon-green: #34d399;
    --raplsaich-neon-panel: #0a0a0f;
}

/* ===================================================================
   BADGE (closed state) — visuals only, never `display` or `position`
   =================================================================== */
/* Base CSS hides these globally with !important (chatbot.css). The neon
   re-shows them only inside .theme-neon, with !important to beat the base. */
.raplsaich-chatbot.theme-neon .chatbot-badge {
    background: linear-gradient(140deg, #1a1530 0%, #0a0a0f 100%);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 20px 50px -10px rgba(20,8,60,0.5),
        0 6px 18px -6px rgba(139,92,246,0.5),
        inset 0 1px 0 rgba(255,255,255,0.08);
    width: 64px;
    height: 64px;
    /* NO display. NO position. They come from base — see RULE 1 above. */
}
.raplsaich-chatbot.theme-neon .badge-icon,
.raplsaich-chatbot.theme-neon .badge-icon-image,
.raplsaich-chatbot.theme-neon .badge-icon-emoji {
    display: none;
}
.raplsaich-chatbot.theme-neon .chatbot-badge-neon-icon {
    display: block !important;
    width: 28px;
    height: 28px;
}
.raplsaich-chatbot.theme-neon .chatbot-badge-ping {
    display: block !important;
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e879f9, #8b5cf6);
    border: 3px solid #f3f1ec;
}
.raplsaich-chatbot.theme-neon .chatbot-badge-ping::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #e879f9;
    opacity: 0.5;
    animation: chatbot-neon-ping 1.8s ease-out infinite;
}
@keyframes chatbot-neon-ping {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ===================================================================
   PANEL CHROME — visuals only, no display
   =================================================================== */
.raplsaich-chatbot.theme-neon .chatbot-window {
    background:
        radial-gradient(120% 80% at 20% -10%, rgba(139,92,246,0.25), transparent 60%),
        radial-gradient(100% 60% at 110% 0%, rgba(232,121,249,0.16), transparent 55%),
        radial-gradient(80% 50% at 0% 100%, rgba(34,211,238,0.12), transparent 60%),
        linear-gradient(180deg, #110d20 0%, #0a0a0f 100%);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 40px 80px -20px rgba(20,8,60,0.55),
        0 8px 24px -8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.06);
    color: var(--raplsaich-neon-ink);
    overflow: hidden;
}

/* ===================================================================
   HEADER — single row, no wrap, mode pill / operator card live between
   header-info and the action buttons via space-between distribution.
   =================================================================== */
.raplsaich-chatbot.theme-neon .chatbot-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: transparent;
    color: var(--raplsaich-neon-ink);
    gap: 8px;
    /* NO flex-wrap (see RULE 2). Items overflow horizontally if too wide;
       header-info name truncates with ellipsis below. */
}
.raplsaich-chatbot.theme-neon .chatbot-header .header-info {
    gap: 10px;
    min-width: 0; /* allow shrinking + ellipsis */
    flex-shrink: 1;
}
.raplsaich-chatbot.theme-neon .chatbot-header .bot-name {
    color: var(--raplsaich-neon-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.raplsaich-chatbot.theme-neon .chatbot-header .header-text { color: var(--raplsaich-neon-ink); }
.raplsaich-chatbot.theme-neon .chatbot-header .bot-status { color: var(--raplsaich-neon-text-dim); }

/* Action buttons: subtle glass look, fixed size so they don't shrink. */
.raplsaich-chatbot.theme-neon .chatbot-tts-toggle,
.raplsaich-chatbot.theme-neon .chatbot-new-conversation,
.raplsaich-chatbot.theme-neon .chatbot-close {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: #cfccdb;
    border-radius: 12px;
    flex-shrink: 0;
}
.raplsaich-chatbot.theme-neon .chatbot-tts-toggle:hover,
.raplsaich-chatbot.theme-neon .chatbot-new-conversation:hover,
.raplsaich-chatbot.theme-neon .chatbot-close:hover { background: rgba(255,255,255,0.08); }

/* When operator card is visible (handoff active), collapse the default
   header bot-info AND hide the mode pill — the operator card carries that
   info more richly. Uses :has(), modern browsers only; on older browsers
   both stay visible side-by-side (looks busy but not broken). */
.raplsaich-chatbot.theme-neon .chatbot-header:has(.chatbot-operator-card:not([hidden])) .header-info,
.raplsaich-chatbot.theme-neon .chatbot-header:has(.chatbot-operator-card:not([hidden])) .chatbot-mode-pill {
    display: none;
}

/* ===================================================================
   IDENTITY in neon: re-skin the bot-name pill (defined in base CSS) so
   it matches the dark glass palette. The pill IS the identity — there's
   no separate mode pill anymore.
   =================================================================== */
.raplsaich-chatbot.theme-neon .chatbot-header .bot-name {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--raplsaich-neon-ink);
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.raplsaich-chatbot.theme-neon .chatbot-header .bot-name__led {
    background: #c4b5fd;
    box-shadow: 0 0 12px #8b5cf6;
}
.raplsaich-chatbot.theme-neon .chatbot-header .bot-name[data-state="human"] .bot-name__led {
    background: var(--raplsaich-neon-green);
    box-shadow: 0 0 12px var(--raplsaich-neon-green);
}

/* ===================================================================
   OPERATOR CARD — visible only when JS removes [hidden]
   Base CSS hides globally; we re-show only in neon when not hidden.
   =================================================================== */
.raplsaich-chatbot.theme-neon .chatbot-operator-card:not([hidden]) {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 3px 12px 3px 3px;
    background: rgba(52,211,153,0.08);
    border: 1px solid rgba(52,211,153,0.25);
    border-radius: 999px;
    flex-shrink: 1;
    min-width: 0;
}
.raplsaich-chatbot.theme-neon .chatbot-operator-card__avatar {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f0abfc, #c4b5fd, #67e8f9);
    display: grid;
    place-items: center;
    font-size: 16px;
}
.raplsaich-chatbot.theme-neon .chatbot-operator-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.raplsaich-chatbot.theme-neon .chatbot-operator-card__status {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--raplsaich-neon-green);
    border: 2px solid var(--raplsaich-neon-panel);
    box-shadow: 0 0 6px rgba(52,211,153,0.7);
}
.raplsaich-chatbot.theme-neon .chatbot-operator-card__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}
.raplsaich-chatbot.theme-neon .chatbot-operator-card__name {
    font-weight: 600;
    font-size: 12px;
    color: var(--raplsaich-neon-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.raplsaich-chatbot.theme-neon .chatbot-operator-card__role,
.raplsaich-chatbot.theme-neon .chatbot-operator-card__status-text {
    font-size: 9px;
    color: #6ee7b7;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ===================================================================
   MESSAGES container — guarantees scrollable area even when hero shown
   =================================================================== */
.raplsaich-chatbot.theme-neon .chatbot-messages {
    background: transparent;
    padding: 12px 16px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    /* Stop rubber-band scrolling from chaining out to the document.
       On iOS this matters during keyboard up — without contain, the
       bounce hands off to the locked body, which iOS tries to scroll
       and our keyboard-fix code yanks back, producing visible jitter. */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.raplsaich-chatbot.theme-neon .chatbot-messages::-webkit-scrollbar { width: 6px; }
.raplsaich-chatbot.theme-neon .chatbot-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 8px; }

/* ===================================================================
   AI ORB HERO — welcome state only (no user messages yet)
   Base CSS hides globally; we re-show only in neon when JS sets
   the data-visible="1" attribute.
   =================================================================== */
.raplsaich-chatbot.theme-neon .chatbot-hero[data-visible="1"] {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 16px 0 8px;
    margin: 0 16px 8px;
    flex: 0 0 auto; /* never steal space from messages */
    color: var(--raplsaich-neon-ink);
}
.chatbot-hero__headline {
    font-weight: 500;
    font-size: 19px;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 12px 0 4px;
    line-height: 1.2;
    color: var(--raplsaich-neon-ink);
}
.chatbot-hero__sub {
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--raplsaich-neon-text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.chatbot-hero__sub-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c4b5fd;
    box-shadow: 0 0 10px #c4b5fd;
    animation: chatbot-hero-glow 1.6s ease-in-out infinite;
}
@keyframes chatbot-hero-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
.chatbot-hero__orb-stage {
    position: relative;
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
}
.chatbot-hero__halo {
    position: absolute;
    inset: 10px;
    background: radial-gradient(circle, rgba(139,92,246,0.4) 0%, rgba(232,121,249,0.22) 35%, transparent 65%);
    filter: blur(22px);
    animation: chatbot-hero-halo 4s ease-in-out infinite;
}
@keyframes chatbot-hero-halo {
    0%, 100% { opacity: 0.7; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.08); }
}
.chatbot-hero__orb {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, #ffffff 0%, rgba(255,255,255,0.4) 6%, transparent 22%),
        radial-gradient(circle at 70% 70%, #e879f9 0%, #8b5cf6 20%, transparent 55%),
        radial-gradient(circle at 30% 80%, #22d3ee 0%, transparent 45%),
        radial-gradient(circle at 75% 25%, #f0abfc 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #1a0f3a 0%, #0a0418 80%);
    box-shadow:
        0 20px 50px -15px rgba(139,92,246,0.55),
        inset -12px -20px 40px -10px rgba(0,0,0,0.6),
        inset 8px 12px 30px -10px rgba(255,255,255,0.15);
    animation: chatbot-hero-orb-breath 6s ease-in-out infinite;
}
@keyframes chatbot-hero-orb-breath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
.chatbot-hero__rim {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    animation: chatbot-hero-rim-rot 20s linear infinite;
}
.chatbot-hero__rim--outer {
    width: 158px;
    height: 158px;
    border-style: dashed;
    border-color: rgba(255,255,255,0.05);
    animation: chatbot-hero-rim-rot 30s linear infinite reverse;
}
@keyframes chatbot-hero-rim-rot { to { transform: rotate(360deg); } }
.chatbot-hero__spec {
    position: absolute;
    top: calc(50% - 42px);
    left: calc(50% - 30px);
    width: 35px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%);
    filter: blur(2px);
    transform: rotate(-20deg);
    pointer-events: none;
}
.chatbot-hero__eq {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 16px;
    margin-top: 10px;
}
.chatbot-hero__eq span {
    width: 3px;
    background: linear-gradient(180deg, #e879f9, #8b5cf6);
    border-radius: 2px;
    animation: chatbot-hero-eq 1.1s ease-in-out infinite;
}
.chatbot-hero__eq span:nth-child(2) { animation-delay: .12s; }
.chatbot-hero__eq span:nth-child(3) { animation-delay: .24s; }
.chatbot-hero__eq span:nth-child(4) { animation-delay: .36s; }
.chatbot-hero__eq span:nth-child(5) { animation-delay: .18s; }
.chatbot-hero__eq span:nth-child(6) { animation-delay: .30s; }
.chatbot-hero__eq span:nth-child(7) { animation-delay: .06s; }
.chatbot-hero__eq span:nth-child(8) { animation-delay: .42s; }
.chatbot-hero__eq span:nth-child(9) { animation-delay: .15s; }
@keyframes chatbot-hero-eq {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

/* ===================================================================
   PRESET QUESTIONS — chip cards under the welcome message
   =================================================================== */
.raplsaich-chatbot.theme-neon .chatbot-preset-questions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 4px 0 12px;
}
.raplsaich-chatbot.theme-neon .chatbot-preset-questions::before {
    content: attr(data-label);
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--raplsaich-neon-text-mute);
    margin: 0 4px;
}
.raplsaich-chatbot.theme-neon .chatbot-preset-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 10px 14px;
    color: var(--raplsaich-neon-ink);
    cursor: pointer;
    transition: background 160ms, border-color 160ms, transform 160ms;
    text-align: left;
    font-size: 13px;
    width: 100%;
}
.raplsaich-chatbot.theme-neon .chatbot-preset-btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(139,92,246,0.35);
}
.raplsaich-chatbot.theme-neon .chatbot-preset-btn:active { transform: scale(0.98); }
.raplsaich-chatbot.theme-neon .chatbot-preset-btn::after {
    content: "↗";
    color: var(--raplsaich-neon-text-mute);
    font-size: 14px;
    margin-left: 8px;
}

/* ===================================================================
   COMPOSER
   =================================================================== */
.raplsaich-chatbot.theme-neon .chatbot-input {
    padding: 10px 14px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(10,8,20,0.5);
    backdrop-filter: blur(14px);
    flex: 0 0 auto;
}
.raplsaich-chatbot.theme-neon .chatbot-input textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    color: var(--raplsaich-neon-ink);
    padding: 10px 14px;
}
.raplsaich-chatbot.theme-neon .chatbot-input textarea::placeholder { color: var(--raplsaich-neon-text-mute); }
.raplsaich-chatbot.theme-neon .chatbot-input textarea:focus {
    border-color: rgba(139,92,246,0.5);
    outline: none;
}
.raplsaich-chatbot.theme-neon .chatbot-input button[type="submit"] {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #e879f9);
    color: #fff;
    border: 0;
    box-shadow: 0 6px 16px -4px rgba(139,92,246,0.6);
}
.raplsaich-chatbot.theme-neon .chatbot-input button[type="submit"]:hover { transform: scale(1.05); }

/* ===================================================================
   MESSAGE BUBBLES
   =================================================================== */
.raplsaich-chatbot.theme-neon .chatbot-message { color: var(--raplsaich-neon-ink); }
.raplsaich-chatbot.theme-neon .chatbot-message--user .chatbot-message__content {
    background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(232,121,249,0.14));
    border: 1px solid rgba(139,92,246,0.32);
    color: var(--raplsaich-neon-ink);
    border-radius: 16px 16px 4px 16px;
}
.raplsaich-chatbot.theme-neon .chatbot-message--bot .chatbot-message__content,
.raplsaich-chatbot.theme-neon .chatbot-message--operator .chatbot-message__content {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: #e4e1ee;
    border-radius: 16px 16px 16px 4px;
}

/* Operator avatar + name stacked vertically (caption under circle).
   Not theme-scoped — same structure in every theme. */
.chatbot-message__op-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.chatbot-message--operator .chatbot-message__operator-name {
    display: block;
    font-size: 10px;
    color: #4caf50;
    font-weight: 600;
    margin: 0;
    line-height: 1;
    max-width: 64px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.raplsaich-chatbot.theme-neon .chatbot-message--operator .chatbot-message__operator-name {
    color: #6ee7b7;
}

/* Links inside the dark bubbles: bright cyan-blue, readable on the
   panel's near-black background. Visited state stays the same colour
   (privacy-friendly + matches Google's modern recommendation). */
.raplsaich-chatbot.theme-neon .chatbot-message--bot .chatbot-message__content a,
.raplsaich-chatbot.theme-neon .chatbot-message--operator .chatbot-message__content a,
.raplsaich-chatbot.theme-neon .chatbot-message__sources a,
.raplsaich-chatbot.theme-neon .chatbot-content-card,
.raplsaich-chatbot.theme-neon .chatbot-content-card__title {
    color: #67e8f9 !important;
}
.raplsaich-chatbot.theme-neon .chatbot-message--bot .chatbot-message__content a:hover,
.raplsaich-chatbot.theme-neon .chatbot-message--operator .chatbot-message__content a:hover,
.raplsaich-chatbot.theme-neon .chatbot-message__sources a:hover {
    color: #22d3ee !important;
    text-decoration: underline;
}

/* ===================================================================
   HANDOFF INDICATOR — restyle
   =================================================================== */
.raplsaich-chatbot.theme-neon .chatbot-handoff-indicator--pending {
    background: rgba(139,92,246,0.12);
    color: #c4b5fd;
    border-bottom: 1px solid rgba(139,92,246,0.25);
}
.raplsaich-chatbot.theme-neon .chatbot-handoff-indicator--active {
    background: rgba(52,211,153,0.1);
    color: #6ee7b7;
    border-bottom: 1px solid rgba(52,211,153,0.25);
}

/* ===================================================================
   MOBILE — including iOS Safari fixes
   ===================================================================
   iOS Safari + heavy CSS = the chat can freeze. Stacked infinite
   animations, backdrop-filter, and big box-shadows are all expensive
   on WebKit/iOS — especially older phones. On small viewports we:
     - kill backdrop-filter (composer reads a plain dark bg)
     - simplify the orb's box-shadow
     - slow down or drop the secondary animations (rim rotations, halo)
     - reduce the equalizer to 4 bars instead of 9
   The hero is also smaller, so visually nothing important is lost.
   =================================================================== */
@media (max-width: 600px) {
    .raplsaich-chatbot.theme-neon .chatbot-window { border-radius: 0; }
    .raplsaich-chatbot.theme-neon .chatbot-hero__orb-stage { width: 130px; height: 130px; }
    .raplsaich-chatbot.theme-neon .chatbot-hero__orb {
        width: 95px;
        height: 95px;
        /* Lighter shadow; the heavy inset shadows are GPU-hungry on iOS. */
        box-shadow: 0 12px 30px -10px rgba(139,92,246,0.45),
                    inset -8px -12px 26px -8px rgba(0,0,0,0.55);
    }
    .raplsaich-chatbot.theme-neon .chatbot-hero__rim { width: 110px; height: 110px; animation-duration: 40s; }
    .raplsaich-chatbot.theme-neon .chatbot-hero__rim--outer { width: 138px; height: 138px; animation-duration: 60s; }
    .raplsaich-chatbot.theme-neon .chatbot-operator-card__name { max-width: 100px; }
    .raplsaich-chatbot.theme-neon .chatbot-mode-pill { font-size: 9px; padding: 4px 8px 4px 6px; }

    /* backdrop-filter is the single biggest iOS Safari perf killer here. */
    .raplsaich-chatbot.theme-neon .chatbot-input {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10,8,20,0.85);
    }
    /* Hide bars 5-9 of the equalizer on small screens to halve the
       per-frame paint cost without losing the audio-meter feel. */
    .raplsaich-chatbot.theme-neon .chatbot-hero__eq span:nth-child(n+5) { display: none; }
}

/* iOS-specific: prefer the system reduced-motion preference, but also
   cut animations on small viewports across the board. Visually the hero
   still pulses (orb breath + halo + LED dot), just without the rims
   spinning constantly. */
@media (max-width: 600px) and (prefers-reduced-motion: reduce),
       (max-width: 400px) {
    .raplsaich-chatbot.theme-neon .chatbot-hero__rim,
    .raplsaich-chatbot.theme-neon .chatbot-hero__rim--outer {
        animation: none;
    }
    .raplsaich-chatbot.theme-neon .chatbot-hero__eq span {
        animation-duration: 1.8s;
    }
}

/* Touch / coarse-pointer hint: GPU-promote the orb so iOS composites
   it on its own layer instead of repainting every frame. Outside of
   pointer:coarse the will-change is wasted memory. */
@media (pointer: coarse) {
    .raplsaich-chatbot.theme-neon .chatbot-hero__orb,
    .raplsaich-chatbot.theme-neon .chatbot-hero__halo,
    .raplsaich-chatbot.theme-neon .chatbot-badge-ping {
        transform: translateZ(0);
        will-change: transform, opacity;
    }
}
