.messages-page {
  padding-top: 1.2rem;
}

.messages-container {
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(9, 9, 9, 0.95));
  border-radius: 16px;
  padding: 1rem;
}

.messages-header {
  margin-bottom: 1rem;
}

.messages-header h1 {
  font-size: 2rem;
}

.messages-header p {
  color: var(--text-muted);
}

.messages-list {
  display: grid;
  gap: 0.8rem;
}

.message-card {
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.95rem;
}

.message-card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.message-title-section h3 {
  margin-bottom: 0.2rem;
}

.message-date {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.message-content h4,
.admin-response h4 {
  margin-bottom: 0.35rem;
  color: var(--gold-bright);
}

.message-box,
.response-box,
.message-details {
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 0.75rem;
}

.message-box p,
.response-box p {
  color: var(--text-muted);
}

.waiting-response p {
  color: var(--text-soft);
  font-style: italic;
}

.details-toggle {
  color: var(--gold-bright);
  margin-top: 0.75rem;
}

.details-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.detail-item strong {
  color: var(--text-main);
  font-size: 0.86rem;
}

.detail-item span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.messages-actions {
  margin-top: 0.8rem;
}

.no-messages {
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.no-messages-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

@media (max-width: 720px) {
  .details-grid {
    grid-template-columns: 1fr;
  }

  .message-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
