/* Repliant Arc Chat Widget — Dark Amber Theme */

.repliant-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.repliant-chat-launcher:hover {
  transform: translateY(-3px);
}

.repliant-chat-launcher-inner {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.repliant-chat-launcher-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border: 2px solid rgba(245,166,35,0.6);
  box-shadow: 0 8px 28px rgba(245,166,35,0.5);
}

.repliant-chat-launcher-ring1 {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(245,166,35,0.55);
  animation: launcherRing 2.2s ease-in-out infinite;
  box-shadow: 0 0 14px 3px rgba(245,166,35,0.4);
}

.repliant-chat-launcher-ring2 {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(245,166,35,0.2);
  animation: launcherRing 2.2s ease-in-out infinite 0.55s;
}

.repliant-chat-launcher-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: #22C55E;
  border-radius: 50%;
  border: 2px solid #0A0A0A;
  animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes launcherRing {
  0%,100%{transform:scale(1);opacity:.55}
  50%{transform:scale(1.04);opacity:1}
}
@keyframes badgePulse {
  0%,100%{opacity:1}
  50%{opacity:.4}
}

.repliant-chat-window {
  position: fixed;
  right: 24px;
  bottom: 80px;
  width: min(380px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 110px));
  z-index: 9999;
  background: #141414;
  color: #ffffff;
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  display: none;
  overflow: hidden;
  font-family: 'Inter', Arial, sans-serif;
}

.repliant-chat-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #F5A623, transparent);
  z-index: 1;
}

.repliant-chat-window.open {
  display: flex;
  flex-direction: column;
  animation: chatSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.repliant-chat-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: #1C1C1C;
  flex-shrink: 0;
}

.repliant-chat-header-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.repliant-chat-header-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(245,166,35,0.45);
  display: block;
}

.repliant-chat-header-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(245,166,35,0.6);
  animation: launcherRing 2.2s ease-in-out infinite;
  box-shadow: 0 0 10px 2px rgba(245,166,35,0.35);
}

.repliant-chat-header-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  background: #22C55E;
  border-radius: 50%;
  border: 2px solid #1C1C1C;
  animation: badgePulse 1.5s ease-in-out infinite;
}

.repliant-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.repliant-chat-actions-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.repliant-chat-title {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

.repliant-chat-subtitle {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.repliant-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #0A0A0A;
  scroll-behavior: smooth;
}

.repliant-chat-messages::-webkit-scrollbar {
  width: 4px;
}
.repliant-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.repliant-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(245,166,35,0.3);
  border-radius: 4px;
}

.repliant-chat-bubble {
  max-width: 86%;
  margin-bottom: 10px;
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  animation: bubblePop 0.25s ease;
}

@keyframes bubblePop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.repliant-chat-bubble.bot {
  background: #1C1C1C;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.07);
  border-top-left-radius: 6px;
}

.repliant-chat-bubble.user {
  background: #F5A623;
  color: #0A0A0A;
  margin-left: auto;
  border-top-right-radius: 6px;
  font-weight: 500;
}

.repliant-chat-status {
  padding: 4px 16px 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  min-height: 20px;
  font-style: italic;
}

.repliant-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: #141414;
  flex-shrink: 0;
}

.repliant-chat-input {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: #1C1C1C;
  color: #ffffff;
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Inter', Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.repliant-chat-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.repliant-chat-input:focus {
  border-color: rgba(245,166,35,0.5);
  background: rgba(245,166,35,0.04);
}

.repliant-chat-submit {
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  background: #F5A623;
  color: #0A0A0A;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 13px;
  transition: all 0.2s;
  white-space: nowrap;
}

.repliant-chat-submit:hover {
  box-shadow: 0 4px 16px rgba(245,166,35,0.4);
  transform: translateY(-1px);
}

.repliant-chat-close {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 7px 13px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  transition: all 0.2s;
  margin-left: 8px;
}

.repliant-chat-close:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.3);
}

@media (max-width: 640px) {
  .repliant-chat-window {
    right: 12px;
    bottom: 90px;
    width: calc(100vw - 24px);
    height: calc(100vh - 110px);
    border-radius: 20px;
  }
  .repliant-chat-launcher {
    right: 12px;
    bottom: 12px;
  }
}
