.assistant-visual-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.assistant-phone {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 9 / 19.5;
  background: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 10px;
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.assistant-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 20px;
  border-radius: 999px;
  background: #050505;
  z-index: 2;
}

.assistant-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 30%),
    #111214;
  display: flex;
  flex-direction: column;
}

.assistant-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 14px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.assistant-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.assistant-chat-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.assistant-chat-name {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

.assistant-chat-status {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  line-height: 1.2;
}

.assistant-chat-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.assistant-msg {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.83rem;
  line-height: 1.45;
  word-break: break-word;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  animation: msgFadeIn 0.5s ease-out forwards;
}

@keyframes msgFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Sequential Delays (Fast) */
.assistant-msg:nth-child(1) {
  animation-delay: 0.5s;
}

.assistant-msg:nth-child(2) {
  animation-delay: 1.5s;
}

.assistant-msg:nth-child(3) {
  animation-delay: 3s;
}

.assistant-msg:nth-child(4) {
  animation-delay: 4.5s;
}

.assistant-msg:nth-child(5) {
  animation-delay: 6s;
}

.assistant-msg:nth-child(6) {
  animation-delay: 7.5s;
}

.assistant-msg-user {
  align-self: flex-end;
  background: #145c46;
  color: #fff;
  border-bottom-right-radius: 6px;
}

.assistant-msg-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  border-bottom-left-radius: 6px;
}

@media (max-width: 991px) {
  .assistant-phone {
    width: min(100%, 250px);
    border-radius: 28px;
  }

  .assistant-msg {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .assistant-phone {
    width: min(100%, 210px);
    /* Reduced from 230px to control height on small devices */
    padding: 8px;
    border-radius: 24px;
  }

  .assistant-phone-notch {
    height: 14px;
    top: 8px;
  }

  .assistant-chat-header {
    padding: 16px 12px 10px;
  }

  .assistant-chat-body {
    padding: 12px;
    gap: 8px;
  }

  .assistant-msg {
    font-size: 0.78rem;
    padding: 8px 10px;
  }
}