#messages-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
  min-height: 70vh;
}

#messages-header {
  margin-bottom: 40px;
}

#messages-header h1 {
  font-size: 3rem;
  color: #112f5a;
  margin-bottom: 10px;
}

#messages-header p {
  color: #666;
  font-size: 1.1rem;
}

#conversations-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.conversation-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  background: #fffaf4;
  border: 1px solid rgba(17, 47, 90, 0.08);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.conversation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.conversation-image {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.conversation-image img,
.conversation-image span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.conversation-image img {
  object-fit: cover;
}

.conversation-image span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #112f5a;
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
}

.conversation-info {
  flex: 1;
  min-width: 0;
}

.conversation-info h2 {
  margin: 0 0 6px;
  color: #112f5a;
  font-size: 1.4rem;
}

.conversation-type {
  margin: 0 0 8px;
  color: #9b8c7a;
  font-size: 0.9rem;
}

.conversation-preview {
  margin: 0;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-time {
  color: #999;
  font-size: 0.9rem;
  text-align: right;
  min-width: 140px;
}

.empty-messages {
  text-align: center;
  background: #fffaf4;
  border-radius: 24px;
  padding: 60px 30px;
}

.empty-messages h2 {
  color: #112f5a;
  margin-bottom: 12px;
}

.empty-messages p {
  color: #666;
  margin-bottom: 24px;
}

.empty-messages a {
  display: inline-block;
  background: #112f5a;
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
}

@media (max-width: 700px) {
  .conversation-card {
    padding: 18px;
    gap: 14px;
  }

  .conversation-time {
    display: none;
  }

  .conversation-image {
    width: 56px;
    height: 56px;
  }

  #messages-header h1 {
    font-size: 2.3rem;
  }
}