/* ───────────── Property AI floating button + panel ───────────── */

.ai-fab {
  position: fixed; right: 24px; bottom: 160px; z-index: 56;
  width: 60px; height: 60px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, #d8a843, #c89a3c 50%, #a47620);
  color: #0a0807; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 36px rgba(200,154,60,0.32), 0 4px 12px rgba(10,8,7,0.40);
  transition: transform 320ms cubic-bezier(0.77,0,0.175,1), box-shadow 320ms ease;
}
.ai-fab:hover { transform: translateY(-3px) rotate(-2deg); box-shadow: 0 18px 44px rgba(200,154,60,0.45), 0 6px 16px rgba(10,8,7,0.50); }
.ai-fab-glow {
  position: absolute; inset: -6px; border-radius: 999px;
  background: radial-gradient(circle, rgba(200,154,60,0.4) 0%, rgba(200,154,60,0) 70%);
  filter: blur(8px); pointer-events: none; opacity: 0.9;
  animation: ai-fab-pulse 2.6s ease-in-out infinite;
}
@keyframes ai-fab-pulse {
  0%,100% { transform: scale(1); opacity: 0.85; }
  50%     { transform: scale(1.18); opacity: 0.35; }
}
.ai-fab-dot {
  position: absolute; top: 4px; right: 4px;
  width: 12px; height: 12px; border-radius: 999px;
  background: #ef4444; border: 2px solid #0f0d0b;
}

/* Panel */
.ai-panel {
  position: fixed; right: 24px; bottom: 90px; z-index: 57;
  width: 380px; max-width: calc(100vw - 32px);
  height: 580px; max-height: calc(100vh - 120px);
  background: #15110d;
  border: 1px solid rgba(244,237,227,0.10);
  border-radius: 18px;
  box-shadow: 0 28px 72px rgba(0,0,0,0.55), 0 6px 18px rgba(0,0,0,0.35);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(24px) scale(0.96); pointer-events: none;
  transition: opacity 320ms cubic-bezier(0.22,0.61,0.36,1), transform 320ms cubic-bezier(0.22,0.61,0.36,1);
}
.ai-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.ai-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid rgba(244,237,227,0.08);
  background: linear-gradient(180deg, rgba(200,154,60,0.06), rgba(200,154,60,0));
}
.ai-id { display: flex; align-items: center; gap: 12px; }
.ai-orb {
  width: 36px; height: 36px; border-radius: 999px;
  background: linear-gradient(135deg, #d8a843, #c89a3c, #a47620);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(244,237,227,0.18), inset 0 1px 0 rgba(255,255,255,0.4);
}
.ai-name { font-family: 'Clash Display', 'Satoshi', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; color: #f4ede3; }
.ai-status { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,237,227,0.55); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.ai-pulse { width: 7px; height: 7px; border-radius: 999px; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,0.6); animation: ai-pulse 1.8s ease-in-out infinite; }
@keyframes ai-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.ai-close {
  width: 32px; height: 32px; border-radius: 999px;
  background: rgba(244,237,227,0.06); border: 1px solid rgba(244,237,227,0.10);
  color: #f4ede3; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background 200ms ease;
}
.ai-close:hover { background: rgba(244,237,227,0.12); }

.ai-scroll {
  flex: 1; overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.ai-scroll::-webkit-scrollbar { width: 6px; }
.ai-scroll::-webkit-scrollbar-thumb { background: rgba(244,237,227,0.15); border-radius: 999px; }

.ai-msg {
  font-size: 13.5px; line-height: 1.55;
  padding: 11px 14px; border-radius: 14px; max-width: 84%; word-wrap: break-word;
  animation: ai-msg-in 280ms cubic-bezier(0.22,0.61,0.36,1) both;
}
@keyframes ai-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ai-assistant {
  background: rgba(244,237,227,0.06); color: #f4ede3;
  border: 1px solid rgba(244,237,227,0.06);
  border-bottom-left-radius: 6px; align-self: flex-start;
}
.ai-user {
  background: linear-gradient(135deg, #d8a843, #c89a3c); color: #0a0807;
  border-bottom-right-radius: 6px; align-self: flex-end; font-weight: 500;
}

.ai-typing { display: inline-flex; gap: 4px; align-items: center; }
.ai-typing span { width: 6px; height: 6px; border-radius: 999px; background: rgba(244,237,227,0.6); animation: ai-blink 1.2s infinite; }
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes ai-blink {
  0%,80%,100% { opacity: 0.25; transform: translateY(0); }
  40%         { opacity: 1; transform: translateY(-3px); }
}

.ai-quick {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 18px 12px; border-top: 1px solid rgba(244,237,227,0.05);
  padding-top: 14px;
}
.ai-chip {
  font-size: 11px; padding: 8px 12px; border-radius: 999px;
  background: rgba(244,237,227,0.04); color: #d8cfc1;
  border: 1px solid rgba(244,237,227,0.10);
  cursor: pointer; transition: all 200ms ease;
}
.ai-chip:hover { background: rgba(200,154,60,0.10); border-color: rgba(200,154,60,0.4); color: #f4ede3; }

.ai-input-row {
  display: flex; gap: 8px; padding: 14px 14px 12px;
  border-top: 1px solid rgba(244,237,227,0.08);
  background: rgba(10,8,7,0.4);
}
.ai-input {
  flex: 1; background: rgba(244,237,227,0.04); border: 1px solid rgba(244,237,227,0.10);
  border-radius: 999px; padding: 11px 16px; font-family: inherit; font-size: 13.5px; color: #f4ede3; outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}
.ai-input::placeholder { color: rgba(244,237,227,0.40); }
.ai-input:focus { border-color: rgba(200,154,60,0.55); background: rgba(244,237,227,0.07); }
.ai-send {
  width: 42px; height: 42px; border-radius: 999px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #d8a843, #c89a3c); color: #0a0807;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}
.ai-send:hover:not(:disabled) { transform: translateX(2px); }
.ai-send:disabled { opacity: 0.35; cursor: not-allowed; }

.ai-foot { padding: 0 18px 12px; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,237,227,0.30); text-align: center; }

/* Mobile */
@media (max-width: 480px) {
  .ai-fab { bottom: 152px; right: 16px; width: 54px; height: 54px; }
  .ai-panel { right: 12px; left: 12px; bottom: 80px; width: auto; height: 70vh; max-height: 580px; }
}
