.xm-detail-wrapper {
  background: #f8f9fa;
  min-height: 100vh;
  padding: 32px 0 60px;
}

.xm-detail-carousel {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.xm-detail-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 24px;
}

.xm-detail-title {
  font-size: 30px;
  font-weight: 700;
  color: #202124;
  margin: 0;
}

.xm-detail-desc {
  font-size: 16px;
  color: #5f6368;
  line-height: 1.8;
  margin: 16px 0 32px;
}

.xm-detail-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: #f1f3f4;
  color: #5f6368;
}

.xm-detail-tag.ai {
  background: #fef7e0;
  color: #e37400;
}

.xm-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.xm-feature-item span {
  font-size: 15px;
  color: #202124;
}

.xm-custom-section {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 24px;
}

.xm-custom-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.xm-custom-section-desc {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 20px;
}

.xm-estimate-card {
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 100%);
  border: 1px solid #d2e3fc;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}

.xm-estimate-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.xm-estimate-price {
  font-size: 32px;
  font-weight: 700;
  color: #1a73e8;
}

.xm-estimate-range {
  font-size: 14px;
  color: #5f6368;
  margin-top: 4px;
}

.xm-estimate-breakdown {
  margin-top: 16px;
  border-top: 1px solid #d2e3fc;
  padding-top: 16px;
}

.xm-estimate-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: #3c4043;
}

.xm-chat-container {
  height: 400px;
  overflow-y: auto;
  padding: 16px;
  background: #f8f9fa;
}

.xm-chat-msg {
  margin-bottom: 16px;
  display: flex;
}

.xm-chat-msg.user {
  justify-content: flex-end;
}

.xm-chat-msg.assistant {
  justify-content: flex-start;
}

.xm-chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.xm-chat-msg.user .xm-chat-bubble {
  background: #1a73e8;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.xm-chat-msg.assistant .xm-chat-bubble {
  background: #fff;
  color: #202124;
  border: 1px solid #e8eaed;
  border-bottom-left-radius: 4px;
}

.xm-chat-typing {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.xm-chat-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bdc1c6;
  animation: xm-typing 1.4s infinite;
}

.xm-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.xm-chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes xm-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.xm-detail-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 600px) {
  .xm-detail-card, .xm-custom-section {
    padding: 24px;
  }
  .xm-detail-title {
    font-size: 24px;
  }
  .xm-detail-actions {
    flex-direction: column;
  }
}