: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-right-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.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;
  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-dark {
  background: var(--color-text);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.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);
}

.card-pad {
  padding: 24px;
}

/* ---------- 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-success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

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

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

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

.badge-blue {
  background: var(--color-blue);
  color: #fff;
}

.badge-coral {
  background: var(--color-coral);
  color: #fff;
}

/* ---------- 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;
}

.search-pills-row {
  display: flex;
  gap: 16px;
}

@media (max-width: 640px) {
  .search-pills-row {
    flex-direction: column;
  }
}

.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) */
.search-hero {
  max-width: 480px;
  margin: 40px auto 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-hero h1 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 6px;
}

.search-pill-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-accent);
  color: var(--color-accent-text);
  padding: 16px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: none;
  flex: 1;
  transition: background 0.15s;
}

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

.search-pill-btn .pill-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.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;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-text);
  color: #fff;
  border-radius: 12px 12px 0 0;
  position: sticky;
  top: 0;
}

.modal-header-title {
  font-weight: 700;
  font-size: 15px;
}

.modal-header-icon {
  cursor: pointer;
  color: #fff;
  opacity: 0.85;
  display: flex;
  align-items: center;
}

.modal-header-icon:hover {
  opacity: 1;
}

.modal-body {
  padding: 20px;
}

.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: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- 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;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(254, 200, 4, 0.2);
}

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;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-controls select,
.filter-controls input {
  width: auto;
  min-width: 110px;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.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);
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
}

.layout-listing {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .layout-listing {
    grid-template-columns: 1fr;
  }
}

.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;
}

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

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

.listing-card-meta {
  margin-top: auto;
  font-size: 13px;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  padding-top: 4px;
}

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

.gallery-main {
  aspect-ratio: 4 / 3;
  background: var(--color-muted-bg) center / cover no-repeat;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  overflow: hidden;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--color-muted-bg) center / cover no-repeat;
  cursor: pointer;
}

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

/* ---------- Specs table ---------- */

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.specs-table td:first-child {
  color: var(--color-text-muted);
  font-weight: 600;
  width: 40%;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

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

.conversation-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.12s;
}

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

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

.conversation-main {
  flex: 1;
  min-width: 0;
}

.conversation-title {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-preview {
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-dot {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.message-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.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;
}

.message-time {
  font-size: 11px;
  color: var(--color-text-muted);
  margin: -4px 0 10px;
}

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

.cmp-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;
}

.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;
}

/* ---------- 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: 340px;
  margin-top: 26px;
  margin-right: -20px;
  padding: 22px 0 0 0;
  min-height: 160px;
}

.nav-dropdown-messages {
  width: 340px;
  margin-top: 26px;
  margin-right: -20px;
  padding: 12px 0;
}

.nav-dropdown-account {
  width: 200px;
  margin-top: 26px;
  margin-right: -11px;
  padding: 28px 0;
}

.nav-dropdown-gear {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  color: var(--color-text-muted);
}

.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;
}

.nav-dropdown-row {
  display: block;
  padding: 12px 20px;
  color: var(--color-text);
}

.nav-dropdown-row:not(:first-child) {
  border-top: 1px solid var(--color-border);
}

.nav-dropdown-row:last-child {
  border-radius: 0 0 8px 8px;
}

.nav-dropdown-row:hover {
  background: var(--color-muted-bg);
}

.nav-dropdown-row-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}

.nav-dropdown-row-preview {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 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);
}

.save-heart-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

