/* =========================================================
   Pass It On — UCC Uniform & Book Exchange
   ========================================================= */

:root {
  --navy: #14284b;
  --navy-2: #1e3a6b;
  --navy-soft: #e8edf6;
  --accent: #2f7a4b;        /* "reuse" green */
  --accent-soft: #e3f1e8;
  --gold: #c99a2e;
  --bg: #f4f5f8;
  --surface: #ffffff;
  --text: #1b2230;
  --muted: #667085;
  --border: #e2e6ee;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.modal-open { overflow: hidden; }
main { flex: 1; width: 100%; outline: none; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons & form controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--navy-soft); color: var(--navy);
  transition: background .15s, box-shadow .15s, transform .05s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-2); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover:not(:disabled) { background: #276a40; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: #fff; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: #fbd9d5; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--navy-2); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; color: #344054; }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 10px 12px; border: 1px solid #cfd5e0; border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(30, 58, 107, .15); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; cursor: pointer; margin: 0; }
.check input { width: 16px; height: 16px; accent-color: var(--navy); }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 19px; }
.brand-text small { font-size: 11.5px; opacity: .75; letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { color: rgba(255,255,255,.85); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.1); color: #fff; }
.main-nav .btn-primary { background: #fff; color: var(--navy); }
.main-nav .btn-primary:hover { background: #eef2f8; }
.main-nav .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.main-nav .btn-ghost:hover { background: rgba(255,255,255,.1); }
.badge { background: #e5483b; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; min-width: 18px; text-align: center; }
.user-menu { position: relative; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--navy-2); flex-shrink: 0; }
.avatar-btn { border: 2px solid rgba(255,255,255,.4); background: var(--accent); cursor: pointer; padding: 0; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.menu { position: absolute; right: 0; top: 46px; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; z-index: 60; }
.menu-head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu-head strong { display: block; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none !important; }
.menu a:hover, .menu button:hover { background: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  margin: 24px 0 20px; border-radius: 18px; padding: 34px 36px 28px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #2c5b8f 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 40px solid rgba(255,255,255,.05); pointer-events: none;
}
.hero h1 { font-size: 34px; margin-bottom: 8px; max-width: 680px; }
.hero p { opacity: .85; max-width: 620px; font-size: 16px; }
.hero .form-actions { justify-content: flex-start; margin-top: 18px; position: relative; z-index: 1; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-search { display: flex; gap: 10px; max-width: 640px; margin-top: 18px; position: relative; z-index: 1; }
.hero-search input { border: 0; padding: 13px 16px 13px 44px; font-size: 16px; border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23667085' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center; }
.impact { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; position: relative; z-index: 1; }
.impact div { display: flex; flex-direction: column; }
.impact strong { font-size: 22px; font-family: var(--serif); }
.impact span { font-size: 12.5px; opacity: .75; }

/* ---------- Browse layout ---------- */
.browse { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; padding-bottom: 40px; }
.filters {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow: auto;
}
.filters h2 { font-family: var(--font); font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.filter-group { border-top: 1px solid var(--border); padding: 14px 0; }
.filter-group:first-of-type { border-top: 0; padding-top: 6px; }
.filter-group > .label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.filter-group .check { margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 12px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text);
}
.chip:hover { border-color: #b9c2d3; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  box-shadow: 0 0 0 1px #c9cfdb; padding: 0; position: relative;
}
.swatch.on { box-shadow: 0 0 0 2px var(--navy); }
.swatch.on::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.6); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { padding: 8px 10px; }

.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.results-head h2 { font-family: var(--font); font-size: 18px; margin: 0; }
.results-head select { width: auto; padding: 8px 12px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters .chip { background: var(--navy-soft); border-color: transparent; color: var(--navy); }
.active-filters .chip::after { content: " ×"; }
.filters-toggle { display: none; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,24,40,.12); }
.card-link { color: inherit; text-decoration: none !important; display: block; }
.card-img { aspect-ratio: 1 / 1; background: #eef1f6; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card.is-sold .card-img img { filter: grayscale(.7) opacity(.7); }
.sold-badge { position: absolute; left: 10px; top: 10px; background: var(--text); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; }
.cat-badge { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); color: var(--navy); font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.card-body { padding: 12px 14px 14px; }
.card-price { font-weight: 800; font-size: 17px; }
.card-price.free, .price.free { color: var(--accent); }
.card-title { font-family: var(--font); font-size: 14.5px; font-weight: 600; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.save-btn {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow); color: #98a2b3;
}
.save-btn:hover { color: #e5483b; }
.save-btn.on { color: #e5483b; }
.save-btn svg { width: 18px; height: 18px; }

.role { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); }
.role-Parent { background: #fdf2dc; color: #8a5a00; }
.role-Student { background: var(--navy-soft); color: var(--navy); }
.role-Old-Boy { background: var(--accent-soft); color: var(--accent); }
.role-Staff { background: #f0e7fb; color: #5b2a9a; }

.empty { background: var(--surface); border-radius: var(--radius); padding: 48px 24px; text-align: center; box-shadow: var(--shadow); }
.empty h3 { font-family: var(--serif); font-size: 20px; }

/* ---------- Listing detail ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 14px; font-weight: 600; }
.detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; padding-bottom: 32px; }
.gallery-main { background: #eef1f6; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #eef1f6; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button { width: 72px; height: 72px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #eef1f6; }
.thumbs button.on { border-color: var(--navy); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px; }
.detail .price { font-size: 28px; font-weight: 800; margin-bottom: 2px; }
.detail h1 { font-size: 26px; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { background: var(--bg); border-radius: 6px; padding: 4px 9px; font-size: 12.5px; font-weight: 600; color: #344054; }
.tag.green { background: var(--accent-soft); color: var(--accent); }
.tag.dark { background: var(--text); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.actions .btn { flex: 1 1 auto; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 38%; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.desc { white-space: pre-wrap; }
.seller { display: flex; gap: 12px; align-items: center; }
.contact-box { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 14px; font-size: 14px; }
.contact-box.locked { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.owner-bar { background: #fff8e6; border: 1px solid #f3dca4; border-radius: var(--radius); padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-family: var(--serif); font-size: 22px; margin: 12px 0 14px; }

/* ---------- Sell form ---------- */
.form-page { max-width: 820px; margin: 0 auto; padding: 24px 0 40px; }
.form-page h1 { font-size: 30px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { flex: 1 1 120px; padding: 14px 10px; border: 2px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; font: inherit; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text); }
.seg button span { font-size: 22px; }
.seg button small { font-weight: 500; color: var(--muted); font-size: 12px; }
.seg button.on { border-color: var(--navy); background: var(--navy-soft); }
.photo-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-tile { width: 110px; height: 110px; border-radius: 10px; overflow: hidden; position: relative; background: #eef1f6; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile button { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.photo-tile .cover { position: absolute; left: 5px; bottom: 5px; background: rgba(0,0,0,.65); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.photo-add { width: 110px; height: 110px; border-radius: 10px; border: 2px dashed #c3cad8; display: grid; place-items: center; text-align: center; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; background: #fff; }
.photo-add:hover { border-color: var(--navy-2); color: var(--navy-2); }
.photo-add input { display: none; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ---------- Messages ---------- */
.messages-page { padding: 20px 0 32px; }
.messages-layout {
  display: grid; grid-template-columns: 320px 1fr; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; height: calc(100vh - 150px); min-height: 480px;
}
.convo-list { border-right: 1px solid var(--border); overflow-y: auto; }
.convo-list h2 { font-family: var(--font); font-size: 18px; padding: 16px 16px 10px; margin: 0; }
.convo { display: flex; gap: 10px; padding: 12px 16px; color: inherit; text-decoration: none !important; border-left: 3px solid transparent; align-items: center; }
.convo:hover { background: var(--bg); }
.convo.active { background: var(--navy-soft); border-left-color: var(--navy); }
.convo img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #eef1f6; }
.convo-main { flex: 1; min-width: 0; }
.convo-top { display: flex; justify-content: space-between; gap: 6px; }
.convo-top strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-top time { font-size: 11.5px; color: var(--muted); flex-shrink: 0; }
.convo-item { font-size: 12.5px; color: var(--navy-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-preview { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo.unread .convo-preview { color: var(--text); font-weight: 700; }
.dot { width: 9px; height: 9px; background: #e5483b; border-radius: 50%; flex-shrink: 0; }

.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread-head { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.thread-head img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #eef1f6; }
.thread-head .grow { flex: 1; min-width: 0; }
.thread-head .grow a { font-weight: 700; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-back { display: none; }
.thread-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: #fafbfc; }
.day-sep { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.bubble-row { display: flex; }
.bubble-row.me { justify-content: flex-end; }
.bubble { max-width: 70%; padding: 9px 13px; border-radius: 16px; background: #fff; border: 1px solid var(--border); white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; }
.bubble-row.me .bubble { background: var(--navy); color: #fff; border-color: var(--navy); border-bottom-right-radius: 5px; }
.bubble-row.them .bubble { border-bottom-left-radius: 5px; }
.bubble time { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; text-align: right; }
.composer { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); align-items: flex-end; }
.composer textarea { min-height: 44px; max-height: 140px; border-radius: 22px; padding: 11px 16px; resize: none; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px 0; }
.quick .chip { font-size: 12.5px; }
.thread-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; }

/* ---------- Account ---------- */
.account-head { display: flex; align-items: center; gap: 16px; margin: 24px 0 18px; }
.account-head h1 { margin: 0; font-size: 28px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none !important; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--navy); }
.my-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 32px; }
.my-row { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.my-row img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #eef1f6; }
.my-row .grow { flex: 1; min-width: 0; }
.my-row .grow a { font-weight: 700; color: var(--text); }
.my-row .btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow: auto; padding: 26px; position: relative; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.modal.wide { max-width: 560px; }
.modal h2 { font-size: 24px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; font-size: 20px; line-height: 1; color: var(--muted); }
.auth-tabs { display: flex; background: var(--bg); border-radius: 999px; padding: 4px; margin: 4px 0 18px; }
.auth-tabs button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; color: var(--muted); }
.auth-tabs button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.form-error { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13.5px; margin-bottom: 14px; }
.demo-hint { background: var(--navy-soft); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12.5px; margin-top: 14px; color: var(--navy); }
.demo-hint button { font-size: 12.5px; }
.pay-summary { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: var(--radius-sm); padding: 10px; margin: 12px 0; }
.pay-summary img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.placeholder-note { border: 2px dashed #c3cad8; border-radius: var(--radius-sm); padding: 12px; font-size: 13.5px; color: #344054; margin: 12px 0; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; animation: pop .2s ease; }
.toast.success { background: var(--accent); }
.toast.error { background: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: #fff; margin-top: 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 20px; font-size: 13.5px; flex-wrap: wrap; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .detail { grid-template-columns: 1fr; }
  .messages-layout { grid-template-columns: 1fr; }
  .messages-layout.has-thread .convo-list { display: none; }
  .messages-layout:not(.has-thread) .thread { display: none; }
  .thread-back { display: inline-flex; }
  .hero { padding: 26px 22px; }
  .hero h1 { font-size: 26px; }
}
@media (max-width: 640px) {
  .brand-text small { display: none; }
  .main-nav .nav-link.browse-link { display: none; }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .my-row { flex-wrap: wrap; }
  .sell-label { display: none; }
}

/* ---------- v2: notifications, requests, cascading fields ---------- */
select:disabled { background: #f2f4f7; color: #98a2b3; cursor: not-allowed; }
.opt { font-weight: 400; color: var(--muted); }
.green-text { color: var(--accent); }
.seg button { flex: 1 1 110px; }
.hero-link { display: inline-block; margin-top: 12px; color: #fff; opacity: .85; font-size: 14px; font-weight: 600; position: relative; z-index: 1; }
.hero-link:hover { opacity: 1; }
.results-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-group .hint { margin-top: 6px; }

.notif-menu { position: relative; }
.nav-icon { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: rgba(255,255,255,.85); cursor: pointer; display: grid; place-items: center; }
.nav-icon:hover, .nav-icon.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-icon .badge { position: absolute; top: 0; right: -2px; }
.notif-panel { width: 360px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.menu a.notif, .notif { display: flex; gap: 10px; align-items: center; padding: 10px 14px; color: var(--text); text-decoration: none !important; border-radius: 0; }
.notif img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #eef1f6; flex-shrink: 0; }
.notif .grow { flex: 1; min-width: 0; }
.notif-title { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif.unread { background: #f1f6ff; }
.notif:hover { background: var(--bg); }
.menu a.notif-foot { display: block; text-align: center; padding: 11px; border-top: 1px solid var(--border); font-weight: 600; color: var(--navy-2); border-radius: 0; }
.notif-list { padding: 6px 0; }
.notif-list .notif { border-bottom: 1px solid var(--border); }
.notif-list .notif:last-child { border-bottom: 0; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 24px 0 8px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; margin-bottom: 4px; }
.page-head p { margin: 0; }
.requests-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; padding-bottom: 32px; }
.section-title .link-btn { font-family: var(--font); font-size: 13px; margin-left: 8px; vertical-align: middle; }
.my-row.paused { opacity: .6; }
@media (max-width: 900px) { .requests-layout { grid-template-columns: 1fr; } }
.menu .notif-head .link-btn { display: inline; width: auto; padding: 0; color: var(--navy-2); text-decoration: underline; background: none; }
