:root {
  --primary: #4b1d6d;
  --secondary: #d4af37;
  --bg: #0f0a1a;
  --glass: rgba(255, 255, 255, 0.05);
  --user-bubble: #4b1d6d;
  --ai-bubble: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: white;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 100;
}

.header img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  object-fit: cover;
}

.header-info h1 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--secondary);
}

.header-info span {
  font-size: 0.8rem;
  color: #888;
}

.chat-container {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  scroll-behavior: smooth;
  background: radial-gradient(
    circle at top right,
    rgba(75, 29, 109, 0.2),
    transparent
  );
}

.chat-container::-webkit-scrollbar {
  width: 6px;
}
.chat-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.message {
  max-width: 80%;
  padding: 1.2rem 1.5rem;
  border-radius: 20px;
  font-size: 1rem;
  line-height: 1.6;
  animation: fadeIn 0.4s ease-out;
  position: relative;
}

.ai-message {
  align-self: flex-start;
  background: var(--ai-bubble);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-message {
  align-self: flex-end;
  background: var(--user-bubble);
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.options-grid {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.opt-btn {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.opt-btn:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: scale(1.05);
}

.input-area {
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 1rem;
}

input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  color: white;
  font-family: inherit;
  outline: none;
}

input:focus {
  border-color: var(--secondary);
}

.send-btn {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.recommendation {
  background: linear-gradient(
    135deg,
    rgba(75, 29, 109, 0.4),
    rgba(212, 175, 55, 0.1)
  );
  border: 1px solid var(--secondary);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 1rem;
  text-align: center;
}

.recommendation h3 {
  color: var(--secondary);
  margin-top: 0;
}
.recommendation .btn-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: var(--secondary);
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typing {
  display: flex;
  gap: 5px;
}
.dot {
  width: 8px;
  height: 8px;
  background: #888;
  border-radius: 50%;
  animation: bounce 1.4s infinite;
}
.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
}

.home-btn {
  margin-left: auto;
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
}
