.praesora-assistant-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.1));
  border: 1px solid rgba(201,168,76,0.35);
  color: #c9a84c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 30px rgba(201,168,76,0.08);
  transition: all 0.3s ease;
  animation: fab-pulse 3s ease-in-out infinite;
}
.praesora-assistant-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 25px rgba(0,0,0,0.6), 0 0 40px rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.5);
}
.praesora-assistant-fab.has-notification::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #50e880;
  box-shadow: 0 0 8px rgba(80,232,128,0.6);
  animation: notif-pulse 1.5s ease-in-out infinite;
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 30px rgba(201,168,76,0.08); }
  50% { box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 40px rgba(201,168,76,0.12); }
}
@keyframes notif-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.praesora-assistant-panel {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 9998;
  width: 380px;
  max-height: 520px;
  background: rgba(10,10,14,0.97);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 60px rgba(0,0,0,0.7), 0 0 40px rgba(201,168,76,0.04);
  animation: panel-in 0.25s ease-out;
}
.praesora-assistant-panel.open {
  display: flex;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pa-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(201,168,76,0.03);
}
.pa-header-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #50e880;
  box-shadow: 0 0 8px rgba(80,232,128,0.5);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
.pa-header-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e8e8f0;
  letter-spacing: 0.04em;
  flex: 1;
}
.pa-header-tag {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.52rem;
  color: #c9a84c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.pa-close {
  background: none;
  border: none;
  color: #5a5a6a;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  transition: color 0.2s;
}
.pa-close:hover { color: #e8e8f0; }

.pa-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 200px;
  max-height: 340px;
}
.pa-messages::-webkit-scrollbar { width: 4px; }
.pa-messages::-webkit-scrollbar-track { background: transparent; }
.pa-messages::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.15); border-radius: 2px; }

.pa-msg {
  font-size: 0.82rem;
  line-height: 1.65;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  max-width: 88%;
  word-wrap: break-word;
}
.pa-msg.assistant {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.1);
  color: #b8b8c4;
  align-self: flex-start;
  border-top-left-radius: 2px;
}
.pa-msg.user {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e8e8f0;
  align-self: flex-end;
  border-top-right-radius: 2px;
}
.pa-msg.suggestion {
  background: rgba(80,232,128,0.06);
  border: 1px solid rgba(80,232,128,0.12);
  color: #8ac08a;
  align-self: flex-start;
  border-top-left-radius: 2px;
  font-style: italic;
}
.pa-msg.typing {
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.08);
  color: #c9a84c;
  align-self: flex-start;
  font-style: italic;
  opacity: 0.7;
}

.pa-input-row {
  padding: 0.65rem 0.75rem;
  border-top: 1px solid rgba(201,168,76,0.08);
  display: flex;
  gap: 0.5rem;
  background: rgba(0,0,0,0.2);
}
.pa-input {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  color: #e8e8f0;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.pa-input:focus {
  border-color: rgba(201,168,76,0.3);
}
.pa-input::placeholder {
  color: #5a5a6a;
}
.pa-send {
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 6px;
  color: #c9a84c;
  padding: 0 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.pa-send:hover {
  background: rgba(201,168,76,0.2);
  border-color: rgba(201,168,76,0.4);
}
.pa-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .praesora-assistant-panel {
    right: 0.5rem;
    left: 0.5rem;
    bottom: 4.5rem;
    width: auto;
    max-height: 60vh;
  }
  .praesora-assistant-fab {
    bottom: 1rem;
    right: 1rem;
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }
}

@media (min-width: 1920px) {
  .praesora-assistant-fab {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    bottom: 2rem;
    right: 2rem;
  }
  .praesora-assistant-panel {
    width: 440px;
    max-height: 600px;
    bottom: 5.5rem;
    right: 2rem;
    border-radius: 14px;
  }
  .pa-header { padding: 1rem 1.2rem; }
  .pa-header-title { font-size: 1.05rem; }
  .pa-messages { padding: 1rem 1.2rem; gap: 0.75rem; max-height: 420px; }
  .pa-msg { font-size: 0.9rem; padding: 0.7rem 1rem; }
  .pa-input { font-size: 0.9rem; padding: 0.65rem 0.9rem; }
  .pa-send { padding: 0 0.9rem; font-size: 0.92rem; }
}

@media (min-width: 2560px) {
  .praesora-assistant-fab {
    width: 68px;
    height: 68px;
    font-size: 1.65rem;
    bottom: 2.5rem;
    right: 2.5rem;
  }
  .praesora-assistant-panel {
    width: 500px;
    max-height: 680px;
    bottom: 6rem;
    right: 2.5rem;
    border-radius: 16px;
  }
  .pa-header { padding: 1.15rem 1.4rem; }
  .pa-header-title { font-size: 1.15rem; }
  .pa-messages { padding: 1.1rem 1.4rem; gap: 0.85rem; max-height: 480px; }
  .pa-msg { font-size: 0.98rem; padding: 0.8rem 1.1rem; border-radius: 10px; }
  .pa-input { font-size: 0.98rem; padding: 0.75rem 1rem; }
  .pa-send { padding: 0 1rem; font-size: 1rem; }
}
