/* ============================================================
   Pyxis AI Chat Widget — Glassmorphism
   ============================================================ */

/* ── Variables ── */
:root {
    --pxc-glass-bg:          rgba(255, 255, 255, 0.08);
    --pxc-glass-bg-strong:   rgba(255, 255, 255, 0.13);
    --pxc-glass-border:      rgba(255, 255, 255, 0.18);
    --pxc-glass-border-sub:  rgba(255, 255, 255, 0.10);
    --pxc-blur:              blur(24px);
    --pxc-blur-sm:           blur(12px);
    --pxc-shadow:            0 32px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    --pxc-shadow-sm:         0 8px 32px rgba(0, 0, 0, 0.28);
    --pxc-accent:            #6c3dff;
    --pxc-accent2:           #3d8bff;
    --pxc-accent3:           #5d9dd5;
    --pxc-text:              rgba(255, 255, 255, 0.95);
    --pxc-text-sub:          rgba(255, 255, 255, 0.60);
    --pxc-text-muted:        rgba(255, 255, 255, 0.35);
    --pxc-radius:            24px;
    --pxc-radius-sm:         12px;
}

/* ── Widget wrapper ── */
#pyxis-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ── Animated blobs (inside panels for glassmorphism depth) ── */
.pxc-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(65px);
    opacity: 0.42;
    animation: pxc-float 9s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.pxc-blob--purple {
    background: var(--pxc-accent);
    width: 200px;
    height: 200px;
    top: -60px;
    right: -50px;
    animation-delay: 0s;
}

.pxc-blob--blue {
    background: var(--pxc-accent2);
    width: 160px;
    height: 160px;
    bottom: 120px;
    left: -55px;
    animation-delay: 3s;
}

.pxc-blob--teal {
    background: var(--pxc-accent3);
    width: 130px;
    height: 130px;
    bottom: -30px;
    right: 40%;
    animation-delay: 6s;
}

@keyframes pxc-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-18px) scale(1.06); }
}

/* ── Toggle Button ── */
#pxc-toggle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(145deg, var(--pxc-accent) 0%, var(--pxc-accent3) 55%, var(--pxc-accent2) 100%);
    box-shadow: 0 8px 32px rgba(108, 61, 255, 0.55), 0 0 0 2px rgba(108, 61, 255, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#pxc-toggle:hover {
    transform: scale(1.09);
    box-shadow: 0 14px 44px rgba(108, 61, 255, 0.72), 0 0 0 3px rgba(108, 61, 255, 0.32),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#pxc-toggle:active { transform: scale(0.96); }

#pxc-bot-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pxc-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* ── Chat Panel ── */
#pxc-panel {
    position: absolute;
    bottom: 88px;
    right: 0;
    width: 390px;
    height: 600px;
    background: rgba(23, 18, 65, 0.72);
    border-radius: var(--pxc-radius);
    border: 1px solid var(--pxc-glass-border);
    box-shadow: var(--pxc-shadow);
    backdrop-filter: var(--pxc-blur);
    -webkit-backdrop-filter: var(--pxc-blur);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
    position: absolute;
}

#pyxis-chat-widget.pxc-open #pxc-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

/* Panel content sits above the blobs */
#pxc-panel > :not(.pxc-blob) {
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.pxc-header {
    background: var(--pxc-glass-bg);
    backdrop-filter: var(--pxc-blur-sm);
    -webkit-backdrop-filter: var(--pxc-blur-sm);
    border-bottom: 1px solid var(--pxc-glass-border-sub);
    color: var(--pxc-text);
    padding: 15px 18px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.pxc-header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pxc-avatar { display: none; }

.pxc-brand-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pxc-text);
    line-height: 1;
}

.pxc-brand-status {
    font-size: 11px;
    color: var(--pxc-text-sub);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Orange glowing status dot (from reference .glass-dot) */
.pxc-brand-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 7px #f59e0b;
    display: inline-block;
}

.pxc-header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

#pxc-lang {
    background: var(--pxc-glass-bg);
    color: var(--pxc-text-sub);
    border: 1px solid var(--pxc-glass-border-sub);
    border-radius: 7px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    min-width: 46px;
    text-align: center;
    transition: background 0.18s, border-color 0.18s;
}

#pxc-lang:hover {
    background: var(--pxc-glass-bg-strong);
    border-color: var(--pxc-glass-border);
    color: var(--pxc-text);
}

#pxc-lang option { background: #170f40; color: #fff; }

#pxc-close {
    background: var(--pxc-glass-bg);
    border: 1px solid var(--pxc-glass-border-sub);
    color: var(--pxc-text-sub);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    padding: 0;
}

#pxc-close:hover {
    background: var(--pxc-glass-bg-strong);
    border-color: var(--pxc-glass-border);
    color: var(--pxc-text);
}

/* ── Messages ── */
#pxc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 22px 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: transparent;
    scroll-behavior: smooth;
}

#pxc-messages::-webkit-scrollbar { width: 3px; }
#pxc-messages::-webkit-scrollbar-thumb { background: var(--pxc-glass-border-sub); border-radius: 4px; }
#pxc-messages::-webkit-scrollbar-track { background: transparent; }

/* ── Welcome Block ── */
.pxc-welcome-block { padding: 4px 0 6px; }

.pxc-welcome-heading {
    font-size: 26px;
    font-weight: 800;
    color: var(--pxc-text);
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -0.4px;
}

.pxc-welcome-sub {
    font-size: 14px;
    color: var(--pxc-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Message Bubbles ── */
.pxc-msg {
    display: flex;
    max-width: 90%;
    animation: glassFadeIn 0.3s ease forwards;
}

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

.pxc-assistant {
    align-self: flex-start;
    max-width: 100%;
}

/* Bot bubble — glass reference style */
.pxc-assistant .pxc-bubble {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: var(--pxc-blur-sm);
    -webkit-backdrop-filter: var(--pxc-blur-sm);
    border: 1px solid var(--pxc-glass-border);
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    padding: 11px 15px;
    color: var(--pxc-text);
    font-size: 13.5px;
    line-height: 1.58;
    word-break: break-word;
}

/* ── Formatted content inside assistant bubble ── */
.pxc-assistant .pxc-bubble p {
    margin: 0 0 8px;
    line-height: 1.6;
}

.pxc-assistant .pxc-bubble p:last-child {
    margin-bottom: 0;
}

.pxc-assistant .pxc-bubble strong {
    color: rgba(255, 255, 255, 0.97);
    font-weight: 600;
}

.pxc-list {
    margin: 6px 0 8px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pxc-list:last-child {
    margin-bottom: 0;
}

.pxc-list li {
    position: relative;
    display: block;
    padding: 9px 12px 9px 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    line-height: 1.6;
}

.pxc-list li::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 15px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pxc-accent), var(--pxc-accent2));
    box-shadow: 0 0 6px rgba(108, 61, 255, 0.6);
}

/* User bubble — glass reference style */
.pxc-user .pxc-bubble {
    background: rgba(108, 61, 255, 0.75);
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 18px;
    border-bottom-right-radius: 5px;
    padding: 11px 15px;
    color: #fff;
    font-size: 13.5px;
    line-height: 1.58;
    word-break: break-word;
}

/* ── Default Questions ── */
.pxc-default-qs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-self: flex-start;
    margin-top: 2px;
}

.pxc-dq-btn {
    background: var(--pxc-glass-bg);
    border: 1px solid var(--pxc-glass-border);
    backdrop-filter: var(--pxc-blur-sm);
    -webkit-backdrop-filter: var(--pxc-blur-sm);
    border-radius: var(--pxc-radius-sm);
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    color: var(--pxc-text-sub);
    cursor: pointer;
    line-height: 1.4;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
    font-family: inherit;
}

.pxc-dq-btn:first-child {
    background: var(--pxc-glass-bg-strong);
    border-color: var(--pxc-glass-border);
    color: var(--pxc-text);
}

.pxc-dq-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--pxc-text);
    transform: translateX(3px);
}

.pxc-dq-btn:active { transform: translateX(0); }

/* ── Typing Indicator ── */
.pxc-typing-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: var(--pxc-blur-sm);
    -webkit-backdrop-filter: var(--pxc-blur-sm);
    border: 1px solid var(--pxc-glass-border);
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    padding: 12px 16px !important;
    align-self: flex-start;
}

/* Scoped to .pxc-dots-row so the progressive status <span> appended to the
   same bubble is not styled (and animated) as a fourth dot. */
.pxc-typing-dots .pxc-dots-row span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: pxc-dot-bounce 1.2s infinite ease-in-out;
}

.pxc-typing-dots .pxc-dots-row span:nth-child(2) { animation-delay: 0.2s; }
.pxc-typing-dots .pxc-dots-row span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pxc-dot-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%            { transform: translateY(-6px); }
}

/* ── Language Switch Notice ── */
.pxc-lang-notice {
    align-self: center;
    background: rgba(108, 61, 255, 0.22);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(108, 61, 255, 0.35);
    animation: pxc-fade-in-out 3s ease forwards;
}

@keyframes pxc-fade-in-out {
    0%   { opacity: 0; transform: translateY(4px); }
    15%  { opacity: 1; transform: translateY(0); }
    75%  { opacity: 1; }
    100% { opacity: 0; }
}

/* ── Input Area ── */
.pxc-input-area {
    background: var(--pxc-glass-bg);
    backdrop-filter: var(--pxc-blur-sm);
    -webkit-backdrop-filter: var(--pxc-blur-sm);
    border-top: 1px solid var(--pxc-glass-border-sub);
    padding: 12px 16px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

#pxc-input {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: transparent;
    color: var(--pxc-text-sub);
    caret-color: rgba(167, 139, 250, 0.9);
}

#pxc-input::placeholder { color: var(--pxc-text-muted); }
#pxc-input:disabled { opacity: 0.4; }

/* Circular gradient send button (glass-btn from reference) */
#pxc-send {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--pxc-accent), var(--pxc-accent-dark, #5d28e6));
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.15s;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.55);
}

#pxc-send:hover  { transform: scale(1.08); }
#pxc-send:active { transform: scale(0.94); }
#pxc-send:disabled { opacity: 0.28; cursor: not-allowed; transform: none; }

/* ── Fade-in for messages ── */
@keyframes glassFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Results Overlay ── */
#pxc-ro-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 3, 20, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s;
}

#pxc-ro-backdrop.pxc-ro-open { opacity: 1; visibility: visible; }

#pxc-results-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.97);
    width: min(94vw, 980px);
    max-height: 90vh;
    background: rgba(23, 18, 65, 0.78);
    border: 1px solid var(--pxc-glass-border);
    border-radius: var(--pxc-radius);
    box-shadow: var(--pxc-shadow);
    backdrop-filter: var(--pxc-blur);
    -webkit-backdrop-filter: var(--pxc-blur);
    z-index: 100001;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

#pxc-results-overlay.pxc-ro-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Overlay content z-index above blobs */
#pxc-results-overlay > :not(.pxc-blob) {
    position: relative;
    z-index: 1;
}

/* Overlay Header */
.pxc-ro-header {
    background: var(--pxc-glass-bg);
    backdrop-filter: var(--pxc-blur-sm);
    -webkit-backdrop-filter: var(--pxc-blur-sm);
    color: var(--pxc-text);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 1px solid var(--pxc-glass-border-sub);
}

.pxc-ro-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pxc-ro-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pxc-accent), var(--pxc-accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#pxc-ro-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--pxc-text);
    letter-spacing: 0.3px;
}

#pxc-ro-close {
    background: var(--pxc-glass-bg);
    border: 1px solid var(--pxc-glass-border-sub);
    color: var(--pxc-text-sub);
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    white-space: nowrap;
}

#pxc-ro-close:hover {
    background: var(--pxc-glass-bg-strong);
    border-color: var(--pxc-glass-border);
    color: var(--pxc-text);
}

/* Overlay Content */
#pxc-ro-content {
    overflow-y: auto;
    padding: 28px 28px 32px;
    flex: 1;
    scroll-behavior: smooth;
}

#pxc-ro-content::-webkit-scrollbar { width: 4px; }
#pxc-ro-content::-webkit-scrollbar-thumb { background: var(--pxc-glass-border-sub); border-radius: 4px; }
#pxc-ro-content::-webkit-scrollbar-track { background: transparent; }

/* ── QA Header in overlay ── */
.pxc-ro-qa {
    margin-bottom: 0;
}

.pxc-ro-qa-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.pxc-ro-qa-question {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    margin-bottom: 12px;
}

.pxc-ro-qa-answer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pxc-ro-answer-text {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
}

.pxc-ro-answer-text.pxc-ro-collapsed {
    max-height: 90px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.pxc-ro-answer-text.pxc-ro-expanded {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.pxc-ro-expand-btn {
    background: none;
    border: none;
    color: rgba(167, 139, 250, 0.85);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 2px 0;
    transition: color 0.2s;
}

.pxc-ro-expand-btn:hover {
    color: rgba(167, 139, 250, 1);
}

.pxc-ro-qa-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.09);
    margin: 20px 0;
}

/* formatted answer inside overlay answer box */
.pxc-ro-answer-text p   { margin: 0 0 6px; }
.pxc-ro-answer-text p:last-child { margin-bottom: 0; }
.pxc-ro-answer-text .pxc-list { margin: 4px 0 6px; }
.pxc-ro-answer-text .pxc-list li { padding: 6px 8px 6px 18px; font-size: 12.5px; }
.pxc-ro-answer-text .pxc-list li::before { top: 13px; left: 7px; width: 5px; height: 5px; }

.pxc-ro-section { margin-bottom: 36px; }

.pxc-ro-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--pxc-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pxc-glass-border-sub);
}

/* Services Grid */
.pxc-ro-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pxc-ro-svc-card {
    background: var(--pxc-glass-bg);
    border: 1px solid var(--pxc-glass-border-sub);
    backdrop-filter: var(--pxc-blur-sm);
    -webkit-backdrop-filter: var(--pxc-blur-sm);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.pxc-ro-svc-card:hover {
    background: var(--pxc-glass-bg-strong);
    border-color: var(--pxc-glass-border);
    transform: translateY(-3px);
}

.pxc-ro-svc-card img {
    width: 100%;
    height: 145px;
    object-fit: cover;
    display: block;
}

.pxc-ro-svc-placeholder {
    width: 100%;
    height: 145px;
    background: linear-gradient(135deg, rgba(108,61,255,0.3), rgba(93,157,213,0.3));
}

.pxc-ro-svc-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.pxc-ro-svc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--pxc-text);
    line-height: 1.3;
    display: block;
}

.pxc-ro-svc-excerpt {
    font-size: 12px;
    color: var(--pxc-text-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pxc-ro-cat-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--pxc-text-sub);
    padding: 6px 0 10px 10px;
    border-left: 3px solid rgba(108, 61, 255, 0.7);
    margin: 18px 0 10px;
}

.pxc-ro-cat-grid { margin-bottom: 8px; }

.pxc-ro-svc-cats {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pxc-ro-svc-cat {
    background: rgba(108, 61, 255, 0.2);
    color: rgba(185, 160, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 5px;
    border: 1px solid rgba(108, 61, 255, 0.3);
}

/* News Grid */
.pxc-ro-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.pxc-ro-news-card {
    background: var(--pxc-glass-bg);
    border: 1px solid var(--pxc-glass-border-sub);
    backdrop-filter: var(--pxc-blur-sm);
    -webkit-backdrop-filter: var(--pxc-blur-sm);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.pxc-ro-news-card:hover {
    background: var(--pxc-glass-bg-strong);
    border-color: var(--pxc-glass-border);
    transform: translateY(-2px);
}

.pxc-ro-news-card img {
    width: 110px;
    height: 100%;
    min-height: 100px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.pxc-ro-news-placeholder {
    width: 110px;
    min-height: 100px;
    background: linear-gradient(135deg, rgba(108,61,255,0.3), rgba(93,157,213,0.3));
    flex-shrink: 0;
}

.pxc-ro-news-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.pxc-ro-news-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--pxc-text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pxc-ro-news-date {
    font-size: 11px;
    color: var(--pxc-text-muted);
    margin-top: auto;
}

/* Logo Grid */
.pxc-ro-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.pxc-ro-logo-card {
    background: var(--pxc-glass-bg);
    border: 1px solid var(--pxc-glass-border-sub);
    backdrop-filter: var(--pxc-blur-sm);
    -webkit-backdrop-filter: var(--pxc-blur-sm);
    border-radius: 14px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.pxc-ro-logo-card:hover {
    background: var(--pxc-glass-bg-strong);
    border-color: var(--pxc-glass-border);
    transform: translateY(-2px);
}

.pxc-ro-logo-card img {
    width: 80px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.pxc-ro-logo-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pxc-accent), var(--pxc-accent2));
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pxc-ro-logo-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--pxc-text-sub);
    line-height: 1.3;
}

/* ── Responsive Overlay ── */
@media (max-width: 900px) {
    .pxc-ro-services-grid { grid-template-columns: repeat(2, 1fr); }
    .pxc-ro-logo-grid     { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    #pxc-results-overlay {
        width: 100%;
        max-height: 100%;
        height: 100%;
        top: 0; left: 0;
        transform: translateY(20px);
        border-radius: 0;
    }
    #pxc-results-overlay.pxc-ro-open { transform: translateY(0); }
    .pxc-ro-services-grid { grid-template-columns: 1fr 1fr; }
    .pxc-ro-logo-grid     { grid-template-columns: repeat(2, 1fr); }
    .pxc-ro-news-grid     { grid-template-columns: 1fr; }
    #pxc-ro-content       { padding: 20px 16px 24px; }
}

/* ── Mobile Panel ── */
@media (max-width: 768px) {
    #pxc-panel { width: calc(100vw - 20px); right: 10px; }

    #pyxis-chat-widget.pxc-open #pxc-panel {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        bottom: auto;
        right: auto;
    }

    #pyxis-chat-widget.pxc-open #pxc-toggle {
        position: fixed;
        bottom: calc(16px + env(safe-area-inset-bottom));
        right: 16px;
        z-index: 100001;
    }
}

/* ── Contact CTA Button ── */
.pxc-contact-action {
    align-self: flex-start;
    margin-top: 2px;
    animation: glassFadeIn 0.35s ease forwards;
}

.pxc-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--pxc-accent) 0%, var(--pxc-accent3) 55%, var(--pxc-accent2) 100%);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 18px rgba(108, 61, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
    white-space: nowrap;
}

.pxc-contact-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 28px rgba(108, 61, 255, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #fff;
    text-decoration: none;
}

/* Secondary variant: the About link is informational, so it stays quieter than
   the meeting CTA, which is the only primary action in the chat. */
.pxc-about-btn {
    background: rgba(167, 139, 250, 0.14);
    color: #d9cdff;
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pxc-about-btn:hover {
    background: rgba(167, 139, 250, 0.22);
    color: #ece5ff;
    box-shadow: 0 6px 22px rgba(108, 61, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.pxc-contact-btn:active {
    transform: scale(0.97);
}

/* ── In-chat "Discover more" button (opens results overlay) ── */
.pxc-discover-action {
    align-self: flex-start;
    margin-top: 6px;
    margin-bottom: 2px;
    animation: glassFadeIn 0.35s ease forwards;
}

/* Small caption above the button: says what the button opens, so it reads as a
   next step after the answer instead of an unexplained control. */
.pxc-discover-hint {
    color: rgba(216, 205, 255, 0.6);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 6px 4px;
}

.pxc-discover-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(167, 139, 250, 0.12);
    color: #c9b8ff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(167, 139, 250, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.pxc-discover-btn:hover {
    transform: translateY(-2px) scale(1.03);
    background: rgba(167, 139, 250, 0.2);
    box-shadow: 0 6px 22px rgba(108, 61, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.pxc-discover-btn:active {
    transform: scale(0.97);
}

/* ── Scroll lock (mobile only) ──
   On desktop the panel is a floating 390x600 card, so the page behind it must
   stay scrollable. Only the fullscreen mobile panel (<=768px) locks the body.
   The JS also gates the class by viewport; this media query is the safety net. */
@media (max-width: 768px) {
    body.pxc-scroll-lock {
        overflow: hidden;
        touch-action: none;
    }
}

/* ── Explore-solutions CTA (welcome block, available from first interaction) ── */
.pxc-solutions-cta {
    align-self: flex-start;
    width: 100%;
    margin-top: 4px;
    animation: glassFadeIn 0.35s ease forwards;
}

.pxc-solutions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(108, 61, 255, 0.28) 0%, rgba(167, 139, 250, 0.18) 100%);
    color: #d9cdff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 17px;
    border-radius: 9999px;
    border: 1px solid rgba(167, 139, 250, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.pxc-solutions-btn:hover {
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(135deg, rgba(108, 61, 255, 0.42) 0%, rgba(167, 139, 250, 0.28) 100%);
    box-shadow: 0 6px 22px rgba(108, 61, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.pxc-solutions-btn:active { transform: scale(0.97); }

/* ── Progressive typing status ── */
.pxc-typing-status {
    display: block;
    margin-top: 7px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--pxc-text-sub);
    opacity: 0;
    animation: glassFadeIn 0.4s ease forwards;
}

.pxc-typing-dots.pxc-has-status {
    flex-direction: column;
    align-items: flex-start;
}

.pxc-typing-dots.pxc-has-status .pxc-dots-row {
    display: flex;
    align-items: center;
    gap: 5px;
}
