/* ============================================
   BULAND PULSE — WEB CHAT WIDGET STYLES
============================================ */

.pulse-hero {
  min-height: 34vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
  background: #030006;
}
.pulse-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.02) 1px,transparent 1px);
  background-size: 60px 60px;
}
.pulse-hero-content {
  position: relative; z-index: 2;
  padding: 0 44px 48px;
  opacity: 0; transform: translateY(24px);
  animation: pulseHeroReveal 0.8s 0.2s ease forwards;
}
@keyframes pulseHeroReveal { to { opacity: 1; transform: translateY(0); } }
.pulse-hero-h {
  font-family: var(--font-display);
  font-size: clamp(28px,4.4vw,46px);
  font-weight: 500; color: var(--white);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.pulse-hero-h em { color: var(--purple-light); font-style: normal; }
.pulse-hero-sub {
  font-size: 15px; color: var(--white-60);
  max-width: 480px; line-height: 1.6;
}

.pulse-main {
  padding: 56px 44px 120px;
  background: var(--black-base);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pulse-card {
  width: 100%;
  max-width: 620px;
  background: var(--black-card);
  border: 1px solid var(--white-08);
  border-radius: 20px;
  padding: 32px;
}

/* Phone gate */
.pulse-gate-text {
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.65;
  margin-bottom: 20px;
}
.pulse-gate-form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pulse-gate-input {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--white-08);
  background: rgba(255,255,255,0.03);
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-body);
}
.pulse-gate-input::placeholder { color: var(--white-40); }
.pulse-gate-input:focus { outline: none; border-color: var(--purple-mid); }

.pulse-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.pulse-btn-primary {
  background: var(--purple-deep);
  color: var(--white);
}
.pulse-btn-primary:hover { background: var(--purple-mid); }
.pulse-btn-ghost {
  background: transparent;
  color: var(--white-40);
  padding: 8px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pulse-btn-ghost:hover { color: var(--white); }

/* Chat window */
.pulse-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 52vh;
  overflow-y: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.pulse-msg-row { display: flex; }
.pulse-msg-row.bot { justify-content: flex-start; }
.pulse-msg-row.user { justify-content: flex-end; }
.pulse-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.pulse-bubble.bot {
  background: rgba(155,48,180,0.1);
  color: var(--white);
  border: 1px solid rgba(155,48,180,0.18);
  border-bottom-left-radius: 4px;
}
.pulse-bubble.user {
  background: var(--purple-deep);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.pulse-typing {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
}
.pulse-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--white-40);
  animation: pulseTypingBounce 1.2s infinite ease-in-out;
}
.pulse-typing span:nth-child(2) { animation-delay: 0.15s; }
.pulse-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulseTypingBounce {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Input row */
.pulse-input-row {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--white-08);
  padding-top: 16px;
}
.pulse-text-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 24px;
  border: 1px solid var(--white-08);
  background: rgba(255,255,255,0.03);
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-body);
}
.pulse-text-input::placeholder { color: var(--white-40); }
.pulse-text-input:focus { outline: none; border-color: var(--purple-mid); }
.pulse-text-input:disabled { opacity: 0.5; }
.pulse-send-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--purple-deep);
  color: var(--white);
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.pulse-send-btn:hover { background: var(--purple-mid); }
.pulse-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Quick replies */
.pulse-quick-replies {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--white-08);
  flex-wrap: wrap;
}
.pulse-quick-btn {
  flex: 1;
  min-width: 44px;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid var(--white-08);
  background: rgba(255,255,255,0.02);
  color: var(--white-60);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pulse-quick-btn:hover {
  border-color: var(--purple-mid);
  background: rgba(155,48,180,0.1);
  color: var(--white);
}

/* End bridge */
.pulse-end-bridge {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--white-08);
}

.pulse-error {
  text-align: center;
  color: var(--white-60);
  font-size: 14px;
  padding: 30px 0;
}

@media (max-width: 640px) {
  .pulse-card { padding: 22px; }
  .pulse-gate-form { flex-direction: column; }
}
