.bot-container { position: relative; z-index:12000; }
.robot-overlay {
 position: fixed;
 right:3%;
 bottom:6%;
 width:360px;
 max-width:98%;
 z-index:12000;
 pointer-events: auto;
 transition: opacity400ms ease, transform400ms ease, left400ms ease, top400ms ease, right400ms ease, bottom400ms ease;
 opacity:1;
 }

.robot-processing {
 left:50%;
 top:50%;
 right:auto;
 bottom:auto;
 transform: translate(-50%,-50%);
}

.robot-hidden { opacity:0; transform: translateY(-10px); pointer-events: none; }

.robot-face {
 position: relative;
 background: linear-gradient(180deg,#eef2f7,#ffffff);
 border-radius:14px;
 padding:1rem;
 box-shadow:08px24px rgba(15,23,42,0.12);
 display: flex;
 flex-direction: column;
 align-items: center;
 gap:6px;
}

.robot-close {
 position:absolute;
 top:8px;
 right:8px;
 width:30px;
 height:30px;
 border:none;
 border-radius:50%;
 background: rgba(15,23,42,0.08);
 color:#0f172a;
 font-weight:800;
 cursor:pointer;
 box-shadow:04px12px rgba(15,23,42,0.12);
 transition: background120ms ease, transform120ms ease;
}

.robot-close:hover { background: rgba(15,23,42,0.14); transform: translateY(-1px); }
.robot-close:active { transform: translateY(0); }

.robot-eyes { display: flex; gap:12px; margin-bottom:10px; }
.robot-eye { width:26px; height:26px; background: #0b6d6a; border-radius:50%; box-shadow: inset -2px -2px6px rgba(255,255,255,0.6); }

.robot-mouth { width:140px; height:18px; background: #0b6d6a; border-radius:12px; margin-top:6px; transition: transform120ms linear, height120ms linear; transform-origin: center top; }
.robot-mouth.speaking { height:46px; border-bottom-left-radius:40px; border-bottom-right-radius:40px; transform: scaleY(1.0); background: linear-gradient(180deg,#0b6d6a,#0a5a57); }

.robot-message { margin-top:8px; font-size:0.95rem; color: #0f172a; font-weight:600; text-align: center; }

.robot-action { display:flex; gap:10px; width:100%; align-items:center; margin-top:6px; }
.robot-input { flex:1; padding:10px14px; border-radius:14px; border:1px solid #d5deea; background: linear-gradient(180deg, #ffffff, #f4f7fb); box-shadow: inset01px2px rgba(15,23,42,0.04),08px20px rgba(11,109,106,0.08); font-size:0.95rem; color:#0f172a; outline:none; font-weight:600; }
.robot-input:focus { border-color:#0b6d6a; box-shadow: inset01px2px rgba(15,23,42,0.04),010px22px rgba(11,109,106,0.12); }
.robot-run-button { padding:10px16px; border-radius:12px; background: linear-gradient(135deg,#0b6d6a,#0fa5a0); border:none; color:#ffffff; font-weight:700; letter-spacing:0.01em; box-shadow:06px16px rgba(15,23,42,0.18); cursor:pointer; transition: transform150ms ease, box-shadow150ms ease; }
.robot-run-button:hover { transform: translateY(-1px); box-shadow:010px22px rgba(15,23,42,0.22); }
.robot-run-button:active { transform: translateY(0); box-shadow:06px16px rgba(15,23,42,0.18); }

.robot-mic-button {
 padding:10px12px;
 border-radius:12px;
 border:none;
 background: linear-gradient(135deg,#0b6d6a,#0fa5a0);
 color:#fff;
 display:inline-flex;
 align-items:center;
 gap:6px;
 box-shadow:06px16px rgba(15,23,42,0.18);
 cursor:pointer;
 transition: transform150ms ease, box-shadow150ms ease, background150ms ease;
}

.robot-mic-button.recording {
 background: #dc3545;
 box-shadow:0000 rgba(220,53,69,0.45);
 animation: robot-pulse1.5s infinite;
}

.robot-mic-button:disabled {
 opacity:0.7;
 cursor: not-allowed;
}

.robot-mic-status {
 width:100%;
 text-align:center;
 font-size:0.9rem;
 color:#0f172a;
 background: rgba(15,23,42,0.05);
 border-radius:12px;
 padding:6px10px;
 margin-top:4px;
 }

@keyframes robot-pulse {
0% { box-shadow:0000 rgba(220,53,69,0.45); }
70% { box-shadow:00016px rgba(220,53,69,0); }
100% { box-shadow:0000 rgba(220,53,69,0); }
}

@media (max-width:576px) {
 .robot-overlay { bottom:6%; width:280px; right:4%; }
}
