:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-nav-bg: #0c0c0c;
  --color-nav-text: #262626;
  --color-text: #262626;
  --color-text-muted: #767676;
  --color-border: #eeeef0;
  --color-accent: #fec804;
  --color-accent-hover: #e0b200;
  --color-accent-text: #0c0c0c;
  --color-success: #16a34a;
  --color-success-bg: #e8f7ee;
  --color-danger: #dc2626;
  --color-danger-bg: #fdecec;
  --color-muted-bg: #f1f3f4;
  --color-offwhite: #fafafa;
  --color-blue: #5ca1ff;
  --color-coral: #eb5e4b;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 8px;
  --shadow-card: none;
  --shadow-card-hover: none;
  --max-width: 1360px;
  --font-display: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Announcement banner ---------- */

.announcement-banner {
  background: var(--color-accent);
  color: var(--color-accent-text);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 0 16px;
}

/* ---------- Nav ---------- */

.nav {
  background: var(--color-nav-bg);
  color: #ffffff;
  border-bottom: 1px solid #1f1f1f;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #ffffff;
  flex-shrink: 0;
  margin-right: 12px;
}

.nav-logo span {
  color: var(--color-accent-hover);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  font-weight: 700;
}

.nav-link.pill {
  background: var(--color-accent);
  color: var(--color-accent-text);
  border-radius: 20px;
  font-weight: 500;
}

.nav-link.pill:hover {
  background: var(--color-accent-hover);
}

.nav-search {
  width: 412px;
  height: 46px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eeeef0;
  border: 1px solid #eeeef0;
  border-radius: 6px;
  padding: 0 16px;
  transition: background 0.15s, border-color 0.15s;
}

.nav-search:hover {
  background: #e5e5e7;
}

.nav-search:focus-within {
  background: #ffffff;
  border-color: #e2e2e2;
}

.nav-search input {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 14px;
  width: 100%;
}

.nav-search input:focus {
  box-shadow: none;
}

.nav-search svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-badge {
  background: var(--color-muted-bg);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  height: 44px;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-accent-text);
  background: var(--color-accent);
  cursor: pointer;
  transition: background 0.15s;
}

.nav-auth-btn:hover {
  background: var(--color-accent-hover);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-nav-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background: var(--color-muted-bg);
}

.btn-secondary {
  background: var(--color-muted-bg);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: #e4e6ea;
}

.btn-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.btn-danger:hover {
  background: #fbdada;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Cards ---------- */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-accent {
  background: var(--color-muted-bg);
  color: var(--color-text);
  text-transform: none;
  font-weight: 600;
}

/* ---------- Bold hero + overlapping search card ---------- */

.hero-bold {
  background: var(--color-text);
  color: #fff;
  padding: 56px 0 96px;
}

.hero-bold h1 {
  color: #fff;
  font-size: 40px;
  max-width: 560px;
  margin-bottom: 10px;
}

.hero-bold p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  max-width: 480px;
  margin: 0;
}

.search-overlap-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(20, 22, 26, 0.16);
  margin-top: -56px;
  margin-bottom: 40px;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

@media (max-width: 640px) {
}

.search-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.search-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 20px;
  font-weight: 700;
  font-size: 16px;
  line-height: 29px;
  background: var(--color-muted-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 4px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.search-tab:first-child {
  border-right: 1px solid var(--color-border);
}

.search-tab.active {
  background: #fff;
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.search-panel {
  padding: 24px;
}

.size-choice-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.size-choice-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 8px 0 12px;
}

.size-choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 160px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--color-text);
  font-weight: 600;
}

.size-choice-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(254, 200, 4, 0.15);
}

.size-choice-card svg {
  color: var(--color-text-muted);
}

.size-choice-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.size-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
}

.size-back-link:hover {
  color: var(--color-text);
}

.search-panel-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 900px) {
  .search-panel-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* legacy search-hero (kept for other pages that may still reference it) */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal {
  background: #fff;
  border-radius: 12px;
  width: 520px;
  max-width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.size-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
  overflow-x: auto;
}

.size-tab {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.size-tab.active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.size-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.size-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 13px;
  cursor: pointer;
}

.size-checkbox input {
  width: auto;
}

.badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #DC2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.badge-overlay.badge-pending {
  background: #FFC400;
  color: #111;
}
.badge-overlay.badge-draft {
  background: #6B7280;
  color: #fff;
}

/* ---------- Forms ---------- */

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.field {
  margin-bottom: 16px;
}

input,
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  /* Crisp 2px primary-yellow border (1px border + 1px same-colour ring),
     no blurry glow, no layout shift. */
  border-color: #FFC400;
  box-shadow: 0 0 0 1px #FFC400;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

/* ---------- Layout helpers ---------- */

.page {
  padding: 24px 0 64px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.filter-bar h1 {
  font-size: 24px;
  margin: 0;
}

.sort-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.sort-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  padding-bottom: 2px;
}

.sort-link.active {
  color: var(--color-text);
  font-weight: 700;
  border-bottom: 2px solid var(--color-text);
}

@media (max-width: 860px) {
}

@media (max-width: 860px) {
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

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

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--color-text-muted);
}

.spinner-text {
  color: var(--color-text-muted);
  font-size: 14px;
  padding: 24px 0;
}

.error-text {
  color: var(--color-danger);
  font-size: 13px;
  margin-top: 6px;
}

/* ---------- Listing grid & cards ---------- */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px 20px;
}

.listing-card {
  display: flex;
  flex-direction: column;
}

.listing-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-muted-bg) center / cover no-repeat;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}

.listing-card-body {
  padding: 12px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.listing-card-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  /* Always exactly two lines: truncate longer titles, reserve the height for
     shorter ones so every card's price/actions row lines up. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.6em; /* fallback for browsers without the lh unit */
  min-height: 2lh;
}

.listing-card-price {
  font-weight: 700;
  font-size: 15px;
}

.listing-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0;
}

/* Preview-matching card elements (condition/quantity pills, price + currency, pin location). */
.listing-card-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lc-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #f3f4f6; color: #374151; }
.lc-pill-new { background: var(--color-success-bg); color: var(--color-success); }
.lc-cur { font-size: 12px; font-weight: 500; color: var(--color-text-muted); margin-left: 4px; }
.listing-card-loc { display: flex; align-items: center; gap: 5px; color: var(--color-text-muted); font-size: 13px; }
.listing-card-loc svg { flex-shrink: 0; }
.lc-featured { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center;
  background: var(--color-accent); color: #111; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px; }

/* Dashboard per-listing seller insights (free for everyone) */
.dash-insights { display: flex; gap: 22px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-border); font-size: 13px; color: var(--color-text); }
.dash-mi { display: inline-flex; align-items: center; gap: 6px; }
.dash-mi svg { width: 15px; height: 15px; color: var(--color-text-muted); }
.dash-mi b { font-weight: 700; }

/* ---------- Photo gallery ---------- */

.gallery-thumb.active {
  border-color: var(--color-accent);
}

/* ---------- Messages / inbox ---------- */

.conversation-row.active {
  background: var(--color-muted-bg);
}

.message-bubble.mine {
  background: var(--color-accent);
  color: var(--color-accent-text);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.message-bubble.theirs {
  background: var(--color-muted-bg);
  color: var(--color-text);
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

/* ---------- Design comparison (temporary) ---------- */

.cmp-tab.active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.select-all-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}

.select-all-row input {
  width: auto;
}

.wizard-steps {
  display: flex;
  background: var(--color-muted-bg);
}

.wizard-step {
  flex: 1;
  position: relative;
  padding: 16px 16px 16px 30px;
  background: var(--color-muted-bg);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
  margin-right: -14px;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.wizard-step:first-child {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  padding-left: 20px;
}

.wizard-step:last-child {
  margin-right: 0;
}

.wizard-step.done {
  background: color-mix(in srgb, var(--color-accent) 40%, white);
  color: var(--color-text-muted);
}

.wizard-step.active {
  background: var(--color-accent);
  color: var(--color-accent-text);
  opacity: 1;
  z-index: 2;
}

.wizard-panel {
  padding: 24px 0;
}

.wizard-next-btn {
  background: var(--color-accent);
  color: var(--color-accent-text);
  margin-top: 20px;
  border: none;
}

.wizard-next-btn:hover {
  filter: brightness(0.95);
}

/* ---------- Auth modal ---------- */

.auth-modal {
  width: 420px;
  padding: 40px 32px 32px;
  position: relative;
  text-align: center;
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px;
}

.auth-modal-close:hover {
  color: var(--color-text);
}

.auth-modal-icon {
  margin-bottom: 12px;
  color: var(--color-text);
}

.auth-modal-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.auth-modal-subtitle {
  margin-bottom: 24px;
  font-size: 14px;
}

.auth-modal form,
.auth-modal .field {
  text-align: left;
}

.auth-modal-back {
  position: absolute;
  top: 16px;
  left: 16px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px;
}

.auth-modal-back:hover {
  color: var(--color-text);
}

.auth-benefits-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
}

.auth-benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 6px 0;
}

.auth-benefits-list svg {
  flex-shrink: 0;
}

.auth-code-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-code-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  padding: 0;
}

.auth-resend-link {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: var(--color-accent-hover);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.auth-resend-link:hover {
  text-decoration: underline;
}

.auth-username-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-username-field:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(254, 200, 4, 0.2);
}

.auth-username-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-muted-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.auth-username-field input {
  border: none;
  padding: 0;
  flex: 1;
}

.auth-username-field input:focus {
  box-shadow: none;
}

.auth-username-hint {
  font-size: 12px;
  margin-top: 6px;
}

.auth-username-hint.taken {
  color: var(--color-danger);
}

/* Labels above the sign in/up inputs. */
.auth-modal label {
  font-size: 15px;
  color: #262626;
  font-weight: 400;
}

.auth-legal {
  font-size: 14px;
  color: #828282;
  line-height: 1.5;
  margin: 20px 0 0;
  text-align: left;
}

.auth-legal a {
  color: var(--color-accent-hover);
  font-size: 14px;
  font-weight: 600;
}

.auth-legal a:hover {
  text-decoration: underline;
}

.auth-help-link {
  display: block;
  margin-top: 16px;
  color: var(--color-accent-hover);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.auth-help-link:hover {
  text-decoration: underline;
}

/* ---------- Nav icon buttons + dropdowns ---------- */

.nav-icon-wrap {
  position: relative;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}

.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-badge-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-coral);
  border: 1.5px solid #fff;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  margin-top: 10px;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
  padding: 8px;
  z-index: 100;
}

.nav-dropdown-caret::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 31px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #fff;
  pointer-events: none;
}

.nav-dropdown-notifications {
  width: 380px;
  margin-top: 20px;
  margin-right: -20px;
  padding: 0;
}

.nav-dropdown-messages {
  width: 380px;
  margin-top: 20px;
  margin-right: -20px;
  padding: 0;
}
.nav-dropdown-caret.nav-dropdown-messages::before { right: 28px; }

/* Tray header (title + optional action) */
.nav-dd-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px 12px; }
.nav-dd-htitle { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: #111; }
.nav-dd-markall { border: 0; background: none; padding: 0; font: 500 12.5px Inter, system-ui, sans-serif; color: #6B7280; cursor: pointer; }
.nav-dd-markall:hover { color: #111; }

/* Tray rows (notifications + messages) */
.nav-ntf-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; text-decoration: none; border-top: 1px solid var(--color-border); }
.nav-ntf-row:hover { background: var(--color-muted-bg); }
.nav-ntf-ic { width: 40px; height: 40px; border-radius: 999px; background: #F5F6F7 center/cover no-repeat; color: #111; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-ntf-ic svg { width: 20px; height: 20px; }
.nav-ntf-ic-hot { background: #FCE9B4; color: #C89600; }
.nav-ntf-body { flex: 1; min-width: 0; }
.nav-ntf-title { font-size: 13.5px; font-weight: 700; color: #111; line-height: 1.3; }
.nav-ntf-sub { font-size: 12px; color: #9CA3AF; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-ntf-dot { width: 9px; height: 9px; border-radius: 999px; background: #FFC400; flex-shrink: 0; }

.nav-dropdown-account {
  width: 260px;
  margin-top: 20px;
  margin-right: -11px;
  padding: 16px 0 28px;
}
.nav-dropdown-caret.nav-dropdown-account::before { right: 19px; }

/* Account menu header: username (left, truncates) + membership tier (right) */
.nav-dd-head { display: flex; align-items: center; gap: 10px; padding: 0 24px 14px; border-bottom: 1px solid var(--color-border); margin-bottom: 16px; }
.nav-dd-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; color: var(--color-text); }
.nav-dd-tier { flex-shrink: 0; display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; }
.nav-dd-tier-pro { background: var(--color-accent); color: #111; }
.nav-dd-tier-ea { background: #DCFCE7; color: #15803D; }
.nav-dd-tier-free { background: #F3F4F6; color: #6B7280; }

.nav-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0 24px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.nav-dropdown-item + .nav-dropdown-item {
  margin-top: 20px;
}

.nav-dropdown-item:hover {
  color: var(--color-accent-hover);
}

.nav-dropdown-item-profile {
  display: flex;
  align-items: center;
}

.nav-dropdown-avatar {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--color-muted-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.nav-dropdown-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 0 40px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ---------- Watch list ---------- */

.watch-detailed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.watch-detailed-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0 16px 16px;
}

.watch-detailed-card .listing-card-photo {
  margin: 0 -16px;
  border-radius: 0;
}

.watch-price-down {
  color: var(--color-success);
  font-weight: 600;
}

.watch-price-up {
  color: var(--color-danger);
  font-weight: 600;
}

/* ---------- Save (heart) button ---------- */

.save-heart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 22, 26, 0.2);
  transition: color 0.15s, background 0.15s;
  z-index: 2;
}

.save-heart-btn:hover {
  background: #fff;
  color: var(--color-coral);
}

.save-heart-btn.saved {
  color: var(--color-coral);
}

/* ---------- Edit Profile modal ---------- */

.edit-profile-modal {
  width: 560px;
  max-width: 100%;
  padding: 28px;
}

.edit-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.edit-profile-modal textarea {
  min-height: 110px;
}

/* ---------- Ratings & reviews ---------- */

.star-row {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}

.star {
  display: inline-block;
  position: relative;
}

.star svg {
  width: 100%;
  height: 100%;
  display: block;
}

.star-empty svg { fill: var(--color-border); }
.star-full svg { fill: var(--color-accent); }

.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

.review-body { flex: 1; min-width: 0; }

.review-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.review-date { font-size: 12px; }

.star-picker {
  display: flex;
  gap: 6px;
}

.star-pick {
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.star-pick svg {
  width: 100%;
  height: 100%;
  fill: var(--color-border);
  transition: fill 0.1s;
}

.star-pick.on svg { fill: var(--color-accent); }

/* ---------- Verified badge, follow, sold, seller link ---------- */

.verified-badge {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Sold listings: dim the card and lay a corner ribbon over it. */
.sold-card {
  position: relative;
}

.sold-card .listing-card {
  opacity: 0.72;
}

.sold-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-nav-bg);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}

/* Unread notification rows get an accent bar + tint. */
.nav-dropdown-row.unread {
  background: #fffbe9;
  border-left: 3px solid var(--color-accent);
}

@media (prefers-color-scheme: dark) {
  .nav-dropdown-row.unread {
    background: rgba(254, 200, 4, 0.08);
  }
}

/* ---------- Settings page ---------- */

/* Every page: pin the header. The banner scrolls off (top:-36px) and the nav
   stays put. (The .nav's own sticky only holds within the short #site-header,
   so making #site-header itself sticky is what keeps the nav persistent.)
   Settings pages then stick their subnav right below it. */
#site-header { position: sticky; top: -36px; z-index: 60; }

.settings-subnav {
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  position: sticky;
  top: 64px;
  z-index: 40;
}

.settings-subnav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 28px;
  height: 52px;
  align-items: center;
  justify-content: flex-start;
}

.settings-subnav a {
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
  height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.settings-subnav a:hover { color: #111; }

.settings-subnav a.active {
  color: #111;
  font-weight: 600;
  border-bottom-color: #FFC400;
}

/* ---------- Verified shop storefront ---------- */

.shop-banner .verified-badge { width: 22px; height: 22px; }

/* ---------- Sell / create-listing page ---------- */

.sell-preview-sticky .listing-card { pointer-events: none; }

/* Segmented "what are you selling" */
.sell-seg.active { border-color: var(--color-accent); background: #fffdf3; }

/* Photos */

/* Chips (bolt pattern + condition) */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border: 1.5px solid var(--color-border); border-radius: 8px; background: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .12s, background .12s;
}
.chip:hover { border-color: #d5d5d8; }
.chip.on { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-text); }

/* Tire size compact row */
.tire-size-row { display: flex; align-items: center; gap: 8px; }
.tire-size-row input { width: 80px; }
.tire-size-row span { color: var(--color-text-muted); font-weight: 700; }

/* Collapsible "add more details" */

/* Success */

@media (max-width: 900px) {
}

/* ---------- Sell: currency, staggered ---------- */

.stagger-toggle .muted { font-weight: 400; }

.rear-specs {
  border-left: 3px solid var(--color-accent);
  padding: 14px 0 4px 16px;
  margin-bottom: 8px;
}

/* ---------- Sell: two-step flow (pick type first) ---------- */

.sell-layout.preview-hidden { grid-template-columns: 1fr; max-width: 760px; }

.sell-step-type { padding: 24px 0 40px; }
.sell-type-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px;
}
.sell-type-card {
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  padding: 20px 18px; text-align: center; cursor: pointer;
  background: #fff; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg);
  transition: border-color .12s, background .12s, transform .06s;
}
.sell-type-card:hover { border-color: var(--color-accent); background: #fffdf3; }
.sell-type-card:active { transform: translateY(1px); }
.sell-type-img { width: 100%; max-width: 150px; height: 116px; object-fit: contain; margin-bottom: 6px; }
.sell-type-card-label { font-weight: 700; font-size: 17px; }
.sell-type-card-sub { font-size: 13px; color: var(--color-text-muted); }

.sell-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 4px 0; margin-bottom: 6px; cursor: pointer;
  color: var(--color-text-muted); font-size: 13px; font-weight: 600;
}
.sell-back:hover { color: var(--color-text); }

@media (max-width: 620px) {
  .sell-type-cards { grid-template-columns: 1fr; }
}

/* ================= Premium sell / create-listing design (.sx) ================= */
.sx {
  --y:#FFC400; --yh:#EAB308; --yat:#F5B400;
  --t:#111111; --t2:#6B7280; --ph:#9CA3AF;
  --bd:#E5E7EB; --bdh:#D1D5DB; --dv:#ECECEC; --soft:#F1F1F1;
  font-family:'Inter',-apple-system,system-ui,sans-serif; color:var(--t); background:#fff;
}
.sx *{ box-sizing:border-box; }
.sx-wrap{ max-width:1440px; margin:0 auto; padding:48px 40px 80px; }
.sx-grid{ display:grid; grid-template-columns:minmax(0,1fr) 400px; gap:48px; align-items:start; }
.sx-grid.preview-hidden{ grid-template-columns:1fr; }
.sx-form{ min-width:0; }

.sx-signin{ max-width:520px; margin:56px auto; text-align:center; padding:48px 28px; border:1px solid #ECECEC; border-radius:18px; }
.sx-signin-icon{ width:64px; height:64px; border-radius:999px; background:#FFF9E8; color:var(--yat); display:flex; align-items:center; justify-content:center; margin:0 auto 18px; }
.sx-back{ display:inline-flex; align-items:center; gap:8px; color:var(--t2); font-size:14px; font-weight:500; margin-bottom:12px; background:none; border:0; cursor:pointer; padding:4px 0; }
.sx-back:hover{ color:var(--t); }
.sx-title{ font-size:42px; font-weight:800; letter-spacing:-0.02em; line-height:1.05; margin:0; }
.sx-sub{ font-size:18px; font-weight:400; color:var(--t2); margin:12px 0 40px; }
.sx-divider{ height:1px; background:var(--dv); border:0; margin:40px 0; }
.sx-h{ font-size:18px; font-weight:700; color:var(--t); margin:0 0 18px; }
.sx-h .req{ color:var(--yat); }

.sx label.fl{ display:block; font-size:14px; font-weight:500; color:#374151; margin-bottom:7px; }
.sx-form input[type=text], .sx-form input[type=number], .sx-form select, .sx-form textarea{
  width:100%; height:52px; border:1px solid var(--bd); border-radius:12px; padding:0 16px;
  font-family:inherit; font-size:15px; color:var(--t); background:#fff; transition:border-color .15s, box-shadow .15s;
}
.sx-form textarea{ height:140px; padding:14px 16px; resize:vertical; line-height:1.5; }
.sx-form input::placeholder, .sx-form textarea::placeholder{ color:var(--ph); }
.sx-form input:hover, .sx-form select:hover, .sx-form textarea:hover{ border-color:var(--bdh); }
.sx-form input:focus, .sx-form select:focus, .sx-form textarea:focus{ outline:none; border-color:var(--y); box-shadow:0 0 0 1px var(--y); }
.sx-row2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.sx-field{ margin-bottom:0; }
.sx-price{ display:grid; grid-template-columns:96px 1fr; gap:8px; }
.sx .tire-size-row input{ width:82px; height:52px; }

.sx-upload{ height:220px; border:2px dashed #D9D9D9; border-radius:18px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; cursor:pointer; transition:border-color .18s, background .18s; text-align:center; }
.sx-upload:hover{ border-color:var(--yat); background:#FFF9E8; }
.sx-upload .circ{ width:56px; height:56px; border-radius:999px; background:#F3F4F6; display:flex; align-items:center; justify-content:center; color:#6B7280; }
.sx-upload .up-t{ font-size:18px; font-weight:600; }
.sx-upload .up-s{ font-size:14px; color:var(--t2); }
.sx-note{ font-size:12px; color:var(--t2); margin-top:10px; }
.sx-thumbs{ display:grid; grid-template-columns:repeat(auto-fill,minmax(116px,1fr)); gap:10px; }
.sx-thumb{ position:relative; aspect-ratio:4/3; border-radius:12px; background:#f1f3f4 center/cover no-repeat; border:1px solid var(--bd); cursor:grab; }
.sx-thumb.dragging{ opacity:.4; }
.sx-thumb.drag-over{ outline:2px dashed var(--y); outline-offset:2px; }
.sx-thumb .cov{ position:absolute; left:6px; bottom:6px; background:var(--y); color:#000; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; padding:3px 8px; border-radius:999px; }
.sx-thumb .rm{ position:absolute; right:5px; top:5px; width:22px; height:22px; border-radius:999px; border:0; background:rgba(17,17,17,.7); color:#fff; font-size:15px; line-height:1; cursor:pointer; }
.sx-addmini{ aspect-ratio:4/3; border:2px dashed #D9D9D9; border-radius:12px; display:flex; flex-direction:column; gap:2px; align-items:center; justify-content:center; color:#6B7280; cursor:pointer; }
.sx-addmini:hover{ border-color:var(--yat); }

.sx-chips{ display:flex; flex-wrap:wrap; gap:10px; }
.sx-chip{ height:38px; padding:0 14px; border:1px solid #DDD; border-radius:10px; background:#fff; font-family:inherit; font-size:13px; font-weight:600; color:var(--t); cursor:pointer; transition:border-color .15s, background .15s; }
.sx-chip:hover{ border-color:var(--bdh); }
.sx-chip.on{ background:var(--y); border-color:var(--y); color:#000; }
.sx-bolt-other{ display:none; margin-top:12px; max-width:280px; }

.sx-seg{ display:flex; flex-wrap:wrap; gap:10px; }
.sx-seg button{ height:42px; padding:0 18px; border:1px solid #DDD; border-radius:12px; background:#fff; font-family:inherit; font-size:14px; font-weight:600; color:var(--t); cursor:pointer; transition:border-color .15s, background .15s; }
.sx-seg button:hover{ background:#F9FAFB; }
.sx-seg button.on{ background:var(--y); border-color:var(--y); color:#000; }

.sx-check{ display:flex; align-items:center; gap:10px; margin-top:18px; cursor:pointer; font-size:15px; }
.sx-check input{ width:18px; height:18px; border-radius:5px; accent-color:var(--yat); }
.sx-check .ex{ color:var(--t2); }
.sx-rear{ border-left:3px solid var(--y); padding:16px 0 6px 18px; margin-top:16px; }

.sx-counter{ font-size:12px; color:var(--t2); text-align:right; margin-top:6px; }
.sx-more{ display:inline-flex; align-items:center; gap:8px; color:var(--yh); font-weight:600; font-size:15px; background:none; border:0; cursor:pointer; padding:8px 0; }
.sx-more:hover{ text-decoration:underline; }
.sx-more-body{ display:none; margin-top:8px; }
.sx-more-body.open{ display:block; }

.sx-progress{ background:#F7F8FA; border:1px solid #ECECEC; border-radius:14px; padding:16px 18px; margin-top:32px; }
.sx-progress-top{ display:flex; justify-content:space-between; align-items:center; font-size:14px; color:var(--t2); margin-bottom:10px; }
.sx-progress-top b{ font-weight:700; color:var(--t); }
.sx-progress-bar{ height:8px; border-radius:999px; background:#E9EBEE; overflow:hidden; }
.sx-progress-fill{ height:100%; width:0; background:var(--y); border-radius:999px; transition:width .3s ease; }
.sx-progress-hint{ font-size:13px; color:var(--t2); margin-top:10px; }

.sx-publish{ width:100%; height:56px; border:0; border-radius:10px; background:var(--y); color:#111; font-family:inherit; font-size:18px; font-weight:700; cursor:pointer; transition:background .18s, transform .18s; }
.sx-publish:hover{ background:var(--yh); transform:translateY(-1px); }
.sx-publish:disabled{ opacity:.6; cursor:default; transform:none; }
.sx-reviewnote{ display:flex; align-items:center; justify-content:center; gap:6px; font-size:13px; color:var(--t2); margin-top:12px; }

.sx-prev-label{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--t2); text-transform:uppercase; letter-spacing:.04em; margin-bottom:12px; }
.sx-prev-wrap{ position:sticky; top:116px; }
.sx-prev{ border-radius:18px; padding:24px; background:#fff; border:1px solid #ECECEC; }
.sx-prev-img{ position:relative; height:320px; border-radius:18px; background:#F6F7F8 center/cover no-repeat; display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.sx-photobadge{ position:absolute; top:12px; right:12px; display:flex; align-items:center; gap:5px; background:rgba(17,17,17,.72); color:#fff; font-size:12px; font-weight:600; padding:4px 10px; border-radius:999px; }
.sx-photobadge svg{ width:13px; height:13px; }
.sx-prev-img > svg{ width:190px; height:190px; }
.sx-prev-title{ font-size:24px; font-weight:700; margin:0 0 10px; line-height:1.25; }
.sx-prev-pills{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.sx-pill{ font-size:12px; font-weight:600; padding:4px 10px; border-radius:999px; background:#F3F4F6; color:#374151; }
.sx-pill.new{ background:var(--color-success-bg); color:var(--color-success); }
.sx-prev-meta{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:2px 0 16px; border-bottom:1px solid var(--soft); }
.sx-prev-loc{ display:flex; align-items:center; gap:6px; color:var(--t2); font-size:14px; }
.sx-prev-pricerow{ display:flex; align-items:baseline; gap:5px; }
.sx-prev-price{ font-size:22px; font-weight:800; letter-spacing:-0.01em; }
.sx-prev-cur{ font-size:12px; font-weight:500; color:var(--t2); }
.sx-specrow{ display:flex; align-items:center; height:48px; border-bottom:1px solid var(--soft); font-size:14px; }
.sx-specrow .ic{ width:18px; height:18px; color:#9CA3AF; margin-right:10px; flex-shrink:0; }
.sx-specrow .lb{ color:var(--t2); }
.sx-specrow .vl{ margin-left:auto; font-weight:600; text-align:right; }
.sx-trust{ display:flex; gap:10px; align-items:flex-start; background:#F7F8FA; border-radius:14px; padding:14px 16px; margin-top:18px; font-size:13px; color:var(--t2); line-height:1.5; }
.sx-trust svg{ width:18px; height:18px; color:#9CA3AF; flex-shrink:0; margin-top:1px; }

/* ---------- Sell success (minimal "listing is live") ---------- */
.slv{ max-width:600px; margin:0 auto; padding:72px 24px; text-align:center; }
.slv-check{ width:56px; height:56px; border-radius:999px; background:#EAF7EE; color:#16A34A; display:flex; align-items:center; justify-content:center; margin:0 auto 22px; }
.slv-check svg{ width:26px; height:26px; }
.slv h1{ font-size:26px; font-weight:700; letter-spacing:-.02em; margin:0 0 8px; color:var(--t); }
.slv-sub{ color:var(--t2); font-size:15px; margin:0 0 28px; }
.slv-row{ display:flex; align-items:center; gap:16px; text-align:left; width:100%; max-width:460px; margin:0 auto; border:1px solid var(--bd); border-radius:16px; padding:14px; }
.slv-thumb{ width:96px; height:96px; border-radius:12px; background:var(--soft) center/cover no-repeat; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.slv-thumb svg{ width:42px; height:42px; color:#C4C7CC; }
.slv-ti{ font-size:16px; font-weight:700; color:var(--t); margin-bottom:6px; line-height:1.3; }
.slv-price{ font-size:16px; font-weight:800; color:var(--t); }
.slv-cur{ font-size:12px; font-weight:500; color:var(--t2); margin-left:4px; }
.slv-notified{ font-size:13px; color:var(--t2); margin:16px 0 0; }
.slv-actions{ display:flex; align-items:center; justify-content:center; gap:12px; margin-top:28px; }
.slv-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; height:46px; padding:0 22px; border-radius:11px; font-size:15px; font-weight:600; cursor:pointer; border:1px solid transparent; text-decoration:none; transition:background .12s,border-color .12s; }
.slv-btn svg{ width:16px; height:16px; }
.slv-primary{ background:var(--y); color:#111; }
.slv-primary:hover{ background:var(--yh); }
.slv-out{ background:#fff; color:var(--t); border-color:var(--bd); }
.slv-out:hover{ border-color:var(--bdh); }
.slv-garage{ display:inline-block; margin-top:20px; color:var(--t2); font-size:14px; font-weight:600; text-decoration:none; }
.slv-garage:hover{ color:var(--t); }

@media (max-width:980px){
  .sx-grid{ grid-template-columns:1fr; }
  .sx-prev-wrap{ position:static; }
  .sx-title{ font-size:36px; }
}

/* ---------- Location autocomplete dropdown ---------- */
.sx-geo-dd{ position:absolute; left:0; right:0; top:100%; margin-top:6px; z-index:30;
  background:#fff; border:1px solid var(--bd); border-radius:12px; box-shadow:0 12px 30px rgba(0,0,0,.1);
  overflow:hidden; max-height:300px; overflow-y:auto; }
.sx-geo-opt{ display:block; width:100%; text-align:left; background:none; border:0; border-bottom:1px solid var(--soft);
  padding:11px 16px; font-family:inherit; font-size:14px; color:var(--t); cursor:pointer; }
.sx-geo-opt:last-child{ border-bottom:0; }
.sx-geo-opt:hover{ background:#FFF9E8; }

/* ---------- Browse page ---------- */
.browse-grid{ display:grid; grid-template-columns:280px minmax(0,1fr); gap:40px; align-items:start; padding-top:28px; padding-bottom:64px; }
.browse-filters{ position:sticky; top:84px; }
.browse-main{ border-left:1px solid var(--color-border); padding-left:40px; }
.browse-filters-head{ display:flex; align-items:center; justify-content:space-between; padding-bottom:16px; border-bottom:1px solid var(--color-border); font-weight:700; font-size:16px; }
.browse-clear{ background:none; border:0; color:var(--color-accent-hover); font-weight:600; font-size:13px; cursor:pointer; }
.browse-clear:hover{ text-decoration:underline; }
.fgroup{ border-top:1px solid var(--color-border); }
.fgroup:first-of-type{ border-top:0; }
.fgroup-head{ width:100%; display:flex; align-items:center; gap:8px; padding:16px 0; background:none; border:0; cursor:pointer; font-family:inherit; text-align:left; }
.fgroup[data-open="1"] .fgroup-head{ padding-bottom:12px; }
.flabel{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--color-text-muted); }
.fgroup-count{ font-size:11px; font-weight:700; line-height:1; color:var(--color-accent-text); background:var(--color-accent); border-radius:999px; padding:3px 7px; display:none; }
.fgroup-count.on{ display:inline-block; }
.fgroup-chev{ margin-left:auto; color:var(--color-text-muted); transition:transform .18s ease; flex-shrink:0; }
.fgroup[data-open="0"] .fgroup-chev{ transform:rotate(-90deg); }
.fgroup[data-open="0"] .fgroup-body{ display:none; }
.fgroup.hidden{ display:none; }
.fgroup-body{ padding-bottom:16px; }
.browse-filters select, .browse-filters input[type=text], .browse-filters input[type=number]{
  width:100%; height:40px; border:1px solid var(--color-border); border-radius:8px; padding:0 12px; font-family:inherit; font-size:14px; background:#fff;
}
.browse-filters input:focus, .browse-filters select:focus{ outline:none; border-color:var(--color-accent); box-shadow:0 0 0 1px var(--color-accent); }
.seg{ display:flex; gap:8px; }
.seg button{ flex:1; height:42px; border:1px solid var(--color-border); border-radius:10px; background:#fff; font-family:inherit; font-size:14px; font-weight:600; color:var(--color-text); cursor:pointer; }
.seg button:hover{ background:var(--color-muted-bg); }
.seg button.on{ background:var(--color-accent); border-color:var(--color-accent); color:var(--color-accent-text); }
.chip-row{ display:flex; flex-wrap:wrap; gap:7px; }
.browse-filters .chip-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.browse-filters .chip{ display:flex; align-items:center; justify-content:center; height:40px; padding:0 6px; border:1px solid var(--color-border); border-radius:10px; background:#fff; font-family:inherit; font-size:13px; font-weight:600; color:var(--color-text); cursor:pointer; }
.browse-filters .chip:hover{ border-color:#d5d5d8; }
.browse-filters .chip.on{ background:var(--color-accent); border-color:var(--color-accent); color:var(--color-accent-text); }
.price-range{ display:flex; align-items:center; gap:8px; }
.price-range span{ color:var(--color-text-muted); }

.browse-topbar{ display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.browse-count{ font-size:15px; font-weight:600; }
.browse-sort{ margin-left:auto; font-size:14px; color:var(--color-text-muted); display:flex; align-items:center; gap:8px; white-space:nowrap; }
.browse-sort select{ height:38px; border:1px solid var(--color-border); border-radius:8px; padding:0 10px; font-family:inherit; font-size:14px; background:#fff; color:var(--color-text); }
.browse-filter-toggle{ display:none; }

/* Browse listing cards mirror the Sell preview card: bordered white card, inset
   rounded photo on a light background, big title + price, pin location. */
.browse-main .listing-card{ background:#fff; border:1px solid var(--color-border); border-radius:16px; padding:12px; transition:box-shadow .15s ease, border-color .15s ease; }
.browse-main .listing-card:hover{ border-color:var(--color-accent); box-shadow:0 0 0 1px var(--color-accent); }
.browse-main .listing-card-photo{ height:210px; aspect-ratio:auto; border-radius:12px; background-color:#f6f7f8; }
.browse-main .listing-card-body{ padding:14px 4px 4px; gap:10px; }
.browse-main .listing-card-title{ font-size:18px; line-height:1.25; }
.browse-main .listing-card-price{ font-size:20px; font-weight:800; }
.browse-main .listing-card-loc{ font-size:14px; }
/* Keep old results in place while a new filter fetches; dim only if it's slow. */
#browse-results{ transition:opacity .12s ease; }
#browse-results.is-loading{ opacity:.55; pointer-events:none; }

@media (max-width:860px){
  .browse-grid{ grid-template-columns:1fr; }
  .browse-main{ border-left:0; padding-left:0; }
  .browse-filters{ position:static; display:none; margin-bottom:20px; padding-right:0; }
  .browse-filters.open{ display:block; }
  .browse-filter-toggle{ display:inline-flex; }
}

/* ============================================================
   Listing detail page — built on the .sx (Sell Wheels) system:
   Inter, --y/--t/--t2 tokens, .sx-pill chips, radius:18 cards,
   no shadows (separation via 1px #ECECEC borders + whitespace).
   ============================================================ */
.ld{
  --y:#FFC400; --yh:#EAB308; --t:#111111; --t2:#6B7280; --ph:#9CA3AF;
  --bd:#E5E7EB; --bdh:#D1D5DB; --dv:#ECECEC; --soft:#F1F1F1;
  --sbg:#DCFCE7; --sc:#15803D;
  font-family:'Inter',-apple-system,system-ui,sans-serif; color:var(--t); background:#fff;
  max-width:1440px; margin:0 auto; padding:40px 40px 80px;
}
.ld *{ box-sizing:border-box; }
.ld-grid{ display:grid; grid-template-columns:minmax(0,58fr) minmax(0,42fr);
  grid-template-areas:"gallery buybox" "content buybox"; gap:28px 48px; align-items:start; }
.ld-gallery{ grid-area:gallery; min-width:0; }
.ld-content{ grid-area:content; min-width:0; }
/* Sticky "action rail" — title, price, seller, message follow you down. */
.ld-buybox{ grid-area:buybox; min-width:0; position:sticky; top:84px; align-self:start; }

/* ---- Left: gallery ---- */
.ld-main{ position:relative; aspect-ratio:1/1; border-radius:18px; background:#F6F7F8;
  border:1px solid var(--soft); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.ld-main img{ max-width:86%; max-height:86%; object-fit:contain; transition:opacity .2s ease; }
.ld-main .ld-ph{ color:var(--ph); }
.ld-expand{ position:absolute; top:16px; right:16px; width:44px; height:44px; border-radius:999px;
  background:#fff; border:1px solid var(--dv); display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--t); transition:background .15s, border-color .15s; }
.ld-arrow{ position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:999px;
  background:#fff; border:1px solid var(--dv); display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--t); transition:background .15s, border-color .15s; }
.ld-arrow-prev{ left:16px; } .ld-arrow-next{ right:16px; }
.ld-expand:hover, .ld-arrow:hover{ background:#F9FAFB; border-color:var(--bdh); }
.ld-thumbs{ display:flex; gap:12px; margin-top:12px; flex-wrap:wrap; }
.ld-thumb{ width:88px; height:88px; border-radius:12px; border:1px solid var(--bd);
  background:#F6F7F8 center/cover no-repeat; padding:0; cursor:pointer; transition:border-color .15s; }
.ld-thumb:hover{ border-color:var(--bdh); }
.ld-thumb.active{ border:2px solid var(--y); }

/* ---- Right column ---- */
.ld-pills{ display:flex; gap:8px; margin-bottom:14px; }
.ld-pill{ display:inline-flex; align-items:center; font-size:12px; font-weight:600; padding:4px 10px;
  border-radius:999px; background:#F3F4F6; color:#374151; }
.ld-pill-active{ background:var(--sbg); color:var(--sc); }
.ld-title{ font-size:30px; font-weight:800; letter-spacing:-0.02em; line-height:1.2; margin:0 0 14px; }
.ld-pricerow{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.ld-price{ font-size:30px; font-weight:800; line-height:1; letter-spacing:-0.01em; }
.ld-save{ height:48px; display:inline-flex; align-items:center; gap:9px; padding:0 18px; border-radius:12px;
  background:#fff; border:1px solid var(--bd); font-family:inherit; font-size:14px; font-weight:600;
  color:var(--t); cursor:pointer; white-space:nowrap; transition:background .15s, border-color .15s; }
.ld-save:hover{ background:#F9FAFB; border-color:var(--bdh); }
.ld-save .save-heart-icon{ display:inline-flex; color:var(--color-coral); }
.ld-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.ld-chip{ display:inline-flex; align-items:center; font-size:12px; font-weight:600; padding:5px 12px;
  border-radius:999px; background:#F3F4F6; color:#374151; }

.ld-card{ border:1px solid var(--dv); border-radius:16px; }
.ld-card + .ld-card{ margin-top:16px; }
.ld-card-title{ font-size:18px; font-weight:700; color:var(--t); margin-bottom:16px; }
.ld-details{ padding:24px 28px; }
.ld-details-list{ display:grid; grid-template-columns:1fr 1fr; column-gap:44px; }
.ld-detail{ display:flex; align-items:center; height:48px; border-bottom:1px solid var(--soft); font-size:14px; }
.ld-detail:last-child{ border-bottom:0; }
.ld-detail svg{ width:18px; height:18px; color:var(--ph); margin-right:10px; flex-shrink:0; }
.ld-detail-label{ color:var(--t2); }
.ld-detail-value{ margin-left:auto; font-weight:600; color:var(--t); text-align:right; }
.ld-desc{ margin:18px 0 0; font-size:14px; line-height:1.6; color:var(--t2); }

.ld-seller{ padding:20px 24px; }
.ld-seller-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
.ld-seller-title{ margin-bottom:16px; }
.ld-seller-name{ font-size:16px; font-weight:700; color:var(--t); display:inline-flex; align-items:center; }
.ld-seller-meta{ font-size:13px; color:var(--ph); margin-top:2px; }
.ld-btn-outline{ height:42px; display:inline-flex; align-items:center; justify-content:center; padding:0 18px;
  border-radius:12px; background:#fff; border:1px solid var(--bd); font-family:inherit; font-size:14px;
  font-weight:600; color:var(--t); cursor:pointer; text-decoration:none; white-space:nowrap;
  transition:background .15s, border-color .15s; }
.ld-btn-outline:hover{ background:#F9FAFB; border-color:var(--bdh); }

.ld-message{ padding:24px; }
.ld-textarea{ width:100%; height:132px; border:1px solid var(--bd); border-radius:12px; padding:14px 16px;
  font-family:inherit; font-size:15px; color:var(--t); resize:vertical; margin-bottom:14px; line-height:1.5;
  transition:border-color .15s, box-shadow .15s; }
.ld-textarea::placeholder{ color:var(--ph); }
.ld-textarea:focus{ outline:none; border-color:var(--y); box-shadow:0 0 0 1px var(--y); }
.ld-btn-primary{ width:100%; height:56px; border:0; border-radius:10px; background:var(--y);
  color:#111; font-family:inherit; font-size:16px; font-weight:500; cursor:pointer; transition:background .18s, transform .18s; }
.ld-btn-primary:hover{ background:var(--yh); transform:translateY(-1px); }
.ld-msg-note{ font-size:13px; color:var(--t2); margin-top:10px; }
.ld-verified{ width:16px; height:16px; margin-left:4px; }

.ld-lightbox{ position:fixed; inset:0; background:rgba(17,17,17,.9); display:flex; align-items:center;
  justify-content:center; padding:40px; z-index:1000; }
.ld-lightbox img{ max-width:92%; max-height:92%; object-fit:contain; border-radius:12px; }

@media (max-width:920px){
  .ld{ padding:24px 20px 60px; }
  /* Stack: photo → title/price/message → details. Un-stick the rail. */
  .ld-grid{ grid-template-columns:1fr; grid-template-areas:"gallery" "buybox" "content"; gap:28px; }
  .ld-buybox{ position:static; top:auto; }
  .ld-details-list{ grid-template-columns:1fr; }
  .ld-title{ font-size:26px; }
  .ld-price{ font-size:30px; }
}

/* ============================================================
   Settings page (Profile / Account) — .sx (Sell Wheels) system
   ============================================================ */
.set-page{ background:#fff; }
.set-wrap{
  --y:#FFC400; --yh:#EAB308; --t:#111111; --t2:#6B7280; --ph:#9CA3AF;
  --bd:#E5E7EB; --bdh:#D1D5DB; --dv:#ECECEC; --soft:#F1F1F1;
  font-family:'Inter',-apple-system,system-ui,sans-serif; color:var(--t);
  max-width:1000px; margin:0 auto; padding:32px 40px 80px;
}
.set-wrap *{ box-sizing:border-box; }

/* Sidebar */
.set-side{ display:flex; flex-direction:column; gap:4px; position:sticky; top:96px; }
.set-side-item{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px;
  color:var(--t2); font-size:14px; font-weight:600; text-decoration:none; transition:background .15s, color .15s; }
.set-side-item svg{ width:18px; height:18px; flex-shrink:0; }
.set-side-item:hover{ background:#F7F8FA; color:var(--t); }
.set-side-item.active{ background:#F3F4F6; color:var(--t); }

/* Header */
.set-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:24px; }
.set-title{ font-size:30px; font-weight:800; letter-spacing:-0.02em; margin:0 0 6px; }
.set-sub{ font-size:15px; color:var(--t2); margin:0; }
.set-viewbtn{ display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 16px; border:1px solid var(--bd);
  border-radius:10px; background:#fff; font-family:inherit; font-size:14px; font-weight:600; color:var(--t);
  text-decoration:none; white-space:nowrap; cursor:pointer; transition:background .15s, border-color .15s; }
.set-viewbtn:hover{ background:#F9FAFB; border-color:var(--bdh); }
.set-viewbtn svg{ width:16px; height:16px; }

/* Cards */
.set-card{ border:1px solid var(--dv); border-radius:14px; padding:24px 26px; margin-bottom:20px; }
.set-card-title{ font-size:17px; font-weight:700; color:var(--t); margin:0 0 18px; }
.set-card-title.has-sub{ margin-bottom:4px; }
.set-card-sub{ font-size:14px; color:var(--t2); margin:0 0 18px; line-height:1.5; }

/* Avatar */
.set-avatar-row{ display:flex; align-items:center; gap:20px; }
.set-avatar{ position:relative; width:74px; height:74px; border-radius:999px; background:#F3F4F6 center/cover no-repeat;
  display:flex; align-items:center; justify-content:center; color:var(--ph); flex-shrink:0; }
.set-avatar svg.person{ width:34px; height:34px; }
.set-avatar-cam{ position:absolute; right:-2px; bottom:-2px; width:26px; height:26px; border-radius:999px; background:#fff;
  border:1px solid var(--bd); display:flex; align-items:center; justify-content:center; color:var(--t2); }
.set-avatar-cam svg{ width:14px; height:14px; }
.set-av-t{ font-size:15px; font-weight:600; }
.set-av-s{ font-size:13px; color:var(--ph); margin:2px 0 12px; }
.set-btn-outline{ display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 16px; border:1px solid var(--bd);
  border-radius:10px; background:#fff; font-family:inherit; font-size:14px; font-weight:600; color:var(--t); cursor:pointer;
  transition:background .15s, border-color .15s; }
.set-btn-outline:hover{ background:#F9FAFB; border-color:var(--bdh); }

/* Fields */
.set-field + .set-field{ margin-top:16px; }
.set-label{ display:block; font-size:14px; font-weight:500; color:#374151; margin-bottom:7px; }
.set-input{ width:100%; height:48px; border:1px solid var(--bd); border-radius:10px; padding:0 14px; font-family:inherit;
  font-size:15px; color:var(--t); background:#fff; transition:border-color .15s, box-shadow .15s; }
.set-input::placeholder{ color:var(--ph); }
.set-input:hover{ border-color:var(--bdh); }
.set-input:focus{ outline:none; border-color:var(--y); box-shadow:0 0 0 1px var(--y); }
.set-input:disabled{ background:#F9FAFB; color:var(--t2); cursor:default; }
.set-publink{ font-size:13px; color:var(--t2); margin-top:8px; }
.set-publink a{ color:var(--yh); font-weight:600; text-decoration:none; }
.set-publink a:hover{ text-decoration:underline; }
.set-uhint{ font-size:13px; margin-top:8px; }
.set-uhint.bad{ color:#b42318; }
.set-uhint.ok{ color:#15803D; }
.set-flow-row{ display:flex; align-items:center; gap:16px; margin-top:14px; }
.set-flow-msg{ font-size:14px; color:var(--t2); margin-bottom:12px; line-height:1.5; }
.set-flow-msg.ok{ color:#15803D; font-weight:500; }

/* Pro Member upsell card (light + 2px yellow border) */
.set-pro{ border:2px solid var(--y); border-radius:16px; background:#fff; padding:28px 30px; margin-bottom:20px; }
.set-pro-tag{ display:inline-flex; align-items:center; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#111; background:var(--y); border-radius:999px; padding:5px 11px; margin-bottom:14px; }
.set-pro-h{ font-size:24px; font-weight:800; letter-spacing:-.02em; margin:0 0 6px; }
.set-pro-sub{ font-size:14px; color:var(--t2); margin:0 0 22px; }
.set-pro-perks{ display:grid; gap:14px; margin-bottom:24px; }
.set-pro-perk{ display:flex; align-items:flex-start; gap:11px; }
.set-pro-perk .ck{ flex-shrink:0; width:22px; height:22px; border-radius:999px; background:var(--sbg); color:var(--sc); display:flex; align-items:center; justify-content:center; margin-top:1px; }
.set-pro-perk .ck svg{ width:13px; height:13px; }
.set-pro-perk-t{ font-size:14.5px; font-weight:600; color:var(--t); }
.set-pro-perk-d{ font-size:13.5px; color:var(--t2); margin-top:1px; line-height:1.4; }
.set-pro-foot{ display:flex; align-items:center; gap:16px; }
.set-pro-cta{ height:48px; padding:0 26px; border:0; border-radius:10px; background:var(--y); color:#111; font-family:inherit; font-size:15px; font-weight:700; cursor:pointer; transition:background .16s, transform .16s; }
.set-pro-cta:hover{ background:var(--yh); transform:translateY(-1px); }
.set-pro-cta:disabled{ opacity:.6; transform:none; }
.set-pro-note{ font-size:13px; color:var(--ph); }

/* Bolt-pattern checkbox grid */
.set-bolt-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.set-bolt{ display:flex; align-items:center; gap:10px; height:48px; padding:0 14px; border:1px solid var(--bd);
  border-radius:10px; cursor:pointer; font-size:14px; color:var(--t); user-select:none; transition:border-color .15s, background .15s; }
.set-bolt:hover{ border-color:var(--bdh); }
.set-bolt input{ width:18px; height:18px; accent-color:var(--y); cursor:pointer; margin:0; }
.set-bolt.on{ border-color:var(--y); background:#FFFBEB; }

/* Notification toggles */
.set-notify-grid{ display:flex; flex-direction:column; }
.set-notify-row{ display:flex; align-items:center; gap:16px; padding:15px 0; border-bottom:1px solid var(--bd); cursor:pointer; }
.set-notify-row:last-child{ border-bottom:none; }
.set-notify-txt{ flex:1; display:flex; flex-direction:column; gap:3px; }
.set-notify-t{ font-size:15px; font-weight:600; color:var(--t); }
.set-notify-s{ font-size:13px; color:var(--t2); line-height:1.45; }
.set-switch{ position:absolute; opacity:0; width:0; height:0; }
.set-switch-track{ position:relative; flex:none; width:44px; height:26px; border-radius:999px; background:var(--bd); transition:background .18s; }
.set-switch-track::after{ content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .18s; }
.set-switch:checked ~ .set-switch-track{ background:var(--y); }
.set-switch:checked ~ .set-switch-track::after{ transform:translateX(18px); }
.set-switch:focus-visible ~ .set-switch-track{ outline:2px solid var(--y); outline-offset:2px; }

/* Bio */
.set-textarea{ width:100%; height:120px; border:1px solid var(--bd); border-radius:10px; padding:14px 16px; font-family:inherit;
  font-size:15px; color:var(--t); resize:vertical; line-height:1.5; transition:border-color .15s, box-shadow .15s; }
.set-textarea::placeholder{ color:var(--ph); }
.set-textarea:focus{ outline:none; border-color:var(--y); box-shadow:0 0 0 1px var(--y); }
.set-counter{ font-size:12px; color:var(--ph); text-align:right; margin-top:6px; }

/* Footer + membership + danger */
.set-footer{ display:flex; align-items:center; gap:18px; margin-top:4px; }
.set-save{ height:48px; padding:0 30px; border:0; border-radius:10px; background:var(--y); color:#111; font-family:inherit;
  font-size:15px; font-weight:700; cursor:pointer; transition:background .18s, transform .18s; }
.set-save:hover{ background:var(--yh); transform:translateY(-1px); }
.set-save:disabled{ opacity:.6; transform:none; }
.set-cancel{ background:none; border:0; color:var(--t2); font-family:inherit; font-size:14px; font-weight:600; cursor:pointer; padding:8px 4px; }
.set-cancel:hover{ color:var(--t); }
.set-err{ color:#b42318; font-size:14px; margin-bottom:12px; }
.set-danger{ border-color:#F4C9C9; }
.set-danger .set-card-title{ color:#b42318; }
.set-btn-danger{ display:inline-flex; align-items:center; height:44px; padding:0 18px; border:1px solid #E9A8A8; border-radius:10px;
  background:#fff; font-family:inherit; font-size:14px; font-weight:600; color:#b42318; cursor:pointer; transition:background .15s; }
.set-btn-danger:hover{ background:#FEF2F2; }
.set-badge.member{ background:#DCFCE7; color:#15803D; }
.set-badge.free{ background:#F3F4F6; color:#6B7280; }

@media (max-width:820px){
  .set-wrap{ padding:24px 20px 60px; }
}

/* ============================================================
   Profile page (.pf) — on the Sell/Settings (.sx) design system
   ============================================================ */
.pf-page { background: #fff; }
.pf-wrap {
  --y:#FFC400; --yh:#EAB308; --t:#111111; --t2:#6B7280; --ph:#9CA3AF;
  --bd:#E5E7EB; --bdh:#D1D5DB; --dv:#ECECEC; --soft:#F1F1F1; --sbg:#DCFCE7; --sc:#15803D;
  font-family:'Inter',-apple-system,system-ui,sans-serif; color:var(--t);
  max-width:1080px; margin:0 auto; padding:32px 40px 80px;
}
.pf-wrap * { box-sizing:border-box; }

/* Profile head card */
.pf-head { position:relative; display:flex; align-items:flex-start; gap:28px; border:1px solid var(--dv); border-radius:16px; padding:28px 32px; }
.pf-avatar { width:132px; height:132px; border-radius:999px; background:#F3F4F6 center/cover no-repeat; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:var(--ph); }
.pf-avatar svg { width:56px; height:56px; }
.pf-head-main { flex:1; min-width:0; padding-top:8px; }
.pf-name { display:flex; align-items:center; gap:10px; font-size:30px; font-weight:800; letter-spacing:-.02em; line-height:1.1; }
.pf-name .pf-verified { width:22px; height:22px; flex-shrink:0; }
.pf-joined { font-size:14px; color:var(--t2); margin-top:7px; }
.pf-actions { margin-top:22px; }
.pf-btn { display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 18px; border:1px solid var(--bd); border-radius:10px; background:#fff; font-family:inherit; font-size:14px; font-weight:600; color:var(--t); cursor:pointer; text-decoration:none; transition:background .15s, border-color .15s; }
.pf-btn:hover { background:#F9FAFB; border-color:var(--bdh); }
.pf-btn svg { width:16px; height:16px; }
.pf-head-actions { position:absolute; top:28px; right:32px; display:flex; align-items:center; gap:8px; }

/* Tabs (home-style, yellow underline) */
.pf-tabs { display:flex; gap:30px; border-bottom:1px solid var(--dv); margin:26px 0 0; padding:0 4px; }
.pf-tab { background:none; border:0; border-bottom:2px solid transparent; padding:0 2px 14px; margin-bottom:-1px; font-family:inherit; font-size:15px; font-weight:600; color:var(--t2); cursor:pointer; display:inline-flex; align-items:center; gap:8px; }
.pf-tab:hover { color:var(--t); }
.pf-tab.active { color:var(--t); border-bottom-color:var(--y); }
.pf-tab-count { font-size:12px; font-weight:700; color:var(--t2); background:var(--soft); border-radius:999px; padding:1px 8px; }
.pf-tab.active .pf-tab-count { background:#FFF3CC; color:#111; }

/* Panels */
.pf-panel { margin-top:24px; }
.pf-panel[hidden] { display:none; }
.pf-garage-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:24px 20px; }
.pf-garage-grid .listing-card { background:#fff; border:1px solid var(--dv); border-radius:16px; padding:12px; transition:box-shadow .15s, border-color .15s; }
.pf-garage-grid .listing-card:hover { border-color:var(--y); box-shadow:0 0 0 1px var(--y); }
.pf-garage-grid .listing-card-photo { height:200px; aspect-ratio:auto; border-radius:12px; background-color:#f6f7f8; }
.pf-garage-grid .listing-card-body { padding:14px 4px 4px; gap:10px; }
.pf-garage-grid .listing-card-title { font-size:16px; line-height:1.25; }
.pf-garage-grid .listing-card-price { font-size:18px; font-weight:800; }

/* Empty state (inside a panel) */
.pf-empty { display:flex; align-items:center; gap:18px; border:1px solid var(--dv); border-radius:16px; padding:26px 28px; }
.pf-empty-ic { width:52px; height:52px; border-radius:12px; background:var(--soft); display:flex; align-items:center; justify-content:center; color:var(--ph); flex-shrink:0; }
.pf-empty-ic svg { width:26px; height:26px; }
.pf-empty-t { font-size:17px; font-weight:700; }
.pf-empty-s { font-size:14px; color:var(--t2); margin-top:3px; }
.pf-empty .pf-cta { margin-left:auto; }
.pf-cta { display:inline-flex; align-items:center; height:44px; padding:0 22px; border:0; border-radius:10px; background:var(--y); color:#111; font-family:inherit; font-size:14px; font-weight:700; cursor:pointer; text-decoration:none; white-space:nowrap; transition:background .16s, transform .16s; }
.pf-cta:hover { background:var(--yh); transform:translateY(-1px); }

/* Reviews */
.pf-review { border:1px solid var(--dv); border-radius:14px; padding:20px 22px; }
.pf-review + .pf-review { margin-top:14px; }
.pf-review-head { display:flex; align-items:center; gap:12px; }
.pf-review-av { width:40px; height:40px; border-radius:999px; background:#F3F4F6; display:flex; align-items:center; justify-content:center; color:var(--ph); flex-shrink:0; }
.pf-review-av svg { width:22px; height:22px; }
.pf-review-name { font-size:15px; font-weight:700; }
.pf-review-stars { color:var(--y); font-size:14px; letter-spacing:2px; margin-top:2px; }
.pf-review-date { font-size:13px; color:var(--ph); margin-left:auto; align-self:flex-start; }
.pf-review-body { margin-top:12px; font-size:14px; color:var(--t2); line-height:1.55; }
.pf-review-name { text-decoration:none; color:var(--t); }
.pf-review-name:hover { text-decoration:underline; }
.pf-verified svg { width:100%; height:100%; display:block; }
.pf-rating { display:flex; align-items:center; gap:8px; margin-top:10px; font-size:14px; color:var(--t2); }
.pf-rating strong { color:var(--t); font-weight:700; }
.pf-rating-count { color:var(--ph); }
.pf-bio { margin:12px 0 0; font-size:14px; color:var(--t2); line-height:1.55; max-width:640px; }
.pf-loc { display:inline-flex; align-items:center; gap:4px; }
.pf-loc svg { width:14px; height:14px; }
.pf-sold { margin-top:28px; }
.pf-sub { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--ph); margin-bottom:14px; }
.pf-reviews-bar { display:flex; justify-content:flex-end; margin-bottom:16px; }

/* Self-view garage cards double as a management panel. */
.pf-mycard { display:flex; flex-direction:column; }
.pf-mycard .listing-card { width:100%; }
.pf-mycard .dash-insights { margin-top:10px; padding-top:10px; gap:16px; font-size:12px; }
.pf-mycard .dash-mi svg { width:14px; height:14px; }
.pf-mycard-actions { display:flex; gap:6px; margin-top:10px; }
.pf-mc-btn { flex:1; display:inline-flex; align-items:center; justify-content:center; gap:5px; height:34px; padding:0 8px; border:1px solid var(--bd); background:#fff; border-radius:8px; font:600 13px/1 Inter,system-ui,sans-serif; color:var(--t); cursor:pointer; }
.pf-mc-btn svg { width:14px; height:14px; }
.pf-mc-btn:hover { border-color:var(--bdh); background:var(--soft); }
.pf-mc-danger { color:#DC2626; }
.pf-mc-danger:hover { border-color:#DC2626; background:#FEF2F2; }

/* Per-card status dropdown (Active / Pending / Sold) */
.pf-status-wrap { position:relative; flex:1; display:flex; }
.pf-status-sel { flex:1; width:100%; height:34px; padding:0 26px 0 10px; border:1px solid var(--bd); border-radius:8px; background:#fff; font:600 13px/1 Inter,system-ui,sans-serif; color:var(--t); cursor:pointer; appearance:none; -webkit-appearance:none; }
.pf-status-sel:hover { border-color:var(--bdh); }
.pf-status-wrap > svg { position:absolute; right:8px; top:50%; transform:translateY(-50%); width:13px; height:13px; color:var(--t2); pointer-events:none; }

/* Garage status filter bar */
.pf-gfilter { display:inline-flex; gap:6px; margin-bottom:20px; flex-wrap:wrap; }
.pf-fchip { display:inline-flex; align-items:center; gap:7px; height:36px; padding:0 15px; border:1px solid var(--bd); background:#fff; border-radius:10px; font:600 13.5px Inter,system-ui,sans-serif; color:var(--t2); cursor:pointer; }
.pf-fchip:hover { border-color:var(--bdh); color:var(--t); }
.pf-fchip.active { background:var(--t); border-color:var(--t); color:#fff; }
.pf-fchip-n { font-size:12px; font-weight:700; color:var(--ph); }
.pf-fchip.active .pf-fchip-n { color:rgba(255,255,255,.65); }

@media (max-width:720px){
  .pf-wrap { padding:24px 20px 60px; }
  .pf-head { flex-direction:column; gap:18px; }
  .pf-head-actions { position:static; margin-top:0; }
}

/* ============ Messages (inbox) ============ */
/* Fills the viewport under the sticky header (announcement 36 + nav 64 + its
   1px border = 101px) and never scrolls the page — the panes scroll internally. */
.msg-page { font-family:Inter,system-ui,sans-serif; box-sizing:border-box; max-width:1440px; margin:0 auto; padding:28px 40px 32px; height:calc(100vh - 101px); display:flex; flex-direction:column; overflow:hidden; }
/* #inbox-root wrapper: pass the flex column through so the wrap can fill height. */
.msg-page > div { flex:1; min-height:0; display:flex; flex-direction:column; }
.msg-h1 { font-size:30px; font-weight:800; letter-spacing:-.02em; color:#111; margin:0 0 20px; flex-shrink:0; }
.msg-wrap { flex:1; min-height:0; display:grid; grid-template-columns:380px 1fr; grid-template-rows:minmax(0,1fr); gap:20px; }
.msg-list { border:1px solid #E5E7EB; border-radius:16px; background:#fff; display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.msg-list-search { display:flex; gap:8px; padding:16px; border-bottom:1px solid #F1F1F1; }
.msg-search { flex:1; display:flex; align-items:center; gap:8px; border:1px solid #E5E7EB; border-radius:10px; padding:0 12px; height:40px; }
.msg-search:focus-within { border-color:#FFC400; box-shadow:0 0 0 1px #FFC400; }
.msg-search svg { width:17px; height:17px; color:#9CA3AF; flex-shrink:0; }
.msg-search input { flex:1; border:0; outline:none; background:none; font:400 14px Inter,system-ui,sans-serif; color:#111; min-width:0; }
.msg-filter-btn { width:40px; height:40px; flex-shrink:0; border:1px solid #E5E7EB; border-radius:10px; background:#fff; color:#111; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.msg-filter-btn:hover { border-color:#D1D5DB; background:#F5F6F7; }
.msg-filter-btn svg { width:18px; height:18px; }
.msg-filter-btn.active { background:#111; border-color:#111; color:#fff; }
.msg-list-body { flex:1; overflow-y:auto; min-height:0; }
.msg-list-empty { padding:40px 20px; text-align:center; color:#9CA3AF; font-size:14px; }
.msg-conv { display:flex; gap:12px; align-items:center; width:100%; text-align:left; padding:14px 16px; border:0; border-bottom:1px solid #F5F6F7; background:none; cursor:pointer; font-family:inherit; }
.msg-conv:hover { background:#FAFAFA; }
.msg-conv.active { background:#F5F6F7; }
.msg-avatar { width:46px; height:46px; border-radius:999px; background:#F5F6F7 center/cover no-repeat; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#C4C7CC; }
.msg-avatar svg { width:26px; height:26px; }
.msg-conv-main { flex:1; min-width:0; }
.msg-conv-name { font-size:14.5px; font-weight:700; color:#111; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:2px; }
.msg-conv-preview { font-size:13.5px; color:#6B7280; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.msg-conv.unread .msg-conv-preview { color:#111; font-weight:600; }
.msg-conv-side { display:flex; flex-direction:column; align-items:flex-end; justify-content:space-between; align-self:stretch; padding:2px 0; flex-shrink:0; }
.msg-conv-time { font-size:12px; color:#9CA3AF; white-space:nowrap; }
.msg-conv-dot { width:9px; height:9px; border-radius:999px; background:#FFC400; }
.msg-list-foot { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-top:1px solid #F1F1F1; font-size:13px; color:#6B7280; }
.msg-sort { display:inline-flex; align-items:center; gap:4px; border:0; background:none; font:600 13px Inter,system-ui,sans-serif; color:#111; cursor:pointer; }
.msg-sort svg { width:15px; height:15px; }

.msg-thread { border:1px solid #E5E7EB; border-radius:16px; background:#fff; display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.msg-empty { margin:auto; text-align:center; padding:40px; max-width:420px; }
.msg-empty-ic { color:#D1D5DB; margin:0 auto 22px; }
.msg-empty-ic svg { width:96px; height:96px; }
.msg-empty-t { font-size:22px; font-weight:800; letter-spacing:-.01em; color:#111; margin-bottom:24px; }
.msg-empty-btn { display:inline-flex; align-items:center; gap:9px; height:48px; padding:0 22px; border-radius:12px; background:#FFC400; color:#111; font:700 15px Inter,system-ui,sans-serif; text-decoration:none; }
.msg-empty-btn:hover { background:#EAB308; }
.msg-empty-btn svg { width:19px; height:19px; }
.msg-thread-head { display:flex; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid #F1F1F1; }
.msg-back { display:none; width:34px; height:34px; border:0; background:none; border-radius:8px; cursor:pointer; color:#111; align-items:center; justify-content:center; flex-shrink:0; }
.msg-back svg { width:20px; height:20px; }
.msg-thread-av { width:40px; height:40px; border-radius:999px; background:#F5F6F7 center/cover no-repeat; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#9CA3AF; }
.msg-thread-av svg { width:22px; height:22px; }
.msg-thread-who { flex:1; min-width:0; display:flex; flex-direction:column; }
.msg-thread-name { font-size:15px; font-weight:700; color:#111; text-decoration:none; }
.msg-thread-name:hover { text-decoration:underline; }
.msg-thread-listing { font-size:12.5px; color:#6B7280; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.msg-thread-listing:hover { color:#111; }
.msg-thread-thumb-link { flex-shrink:0; }
.msg-thread-thumb { width:40px; height:40px; border-radius:10px; background:#F5F6F7 center/cover no-repeat; display:flex; align-items:center; justify-content:center; color:#C4C7CC; }
.msg-thread-thumb svg { width:22px; height:22px; }
.msg-scroll { flex:1; overflow-y:auto; min-height:0; padding:18px 16px; display:flex; flex-direction:column; }
.msg-thread-empty { margin:auto; color:#9CA3AF; font-size:14px; text-align:center; }
.msg-bubble-row { display:flex; flex-direction:column; margin-bottom:8px; max-width:74%; }
.msg-bubble-row.mine { align-self:flex-end; align-items:flex-end; }
.msg-bubble-row.theirs { align-self:flex-start; align-items:flex-start; }
.msg-bubble { padding:9px 13px; border-radius:14px; font-size:14px; line-height:1.4; white-space:pre-wrap; word-break:break-word; }
.msg-bubble-row.theirs .msg-bubble { background:#F1F1F1; color:#111; border-bottom-left-radius:4px; }
.msg-bubble-row.mine .msg-bubble { background:#111; color:#fff; border-bottom-right-radius:4px; }
.msg-bubble-time { font-size:11px; color:#9CA3AF; margin-top:3px; padding:0 4px; }
.msg-composer { display:flex; gap:10px; align-items:flex-end; padding:12px 16px; border-top:1px solid #F1F1F1; }
.msg-composer textarea { flex:1; resize:none; border:1px solid #E5E7EB; border-radius:12px; padding:10px 14px; font:400 14px/1.4 Inter,system-ui,sans-serif; color:#111; outline:none; max-height:120px; }
.msg-composer textarea:focus { border-color:#FFC400; box-shadow:0 0 0 1px #FFC400; }
.msg-send { width:44px; height:42px; border:0; border-radius:11px; background:#FFC400; color:#111; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.msg-send:hover { background:#EAB308; }
.msg-send svg { width:20px; height:20px; }

@media (max-width:760px){
  .msg-page { padding:14px 14px; }
  .msg-h1 { font-size:24px; margin-bottom:14px; }
  .msg-wrap { grid-template-columns:1fr; gap:0; }
  .msg-thread { display:none; }
  .msg-wrap.thread-open .msg-list { display:none; }
  .msg-wrap.thread-open .msg-thread { display:flex; }
  .msg-back { display:flex; }
}

/* ============ Notifications ============ */
.ntf-page { font-family:Inter,system-ui,sans-serif; }
.ntf-wrap { max-width:800px; margin:0 auto; padding:28px 24px 60px; }
.ntf-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:22px; }
.ntf-head h1 { font-size:32px; font-weight:800; letter-spacing:-.02em; margin:0; color:#111; }
.ntf-subtitle { font-size:14.5px; color:#6B7280; margin:6px 0 0; }
.ntf-markall { border:1px solid #E5E7EB; background:#fff; border-radius:10px; height:40px; padding:0 16px; font:600 13.5px Inter,system-ui,sans-serif; color:#111; cursor:pointer; flex-shrink:0; }
.ntf-markall:hover { border-color:#D1D5DB; background:#F5F6F7; }
.ntf-list { display:flex; flex-direction:column; gap:10px; }
.ntf-item { display:flex; gap:14px; align-items:center; padding:16px 18px; border:1px solid #E5E7EB; border-radius:14px; background:#fff; text-decoration:none; transition:border-color .12s,background .12s; }
a.ntf-item:hover { border-color:#D1D5DB; }
.ntf-item.unread { background:#FFFBEF; border-color:#FBE6AE; }
a.ntf-item.unread:hover { border-color:#F5D677; }
.ntf-ic { width:44px; height:44px; border-radius:999px; background:#F5F6F7; color:#111; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ntf-ic-hot { background:#FCE9B4; color:#C89600; }  /* fitment matches, matches the nav tray */
.ntf-ic svg { width:21px; height:21px; }
.ntf-body { flex:1; min-width:0; }
.ntf-title { font-size:14.5px; font-weight:700; color:#111; line-height:1.35; }
.ntf-sub { font-size:13.5px; color:#6B7280; margin-top:2px; line-height:1.4; }
.ntf-time { font-size:12.5px; color:#9CA3AF; margin-top:5px; }
.ntf-right { display:flex; align-items:center; gap:14px; flex-shrink:0; }
.ntf-dot { width:9px; height:9px; border-radius:999px; background:#FFC400; }
.ntf-chev { color:#C4C7CC; display:flex; }
.ntf-chev svg { width:18px; height:18px; }
.ntf-foot { text-align:center; font-size:13px; color:#9CA3AF; margin-top:22px; }
.ntf-empty { text-align:center; padding:70px 20px; color:#9CA3AF; }
.ntf-empty-ic { width:56px; height:56px; border-radius:999px; background:#F5F6F7; color:#9CA3AF; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.ntf-empty-ic svg { width:26px; height:26px; }
.ntf-empty-t { font-size:17px; font-weight:700; color:#111; margin-bottom:5px; }
.ntf-empty-s { font-size:14px; }

/* Dropdown "See all" footer */
.nav-dd-seeall { display:flex; align-items:center; justify-content:center; gap:8px; padding:13px; font-size:13.5px; font-weight:600; color:#111; text-decoration:none; border-top:1px solid var(--color-border); }
.nav-dd-seeall svg { width:16px; height:16px; }
.nav-dd-seeall:hover { background:var(--color-muted-bg); }

/* ---- Messages: filter menu + thread ⋯ menu ---- */
.msg-filter-wrap { position:relative; flex-shrink:0; }
.msg-filter-menu { position:absolute; top:46px; right:0; z-index:30; min-width:190px; background:#fff; border:1px solid #E5E7EB; border-radius:12px; padding:6px; box-shadow:0 10px 28px rgba(0,0,0,.10); }
.msg-filter-menu button { display:block; width:100%; text-align:left; padding:9px 12px; border:0; background:none; border-radius:8px; font:500 13.5px Inter,system-ui,sans-serif; color:#111; cursor:pointer; }
.msg-filter-menu button:hover { background:#F5F6F7; }
.msg-filter-menu button.on { font-weight:700; background:#FFF9E8; }
.msg-menu-wrap { position:relative; flex-shrink:0; }
.msg-menu-btn { width:34px; height:34px; border:0; background:none; border-radius:8px; color:#6B7280; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.msg-menu-btn:hover { background:#F5F6F7; color:#111; }
.msg-menu-btn svg { width:20px; height:20px; }
.msg-menu { position:absolute; top:40px; right:0; z-index:30; min-width:210px; background:#fff; border:1px solid #E5E7EB; border-radius:12px; padding:6px; box-shadow:0 10px 28px rgba(0,0,0,.10); }
.msg-menu button { display:flex; align-items:center; gap:9px; width:100%; text-align:left; padding:10px 12px; border:0; background:none; border-radius:8px; font:600 13.5px Inter,system-ui,sans-serif; color:#111; cursor:pointer; white-space:nowrap; }
.msg-menu button:hover { background:#F5F6F7; }
.msg-menu button svg { width:17px; height:17px; color:#6B7280; flex-shrink:0; }

/* ---- Reusable confirm modal ---- */
.confirm-modal { background:#fff; border-radius:16px; padding:24px; width:400px; max-width:92vw; font-family:Inter,system-ui,sans-serif; }
.confirm-title { font-size:18px; font-weight:800; letter-spacing:-.01em; color:#111; margin:0 0 8px; }
.confirm-body { font-size:14.5px; color:#6B7280; line-height:1.5; margin:0 0 20px; }
.confirm-actions { display:flex; justify-content:flex-end; gap:10px; }
.confirm-actions button { height:42px; padding:0 18px; border-radius:10px; font:600 14px Inter,system-ui,sans-serif; cursor:pointer; border:1px solid transparent; }
.confirm-cancel { background:#fff; border-color:#E5E7EB; color:#111; }
.confirm-cancel:hover { border-color:#D1D5DB; background:#F5F6F7; }
.confirm-ok { background:#FFC400; color:#111; }
.confirm-ok:hover { background:#EAB308; }
.confirm-ok.danger { background:#DC2626; color:#fff; }
.confirm-ok.danger:hover { background:#B91C1C; }

/* ---- Message menu danger item + Report modal ---- */
.msg-menu-danger { color:#DC2626; }
.msg-menu-danger svg { color:#DC2626 !important; }

.report-modal { background:#fff; border-radius:16px; padding:22px 24px 24px; width:440px; max-width:94vw; font-family:Inter,system-ui,sans-serif; }
.report-head { display:flex; align-items:center; justify-content:space-between; }
.report-head h3 { font-size:19px; font-weight:800; letter-spacing:-.01em; color:#111; margin:0; }
.report-close { border:0; background:none; font-size:26px; line-height:1; color:#9CA3AF; cursor:pointer; padding:0; }
.report-close:hover { color:#111; }
.report-sub { font-size:13.5px; color:#6B7280; margin:8px 0 18px; line-height:1.5; }
.report-reasons { display:flex; flex-direction:column; gap:2px; margin-bottom:14px; }
.report-reason { display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:9px; cursor:pointer; font-size:14px; color:#111; }
.report-reason:hover { background:#F5F6F7; }
.report-reason input { accent-color:#111; width:16px; height:16px; flex-shrink:0; }
.report-details { width:100%; min-height:70px; resize:vertical; border:1px solid #E5E7EB; border-radius:10px; padding:10px 12px; font:400 14px Inter,system-ui,sans-serif; color:#111; outline:none; box-sizing:border-box; }
.report-details:focus { border-color:#FFC400; box-shadow:0 0 0 1px #FFC400; }
.report-blockopt { display:flex; align-items:center; gap:9px; margin-top:12px; font-size:14px; color:#111; cursor:pointer; }
.report-blockopt input { width:16px; height:16px; accent-color:#DC2626; flex-shrink:0; }
.report-error { color:#DC2626; font-size:13px; margin-top:10px; }
.report-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.report-cancel { height:42px; padding:0 18px; border-radius:10px; border:1px solid #E5E7EB; background:#fff; color:#111; font:600 14px Inter,system-ui,sans-serif; cursor:pointer; }
.report-cancel:hover { border-color:#D1D5DB; background:#F5F6F7; }
.report-submit { height:42px; padding:0 18px; border-radius:10px; border:0; background:#DC2626; color:#fff; font:600 14px Inter,system-ui,sans-serif; cursor:pointer; }
.report-submit:hover { background:#B91C1C; }
.report-done { text-align:center; padding:14px 6px 6px; }
.report-done-ic { width:52px; height:52px; border-radius:999px; background:#DCFCE7; color:#16A34A; font-size:26px; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.report-done-t { font-size:18px; font-weight:800; color:#111; margin-bottom:6px; }
.report-done-s { font-size:14px; color:#6B7280; line-height:1.5; margin-bottom:20px; }
.report-done-btn { background:#111; }
.report-done-btn:hover { background:#333; }

/* Blocked accounts (Settings) */
.set-blocked-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--soft); }
.set-blocked-row:first-child { border-top:0; }
.set-blocked-av { width:40px; height:40px; border-radius:999px; background:#F5F6F7 center/cover no-repeat; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#9CA3AF; }
.set-blocked-av svg { width:22px; height:22px; }
.set-blocked-name { flex:1; font-size:14.5px; font-weight:600; color:var(--t); }
.set-unblock { height:34px; padding:0 14px; border:1px solid var(--bd); background:#fff; border-radius:8px; font:600 13px Inter,system-ui,sans-serif; color:var(--t); cursor:pointer; }
.set-unblock:hover { border-color:var(--bdh); background:var(--soft); }
.set-blocked-empty { font-size:14px; color:var(--t2); padding:6px 0; }

/* Profile Report/Block menu */
.pf-menu-wrap { position:relative; flex-shrink:0; }
.pf-menu-btn { width:44px; padding:0; justify-content:center; }
.pf-menu-btn svg { width:20px; height:20px; }
.pf-menu { position:absolute; top:calc(100% + 6px); right:0; z-index:30; min-width:160px; background:#fff; border:1px solid var(--bd); border-radius:12px; padding:6px; box-shadow:0 10px 28px rgba(0,0,0,.10); }
.pf-menu button { display:flex; align-items:center; gap:9px; width:100%; text-align:left; padding:9px 12px; border:0; background:none; border-radius:8px; font:600 13.5px Inter,system-ui,sans-serif; color:var(--t); cursor:pointer; }
.pf-menu button:hover { background:var(--soft); }
.pf-menu button svg { width:16px; height:16px; color:var(--t2); }
.pf-menu-danger { color:#DC2626 !important; }
.pf-menu-danger svg { color:#DC2626 !important; }

/* Report-listing link */
.ld-report-link { display:inline-flex; align-items:center; gap:6px; margin-top:12px; background:none; border:0; padding:4px 0; color:#6B7280; font:500 13px Inter,system-ui,sans-serif; cursor:pointer; }
.ld-report-link:hover { color:#DC2626; }
.ld-report-link svg { width:15px; height:15px; }

/* =========================================================================
   MOBILE / RESPONSIVE — homepage + shared nav.
   Kept at the END of the file so these equal-specificity rules win the
   cascade over the base component rules they override (CSS cascades
   per-property, and a later same-specificity rule wins).
   ========================================================================= */
@media (max-width: 768px) {
  /* Tighter page gutters on phones (40px each side eats a 390px screen). */
  .container { padding: 0 20px; }

  /* Nav wraps to two tidy rows:
       row 1:  [logo] .................. [auth]
       row 2:  [Sell Wheels] [ search ............ ]
     Auth (order 2) is packed right after the logo, so the wide wordmark + auth
     fill row 1 and the Sell pill + search wrap together onto row 2. */
  .nav-inner {
    height: auto;
    padding: 9px 20px;
    gap: 9px 8px;
    flex-wrap: wrap;
  }
  .nav-logo { order: 1; margin-right: 0; }
  .nav-logo img { height: 26px; }
  .nav-right { order: 2; margin-left: auto; gap: 4px; }
  .nav-links { order: 3; gap: 4px; flex-shrink: 0; }
  .nav-search {
    order: 4;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin-left: 0;
    height: 42px;
  }
  /* Browse is redundant on mobile (logo → home shows the same grid). */
  .nav-link[data-nav="browse"] { display: none; }
  .nav-link.pill { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
  .nav-auth-btn { width: auto; padding: 0 15px; height: 38px; font-size: 14px; }

  /* Shorter, less shouty announcement + hero on small screens. */
  .announcement-banner { height: auto; padding: 10px 20px; font-size: 12px; line-height: 1.4; }

  /* Sell CTA (signed-in) sits in the right cluster; give it room from the bell. */
  .nav-sell-cta { margin-right: 6px; }

  /* Keep the wide notification/message trays inside the viewport (not off-screen). */
  .nav-dropdown-notifications,
  .nav-dropdown-messages {
    width: calc(100vw - 24px);
    max-width: 380px;
    margin-right: -12px;
  }
  .hero-bold { padding: 28px 0 70px; }
  .hero-bold h1 { font-size: 30px; }
  .hero-bold p { font-size: 15px; }

  /* Search-overlap card. */
  .search-overlap-card { margin-bottom: 28px; }
  .search-tab { padding: 15px 10px; font-size: 14px; line-height: 1.25; }
  .search-panel { padding: 18px 16px; }

  /* Vehicle picker: 2-up selects, full-width Find button on its own row. */
  .search-panel-row .field:last-child { grid-column: 1 / -1; }

  /* Size wizard: let the chevron step-bar scroll instead of crushing 6 steps. */
  .wizard-steps { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wizard-step { flex: 0 0 auto; min-width: max-content; font-size: 12px; padding: 13px 16px 13px 26px; text-align: left; }
  .size-checkbox-grid { grid-template-columns: repeat(2, 1fr); }
  .size-choice-grid { gap: 12px; }
  .size-choice-card { width: auto; flex: 1; padding: 18px 12px; }
  .size-choice-img { width: 96px; height: 96px; }

  /* Sort links wrap tidily. */
  .sort-links { gap: 14px; }
}

@media (max-width: 400px) {
  /* Very small phones (iPhone SE): keep logo + Sell + auth on one row. */
  .nav-logo img { height: 21px; }
  .nav-link.pill { padding: 7px 10px; font-size: 12px; }
  .nav-auth-btn { padding: 0 12px; height: 36px; font-size: 13px; }
  .hero-bold h1 { font-size: 27px; }
}

/* ---- Per-page mobile fixes (Settings / Inbox / Browse) ---- */
@media (max-width: 768px) {
  /* Settings header: stack the title above the "View your profile" button so
     they stop colliding / overflowing (was pushing the page to 425px wide). */
  .set-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .set-viewbtn { align-self: flex-start; }
  .set-title { font-size: 26px; }
  .set-sub { font-size: 14px; }
  /* Settings save/cancel footer: full-width primary, tidy spacing. */
  .set-footer { gap: 10px; }
  /* Bolt-pattern chips: 3-up doesn't fit (~112px each) → overflowed the page.
     Two columns fit a phone cleanly. */
  .set-bolt-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* Browse topbar: keep "N listings" on one line and stop the sort control from
     crowding it. */
  .browse-topbar { gap: 10px; }
  .browse-count { white-space: nowrap; font-size: 14px; }
  .browse-sort { gap: 6px; }
  .browse-sort select { max-width: 150px; }
}

@media (max-width: 760px) {
  /* Inbox: the fixed-height chat used a desktop 101px header offset, which is
     wrong for the taller mobile nav — it shoved the composer below the fold with
     a big empty gap. Use the dynamic viewport height and drop the redundant
     "Messages" heading so the thread + composer fit the screen. */
  .msg-h1 { display: none; }
  .msg-page { height: calc(100dvh - 120px); padding: 10px 20px 12px; }
}

/* Consistent 20px side gutters on mobile for the remaining page wrappers that
   still carried the desktop 40px (matches .container / .set-wrap / .ld = 20px). */
@media (max-width: 768px) {
  .sx-wrap { padding: 24px 20px 60px; }
  /* Settings tab bar (Profile settings / Account settings) — align its 40px
     desktop gutter to the 20px used by everything else. */
  .settings-subnav-inner { padding: 0 20px; }
}

/* =========================================================================
   MOBILE MENU — the signed-in ☰ becomes a full-width sheet (≤768px).
   On mobile the bell + mail icons are removed from the top bar and their
   destinations live inside this menu as direct links (no nested dropdowns,
   which were getting clipped off-screen).
   ========================================================================= */
.nav-dd-mob { display: none; }                                  /* desktop keeps the icon trays */
/* Backdrop sits BELOW the nav (z-index:50) so the menu — nested in the nav's
   stacking context — stays above it and remains tappable. It still dims the page
   content (z-index 0). */
.nav-menu-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.42); z-index: 40; }
@media (min-width: 769px) { .nav-menu-dot { display: none !important; } }

@media (max-width: 768px) {
  /* Bell + mail leave the top bar (they're in the ☰ menu now). */
  .nav-hide-mobile { display: none !important; }

  /* Full-width sheet dropping just under the (variable-height) nav. */
  .nav-dropdown-account {
    position: fixed;
    top: var(--nav-bottom, 108px);
    left: 0; right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 10px 16px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
    max-height: calc(100dvh - var(--nav-bottom, 108px));
    overflow-y: auto;
    z-index: 200;
  }
  .nav-dropdown-account::before { display: none; }              /* no caret on a full-width sheet */

  .nav-dropdown-account .nav-dd-head { padding: 14px 14px 12px; margin-bottom: 6px; }
  .nav-dropdown-account .nav-dd-name { font-size: 16px; }

  .nav-dropdown-account .nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 14px;
    margin: 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    white-space: normal;
  }
  .nav-dropdown-account .nav-dropdown-item + .nav-dropdown-item { margin-top: 2px; }
  .nav-dropdown-account .nav-dropdown-item:active { background: #F3F4F6; }
  .nav-dropdown-account #nav-logout { color: #DC2626; }

  .nav-dd-mob { display: flex; }
  .nav-dd-mob-ic { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: #111; flex-shrink: 0; }
  .nav-dd-mob-ic svg { width: 24px; height: 24px; }
  .nav-dd-count {
    margin-left: auto;
    min-width: 22px; height: 22px;
    padding: 0 7px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-coral); color: #fff;
    font-size: 12px; font-weight: 700;
    border-radius: 999px;
  }
  /* Divider separating the Notifications/Messages block from account links. */
  .nav-dd-mob + .nav-dropdown-item-profile {
    border-top: 1px solid var(--color-border);
    margin-top: 6px;
    padding-top: 16px;
  }
}
