/* OLIVER-CUSTOMER-AI-UI-V1 */
/* Premium AI Header */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    background: radial-gradient(circle at top left, rgba(212, 168, 83, 0.05), transparent 70%), var(--dash-card);
    position: relative;
    overflow: hidden;
}
body.light-mode .dash-header {
    background: radial-gradient(circle at top left, rgba(216, 27, 63, 0.04), transparent 70%), var(--dash-card);
}

.dash-header-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.dash-greeting-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ai-orb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.2), rgba(212, 168, 83, 0.05));
    border: 1px solid rgba(212, 168, 83, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dash-accent);
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.15);
    animation: pulse-orb 3s infinite alternate;
}
body.light-mode .ai-orb {
    background: linear-gradient(135deg, rgba(216, 27, 63, 0.15), rgba(216, 27, 63, 0.05));
    border-color: rgba(216, 27, 63, 0.2);
    color: #d81b3f;
    box-shadow: 0 0 20px rgba(216, 27, 63, 0.1);
}
@keyframes pulse-orb {
    0% { box-shadow: 0 0 15px rgba(212, 168, 83, 0.1); }
    100% { box-shadow: 0 0 30px rgba(212, 168, 83, 0.3); }
}

.dash-greeting-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dash-text);
    margin: 0;
    line-height: 1.3;
}

.dash-status {
    font-size: 0.95rem;
    color: var(--dash-muted);
    margin: 0;
    line-height: 1.5;
}

.dash-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(212, 168, 83, 0.35);
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.12), rgba(212, 168, 83, 0.04));
    color: var(--dash-accent, #d4a853);
    font: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.dash-ai-btn:hover {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.22), rgba(212, 168, 83, 0.08));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.dash-ai-btn i { font-size: 1.1rem; }
body.light-mode .dash-ai-btn {
    border-color: rgba(216, 27, 63, 0.3);
    background: linear-gradient(135deg, rgba(216, 27, 63, 0.08), rgba(216, 27, 63, 0.02));
    color: #d81b3f;
}
body.light-mode .dash-ai-btn:hover {
    background: linear-gradient(135deg, rgba(216, 27, 63, 0.16), rgba(216, 27, 63, 0.04));
}

/* Suggestion Chips */
.dash-ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dash-suggestion-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--dash-text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}
.dash-suggestion-chip i {
    color: var(--dash-accent);
    font-size: 0.9rem;
}
.dash-suggestion-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 168, 83, 0.4);
    transform: translateY(-2px);
}
body.light-mode .dash-suggestion-chip {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}
body.light-mode .dash-suggestion-chip:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(216, 27, 63, 0.3);
}
body.light-mode .dash-suggestion-chip i { color: #d81b3f; }

@media (max-width: 768px) {
    /* OLIVER-DASH-TABLET-FIX-V1 */
    .dash-header { flex-direction: column; align-items: stretch; gap: 16px; }
    .dash-ai-btn { width: 100%; justify-content: center; padding: 14px 20px; }
    .dash-title { font-size: 1.4rem; }
}

/* Dialog Shell (Desktop) */
#customerAiDialog {
    padding: 0;
    border: 1px solid var(--dash-border, rgba(255,255,255,0.08));
    border-radius: 20px;
    background: var(--dash-card, #0f1422);
    color: var(--dash-text, #f0f5fa);
    width: min(520px, calc(100vw - 32px));
    max-width: 520px;
    max-height: min(80vh, 720px);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    margin: auto;
    display: flex;
    flex-direction: column;
}
#customerAiDialog:not([open]) { display: none !important; }
#customerAiDialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
body.light-mode #customerAiDialog { background: var(--dash-card, #ffffff); border-color: var(--dash-border, rgba(15,23,42,0.08)); color: var(--dash-text, #0f172a); }

/* Header */
.ca-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--dash-border); flex-shrink: 0; }
.ca-header h3 { margin: 0; font-size: 1.02rem; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--dash-accent, #d4a853); }
.ca-header h3 i { font-size: 1rem; }
body.light-mode .ca-header h3 { color: #d81b3f; }
.ca-header-actions { display: flex; align-items: center; gap: 8px; }
.ca-close, .ca-clear { background: transparent; border: none; color: var(--dash-muted, #94a3b8); font-size: 1.4rem; cursor: pointer; padding: 4px 8px; border-radius: 8px; line-height: 1; transition: 0.15s; display: flex; align-items: center; justify-content: center; }
.ca-clear { font-size: 1.1rem; }
.ca-close:hover { background: rgba(255,255,255,0.06); color: var(--dash-text); }
.ca-clear:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
body.light-mode .ca-close:hover { background: rgba(0,0,0,0.05); }

/* Body / Messages */
.ca-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ca-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.65; word-break: break-word; white-space: pre-wrap; animation: ca-fade-in 0.2s ease; border: none !important; box-shadow: none !important; }
.ca-msg blockquote, .ca-msg q { border: none !important; margin: 0 !important; padding: 0 !important; font-style: normal !important; } /* OLIVER-CUSTOMER-AI-KILL-QUOTES */
@keyframes ca-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Bubbles (Fixed visibility & border bug) */
.ca-msg--user { align-self: flex-start; background: rgba(212, 168, 83, 0.2) !important; color: var(--dash-text); border-bottom-right-radius: 4px; }
body.light-mode .ca-msg--user { background: rgba(216, 27, 63, 0.12) !important; }
.ca-msg--assistant { align-self: flex-end; background: rgba(255, 255, 255, 0.06) !important; color: var(--dash-text); border-bottom-left-radius: 4px; }
body.light-mode .ca-msg--assistant { background: rgba(15, 23, 42, 0.06) !important; }

/* Markdown */
.ca-msg p { margin: 0 0 8px 0; }
.ca-msg p:last-child { margin-bottom: 0; }
.ca-msg strong { font-weight: 800; }
.ca-msg ul { margin: 8px 0; padding-right: 20px; }
.ca-msg li { margin-bottom: 4px; }
.ca-msg code { background: rgba(0,0,0,0.2); padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 0.85em; direction: ltr; display: inline-block; }
body.light-mode .ca-msg code { background: rgba(0,0,0,0.06); }
.ca-msg a { color: var(--dash-accent); text-decoration: none !important; font-weight: 700; }
body.light-mode .ca-msg a { color: #d81b3f; text-decoration: none !important; }

/* Typing */
.ca-empty { text-align: center; padding: 32px 16px; color: var(--dash-muted); font-size: 0.88rem; line-height: 1.7; }
.ca-typing { align-self: flex-end; display: inline-flex; align-items: center; gap: 4px; padding: 10px 16px; background: rgba(255, 255, 255, 0.06); border-radius: 14px; }
.ca-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--dash-muted); animation: ca-pulse 1.2s ease-in-out infinite; }
.ca-typing span:nth-child(2) { animation-delay: 0.15s; }
.ca-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ca-pulse { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* OLIVER-ASEMAN-STAGES-V1 */
.ca-typing::before {
    content: attr(data-stage, "در حال فکر کردن...");
    margin-left: 8px;
    opacity: 0.75;
    font-size: 0.85rem;
    transition: opacity .15s ease;
}
.ca-typing.stage-changing::before {
    animation: ca-stage-pulse .3s ease;
}
@keyframes ca-stage-pulse {
    0% { opacity: 0; }
    100% { opacity: 0.75; }
}

/* Form */
.ca-form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--dash-border); flex-shrink: 0; align-items: flex-end; background: var(--dash-card); }
.ca-input { flex: 1; min-height: 44px; max-height: 140px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.04); color: var(--dash-text); font: inherit; font-size: 0.92rem; resize: none; line-height: 1.6; outline: none; transition: border-color 0.15s; }
.ca-input:focus { border-color: var(--dash-accent); }
body.light-mode .ca-input { background: #f8fafc; }
body.light-mode .ca-input:focus { border-color: #d81b3f; }
.ca-send { padding: 0 18px; height: 44px; border-radius: 12px; border: none; background: var(--dash-accent, #d4a853); color: #0f1422; font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.15s ease; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ca-send:hover:not(:disabled) { filter: brightness(1.1); }
.ca-send:disabled { opacity: 0.5; cursor: not-allowed; }
body.light-mode .ca-send { background: #d81b3f; color: #ffffff; }

/* Status / Counter */
.ca-status { padding: 0 16px 12px; font-size: 0.82rem; color: #ef4444; display: none; }
.ca-status.is-visible { display: block; }
.ca-counter { position: absolute; bottom: 4px; left: 16px; font-size: 0.72rem; color: var(--dash-muted); opacity: 0.6; }
.ca-counter.is-warn { color: #ef4444; opacity: 1; }

/* Mobile Fullscreen (Flexbox with min-height fix) */
@media (max-width: 640px) {
    #customerAiDialog[open] {
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 0 !important;
        display: flex !important; /* Back to flex */
        flex-direction: column !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 999999 !important;
        box-sizing: border-box !important;
        background: var(--dash-card) !important;
        overflow: hidden !important;
    }
    #customerAiDialog .ca-header {
        flex: 0 0 auto !important;
        padding: 16px 20px !important;
        padding-top: max(16px, env(safe-area-inset-top, 16px)) !important;
        background: var(--dash-card) !important;
        border-bottom: 1px solid var(--dash-border) !important;
        z-index: 10 !important;
    }
    #customerAiDialog .ca-body {
        flex: 1 1 auto !important;
        min-height: 0 !important; /* CRITICAL FIX */
        overflow-y: auto !important;
        padding: 16px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    #customerAiDialog .ca-form {
        flex: 0 0 auto !important;
        display: flex !important;
        padding: 12px 16px !important;
        padding-bottom: max(80px, env(safe-area-inset-bottom, 80px)) !important; /* CLEAR MOBILE URL BAR */
        background: var(--dash-card) !important;
        border-top: 1px solid var(--dash-border) !important;
        z-index: 10 !important;
    }
    #customerAiDialog .ca-counter { display: none !important; }
}

/* Product Finder Cards inside Chat (Vertical Stacked, Horizontal Layout) */
.ca-product-grid {
    display: flex;
    flex-direction: column; /* Stack vertically */
    gap: 10px;
    margin-top: 12px;
    width: 100%;
}
.ca-product-card {
    text-decoration: none !important;
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: center;
    background: var(--dash-bg);
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dash-text);
    padding: 10px;
    transition: transform 0.15s, background 0.15s;
    width: 100%;
    box-sizing: border-box;
}
.ca-product-card:hover {
    background: var(--dash-border);
    transform: translateY(-2px);
}
.ca-product-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    flex-shrink: 0;
    margin-left: 12px; /* Space between image and text in RTL */
}
.ca-pc-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0; /* Crucial for text truncation */
}
.ca-pc-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dash-text);
    white-space: normal; /* Allow wrapping */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Max 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.ca-pc-price {
    font-size: 0.85rem;
    color: var(--dash-accent);
    font-weight: 800;
}
body.light-mode .ca-product-card { background: #fff; }
body.light-mode .ca-pc-price { color: #d81b3f; }

/* OLIVER-DASH-GREETING-V1: Suggestion Chips */
.dash-ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.dash-suggestion-chip {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.1), rgba(212, 168, 83, 0.02));
    border: 1px solid rgba(212, 168, 83, 0.3);
    color: var(--dash-accent, #d4a853);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: right;
}
.dash-suggestion-chip:hover {
    background: rgba(212, 168, 83, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
body.light-mode .dash-suggestion-chip {
    background: linear-gradient(135deg, rgba(216, 27, 63, 0.08), rgba(216, 27, 63, 0.02));
    border-color: rgba(216, 27, 63, 0.3);
    color: #d81b3f;
}
body.light-mode .dash-suggestion-chip:hover {
    background: rgba(216, 27, 63, 0.12);
}

/* AI Dynamic Feed */
.ai-feed {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 80px;
}
.ai-feed-line {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dash-text);
    font-weight: 500;
}
.line-greeting {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
    min-height: 1.8rem;
}
.line-rotating {
    min-height: 1.5rem;
    transition: opacity 0.3s ease;
    color: var(--dash-accent);
    font-weight: 600;
}
.line-suggestion {
    min-height: 1.5rem;
    margin-top: 4px;
}


/* Fullscreen Button (Desktop Only) */
.ca-fullscreen {
    display: none; /* Hidden by default */
    background: transparent;
    border: none;
    color: var(--dash-muted, #94a3b8);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: 0.15s;
    align-items: center;
    justify-content: center;
}
.ca-fullscreen:hover { background: rgba(255,255,255,0.06); color: var(--dash-text); }
body.light-mode .ca-fullscreen:hover { background: rgba(0,0,0,0.05); }

@media (min-width: 641px) {
    .ca-fullscreen { display: flex; }
    
    #customerAiDialog.is-fullscreen {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
    }
}


/* OLIVER-LIGHT-FIX-V1: Bulletproof light-mode overrides (works on any page) */
body.light-mode #customerAiDialog {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}
body.light-mode .ca-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
body.light-mode .ca-header h3 {
    color: #d81b3f !important;
}
body.light-mode .ca-close,
body.light-mode .ca-clear,
body.light-mode .ca-fullscreen {
    color: #64748b !important;
}
body.light-mode .ca-close:hover,
body.light-mode .ca-clear:hover,
body.light-mode .ca-fullscreen:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
body.light-mode .ca-clear:hover { color: #ef4444 !important; }
body.light-mode .ca-body {
    background: #ffffff !important;
}
body.light-mode .ca-msg--assistant {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: none !important;
}
body.light-mode .ca-msg--user {
    background: #fee2e2 !important;
    color: #7f1d1d !important;
    border: none !important;
}
body.light-mode .ca-msg a {
    color: #d81b3f !important;
}
body.light-mode .ca-empty {
    color: #64748b !important;
}
body.light-mode .ca-form {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}
body.light-mode .ca-input {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}
body.light-mode .ca-input::placeholder {
    color: #94a3b8 !important;
}
body.light-mode .ca-send {
    background: #d81b3f !important;
    color: #ffffff !important;
}
body.light-mode .ca-typing {
    background: #f1f5f9 !important;
    border: none !important;
}
body.light-mode .ca-typing span {
    background: #64748b !important;
}
body.light-mode .ca-product-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}
body.light-mode .ca-pc-title {
    color: #0f172a !important;
}
body.light-mode .ca-pc-price {
    color: #d81b3f !important;
}
body.light-mode .ca-status {
    color: #ef4444 !important;
}

/* OLIVER-DASH-AI-ASEMAN-V1 -- circular avatar + 2-line button label */
.dash-ai-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.25), rgba(212, 168, 83, 0.05));
    border: 1px solid rgba(212, 168, 83, 0.5);
    color: #d4a853;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.2);
}
body.light-mode .dash-ai-avatar {
    background: linear-gradient(135deg, rgba(216, 27, 63, 0.15), rgba(216, 27, 63, 0.04));
    border-color: rgba(216, 27, 63, 0.35);
    color: #d81b3f;
    box-shadow: 0 0 12px rgba(216, 27, 63, 0.15);
}
.dash-ai-avatar i {
    font-size: 0.95rem !important;
}
.dash-ai-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    text-align: right;
}
body[dir="ltr"] .dash-ai-btn-text {
    align-items: flex-start;
    text-align: left;
}
.dash-ai-btn-name {
    font-size: 0.95rem;
    font-weight: 700;
}
.dash-ai-btn-sub {
    font-size: 0.72rem;
    opacity: 0.75;
    font-weight: 400;
}
/* OLIVER-PERSONA-IMAGES-V1 -- dashboard button avatar image */
.dash-ai-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
/* OLIVER-DASH-3-BUTTONS-V1 -- wrapper + anchor fixes */
.dash-ai-buttons-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}
.dash-ai-buttons-wrap .dash-ai-btn {
    text-decoration: none !important;
    justify-content: flex-start;
    width: 100%;
}
@media (max-width: 768px) {
    .dash-ai-buttons-wrap {
        min-width: 0;
        width: 100%;
    }
    .dash-ai-buttons-wrap .dash-ai-btn {
        justify-content: center;
    }
}

/* OLIVER-AI-VOICE-PHASE2-V1 */
.ca-voice-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 6px 10px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.ca-voice-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ca-voice-btn.is-playing { color: var(--accent-cyan, #00f0ff); border-color: var(--accent-cyan, #00f0ff); background: rgba(0, 240, 255, 0.1); }
body.light-mode .ca-voice-btn { border-color: rgba(0, 0, 0, 0.1); color: #64748b; }
body.light-mode .ca-voice-btn:hover { background: #f1f5f9; color: #0f172a; }
body.light-mode .ca-voice-btn.is-playing { color: #d81b3f; border-color: #d81b3f; background: rgba(216, 27, 63, 0.05); }

/* OLIVER-AI-VOICE-FAST-V1 */
.ca-voice-btn.is-loading {
    padding: 6px 14px;
    min-width: 62px;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

/* OLIVER-AI-VOICE-SURGICAL-V1 */
.ca-voice-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 6px 10px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.ca-voice-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ca-voice-btn.is-playing { color: var(--accent-cyan, #00f0ff); border-color: var(--accent-cyan, #00f0ff); background: rgba(0, 240, 255, 0.1); }
.ca-voice-btn.is-loading { padding: 6px 14px; min-width: 62px; justify-content: center; font-variant-numeric: tabular-nums; }
body.light-mode .ca-voice-btn { border-color: rgba(0, 0, 0, 0.1); color: #64748b; }
body.light-mode .ca-voice-btn:hover { background: #f1f5f9; color: #0f172a; }
body.light-mode .ca-voice-btn.is-playing { color: #d81b3f; border-color: #d81b3f; background: rgba(216, 27, 63, 0.05); }


/* OLIVER-AI-VOICE-FINAL-V1 */
.voice-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 6px 10px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.voice-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.voice-btn.is-ready { color: var(--accent-cyan, #00f0ff); border-color: var(--accent-cyan, #00f0ff); background: rgba(0, 240, 255, 0.1); }
.voice-btn.is-loading { padding: 6px 14px; min-width: 62px; justify-content: center; font-variant-numeric: tabular-nums; }
body.light-mode .voice-btn { border-color: rgba(0, 0, 0, 0.1); color: #64748b; }
body.light-mode .voice-btn:hover { background: #f1f5f9; color: #0f172a; }
body.light-mode .voice-btn.is-ready { color: #d81b3f; border-color: #d81b3f; background: rgba(216, 27, 63, 0.05); }
