
#smartbet-assistant-root { position: relative; z-index: 9999; }

.sb-assist-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #14532d);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.sb-assist-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.35);
  border-color: rgba(34, 197, 94, 0.9);
}

.sb-assist-launcher .sb-assist-pulse {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  animation: sb-assist-pulse 2s infinite;
}

@keyframes sb-assist-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35); }
  70% { box-shadow: 0 0 0 12px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.sb-assist-launcher .sb-assist-status {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0f172a;
}

.sb-assist-window {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 340px;
  height: 460px;
  background: rgba(2, 6, 23, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.sb-assist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.35), rgba(21, 128, 61, 0.35));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.sb-assist-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-assist-title h3 {
  margin: 0;
  font-size: 14px;
  color: #e2e8f0;
  font-weight: 700;
}

.sb-assist-title span {
  font-size: 11px;
  color: #22c55e;
}

.sb-assist-header-actions button {
  background: transparent;
  border: none;
  color: #cbd5f5;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
}

.sb-assist-header-actions button:hover {
  background: rgba(148, 163, 184, 0.15);
}

.sb-assist-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

.sb-assist-message {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.sb-assist-message.user { flex-direction: row-reverse; }

.sb-assist-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sb-assist-avatar.assistant { background: linear-gradient(135deg, #22c55e, #16a34a); }
.sb-assist-avatar.user { background: linear-gradient(135deg, #f97316, #ef4444); }

.sb-assist-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.4;
  color: #f8fafc;
}

.sb-assist-bubble.assistant {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.sb-assist-bubble.user {
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.45);
}

.sb-assist-typing {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #94a3b8;
}

.sb-assist-footer {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.sb-assist-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.sb-assist-quick button {
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 11px;
  cursor: pointer;
}

.sb-assist-quick button:hover {
  background: rgba(34, 197, 94, 0.2);
}

.sb-assist-input-row {
  display: flex;
  gap: 8px;
}

.sb-assist-input {
  flex: 1;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  padding: 0 10px;
  font-size: 12px;
}

.sb-assist-input::placeholder { color: #94a3b8; }

.sb-assist-send {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  cursor: pointer;
}

.sb-assist-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sb-assist-minimized {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 6, 23, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 8px 12px;
  border-radius: 14px;
  color: #e2e8f0;
  cursor: pointer;
}

.sb-assist-hidden { display: none !important; }

@media (max-width: 520px) {
  .sb-assist-window {
    right: 12px;
    left: 12px;
    width: auto;
    height: 70vh;
  }
  .sb-assist-launcher, .sb-assist-minimized {
    right: 12px;
    bottom: 12px;
  }
}
