/* ===========================
   CSS VARIABLES & RESET
   =========================== */
:root {
  /* Deep Charcoal · Chocolate Brown · Pure White palette */
  --primary:       #0F0F0F;   /* Deep Charcoal/Black — hero, footer, dark sections */
  --secondary:     #333333;   /* Accent Grey — secondary surfaces */
  --accent:        #45332F;   /* Dark Chocolate Brown — CTAs, highlights */
  --accent-light:  #5c4540;   /* Brown lighter */
  --accent-dark:   #2e201d;   /* Brown darker */
  --bg-light:      #ffffff;   /* Pure White — page background */
  --bg-white:      #ffffff;   /* Pure White — card surface */
  --text-dark:     #0F0F0F;   /* Deep Charcoal — primary text */
  --text-medium:   #333333;   /* Accent Grey — secondary text */
  --text-light:    #787878;   /* Product Mid-Grey — subtle text */
  --border:        #C8C8C8;   /* Light UI Grey — borders */
  --surface:       #f5f5f5;   /* Very light grey — subtle backgrounds */
  --text-muted:    #787878;   /* Product Mid-Grey — muted text */
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --shadow: 0 2px 20px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.18);
  --transition: all 0.25s ease;
  --font-heading: 'Jost', 'Segoe UI', sans-serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Prevent iOS rubber-band scroll from pulling fixed elements */
  height: -webkit-fill-available;
}

@supports (-webkit-overflow-scrolling: touch) {
  body {
    -webkit-overflow-scrolling: touch;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
}

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

img {
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

input, textarea, select {
  font-family: var(--font-body);
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.section-subtitle {
  color: var(--text-medium);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  width: 100%;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  position: relative;
}

/* Logo centered absolutely */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* Push actions to the right */
#navActions {
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Seller Search — icon trigger on left ── */
.nav-seller-search {
  position: relative;
  flex-shrink: 0;
}

/* The icon button */
.nav-search-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.15s;
}
.nav-search-trigger:hover { opacity: 0.6; }
.nav-search-trigger svg { flex-shrink: 0; }

/* ── Global full-screen search overlay ── */
/* ── Global Search Overlay — Vuori style ── */
.gs-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.35);
}
.gs-overlay.open {
  display: block;
  animation: gsFadeIn 0.15s ease;
}
@keyframes gsFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* White panel that slides down from top */
.gs-panel {
  background: #fff;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  animation: gsSlideDown 0.2s ease;
}
@keyframes gsSlideDown {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* Top bar with search input */
.gs-top {
  border-bottom: 1px solid #e8e8e8;
  padding: 0 2rem;
}
.gs-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 62px;
  max-width: 1200px;
  margin: 0 auto;
}
.gs-bar-icon { color: #999; flex-shrink: 0; }
.gs-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: #1a1a1a;
}
.gs-input::placeholder { color: #bbb; }
.gs-cancel {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: color 0.15s;
  padding: 0.4rem 0;
}
.gs-cancel:hover { color: #1a1a1a; }

/* Two-column results */
.gs-results {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 2.5rem;
  gap: 3rem;
  align-items: flex-start;
}

/* Left: suggestions */
.gs-col-suggestions {
  width: 220px;
  flex-shrink: 0;
}
.gs-col-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.85rem;
}
.gs-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.gs-suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  color: #333;
  transition: background 0.12s;
}
.gs-suggestion-item:hover { background: #f5f5f5; color: #000; }
.gs-suggestion-icon { color: #aaa; flex-shrink: 0; }

/* Right: products */
.gs-col-products { flex: 1; min-width: 0; }
.gs-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.gs-result-count {
  font-size: 0.82rem;
  color: #888;
}
.gs-view-all {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.gs-view-all:hover { text-decoration: underline; }

/* Fragrance grid */
.gs-frag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.gs-frag-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 8px;
  background: #fafafa;
  overflow: hidden;
  border: 1px solid #ebebeb;
  transition: box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
}
.gs-frag-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-color: #d8d8d8;
}
.gs-frag-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}
.gs-frag-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gs-frag-img-placeholder {
  width: 100%;
  height: 100%;
  background: #f0ede8;
}
.gs-frag-info { padding: 0.55rem 0.6rem 0.65rem; }
.gs-frag-brand {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
}
.gs-frag-name {
  font-size: 0.78rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.3;
  margin-top: 0.12rem;
}
.gs-frag-conc {
  font-size: 0.62rem;
  color: #aaa;
  margin-top: 0.1rem;
}

/* Misc */
.gs-hint {
  text-align: center;
  color: #bbb;
  font-size: 0.88rem;
  font-family: var(--font-body);
  padding: 3rem 2rem;
}
.gs-loading { color: #bbb; font-size: 0.82rem; padding: 0.5rem 0; }
.gs-empty-col { color: #bbb; font-size: 0.82rem; padding: 0.4rem 0; }

/* Users in search */
.gs-users-list { display: flex; flex-direction: column; gap: 0.05rem; }
.gs-user-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.12s;
}
.gs-user-row:hover { background: #f5f5f5; }
.gs-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}
.gs-user-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.gs-user-info { flex: 1; min-width: 0; }
.gs-user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gs-user-meta {
  font-size: 0.72rem;
  color: #999;
  margin-top: 0.05rem;
}

/* Avatar reused */
.nav-seller-avatar,
.nav-seller-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 400;
  color: #fff;
  flex-shrink: 0;
  object-fit: cover;
}

/* Mobile */
@media (max-width: 700px) {
  .gs-top { padding: 0 1rem; }
  .gs-results { flex-direction: column; gap: 1.5rem; padding: 1.25rem 1rem 2rem; }
  .gs-col-suggestions { width: 100%; }
  .gs-frag-grid { grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
}


.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  /* centered by nav-inner absolute positioning */
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.logo:hover .logo-img {
  opacity: 0.82;
}

/* login / signup center logo */
.form-logo {
  text-align: center;
  margin-bottom: 8px;
}

.form-logo-img {
  height: 52px;
  width: auto;
}

/* ===========================
   HERO SEARCH
   =========================== */
.hero-search-wrap {
  margin-bottom: 1.8rem;
}

.hero-search-box {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.hero-search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  display: flex;
  pointer-events: none;
  z-index: 1;
}

.hero-search-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.4rem 1rem 3.2rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.15);
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-search-box input::placeholder {
  color: rgba(255,255,255,0.38);
}

.hero-search-box input:focus {
  background: rgba(255,255,255,0.11);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(153,0,17,0.25);
}

.hero-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  z-index: 1000;
  display: none;
  text-align: left;
  /* Scroll when list is long */
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
}

.hero-search-results.open {
  display: block;
}

.hero-search-result-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  text-decoration: none;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.hero-search-result-item:last-of-type {
  border-bottom: none;
}

.hero-search-result-item:hover {
  background: var(--bg-light);
}

/* Image thumbnail — flush left, no padding */
.hero-search-result-thumb {
  width: 64px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
}

.hero-search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-search-result-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
}

.hero-search-result-info {
  padding: 0.7rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-search-result-brand {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.15rem;
}

.hero-search-result-name {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dark);
}

.hero-search-result-conc {
  font-size: 0.74rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

.hero-search-view-all {
  display: block;
  text-align: center;
  padding: 0.8rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  transition: background 0.12s;
}

.hero-search-view-all:hover {
  background: var(--bg-light);
}

.hero-search-empty {
  padding: 1.1rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.88rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 400;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 400;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(69, 51, 47, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-outline-white {
  background: var(--accent);
  color: #ffffff;
  border: 1.5px solid var(--accent);
}

.btn-outline-white:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 4px 18px rgba(153,0,17,0.45);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--primary);
  color: white;
}

.btn-dark:hover {
  background: var(--secondary);
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

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

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Nav buttons */
.btn-nav-outline {
  background: transparent;
  border: 1.5px solid var(--secondary);
  color: var(--text-dark);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

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

.btn-nav-gold {
  background: var(--accent);
  color: white;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

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

/* ===========================
   USER AVATAR
   =========================== */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 400;
  color: white;
  flex-shrink: 0;
  text-transform: uppercase;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 1.8rem;
}

.avatar-xl {
  width: 120px;
  height: 120px;
  font-size: 2.8rem;
  font-family: var(--font-heading);
  overflow: hidden;
}

/* Avatar image (when user uploads a photo) */
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Editable avatar (own profile) */
.avatar-editable {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.avatar-edit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}

.avatar-editable:hover .avatar-edit-overlay {
  opacity: 1;
}

/* Nav Likes */
/* Nav icon button (messages, shared style) */
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-icon-btn:hover {
  color: var(--accent);
  background: rgba(0,0,0,0.05);
}

.nav-icon-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #e05c5c;
  color: white;
  font-size: 0.62rem;
  font-weight: 400;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
}

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

.nav-likes-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-dark);
  transition: color 0.2s, background 0.2s;
  padding: 0;
}

.nav-likes-btn:hover {
  color: #e05c5c;
  background: rgba(0,0,0,0.05);
}

.nav-likes-btn svg {
  width: 20px;
  height: 20px;
}

.nav-likes-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #e05c5c;
  color: white;
  font-size: 0.65rem;
  font-weight: 400;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
}

.nav-likes-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  width: 300px;
  max-height: 380px;
  overflow-y: auto;
  display: none;
  z-index: 999;
}

.nav-likes-dropdown.open {
  display: block;
}

.nav-likes-header {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-white);
  z-index: 1;
}

.nav-likes-empty {
  padding: 1.25rem 1rem;
  font-size: 0.88rem;
  color: var(--text-light);
  text-align: center;
}

/* ── Notification bell ── */
.nav-notif-wrap {
  position: relative;
}

.nav-notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  display: none;
  z-index: 999;
}

.nav-notif-dropdown.open {
  display: block;
}

.nav-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.nav-notif-item:hover {
  background: var(--bg-off);
}

.nav-notif-item.unread {
  background: #faf6f0;
}

.nav-notif-item.persistent {
  border-left: 3px solid var(--accent);
  padding-left: calc(1rem - 3px);
}

.nav-notif-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.nav-notif-title {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
}

.nav-notif-sub {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.15rem;
  line-height: 1.35;
}

.nav-notif-time {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.nav-likes-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}

.nav-likes-item:last-child {
  border-bottom: none;
}

.nav-likes-item:hover {
  background: var(--bg-light);
}

.nav-likes-item-info {
  flex: 1;
  min-width: 0;
}

.nav-likes-item-name {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-likes-item-meta {
  font-size: 0.76rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

.nav-likes-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 4px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}

.nav-likes-item-remove:hover {
  color: #e05c5c;
  background: rgba(224,92,92,0.12);
}

/* Listing like/heart button */
.listing-like-btn {
  background: none;
  border: 1.5px solid var(--secondary);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.listing-like-btn:hover {
  color: #e05c5c;
  border-color: #e05c5c;
  background: rgba(224,92,92,0.12);
}

.listing-like-btn.liked {
  color: #e05c5c;
  border-color: #e05c5c;
  background: rgba(224,92,92,0.12);
}

.listing-like-btn svg {
  width: 16px;
  height: 16px;
}

/* Nav dropdown */
.nav-user-wrap {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
  min-width: 230px;
  overflow: hidden;
  display: none;
  z-index: 999;
  padding: 0.4rem 0;
}

.nav-dropdown.open {
  display: block;
  animation: dropdownFade 0.15s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* User header */
.nav-dropdown-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem 0.75rem;
}
.nav-dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 400;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-dropdown-user-info {
  min-width: 0;
}
.nav-dropdown-name {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-dropdown-username {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Section label */
.nav-dropdown-label {
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0.5rem 1rem 0.2rem;
}

/* Divider */
.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.3rem 0;
}

/* Links & buttons */
.nav-dropdown a, .nav-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.52rem 1rem;
  text-align: left;
  font-size: 0.86rem;
  color: var(--text-medium);
  background: none;
  border: none;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.nav-dropdown a svg, .nav-dropdown button svg {
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.12s;
}
.nav-dropdown a:hover, .nav-dropdown button:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}
.nav-dropdown a:hover svg, .nav-dropdown button:hover svg {
  opacity: 1;
}

/* Logout special styling */
.nav-dropdown-logout {
  color: #c0392b !important;
}
.nav-dropdown-logout:hover {
  background: #fff5f5 !important;
  color: #a93226 !important;
}
.nav-dropdown-logout svg {
  opacity: 0.7 !important;
}

/* Legacy divider compatibility */
.nav-dropdown .divider {
  height: 1px;
  background: var(--border);
  margin: 0.3rem 0;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  background-color: var(--primary);
  background-image: url('https://images.pexels.com/photos/1557652/pexels-photo-1557652.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center 40%;
  padding: 9rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 8, 15, 0.72) 0%,
    rgba(10, 8, 15, 0.58) 50%,
    rgba(10, 8, 15, 0.78) 100%
  );
  z-index: 1;
}

/* Allow the search dropdown to escape the hero's clip when active */
.hero.search-open {
  overflow: visible;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  width: 100%;
}

.hero-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.05;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

.hero h1 span {
  color: #D4B8A8;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Right column — trending carousel */
/* ===========================
   HERO LIVE FEED
   =========================== */
.hero-feed-wrap {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.hero-feed-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

.hero-feed-pulse {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.hero-feed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: feed-pulse 2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes feed-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  overflow: hidden;
}

.hero-feed-loading {
  padding: 1.5rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
}

.hero-feed-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: background 0.15s;
}

.hero-feed-item:last-child {
  border-bottom: none;
}

.hero-feed-item:hover {
  background: rgba(255,255,255,0.05);
}

.hero-feed-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 400;
  color: #fff;
  flex-shrink: 0;
}

.hero-feed-text {
  flex: 1;
  min-width: 0;
}

.hero-feed-main {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-feed-main strong {
  color: #ffffff;
  font-weight: 400;
}

.hero-feed-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.32);
  margin-top: 0.1rem;
}

.hero-feed-price {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  color: #45332F;
  flex-shrink: 0;
}

/* ===========================
   STATS BAR
   =========================== */
.stats-bar {
  background: #0d0c12;
  padding: 2rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.stat-item {
  text-align: center;
  flex: 1;
  max-width: 220px;
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  margin: 0 1rem;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  color: #45332F;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  margin-top: 0.4rem;
}

@media (max-width: 600px) {
  .stats-inner {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .stat-divider { display: none; }
  .stat-item { max-width: none; flex: 0 0 45%; }
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  padding: 4rem 2rem;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-dark {
  background: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.section-dark .section-title {
  color: white;
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.5);
}

/* ===========================
   SPRING GENDER BLOCKS
   =========================== */
.spring-gender-block {
  margin-bottom: 2.5rem;
}

.spring-gender-block:last-child {
  margin-bottom: 0;
}

.spring-gender-label {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===========================
   FRAGRANCE CARDS
   =========================== */
.fragrance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.fragrance-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.fragrance-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card-bottle-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.fragrance-card:hover .card-bottle-wrap {
  transform: scale(1.04);
}

.card-image-wrap {
  background: var(--bg-white);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card-image-wrap.has-photo {
  background: #ffffff;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
  transition: transform 0.3s ease;
  mix-blend-mode: multiply;
}

.fragrance-card:hover .card-img {
  transform: scale(1.04);
}

.card-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 8px;
}

.card-img-placeholder-letter {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 400;
  color: #e0e0e0;
  line-height: 1;
}

.card-img-placeholder-brand {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ccc;
}

.card-body {
  padding: 1.1rem;
}

.card-brand {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.card-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-medium);
  font-weight: 300;
  margin-bottom: 0.6rem;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.stars {
  color: var(--accent);
  letter-spacing: -1px;
}

.stars-gray {
  color: #ddd;
}

.rating-count {
  color: var(--text-light);
  font-size: 0.78rem;
}

.card-listings {
  font-size: 0.82rem;
  color: var(--text-medium);
  font-weight: 400;
}

.card-listings strong {
  color: var(--text-dark);
  font-weight: 400;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.tag-gender {
  background: rgba(153, 0, 17, 0.12);
  color: var(--accent);
}

.tag-concentration {
  background: rgba(0,0,0,0.05);
  color: var(--text-medium);
}

/* ===========================
   LISTING CARDS
   =========================== */
/* ── Recently Viewed scroll carousel ── */
.rv-rail-wrap {
  position: relative;
}

/* arrow buttons */
.rv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, box-shadow 0.15s;
}
.rv-arrow:hover { background: #f5f5f5; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.rv-arrow svg { pointer-events: none; }
.rv-arrow-left  { left: -20px; }
.rv-arrow-right { right: -20px; }

.rv-grid {
  display: flex;
  flex-direction: row;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.rv-grid::-webkit-scrollbar { display: none; }

.rv-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.rv-card:hover {
  border-color: #bbb;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
}

.rv-card-image-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.rv-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s ease;
  display: block;
}
.rv-card:hover .rv-card-img {
  transform: scale(1.05);
}

.rv-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rv-card-initial {
  font-size: 2.5rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-display);
}

.rv-card-info {
  padding: 0.7rem 0.9rem 0.9rem;
  border-top: 1px solid var(--border);
}
.rv-card-brand {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}
.rv-card-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Listing grid ── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.listing-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  color: inherit;
}

.listing-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: transparent;
  transform: translateY(-3px);
}

/* ── Listing card image ── */
.listing-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

.listing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

.listing-card:hover .listing-card-image img {
  transform: scale(1.04);
}

/* DB fragrance image — use multiply blend so white bg disappears */
.listing-card-image--db img {
  mix-blend-mode: multiply;
  background: #fff;
  object-fit: contain;
  padding: 1rem;
}

/* Placeholder when no image at all */
.listing-card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-card-image-letter {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  color: rgba(0,0,0,0.15);
  letter-spacing: 0.05em;
}

/* ── Card body (text content) ── */
.listing-card-body {
  padding: 1rem 1.1rem 1.1rem;
}

.listing-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.listing-card-title {
  min-width: 0;
}

.listing-fragrance-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-brand {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.listing-price {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dark);
  font-family: var(--font-heading);
  white-space: nowrap;
  flex-shrink: 0;
}

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

/* ── Condition badge — modern dot + label ── */
.condition-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.55rem 0.18rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.condition-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.condition-sealed       { background: rgba(34,197,94,0.1);  color: #15803d; }
.condition-sealed::before { background: #22c55e; }

.condition-near-perfect { background: rgba(20,184,166,0.1); color: #0f766e; }
.condition-near-perfect::before { background: #14b8a6; }

.condition-excellent    { background: rgba(59,130,246,0.1); color: #1d4ed8; }
.condition-excellent::before { background: #3b82f6; }

.condition-good         { background: rgba(234,179,8,0.1);  color: #a16207; }
.condition-good::before { background: #eab308; }

.condition-fair         { background: rgba(249,115,22,0.1); color: #c2410c; }
.condition-fair::before { background: #f97316; }

.listing-volume {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.listing-seller {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.seller-info {
  flex: 1;
  min-width: 0;
}

.seller-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seller-rating {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ===========================
   HOW IT WORKS
   =========================== */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.how-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}

.how-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.how-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: white;
  margin-bottom: 0.5rem;
}

.how-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  line-height: 1.7;
}

/* ===========================
   BROWSE PAGE
   =========================== */
.browse-hero {
  background: var(--primary);
  padding: 3rem 2rem;
}

.browse-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.browse-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  color: white;
  margin-bottom: 0.5rem;
}

.browse-hero p {
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

.filters-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 64px;
  z-index: 100;
}

.filters-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-wrap: wrap;
}

.filter-search {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.filter-search input {
  width: 100%;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.filter-search input:focus {
  border-color: var(--accent);
}

.filter-select {
  padding: 0.55rem 2rem 0.55rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  outline: none;
  background: var(--bg-white);
  cursor: pointer;
  color: var(--text-dark);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--accent);
}

.browse-filters-section {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  position: sticky;
  top: 70px;
  z-index: 90;
}

.filters-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.gender-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.gender-tab {
  padding: 0.5rem 1.4rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-medium);
}

.gender-tab:hover {
  border-color: var(--text-dark);
  color: var(--text-dark);
}

.gender-tab.active {
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: white;
}

/* ===========================
   EDITORIAL CATEGORY PANELS
   =========================== */
.category-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 580px;
}

.category-panel {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.category-panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.category-panel:hover .category-panel-img {
  transform: scale(1.06);
}

.category-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.25) 45%,
    rgba(0,0,0,0.05) 100%
  );
  transition: background 0.4s;
}

.category-panel:hover .category-panel-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.2) 45%,
    rgba(0,0,0,0.08) 100%
  );
}

.category-panel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.2rem 2rem;
  color: #fff;
}

.category-panel-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}

.category-panel-label {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

.category-panel-count {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
  margin-bottom: 1.1rem;
}

.category-panel-cta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,0.65);
  border-radius: 4px;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
}

.category-panel:hover .category-panel-cta {
  opacity: 1;
  transform: translateY(0);
}

.category-panel-cta:hover {
  background: rgba(255,255,255,0.15);
}

/* Dividers between panels */
.category-panel + .category-panel {
  border-left: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
  .category-panels {
    grid-template-columns: 1fr;
    height: auto;
  }
  .category-panel {
    height: 320px;
  }
  .category-panel + .category-panel {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .category-panel-cta {
    opacity: 1;
    transform: none;
  }
}

/* ===========================
   SCENT FAMILY COLLECTION
   =========================== */
.scent-collection-section {
  padding: 4rem 2rem;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}

.scent-collection-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.scent-collection-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 1.75rem;
}

.scent-collection-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.scent-card {
  text-decoration: none;
  color: var(--text-dark);
  display: block;
}

.scent-card-img-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-light);
  margin-bottom: 0.75rem;
}

.scent-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.scent-card:hover .scent-card-img {
  transform: scale(1.05);
}

.scent-card-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-medium);
  text-align: center;
  transition: color 0.18s;
}

.scent-card:hover .scent-card-label {
  color: var(--accent);
}

@media (max-width: 768px) {
  .scent-collection-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .scent-collection-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.3rem;
  }
}

/* ===========================
   BRAND MARQUEE STRIP
   =========================== */
.marquee-strip {
  background: var(--primary);
  overflow: hidden;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

/* subtle fade edges */
.marquee-strip::before,
.marquee-strip::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.marquee-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--primary) 0%, transparent 100%);
}
.marquee-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--primary) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  padding: 1.1rem 0;
}

.marquee-inner {
  display: inline-flex;
  align-items: center;
  animation: marquee-scroll 38s linear infinite;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.marquee-strip:hover .marquee-inner {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  padding: 0 0.6rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.marquee-strip:hover .marquee-item {
  color: rgba(255,255,255,0.75);
}

.marquee-dot {
  color: #45332F;
  font-size: 1rem;
  padding: 0 0.4rem;
  opacity: 0.7;
}

/* ===========================
   END BRAND MARQUEE
   =========================== */

.hero-bottle-img {
  height: 260px;
  width: auto;
  object-fit: contain;
  display: block;
}

.browse-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* ===========================
   FRAGRANCE DETAIL PAGE
   =========================== */
.fragrance-hero {
  padding: 4rem 2rem;
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

/* Desktop: [info: text | rating] [bottle] */
.fragrance-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
}

.fragrance-hero-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
  flex: 1;
  min-width: 0;
}

.fragrance-hero-left {
  flex: 1;
  min-width: 0;
}

.fragrance-hero-bottle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobile: bottle left, all info stacked right — fully compact */
@media (max-width: 600px) {
  .fragrance-hero {
    padding: 0.75rem 1rem;
  }

  .fragrance-hero-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .fragrance-hero-bottle {
    flex-shrink: 0;
    width: 85px;
    align-items: flex-start;
  }
  .hero-bottle-img {
    height: 130px;
  }

  .fragrance-hero-info {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  /* Brand */
  .fragrance-hero-brand {
    font-size: 0.58rem !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 0.1rem !important;
  }

  /* Name — keep on one line if possible */
  .fragrance-hero-name {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.15rem !important;
  }

  /* Tags */
  .fragrance-hero-tags {
    gap: 0.2rem !important;
    margin-bottom: 0.25rem !important;
    flex-wrap: nowrap !important;
  }
  .hero-tag {
    padding: 0.08rem 0.35rem !important;
    font-size: 0.6rem !important;
  }

  /* Rating number + stars on same line */
  .fragrance-hero-right {
    text-align: left;
    min-width: 0 !important;
    margin-top: 0 !important;
  }
  .hero-rating-big {
    font-size: 1.1rem !important;
    line-height: 1 !important;
    display: inline !important;
    margin-right: 0.2rem !important;
  }
  .hero-stars-row {
    font-size: 0.7rem !important;
    display: inline !important;
    margin: 0 !important;
  }

  /* Reviews + listings on ONE line */
  .hero-review-count {
    display: inline !important;
    font-size: 0.62rem !important;
    margin: 0.1rem 0 0 !important;
  }
  .hero-review-count::after {
    content: " · ";
  }
  .hero-listing-info {
    display: inline !important;
    font-size: 0.62rem !important;
    margin-bottom: 0 !important;
  }
  .hero-listing-info strong {
    font-size: 0.62rem !important;
    font-weight: 400 !important;
  }

  /* Wrap the inline review/listing text then button below */
  .fragrance-hero-right .btn-primary {
    display: block !important;
    margin-top: 0.3rem !important;
    padding: 0.28rem 0.7rem !important;
    font-size: 0.72rem !important;
  }

  .frag-hero-save-btns {
    display: none !important;
  }
}

/* ── Mobile Share Card ────────────────────────────────────────────────────────
   Screenshot-friendly card shown only on mobile. Hides on desktop.
   ──────────────────────────────────────────────────────────────────────────── */
/* Share card reveal wrapper — always hidden, shown by JS on mobile */
.share-card-reveal {
  display: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.share-card-reveal.open {
  max-height: 700px;
}

.mobile-frag-card {
  display: none;
}

/* Share / screenshot trigger button — mobile only */
.btn-share-card-trigger {
  display: none; /* shown via JS on mobile */
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-light);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  padding: 0.22rem 0.65rem;
  cursor: pointer;
  margin-top: 0.35rem;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, color 0.15s;
}
.btn-share-card-trigger:active {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 600px) {
  /* Show the reveal wrapper on mobile */
  .share-card-reveal {
    display: block;
  }

  .mobile-frag-card {
    display: block;
    margin: 0.5rem 0.75rem 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  }

  .mc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem 0.3rem;
    border-bottom: 1px solid var(--border);
  }

  .mc-brand-tag {
    font-size: 0.58rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 400;
  }

  .mc-header-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .mc-logo {
    height: 16px;
    opacity: 0.45;
  }

  .mc-save-btn,
  .mc-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--text-medium);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
  }

  .mc-save-icon {
    font-size: 0.88rem;
    line-height: 1;
  }

  /* Wishlisted — red heart */
  .mc-save-btn.is-wishlisted {
    background: #fff0f0;
    border-color: #e74c3c;
    color: #e74c3c;
  }

  /* In collection — green check */
  .mc-save-btn--collect.is-collected {
    background: #f0fff4;
    border-color: #27ae60;
    color: #27ae60;
  }

  .mc-save-btn:active,
  .mc-share-btn:active {
    opacity: 0.65;
  }

  .mc-body {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem 0.8rem;
  }

  .mc-bottle-wrap {
    flex-shrink: 0;
    width: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mc-bottle-img {
    width: 88px;
    height: 128px;
    object-fit: contain;
    display: block;
  }

  .mc-bottle-placeholder {
    width: 88px;
    height: 128px;
    background: var(--bg-off);
    border-radius: 8px;
  }

  .mc-info {
    flex: 1;
    min-width: 0;
    padding-top: 0.1rem;
  }

  .mc-name {
    font-family: 'Jost', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
  }

  .mc-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
  }

  .mc-tag {
    font-size: 0.58rem;
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-medium);
    background: var(--bg-off);
    font-weight: 400;
  }

  .mc-accord-bars {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    margin-top: 0.2rem;
  }

  .mc-accord-bar-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .mc-accord-bar-label {
    width: 54px;
    font-size: 0.59rem;
    color: var(--text-medium);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    line-height: 1;
  }

  .mc-accord-bar-track {
    flex: 1;
    height: 7px;
    background: #f0ede8;
    border-radius: 4px;
    overflow: hidden;
  }

  .mc-accord-bar-fill {
    height: 100%;
    border-radius: 4px;
  }

  .mc-notes {
    border-top: 1px solid var(--border);
    padding: 0.55rem 0.9rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
  }

  .mc-notes-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .mc-notes-tier {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text-light);
    min-width: 28px;
    padding-top: 0.22rem;
    flex-shrink: 0;
  }

  .mc-notes-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .mc-note {
    font-size: 0.62rem;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 300;
  }

  .mc-note--top {
    background: rgba(184,146,58,0.13);
    border: 1px solid rgba(184,146,58,0.4);
    color: #7a5c1e;
  }

  .mc-note--mid {
    background: rgba(160,85,106,0.12);
    border: 1px solid rgba(160,85,106,0.35);
    color: #7a2e42;
  }

  .mc-note--base {
    background: rgba(95,79,122,0.1);
    border: 1px solid rgba(95,79,122,0.3);
    color: #3d2e5f;
  }
}

.fragrance-hero-brand {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.fragrance-hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.fragrance-hero-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.hero-tag-year {
  background: var(--bg-light);
  color: var(--text-medium);
  border: 1px solid var(--border);
}

.hero-tag-concentration {
  background: rgba(153, 0, 17, 0.08);
  color: var(--accent);
  border: 1px solid rgba(153, 0, 17, 0.18);
}

.hero-tag-gender {
  background: var(--bg-light);
  color: var(--text-medium);
  border: 1px solid var(--border);
}

.fragrance-hero-right {
  text-align: right;
  min-width: 220px;
}

.hero-rating-big {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1;
}

.hero-stars-row {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0.3rem 0;
}

.hero-review-count {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.hero-listing-info {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 1.2rem;
}

.hero-listing-info strong {
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* Wishlist / Collection save buttons on fragrance detail page */
.frag-hero-save-btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.frag-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-medium);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.12s;
  white-space: nowrap;
  user-select: none;
}
.frag-status-btn:hover {
  border-color: #111;
  color: #111;
  background: rgba(0,0,0,0.04);
}
.frag-status-btn:active { transform: scale(0.97); }
.frag-status-btn:disabled { opacity: 0.45; cursor: default; transform: none; }

.frag-status-icon {
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.15s;
}

/* Active states */
.frag-status-btn.is-wishlisted {
  background: #111;
  border-color: #111;
  color: #fff;
}
.frag-status-btn.is-wishlisted .frag-status-icon { color: #e74c3c; }

.frag-status-btn.is-collected {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* Content layout */
.fragrance-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.fragrance-main {}

.fragrance-sidebar {
  position: sticky;
  top: 80px;
}

.content-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.content-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
}

/* Subtitle used inside combined cards (no border) */
.content-card-subtitle {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.85rem;
}

/* Two-column layout for Accords + Season */
.accords-season-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Notes */
/* Flat notes list */
.notes-flat {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.note-pill {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  line-height: 1.4;
}

/* ── Layered notes (top / middle / base) ── */
.notes-layers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notes-layer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.notes-layer-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.notes-layer-icon {
  font-size: 0.65rem;
  line-height: 1;
}

.notes-layer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Top notes — golden */
.notes-top { color: #b8923a; }
.notes-top-pill {
  background: #fdf8ee;
  border-color: #e8d5a3;
  color: #7a5c1e;
}

/* Middle notes — rose */
.notes-mid { color: #a0556a; }
.notes-mid-pill {
  background: #fdf0f3;
  border-color: #e8b4c0;
  color: #7a2e42;
}

/* Base notes — plum */
.notes-base { color: #5f4f7a; }
.notes-base-pill {
  background: #f5f0fd;
  border-color: #c9b8e8;
  color: #3d2e5f;
}

/* ===========================
   MAIN ACCORDS
   =========================== */
.accords-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Fragrantica-style: label left, track right */
.accord-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accord-row-label {
  flex-shrink: 0;
  width: 80px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dark);
  text-align: right;
  letter-spacing: 0.01em;
  font-family: 'Jost', sans-serif;
  line-height: 1;
}

.accord-track {
  flex: 1;
  height: 22px;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.accord-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  min-width: 0;
  position: relative;
}

/* ── Accord vote button ─────────────────────────────────────── */
.accord-vote-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 0.72rem;
  color: var(--text-light);
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1.6;
}
.accord-vote-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(153,0,17,0.04);
}
.accord-vote-btn--active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(153,0,17,0.07);
}
.accord-vote-icon { font-size: 0.8rem; }
.accord-vote-count { font-weight: 400; }

/* ── Add accord button ──────────────────────────────────────── */
.accord-add-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}
.accord-add-btn {
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: 20px;
  padding: 5px 18px;
  font-size: 0.78rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.03em;
}
.accord-add-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(153,0,17,0.04);
}

/* Community accord voting CTA */
.accord-smell-cta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.accord-smell-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s;
}
.accord-smell-btn:hover { background: #3a2a27; color: #fff; }
.accord-smell-btn--ghost {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-light);
}
.accord-smell-btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: none; }
.accord-total-votes {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* Voted state in picker */
.accord-picker-item--voted {
  border-color: var(--accord-color, var(--accent));
  background: color-mix(in srgb, var(--accord-color, var(--accent)) 12%, white);
}
.accord-picker-check {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
  margin-left: 2px;
}

/* ── Accord picker modal ────────────────────────────────────── */
.accord-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.accord-picker-panel {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.accord-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
  font-size: 0.95rem;
  font-family: var(--font-heading);
}
.accord-picker-close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 2px 6px;
  border-radius: 50%;
}
.accord-picker-close:hover { background: var(--bg-light); }
.accord-picker-search {
  margin: 0.75rem 1rem;
  padding: 0.5rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: 'Jost', sans-serif;
  outline: none;
  transition: border-color 0.18s;
}
.accord-picker-search:focus { border-color: var(--accent); }
.accord-picker-list {
  overflow-y: auto;
  padding: 0.25rem 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.accord-picker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Jost', sans-serif;
  color: var(--text-dark);
  transition: all 0.15s ease;
}
.accord-picker-item:hover {
  border-color: var(--accord-color, var(--accent));
  background: color-mix(in srgb, var(--accord-color, var(--accent)) 10%, white);
  color: var(--text-dark);
}
.accord-picker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.accord-empty {
  color: var(--text-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem 0;
  margin: 0;
}

/* Popularity bar */
.popularity-bar-wrap {
  background: var(--border);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.popularity-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  border-radius: 100px;
  transition: width 1s ease;
}

.popularity-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 0.4rem;
}

.popularity-score {
  font-weight: 400;
  color: var(--text-dark);
}

/* Popularity info button + tooltip */
.pop-info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pop-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--text-medium);
  background: transparent;
  color: var(--text-medium);
  font-size: 0.65rem;
  font-weight: 400;
  font-style: italic;
  font-family: Georgia, serif;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: border-color 0.2s, color 0.2s;
}

.pop-info-btn:hover {
  border-color: var(--text-dark);
  color: var(--text-dark);
}

.pop-info-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-medium);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  z-index: 100;
  pointer-events: none;
}

.pop-info-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--border);
}

.pop-info-tooltip::after {
  content: '';
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--bg-white);
}

.pop-info-wrap:hover .pop-info-tooltip,
.pop-info-wrap.active .pop-info-tooltip {
  display: block;
}

/* Reviews */
.rating-overview {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.rating-big {
  text-align: center;
  flex-shrink: 0;
}

.rating-big-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1;
}

.rating-big-stars {
  font-size: 1rem;
  color: var(--accent);
}

.rating-big-count {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.rating-bars {
  flex: 1;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
}

.rating-bar-label {
  width: 24px;
  text-align: right;
  color: var(--text-medium);
  flex-shrink: 0;
}

.rating-bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.review-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.review-user-info {
  flex: 1;
}

.review-username {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-dark);
}

.review-date {
  font-size: 0.77rem;
  color: var(--text-light);
}

.review-stars {
  font-size: 0.9rem;
}

.review-owned-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
  border-radius: 20px;
  border: 1px solid rgba(39, 174, 96, 0.2);
  font-weight: 500;
}

.review-comment {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.65;
}

/* Review form */
.review-form {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
}

.review-form-title {
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.star-picker {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.star-picker span {
  font-size: 1.6rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1;
}

.star-picker span.active {
  color: var(--accent);
}

/* Review form — extended fields */
.review-optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 0.3rem;
}

.review-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Scent descriptor chips */
.scent-descriptor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.scent-chip {
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-medium);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body);
}

.scent-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.scent-chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Sliders */
.review-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--pct, 50%), #e5e7eb var(--pct, 50%), #e5e7eb 100%);
  outline: none;
  cursor: pointer;
  margin: 0.5rem 0 0.4rem;
}

.review-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.18);
  cursor: pointer;
}

.review-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.18);
  cursor: pointer;
}

.review-slider-val {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--accent);
}

.review-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

/* Review display — new fields */
.review-meta-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.4rem 0 0.5rem;
}

.review-meta-item {
  font-size: 0.75rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.15rem 0.6rem;
  color: var(--text-medium);
  font-weight: 500;
}

.review-descriptors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.review-descriptor-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  background: rgba(153, 0, 17, 0.1);
  color: var(--accent);
  font-weight: 500;
  border: 1px solid rgba(153, 0, 17, 0.25);
}

.review-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.6rem;
}

.review-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.review-stat-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 400;
}

.review-stat-val {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
}

/* ===========================
   LISTINGS TABLE & CARDS
   =========================== */

/* Card layout used when listings have images */
.listing-card-full {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.listing-card-full:hover {
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.listing-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.listing-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.listing-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: center;
}

.listing-msg-btn {
  display: inline-flex;
  align-items: center;
}

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

.listings-table-wrap {
  overflow-x: auto;
}

.listings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.listings-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 2px solid var(--border);
}

.listings-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.listings-table tr:hover td {
  background: var(--bg-light);
}

.seller-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.include-icon {
  font-size: 1rem;
  opacity: 0.4;
}

.include-icon.yes {
  opacity: 1;
  color: #27ae60;
}

/* ===========================
   PROFILE PAGE
   =========================== */

/* Owner badge — preserved from original */
.owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(120deg, #1a1209 0%, #3b2506 40%, #c9a84c 100%);
  color: #f5d98b;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 3px 9px 3px 7px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
  position: relative;
  top: -3px;
  box-shadow: 0 1px 6px rgba(201,168,76,0.55), inset 0 0 0 1px rgba(201,168,76,0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.owner-badge svg {
  flex-shrink: 0;
  filter: drop-shadow(0 0 2px rgba(201,168,76,0.8));
}

/* ══════════════════════════════════════════════════════════
   INSTAGRAM-STYLE PROFILE
   ══════════════════════════════════════════════════════════ */

/* Cover banner */
/* Header */
.profile-ig-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 3rem 2rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
}
.profile-ig-left {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 160px;
}
.profile-avatar-wrap { position: relative; display: inline-block; }
.profile-ig-avatar {
  width: 120px !important;
  height: 120px !important;
  font-size: 2.6rem !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.profile-avatar-edit {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 28px; height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 400;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.15s;
}
.profile-avatar-edit:hover { transform: scale(1.12); }

.profile-ig-center {
  flex: 1;
  min-width: 0;
  padding-top: 0;
}
.profile-ig-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.profile-ig-username {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1;
}
.profile-ig-handle {
  font-size: 0.8rem;
  color: var(--text-light);
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.03em;
}

/* Stats row */
.profile-ig-stats {
  display: flex;
  gap: 2.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: baseline;
}
.profile-ig-stat {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.profile-ig-stat.clickable { cursor: pointer; }
.profile-ig-stat.clickable:hover .profile-ig-stat-num { color: var(--accent); }
.profile-ig-stat-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1;
  transition: color 0.15s;
}
.profile-ig-stat-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Bio */
.profile-ig-bio {
  font-size: 0.82rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 0.25rem;
  max-width: 480px;
  min-height: 1.1em;
  border-radius: 6px;
  padding: 2px 4px;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.profile-ig-bio[contenteditable="true"] {
  background: var(--bg-light);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  padding: 6px 10px;
}
.profile-ig-bio:empty:before {
  content: attr(data-placeholder);
  color: var(--text-light);
  font-style: italic;
}
.profile-ig-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

/* Action buttons */
.profile-ig-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.btn-follow {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--text-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.03em;
}
.btn-follow:hover { background: #2c2c2c; }
.btn-follow.following {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-medium);
}
.btn-follow.following:hover { border-color: #c0392b; color: #c0392b; }

.btn-edit-profile {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 8px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-family: 'Jost', sans-serif;
}
.btn-edit-profile:hover { border-color: var(--text-dark); }
.btn-edit-profile.editing { border-color: var(--accent); color: var(--accent); }

.btn-settings-profile {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 8px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-medium);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  font-family: 'Jost', sans-serif;
}
.btn-settings-profile:hover { border-color: var(--text-dark); color: var(--text-dark); }

.btn-trade-profile {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 8px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-medium);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-family: 'Jost', sans-serif;
  text-align: center;
}
.btn-trade-profile:hover { border-color: var(--text-dark); color: var(--text-dark); }

/* Highlights (story circles) */
.profile-highlights {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
  overflow-x: auto;
}
.profile-highlights::-webkit-scrollbar { display: none; }
.profile-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.profile-highlight:hover { transform: scale(1.05); }
.profile-highlight-ring {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #45332F);
  padding: 2.5px;
  display: flex; align-items: center; justify-content: center;
}
.profile-highlight-ring.empty {
  background: var(--border);
}
.profile-highlight-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  border: 2.5px solid #fff;
  overflow: hidden;
}
.profile-highlight-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-highlight-label {
  font-size: 0.68rem;
  color: var(--text-dark);
  font-family: 'Jost', sans-serif;
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Continuous scroll sections */
/* ── Profile tab nav (all screen sizes) ── */
.profile-mobile-tabs {
  position: sticky;
  top: 68px; /* below navbar */
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 2rem;
  gap: 0;
}

.profile-mobile-tabs::-webkit-scrollbar { display: none; }

.profile-mobile-tab {
  flex-shrink: 0;
  padding: 12px 20px;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
  white-space: nowrap;
}

.profile-mobile-tab:hover {
  color: var(--text-dark);
}

.profile-mobile-tab.active {
  color: var(--text-dark);
  border-bottom-color: var(--text-dark);
}

/* ── Section visibility — tab switching for all screen sizes ── */
/* ===========================
   PROFILE SIDEBAR LAYOUT
   =========================== */
.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 2rem 5rem;
  gap: 2.5rem;
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: 70px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  max-height: calc(100vh - 82px);
  overflow-y: auto;
}

.profile-sidebar-identity {
  text-align: center;
  padding: 1.25rem 1.25rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.profile-sidebar-avatar {
  width: 72px !important;
  height: 72px !important;
  font-size: 1.6rem !important;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.profile-sidebar-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 0.65rem;
  line-height: 1.2;
}

.profile-sidebar-handle {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.profile-sidebar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}

.profile-sidebar-stat {
  text-align: center;
  padding: 0.65rem 0.5rem;
  cursor: default;
  border-right: 1px solid var(--border);
}
.profile-sidebar-stat:nth-child(3n) { border-right: none; }
.profile-sidebar-stat.clickable { cursor: pointer; }
.profile-sidebar-stat.clickable:hover span { color: var(--accent); }

.profile-sidebar-stat span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.15s;
}

.profile-sidebar-stat small {
  font-size: 0.58rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.1rem;
  display: block;
}

/* Actions area */
#profileActions {
  padding: 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.profile-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0;
}

.profile-sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.52rem 1rem;
  border: none;
  border-left: 2px solid transparent;
  background: none;
  cursor: pointer;
  font-size: 0.81rem;
  font-family: var(--font-body);
  color: var(--text-medium);
  text-align: left;
  width: 100%;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.profile-sidebar-nav-item:hover {
  background: var(--bg-off);
  color: var(--text-dark);
}

.profile-sidebar-nav-item.active {
  border-left-color: var(--accent);
  color: var(--text-dark);
  font-weight: 600;
  background: #fdf8ef;
}

.profile-sidebar-nav-item svg { flex-shrink: 0; opacity: 0.45; }
.profile-sidebar-nav-item.active svg { opacity: 1; }

.profile-main { min-width: 0; }

@media (max-width: 900px) and (min-width: 641px) {
  .profile-layout {
    grid-template-columns: 200px 1fr;
    padding: 1.5rem 1.5rem 4rem;
  }
}

.profile-sections {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem 4rem;
}

.profile-section {
  display: none;             /* hidden until a tab activates it */
  padding: 2.5rem 0;
  border-bottom: none;
}

.profile-section.tab-active {
  display: block;
}

.profile-section:last-child {
  border-bottom: none;
}

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}

.profile-section-title {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* LISTINGS — Instagram-style photo grid */
.profile-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.profile-listing-tile {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
  cursor: pointer;
}
.profile-listing-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.profile-listing-tile-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.profile-listing-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.22s ease;
  padding: 0.75rem;
  text-align: center;
}
.profile-listing-tile:hover img { transform: scale(1.06); }
.profile-listing-tile:hover .profile-listing-tile-overlay { opacity: 1; }
.profile-listing-tile-price {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
}
.profile-listing-tile-name {
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-family: 'Jost', sans-serif;
  line-height: 1.3;
}
.profile-listing-tile-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  backdrop-filter: blur(4px);
}

/* COLLECTION — grid with image thumbnails */
.profile-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.profile-coll-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.profile-coll-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.profile-coll-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  mix-blend-mode: multiply;
}
.profile-coll-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: #f5f3f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.profile-coll-info {
  padding: 0.5rem 0.6rem 0.6rem;
  flex: 1;
}
.profile-coll-brand {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.profile-coll-name {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.3;
}
.trade-block-want {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}
.trade-block-want-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.18rem;
}
.trade-block-want-text {
  font-size: 0.7rem;
  color: var(--text-light);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-coll-remove {
  display: block;
  width: 100%;
  padding: 4px;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.72rem;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.profile-coll-remove:hover { color: #c00; background: #fff5f5; }

.profile-coll-actions {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.profile-coll-trade-toggle {
  display: block;
  width: 100%;
  padding: 6px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-medium);
  font-size: 0.72rem;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.profile-coll-trade-toggle:hover { color: var(--accent); background: #fdf8ee; }
.profile-coll-trade-toggle.active { color: #2a7a4b; font-weight: 500; }
.profile-coll-trade-toggle.active:hover { background: #f0faf4; color: #c00; }

/* Trade details hover overlay on trading block cards */
.trade-details-hover {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.82);
  backdrop-filter: blur(3px);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 2;
}

.profile-coll-card:hover .trade-details-hover {
  opacity: 1;
}

.trade-details-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.trade-details-label {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.trade-details-val {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-heading);
}

.trade-fill-bar-wrap {
  width: 80%;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  margin-top: 0.25rem;
  overflow: hidden;
}

.trade-fill-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}

/* Trading block stamp — postal rubber stamp style */
.trade-block-stamp {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(42, 122, 75, 0.85);
  box-shadow: inset 0 0 0 1.5px rgba(42, 122, 75, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: multiply;
  transform: rotate(-15deg);
}
.trade-block-stamp::before {
  content: 'TRADING\A BLOCK';
  white-space: pre;
  color: rgba(42, 122, 75, 0.9);
  font-size: 0.38rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
  font-family: 'Courier New', monospace;
}

/* Trade block demand panel */
.trade-demand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  background: #f0f9f4;
  border-top: 1px solid #d4edda;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.trade-demand-bar:hover {
  background: #e4f5eb;
}
.trade-demand-none {
  cursor: default;
  background: #fafafa;
  border-top: 1px solid #eee;
}
.trade-demand-none:hover {
  background: #fafafa;
}
.trade-demand-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2a7a4b;
  letter-spacing: 0.01em;
}
.trade-demand-chevron {
  font-size: 1rem;
  color: #2a7a4b;
  line-height: 1;
  transition: transform 0.2s;
}
.trade-demand-panel {
  border-top: 1px solid #d4edda;
  background: #fff;
  max-height: 220px;
  overflow-y: auto;
}
.trade-demand-list {
  display: flex;
  flex-direction: column;
}
.trade-demand-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f4f4f4;
  transition: background 0.12s;
}
.trade-demand-user:last-child {
  border-bottom: none;
}
.trade-demand-user:hover {
  background: #f9f9f9;
}
.trade-demand-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.trade-demand-user-info {
  flex: 1;
  min-width: 0;
}
.trade-demand-username {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trade-demand-meta {
  font-size: 0.68rem;
  color: #888;
  margin-top: 1px;
}
.trade-demand-flair {
  font-size: 0.65rem;
  font-weight: 700;
  color: #2a7a4b;
  background: #eaf5ef;
  border-radius: 10px;
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Follow / Followers modal */
.follow-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.follow-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 360px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.follow-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
  font-family: var(--font-heading);
}
.follow-modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-light);
}
.follow-modal-list {
  overflow-y: auto;
  padding: 0.5rem 0;
}
.follow-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.follow-user-row:hover { background: var(--bg-light); }
.follow-user-name { font-weight: 400; font-size: 0.88rem; }
.follow-user-handle { font-size: 0.75rem; color: var(--text-light); }

/* ── Mobile Profile — full redesign ──────────────────────────── */
@media (max-width: 640px) {

  /* ── Header: tight compact strip ── */
  /* ── Header ── */
  .profile-ig-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px;
    border-bottom: 1px solid var(--border);
  }

  .profile-ig-left {
    flex-direction: column;
    align-items: center;
    width: auto;
    gap: 0;
    flex-shrink: 0;
  }

  .profile-ig-avatar {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.2rem !important;
  }

  .profile-avatar-edit {
    width: 17px;
    height: 17px;
    font-size: 0.7rem;
    bottom: 1px;
    right: 1px;
  }

  .profile-ig-center {
    flex: 1;
    min-width: 0;
    padding-top: 0;
  }

  .profile-ig-name-row {
    margin-bottom: 4px;
    gap: 4px;
    flex-wrap: wrap;
  }

  .profile-ig-username {
    font-size: 0.92rem;
  }

  .profile-ig-handle {
    font-size: 0.66rem;
  }

  /* ── Stats pill row ── */
  .profile-ig-stats {
    display: flex;
    gap: 0;
    margin-bottom: 5px;
    flex-wrap: nowrap;
    align-items: stretch;
    background: var(--bg-light);
    border-radius: 7px;
    overflow: hidden;
  }

  .profile-ig-stat {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 4px 3px;
    border-right: 1px solid var(--border);
  }

  .profile-ig-stat:last-child {
    border-right: none;
  }

  .profile-ig-stat-num {
    font-size: 0.75rem;
    line-height: 1.1;
  }

  .profile-ig-stat-label {
    font-size: 0.48rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  /* ── Bio & meta ── */
  .profile-ig-bio {
    font-size: 0.72rem;
    margin-bottom: 4px;
    line-height: 1.35;
  }

  .profile-ig-meta {
    font-size: 0.62rem;
    margin-bottom: 4px;
  }

  /* ── Action buttons ── */
  .profile-ig-actions {
    gap: 5px;
    margin-top: 3px;
  }

  .btn-follow,
  .btn-edit-profile,
  .btn-trade-profile,
  .btn-settings-profile {
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 5px;
  }

  /* ── Profile layout: stack on mobile ── */
  .profile-layout {
    grid-template-columns: 1fr;
    padding: 0.75rem 0.75rem 4rem;
    gap: 0;
  }

  .profile-sidebar {
    position: static;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
    padding: 1rem 1rem 0;
  }

  .profile-sidebar-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding-bottom: 1rem;
  }

  .profile-sidebar-avatar {
    width: 58px !important;
    height: 58px !important;
    font-size: 1.3rem !important;
    flex-shrink: 0;
  }

  .profile-sidebar-stats {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 0.75rem 0;
  }

  .profile-sidebar-stat span {
    font-size: 0.9rem;
  }

  .profile-sidebar-stat small {
    font-size: 0.6rem;
  }

  .profile-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .profile-sidebar-nav::-webkit-scrollbar { display: none; }

  .profile-sidebar-nav-item {
    flex-shrink: 0;
    border-radius: 0;
    padding: 0.7rem 0.9rem;
    font-size: 0.72rem;
    border-bottom: 2px solid transparent;
    gap: 0.4rem;
  }

  .profile-sidebar-nav-item svg { display: none; }

  .profile-sidebar-nav-item.active {
    background: none;
    border-bottom-color: var(--accent);
    color: var(--accent);
  }

  .profile-main {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0 0.75rem;
  }

  /* ── Sections (mobile padding) ── */
  .profile-sections {
    padding: 0 0 80px;
  }

  .profile-section {
    padding: 14px 12px;
  }

  .profile-section-header {
    margin-bottom: 10px;
  }

  /* ── Listing grid ── */
  .profile-listing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  /* ── Collection & Wishlist: 3 per row ── */
  .profile-collection-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .profile-coll-card {
    border-radius: 7px;
  }

  .profile-coll-img {
    padding: 4px;
  }

  .profile-coll-img-placeholder {
    font-size: 1.1rem;
  }

  .profile-coll-info {
    padding: 3px 5px 4px;
  }

  .profile-coll-brand {
    font-size: 0.48rem;
    letter-spacing: 0.5px;
  }

  .profile-coll-name {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .profile-coll-remove {
    font-size: 0.58rem;
    padding: 2px;
  }

  /* ── Reviews ── */
  .user-review-item {
    padding: 0.75rem;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
  }

  .user-review-meta {
    gap: 0.4rem;
    font-size: 0.72rem;
  }

  .role-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
  }
}

/* ===========================
   USER RATING CARDS
   =========================== */
.user-review-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
}

.user-review-content {
  flex: 1;
}

.user-review-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.role-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.role-buyer {
  background: rgba(41, 128, 185, 0.1);
  color: #2980b9;
  border: 1px solid rgba(41, 128, 185, 0.2);
}

.role-seller {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.2);
}

/* ===========================
   FORMS
   =========================== */
.form-page {
  min-height: 100vh;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.form-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
}

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

.form-subtitle {
  text-align: center;
  color: var(--text-medium);
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  letter-spacing: 0.2px;
}

.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
  background: var(--bg-white);
  color: var(--text-dark);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(153, 0, 17, 0.1);
}

.form-input::placeholder {
  color: var(--text-light);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.form-input-price {
  position: relative;
}

.form-input-price::before {
  content: '$';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-medium);
  font-size: 0.92rem;
  pointer-events: none;
}

.form-input-price input {
  padding-left: 1.8rem;
}

.form-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
  letter-spacing: 0.3px;
}

.form-submit:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(153, 0, 17, 0.35);
}

/* Edit listing action buttons */
.edit-listing-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.edit-listing-sold-btn {
  color: #1a7a3a;
  border-color: #b6ddc4;
  background: #f0faf4;
}
.edit-listing-sold-btn:hover {
  background: #d8f0e3;
  border-color: #1a7a3a;
}
.edit-listing-delete-btn {
  color: #b91c1c;
  border-color: #f5c6c6;
  background: #fef2f2;
}
.edit-listing-delete-btn:hover {
  background: #fde8e8;
  border-color: #b91c1c;
}
.edit-listing-delete-btn:disabled,
.edit-listing-sold-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-medium);
}

.form-link a {
  color: var(--accent);
  font-weight: 500;
}

/* Verified seller fast-track card on signup */
.seller-fast-track-card {
  display: block;
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  background: var(--bg-off);
}
.seller-fast-track-card:hover {
  background: #f0e8d8;
  border-color: var(--accent);
}
.seller-fast-track-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
}
.seller-fast-track-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.seller-fast-track-body { flex: 1; min-width: 0; }
.seller-fast-track-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}
.seller-fast-track-sub {
  font-size: 0.76rem;
  color: var(--text-medium);
  line-height: 1.5;
}
.seller-fast-track-arrow {
  font-size: 1.2rem;
  color: var(--text-light);
  flex-shrink: 0;
}

/* Google Sign-In button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #3c4043;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.btn-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Divider between social and email login */
.form-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  color: var(--text-light);
  font-size: 0.8rem;
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.form-divider span {
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-error {
  background: rgba(231, 76, 60, 0.08);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.form-error.show {
  display: block;
}

.form-success {
  background: rgba(39, 174, 96, 0.08);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.2);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.form-success.show {
  display: block;
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}

.form-checkbox-row label {
  font-size: 0.88rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ===========================
   SELL PAGE
   =========================== */
/* ── Source tabs ── */
.sell-source-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sell-source-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-medium);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.sell-source-tab:hover {
  border-color: var(--text-dark);
  color: var(--text-dark);
}
.sell-source-tab.active {
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: #fff;
}

/* ── Collection grid ── */
.sell-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  max-height: 380px;
  overflow-y: auto;
  padding: 0.25rem;
}

.sell-coll-card {
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  background: #fff;
}
.sell-coll-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.sell-coll-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #fff;
}
.sell-coll-img {
  height: 85%;
  width: auto;
  object-fit: contain;
  display: block;
}

.sell-coll-info {
  padding: 0.5rem 0.6rem;
  border-top: 1px solid var(--border);
}
.sell-coll-name {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sell-coll-brand {
  font-size: 0.68rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

.sell-collection-empty,
.sell-collection-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-light);
  font-size: 0.88rem;
}

/* ── Sell Landing ─────────────────────────────────────────────────────────── */
#sellLanding {
  background: var(--bg-off);
}

.sell-landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

.sell-landing-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.sell-landing-headline {
  font-family: 'Jost', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.sell-landing-sub {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 2rem;
}

.sell-landing-cta {
  display: inline-block;
  background: var(--text-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 2.2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.15s, transform 0.12s;
}
.sell-landing-cta:hover {
  background: #2c2c2c;
  transform: translateY(-1px);
}

/* Right image grid */
.sell-landing-right { overflow: hidden; border-radius: 12px; }
.sell-landing-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  height: 460px;
}
.sell-landing-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.sell-landing-img--tall {
  grid-row: 1 / 3;
}

/* Three pillars */
.sell-landing-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}
.sell-landing-pillar {
  padding: 2.5rem 2.5rem;
  border-right: 1px solid var(--border);
}
.sell-landing-pillar:last-child { border-right: none; }
.sell-landing-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-off);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.sell-landing-pillar-title {
  font-family: 'Jost', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sell-landing-pillar-desc {
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* Mobile sell landing */
@media (max-width: 768px) {
  .sell-landing-hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }
  .sell-landing-img-grid { height: 260px; }
  .sell-landing-pillars { grid-template-columns: 1fr; }
  .sell-landing-pillar { border-right: none; border-bottom: 1px solid var(--border); }
  .sell-landing-pillar:last-child { border-bottom: none; }
  .sell-landing-cta { width: 100%; text-align: center; }
}

/* ── Sell Form ─────────────────────────────────────────────────────────────── */
.sell-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.sell-page-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.sell-page-sub {
  color: var(--text-medium);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.sell-step {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.sell-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sell-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sell-step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
}

/* Fragrance search dropdown */
.frag-search-wrap {
  position: relative;
}

.frag-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1.5px solid var(--accent);
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.frag-dropdown.open {
  display: block;
}

.frag-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.frag-option:last-child {
  border-bottom: none;
}

.frag-option:hover {
  background: var(--bg-light);
}

.frag-option-color {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #fff !important;
  border: 1px solid #e8e4dc;
}

.frag-option-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.frag-option-brand {
  font-size: 0.78rem;
  color: var(--text-medium);
}

.frag-selected-card {
  display: none;
  background: var(--bg-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
  align-items: center;
  gap: 1rem;
}

.frag-selected-card.show {
  display: flex;
}

.frag-selected-mini-gradient {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e8e4dc;
}

.frag-selected-info {
  flex: 1;
}

.frag-selected-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
}

.frag-selected-meta {
  font-size: 0.82rem;
  color: var(--text-medium);
}

.frag-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.2rem;
  padding: 0.25rem;
  transition: color 0.15s;
}

.frag-clear:hover {
  color: #e74c3c;
}

/* ===========================
   IMAGE UPLOAD
   =========================== */
.img-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-light);
  position: relative;
}

.img-upload-zone:hover,
.img-upload-zone.drag-over {
  border-color: var(--accent);
  background: #fdf9f0;
}

.img-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.img-upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.img-upload-label {
  font-size: 0.92rem;
  color: var(--text-medium);
}

.img-upload-label strong {
  color: var(--accent);
}

.img-upload-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.img-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.img-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--border);
}

.img-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-preview-item.main-photo::after {
  content: 'Main';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.7rem;
  text-align: center;
  padding: 3px 0;
  letter-spacing: 0.05em;
}

.img-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}

.img-preview-remove:hover {
  background: #e74c3c;
}

/* Listing image gallery */
.listing-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.listing-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s;
}

.listing-images img:hover {
  transform: scale(1.03);
}

.listing-img-main {
  grid-column: 1 / -1;
  aspect-ratio: 4/3 !important;
  max-height: 320px;
}

/* ===========================
   DASHBOARD
   =========================== */
/* =============================================
   DASHBOARD — sidebar layout
   ============================================= */

.dash-layout {
  display: flex;
  min-height: calc(100vh - 62px);
  max-width: 1280px;
  margin: 0 auto;
}

/* Sidebar */
.dash-sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
}

.dash-greeting {
  padding: 0 1.4rem 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.2rem;
}

.dash-greeting-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 2px;
}

.dash-greeting-sub {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  padding: 0 0.6rem;
}

.dash-nav-section {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 1.1rem 0.8rem 0.4rem;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  background: none;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-medium);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  position: relative;
  letter-spacing: 0.01em;
  text-transform: none;
}

.dash-nav-item svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.dash-nav-item:hover {
  background: var(--surface);
  color: var(--text-dark);
}

.dash-nav-item:hover svg { opacity: 0.8; }

.dash-nav-item.active {
  background: #f0f0f0;
  color: var(--text-dark);
  font-weight: 400;
}

.dash-nav-item.active svg { opacity: 1; }

.dash-nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 400;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Main content */
.dash-main {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 2.8rem;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Trade access card in dashboard */
.trade-access-card {
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.trade-access-card-title {
  font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.4rem;
}
.trade-access-card-sub {
  font-size: 0.85rem; color: var(--text-medium); line-height: 1.65; margin-bottom: 1.25rem;
}
.trade-access-req {
  display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem;
}
.trade-access-req-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.83rem; color: var(--text-medium);
}
.trade-access-req-item svg { flex-shrink: 0; }
.trade-access-req-item.met { color: #16a34a; }
.trade-access-req-item.unmet { color: var(--text-light); }

.dash-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dash-panel-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}

/* Responsive */
@media (max-width: 700px) {
  .dash-layout { flex-direction: column; }
  .dash-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0 0.5rem;
  }
  .dash-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 0 1rem 1rem; }
  .dash-nav-section { display: none; }
  .dash-nav-item { font-size: 0.75rem; padding: 0.4rem 0.7rem; }
  .dash-main { padding: 1.5rem; }
}

/* Keep old dashboard-content class as fallback */
.dashboard-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  text-align: left;
  padding: 0.7rem 1rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 2px solid var(--border);
  background: var(--bg-light);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: var(--bg-light);
}

.data-table .frag-name {
  font-weight: 400;
  color: var(--text-dark);
}

.data-table .price-cell {
  font-weight: 400;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.status-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 400;
}

.status-active { background: rgba(39, 174, 96, 0.1); color: #27ae60; }
.status-sold { background: rgba(41, 128, 185, 0.1); color: #2980b9; }
.status-pending { background: rgba(243, 156, 18, 0.1); color: #f39c12; }
.status-completed { background: rgba(39, 174, 96, 0.1); color: #27ae60; }
.status-removed { background: rgba(153, 153, 153, 0.1); color: #999; }

/* ── Trust Badges ── */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: middle;
}
.trust-badge svg { flex-shrink: 0; }
.trust-badge-new      { background: #f2f2f2;             color: #888;    border: 1px solid #e0e0e0; }
.trust-badge-trusted  { background: rgba(41,128,185,.1); color: #2980b9; border: 1px solid rgba(41,128,185,.25); }
.trust-badge-verified { background: rgba(39,174,96,.1);  color: #27ae60; border: 1px solid rgba(39,174,96,.25); }
.trust-badge-topseller{ background: rgba(201,168,76,.22);color: #1a0f00; border: 1px solid rgba(201,168,76,.5); }
.trust-badge-elite    { background: rgba(142,68,173,.1); color: #8e44ad; border: 1px solid rgba(142,68,173,.25); }

/* Trust info block (profile / listing) */
.trust-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.trust-info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.trust-info-stats {
  font-size: 0.78rem;
  color: var(--text-light);
}
.trust-info-stats strong {
  color: var(--text-dark);
  font-weight: 400;
}

/* Transaction cards (dashboard) */
.txn-cards { display: flex; flex-direction: column; gap: 0.9rem; }
.txn-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.txn-card-frag { flex: 1; min-width: 0; }
.txn-card-frag-name { font-size: 0.92rem; font-weight: 400; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-card-frag-sub { font-size: 0.75rem; color: var(--text-light); margin-top: 0.1rem; }
.txn-card-party {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-dark);
  min-width: 120px;
}
.txn-card-party-info { display: flex; flex-direction: column; }
.txn-card-party-name { font-size: 0.82rem; font-weight: 500; }
.txn-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; margin-left: auto; }
.txn-card-price { font-size: 0.92rem; font-weight: 400; color: var(--text-dark); }
.txn-card-date  { font-size: 0.72rem; color: var(--text-light); }
.txn-card-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* Delivery steps strip */
.txn-steps {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.txn-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-light);
}
.txn-step.done   { color: #27ae60; }
.txn-step.active { color: var(--accent); font-weight: 400; }
.txn-step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
}
.txn-step.done   .txn-step-dot { background: #27ae60; }
.txn-step.active .txn-step-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(201,168,76,.25); }
.txn-step-line {
  flex: 1;
  height: 1px;
  background: #e0e0e0;
  margin: 0 0.5rem;
  min-width: 20px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ===========================
   MODAL
   =========================== */
/* Private offer step indicator */
.po-step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
  transition: background 0.2s;
}
.po-step-dot--active { background: var(--accent); }
.po-step-dot--done   { background: #2a7a4b; }
.po-step-line { flex: 1; height: 1px; background: var(--border); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-body {
  color: var(--text-medium);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.5);
  padding: 0 0 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

/* ── Footer trust explainer ── */
.footer-trust {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 2;
}
.footer-trust-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.footer-trust-sub {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 1.75rem;
}

/* badge row */
.footer-trust-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}
.footer-trust-tier {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-trust-tier-desc {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.35);
}

/* Override badge colors slightly for dark bg */
.footer-trust .trust-badge-new      { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.5); }
.footer-trust .trust-badge-trusted  { background: rgba(41,128,185,.18);   border-color: rgba(41,128,185,.35);  color: #6ab0e0; }
.footer-trust .trust-badge-verified { background: rgba(39,174,96,.18);    border-color: rgba(39,174,96,.35);   color: #6dd4a0; }
.footer-trust .trust-badge-topseller{ background: rgba(201,168,76,.28);   border-color: rgba(201,168,76,.5);   color: #e8d080; }
.footer-trust .trust-badge-elite    { background: rgba(142,68,173,.2);    border-color: rgba(142,68,173,.4);   color: #c080e8; }

/* how it works steps */
.footer-trust-how {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer-trust-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-trust-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(201,168,76,0.28);
  border: 1px solid rgba(201,168,76,0.5);
  color: #e8d080;
  font-size: 0.72rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-trust-step-title {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.1rem;
}
.footer-trust-step-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}
.footer-trust-step-arrow {
  color: rgba(255,255,255,0.2);
  font-size: 1rem;
  padding: 0 0.25rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem 2rem 0;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.footer-brand {
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  font-weight: 300;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

/* ===========================
   LOADING & UTILITIES
   =========================== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.loading::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.text-gold {
  color: var(--accent);
}

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

.fw-bold {
  font-weight: 400;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ===========================
   RESPONSIVE
   =========================== */
/* ── Navbar: prevent overlap at medium desktop widths ── */
@media (max-width: 960px) and (min-width: 769px) {
  .nav-inner {
    padding: 0 1.25rem;
  }
  /* Switch logo from absolute-center to flex item so nothing overlaps */
  .logo {
    position: static;
    transform: none;
    left: auto;
    margin: 0 auto;
  }
  .nav-seller-search {
    flex-shrink: 0;
  }
  #navActions {
    margin-left: 0;
    gap: 0.4rem;
  }
  .btn-nav-link {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.5rem;
  }
  .btn-nav-outline {
    padding: 0.4rem 0.7rem;
    font-size: 0.68rem;
  }
  .btn-nav-gold {
    padding: 0.4rem 0.8rem;
    font-size: 0.68rem;
  }
  .logo-img {
    height: 28px;
  }
}

@media (max-width: 1024px) {
  .fragrance-content {
    grid-template-columns: 1fr;
  }

  .fragrance-sidebar {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 1rem;
    gap: 0;
  }

  /* Keep mobile button compact */
  .nav-search-trigger {
    font-size: 0;  /* hide "Search" text, show icon only */
    padding: 0.4rem;
  }

  .nav-search {
    display: none;
  }

  /* Mobile navbar: hide non-essential items — they live in the avatar dropdown */
  .btn-nav-link,
  #navMsgsBtn,
  #navLikesWrap {
    display: none !important;
  }

  /* Tighten up nav-actions spacing on mobile */
  .nav-actions {
    gap: 0.5rem;
  }

  /* Shrink the Sell / Sign Up button on mobile */
  .btn-nav-gold {
    padding: 0.4rem 0.85rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  /* Logged-out: make Log In a plain text link — no border/background */
  .btn-nav-outline {
    background: none;
    border: none;
    padding: 0.4rem 0.4rem;
    font-size: 0.72rem;
    color: var(--text-dark);
    letter-spacing: 0.04em;
    text-transform: none;
    box-shadow: none;
  }

  /* True 3-column mobile navbar: search | logo | actions */
  /* Pull logo out of absolute positioning into normal flex flow */
  .logo {
    position: static !important;
    transform: none !important;
    left: auto !important;
  }

  /* Give search and navActions equal flex so logo stays centered */
  .nav-seller-search {
    flex: 1;
    display: flex;
    align-items: center;
  }

  #navActions {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 0;
  }

  /* ── Fragrance page: reorder + aggressively compact ── */

  .fragrance-content {
    padding: 0.4rem 0.5rem 1rem;
    gap: 0;
  }

  .fragrance-main {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* ── Content cards ── */
  .content-card {
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.4rem;
    border-radius: 9px;
  }

  .content-card-title {
    font-size: 0.72rem;
    margin-bottom: 0.45rem;
    padding-bottom: 0.3rem;
    letter-spacing: 0.3px;
  }

  .content-card-subtitle {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.35rem;
  }

  /* ── Accords ── */
  #accordsCard { order: -1; }

  .accords-season-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .accords-list { gap: 4px; }

  .accord-row {
    gap: 6px;
    margin-bottom: 0;
  }

  .accord-row-label {
    width: 48px;
    font-size: 0.58rem;
  }

  .accord-track {
    height: 13px;
    border-radius: 3px;
  }

  .accord-vote-btn {
    font-size: 0.55rem;
    padding: 1px 5px;
    border-radius: 12px;
  }

  .accord-vote-icon { font-size: 0.6rem; }

  .accord-add-btn {
    font-size: 0.6rem;
    padding: 3px 12px;
  }

  .accord-add-wrap { margin-top: 6px; }

  /* ── Season vote ── */
  .season-vote-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
    margin-top: 0.25rem;
  }

  .season-vote-btn {
    padding: 0.35rem 0.3rem 0.3rem;
    border-radius: 7px;
    gap: 0.15rem;
    border-width: 1px;
  }

  .season-vote-btn svg {
    width: 13px !important;
    height: 13px !important;
  }

  .season-vote-label {
    font-size: 0.55rem;
    letter-spacing: 0.03em;
  }

  .season-vote-count {
    font-size: 0.55rem;
  }

  .season-vote-bar-track {
    height: 2px;
    margin-top: 0.1rem;
  }

  .season-vote-hint {
    font-size: 0.58rem;
  }

  /* ── Notes ── */
  .notes-flat { gap: 0.25rem; }

  .note-pill {
    font-size: 0.6rem;
    padding: 0.12rem 0.45rem;
  }

  .notes-disclaimer {
    font-size: 0.58rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  .btn-flag-notes {
    font-size: 0.52rem;
    padding: 0.12rem 0.4rem;
    gap: 0.2rem;
  }

  .btn-flag-notes svg {
    width: 10px !important;
    height: 10px !important;
  }

  /* ── About text ── */
  #aboutText {
    font-size: 0.78rem !important;
    line-height: 1.55 !important;
  }

  /* ── Gender meter ── */
  .gender-meter-wrap { gap: 0.3rem; }

  .gender-vote-btn {
    font-size: 0.62rem;
    padding: 0.2rem 0.5rem;
    gap: 0.25rem;
  }

  .gender-vote-btn svg {
    width: 11px !important;
    height: 11px !important;
  }

  .gender-meter-track { height: 7px; border-radius: 4px; }

  .gender-meter-pcts span {
    font-size: 0.6rem;
  }

  .gender-vote-hint {
    font-size: 0.58rem;
  }

  #genderMeterCard p {
    font-size: 0.68rem !important;
    margin-bottom: 0.6rem !important;
  }

  /* ── Reviews ── */
  .rating-overview { margin-bottom: 0.6rem; }

  .rating-overview-big {
    font-size: 2rem !important;
  }

  .rating-overview-label {
    font-size: 0.6rem !important;
  }

  .rating-bar-row {
    gap: 0.3rem;
    margin-bottom: 0.2rem;
  }

  .rating-bar-label { font-size: 0.6rem; }
  .rating-bar-track { height: 5px; }

  .review-card {
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.35rem;
    border-radius: 7px;
  }

  .review-card-header {
    margin-bottom: 0.3rem;
  }

  .review-card-body {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .review-card-meta {
    font-size: 0.6rem;
  }

  #writeReviewBtn {
    font-size: 0.6rem !important;
    padding: 0.2rem 0.5rem !important;
  }

  /* ── Listings ── */
  .listing-card {
    border-radius: 8px;
  }

  .listing-card-body {
    padding: 0.5rem 0.6rem;
  }

  .listing-card-title {
    font-size: 0.72rem;
  }

  .listing-card-price {
    font-size: 0.85rem;
  }

  .hero {
    padding: 4rem 1.5rem;
    text-align: center;
  }

  .hero-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .hero-content {
    flex: none;
    width: 100%;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-search-box {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-feed-wrap {
    width: 100%;
    flex: none;
  }

  .stats-inner {
    gap: 2rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .fragrance-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .how-it-works {
    grid-template-columns: 1fr;
  }

  .profile-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .filters-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-search {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .form-card {
    padding: 1.75rem 1.25rem;
  }

  .sell-step {
    padding: 1.25rem;
  }

  .stats-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Let seller search shrink freely on mobile */
  .nav-seller-search {
    max-width: none;
    min-width: 0;
    flex: 1 1 0;
  }
}

@media (max-width: 400px) {
  .logo-img {
    height: 34px;
  }
  .nav-actions {
    gap: 0.35rem;
  }
}

/* ===========================
   PAGINATION
   =========================== */

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem 1rem;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(153, 0, 17, 0.1);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 400;
}

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

.page-prev,
.page-next {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  color: var(--text-light);
  font-size: 0.9rem;
  user-select: none;
}

/* ===========================
   SEASON SUITABILITY METERS
   =========================== */

/* Season vote hint */
.season-vote-hint {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0;
  margin-left: 0.4rem;
}

/* 2×2 grid of season vote buttons */
.season-vote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.season-vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.7rem 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-light);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  font-family: var(--font-body);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.season-vote-btn:hover {
  border-color: var(--season-color);
  background: #fff;
  transform: translateY(-1px);
}
.season-vote-btn:active { transform: translateY(0); }

.season-vote-btn.season-voted {
  border-color: var(--season-color);
  background: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--season-color) 20%, transparent);
}

.season-vote-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s;
}

.season-vote-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.season-vote-bar-track {
  width: 100%;
  height: 3px;
  background: #e8e6e1;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.15rem;
}
.season-vote-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

.season-vote-count {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-light);
}
.season-vote-btn.season-voted .season-vote-count {
  color: var(--season-color);
  font-weight: 400;
}

/* ===========================
   NOTES DISCLAIMER & FLAG
   =========================== */

.notes-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.76rem;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.btn-flag-notes {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-light);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s, border-color 0.15s;
}

.btn-flag-notes:hover {
  color: var(--text-dark);
  border-color: var(--text-medium);
}

/* ===========================
   GENDER METER
   =========================== */

.gender-vote-hint {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.gender-meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gender-meter-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gender-vote-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-medium);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.gender-vote-btn:hover {
  border-color: var(--text-medium);
  color: var(--text-dark);
}

.gender-vote-btn.gender-voted-masc {
  background: #2B3A55;
  border-color: #2B3A55;
  color: #fff;
}

.gender-vote-btn.gender-voted-fem {
  background: #7B4F6E;
  border-color: #7B4F6E;
  color: #fff;
}

.gender-meter-track {
  display: flex;
  height: 8px;
  border-radius: 100px;
  overflow: hidden;
  background: var(--surface);
}

.gender-meter-fill-masc {
  height: 100%;
  background: #2B3A55;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 100px 0 0 100px;
}

.gender-meter-fill-fem {
  height: 100%;
  background: #7B4F6E;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 100px 100px 0;
}

.gender-meter-pcts {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===========================
   FRAGRANCE LIKE / DISLIKE
   =========================== */
.frag-like-row {
  display: flex;
  gap: 0.6rem;
  padding-top: 0.25rem;
}

.frag-like-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-light);
  color: var(--text-medium);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.frag-like-btn:hover {
  border-color: var(--text-medium);
  color: var(--text-dark);
}

.frag-like-btn.active {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #2e7d32;
}

.frag-like-btn#fragDislikeBtn.active {
  background: #fdecea;
  border-color: #e53935;
  color: #c62828;
}

/* ===========================
   STRIPE BANNER
   =========================== */
.stripe-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}
.stripe-banner-warn {
  background: #fffbeb;
  border: 1.5px solid #f5c842;
}
.stripe-banner-ok {
  background: #f0faf4;
  border: 1.5px solid #4caf84;
}
.stripe-banner-info {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
}
.stripe-banner-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.stripe-banner-warn .stripe-banner-icon { background: #fef3c7; color: #d97706; }
.stripe-banner-ok .stripe-banner-icon { background: #d1fae5; color: #059669; font-size: 1.1rem; font-weight: 400; }
.stripe-banner-info .stripe-banner-icon { background: #e5e7eb; color: #6b7280; }
.stripe-banner-body { flex: 1; }
.stripe-banner-title { font-weight: 400; color: var(--text-dark); margin-bottom: 0.2rem; }
.stripe-banner-sub { color: var(--text-medium); font-size: 0.82rem; }
.stripe-banner-sub code { background: rgba(0,0,0,0.05); padding: 0.1em 0.4em; border-radius: 3px; font-family: monospace; font-size: 0.85em; }
.stripe-connect-btn { flex-shrink: 0; }

/* ===========================
   STRIPE TOAST
   =========================== */
.stripe-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.stripe-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.stripe-toast-error { background: #c0392b; }

/* ===========================
   PAYMENT SUCCESS PAGE
   =========================== */
.payment-success-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.payment-success-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.payment-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
  font-size: 2rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.payment-success-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.payment-success-sub {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}
.payment-success-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.payment-success-note {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

/* ===========================
   COLLECTION & WISHLIST
   =========================== */

.profile-action-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 2rem 0;
  max-width: 1100px;
  margin: 0 auto;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.collection-item {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.collection-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: transparent;
  transform: translateY(-2px);
}

.wishlist-item {
  border-style: dashed;
  border-color: rgba(153, 0, 17, 0.35);
}

.collection-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.collection-item-visual {
  height: 150px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
}

.collection-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  mix-blend-mode: multiply;
}

.collection-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-item-info {
  padding: 0.75rem;
}

.collection-item-brand {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.collection-item-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.collection-item-conc {
  font-size: 0.72rem;
  color: var(--text-light);
}

.collection-item-notes {
  font-size: 0.72rem;
  color: var(--text-medium);
  margin-top: 0.25rem;
  font-style: italic;
}

.collection-remove-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 5;
}

.collection-item:hover .collection-remove-btn {
  opacity: 1;
}

/* Modal fragrance search results */
.modal-frag-results {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 220px;
  overflow-y: auto;
  margin-top: 0.35rem;
  display: empty;
}

.modal-frag-results:empty { display: none; }

.modal-frag-item {
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.modal-frag-item:last-child { border-bottom: none; }

.modal-frag-item:hover { background: var(--bg-light); }

.modal-frag-brand {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.modal-frag-name {
  font-size: 0.88rem;
  color: var(--text-dark);
  font-weight: 500;
}

.modal-frag-empty {
  padding: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

/* ===========================
   TRADE MODAL
   =========================== */

.modal-wide {
  max-width: 680px;
  width: 95vw;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-medium);
  margin: -0.5rem 0 1rem;
}

.trade-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
}

.trade-col-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.trade-modal-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
}

.trade-modal-hint {
  font-weight: 300;
  color: var(--text-light);
}

.trade-select-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 400px;
  overflow-y: auto;
}

/* ── Trade item row ── */
.trade-item {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.trade-item:last-child { border-bottom: none; }

.trade-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.12s;
}

.trade-item-header:hover { background: var(--bg-light); }

/* Checkbox circle */
.trade-item-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.trade-check-icon {
  font-size: 0.7rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s;
}

.trade-item.selected .trade-item-check {
  background: var(--accent);
  border-color: var(--accent);
}

.trade-item.selected .trade-check-icon { opacity: 1; }

.trade-item.selected .trade-item-header { background: rgba(153,0,17,0.04); }

.trade-item-info { flex: 1; min-width: 0; }

.trade-item-brand {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.1rem;
}

.trade-item-name {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-dark);
}

.trade-item-conc {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

/* Expanded details panel */
.trade-item-details {
  display: none;
  padding: 0.75rem 1rem 1rem 3.25rem;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}

.trade-item.selected .trade-item-details { display: block; }

.trade-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.trade-detail-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.trade-detail-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
}

.trade-detail-select {
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-dark);
  cursor: pointer;
}

.trade-detail-textarea {
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-dark);
  resize: vertical;
  line-height: 1.5;
  width: 100%;
}

.trade-detail-textarea:focus,
.trade-detail-select:focus {
  outline: none;
  border-color: var(--accent);
}

.trade-arrow {
  font-size: 1.4rem;
  color: var(--accent);
  padding-top: 2rem;
  text-align: center;
}

.trade-empty {
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}

/* ===========================
   TRADE CARDS (Dashboard)
   =========================== */

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 400;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  padding: 0 4px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.trades-section-title {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trades-count {
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  padding: 0.05rem 0.45rem;
  font-size: 0.72rem;
}

.trade-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s;
}

.trade-card:hover { box-shadow: var(--shadow); }

.trade-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  gap: 1rem;
}

.trade-direction {
  font-size: 0.85rem;
  color: var(--text-medium);
}

.trade-date {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-left: 0.5rem;
}

.trade-card-frags {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.trade-card-frag-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.trade-card-frag-name {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-dark);
}

.trade-card-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  text-align: center;
}

.trade-card-message {
  font-size: 0.85rem;
  color: var(--text-medium);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.offer-accepted-note {
  font-size: 0.85rem;
  font-weight: 500;
  color: #2e7d32;
  background: #f0faf0;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin-top: 0.5rem;
}

.trade-card-actions {
  display: flex;
  gap: 0.75rem;
}

.trade-detail-pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  background: var(--surface);
  border-radius: 20px;
  padding: 2px 7px;
  color: var(--text-medium);
  letter-spacing: 0.2px;
}

.status-cancelled {
  background: rgba(239,68,68,0.08);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.2);
}

/* ═══════════════════════════════════════════════════════════
   MESSAGES — iMessage-inspired layout
   ═══════════════════════════════════════════════════════════ */

.msgs-shell {
  display: flex;
  height: calc(100svh - 68px);
  overflow: hidden;
  background: #F2F2F7;
}

/* ── Sidebar ── */
.msgs-sidebar {
  width: 320px;
  min-width: 320px;
  border-right: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.msgs-sidebar-header {
  padding: 1.1rem 1.25rem 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.msgs-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  margin: 0;
  letter-spacing: -0.3px;
}

.msgs-conv-list {
  flex: 1;
  overflow-y: auto;
}

.msgs-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 8px;
  color: #8E8E93;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.msgs-empty-icon { font-size: 2rem; opacity: 0.3; }

/* Conversation row — iOS style */
.msgs-conv-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem 0.7rem 1.1rem;
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.msgs-conv-row:active { background: #F2F2F7; }
.msgs-conv-row.active { background: #E8E8ED; }

.msgs-conv-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

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

.msgs-conv-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.msgs-conv-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msgs-conv-name.unread { font-weight: 700; }

.msgs-conv-time {
  font-size: 0.72rem;
  color: #8E8E93;
  flex-shrink: 0;
  margin-left: 6px;
}

.msgs-conv-listing {
  font-size: 0.7rem;
  color: #45332F;
  font-weight: 500;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msgs-conv-preview {
  font-size: 0.8rem;
  color: #8E8E93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}
.msgs-conv-preview.unread { color: #3C3C43; font-weight: 400; }

.msgs-unread-dot {
  background: #007AFF;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}

/* ── Thread ── */
.msgs-thread-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #F2F2F7;
}

.msgs-no-selection {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8E8E93;
}

.msgs-no-selection-icon { font-size: 3rem; opacity: 0.2; }
.msgs-no-selection-title { font-size: 1.05rem; font-weight: 500; color: #3C3C43; }
.msgs-no-selection-sub { font-size: 0.82rem; color: #8E8E93; }

/* Thread header — iOS style */
.msgs-thread-header {
  padding: 0.7rem 1.1rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.msgs-back-btn {
  display: none; /* shown only on mobile via media query */
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #007AFF;
  cursor: pointer;
  padding: 4px 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.msgs-thread-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.msgs-thread-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #000;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msgs-thread-listing {
  margin-top: 1px;
}

/* Bubble list */
.msgs-bubble-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scroll-behavior: smooth;
}

.msgs-bubble-empty {
  text-align: center;
  color: #8E8E93;
  font-size: 0.85rem;
  padding: 2rem 0;
}

/* Date divider */
.msgs-date-divider {
  text-align: center;
  font-size: 0.7rem;
  color: #8E8E93;
  font-weight: 500;
  margin: 0.75rem 0 0.4rem;
  letter-spacing: 0.2px;
}

/* Bubble wraps */
.msgs-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 72%;
}
.msgs-bubble-wrap.mine   { align-self: flex-end; align-items: flex-end; }
.msgs-bubble-wrap.theirs { align-self: flex-start; align-items: flex-start; }

/* Text bubbles */
.msgs-bubble {
  padding: 0.52rem 0.85rem;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
}

.msgs-bubble-wrap.mine .msgs-bubble {
  background: #45332F;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msgs-bubble-wrap.theirs .msgs-bubble {
  background: #fff;
  color: #000;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Timestamp under bubble */
.msgs-bubble-time {
  font-size: 0.65rem;
  color: #8E8E93;
  margin-top: 3px;
  padding: 0 3px;
}
.msgs-bubble-time.mine { text-align: right; }

/* System message */
.msgs-system-msg {
  align-self: center;
  text-align: center;
  font-size: 0.72rem;
  color: #8E8E93;
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 0.3rem 0.8rem;
  margin: 0.5rem 0;
  max-width: 85%;
}

/* Offer card bubble */
.msgs-offer-card {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  background: #fff;
  min-width: 200px;
  max-width: 260px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.msgs-bubble-wrap.mine .msgs-offer-card {
  background: #45332F;
  border-color: rgba(255,255,255,0.15);
}

.msgs-offer-card.accepted {
  background: #f0faf4;
  border-color: #2d7a4f;
}

.msgs-offer-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8E8E93;
  margin-bottom: 0.35rem;
}

.msgs-bubble-wrap.mine .msgs-offer-label { color: rgba(255,255,255,0.55); }

.msgs-offer-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;
  line-height: 1.1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.msgs-bubble-wrap.mine .msgs-offer-price { color: #fff; }

.msgs-offer-note {
  font-size: 0.8rem;
  color: #3C3C43;
  margin-bottom: 0.5rem;
}
.msgs-bubble-wrap.mine .msgs-offer-note { color: rgba(255,255,255,0.7); }

.msgs-offer-accepted-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d7a4f;
  margin-bottom: 0.3rem;
}
.msgs-bubble-wrap.mine .msgs-offer-accepted-badge { color: #6dffba; }

.msgs-offer-pending-badge {
  font-size: 0.72rem;
  color: #8E8E93;
  margin-bottom: 0.25rem;
  font-style: italic;
}
.msgs-bubble-wrap.mine .msgs-offer-pending-badge { color: rgba(255,255,255,0.45); }

.msgs-offer-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.55rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
  width: 100%;
  text-align: center;
}

.msgs-accept-btn {
  background: #007AFF;
  color: #fff;
}
.msgs-counter-btn {
  background: #F2F2F7;
  color: #000;
  margin-left: 0;
}
.msgs-offer-action-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.msgs-offer-action-btn:active { transform: scale(0.97); }

/* Offer commitment warning in price offer modal */
.offer-commitment-notice {
  background: #fffbeb;
  border: 1px solid #f5c542;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: #7a5a00;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.msgs-counter-form {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.msgs-counter-input-wrap {
  display: flex;
  align-items: center;
  background: #F2F2F7;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.msgs-counter-dollar {
  color: #3C3C43;
  font-weight: 600;
  margin-right: 4px;
  font-size: 0.95rem;
}

.msgs-counter-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;
  outline: none;
  font-family: inherit;
}

.msgs-counter-actions {
  display: flex;
  gap: 0.5rem;
}

.msgs-counter-cancel {
  flex: 1;
  background: #F2F2F7;
  border: none;
  border-radius: 8px;
  padding: 0.45rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.msgs-counter-send {
  flex: 1;
  background: #007AFF;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ── Compose bar — iOS pill style ── */
.msgs-compose {
  padding: 8px 10px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .msgs-compose {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

.msgs-compose-actions {
  flex-shrink: 0;
}

.msgs-compose-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #45332F;
  font-size: 0.75rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 4px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.msgs-compose-input {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 0.92rem;
  line-height: 1.4;
  font-family: inherit;
  resize: none;
  max-height: 120px;
  outline: none;
  color: #000;
  transition: border-color 0.15s;
}

.msgs-compose-input:focus {
  border-color: rgba(0,0,0,0.3);
}

.msgs-compose-input::placeholder { color: #8E8E93; }

.msgs-compose-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #45332F;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #fff;
  transition: transform 0.1s, opacity 0.15s;
}
.msgs-compose-send:active { transform: scale(0.92); }
.msgs-compose-send:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Mobile: slide-panel navigation ── */
@media (max-width: 768px) {
  .msgs-shell {
    height: calc(100svh - 68px);
    position: relative;
    overflow: hidden;
  }

  /* Sidebar fills full screen by default */
  .msgs-sidebar {
    position: absolute;
    inset: 0;
    width: 100%;
    min-width: 100%;
    border-right: none;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    will-change: transform;
  }

  /* Thread hidden off to the right by default */
  .msgs-thread-wrap {
    position: absolute;
    inset: 0;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    will-change: transform;
    background: #F2F2F7;
  }

  /* When thread-open: list slides out, thread slides in */
  .msgs-shell.thread-open .msgs-sidebar {
    transform: translateX(-100%);
  }
  .msgs-shell.thread-open .msgs-thread-wrap {
    transform: translateX(0);
  }

  /* Show back button on mobile */
  .msgs-back-btn {
    display: flex;
  }

  /* Wider bubbles on mobile */
  .msgs-bubble-wrap {
    max-width: 82%;
  }

  .msgs-bubble-list {
    padding: 0.75rem 0.75rem 0.5rem;
  }

  /* Tighter thread header */
  .msgs-thread-header {
    padding: 0.6rem 0.85rem;
  }

  /* Full-width offer cards on mobile */
  .msgs-offer-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

/* ===========================
   FRAGRANCE PAGE — LISTING ROWS
   =========================== */

.frag-listing-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: var(--bg-white);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
  position: relative;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.frag-listing-row:last-child { margin-bottom: 0; }

.frag-listing-row:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.frag-listing-thumb {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
}

.frag-listing-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frag-listing-thumb-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frag-listing-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.frag-listing-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-dark);
  flex-shrink: 0;
}

.frag-listing-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.frag-listing-vol {
  font-size: 0.82rem;
  color: var(--text-medium);
  font-weight: 500;
}

.frag-listing-desc {
  font-size: 0.82rem;
  color: var(--text-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frag-listing-seller {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.3rem;
}

.frag-listing-avatar {
  width: 22px;
  height: 22px;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.frag-listing-seller-info {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.frag-listing-seller-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.frag-listing-seller-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-medium);
}

.frag-listing-stars {
  font-size: 0.72rem;
}

.frag-listing-heart {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* ===========================
   LISTING DETAIL PAGE (LDP)
   =========================== */

.ldp-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 4rem 6rem;
  align-items: start;
  background: #fff;
}

/* ── Gallery ── */
.ldp-gallery {
  position: sticky;
  top: 90px;
  padding-right: 5rem;
}

.ldp-main-photo-wrap {
  border-radius: 4px;
  overflow: hidden;
  background: #f5f4f0;
  aspect-ratio: 1 / 1;
  position: relative;
}

.ldp-main-photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ldp-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ldp-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.ldp-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.ldp-thumb {
  width: 68px;
  height: 68px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
  flex-shrink: 0;
  background: #f5f4f0;
}

.ldp-thumb.active {
  border-color: var(--text-dark);
}

.ldp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Info Panel ── */
.ldp-info {
  padding-left: 0;
}

.ldp-breadcrumb {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.03em;
}

.ldp-breadcrumb a {
  color: var(--text-medium);
  text-decoration: none;
}

.ldp-breadcrumb a:hover { text-decoration: underline; }
.ldp-bc-sep { color: var(--text-light); }

.ldp-brand {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-medium);
  margin-bottom: 0.6rem;
}

.ldp-name {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.ldp-price {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

.ldp-sold-banner {
  background: #fef3cd;
  border: 1px solid #f5c542;
  color: #7a6000;
  border-radius: 4px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.ldp-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.ldp-volume {
  font-size: 0.85rem;
  color: var(--text-medium);
  font-weight: 400;
}

.ldp-include-tag {
  font-size: 0.78rem;
  color: var(--text-medium);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.2rem 0.65rem;
}

/* ── Action Buttons ── */
.ldp-actions {
  margin-bottom: 2.5rem;
}

.ldp-btn-full {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.1rem 1.5rem;
  margin-bottom: 0.65rem;
  border-radius: 3px;
}

.ldp-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.ldp-secondary-actions .btn {
  justify-content: center;
  font-size: 0.78rem;
  padding: 0.65rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

/* Watch button */
.ldp-watch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--text-medium);
  transition: color 0.15s, border-color 0.15s;
}
.ldp-watch-btn--active {
  color: #c0392b;
  border-color: #c0392b;
}
.ldp-watch-btn--active:hover { background: #fff5f5; }

.ldp-own-listing {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 0.75rem 0;
}

.ldp-own-listing a { color: var(--text-dark); text-decoration: underline; }

.ldp-unavailable {
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 0.5rem 0;
}

/* ── Divider ── */
.ldp-divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ── Seller Card ── */
.ldp-seller-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.85rem;
}

.ldp-seller-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  padding: 0;
  border: none;
  border-radius: 0;
  transition: opacity 0.15s;
}

.ldp-seller-row:hover {
  opacity: 0.75;
  box-shadow: none;
}

.ldp-seller-avatar {
  width: 42px;
  height: 42px;
  font-size: 1rem;
  flex-shrink: 0;
}

.ldp-seller-body {
  flex: 1;
}

.ldp-seller-name {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.ldp-seller-trust-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}
.ldp-seller-stars {
  font-size: 0.8rem;
  color: var(--text-light);
}

.ldp-seller-rating-count {
  color: var(--text-light);
}

.ldp-seller-arrow {
  font-size: 1rem;
  color: var(--text-light);
}

/* ── Description / Sections ── */
.ldp-section {
  margin-bottom: 2rem;
}

.ldp-section-title {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.ldp-desc {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.85;
  font-weight: 300;
  white-space: pre-wrap;
}

/* ── Notes ── */
.ldp-note-group {
  margin-bottom: 0.85rem;
}

.ldp-note-group-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.ldp-note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ldp-note-chip {
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  font-weight: 400;
  background: transparent;
  color: var(--text-medium);
}

.ldp-frag-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-dark);
  text-decoration: underline;
  margin-top: 0.75rem;
}

.ldp-frag-link:hover { opacity: 0.65; }

/* ── Listed date ── */
.ldp-listed-date {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 1.5rem;
  letter-spacing: 0.03em;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ldp-shell {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem 3rem;
  }
  .ldp-gallery {
    position: static;
    padding-right: 0;
    margin-bottom: 2.5rem;
  }
  .ldp-info { padding-left: 0; }
  .ldp-name { font-size: 1.8rem; }
  .ldp-secondary-actions { grid-template-columns: 1fr 1fr; }
}

/* ===========================
   FRAGRANCE CATALOG PAGE
   =========================== */

/* Nav link — plain text, no border */
.btn-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 400;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-medium);
  background: none;
  border: none;
  text-decoration: none;
  transition: color 0.15s;
  cursor: pointer;
}
.btn-nav-link:hover { color: var(--accent); }

/* Dark catalog page body override */
.catalog-page {
  background: #fff;
  color: #1a1a1a;
}

/* Navbar — white on white page */
.catalog-page .navbar {
  background: #fff;
  border-bottom: 1px solid #e8e4dc;
  box-shadow: none;
}

/* Hero */
.catalog-hero {
  background: #faf9f7;
  border-bottom: 1px solid #e8e4dc;
  padding: 4rem 2rem 3rem;
}

.catalog-hero-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.catalog-hero-title {
  font-family: 'Jost', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.catalog-hero-sub {
  font-size: 1rem;
  color: #888;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Search wrap */
.catalog-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.catalog-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
}

.catalog-search-input {
  width: 100%;
  height: 52px;
  padding-left: 3rem;
  padding-right: 1.25rem;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.catalog-search-input::placeholder { color: #aaa; }

.catalog-search-input:focus {
  border-color: #45332F;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

/* Category nav (fragrances page) */
.catalog-cat-nav {
  position: sticky;
  top: 68px;
  z-index: 11;
  background: #fff;
  border-bottom: 1px solid #e8e4dc;
}
.catalog-cat-inner {
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.catalog-cat-inner::-webkit-scrollbar { display: none; }
.catalog-cat-item {
  display: block;
  padding: 0.7rem 1.1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}
.catalog-cat-item:hover {
  color: #1a1410;
  border-bottom-color: #c8a96e;
}
.catalog-cat-item.active {
  color: #1a1410;
  font-weight: 600;
  border-bottom-color: #45332F;
}

/* Dark variant — sits below the dark shop-hero */
.catalog-cat-nav--dark {
  background: #1a1410;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.catalog-cat-nav--dark .catalog-cat-item {
  color: rgba(255,255,255,0.45);
  border-bottom-color: transparent;
}
.catalog-cat-nav--dark .catalog-cat-item:hover {
  color: rgba(255,255,255,0.85);
  border-bottom-color: rgba(255,255,255,0.2);
}
.catalog-cat-nav--dark .catalog-cat-item.active {
  color: #fff;
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* Filter bar */
.catalog-filters {
  position: sticky;
  top: 116px;
  background: #fff;
  border-bottom: 1px solid #e8e4dc;
  z-index: 10;
  padding: 0.75rem 2rem;
}

.catalog-filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.9rem;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.filter-chip:hover {
  border-color: #45332F;
  color: #45332F;
}

.filter-chip.active {
  background: #45332F;
  color: #fff;
  border-color: #45332F;
  font-weight: 400;
}

/* Filter button */
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0.9rem;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  background: transparent;
  color: #555;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.filter-toggle-btn:hover,
.filter-toggle-btn.active {
  border-color: #45332F;
  color: #45332F;
}

.filter-toggle-btn.has-filters {
  background: #45332F;
  color: #fff;
  border-color: #45332F;
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #45332F;
  font-size: 0.68rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  line-height: 1;
}

/* Filter panel dropdown */
.filter-panel {
  background: #fff;
  border-bottom: 1px solid #e8e4dc;
  padding: 1rem 2rem 1.25rem;
  animation: filterPanelIn 0.15s ease;
}

@keyframes filterPanelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.filter-panel-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.filter-panel-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-panel-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #999;
}

.filter-panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-panel-chips .filter-chip {
  font-size: 0.78rem;
}

/* Active filter pills in the bar */
.active-filter-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  background: #f3ede6;
  border: 1px solid #d4c4b0;
  border-radius: 999px;
  color: #45332F;
}

.active-filter-pill button {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  margin-left: 1px;
  transition: color 0.15s;
}

.active-filter-pill button:hover {
  color: #45332F;
}

/* Content area */
.catalog-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}

.catalog-status {
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.catalog-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: #bbb;
  font-size: 0.9rem;
}

/* Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 500px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
  }
}

/* ── Compact fragrance cards at mobile (≤500px, 3-col) ── */
@media (max-width: 500px) {
  .frag-card {
    border-radius: 8px;
  }

  .frag-card-img-wrap {
    height: 100px;
  }

  .frag-card-img-wrap img {
    padding: 0.3rem;
  }

  .frag-card-body {
    padding: 0.45rem 0.5rem 0.4rem;
  }

  .frag-card-brand {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
  }

  .frag-card-name {
    font-size: 0.7rem;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    margin-bottom: 0;
  }

  /* Hide meta row (conc badge, year, notes) — too small */
  .frag-card-meta,
  .frag-card-notes,
  .frag-card-actions {
    display: none !important;
  }
}

/* Fragrance card */
.frag-card {
  border: 1.5px solid #ebe8e2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.frag-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  border-color: #1a1a1a;
}

/* Card image */
.frag-card-img-wrap {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frag-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  position: relative;
  z-index: 1;
  mix-blend-mode: multiply;
}

.frag-card-gradient-fallback {
  position: absolute;
  inset: 0;
  background: #fff;
}

.frag-card-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(255,255,255,0.6) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Card body */
.frag-card-body {
  padding: 0.9rem 1rem 0.75rem;
  flex: 1;
}

.frag-card-brand {
  font-size: 0.68rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.frag-card-name {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.45rem;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frag-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.frag-card-conc {
  font-size: 0.62rem;
  font-weight: 400;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: rgba(201,168,76,0.1);
  color: #b8922e;
  border: 1px solid rgba(201,168,76,0.3);
  letter-spacing: 0.04em;
}

.frag-card-year {
  font-size: 0.75rem;
  color: #bbb;
}

.frag-card-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.frag-card-note {
  font-size: 0.63rem;
  color: #999;
  background: #f5f3ef;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  border: 1px solid #e8e4dc;
}

/* Card action buttons — revealed on hover */
.frag-card-actions {
  padding: 0.65rem 1rem;
  border-top: 1px solid #f0ece4;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.frag-card:hover .frag-card-actions {
  opacity: 1;
}

.btn-card-sell {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.02em;
}

.btn-card-sell:hover { background: #333333; }

.btn-card-wishlist {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: transparent;
  color: #45332F;
  border: 1.5px solid #C8C8C8;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  letter-spacing: 0.02em;
}

.btn-card-wishlist:hover {
  background: rgba(69,51,47,0.06);
  border-color: #45332F;
}

.btn-card-wishlist--done {
  color: #3a9e6b;
  border-color: rgba(58,158,107,0.35);
}

.btn-card-wishlist:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Load more */
.catalog-load-more {
  text-align: center;
  padding: 2.5rem 0 1rem;
}

.btn-load-more {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.75rem 2.5rem;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid #C8C8C8;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s;
}

.btn-load-more:hover:not(:disabled) {
  background: var(--surface);
  border-color: #1a1a1a;
}

.btn-load-more:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Empty state */
.catalog-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #bbb;
  font-size: 0.9rem;
}

/* Responsive hero */
@media (max-width: 600px) {
  .catalog-hero { padding: 3rem 1.25rem 2.5rem; }
  .catalog-hero-title { font-size: 2.2rem; }
  .catalog-content { padding: 1rem 0.75rem 2rem; }
  .catalog-filters { padding: 0.65rem 0.75rem; top: 108px; }
  .catalog-cat-inner { padding: 0 1rem; }
  .catalog-cat-item { padding: 0.6rem 0.75rem; font-size: 0.72rem; }
}

/* =============================================
   SHIPPING UI — sell form
   ============================================= */

.shipping-toggle-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.shipping-toggle-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
}
.shipping-toggle-btns {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.shipping-toggle-btn {
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 400;
  border: none;
  background: var(--bg-white);
  color: var(--text-medium);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: 'Jost', sans-serif;
}
.shipping-toggle-btn + .shipping-toggle-btn {
  border-left: 1px solid var(--border);
}
.shipping-toggle-btn.active {
  background: var(--text-dark);
  color: #fff;
}

.shipping-payer-label {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.shipping-payer-cards {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.shipping-payer-card {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
  background: var(--bg-white);
}
.shipping-payer-card.active {
  border-color: var(--accent);
  background: #fff5f5;
}
.shipping-payer-icon {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}
.shipping-payer-title {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-dark);
}
.shipping-payer-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

.shipping-size-cards {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.shipping-size-card {
  flex: 1;
  padding: 0.6rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
  background: var(--bg-white);
}
.shipping-size-card.active {
  border-color: var(--accent);
  background: #fff5f5;
}
.shipping-size-icon {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}
.shipping-size-title {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-dark);
}
.shipping-size-sub {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.05rem;
}

/* ── Shipping rate cards (sell form) ──────────────────────────── */
.shipping-rate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-white);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  gap: 0.75rem;
}
.shipping-rate-card:hover {
  border-color: var(--text-medium);
}
.shipping-rate-card.active {
  border-color: var(--accent);
  background: #fff5f5;
}
.shipping-rate-carrier {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
}
.shipping-rate-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* ── Packaging guidelines (sell form) ─────────────────────────── */
.packaging-guidelines {
  background: #fffbf0;
  border: 1.5px solid #f0c040;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.packaging-guidelines-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 0.9rem;
  color: #7a5a00;
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
}
.packaging-guidelines-icon { font-size: 1rem; }
.packaging-guidelines-sub {
  font-size: 0.78rem;
  color: #7a5a00;
  margin: 0 0 0.8rem;
  line-height: 1.5;
}
.packaging-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.packaging-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-dark);
  line-height: 1.45;
}
.packaging-check-item input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* =============================================
   SHIPPING BADGES — listing detail page
   ============================================= */

.ldp-shipping-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 400;
}
.ldp-shipping-free {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}
.ldp-shipping-buyer {
  background: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #90caf9;
}
.ldp-shipping-local {
  background: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
}

/* =============================================
   ACCOUNT SETTINGS PAGE
   ============================================= */

.settings-page {
  display: flex;
  max-width: 1000px;
  margin: 48px auto 80px;
  padding: 0 20px;
  gap: 32px;
  align-items: flex-start;
}

/* ── Sidebar ── */
.settings-sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}
.settings-nav-header {
  font-family: 'Jost', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-nav-item {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.settings-nav-item:hover {
  background: var(--surface);
}
.settings-nav-item.active {
  background: var(--accent-light, #f5ead8);
  color: var(--accent);
  font-weight: 400;
}
.settings-nav-item.danger {
  color: #c00;
}
.settings-nav-item.danger:hover {
  background: #fff0f0;
}
.settings-nav-item.danger.active {
  background: #fff0f0;
  color: #c00;
}

/* ── Main content ── */
.settings-main {
  flex: 1;
  min-width: 0;
}
.settings-section {
  display: none;
}
.settings-section.active {
  display: block;
}
.settings-section-title {
  font-family: 'Jost', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.settings-section-title.danger-title {
  color: #c00;
}
.settings-section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Cards ── */
.settings-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.settings-card-title {
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.danger-card {
  border-color: #f5c6cb;
  background: #fff8f8;
}

/* ── Fields ── */
.settings-field {
  margin-bottom: 16px;
}
.settings-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.settings-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 6px;
}
.settings-char-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 3px;
}
.settings-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.settings-feedback {
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.settings-danger-text {
  font-size: 0.87rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.55;
}

/* ── Avatar row ── */
.settings-avatar-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--surface, #fafafa);
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* ── Color picker ── */
.settings-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.color-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.color-swatch.selected {
  border-color: var(--text-dark);
  box-shadow: 0 0 0 2px #fff inset, 0 2px 8px rgba(0,0,0,0.25);
  transform: scale(1.1);
}

/* ── Password strength ── */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.password-strength-bar {
  flex: 1;
  height: 5px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}
.password-strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s, background 0.3s;
}
.password-strength-label {
  font-size: 0.78rem;
  font-weight: 400;
  min-width: 70px;
  text-align: right;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .settings-page {
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
  }
  .settings-sidebar {
    width: 100%;
    position: static;
  }
  .settings-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .settings-nav-item {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
  }
  .settings-nav-item.active {
    border-color: var(--accent);
  }
}

/* ── Compose Actions (Private Listing button) ─────────────────── */
.msgs-compose-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0;
}

.msgs-compose-action-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-medium);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  transition: var(--transition);
}
.msgs-compose-action-btn:hover {
  background: var(--surface);
  color: var(--text-dark);
}

/* =============================================
   BRAND / DESIGNER PAGE
   ============================================= */

.brand-page-hero {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 60%, #16213e 100%);
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.brand-page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand-page-letter {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  color: #c9a84c;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-page-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  margin-bottom: 0.4rem;
}
.brand-page-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}
.brand-page-count {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}

/* Grid */
.brand-page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}
.brand-page-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.brand-page-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Fragrance cards */
.brand-frag-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}
.brand-frag-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.brand-frag-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand-frag-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-frag-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f2ed, #ede8e0);
}
.brand-frag-info {
  padding: 0.65rem 0.7rem 0.75rem;
  border-top: 1px solid #f0ece4;
}
.brand-frag-brand {
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a6a2a;
  margin-bottom: 0.2rem;
}
.brand-frag-name {
  font-size: 0.8rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.35;
}
.brand-frag-conc {
  font-size: 0.62rem;
  color: #aaa;
  margin-top: 0.2rem;
}

/* Skeleton */
.brand-frag-skeleton { pointer-events: none; }
.skeleton-box {
  background: linear-gradient(90deg, #f0ede8 25%, #e8e4dc 50%, #f0ede8 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s infinite;
}
.skeleton-line {
  border-radius: 4px;
  background: linear-gradient(90deg, #f0ede8 25%, #e8e4dc 50%, #f0ede8 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s infinite;
}
@keyframes skelShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 900px) {
  .brand-page-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .brand-page-hero-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .brand-page-name { font-size: 1.6rem; }
  .brand-page-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV ISLAND
   Hidden on desktop, floating pill on mobile
   ═══════════════════════════════════════════════════════════════════════════ */

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {

  /* The island itself — full-width, glued to bottom */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.07);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 9990;
    width: 100%;
  }

  /* Push page content up so it's never hidden behind the island */
  body {
    padding-bottom: 88px;
  }

  /* Hide top-nav clutter — only the logo stays */
  .nav-actions {
    display: none !important;
  }
  .nav-seller-search {
    display: none !important;
  }

  /* Each tab item */
  .mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 12px;
    border-radius: 10px;
    color: #8a7e78;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    flex: 1;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.14s, background 0.14s;
  }

  .mbn-item > span:last-child {
    font-size: 0.57rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    white-space: nowrap;
    line-height: 1;
  }

  /* Active state */
  .mbn-item.mbn-active {
    color: #45332F;
    background: rgba(69, 51, 47, 0.08);
  }

  .mbn-item:active {
    opacity: 0.7;
  }

  /* Centre Sell button — gold pill */
  .mbn-sell {
    background: #45332F !important;
    color: #fff !important;
    border-radius: 24px;
    margin: 0 3px;
    padding: 7px 16px !important;
  }

  .mbn-sell:active {
    opacity: 0.82;
  }

  /* Icon wrapper for badge positioning */
  .mbn-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Unread badge on messages icon */
  .mbn-badge {
    position: absolute;
    top: -4px;
    right: -7px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.48rem;
    font-weight: 700;
    border-radius: 10px;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 1.5px solid #fff;
    line-height: 1;
  }

  /* User avatar in the Profile tab */
  .mbn-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mbn-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }

  .mbn-avatar-init {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    border-radius: 50%;
  }
}

/* ============================================================
   SHOP — All Active Listings  (listings.html)
   ============================================================ */

/* ── Shop Hero ───────────────────────────────────────────────── */
.shop-hero {
  background: #1a1410;
  padding: 4rem 2rem 3.5rem;
  text-align: center;
}

.shop-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.shop-hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.shop-hero-title {
  font-family: 'Jost', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

.shop-hero-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.48);
  margin: 0 0 2rem;
}

.shop-hero-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50px;
  padding: 0.85rem 1.4rem;
  transition: border-color 0.15s, background 0.15s;
}

.shop-hero-search:focus-within {
  background: rgba(255,255,255,0.11);
  border-color: var(--accent);
}

.shop-hero-search svg {
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
}

.shop-hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: #fff;
  min-width: 0;
}

.shop-hero-search input::placeholder {
  color: rgba(255,255,255,0.38);
}

/* ── Shop Page ───────────────────────────────────────────────── */
.shop-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 120px;
}

/* ── Filters ─────────────────────────────────────────────────── */
.shop-filters {
  margin-bottom: 24px;
}

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

.shop-result-count {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-left: auto;
}

.shop-select {
  padding: 0.55rem 2rem 0.55rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  background: #fff;
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s;
}

.shop-select:focus {
  border-color: var(--accent);
}

/* ── Grid ────────────────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

/* ── Loading / Empty ─────────────────────────────────────────── */
.shop-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.shop-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
  color: var(--text-light);
  font-size: 0.97rem;
}

/* ── Load More ───────────────────────────────────────────────── */
.shop-load-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* ── Card ────────────────────────────────────────────────────── */
.shop-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.18s;
}

.shop-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

/* Image area */
.shop-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8f6f3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-card-img-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(69,51,47,0.18);
  position: absolute;
  inset: 0;
}

.shop-card-img-wrap--placeholder {
  background: #f4f1ee;
}

.shop-card-img-wrap--placeholder span {
  font-family: 'Jost', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(69,51,47,0.2);
}

/* Body */
.shop-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.shop-card-brand {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.shop-card-name {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.shop-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.shop-card-volume {
  font-size: 0.78rem;
  color: var(--text-light);
}

.shop-card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 4px;
  font-family: 'Jost', sans-serif;
}

/* Seller row */
.shop-card-seller {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.shop-card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.shop-card-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.shop-card-avatar-init {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
}

.shop-card-seller-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shop-card-seller-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-card-seller-stars {
  font-size: 0.68rem;
  line-height: 1.2;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .shop-hero { padding: 3rem 1.25rem 2.5rem; }
  .shop-page {
    padding: 20px 14px 100px;
  }

  .shop-filter-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .shop-select {
    flex: 1;
    min-width: 120px;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .shop-card-body {
    padding: 10px 12px 12px;
  }

  .shop-card-price {
    font-size: 1.05rem;
  }
}

/* ============================================================
   HOME PAGE — MOBILE COMPACTION  (≤ 600px)
   Overrides all sections to be tight and readable on small screens
   ============================================================ */
@media (max-width: 600px) {

  /* ── Navbar ── */
  .logo-img { height: 32px; }

  /* ── Hero ── */
  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }

  .hero-label {
    font-size: 0.62rem;
    letter-spacing: 2px;
    margin-bottom: 0.9rem;
  }

  .hero h1 {
    font-size: clamp(4.5rem, 20vw, 7rem);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.05;
  }

  .hero-sub {
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
  }

  .hero-search-wrap { margin-bottom: 1.1rem; }

  .hero-search-box input {
    font-size: 0.85rem;
    padding: 0.7rem 1rem 0.7rem 2.6rem;
  }

  .hero-actions { gap: 0.6rem; }

  .btn-lg {
    padding: 0.6rem 1.4rem;
    font-size: 0.8rem;
  }

  /* ── Marquee ── */
  .marquee-item {
    font-size: 0.7rem;
    padding: 0.5rem 0.6rem;
  }

  .marquee-dot {
    font-size: 0.7rem;
  }

  /* ── Scent by Family ── */
  .scent-collection-section {
    padding: 2rem 1rem;
  }

  .scent-collection-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .scent-collection-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.35rem;
  }

  .scent-card-img-wrap {
    border-radius: 4px;
    margin-bottom: 0.3rem;
  }

  .scent-card-label {
    font-size: 0.52rem;
    letter-spacing: 0.8px;
  }

  /* ── Category Panels (Men / Women / All) ── */
  .category-panels {
    grid-template-columns: 1fr;
    height: auto;
  }

  .category-panel {
    height: 220px;
  }

  .category-panel-img {
    object-position: center center;
    object-fit: cover;
  }

  .category-panel-content {
    padding: 1rem 1.1rem;
  }

  .category-panel-eyebrow {
    font-size: 0.6rem;
    letter-spacing: 2px;
    margin-bottom: 0.2rem;
  }

  .category-panel-label {
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
  }

  .category-panel-count {
    font-size: 0.65rem;
    margin-bottom: 0;
  }

  .category-panel-cta { display: none; }

  /* ── Sections (general) ── */
  .section {
    padding: 2rem 1rem;
  }

  .section-header {
    margin-bottom: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .section-title {
    font-size: 1.1rem !important;
  }

  .section-subtitle {
    font-size: 0.78rem !important;
  }

  /* ── Recently Viewed rail ── */
  .rv-grid { gap: 0.6rem; }

  .rv-card { flex: 0 0 140px; border-radius: 8px; }

  .rv-card-image-wrap { padding: 0.75rem; }

  .rv-card-info { padding: 0.45rem 0.6rem 0.6rem; }

  .rv-card-brand { font-size: 0.55rem; }

  .rv-card-name { font-size: 0.73rem; }

  .rv-arrow { display: none; }

  /* ── How It Works ── */
  .how-it-works {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .how-step {
    padding: 1rem 1rem;
    text-align: left;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .how-number {
    font-size: 1.6rem;
    margin-bottom: 0;
    flex-shrink: 0;
    width: 36px;
    line-height: 1.3;
  }

  .how-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .how-desc {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  /* ── Footer Trust ── */
  .footer-trust {
    padding: 1.5rem 1rem;
  }

  .footer-trust-heading {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .footer-trust-sub {
    font-size: 0.78rem;
    margin-bottom: 1rem;
  }

  .footer-trust-tiers {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer-trust-tier { flex: 0 0 auto; }

  .footer-trust-how {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-trust-step-arrow { transform: rotate(90deg); }

  .footer-trust-step-num { width: 28px; height: 28px; font-size: 0.8rem; }

  .footer-trust-step-title { font-size: 0.8rem; }
  .footer-trust-step-desc  { font-size: 0.72rem; }

  /* ── Footer ── */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1.5rem 1rem 0;
  }

  .footer-desc { font-size: 0.75rem; }

  .footer-heading { font-size: 0.65rem; margin-bottom: 0.5rem; }

  .footer-links a { font-size: 0.78rem; }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 0.68rem;
    padding: 1rem 1rem;
  }
}

/* ============================================================
   SELL / LIST PAGE — MOBILE COMPACTION  (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {

  /* ── Page wrapper ── */
  .sell-page {
    padding: 0.85rem 0.75rem 5rem;
    max-width: 100%;
  }

  .sell-page-title {
    font-size: 1.3rem;
    margin-bottom: 0.15rem;
  }

  .sell-page-sub {
    font-size: 0.72rem;
    margin-bottom: 1rem;
  }

  /* ── Step cards ── */
  .sell-step {
    padding: 0.8rem;
    margin-bottom: 0.7rem;
    border-radius: 9px;
  }

  .sell-step-header {
    gap: 0.45rem;
    margin-bottom: 0.75rem;
  }

  .sell-step-num {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
    flex-shrink: 0;
  }

  .sell-step-title {
    font-size: 0.88rem;
  }

  /* ── Source tabs (Search / My Collection) ── */
  .sell-source-tabs {
    gap: 0.35rem;
    margin-bottom: 0.65rem;
  }

  .sell-source-tab {
    padding: 0.28rem 0.65rem;
    font-size: 0.7rem;
    gap: 0.25rem;
  }

  .sell-source-tab svg {
    width: 11px;
    height: 11px;
  }

  /* ── Collection grid inside step 1 ── */
  .sell-collection-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    max-height: 240px;
  }

  .sell-coll-info {
    padding: 0.3rem 0.4rem;
  }

  .sell-coll-name {
    font-size: 0.6rem;
  }

  .sell-coll-brand {
    font-size: 0.54rem;
  }

  /* ── Selected fragrance card ── */
  .frag-selected-card {
    padding: 0.55rem 0.7rem;
    gap: 0.55rem;
    margin-top: 0.4rem;
  }

  .frag-selected-mini-gradient {
    width: 34px;
    height: 34px;
    border-radius: 5px;
  }

  .frag-selected-name {
    font-size: 0.82rem;
  }

  .frag-selected-meta {
    font-size: 0.67rem;
  }

  /* ── Form fields ── */
  .form-group {
    margin-bottom: 0.6rem;
  }

  .form-label {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }

  .form-input {
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 6px;
  }

  textarea.form-input {
    min-height: 60px;
    font-size: 0.8rem;
  }

  select.form-input {
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
  }

  /* ── Vol / Price 2-col grid ── */
  .sell-step > div[style*="grid-template-columns:1fr 1fr"],
  .sell-step > div[style*="grid-template-columns: 1fr 1fr"] {
    gap: 0.6rem !important;
  }

  /* ── Fragrance search dropdown ── */
  .frag-option {
    padding: 0.45rem 0.65rem;
    gap: 0.45rem;
  }

  .frag-option-color {
    width: 24px;
    height: 24px;
  }

  .frag-option-name {
    font-size: 0.75rem;
  }

  .frag-option-brand {
    font-size: 0.64rem;
  }

  /* ── Shipping section ── */
  .shipping-toggle-label {
    font-size: 0.78rem;
  }

  .shipping-toggle-btn {
    padding: 4px 14px;
    font-size: 0.75rem;
  }

  .shipping-payer-label {
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
  }

  .shipping-payer-cards {
    gap: 0.5rem;
  }

  .shipping-payer-card {
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
  }

  .shipping-payer-title {
    font-size: 0.75rem;
  }

  .shipping-payer-sub {
    font-size: 0.64rem;
  }

  .shipping-size-cards {
    gap: 0.4rem;
  }

  .shipping-size-card {
    padding: 0.45rem 0.35rem;
    border-radius: 8px;
  }

  .shipping-size-title {
    font-size: 0.7rem;
  }

  .shipping-size-sub {
    font-size: 0.6rem;
  }

  /* ── Packaging guidelines ── */
  .packaging-guidelines {
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
  }

  .packaging-guidelines-header {
    font-size: 0.78rem;
    gap: 6px;
    margin-bottom: 0.3rem;
  }

  .packaging-guidelines-sub {
    font-size: 0.68rem;
    margin-bottom: 0.55rem;
  }

  .packaging-checklist {
    gap: 0.4rem;
  }

  .packaging-check-item {
    font-size: 0.72rem;
    gap: 7px;
    line-height: 1.4;
  }

  .packaging-check-item input[type="checkbox"] {
    width: 13px;
    height: 13px;
  }

  /* ── Checkboxes (box / tester cap) ── */
  .form-checkbox-row {
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  /* ── Photo upload ── */
  .img-upload-zone {
    padding: 0.85rem 0.65rem;
  }

  .img-upload-icon {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }

  .img-upload-label {
    font-size: 0.74rem;
  }

  .img-upload-hint {
    font-size: 0.62rem;
  }

  .img-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.4rem;
    margin-top: 0.5rem;
  }

  /* ── Photo requirements notice ── */
  .sell-step div[style*="background:#fffbf2"] {
    font-size: 0.72rem !important;
    padding: 0.55rem 0.7rem !important;
  }

  /* ── Terms disclaimer ── */
  .sell-step > div[style*="font-size:0.8rem"] {
    font-size: 0.68rem !important;
  }

  /* ── Submit button ── */
  .form-submit {
    padding: 0.6rem;
    font-size: 0.82rem;
  }

  /* ── Misc hint text ── */
  .form-hint {
    font-size: 0.65rem;
  }
}

/* ===========================
   WISHLIST DRAG-AND-DROP RANKING
   =========================== */

.wishlist-drag-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wishlist-drag-hint::before {
  content: '⠿';
  font-size: 1rem;
  opacity: 0.5;
}

/* Grid mirrors the collection grid */
.wishlist-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

@media (max-width: 600px) {
  .wishlist-rank-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .wishlist-rank-item .profile-coll-img {
    padding: 3px;
  }

  .wishlist-rank-item .profile-coll-info {
    padding: 2px 4px 3px;
  }

  .wishlist-rank-item .profile-coll-brand {
    font-size: 0.42rem;
    letter-spacing: 0.3px;
  }

  .wishlist-rank-item .profile-coll-name {
    font-size: 0.55rem;
    line-height: 1.2;
  }

  .wishlist-rank-badge {
    font-size: 0.5rem;
    padding: 1px 4px;
    top: 4px;
    left: 4px;
  }
}

/* Cards inherit all profile-coll-card styles — just add drag behaviour */
.wishlist-rank-item {
  cursor: grab;
  user-select: none;
  position: relative;
}

.wishlist-rank-item:active {
  cursor: grabbing;
}

.wishlist-rank-item.dragging {
  opacity: 0.35;
  box-shadow: none !important;
  transform: none !important;
}

/* Rank badge — top-left corner */
.wishlist-rank-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 4;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 20px;
  pointer-events: none;
  line-height: 1.5;
}

/* ===========================
   TRADE OFFER BUTTON
   =========================== */

.btn-trade-offer {
  width: 100%;
  padding: 0.6rem;
  background: #f0faf4;
  color: #2a7a4b;
  border: none;
  border-top: 1px solid rgba(42, 122, 75, 0.2);
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  margin-top: auto;
}

.profile-coll-actions {
  margin-top: auto;
}

.btn-trade-offer:hover {
  background: #d8f4e6;
  border-color: rgba(42, 122, 75, 0.5);
}

.btn-trade-offer--match {
  background: #fff8ee;
  color: var(--accent);
  border-color: rgba(69, 51, 47, 0.25);
}

.btn-trade-offer--match:hover {
  background: #fdefd8;
  border-color: rgba(69, 51, 47, 0.45);
}

/* ===========================
   WISHLIST MATCH BANNER
   =========================== */

.wishlist-match-banner {
  background: linear-gradient(135deg, #fff8ee 0%, #fff 100%);
  border: 1px solid rgba(69, 51, 47, 0.18);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}

.wishlist-match-header {
  margin-bottom: 1rem;
  padding-left: 0.25rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}

.wishlist-match-icon {
  display: none;
}

.wishlist-match-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.wishlist-match-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.4;
}

.wishlist-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.wishlist-match-card {
  border-color: rgba(69, 51, 47, 0.2) !important;
}

/* ===========================
   TRADE OFFER MODAL
   =========================== */

.trade-offer-modal {
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  border-radius: 50%;
  transition: color 0.15s;
}

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

.trade-offer-side {
  margin-bottom: 1.1rem;
}

.trade-offer-side-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* The single selected frag preview at top */
.trade-modal-frag-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.75rem;
  border: 1px solid var(--border);
}

.trade-modal-frag-card--yours {
  background: #f0faf4;
  border-color: rgba(42, 122, 75, 0.25);
}

/* Scrollable grid of collection items to pick from */
.trade-offer-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.25rem 0.1rem;
}

.trade-picker-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
  user-select: none;
}

.trade-picker-card:hover {
  border-color: rgba(69, 51, 47, 0.4);
  box-shadow: var(--shadow);
}

.trade-picker-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(69, 51, 47, 0.12);
}

.trade-picker-card .profile-coll-img {
  height: 90px;
}

.trade-picker-card .profile-coll-img-placeholder {
  height: 90px;
}

.trade-picker-card .profile-coll-info {
  padding: 0.4rem 0.5rem;
}

.trade-picker-card .profile-coll-brand {
  font-size: 0.55rem;
}

.trade-picker-card .profile-coll-name {
  font-size: 0.72rem;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.picker-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.35rem 0.5rem 0.45rem;
  border-top: 1px solid var(--border);
  margin-top: 0.1rem;
}

.picker-card-detail-pill {
  font-size: 0.62rem;
  font-weight: 600;
  font-family: var(--font-heading);
  background: var(--surface);
  border-radius: 20px;
  padding: 2px 7px;
  color: var(--text-medium);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .wishlist-match-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }

  .trade-offer-pick-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    max-height: 200px;
  }

  .trade-offer-modal {
    max-height: 95vh;
  }
}

/* ===========================
   FLAIR BADGE
   =========================== */
.flair-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1a0f00;
  background: rgba(201,168,76,0.18);
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: 20px;
  padding: 2px 8px;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.flair-badge-sm {
  font-size: 0.58rem;
  padding: 1px 6px;
  margin-left: 0.25rem;
}

/* ===========================
   TRADE TRUST / ESCROW BAR
   =========================== */
.trade-trust-bar {
  display: flex;
  gap: 0.75rem;
  background: var(--surface);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-medium);
  align-items: center;
  flex-wrap: wrap;
}

.trade-trust-bar--complete {
  background: #eef8f2;
  color: #2d7a4f;
  border: 1px solid #a5d6a7;
  font-weight: 500;
}

.trade-trust-step {
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trade-trust-step.done {
  color: #2d7a4f;
  font-weight: 500;
}

.trust-check {
  font-size: 0.9rem;
  color: #2d7a4f;
  flex-shrink: 0;
}

.trust-waiting {
  color: var(--text-light);
  font-style: italic;
}

/* Verification pill on trade card */
.trade-verify-pill {
  background: rgba(39,174,96,0.1);
  color: #1e7e45;
  border: 1px solid rgba(39,174,96,0.3);
  text-decoration: none;
  cursor: pointer;
}
.trade-verify-pill:hover {
  background: rgba(39,174,96,0.18);
}

/* Trade status section titles */
.trades-section-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trades-count {
  font-size: 0.7rem;
  background: var(--surface);
  border-radius: 20px;
  padding: 2px 7px;
  color: var(--text-medium);
}

/* ===========================
   CHECKOUT PAGE
   =========================== */

.checkout-page {
  min-height: 100vh;
  background: var(--surface);
  padding: 2rem 1.5rem 4rem;
}

.checkout-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.checkout-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

/* ── Left Column ── */
.checkout-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.checkout-card-header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.checkout-card-action {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-card-body {
  padding: 1.1rem 1.25rem;
}

/* Ship To */
.co-ship-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.co-ship-addr {
  font-size: 0.85rem;
  color: var(--text-medium);
  line-height: 1.65;
}

/* Review Order */
.co-seller-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.co-seller-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

.co-seller-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.co-item-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.co-item-img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  object-fit: cover;
  flex-shrink: 0;
}

.co-item-img-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.6rem;
  flex-shrink: 0;
}

.co-item-details {
  flex: 1;
  min-width: 0;
}

.co-item-brand {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

.co-item-name {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.co-item-meta {
  font-size: 0.78rem;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.co-item-meta-sep {
  color: var(--border);
}

.co-item-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.co-delivery-row {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.co-delivery-icon {
  font-size: 1.1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.co-delivery-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.1rem;
}

.co-delivery-text {
  font-size: 0.84rem;
  color: var(--text-medium);
  line-height: 1.4;
}

.co-delivery-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

/* Payment method */
.co-pay-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.co-pay-option:last-child {
  border-bottom: none;
}

.co-pay-option input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.co-pay-option-label {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-dark);
  flex: 1;
}

.co-pay-option-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

.co-pay-logos {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.co-pay-logo {
  height: 20px;
  border-radius: 3px;
  border: 1px solid var(--border);
  padding: 2px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  background: #fff;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

/* ── Right Sidebar ── */
.checkout-sidebar {
  position: sticky;
  top: 1.5rem;
}

.co-summary-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.co-summary-header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.co-summary-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.co-summary-body {
  padding: 1.1rem 1.25rem;
}

.co-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.86rem;
}

.co-summary-row-label {
  color: var(--text-medium);
}

.co-summary-row-val {
  font-weight: 500;
  color: var(--text-dark);
}

.co-summary-row-val.free {
  color: #1e7e45;
  font-weight: 600;
}

.co-summary-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.75rem 0;
}

.co-summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.co-summary-total-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.co-summary-total-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.co-confirm-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.95rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.co-confirm-btn:hover:not(:disabled) {
  background: var(--accent-dark);
}

.co-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.co-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  color: var(--text-light);
}

.co-buyer-prot {
  margin-top: 1rem;
  padding: 0.9rem;
  background: #fffbf2;
  border: 1px solid #e8d9b0;
  border-radius: 8px;
  font-size: 0.76rem;
  color: #6b5200;
  line-height: 1.6;
}

.co-buyer-prot-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.68rem;
  margin-bottom: 0.35rem;
}

.co-error {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff0f0;
  border: 1px solid #ffcccc;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #c0392b;
  display: none;
}

.co-error.show {
  display: block;
}

.co-loading {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
  font-size: 1rem;
}

/* ── Address panel ── */

.checkout-card-action {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.co-addr-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.co-addr-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.co-addr-row--selected {
  border-color: var(--accent);
  background: rgba(69, 51, 47, 0.04);
}

.co-addr-row:hover {
  border-color: #999;
}

.co-addr-row-radio {
  padding-top: 1px;
  flex-shrink: 0;
}

.co-addr-row-radio input[type="radio"] {
  accent-color: var(--accent);
  cursor: pointer;
  width: 15px;
  height: 15px;
}

.co-addr-row-body {
  flex: 1;
  min-width: 0;
}

.co-addr-row-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.co-addr-row-text {
  font-size: 0.82rem;
  color: var(--text-medium);
  line-height: 1.55;
}

.co-addr-delete-btn {
  background: none;
  border: none;
  padding: 4px;
  color: var(--text-light);
  cursor: pointer;
  flex-shrink: 0;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.co-addr-delete-btn:hover {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
}

.co-addr-add-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  width: 100%;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.15s, border-color 0.15s;
}

.co-addr-add-btn:hover {
  background: rgba(69, 51, 47, 0.04);
  border-color: var(--accent);
}

/* Address form */
.co-addr-form {}

.co-addr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.co-addr-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.co-addr-form-row--full {
  grid-column: 1 / -1;
}

.co-addr-form-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.co-addr-form-input {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color 0.15s;
  outline: none;
}

.co-addr-form-input:focus {
  border-color: var(--accent);
}

.co-addr-form-error {
  font-size: 0.8rem;
  color: #c0392b;
  margin-bottom: 0.5rem;
  min-height: 1em;
}

.co-addr-form-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

.co-addr-save-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.co-addr-save-btn:hover:not(:disabled) {
  background: var(--accent-dark);
}

.co-addr-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.co-addr-cancel-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-medium);
  cursor: pointer;
  transition: background 0.15s;
}

.co-addr-cancel-btn:hover {
  background: var(--surface);
}

/* Responsive */
@media (max-width: 700px) {
  .checkout-page {
    padding: 1rem 0.75rem 3rem;
  }

  .checkout-title {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .checkout-sidebar {
    position: static;
    order: -1; /* sidebar shows above left col on mobile */
  }

  .co-item-img,
  .co-item-img-placeholder {
    width: 70px;
    height: 70px;
  }

  .co-item-name {
    font-size: 0.9rem;
  }

  .co-item-price {
    font-size: 0.95rem;
  }
}

/* ============================================================
   GLOBAL MOBILE COMPACTION — fit content on screen (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {

  /* ── Homepage Hero: tighter padding, hide activity feed ── */
  .hero {
    padding: 4rem 1.25rem 3rem !important;
  }
  .hero h1 {
    font-size: clamp(4.5rem, 20vw, 7rem) !important;
    margin-bottom: 1rem !important;
    line-height: 1.05 !important;
    letter-spacing: 0.02em !important;
  }
  .hero-label {
    margin-bottom: 0.5rem !important;
  }
  .hero-sub {
    font-size: 0.78rem !important;
    margin-bottom: 0.9rem !important;
  }
  .hero-search-wrap {
    margin-bottom: 0.75rem !important;
  }
  .hero-feed-wrap {
    display: none !important;
  }
  .hero-actions {
    gap: 0.5rem !important;
  }

  /* ── Listing detail: compact gallery so info is visible ── */
  .ldp-shell {
    padding: 0.75rem 1rem 5rem !important;
  }
  .ldp-main-photo-wrap {
    aspect-ratio: unset !important;
    height: 240px !important;
  }
  .ldp-gallery {
    margin-bottom: 1rem !important;
  }
  .ldp-thumbs {
    display: none !important;
  }
  .ldp-name {
    font-size: 1.35rem !important;
    margin-bottom: 0.25rem !important;
  }
  .ldp-price {
    font-size: 1.4rem !important;
    margin-bottom: 0.5rem !important;
  }
  .ldp-brand {
    font-size: 0.7rem !important;
    margin-bottom: 0.15rem !important;
  }
  .ldp-meta-row {
    gap: 0.35rem !important;
    margin-bottom: 0.6rem !important;
  }
  .ldp-actions {
    margin-bottom: 0.6rem !important;
  }
  .ldp-btn-full {
    padding: 0.7rem 1rem !important;
    font-size: 0.88rem !important;
  }
  .ldp-secondary-actions {
    gap: 0.4rem !important;
  }
  .ldp-secondary-actions .btn {
    padding: 0.5rem 0.6rem !important;
    font-size: 0.75rem !important;
  }
  .ldp-divider {
    margin: 0.6rem 0 !important;
  }
  .ldp-section {
    padding-top: 0 !important;
  }
  .ldp-section-title {
    font-size: 0.78rem !important;
    margin-bottom: 0.4rem !important;
  }

  /* ── Fragrance catalog / browse hero ── */
  .catalog-hero {
    padding: 1.5rem 1rem 1.25rem !important;
  }
  .catalog-hero-title {
    font-size: 1.6rem !important;
    margin-bottom: 0.25rem !important;
  }
  .catalog-hero-sub {
    font-size: 0.78rem !important;
    margin-bottom: 1rem !important;
  }
  .catalog-search-input {
    height: 42px !important;
    font-size: 0.88rem !important;
  }

  /* ── Dashboard: tighter tabs ── */
  .dash-tabs {
    gap: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 0 !important;
    scrollbar-width: none !important;
  }
  .dash-tabs::-webkit-scrollbar { display: none !important; }
  .dash-tab {
    padding: 0.55rem 0.75rem !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .dash-header {
    padding: 0.75rem 1rem 0 !important;
  }
  .dash-body {
    padding: 0.75rem 1rem 5rem !important;
  }

  /* ── Profile page ── */
  .profile-header {
    padding: 1.25rem 1rem !important;
  }
  .profile-avatar-wrap {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.4rem !important;
  }
  .profile-name {
    font-size: 1.2rem !important;
  }
  .profile-meta {
    font-size: 0.72rem !important;
  }
  .profile-stats {
    gap: 1rem !important;
    padding: 0.75rem 1rem !important;
  }
  .profile-stat-value {
    font-size: 1.1rem !important;
  }
  .profile-stat-label {
    font-size: 0.65rem !important;
  }

  /* ── Listings grid (browse) ── */
  .listings-grid,
  .listing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }

  /* ── Login / Signup forms ── */
  .auth-card {
    padding: 1.5rem 1.25rem !important;
  }
  .auth-title {
    font-size: 1.4rem !important;
    margin-bottom: 0.25rem !important;
  }
  .auth-sub {
    font-size: 0.78rem !important;
    margin-bottom: 1.25rem !important;
  }

  /* ── Settings page ── */
  .settings-page {
    padding: 1rem 0.85rem 5rem !important;
  }
  .settings-section {
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
  }
  .settings-section-title {
    font-size: 0.88rem !important;
    margin-bottom: 0.75rem !important;
  }

  /* ── FAQ / Static pages ── */
  .faq-hero,
  .static-hero {
    padding: 1.5rem 1rem !important;
  }

  /* ── Ensure bottom nav clears content ── */
  body {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
}
