/* ==========================================================================
   app.css — صفحه‌های ناحیه کاربری (علاقه‌مندی‌ها، پیام‌ها، پروفایل) و متفرقه
   ========================================================================== */

/* ---------- صفحه‌های ساده (۴۰۴) ---------- */
.simple-page {
  min-height: 60vh;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.simple-page h1 {
  text-align: center;
  letter-spacing: .02em;
}

/* ---------- علاقه‌مندی‌ها ---------- */
.fav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.fav-head h1 { font-size: 19px; }

.fav-count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sadaf-gold-dark);
  background: #fdf3e2;
  border-radius: 999px;
  padding: 5px 11px;
}

.fav-remove {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(32, 25, 20, .55);
  color: #fff;
  backdrop-filter: blur(4px);
}

.fav-remove svg { width: 15px; height: 15px; }

.fav-remove[aria-pressed="true"] { background: var(--sadaf-gold); }

.fav-remove[aria-pressed="true"] svg { fill: #fff; }

/* ---------- پیام‌ها ---------- */
.msg-list { display: grid; gap: 8px; }

.msg-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r-card);
  background: var(--sadaf-card);
  box-shadow: var(--shadow);
  align-items: start;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #f0dfbf, #dcbe8a);
  color: #6b4d1e;
  font-weight: 800;
  font-size: 13px;
}

.msg-body strong {
  display: block;
  font-size: 12.5px;
  margin-bottom: 4px;
}

.msg-body p {
  font-size: 11.5px;
  line-height: 1.95;
  color: var(--sadaf-muted);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.msg-meta {
  font-size: 10.5px;
  color: var(--sadaf-muted);
  white-space: nowrap;
}

.msg-unread {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sadaf-gold);
  margin-inline-start: 4px;
  vertical-align: 1px;
}

/* ---------- پروفایل ---------- */
.profile-head {
  text-align: center;
  padding: 22px 14px 18px;
  border-radius: var(--r-card-lg);
  background: linear-gradient(170deg, #fffdf8, #f4e9d6);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #f0dfbf, #d8b781);
  color: #5f4318;
  font-size: 24px;
  font-weight: 800;
}

.profile-head h1 { font-size: 18px; text-align: center; margin-bottom: 4px; }

.profile-head p { font-size: 12px; color: var(--sadaf-muted); }

.profile-head .btn { margin-top: 14px; }

.auth-hint {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--sadaf-muted);
}

.profile-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.account-list {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed #eadfcc;
  font-size: 12px;
}

.account-row:last-child { border-bottom: 0; }

.account-row span { color: var(--sadaf-muted); }

.account-row b { color: var(--sadaf-text); font-weight: 700; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.stat {
  padding: 12px 6px;
  border-radius: var(--r-card);
  background: var(--sadaf-card);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat b {
  display: block;
  font-size: 17px;
  color: var(--sadaf-gold-dark);
  margin-bottom: 2px;
}

.stat span { font-size: 10.5px; color: var(--sadaf-muted); }

/* ---------- مشاوران ---------- */
.consultant-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 14px 12px;
  border-radius: var(--r-card);
  background: var(--sadaf-card);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}

.consultant-card .msg-avatar {
  width: 56px;
  height: 56px;
  font-size: 19px;
}

.consultant-card h3 {
  font-size: 13.5px;
  margin-bottom: 4px;
}

.consultant-card .c-meta {
  font-size: 11px;
  color: var(--sadaf-muted);
  margin-bottom: 8px;
}

.c-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.c-actions .btn {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 11.5px;
}

/* ---------- درخواست اختصاصی ---------- */
.pr-steps {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.pr-steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12px;
  line-height: 1.95;
  color: var(--sadaf-text);
}

.pr-steps b {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fdf3e2;
  color: var(--sadaf-gold-dark);
  font-size: 12px;
}

/* ---------- واکنش‌گرایی ---------- */
@media (max-width: 360px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .msg-item { grid-template-columns: 32px 1fr; }
  .msg-meta { grid-column: 2; }
}
