/* =========================================================================
   Zcloud brand theme overrides
   Chargé APRES le CSS Vite compilé (via <link>), sans rebuild nécessaire.
   But: unifier l'accent de marque (indigo -> bleu Zcloud) + polish visuel.
   ========================================================================= */

:root {
    --zc-blue-50: #eaf1ff;
    --zc-blue-100: #d4e2ff;
    --zc-blue-300: #7aa6ff;
    --zc-blue-400: #4d84ff;
    --zc-blue-500: #2f6bff;
    --zc-blue-600: #1e63ff;
    --zc-blue-700: #1a4fd0;
    --zc-blue-800: #163fa3;
    --zc-blue-900: #0b2a73;
    --zc-ink: #0a0f1c;
    --zc-ink-2: #0e1526;
    --zc-surface: #131c31;
}

/* ---- Accent primaire (helpers du thème) ---- */
.text-primary { color: var(--zc-blue-600) !important; }
.bg-primary { background-color: var(--zc-blue-600) !important; }

/* ---- Remap indigo -> bleu Zcloud (texte) ---- */
.text-indigo-400 { color: var(--zc-blue-400) !important; }
.text-indigo-500 { color: var(--zc-blue-500) !important; }
.text-indigo-600 { color: var(--zc-blue-600) !important; }
.text-indigo-700 { color: var(--zc-blue-700) !important; }
.hover\:text-indigo-500:hover { color: var(--zc-blue-500) !important; }
.hover\:text-indigo-600:hover { color: var(--zc-blue-600) !important; }
.hover\:text-indigo-700:hover { color: var(--zc-blue-700) !important; }
.dark\:hover\:text-indigo-700:hover { color: var(--zc-blue-700) !important; }

/* ---- Remap indigo -> bleu Zcloud (fond) ---- */
.bg-indigo-100 { background-color: var(--zc-blue-100) !important; }
.bg-indigo-400 { background-color: var(--zc-blue-400) !important; }
.bg-indigo-500 { background-color: var(--zc-blue-500) !important; }
.bg-indigo-600 { background-color: var(--zc-blue-600) !important; }
.bg-indigo-700 { background-color: var(--zc-blue-700) !important; }
.hover\:bg-indigo-500:hover { background-color: var(--zc-blue-500) !important; }
.hover\:bg-indigo-600:hover { background-color: var(--zc-blue-600) !important; }
.hover\:bg-indigo-700:hover { background-color: var(--zc-blue-700) !important; }

/* ---- Bordures / anneaux / outline ---- */
.border-indigo-500 { border-color: var(--zc-blue-500) !important; }
.border-indigo-600 { border-color: var(--zc-blue-600) !important; }
.focus\:border-indigo-500:focus { border-color: var(--zc-blue-500) !important; }
.ring-indigo-500 { --tw-ring-color: var(--zc-blue-500) !important; }
.focus\:ring-indigo-500:focus { --tw-ring-color: var(--zc-blue-500) !important; }
.focus-visible\:outline-indigo-600:focus-visible { outline-color: var(--zc-blue-600) !important; }

/* ---- Boutons du thème ---- */
.btn-primary {
    background-color: var(--zc-blue-600) !important;
    box-shadow: 0 6px 16px -6px rgba(30, 99, 255, .55) !important;
}
button.btn-primary:hover, a.btn-primary:hover, .prose a.btn-primary:hover,
.dark .btn-primary:hover { background-color: var(--zc-blue-700) !important; }
.btn-product { background-color: var(--zc-blue-500) !important; }
.btn-product:hover, .btn-product-pinned:hover { background-color: var(--zc-blue-700) !important; }
.btn-product-pinned { background-color: var(--zc-blue-600) !important; }

/* Passerelle de paiement sélectionnée */
.gateway-selected {
    border-color: var(--zc-blue-600) !important;
    background-color: var(--zc-blue-50) !important;
    color: var(--zc-blue-700) !important;
}

/* ---- Cartes: rendu plus net et moderne ---- */
.card, .card-sm {
    border-radius: 1rem !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px -12px rgba(16, 24, 40, .18) !important;
    border: 1px solid rgba(16, 24, 40, .06) !important;
}
.dark .card, .dark .card-sm {
    background-color: var(--zc-surface) !important;
    border: 1px solid rgba(255, 255, 255, .06) !important;
}

/* Liens accent globaux dans le contenu client/front */
a.text-blue-600, a.text-blue-500 { color: var(--zc-blue-600) !important; }

/* ---- Navbar publique Zcloud (dark) ---- */
.zc-navbar {
    background: linear-gradient(180deg, var(--zc-ink) 0%, var(--zc-ink-2) 100%) !important;
    border-bottom: 1px solid rgba(30, 99, 255, .18) !important;
    box-shadow: 0 4px 24px -12px rgba(0, 0, 0, .8) !important;
}
.zc-navbar a { color: #dbe4ff !important; }
.zc-navbar a:hover { color: #ffffff !important; }
.zc-logo-dark { background: transparent !important; }

/* Footer public: fond profond Zcloud */
.zc-footer-dark {
    background: linear-gradient(180deg, #0b1220 0%, var(--zc-ink) 100%) !important;
}

/* Petit lissage global */
.rounded-lg { border-radius: .625rem; }

/* =========================================================================
   Espace client (dashboard) - identité Zcloud
   ========================================================================= */

/* Sidebar: dégradé de marque profond (remplace le bleu clair d'origine) */
#client-sidebar,
.dark #client-sidebar {
    background: linear-gradient(180deg, #0a0f1c 0%, #0e1c3f 48%, #0a0f1c 100%) !important;
    border-right: 1px solid rgba(30, 99, 255, .18) !important;
}
#client-sidebar::before {
    background: radial-gradient(120% 60% at 50% 0%, rgba(30, 99, 255, .18) 0%, transparent 60%) !important;
}

/* En-tête sidebar: bandeau logo Zcloud */
.zc-sidebar-brand {
    background: linear-gradient(180deg, rgba(30,99,255,.12) 0%, transparent 100%);
}

/* Items actifs / dégradés de la sidebar -> bleu Zcloud */
#client-sidebar .from-blue-500\/30,
#client-sidebar .from-blue-500\/40 { --tw-gradient-from: rgba(30,99,255,.35) !important; }
#client-sidebar .to-cyan-500\/30,
#client-sidebar .to-cyan-500\/40 { --tw-gradient-to: rgba(45,107,255,.35) !important; }

/* Boutons d'action dégradés (blue->cyan) recolorés Zcloud */
.btn-action-with-icon,
.dark .btn-action-with-icon {
    background: linear-gradient(90deg, var(--zc-blue-600) 0%, var(--zc-blue-500) 100%) !important;
}

/* Bandeau d'accueil client */
.zc-client-hero {
    background: linear-gradient(120deg, #0a0f1c 0%, #12245a 55%, #1e63ff 140%);
    color: #eaf1ff;
    border: 1px solid rgba(30, 99, 255, .25);
    box-shadow: 0 20px 40px -24px rgba(30, 99, 255, .5);
}

/* -------------------------------------------------------------------------
   KPI tiles (Factures / Services / Solde / Demandes) - rendu pro
   ------------------------------------------------------------------------- */
.zc-stat {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 1rem;
    padding: 1.3rem 1.4rem 1.15rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.zc-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--zc-blue-600), var(--zc-blue-400));
}
.zc-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px -18px rgba(16, 24, 40, .38);
    border-color: rgba(30, 99, 255, .35);
}
.dark .zc-stat {
    background: var(--zc-surface);
    border-color: rgba(255, 255, 255, .07);
    box-shadow: none;
}
.zc-stat--blue::before   { background: linear-gradient(90deg, #1e63ff, #4d84ff); }
.zc-stat--green::before  { background: linear-gradient(90deg, #10b981, #34d399); }
.zc-stat--violet::before { background: linear-gradient(90deg, #7c3aed, #818cf8); }
.zc-stat--amber::before  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.zc-stat-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #667085;
    margin: 0;
}
.dark .zc-stat-label { color: #94a3b8; }
.zc-stat-value {
    margin-top: .2rem;
    font-size: 1.95rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
}
.dark .zc-stat-value { color: #ffffff; }
.zc-stat-icon {
    flex: none;
    width: 3rem;
    height: 3rem;
    border-radius: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .45);
}
.zc-stat-icon svg { width: 1.4rem; height: 1.4rem; }
.zc-stat-icon--blue   { background: linear-gradient(135deg, #1e63ff, #2f6bff); }
.zc-stat-icon--green  { background: linear-gradient(135deg, #10b981, #059669); }
.zc-stat-icon--violet { background: linear-gradient(135deg, #7c3aed, #6366f1); }
.zc-stat-icon--amber  { background: linear-gradient(135deg, #f59e0b, #f97316); }
.zc-stat-foot {
    margin-top: .95rem;
    padding-top: .7rem;
    border-top: 1px dashed rgba(16, 24, 40, .12);
    font-size: .75rem;
    color: #667085;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.dark .zc-stat-foot { border-top-color: rgba(255, 255, 255, .09); color: #94a3b8; }

/* En-têtes de sections (Mes services / factures / tickets) plus pro */
.zc-section-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}
.dark .zc-section-title { color: #fff; }
.zc-section-title .zc-dot {
    width: .55rem; height: 1.4rem; border-radius: 999px;
    background: linear-gradient(180deg, var(--zc-blue-600), var(--zc-blue-400));
}

/* Panneaux dashboard + états vides soignés */
.zc-panel {
    background: #ffffff;
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 1.1rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    overflow: hidden;
}
.zc-panel.h-full { height: 100%; }
.dark .zc-panel { background: var(--zc-surface); border-color: rgba(255, 255, 255, .07); box-shadow: none; }
.zc-panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.05rem 1.3rem;
    border-bottom: 1px solid rgba(16, 24, 40, .07);
}
.dark .zc-panel-head { border-bottom-color: rgba(255, 255, 255, .07); }
.zc-panel-link {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .8rem; font-weight: 600; color: var(--zc-blue-600); white-space: nowrap;
}
.zc-panel-link:hover { color: var(--zc-blue-700); }
.zc-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 2.6rem 1.5rem;
}
.zc-empty-icon {
    width: 3.6rem; height: 3.6rem; border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(30, 99, 255, .12), rgba(45, 107, 255, .12));
    color: var(--zc-blue-600); font-size: 1.5rem; margin-bottom: .9rem;
    border: 1px solid rgba(30, 99, 255, .2);
}
.zc-empty-title { font-weight: 700; color: #0f172a; }
.dark .zc-empty-title { color: #ffffff; }
.zc-empty-text { margin-top: .25rem; font-size: .85rem; color: #667085; max-width: 26rem; }
.dark .zc-empty-text { color: #94a3b8; }
.zc-empty-cta {
    margin-top: 1.05rem; display: inline-flex; align-items: center; gap: .5rem;
    padding: .6rem 1.15rem; border-radius: .7rem; font-weight: 600; font-size: .85rem;
    color: #fff; background: linear-gradient(90deg, var(--zc-blue-600), var(--zc-blue-500));
    box-shadow: 0 10px 22px -12px rgba(30, 99, 255, .7);
    transition: transform .2s ease, box-shadow .2s ease;
}
.zc-empty-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(30, 99, 255, .85); color: #fff; }

/* ================= Live Chat widget ================= */
.zc-chat { position: fixed; bottom: 22px; right: 22px; z-index: 9999; font-family: inherit; }
.zc-chat-fab {
    position: relative; width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--zc-blue-600), var(--zc-blue-500));
    box-shadow: 0 14px 30px -8px rgba(30, 99, 255, .7);
    transition: transform .2s ease, box-shadow .2s ease;
}
.zc-chat-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 20px 38px -8px rgba(30, 99, 255, .85); }
.zc-chat-unread {
    position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: #ef4444; color: #fff; font-size: .7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.zc-chat-panel {
    position: absolute; bottom: 74px; right: 0; width: 370px; max-width: calc(100vw - 30px);
    height: 540px; max-height: calc(100vh - 120px);
    background: #fff; border-radius: 1.1rem; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 30px 60px -15px rgba(10, 15, 28, .45); border: 1px solid rgba(16, 24, 40, .08);
    animation: zc-chat-in .22s ease;
}
@keyframes zc-chat-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.dark .zc-chat-panel { background: #0f1830; border-color: rgba(255, 255, 255, .08); }
.zc-chat-header {
    display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem;
    background: linear-gradient(135deg, var(--zc-ink) 0%, #12203f 100%); color: #fff;
}
.zc-chat-header-info { display: flex; align-items: center; gap: .65rem; }
.zc-chat-avatar {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--zc-blue-600), var(--zc-blue-400)); color: #fff; font-size: 1.1rem;
}
.zc-chat-title { font-weight: 700; font-size: .95rem; }
.zc-chat-status { font-size: .72rem; color: rgba(255, 255, 255, .7); display: flex; align-items: center; gap: .35rem; margin-top: 1px; }
.zc-chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.zc-chat-dot-amber { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
.zc-chat-x { background: rgba(255, 255, 255, .12); border: none; color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; }
.zc-chat-x:hover { background: rgba(255, 255, 255, .22); }
.zc-chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: #f6f8fc; display: flex; flex-direction: column; gap: .6rem; }
.dark .zc-chat-body { background: #0b1327; }
.zc-chat-loading { text-align: center; color: #94a3b8; font-size: .85rem; margin: auto; }
.zc-msg { display: flex; flex-direction: column; max-width: 82%; }
.zc-msg-me { align-self: flex-end; align-items: flex-end; }
.zc-msg-bot, .zc-msg-agent { align-self: flex-start; align-items: flex-start; }
.zc-msg-author { font-size: .68rem; color: #94a3b8; margin-bottom: 2px; padding: 0 .35rem; }
.zc-msg-bubble { padding: .55rem .8rem; border-radius: 1rem; font-size: .87rem; line-height: 1.35; white-space: pre-wrap; word-break: break-word; }
.zc-msg-me .zc-msg-bubble { background: linear-gradient(135deg, var(--zc-blue-600), var(--zc-blue-500)); color: #fff; border-bottom-right-radius: .3rem; }
.zc-msg-bot .zc-msg-bubble { background: #eaf1ff; color: #16264d; border-bottom-left-radius: .3rem; }
.dark .zc-msg-bot .zc-msg-bubble { background: #1b2a4d; color: #dce8ff; }
.zc-msg-agent .zc-msg-bubble { background: #fff; color: #16264d; border: 1px solid rgba(16, 24, 40, .08); border-bottom-left-radius: .3rem; }
.dark .zc-msg-agent .zc-msg-bubble { background: #16223f; color: #e5ecff; border-color: rgba(255,255,255,.07); }
.zc-msg-time { font-size: .62rem; color: #b0b8c9; margin-top: 2px; padding: 0 .35rem; }
.zc-msg-system { text-align: center; font-size: .72rem; color: #94a3b8; margin: .2rem 0; }
.zc-chat-input { display: flex; align-items: center; gap: .5rem; padding: .7rem; background: #fff; border-top: 1px solid rgba(16, 24, 40, .08); }
.dark .zc-chat-input { background: #0f1830; border-top-color: rgba(255, 255, 255, .08); }
.zc-chat-input input {
    flex: 1; border: 1px solid rgba(16, 24, 40, .14); border-radius: 999px; padding: .6rem .95rem; font-size: .87rem; outline: none;
    background: #f6f8fc; color: #0f172a;
}
.dark .zc-chat-input input { background: #0b1327; border-color: rgba(255,255,255,.1); color: #fff; }
.zc-chat-input input:focus { border-color: var(--zc-blue-500); box-shadow: 0 0 0 3px rgba(30, 99, 255, .15); }
.zc-chat-input button {
    width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer; color: #fff; font-size: 1rem;
    background: linear-gradient(135deg, var(--zc-blue-600), var(--zc-blue-500)); flex-shrink: 0;
}
.zc-chat-input button:disabled { opacity: .5; cursor: default; }
.zc-chat-actions { display: flex; align-items: center; gap: .25rem; }
.zc-chat-iconbtn { background: rgba(255,255,255,.12); border: none; color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.zc-chat-iconbtn:hover { background: rgba(255,255,255,.22); }
.zc-chat-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.zc-chat-typing { display: none; align-items: center; gap: 4px; padding: .25rem 1rem; font-size: .72rem; color: #94a3b8; background: #f6f8fc; }
.dark .zc-chat-typing { background: #0b1327; }
.zc-chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--zc-blue-500); display: inline-block; animation: zc-bounce 1s infinite; }
.zc-chat-typing span:nth-child(2) { animation-delay: .15s; }
.zc-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes zc-bounce { 0%,80%,100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

.zc-chat-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem .7rem 0; background: #fff; }
.dark .zc-chat-quick { background: #0f1830; }
.zc-chip { border: 1px solid rgba(30,99,255,.3); background: #eaf1ff; color: var(--zc-blue-700); border-radius: 999px; padding: .3rem .7rem; font-size: .76rem; font-weight: 600; cursor: pointer; }
.zc-chip:hover { background: #dbe7ff; }
.dark .zc-chip { background: #16223f; color: #cfe0ff; border-color: rgba(255,255,255,.12); }
.zc-chip-human { background: var(--zc-blue-600); color: #fff; border-color: var(--zc-blue-600); }
.zc-chip-human:hover { background: var(--zc-blue-700); }

.zc-chat-email { padding: .7rem; background: #fff; border-top: 1px solid rgba(16,24,40,.08); }
.dark .zc-chat-email { background: #0f1830; border-top-color: rgba(255,255,255,.08); }
.zc-chat-email-title { font-size: .78rem; color: #475467; margin-bottom: .5rem; }
.dark .zc-chat-email-title { color: #cbd5e1; }
.zc-chat-email input { width: 100%; border: 1px solid rgba(16,24,40,.14); border-radius: .6rem; padding: .55rem .8rem; font-size: .85rem; margin-bottom: .5rem; }
.dark .zc-chat-email input { background: #0b1327; color: #fff; border-color: rgba(255,255,255,.1); }
.zc-chat-email-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.zc-btn-primary { background: linear-gradient(135deg, var(--zc-blue-600), var(--zc-blue-500)); color: #fff; border: none; border-radius: .6rem; padding: .5rem .9rem; font-size: .8rem; font-weight: 600; cursor: pointer; }
.zc-btn-ghost { background: transparent; border: 1px solid rgba(16,24,40,.15); color: #475467; border-radius: .6rem; padding: .5rem .9rem; font-size: .8rem; cursor: pointer; }
.dark .zc-btn-ghost { color: #cbd5e1; border-color: rgba(255,255,255,.15); }

.zc-chat-closed { padding: 1rem; text-align: center; background: #fff; }
.dark .zc-chat-closed { background: #0f1830; }
.zc-chat-closed p { font-size: .82rem; color: #94a3b8; margin-bottom: .6rem; }

.zc-chat-history-head { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; font-weight: 700; color: #0f172a; border-bottom: 1px solid rgba(16,24,40,.08); background: #fff; }
.dark .zc-chat-history-head { color: #fff; background: #0f1830; border-bottom-color: rgba(255,255,255,.08); }
.zc-chat-history-head .zc-chat-iconbtn { background: rgba(16,24,40,.06); color: #0f172a; }
.dark .zc-chat-history-head .zc-chat-iconbtn { background: rgba(255,255,255,.08); color: #fff; }
.zc-chat-history-list { flex: 1; overflow-y: auto; padding: .6rem; background: #f6f8fc; display: flex; flex-direction: column; gap: .5rem; }
.dark .zc-chat-history-list { background: #0b1327; }
.zc-hist-item { text-align: left; background: #fff; border: 1px solid rgba(16,24,40,.08); border-radius: .8rem; padding: .6rem .75rem; cursor: pointer; }
.zc-hist-item:hover { border-color: var(--zc-blue-500); }
.dark .zc-hist-item { background: #14213d; border-color: rgba(255,255,255,.07); }
.zc-hist-top { display: flex; align-items: center; gap: .4rem; margin-bottom: .2rem; }
.zc-hist-date { font-size: .72rem; color: #94a3b8; }
.zc-hist-badge { font-size: .66rem; padding: .05rem .4rem; border-radius: 999px; background: #e5e7eb; color: #6b7280; }
.zc-hist-badge.zc-hist-open { background: #dcfce7; color: #166534; }
.zc-hist-unread { margin-left: auto; background: #ef4444; color: #fff; font-size: .66rem; font-weight: 700; border-radius: 999px; padding: .05rem .4rem; }
.zc-hist-preview { font-size: .8rem; color: #475467; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dark .zc-hist-preview { color: #cbd5e1; }

.zc-chat-rating { padding: 1rem; background: #fff; border-top: 1px solid rgba(16,24,40,.08); }
.dark .zc-chat-rating { background: #0f1830; border-top-color: rgba(255,255,255,.08); }
.zc-rating-title { font-size: .82rem; color: #475467; margin-bottom: .5rem; text-align: center; }
.dark .zc-rating-title { color: #cbd5e1; }
.zc-stars { display: flex; justify-content: center; gap: .25rem; margin-bottom: .6rem; }
.zc-stars button { background: none; border: none; cursor: pointer; font-size: 1.6rem; color: #f59e0b; line-height: 1; padding: 0 .1rem; }
.zc-chat-rating textarea { width: 100%; border: 1px solid rgba(16,24,40,.14); border-radius: .6rem; padding: .5rem .7rem; font-size: .82rem; margin-bottom: .5rem; resize: none; }
.dark .zc-chat-rating textarea { background: #0b1327; color: #fff; border-color: rgba(255,255,255,.1); }
.zc-rating-actions { display: flex; justify-content: flex-end; gap: .5rem; }

.zc-chat-rate-cta {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    padding: .55rem .8rem; margin: 0; background: linear-gradient(90deg, #fff7e6, #fffbf0);
    border-top: 1px solid rgba(245, 158, 11, .3); font-size: .8rem; color: #92600a;
}
.dark .zc-chat-rate-cta { background: linear-gradient(90deg, #2a2410, #241f14); color: #fcd34d; border-top-color: rgba(245,158,11,.25); }
.zc-chat-rate-cta > span { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.zc-chat-rate-cta button {
    display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
    background: linear-gradient(135deg, #f59e0b, #f7b733); color: #fff; border: none;
    border-radius: 999px; padding: .35rem .8rem; font-size: .78rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 6px 14px -6px rgba(245, 158, 11, .8);
}
.zc-chat-rate-cta button:hover { transform: translateY(-1px); }

.zc-closed-actions { display: flex; justify-content: center; gap: .5rem; }
.zc-hist-main { cursor: pointer; }
.zc-hist-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed rgba(16,24,40,.1); }
.dark .zc-hist-actions { border-top-color: rgba(255,255,255,.1); }
.zc-hist-act { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 600; padding: .25rem .55rem; border-radius: .5rem; border: 1px solid rgba(16,24,40,.12); background: #fff; color: #475467; cursor: pointer; }
.zc-hist-act:hover { border-color: var(--zc-blue-500); color: var(--zc-blue-600); }
.dark .zc-hist-act { background: #0f1830; color: #cbd5e1; border-color: rgba(255,255,255,.12); }
.zc-hist-danger { color: #dc2626; border-color: rgba(220,38,38,.25); }
.zc-hist-danger:hover { background: #fef2f2; border-color: #dc2626; color: #dc2626; }
.dark .zc-hist-danger { color: #f87171; }

@media (max-width: 480px) {
    .zc-chat { bottom: 16px; right: 16px; }
    .zc-chat-panel { height: 70vh; }
}
