
.cethro-ai-launcher {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 2005;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 24px;
  border: none;
  background: linear-gradient(145deg, var(--cethro-primary), #8c5cf6);
  color: #fff;
  box-shadow: 0 26px 52px rgba(17, 16, 41, 0.32);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  text-decoration: none;
  overflow: visible;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.cethro-ai-launcher::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  background: rgba(140, 92, 246, 0.25);
  filter: blur(6px);
  z-index: -1;
}

.cethro-ai-launcher::after,
.cethro-ai-launcher .visually-hidden {
  display: none;
}

.cethro-ai-launcher i {
  font-size: 1.8rem;
}

.cethro-ai-launcher:hover,
.cethro-ai-launcher:focus {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px rgba(17, 16, 41, 0.35);
  color: #fff;
}

.cethro-ai-launcher:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(111, 63, 240, 0.35), 0 30px 60px rgba(17, 16, 41, 0.35);
}

.cethro-ai-panel {
  position: fixed;
  bottom: 6.5rem;
  right: 1.5rem;
  width: min(480px, calc(100% - 3rem));
  background: var(--cethro-surface);
  border-radius: 1.5rem;
  border: 1px solid rgba(93, 44, 200, 0.12);
  box-shadow: 0 34px 70px rgba(17, 16, 41, 0.32);
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
  z-index: 2004;
}

.cethro-ai-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cethro-ai-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid rgba(93, 44, 200, 0.12);
}

.cethro-ai-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--cethro-primary), #f45b69);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 16px 32px rgba(17, 16, 41, 0.25);
}

.cethro-ai-panel__top .btn-close {
  opacity: 0.6;
}

.cethro-ai-panel__top .btn-close:hover {
  opacity: 1;
}

.cethro-ai-subtitle {
  font-size: 0.9rem;
}

.cethro-ai-panel__body {
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cethro-ai-intro {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--cethro-muted);
}

.cethro-ai-suggestions {
  display: grid;
  gap: 0.8rem;
}

.cethro-ai-suggestion {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(93, 44, 200, 0.16);
  border-radius: 1.1rem;
  padding: 0.75rem 1rem;
  background: rgba(93, 44, 200, 0.08);
  color: var(--cethro-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.cethro-ai-suggestion:hover,
.cethro-ai-suggestion:focus {
  background: rgba(93, 44, 200, 0.18);
  transform: translateY(-2px);
}

.cethro-ai-suggestion__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(93, 44, 200, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--cethro-primary);
}

.cethro-ai-suggestion__label {
  flex: 1;
}

.cethro-ai-suggestion__badge {
  background: rgba(244, 91, 105, 0.16);
  color: var(--cethro-accent);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cethro-ai-panel__footer {
  padding: 1rem 1.75rem 1.5rem;
  background: rgba(93, 44, 200, 0.06);
  border-top: 1px solid rgba(93, 44, 200, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cethro-ai-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(93, 44, 200, 0.2);
  background: #fff;
  padding: 0.65rem 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(93, 44, 200, 0.08);
}

.cethro-ai-input__icon {
  color: var(--cethro-primary);
  font-size: 1.1rem;
}

.cethro-ai-input input[type="text"] {
  border: none;
  background: transparent;
  flex: 1;
  outline: none;
  font-size: 0.95rem;
  color: var(--cethro-text);
}

.cethro-ai-input button {
  border: none;
  border-radius: 0.8rem;
  padding: 0.4rem 0.75rem;
  background: linear-gradient(135deg, var(--cethro-primary), #6f3ff0);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cethro-ai-input button i {
  font-size: 1.05rem;
}

.cethro-ai-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--cethro-muted);
}

.cethro-ai-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(93, 44, 200, 0.08);
}

.cethro-ai-feedback {
  min-height: 1rem;
}

@media (max-width: 575.98px) {
  .cethro-ai-panel {
    right: 1.25rem;
    bottom: 6rem;
    width: calc(100% - 2.5rem);
  }
}

[data-bs-theme="dark"] .cethro-ai-panel {
  background: rgba(27, 27, 42, 0.96);
  border-color: rgba(111, 63, 240, 0.25);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.65);
}

[data-bs-theme="dark"] .cethro-ai-panel__footer {
  background: rgba(111, 63, 240, 0.12);
}

[data-bs-theme="dark"] .cethro-ai-suggestion {
  background: rgba(111, 63, 240, 0.15);
  border-color: rgba(111, 63, 240, 0.25);
  color: var(--cethro-text);
}

[data-bs-theme="dark"] .cethro-ai-suggestion__icon {
  background: rgba(111, 63, 240, 0.2);
  color: #fff;
}

[data-bs-theme="dark"] .cethro-ai-input {
  background: rgba(32, 32, 52, 0.95);
  border-color: rgba(111, 63, 240, 0.25);
}

[data-bs-theme="dark"] .cethro-ai-input input[type="text"] {
  color: var(--cethro-text);
}

[data-bs-theme="dark"] .cethro-ai-meta span {
  background: rgba(111, 63, 240, 0.18);
  color: var(--cethro-text);
}
