:root { --sivih-primary: #FF5300; --sivih-primary-hover: #E04800; --sivih-surface: #FFFFFF; }
.sivih-chat-trigger { position: fixed; bottom: 24px; right: 24px; z-index: 99999; }
.sivih-chat-trigger button { background: var(--sivih-primary); color: #FFF; border: none; padding: 14px 22px; border-radius: 50px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 25px rgba(255,83,0,0.4); display: flex; align-items: center; gap: 8px; }
.sivih-chat-box { position: fixed; bottom: 90px; right: 24px; z-index: 99998; width: 400px; max-width: calc(100vw - 32px); height: 640px; background: #FFF; border-radius: 20px; box-shadow: 0 25px 50px rgba(0,0,0,0.25); display: flex; flex-direction: column; overflow: hidden; font-family: system-ui, -apple-system, sans-serif; transition: all 0.3s; }
.sivih-chat-box.sivih-chat-closed { opacity: 0; pointer-events: none; transform: translateY(20px); }
.sivih-chat-header { background: linear-gradient(135deg, var(--sivih-primary), #E04800); color: #FFF; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.sivih-chat-header-info { display: flex; align-items: center; gap: 12px; }
.sivih-chat-avatar { width: 44px; height: 44px; background: #FFF; color: var(--sivih-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.15); flex-shrink: 0; }
.sivih-avatar-img { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #FFF; color: var(--sivih-primary); }
.sivih-online-indicator { position: absolute; bottom: 0; right: 0; width: 11px; height: 11px; background: #10B981; border: 2px solid #FFF; border-radius: 50%; }
.sivih-chat-title-group h3 { margin: 0; font-size: 15.5px; font-weight: 700; color: #FFF; line-height: 1.25; }
.sivih-chat-subtitle { margin: 2px 0 0 0; font-size: 12px; color: rgba(255,255,255,0.9); display: flex; align-items: center; gap: 4px; }
.sivih-status-state { font-weight: 600; color: #A7F3D0; }
.sivih-status-typing-text { font-weight: 600; color: #FDE047; animation: sivihPulseText 1.5s infinite; }
@keyframes sivihPulseText { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.sivih-chat-header-actions { display: flex; align-items: center; gap: 6px; }
.sivih-chat-header-btn { background: rgba(255,255,255,0.18); border: none; color: #FFF; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
.sivih-chat-header-btn:hover { background: rgba(255,255,255,0.32); }
.sivih-chat-body { flex: 1; padding: 16px; overflow-y: auto; background: #F8FAFC; display: flex; flex-direction: column; gap: 12px; }
.sivih-msg-row { display: flex; gap: 10px; max-width: 86%; margin-bottom: 8px; }
.sivih-msg-row.user { align-self: flex-end; flex-direction: row-reverse; }
.sivih-msg-row.user .sivih-msg-bubble { background: var(--sivih-primary); color: #FFF; border-radius: 16px 16px 4px 16px; }
.sivih-msg-row.bot .sivih-msg-bubble { background: #FFF; border: 1px solid #E2E8F0; border-radius: 16px 16px 16px 4px; padding: 12px 16px; }
.sivih-chat-action-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--sivih-primary); color: #FFF !important; text-decoration: none; padding: 8px 14px; border-radius: 8px; font-weight: 600; margin-top: 8px; }
.sivih-chat-typing { padding: 8px 16px; display: flex; align-items: center; gap: 10px; }
.sivih-chat-typing.sivih-hidden { display: none; }
.sivih-typing-bubble { background: #FFF; border: 1px solid #E2E8F0; padding: 10px 14px; border-radius: 16px; border-bottom-left-radius: 4px; display: flex; align-items: center; gap: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.sivih-typing-label { font-size: 12.5px; color: #64748B; font-weight: 500; }
.sivih-typing-dots { display: flex; gap: 4px; }
.sivih-typing-dots span { width: 6px; height: 6px; background: var(--sivih-primary); border-radius: 50%; animation: sivihBounce 1.4s infinite ease-in-out both; }
.sivih-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.sivih-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes sivihBounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
.sivih-chat-footer { padding: 12px 16px; background: #FFF; border-top: 1px solid #E2E8F0; }
.sivih-chat-form { display: flex; align-items: center; gap: 10px; background: #F1F5F9; border-radius: 20px; padding: 8px 8px 8px 16px; border: 1px solid #E2E8F0; }
.sivih-chat-input { flex: 1; background: transparent; border: none; outline: none; resize: none; overflow: hidden !important; max-height: 120px; font-size: 14.5px; font-family: inherit; line-height: 1.4; padding: 4px 0; margin: 0; -ms-overflow-style: none; scrollbar-width: none; }
.sivih-chat-input::-webkit-scrollbar { display: none; }
.sivih-chat-send-btn { background: var(--sivih-primary); color: #FFF; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.sivih-chip { background: #FFF; border: 1px solid #CBD5E1; padding: 6px 12px; border-radius: 20px; font-size: 12.5px; cursor: pointer; margin-right: 6px; margin-bottom: 6px; }
.sivih-choice-btn { background: #F1F5F9; border: 1px solid var(--sivih-primary); color: var(--sivih-primary); padding: 8px 12px; border-radius: 8px; margin-top: 6px; cursor: pointer; width: 100%; text-align: left; }
.sivih-admin-wrap { margin: 20px 20px 0 0; }
.sivih-admin-header { display: flex; justify-content: space-between; align-items: center; background: #FFF; padding: 20px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.sivih-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.sivih-kpi-card { background: #FFF; padding: 20px; border-radius: 12px; border: 1px solid #E2E8F0; display: flex; align-items: center; gap: 12px; }
.sivih-kpi-value { font-size: 24px; font-weight: 800; }
.sivih-modal-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15,23,42,0.6); z-index: 100000; display: flex; align-items: center; justify-content: center; }
.sivih-modal-content { background: #FFF; width: 550px; border-radius: 16px; padding: 20px; }
.sivih-modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #E2E8F0; padding-bottom: 12px; }
.sivih-modal-close { background: none; border: none; font-size: 22px; cursor: pointer; }
.sivih-badge { background: #E0F2FE; color: #0369A1; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }