#indy-assistant {
  position: fixed;
  bottom: 120px; /* directly above WhatsApp icon */
  right: 32px;
  z-index: 9999;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #0f172a;
}
#indy-assistant.hidden { display: none; }

/* Avatar bubble */
.indy-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(250, 204, 21, 0.3);
  cursor: pointer;
  background: linear-gradient(135deg, 
    #ffe89d 0%, 
    #facc15 30%,
    #fbbf24 70%,
    #f87171 100%);
  box-shadow: 
    0 8px 24px rgba(250, 204, 21, 0.4),
    0 0 0 4px rgba(250, 204, 21, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.indy-avatar:hover { 
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 12px 32px rgba(250, 204, 21, 0.5),
    0 0 0 4px rgba(250, 204, 21, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border-color: rgba(250, 204, 21, 0.5);
}
.indy-avatar:focus-visible { 
  outline: 3px solid #facc15; 
  outline-offset: 4px; 
}

.indy-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,232,157,0.5), transparent 55%);
  animation: indy-pulse 2s infinite;
}
.indy-face { position: relative; font-size: 26px; }

.indy-bubble {
  position: absolute;
  right: 80px;
  bottom: 14px;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.98) 0%, 
    rgba(30, 41, 59, 0.95) 100%);
  color: #f8fafc;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  max-width: none;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(250, 204, 21, 0.2);
  border: 1px solid rgba(250, 204, 21, 0.25);
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.34, 1.56, 0.64, 1), 
              transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.indy-avatar.show-bubble .indy-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Chat card */
.indy-card {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: min(400px, 90vw);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.5) 50%, rgba(15, 23, 42, 0.5) 100%);
  border-radius: 24px;
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(250, 204, 21, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.25);
  overflow: hidden;
  transform: scale(0.96) translateY(10px);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 280ms ease;
}
.indy-card.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.indy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.5) 0%, 
    rgba(30, 41, 59, 0.5) 50%,
    rgba(15, 23, 42, 0.5) 100%);
  border-bottom: 1px solid rgba(250, 204, 21, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #facc15;
  position: relative;
}
.indy-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(250, 204, 21, 0.4) 50%, 
    transparent 100%);
}
.indy-id { display: flex; align-items: center; gap: 10px; }
.indy-pic {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15 0%, #fbbf24 50%, #f87171 100%);
  color: #020617;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 
    0 4px 16px rgba(250, 204, 21, 0.5),
    0 0 0 2px rgba(250, 204, 21, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
}
.indy-pic::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f87171);
  opacity: 0.3;
  z-index: -1;
  filter: blur(8px);
}
.indy-name { 
  font-weight: 700; 
  font-size: 16px; 
  color: #facc15;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.indy-role { 
  font-size: 12px; 
  opacity: 0.85; 
  color: #cbd5e1;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.indy-close {
  border: none;
  background: rgba(250, 204, 21, 0.1);
  color: #facc15;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.indy-close:hover { 
  background: rgba(250, 204, 21, 0.2);
  transform: rotate(90deg);
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.3);
}
.indy-close:focus-visible { 
  outline: 2px solid #facc15; 
  outline-offset: 2px; 
}

.indy-chat-container {
  display: flex;
  flex-direction: column;
  height: 520px;
  max-height: 72vh;
  background: linear-gradient(180deg, 
    rgba(15, 23, 42, 0.25) 0%, 
    rgba(30, 41, 59, 0.3) 100%);
}
.indy-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  background: 
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.03), transparent 50%),
    radial-gradient(circle at bottom right, rgba(248, 113, 113, 0.03), transparent 50%);
}
.indy-messages::-webkit-scrollbar { width: 8px; }
.indy-messages::-webkit-scrollbar-track { 
  background: rgba(15, 23, 42, 0.4);
  border-radius: 4px;
}
.indy-messages::-webkit-scrollbar-thumb { 
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.6), rgba(248, 113, 113, 0.6));
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.3);
}
.indy-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.8), rgba(248, 113, 113, 0.8));
}

.indy-message {
  display: flex;
  gap: 10px;
  animation: indy-fade-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  align-items: flex-end;
}
.indy-message.bot { align-self: flex-start; }
.indy-message.user { 
  align-self: flex-end; 
  flex-direction: row-reverse; 
  justify-content: flex-end;
  margin-left: 20%;
}

.indy-message.user {
  animation: indy-user-pop 0.3s ease-out;
}

.indy-message-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
  word-wrap: keep-all;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: normal;
}
.indy-message.bot .indy-message-bubble {
  background: linear-gradient(135deg, 
    rgba(30, 41, 59, 0.95) 0%, 
    rgba(15, 23, 42, 0.98) 100%);
  color: #e2e8f0;
  border-bottom-left-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.indy-message.user .indy-message-bubble {
  background: linear-gradient(135deg, 
    rgba(250, 204, 21, 0.98) 0%, 
    rgba(251, 191, 36, 0.95) 50%,
    rgba(248, 113, 113, 0.95) 100%);
  color: #020617;
  border-bottom-right-radius: 6px;
  box-shadow: 
    0 4px 16px rgba(250, 204, 21, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

@keyframes indy-user-pop {
  from {
    opacity: 0;
    transform: translateX(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.indy-input-area {
  padding: 16px 20px;
  border-top: 1px solid rgba(250, 204, 21, 0.15);
  background: linear-gradient(180deg, 
    rgba(15, 23, 42, 0.5) 0%, 
    rgba(30, 41, 59, 0.5) 100%);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}
.indy-input-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(250, 204, 21, 0.3) 50%, 
    transparent 100%);
}
.indy-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.indy-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 0 0 rgba(250, 204, 21, 0);
}
.indy-input::placeholder {
  color: #64748b;
}
.indy-input:focus { 
  border-color: #facc15;
  background: rgba(15, 23, 42, 1);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(250, 204, 21, 0.15);
}
.indy-send-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #facc15 0%, #fbbf24 50%, #f87171 100%);
  color: #020617;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 
    0 4px 12px rgba(250, 204, 21, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.indy-send-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.indy-send-btn:hover { 
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(250, 204, 21, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.indy-send-btn:hover::before {
  opacity: 1;
}
.indy-send-btn:active {
  transform: translateY(0);
}

.indy-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.indy-btn {
  padding: 11px 20px;
  border: 1px solid rgba(250, 204, 21, 0.4);
  border-radius: 12px;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.9) 0%, 
    rgba(30, 41, 59, 0.95) 100%);
  color: #facc15;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.indy-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.indy-btn:hover {
  background: linear-gradient(135deg, 
    rgba(250, 204, 21, 0.15) 0%, 
    rgba(248, 113, 113, 0.1) 100%);
  border-color: #facc15;
  transform: translateY(-2px);
  box-shadow: 
    0 4px 16px rgba(250, 204, 21, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.indy-btn:hover::before {
  opacity: 1;
}
.indy-btn.primary {
  background: linear-gradient(135deg, #facc15 0%, #fbbf24 50%, #f87171 100%);
  color: #020617;
  border-color: transparent;
  box-shadow: 
    0 4px 14px rgba(250, 204, 21, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.indy-btn.primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #facc15 50%, #f87171 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(250, 204, 21, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.indy-btn:active {
  transform: translateY(0);
}

.indy-service-card {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 14px;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.9) 0%, 
    rgba(30, 41, 59, 0.95) 100%);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.indy-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(250, 204, 21, 0.5) 50%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.indy-service-card:hover {
  border-color: #facc15;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.98) 0%, 
    rgba(30, 41, 59, 1) 100%);
  transform: translateX(6px) translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(250, 204, 21, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.indy-service-card:hover::before {
  opacity: 1;
}
.indy-service-card.expanded {
  border-color: #facc15;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.98) 0%, 
    rgba(30, 41, 59, 1) 100%);
  box-shadow: 
    0 8px 24px rgba(250, 204, 21, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.indy-service-card.expanded::before {
  opacity: 1;
}
.indy-service-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
.indy-service-icon { 
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(250, 204, 21, 0.3));
}
.indy-service-title {
  font-weight: 700;
  color: #facc15;
  font-size: 15px;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.indy-service-desc {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(250, 204, 21, 0.2);
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.7;
  display: none;
  animation: indy-fade-in 0.4s ease;
}
.indy-service-card.expanded .indy-service-desc { display: block; }
.indy-service-key-points {
  margin-top: 12px;
  padding-left: 18px;
  list-style: none;
}
.indy-service-key-points li {
  margin: 8px 0;
  font-size: 12px;
  color: #94a3b8;
  position: relative;
  padding-left: 20px;
  line-height: 1.6;
}
.indy-service-key-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #facc15;
  font-weight: 700;
  font-size: 14px;
}
.indy-service-best-for {
  margin-top: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, 
    rgba(250, 204, 21, 0.15) 0%, 
    rgba(248, 113, 113, 0.1) 100%);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 10px;
  font-size: 12px;
  color: #facc15;
  line-height: 1.6;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.indy-service-best-for strong { 
  color: #facc15;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

@keyframes indy-fade-in {
  from { 
    opacity: 0; 
    transform: translateY(12px) scale(0.96);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

@keyframes indy-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.indy-bubble {
  animation: indy-slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes indy-pulse {
  0% { transform: scale(0.96); opacity: 0.9; }
  50% { transform: scale(1.04); opacity: 0.65; }
  100% { transform: scale(0.96); opacity: 0.9; }
}

.w-14.h-14.md\:w-16.md\:h-16.rounded-full.bg-\[\#25D366\].shadow-xl.shadow-emerald-500\/40.flex.items-center.justify-center.border.border-white\/70.group-hover\:scale-105.group-hover\:shadow-2xl.transition-transform.duration-300 {
  background-color: transparent !important;
  background-image: url("/assets/chat_5045562.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

.w-14.h-14.md\:w-16.md\:h-16.rounded-full.bg-\[\#25D366\].shadow-xl.shadow-emerald-500\/40.flex.items-center.justify-center.border.border-white\/70.group-hover\:scale-105.group-hover\:shadow-2xl.transition-transform.duration-300 svg {
  display: none !important;
}

a[href*="wa.me"],
a[href*="whatsapp"],
a[aria-label*="WhatsApp"],
a[aria-label*="whatsapp"],
a[href*="api.whatsapp.com"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #ffde25;
  background-image: url("/assets/chat_5045562.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  overflow: hidden;
}
a[href*="wa.me"] img,
a[href*="whatsapp"] img,
a[aria-label*="WhatsApp"] img,
a[aria-label*="whatsapp"] img,
a[href*="api.whatsapp.com"] img {
  width: 0;
  height: 0;
  opacity: 0;
}


@media (max-width: 640px) {
  #indy-assistant {
    right: 16px;
    left: 16px;
    bottom: 96px;
  }
  .indy-avatar {
    width: 56px;
    height: 56px;
  }
  .indy-card {
    right: 0;
    left: 0;
    bottom: 78px;
    width: 100%;
    border-radius: 20px;
    max-width: none;
  }
  .indy-chat-container {
    height: auto;
    max-height: 65vh;
  }
  .indy-messages {
    padding: 14px;
  }
  .indy-input-area {
    padding: 12px 14px;
  }
  .indy-bubble {
    right: 70px;
    bottom: 10px;
    max-width: 70vw;
    white-space: normal;
    font-size: 12px;
    padding: 10px 12px;
  }
}
