.password-rules {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.password-rules .rule {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Dashboard ────────────────────────────────────────────────────────────── */

.dashboard-main {
  padding: 0.5rem 0 2rem;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-header h1 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0.15rem 0 0.1rem;
}

/* ── Stat cards ───────────────────────────────────────────────────────────── */

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(62, 43, 29, 0.08);
  background: rgba(255, 251, 246, 0.9);
  box-shadow: 0 10px 24px rgba(66, 37, 18, 0.07);
}

.stat-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  line-height: 1;
}

.stat-card small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.stat-card__icon {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.stat-card--green .stat-card__icon { color: var(--leaf); }
.stat-card--green strong           { color: var(--leaf); }

.stat-card--blue .stat-card__icon  { color: #2d6adf; }
.stat-card--blue strong            { color: #2d6adf; }

.stat-card--muted .stat-card__icon { color: var(--muted); }
.stat-card--muted strong           { color: var(--muted); }

/* ── Dashboard panel ─────────────────────────────────────────────────────── */

.dashboard-panel {
  border-radius: 26px;
  border: 1px solid rgba(62, 43, 29, 0.08);
  background: rgba(255, 251, 246, 0.9);
  box-shadow: 0 16px 34px rgba(66, 37, 18, 0.09);
  overflow: hidden;
}

.dashboard-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.dashboard-panel__head h2 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0.15rem 0 0;
}

/* ── Status tabs ─────────────────────────────────────────────────────────── */

.status-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.status-tab {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(66, 37, 18, 0.05);
  transition: 0.2s ease;
}

.status-tab:hover          { color: var(--ink); }
.status-tab.is-active      { color: #fff; background: linear-gradient(135deg, var(--leaf), #163b31); }

/* ── Listing rows ────────────────────────────────────────────────────────── */

.listing-table {
  display: grid;
}

.listing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}

.listing-row:last-child   { border-bottom: 0; }
.listing-row:hover        { background: rgba(66, 37, 18, 0.025); }

.listing-row__main        { flex: 1; min-width: 0; }

.listing-row__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.listing-row__type {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.listing-row__title {
  margin: 0 0 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-row__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.listing-row__price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.listing-row__active {
  font-size: 0.82rem;
}

.listing-row__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Status badges ───────────────────────────────────────────────────────── */

.status-badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-badge--active   { background: rgba(33, 88, 73, 0.12);  color: var(--leaf); }
.status-badge--sold     { background: rgba(45, 106, 223, 0.12); color: #2d6adf; }
.status-badge--unlisted { background: rgba(66, 37, 18, 0.08);  color: var(--muted); }
.status-badge--draft    { background: rgba(230, 184, 78, 0.18); color: #8a6600; }

/* ── Listing type toggle (create / edit forms) ───────────────────────────── */

.type-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.type-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  border-radius: 18px;
  border: 2px solid rgba(62, 43, 29, 0.1);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: 0.2s ease;
}

.type-toggle input[type="radio"] { display: none; }

.type-toggle i    { font-size: 1.4rem; color: var(--muted); }
.type-toggle span { font-weight: 700; }
.type-toggle small { color: var(--muted); font-size: 0.8rem; }

.type-toggle.is-active {
  border-color: var(--leaf);
  background: rgba(33, 88, 73, 0.07);
}

.type-toggle.is-active i { color: var(--leaf); }

/* ── Edit page listing meta card ─────────────────────────────────────────── */

.auth-meta-card {
  border-radius: 18px;
  border: 1px solid rgba(62, 43, 29, 0.1);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}

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

.auth-meta-row small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

/* ── Listing show page ───────────────────────────────────────────────────── */

.listing-show-main {
  padding: 0.5rem 0 2.5rem;
}

.listing-show-card,
.listing-show-seller-card {
  border-radius: 26px;
  border: 1px solid rgba(62, 43, 29, 0.08);
  background: rgba(255, 251, 246, 0.9);
  box-shadow: 0 16px 34px rgba(66, 37, 18, 0.09);
  padding: 1.5rem;
}

/* Breadcrumb */
.listing-show__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.listing-show__breadcrumb a:hover { color: var(--ink); }

.listing-show__breadcrumb i {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Top row */
.listing-show__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.listing-show__price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  white-space: nowrap;
}

/* Title */
.listing-show__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 0 0 1.5rem;
  line-height: 1.15;
}

/* Section labels */
.listing-show__section-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Description */
.listing-show__description {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

.listing-show__description p {
  margin: 0;
  line-height: 1.7;
  white-space: pre-line;
}

/* Details grid */
.listing-show__details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.listing-detail-item {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(66, 37, 18, 0.04);
}

.listing-detail-item small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.listing-detail-item strong {
  font-size: 0.92rem;
}

/* Actions */
.listing-show__actions {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.listing-show__action-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.listing-show__action-row .btn {
  min-height: 50px;
}

.listing-show__escrow-btn {
  min-height: 54px;
  font-weight: 700;
}

/* Seller card */
.listing-show-seller-card {
  margin-bottom: 0;
}

.listing-show__seller-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  margin: 0.5rem 0 1rem;
}

.seller-avatar--lg {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.listing-show__seller-meta {
  display: grid;
  gap: 0.6rem;
}

/* Related section */
.listing-show__related {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 767.98px) {
  .listing-show__details    { grid-template-columns: repeat(2, 1fr); }
  .listing-show__action-row { flex-direction: column; }
  .listing-show__top        { flex-direction: column; }
}

/* ── Responsive tweaks ───────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
  .dashboard-header  { flex-direction: column; }
  .dashboard-panel__head { flex-direction: column; align-items: flex-start; }
  .listing-row       { flex-direction: column; align-items: flex-start; }
  .listing-row__actions { width: 100%; }
  .type-toggle-group { grid-template-columns: 1fr; }
}