
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f2f6fb;
  color: #333;
}

/* Header */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 60px;
}

.top-bar h1 {
  font-size: 36px;
}

.auth button {
  margin-left: 10px;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  cursor: pointer;
}

.login {
  background: #ffffff;
  border: 1px solid #ccc;
}

.signup {
  background: #5b8fdc;
  color: white;
}

/* Subtitle */
.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  font-size: 18px;
}

/* Cards */
.card-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding-bottom: 60px;
}

.card {
  background: white;
  width: 260px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
  padding-bottom: 20px;
}

.card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.card h2 {
  margin: 15px 0 5px;
}

.card p {
  color: #777;
  margin-bottom: 15px;
}

.card button {
  background: #5b8fdc;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

.card button:hover {
  background: #4a7fc9;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(120deg, #eef2ff, #fdfbfb);
}

.card {
  background: white;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.card img {
  border-radius: 12px;
  height: 260px;
  object-fit: cover;
}

.chat-btn {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
}

.chat-btn:hover {
  opacity: 0.9;
}
.subtitle {
  text-align: center;
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}
.chat-modal {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 360px;
  height: 520px;
  background: rgba(20, 20, 30, 0.95);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

.hidden { display: none; }

.chat-header {
  display: flex;
  align-items: center;
  padding: 12px;
  background: rgba(255,255,255,0.04);
}

.chat-avatar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-right: 10px;
}

.chat-title h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}

.status {
  font-size: 12px;
  color: #7CFC98;
}

.close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
}

.chat-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
}

.message {
  margin-bottom: 10px;
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.message.ai {
  background: #2b2f44;
  color: #fff;
  align-self: flex-start;
}

.message.user {
  background: #4b6bff;
  color: #fff;
  align-self: flex-end;
  margin-left: auto;
}

.chat-input {
  display: flex;
  padding: 10px;
  background: rgba(255,255,255,0.04);
}

.chat-input input {
  flex: 1;
  background: #1a1d2e;
  border: none;
  border-radius: 10px;
  padding: 10px;
  color: #fff;
  outline: none;
}

.chat-input button {
  margin-left: 8px;
  background: #4b6bff;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  color: #fff;
  cursor: pointer;
}
