/* Account menu */
.account {
  position: relative;
}

.account-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--pill);
  background: rgba(14,20,36,0.04);
  color: var(--ink);
  transition: 0.15s ease;
}

.account-btn:hover { background: rgba(14,20,36,0.08); }

.account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.account-meta {
  text-align: left;
  line-height: 1.15;
  padding-right: 2px;
}

.account-meta strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.account-meta span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 550;
}

.account-caret {
  color: var(--muted-2);
  margin-left: 2px;
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 240px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--clay), 0 20px 50px rgba(14,20,36,0.12);
  border: 1px solid rgba(255,255,255,0.8);
  padding: 10px;
  display: none;
  z-index: 120;
}

.account-menu.open { display: block; animation: rise 0.25s ease both; }

.account-menu-head {
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.account-menu-head strong {
  display: block;
  font-size: 14px;
}

.account-menu-head span {
  font-size: 12px;
  color: var(--muted);
}

.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: #F0F1F5;
  border-radius: 12px;
  margin-bottom: 8px;
}

.role-switch button {
  height: 34px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
}

.role-switch button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--clay);
}

.account-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.account-link:hover { background: #F7F8FA; }
.account-link svg { color: var(--muted); flex-shrink: 0; }

.account-note {
  margin-top: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* Seller dashboard */
.seller-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--clay);
  padding: 18px;
}

.stat-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-card strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.listing-row {
  display: grid;
  grid-template-columns: 88px 1.4fr 0.8fr 0.7fr 0.7fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--clay);
  margin-bottom: 12px;
}

.listing-row img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
}

.listing-row h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.listing-row .sub {
  font-size: 12px;
  color: var(--muted);
}

.listing-metric {
  font-size: 12px;
  color: var(--muted);
}

.listing-metric strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 600;
  background: var(--ok-soft);
  color: var(--ok);
}

.status-pill.draft {
  background: #F0F1F5;
  color: var(--muted);
}

.status-pill.review {
  background: var(--gold-soft);
  color: var(--gold);
}

.lead-list { list-style: none; }
.lead-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.lead-list li:last-child { border-bottom: 0; }
.lead-list .muted { color: var(--muted); font-size: 12px; }

body.role-seller .buyer-only { display: none !important; }
body.role-buyer .seller-only { display: none !important; }

@media (max-width: 720px) {
  .account-meta { display: none; }
  .account-btn { padding: 4px; }
  .account-menu { width: min(260px, calc(100vw - 28px)); right: -4px; }
  .seller-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card strong { font-size: 20px; }
  .listing-row {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }
  .listing-row .hide-sm { display: none; }
  .listing-row .btn { grid-column: 1 / -1; width: 100%; }
}
