/* ===================================================================
   AI All-K — Widget Frontend · Dark Glass Aurora  v3
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── Design tokens ──────────────────────────────────────────────── */
:root {
    --rag-primary:          #7C3AED;
    --rag-primary-b:        #2563EB;
    --rag-accent:           #06B6D4;
    --rag-plasma:           #F472B6;
    --rag-text:             #ffffff;

    --rag-bubble-size:      58px;
    --rag-width:            390px;
    --rag-height:           580px;
    --rag-radius:           22px;
    --rag-font-size:        13.5px;
    --rag-bottom-offset:    28px;
    --rag-side-offset:      28px;

    --rag-void:             #07060f;
    --rag-deep:             #0c0a1c;
    --rag-surface:          rgba(10, 8, 22, 0.97);
    --rag-glass:            rgba(255,255,255,.04);
    --rag-glass-border:     rgba(255,255,255,.07);
    --rag-msgs-bg:          transparent;
    --rag-input-bg:         rgba(255,255,255,.05);
    --rag-border:           rgba(255,255,255,.07);

    --glow-violet:          rgba(124,58,237,.4);
    --glow-cyan:            rgba(6,182,212,.25);
    --glow-pink:            rgba(244,114,182,.2);

    --rag-shadow:
        0 40px 100px rgba(0,0,0,.75),
        0 0 0 1px rgba(255,255,255,.06),
        0 8px 40px rgba(124,58,237,.18);

    --ease-spring:          cubic-bezier(.34,1.56,.64,1);
    --ease-out:             cubic-bezier(.4,0,.2,1);
    --t-fast:               .18s var(--ease-out);
    --t-spring:             .38s var(--ease-spring);
}

/* ── Reset ──────────────────────────────────────────────────────── */
#rag-chatbot-root *,
#rag-chatbot-root *::before,
#rag-chatbot-root *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Root ───────────────────────────────────────────────────────── */
#rag-chatbot-root {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--rag-font-size);
    line-height: 1.5;
    z-index: 999999;
    color-scheme: dark;
}

/* ── Float positioning ──────────────────────────────────────────── */
.rag-chatbot-floating            { position: fixed; bottom: var(--rag-bottom-offset); }
.rag-chatbot-pos-bottom-right    { right: var(--rag-side-offset); }
.rag-chatbot-pos-bottom-left     { left:  var(--rag-side-offset); }

/* ── Inline mode ────────────────────────────────────────────────── */
.rag-chatbot-inline {
    position: relative;
    width: 100%;
    max-width: var(--rag-width);
}
.rag-chatbot-inline .rag-chatbot-window {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    left:  auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all !important;
    display: flex !important;
}

/* ════════════════════════════════════════════════════════════════
   FLOATING BUBBLE
   ════════════════════════════════════════════════════════════════ */

.rag-chatbot-bubble {
    width:  var(--rag-bubble-size);
    height: var(--rag-bubble-size);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(124,58,237,.25) 0%, rgba(37,99,235,.2) 100%),
        var(--rag-deep);
    color: #fff;
    border: 1px solid rgba(124,58,237,.38);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 32px rgba(124,58,237,.45),
        0 2px 8px rgba(0,0,0,.4),
        inset 0 1px 0 rgba(255,255,255,.09);
    transition: transform var(--t-spring), box-shadow var(--t-fast), border-color var(--t-fast);
    position: relative;
    overflow: visible;
}

/* Halo glow behind bubble */
.rag-chatbot-bubble::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--glow-violet), var(--glow-cyan));
    filter: blur(14px);
    opacity: 0;
    transition: opacity .3s var(--ease-out);
    z-index: -1;
    pointer-events: none;
}

.rag-chatbot-bubble:hover {
    transform: scale(1.08) translateY(-3px);
    border-color: rgba(124,58,237,.6);
    box-shadow:
        0 16px 48px rgba(124,58,237,.55),
        0 4px 16px rgba(0,0,0,.4),
        inset 0 1px 0 rgba(255,255,255,.14);
}
.rag-chatbot-bubble:hover::before { opacity: 1; }
.rag-chatbot-bubble:active { transform: scale(.93) translateY(0); }

/* Aurora orbit ring (idle) */
.rag-chatbot-bubble:not(.is-open)::after {
    content: '';
    position: absolute;
    inset: -9px;
    border-radius: 27px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(124,58,237,.7) 50deg,
        rgba(6,182,212,.5) 110deg,
        rgba(244,114,182,.35) 180deg,
        transparent 230deg,
        transparent 360deg
    );
    animation: rag-orbit 5s linear infinite;
    pointer-events: none;
    mask:        radial-gradient(circle at center, transparent 60%, black 63%, black 70%, transparent 73%);
    -webkit-mask:radial-gradient(circle at center, transparent 60%, black 63%, black 70%, transparent 73%);
}
@keyframes rag-orbit {
    to { transform: rotate(360deg); }
}

/* Notification dot */
.rag-bubble-notif {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #F472B6, #EC4899);
    border-radius: 50%;
    border: 2px solid var(--rag-void);
    z-index: 2;
}
.rag-bubble-notif::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(244,114,182,.35);
    animation: rag-notif-ripple 2.2s ease-out infinite;
}
@keyframes rag-notif-ripple {
    0%   { transform: scale(1); opacity: .7; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Icon swap */
.rag-chatbot-bubble-icon,
.rag-chatbot-bubble-close {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .22s var(--ease-out), transform .3s var(--ease-spring);
}
.rag-chatbot-bubble-close {
    opacity: 0;
    transform: rotate(-90deg) scale(.65);
}
.rag-chatbot-bubble.is-open .rag-chatbot-bubble-icon {
    opacity: 0;
    transform: rotate(90deg) scale(.65);
}
.rag-chatbot-bubble.is-open .rag-chatbot-bubble-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ════════════════════════════════════════════════════════════════
   CHAT WINDOW
   ════════════════════════════════════════════════════════════════ */

.rag-chatbot-window {
    width: var(--rag-width);
    height: var(--rag-height);
    background:
        radial-gradient(ellipse at 18% 2%,  rgba(124,58,237,.13) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 95%, rgba(6,182,212,.08)  0%, transparent 55%),
        var(--rag-void);
    border-radius: var(--rag-radius);
    box-shadow: var(--rag-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rag-glass-border);
    position: relative;
}

/* Subtle noise texture */
.rag-chatbot-window::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    background-size: 150px;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

/* Float animation */
.rag-chatbot-floating .rag-chatbot-window {
    position: fixed;
    bottom: calc(var(--rag-bottom-offset) + var(--rag-bubble-size) + 14px);
    opacity: 0;
    transform: translateY(24px) scale(.9);
    pointer-events: none;
    transition:
        opacity  .32s var(--ease-out),
        transform .42s var(--ease-spring);
    transform-origin: bottom right;
}
.rag-chatbot-pos-bottom-right .rag-chatbot-window { right: var(--rag-side-offset); }
.rag-chatbot-pos-bottom-left  .rag-chatbot-window { left:  var(--rag-side-offset); transform-origin: bottom left; }

.rag-chatbot-floating .rag-chatbot-window.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* ════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════ */

.rag-chatbot-header {
    background: rgba(10, 8, 22, 0.82);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    color: #fff;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* Aurora separator line */
.rag-chatbot-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(124,58,237,.45) 25%,
        rgba(6,182,212,.4)  60%,
        rgba(244,114,182,.25) 80%,
        transparent 100%
    );
}

.rag-chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 11px;
    position: relative;
    z-index: 1;
}

.rag-chatbot-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, rgba(124,58,237,.28), rgba(6,182,212,.18));
    border-radius: 11px;
    border: 1px solid rgba(124,58,237,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 16px rgba(124,58,237,.2);
}
.rag-chatbot-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,.08) 0%, transparent 60%);
}

.rag-chatbot-name {
    display: block;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: -.025em;
    color: #fff;
}

.rag-chatbot-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: rgba(255,255,255,.42);
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: .025em;
    text-transform: uppercase;
}
.rag-chatbot-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4ADE80;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(74,222,128,.5);
    animation: rag-status-pulse 2.5s ease infinite;
}
@keyframes rag-status-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(74,222,128,.5); }
    70%  { box-shadow: 0 0 0 5px rgba(74,222,128,.0); }
    100% { box-shadow: 0 0 0 0   rgba(74,222,128,.0); }
}

.rag-chatbot-close-btn {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.5);
    cursor: pointer;
    padding: 7px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
    position: relative;
    z-index: 1;
}
.rag-chatbot-close-btn:hover {
    background: rgba(255,255,255,.11);
    border-color: rgba(255,255,255,.12);
    color: #fff;
    transform: scale(1.06);
}

/* ════════════════════════════════════════════════════════════════
   MESSAGES
   ════════════════════════════════════════════════════════════════ */

.rag-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
}
.rag-chatbot-messages::-webkit-scrollbar       { width: 3px; }
.rag-chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.rag-chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(124,58,237,.28);
    border-radius: 4px;
}

.rag-msg {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    animation: rag-msg-in .32s var(--ease-spring) both;
}
@keyframes rag-msg-in {
    from { opacity: 0; transform: translateY(14px) scale(.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.rag-msg--user { align-self: flex-end;   align-items: flex-end; }
.rag-msg--bot  { align-self: flex-start; align-items: flex-start; }

.rag-msg__bubble {
    padding: 11px 15px;
    border-radius: 18px;
    font-size: var(--rag-font-size);
    line-height: 1.65;
    word-break: break-word;
    white-space: pre-wrap;
}

/* User bubble — gradient glow */
.rag-msg--user .rag-msg__bubble {
    background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
    color: #fff;
    border-bottom-right-radius: 5px;
    border: 1px solid rgba(124,58,237,.25);
    box-shadow:
        0 4px 20px rgba(124,58,237,.35),
        inset 0 1px 0 rgba(255,255,255,.14);
}

/* Bot bubble — frosted glass */
.rag-msg--bot .rag-msg__bubble {
    background: rgba(255,255,255,.052);
    color: rgba(255,255,255,.88);
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 2px 14px rgba(0,0,0,.3),
        inset 0 1px 0 rgba(255,255,255,.05);
}

.rag-msg--bot .rag-list-item {
    display: block;
    padding-left: 4px;
    margin-top: 3px;
    color: rgba(255,255,255,.78);
}

/* Sources */
.rag-msg__sources {
    margin-top: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.rag-msg__source-chip {
    font-size: 10px;
    padding: 3px 9px;
    background: rgba(124,58,237,.1);
    color: rgba(167,139,250,.85);
    border-radius: 20px;
    border: 1px solid rgba(124,58,237,.22);
    cursor: default;
    font-weight: 500;
    letter-spacing: .01em;
    transition: background var(--t-fast);
}
.rag-msg__source-chip:hover {
    background: rgba(124,58,237,.2);
    color: #C4B5FD;
}

/* Typing indicator */
.rag-typing .rag-msg__bubble {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    padding: 14px 18px;
    display: flex;
    gap: 5px;
    align-items: center;
}
.rag-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #06B6D4);
    animation: rag-dot-wave .95s ease infinite;
    flex-shrink: 0;
}
.rag-typing-dot:nth-child(2) { animation-delay: .15s; }
.rag-typing-dot:nth-child(3) { animation-delay: .30s; }
@keyframes rag-dot-wave {
    0%, 60%, 100% { transform: translateY(0);   opacity: .35; }
    30%            { transform: translateY(-6px); opacity: 1; }
}

/* ════════════════════════════════════════════════════════════════
   QUICK ACTIONS
   ════════════════════════════════════════════════════════════════ */

.rag-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 5px 15px 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.rag-quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border-radius: 20px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    color: rgba(255,255,255,.55);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--t-fast);
    white-space: nowrap;
    backdrop-filter: blur(8px);
    letter-spacing: .01em;
}
.rag-quick-action-btn:hover {
    background: rgba(124,58,237,.14);
    border-color: rgba(124,58,237,.38);
    color: rgba(196,181,253,.95);
    box-shadow: 0 0 18px rgba(124,58,237,.18);
    transform: translateY(-1px);
}
.rag-quick-action-btn--pricing {
    background: rgba(124,58,237,.09);
    border-color: rgba(124,58,237,.28);
    color: #A78BFA;
    font-weight: 600;
}
.rag-quick-action-btn--pricing:hover {
    background: rgba(124,58,237,.22);
    border-color: rgba(124,58,237,.55);
    box-shadow: 0 0 22px rgba(124,58,237,.28);
}

/* ════════════════════════════════════════════════════════════════
   CONTACT STRIP
   ════════════════════════════════════════════════════════════════ */

.rag-contact-strip {
    display: flex;
    gap: 7px;
    padding: 9px 13px;
    background: rgba(0,0,0,.28);
    border-top: 1px solid rgba(255,255,255,.05);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.rag-contact-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 5px;
    border-radius: 11px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    cursor: pointer;
    text-decoration: none;
    color: rgba(255,255,255,.45);
    font-size: 10.5px;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--t-fast);
    letter-spacing: .025em;
    text-transform: uppercase;
    min-width: 0;
}
.rag-contact-btn:hover { transform: translateY(-2px); }

.rag-contact-btn--phone:hover {
    background: rgba(124,58,237,.13);
    border-color: rgba(124,58,237,.32);
    color: #A78BFA;
    box-shadow: 0 4px 14px rgba(124,58,237,.2);
}
.rag-contact-btn--whatsapp {
    background: rgba(37,211,102,.07);
    border-color: rgba(37,211,102,.18);
    color: rgba(74,222,128,.7);
}
.rag-contact-btn--whatsapp:hover {
    background: rgba(37,211,102,.16);
    border-color: rgba(37,211,102,.38);
    color: #4ADE80;
    box-shadow: 0 4px 18px rgba(37,211,102,.2);
}
.rag-contact-btn--facebook {
    background: rgba(24,119,242,.07);
    border-color: rgba(24,119,242,.18);
    color: rgba(96,165,250,.7);
}
.rag-contact-btn--facebook:hover {
    background: rgba(24,119,242,.16);
    border-color: rgba(24,119,242,.38);
    color: #60A5FA;
    box-shadow: 0 4px 18px rgba(24,119,242,.2);
}
.rag-contact-btn--email:hover {
    background: rgba(251,191,36,.07);
    border-color: rgba(251,191,36,.25);
    color: #FCD34D;
    box-shadow: 0 4px 14px rgba(251,191,36,.15);
}

/* ════════════════════════════════════════════════════════════════
   INPUT AREA
   ════════════════════════════════════════════════════════════════ */

.rag-chatbot-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 11px 13px 10px;
    border-top: 1px solid rgba(255,255,255,.05);
    background: rgba(0,0,0,.22);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.rag-chatbot-input {
    flex: 1;
    resize: none;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    padding: 10px 14px;
    font-size: var(--rag-font-size);
    font-family: inherit;
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.9);
    outline: none;
    max-height: 110px;
    overflow-y: auto;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    line-height: 1.45;
    caret-color: #A78BFA;
}
.rag-chatbot-input::placeholder { color: rgba(255,255,255,.22); }
.rag-chatbot-input:focus {
    border-color: rgba(124,58,237,.48);
    box-shadow:
        0 0 0 3px rgba(124,58,237,.1),
        inset 0 0 0 1px rgba(124,58,237,.08);
    background: rgba(255,255,255,.07);
}
.rag-chatbot-input::-webkit-scrollbar       { width: 3px; }
.rag-chatbot-input::-webkit-scrollbar-thumb { background: rgba(124,58,237,.28); border-radius: 3px; }

.rag-chatbot-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: linear-gradient(135deg, #7C3AED, #2563EB);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--t-spring);
    box-shadow: 0 4px 14px rgba(124,58,237,.38);
    position: relative;
    overflow: hidden;
}
.rag-chatbot-send-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,.16), transparent 55%);
    opacity: .6;
}
.rag-chatbot-send-btn:hover:not(:disabled) {
    transform: scale(1.1) translateY(-1px);
    box-shadow: 0 8px 28px rgba(124,58,237,.55);
}
.rag-chatbot-send-btn:active:not(:disabled) { transform: scale(.93); }
.rag-chatbot-send-btn:disabled {
    opacity: .22;
    cursor: default;
    box-shadow: none;
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */

.rag-chatbot-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 13px 10px;
    background: rgba(0,0,0,.18);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.rag-chatbot-clear-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: rgba(255,255,255,.18);
    font-size: 10.5px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all var(--t-fast);
    font-family: inherit;
    letter-spacing: .02em;
}
.rag-chatbot-clear-btn:hover {
    color: rgba(248,113,113,.7);
    background: rgba(239,68,68,.06);
}

.rag-chatbot-powered {
    font-size: 9.5px;
    color: rgba(255,255,255,.13);
    letter-spacing: .05em;
    font-weight: 500;
    text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════
   PRICING CARDS IN CHAT
   ════════════════════════════════════════════════════════════════ */

.rag-pricing-msg            { align-self: stretch !important; max-width: 100% !important; }
.rag-pricing-msg .rag-msg__bubble {
    width: 100%;
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.07);
}

.rag-pricing-intro {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 10px;
    color: rgba(255,255,255,.82);
    letter-spacing: -.015em;
}

.rag-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.rag-pricing-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all var(--t-fast);
}
.rag-pricing-card:hover {
    border-color: rgba(124,58,237,.38);
    background: rgba(124,58,237,.07);
    box-shadow: 0 4px 18px rgba(124,58,237,.15);
}
.rag-pricing-card--featured {
    border-color: rgba(124,58,237,.32);
    background: rgba(124,58,237,.08);
}

.rag-pricing-card__badge {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7C3AED, #2563EB);
    border-radius: 10px;
    padding: 2px 7px;
    display: inline-block;
    margin-bottom: 3px;
    width: fit-content;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.rag-pricing-card__name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: rgba(255,255,255,.88);
}
.rag-pricing-card__price {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #A78BFA;
    line-height: 1.2;
}
.rag-pricing-card__desc  { font-size: 10px; color: rgba(255,255,255,.32); line-height: 1.3; }

.rag-pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.rag-pricing-card__features li {
    font-size: 10px;
    color: rgba(255,255,255,.5);
    display: flex;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.3;
}
.rag-pricing-card__features li::before {
    content: '✓';
    color: #4ADE80;
    font-weight: 700;
    font-size: 9px;
    flex-shrink: 0;
    margin-top: 1px;
}

.rag-pricing-card__cta {
    width: 100%;
    margin-top: 8px;
    padding: 7px 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(124,58,237,.65), rgba(37,99,235,.65));
    color: #fff;
    border: 1px solid rgba(124,58,237,.25);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--t-fast);
    letter-spacing: .025em;
}
.rag-pricing-card__cta:hover {
    background: linear-gradient(135deg, #7C3AED, #2563EB);
    box-shadow: 0 4px 14px rgba(124,58,237,.38);
    transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════════
   MISC
   ════════════════════════════════════════════════════════════════ */

.rag-chatbot-notice {
    padding: 14px 18px;
    background: rgba(251,191,36,.06);
    border: 1px solid rgba(251,191,36,.18);
    border-radius: 10px;
    color: rgba(251,191,36,.75);
    font-size: 13px;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .rag-chatbot-floating {
        bottom: 0 !important;
        right:  0 !important;
        left:   0 !important;
    }
    .rag-chatbot-pos-bottom-right,
    .rag-chatbot-pos-bottom-left { right: auto; left: auto; }

    .rag-chatbot-floating .rag-chatbot-window {
        width:  100vw !important;
        height: 82vh !important;
        border-radius: var(--rag-radius) var(--rag-radius) 0 0;
        bottom: calc(var(--rag-bubble-size) + 20px + 16px) !important;
        right:  auto !important;
        left:   0 !important;
        transform-origin: bottom center !important;
    }
    .rag-chatbot-bubble { margin: 0 16px 16px; }
    .rag-chatbot-messages { padding: 16px 12px; }
    .rag-msg { max-width: 88%; }
}
