.kairo-ai-floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  border: 1px solid rgba(120, 170, 255, 0.45);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(59, 130, 246, 0.35);
}

.kairo-ai-floating:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(124, 58, 237, 0.42);
}

.kairo-ai-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 10, 25, 0.72);
  backdrop-filter: blur(10px);
}

.kairo-ai-modal {
  width: min(920px, calc(100vw - 32px));
  max-height: 88vh;
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(120, 170, 255, 0.28);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  color: #e5e7eb;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.kairo-ai-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.kairo-ai-header h2 {
  margin: 0;
  font-size: 20px;
  color: #ffffff;
}

.kairo-ai-subtitle {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 12px;
}

.kairo-ai-close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.kairo-ai-body {
  padding: 22px;
}

.kairo-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.kairo-ai-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kairo-ai-field label {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

.kairo-ai-field input,
.kairo-ai-field select,
.kairo-ai-field textarea {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  border-radius: 14px;
  padding: 11px 12px;
  outline: none;
  font-size: 14px;
}

.kairo-ai-field input:focus,
.kairo-ai-field select:focus,
.kairo-ai-field textarea:focus {
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.kairo-ai-field textarea {
  min-height: 90px;
  resize: vertical;
}

.kairo-ai-full {
  grid-column: 1 / -1;
}

.kairo-ai-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.kairo-ai-primary {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.kairo-ai-secondary {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 800;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.75);
}

.kairo-ai-result {
  margin-top: 18px;
  white-space: pre-wrap;
  line-height: 1.55;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.78);
  padding: 16px;
  min-height: 120px;
  color: #e5e7eb;
}

.kairo-ai-note {
  margin-top: 12px;
  color: #94a3b8;
  font-size: 12px;
}

@media (max-width: 720px) {
  .kairo-ai-grid {
    grid-template-columns: 1fr;
  }

  .kairo-ai-floating {
    right: 14px;
    bottom: 14px;
  }
}
