/* ============================================================
   FEDAMARKT — Feather & Down Trading Marketplace (fedamarkt.com)
   Design system: minimal European B2B, white / black / light yellow
   ============================================================ */

:root {
  --black: #111111;
  --white: #FFFFFF;
  --yellow: #F4D65B;
  --yellow-pale: #FFF5C7;
  --border: #E6E6DF;
  --page: #F7F7F3;
  --grey-50: #FAFAF7;
  --grey-100: #F0F0EA;
  --grey-200: #E6E6DF;
  --grey-300: #D8D8CF;
  --grey-500: #6B6B63;
  --grey-600: #55554E;
  --green: #2E7D4F;
  --green-bg: #E9F5EE;
  --red: #B23B3B;
  --red-bg: #FBEBEB;
  --blue: #2D5F8A;
  --blue-bg: #E9F1F8;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 2px 10px rgba(17, 17, 17, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--page);
  color: var(--black);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.page-loading { padding: 80px 24px; text-align: center; color: var(--grey-500); font-size: 16px; }
.muted { color: var(--grey-500); }
.small { font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 9px;
  padding: 10px 18px; font-size: 15px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #2A2A2A; }
.btn-secondary { background: var(--white); color: var(--black); border-color: var(--grey-300); }
.btn-secondary:hover { border-color: var(--black); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: #EFCE41; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--grey-600); padding: 8px 12px; }
.btn-ghost:hover { background: var(--grey-100); color: var(--black); }
.btn-danger { background: var(--white); color: var(--red); border-color: var(--grey-300); }
.btn-danger:hover { border-color: var(--red); background: var(--red-bg); }
.btn-sm { padding: 7px 12px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 16.5px; border-radius: 10px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--grey-300); border-radius: 8px;
  padding: 7px 11px; font-size: 13px; font-weight: 600; color: var(--grey-600);
}
.icon-btn:hover { border-color: var(--black); color: var(--black); }
.icon-btn.saved { background: var(--yellow-pale); border-color: var(--yellow); color: var(--black); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent;
}
.badge-buy { background: var(--black); color: var(--white); }
.badge-sell { background: var(--yellow); color: var(--black); }
.badge-yellow { background: var(--yellow-pale); color: var(--black); border-color: #EFD98A; }
.badge-outline { background: var(--white); color: var(--grey-600); border-color: var(--grey-200); }
.badge-live { background: var(--green-bg); color: var(--green); border-color: #CBE6D5; }
.badge-draft { background: var(--grey-100); color: var(--grey-600); border-color: var(--grey-200); }
.badge-paused { background: var(--yellow-pale); color: #8A6D00; border-color: #EFD98A; }
.badge-expired { background: var(--red-bg); color: var(--red); border-color: #F1CBCB; }
.badge-ver { background: var(--green-bg); color: var(--green); border-color: #CBE6D5; text-transform: none; letter-spacing: 0; font-size: 12px; }
.badge-blue { background: var(--blue-bg); color: var(--blue); border-color: #CDDDEB; }
.cert-chip {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  background: var(--yellow-pale); border: 1px solid #EFD98A;
  font-size: 11.5px; font-weight: 600;
}
.chip { display: inline-block; padding: 2px 8px; border-radius: 5px; background: var(--grey-100); border: 1px solid var(--grey-200); font-size: 11.5px; font-weight: 600; color: var(--grey-600); }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; gap: 26px;
}
.logo { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: var(--black); }
.logo span { color: var(--grey-500); font-weight: 600; font-size: 12px; margin-left: 7px; letter-spacing: .02em; }
nav.main-nav { display: flex; gap: 4px; margin-right: auto; }
.nav-link {
  padding: 8px 13px; border-radius: 8px; font-size: 14.5px; font-weight: 600;
  color: var(--grey-600);
}
.nav-link:hover { color: var(--black); background: var(--grey-100); }
.nav-link.active { background: var(--yellow); color: var(--black); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.msg-dot { position: relative; }
.msg-dot .dot {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--yellow); border: 1.5px solid var(--white); border-radius: 999px;
  font-size: 10.5px; font-weight: 700; color: var(--black);
  display: flex; align-items: center; justify-content: center;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  border: none; flex-shrink: 0;
}
.user-wrap { position: relative; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px; z-index: 60;
}
.user-menu .um-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-menu .um-head strong { display: block; font-size: 14px; }
.user-menu button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--black);
}
.user-menu button:hover { background: var(--grey-100); }
.user-menu button.danger { color: var(--red); }
.menu-toggle { display: none; background: none; border: 1px solid var(--grey-300); border-radius: 8px; padding: 7px 10px; font-weight: 600; font-size: 13.5px; }

/* ---------- Page scaffolding ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: 30px 24px 70px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.page-sub { color: var(--grey-500); font-size: 16px; margin-top: 6px; }
.section-title { font-size: 21px; font-weight: 800; margin: 0 0 6px; }
.section-sub { color: var(--grey-500); font-size: 14.5px; margin: 0 0 16px; }
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 36px; }
.auth-card.wide { max-width: 560px; }
.auth-logo { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.auth-sub { color: var(--grey-500); font-size: 14.5px; margin-bottom: 26px; }
.auth-alt { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--grey-500); text-align: center; }
.auth-alt a, .link { color: var(--black); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-demo {
  margin-top: 18px; padding: 12px 14px; border-radius: 10px;
  background: var(--grey-50); border: 1px dashed var(--grey-300);
  font-size: 13px; color: var(--grey-600);
}
.auth-demo b { color: var(--black); }
.auth-demo a { color: var(--black); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: 8px; margin-bottom: 26px; }
.step { flex: 1; height: 5px; border-radius: 4px; background: var(--grey-200); }
.step.done { background: var(--black); }
.step.now { background: var(--yellow); }
.step-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--grey-500); margin-bottom: 22px; }
.step-labels span.on { color: var(--black); font-weight: 700; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field label .opt { color: var(--grey-500); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--grey-300); border-radius: 9px;
  background: var(--white); color: var(--black); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus { border-color: var(--black); box-shadow: 0 0 0 3px var(--yellow-pale); }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.5; }
select.input { appearance: auto; }
.input-inline { display: flex; gap: 8px; }
.input-inline > *:first-child { flex: 1; }
.hint { font-size: 12.5px; color: var(--grey-500); margin-top: 5px; }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { display: inline-flex; }
.check-pill input { position: absolute; opacity: 0; pointer-events: none; }
.check-pill span {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--grey-300); background: var(--white);
  font-size: 13.5px; font-weight: 600; color: var(--grey-600); cursor: pointer; user-select: none;
}
.check-pill input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.check-pill input:focus-visible + span { box-shadow: 0 0 0 3px var(--yellow-pale); }
.radio-col { display: flex; flex-direction: column; gap: 8px; }
.radio-opt {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--grey-300); border-radius: 10px; cursor: pointer; background: var(--white);
}
.radio-opt:hover { border-color: var(--black); }
.radio-opt input { margin-top: 3px; accent-color: var(--black); }
.radio-opt input:checked ~ .ro-body b { }
.radio-opt.selected { border-color: var(--black); background: var(--grey-50); box-shadow: inset 0 0 0 1px var(--black); }
.ro-body b { display: block; font-size: 14.5px; }
.ro-body span { font-size: 13px; color: var(--grey-500); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 26px; flex-wrap: wrap; }
.form-error { background: var(--red-bg); border: 1px solid #F1CBCB; color: var(--red); padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.upload-drop {
  border: 1.5px dashed var(--grey-300); border-radius: 12px; background: var(--grey-50);
  padding: 22px 16px; text-align: center; cursor: pointer; transition: border-color .15s ease;
}
.upload-drop:hover { border-color: var(--black); }
.upload-drop b { display: block; font-size: 14px; }
.upload-drop span { font-size: 12.5px; color: var(--grey-500); }
.upload-row { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; margin-top: 8px; font-size: 13.5px; }
.upload-row .fmeta { color: var(--grey-500); font-size: 12px; }
.upload-row button { margin-left: auto; }

/* ---------- Cards (choice / company types) ---------- */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 6px; }
.choice-card {
  text-align: left; background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; transition: border-color .15s ease, box-shadow .15s ease;
}
.choice-card:hover { border-color: var(--black); box-shadow: var(--shadow-md); }
.choice-card .cc-emoji { font-size: 26px; margin-bottom: 10px; }
.choice-card b { display: block; font-size: 17px; margin-bottom: 5px; }
.choice-card p { color: var(--grey-500); font-size: 13.5px; margin-bottom: 14px; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-opt {
  text-align: left; padding: 12px 13px; border-radius: 10px; border: 1px solid var(--grey-300);
  background: var(--white); font-size: 13.5px; font-weight: 600; color: var(--grey-600);
}
.type-opt:hover { border-color: var(--black); color: var(--black); }
.type-opt.selected { background: var(--yellow-pale); border-color: var(--yellow); color: var(--black); box-shadow: inset 0 0 0 1px var(--yellow); }

/* ---------- Marketplace: filter bar ---------- */
.filter-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.filter-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1 1 260px; min-width: 220px; }
.search-wrap .input { padding-left: 36px; }
.search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--grey-500); font-size: 15px; pointer-events: none; }
.filter-row select.input { width: auto; min-width: 128px; flex: 0 1 auto; }
.filter-extras { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-extras .fe-label { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--grey-500); margin-right: 2px; }
.results-count { font-size: 13.5px; color: var(--grey-500); margin: 0 0 14px; }
.empty-state {
  background: var(--white); border: 1px dashed var(--grey-300); border-radius: var(--radius);
  padding: 56px 24px; text-align: center; color: var(--grey-500); font-size: 15px;
}
.empty-state b { display: block; color: var(--black); font-size: 17px; margin-bottom: 6px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--grey-300);
  background: var(--white); font-size: 14.5px; font-weight: 600; color: var(--grey-600);
}
.tab:hover { border-color: var(--black); color: var(--black); }
.tab.active { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.tab-count { font-weight: 700; opacity: .75; margin-left: 5px; font-size: 13px; }

/* ---------- Listing cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lcard {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lcard:hover { border-color: var(--grey-300); box-shadow: 0 2px 8px rgba(17, 17, 17, 0.05); }
.lcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 0; }
.lcard-media { display: block; aspect-ratio: 4 / 3; width: 100%; overflow: hidden; background: var(--grey-100); }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; }
.lcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lcard h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; }
.lcard-byline { font-size: 13.5px; color: var(--grey-500); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 5.5px 0; font-size: 13.5px; vertical-align: top; border-bottom: 1px dashed var(--border); }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--grey-500); width: 46%; padding-right: 10px; }
.spec-table td:last-child { font-weight: 600; }
.cert-row { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-row { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.footer-row .btn { flex: 1; }
.deadline-note { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--grey-500); }
.deadline-note b { color: var(--black); font-weight: 600; }

/* ---------- Detail pages ---------- */
.detail-wrap { display: grid; grid-template-columns: 460px 1fr; gap: 28px; align-items: start; margin-top: 6px; }
.detail-main { display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.panel h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.panel .muted-p { color: var(--grey-600); font-size: 14.5px; line-height: 1.6; white-space: pre-line; }
.detail-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 4px; }
.detail-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dprice { font-size: 24px; font-weight: 800; }
.dprice .unit { font-size: 14px; color: var(--grey-500); font-weight: 600; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-actions .btn { flex: 1 1 auto; }

/* gallery */
.gallery-main { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background: var(--grey-100); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: var(--grey-100); aspect-ratio: 4 / 3; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.active { border-color: var(--black); }
.gallery-ph { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px dashed var(--grey-300); background: var(--grey-50); display: flex; align-items: center; justify-content: center; color: var(--grey-500); font-size: 15px; font-weight: 600; text-align: center; padding: 20px; }

/* ---------- Locked seller-access panel ---------- */
.locked-panel {
  background: var(--grey-50); border: 1.5px dashed var(--grey-300); border-radius: var(--radius);
  padding: 24px 26px; text-align: left;
}
.locked-panel .lp-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.locked-panel .lp-desc { color: var(--grey-600); font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
.locked-panel ul { margin: 0 0 18px; padding: 0; list-style: none; }
.locked-panel li { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 14px; color: var(--grey-600); }
.locked-panel li::before { content: "🔒"; font-size: 13px; }
.lp-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-note { font-size: 12.5px; color: var(--grey-500); }
.buyer-anon {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  background: var(--white); border: 1px solid var(--border); border-radius: 11px; margin-bottom: 12px;
}
.buyer-anon .ba-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--grey-100); border: 1px solid var(--grey-200); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.buyer-anon b { display: block; font-size: 14.5px; }
.buyer-anon span { font-size: 12.5px; color: var(--grey-500); }
.buyer-open { display: flex; gap: 13px; align-items: flex-start; }
.buyer-open .bo-main b { display: block; font-size: 15px; }
.buyer-open .bo-main span { display: block; font-size: 13px; color: var(--grey-500); margin-bottom: 6px; }

/* ---------- Table (My Listings) ---------- */
.table-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.listings { width: 100%; border-collapse: collapse; min-width: 860px; }
table.listings th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--grey-500); font-weight: 700; padding: 12px 16px; background: var(--grey-50);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.listings td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
table.listings tr:last-child td { border-bottom: none; }
table.listings tr:hover td { background: var(--grey-50); }
.t-title { font-weight: 700; }
.t-sub { font-size: 12.5px; color: var(--grey-500); margin-top: 1px; }
.t-num { font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-btn {
  padding: 5px 9px; font-size: 12px; font-weight: 600; border-radius: 6px;
  background: var(--white); border: 1px solid var(--grey-300); color: var(--grey-600);
}
.mini-btn:hover { border-color: var(--black); color: var(--black); }
.mini-btn.danger:hover { border-color: var(--red); color: var(--red); }

/* ---------- Messages ---------- */
.inbox { display: grid; grid-template-columns: 330px 1fr; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 560px; }
.convo-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.convo-head { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.convo-items { overflow-y: auto; flex: 1; }
.convo-item {
  width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--border);
  padding: 14px 18px; display: block;
}
.convo-item:hover { background: var(--grey-50); }
.convo-item.active { background: var(--yellow-pale); box-shadow: inset 3px 0 0 var(--yellow); }
.ci-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ci-name { font-weight: 700; font-size: 14.5px; }
.ci-time { font-size: 12px; color: var(--grey-500); white-space: nowrap; }
.ci-listing { font-size: 12.5px; color: var(--grey-500); margin-top: 2px; }
.ci-snippet { font-size: 13px; color: var(--grey-600); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-unread { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); border: 1px solid #D9B93A; display: inline-block; margin-right: 6px; }
.chat-pane { display: flex; flex-direction: column; }
.chat-head { padding: 14px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chat-context { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--grey-500); }
.chat-context b { color: var(--black); }
.chat-context .ctx-badge { flex-shrink: 0; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: var(--grey-50); }
.msg { max-width: 66%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-line; }
.msg time { display: block; font-size: 11px; margin-top: 4px; opacity: .65; }
.msg-in { background: var(--white); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-out { background: var(--black); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-out time { color: #CFCFC8; }
.chat-input { border-top: 1px solid var(--border); padding: 14px 18px; display: flex; gap: 10px; background: var(--white); }
.chat-input input { flex: 1; }
.chat-attach {
  width: 44px; height: 44px; border-radius: 9px; border: 1px solid var(--grey-300);
  background: var(--white); font-size: 17px; color: var(--grey-500); flex-shrink: 0;
}
.chat-attach:hover { border-color: var(--black); color: var(--black); }

/* ---------- Profile / verification ---------- */
.profile-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.logo-drop { display: flex; align-items: center; gap: 16px; }
.logo-preview {
  width: 72px; height: 72px; border-radius: 14px; border: 1px solid var(--grey-300);
  background: var(--grey-50); display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: var(--grey-500); overflow: hidden; flex-shrink: 0;
}
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.v-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.v-item:last-of-type { border-bottom: none; }
.v-item .v-body { flex: 1; }
.v-item .v-body b { display: block; font-size: 14px; }
.v-item .v-body span { font-size: 12.5px; color: var(--grey-500); }
.v-status { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.v-not { background: var(--grey-100); color: var(--grey-500); border: 1px solid var(--grey-200); }
.v-pending { background: var(--yellow-pale); color: #8A6D00; border: 1px solid #EFD98A; }
.v-verified { background: var(--green-bg); color: var(--green); border: 1px solid #CBE6D5; }
.v-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.v-banner {
  display: flex; align-items: center; gap: 12px; background: var(--yellow-pale);
  border: 1px solid #EFD98A; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px;
  font-size: 14px;
}
.v-banner b { font-size: 14.5px; }
.v-banner .btn { margin-left: auto; }
.doc-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.doc-list .upload-row { margin-top: 0; }

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(17, 17, 17, 0.45);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal {
  background: var(--white); border-radius: 16px; padding: 26px 28px; width: 100%; max-width: 460px;
  box-shadow: 0 20px 60px rgba(17,17,17,.25);
}
.modal h3 { font-size: 18px; margin-bottom: 8px; }
.modal p { color: var(--grey-600); font-size: 14.5px; line-height: 1.55; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Toasts ---------- */
#toast-root { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--black); color: var(--white); padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-md);
  animation: toast-in .18s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Utility ---------- */
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--grey-500); margin-bottom: 14px; background: none; border: none; padding: 0; }
.back-link:hover { color: var(--black); }

/* ---------- Logo ---------- */
.logo img { display: block; height: 30px; width: auto; max-width: 220px; object-fit: contain; }

/* ---------- Access notice (locked buyer contact) ---------- */
.access-note {
  font-size: 12.5px; color: var(--grey-500); background: var(--grey-50);
  border: 1px dashed var(--grey-300); border-radius: 8px; padding: 8px 11px;
}

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 22px 24px 34px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--border); font-size: 13px; color: var(--grey-500);
}
.footer a { font-weight: 600; color: var(--grey-600); }
.footer a:hover { color: var(--black); }
.footer .foot-brand { margin-left: auto; }

/* Mobile/tablet CTA inside the hamburger menu (hidden on desktop) */
.nav-cta-mobile { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-cta-mobile { display: inline-flex; margin: 8px 4px 2px; justify-content: center; }
  .footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer .foot-brand { margin-left: 0; }
  nav.main-nav {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 10px 16px 16px; gap: 4px;
    box-shadow: var(--shadow-md);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav .nav-link { padding: 12px 14px; font-size: 16px; }
  .header-actions .hide-m { display: none; }
  .header-inner { padding: 0 16px; gap: 12px; }
  .inbox { grid-template-columns: 1fr; }
  .convo-list { border-right: none; border-bottom: 1px solid var(--border); max-height: 240px; }
  .page { padding: 22px 16px 60px; }
  .page-title { font-size: 26px; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .logo img { height: 24px; max-width: 180px; }
  .form-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 26px 22px; }
  .filter-row select.input { flex: 1 1 40%; }
  .page-head { flex-direction: column; }
  .page-head .btn { width: 100%; }
  .detail-head h1 { font-size: 22px; }
  .msg { max-width: 85%; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .footer-row { flex-direction: column; }
  .v-banner { flex-wrap: wrap; }
  .v-banner .btn { margin-left: 0; width: 100%; }
}
