/* ============================================================
   GoneLot — design system
   Direction: vintage auction poster, modernized. Warm paper
   ground, midnight-navy ink brand, vermilion urgency, brass
   accents, serif display type for prices & headings, sans for
   UI. See docs/BRAND.md for the rationale.
   (Note: the --green token family carries the BRAND color —
   navy since the GoneLot rebrand; the name is historical.)
   ============================================================ */

:root {
  /* ground */
  --bg: #f5f2ec;            /* warm paper */
  --surface: #fffdf9;
  --surface-2: #faf7f1;
  --ink: #211d15;
  --muted: #6f6757;
  --line: #e5decf;

  /* brand */
  --green: #1c2440;         /* midnight navy ink (brand primary) */
  --green-2: #2c3a63;
  --green-soft: #e9ecf4;
  --brass: #a4761b;         /* the hammer */
  --brass-soft: #f6ecd7;

  /* action + status */
  --bid: #cf4a1f;           /* vermilion — place bid / urgency */
  --bid-dark: #b23c15;
  --win: #1c7a4c;
  --lose: #c22f3a;

  /* type */
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(33, 29, 21, .05), 0 10px 28px -14px rgba(33, 29, 21, .14);
  --shadow-lift: 0 2px 4px rgba(33, 29, 21, .06), 0 18px 38px -14px rgba(33, 29, 21, .22);
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
main.container { flex: 1; padding-block: 22px 60px; }

a { color: var(--green-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

h1, h2 { font-family: var(--serif); letter-spacing: -.01em; }

/* ===== Header ===== */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(33, 29, 21, .02);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  padding-block: 12px; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: baseline; gap: 7px;
  color: var(--ink); font-family: var(--serif);
  font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }
.logo-mark { font-size: 1.15rem; transform: rotate(-8deg); }
.logo-word em { font-style: italic; color: var(--brass); }

.search-form {
  flex: 1; min-width: 220px; display: flex;
  border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden;
  background: var(--surface-2);
  transition: border-color .15s, background .15s;
}
.search-form:focus-within { border-color: var(--green-2); background: #fff; }
.search-form input {
  flex: 1; border: 0; outline: 0; padding: 9px 18px;
  font-size: .95rem; font-family: inherit; background: transparent; color: var(--ink);
}
.search-form button {
  border: 0; background: var(--green); color: #f5f2ec; padding: 0 22px;
  font-weight: 600; cursor: pointer; font-size: .88rem; font-family: inherit;
}
.search-form button:hover { background: var(--green-2); }

.main-nav { display: flex; align-items: center; gap: 16px; font-size: .93rem; }
.main-nav > a { color: var(--ink); font-weight: 500; }
.nav-sell { color: var(--bid) !important; font-weight: 700 !important; }
.nav-admin { color: var(--brass) !important; font-weight: 600 !important; }
.nav-icon { position: relative; font-size: 1.05rem; }
.badge-dot {
  position: absolute; top: -7px; right: -10px;
  background: var(--bid); color: #fff; font-size: .65rem; font-weight: 700;
  border-radius: 999px; padding: 1px 5px; min-width: 16px; text-align: center;
}

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: hsl(var(--hue, 145), 40%, 34%);
  color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem;
}
.avatar:hover { text-decoration: none; filter: brightness(1.12); }
.avatar-lg { width: 72px; height: 72px; font-size: 2rem; }

.inline-form { display: inline; }
.link-btn {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: .93rem; font-family: inherit; padding: 0;
}
.link-btn:hover { color: var(--ink); text-decoration: underline; }
.link-btn.danger { color: var(--lose); }

/* ===== Flash ===== */

.flash {
  margin-top: 16px; padding: 12px 18px; border-radius: var(--radius);
  font-weight: 500; border: 1px solid;
}
.flash-success { background: #eaf5ec; border-color: #bfdec7; color: #14532d; }
.flash-error { background: #fbeeec; border-color: #eec5bf; color: #8f2318; }
.flash-info { background: var(--brass-soft); border-color: #e4d3ab; color: #6c4d0e; }

/* ===== Buttons ===== */

.btn {
  display: inline-block; border: 0; border-radius: 9px; cursor: pointer;
  font-weight: 650; font-size: .93rem; font-family: inherit;
  padding: 10px 22px; text-align: center; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #f5f2ec; }
.btn-primary:hover { background: var(--green-2); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green); color: #f5f2ec; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); width: 100%; }
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.btn-bid { background: var(--bid); color: #fff; }
.btn-bid:hover { background: var(--bid-dark); }
.btn-buynow {
  background: linear-gradient(135deg, #c2933a, var(--brass)); color: #fff; width: 100%;
  font-size: .98rem; padding: 12px;
}
.btn-sm { padding: 7px 16px; font-size: .84rem; }
.btn-lg { padding: 14px 32px; font-size: 1.02rem; }
.btn-block { display: block; width: 100%; }

/* ===== Hero (search-first, compact) ===== */

.hero {
  background:
    radial-gradient(90rem 30rem at 85% -30%, rgba(207, 74, 31, .32), transparent 55%),
    linear-gradient(150deg, rgba(8, 12, 28, .60), transparent 60%),
    var(--green);
  color: #f2efe6;
  border-radius: 20px;
  padding: 44px 48px 38px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-lift);
}
.hero-kicker {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .22em;
  color: #cbb87a; font-weight: 600; margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08;
  color: #fbf8ef; font-weight: 700;
}
.hero-sub { margin-top: 12px; max-width: 560px; opacity: .82; font-size: .98rem; }

.hero-search {
  display: flex; margin-top: 24px; max-width: 640px;
  background: #fffdf9; border-radius: 999px; overflow: hidden;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
}
.hero-search input {
  flex: 1; border: 0; outline: 0; padding: 15px 24px; min-width: 0;
  font-size: 1rem; font-family: inherit; color: var(--ink); background: transparent;
}
.hero-search button {
  border: 0; background: var(--bid); color: #fff; padding: 0 28px;
  font-weight: 700; font-size: .95rem; cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.hero-search button:hover { background: var(--bid-dark); }

.hero-stats { display: flex; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--serif); font-size: 1.45rem; color: #fbf8ef; }
.hero-stats span { font-size: .78rem; opacity: .72; }
.hero-stat-sep { width: 1px; height: 30px; background: rgba(242, 239, 230, .25); }

/* ===== Category strip ===== */

.cat-strip {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 26px;
  scrollbar-width: thin;
}
.cat-chip {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; color: var(--ink); font-weight: 550; font-size: .87rem;
  transition: border-color .15s, color .15s, transform .15s;
}
.cat-chip:hover { border-color: var(--brass); color: var(--brass); text-decoration: none; transform: translateY(-1px); }

/* ===== Sections & cards ===== */

.section { margin-bottom: 38px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: 1.35rem; }
.section-head a { font-size: .88rem; font-weight: 600; }

.card-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
}

.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s; border: 1px solid var(--line);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); text-decoration: none; }

.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-img-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; font-size: 3.2rem;
  background: linear-gradient(135deg, #efe9dc, #f8f4ec);
}
.card-img-placeholder.sm { font-size: 1.6rem; }
.card-time {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(24, 21, 14, .82); color: #e8c86c; font-weight: 700; font-size: .73rem;
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
  font-variant-numeric: tabular-nums;
}
.card-time.urgent { background: var(--bid); color: #fff; }
.card-sold { color: #8fe3b4; }
.card-ended { color: #ccc; }

.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.card-title {
  font-size: .93rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.55em;
}
.card-price { display: flex; align-items: baseline; gap: 8px; }
.card-price strong { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.01em; }
.card-bids { color: var(--muted); font-size: .79rem; }
.card-buynow { color: var(--brass); font-size: .79rem; font-weight: 700; }
.card-seller { color: var(--muted); font-size: .77rem; }

/* ===== Browse ===== */

.browse-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.browse-head h1 { font-size: 1.65rem; }
.filter-bar { display: flex; gap: 10px; }
.filter-bar select {
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px;
  font-family: inherit; font-size: .89rem; background: var(--surface); color: var(--ink); cursor: pointer;
}

/* ===== Listing page ===== */

.listing-layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-bottom: 42px;
  align-items: start;
}
@media (max-width: 900px) { .listing-layout { grid-template-columns: 1fr; } }

.listing-panel { position: sticky; top: 80px; }
@media (max-width: 900px) { .listing-panel { position: static; } }

.gallery-main {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-placeholder { font-size: 6rem; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery-thumbs img {
  width: 68px; height: 68px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; opacity: .7; transition: border-color .15s, opacity .15s;
}
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--brass); opacity: 1; }

.listing-desc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin-top: 18px;
}
.listing-desc h2 { font-size: 1.1rem; margin-bottom: 10px; }
.prewrap { white-space: pre-wrap; }
.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 18px; }
.spec-list dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.spec-list dd { font-weight: 600; }

.crumb { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--green-2); }

.listing-title { font-family: var(--serif); font-size: 1.55rem; line-height: 1.22; letter-spacing: -.01em; }
.listing-seller { color: var(--muted); font-size: .9rem; margin: 6px 0 16px; }

.bid-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.bid-current { display: flex; flex-direction: column; }
.bid-label { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.bid-current strong {
  font-family: var(--serif); font-size: 2.3rem; letter-spacing: -.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.bid-count { color: var(--muted); font-size: .85rem; }
.bid-timer {
  background: var(--brass-soft); border: 1px solid #e6d5ac; color: #6c4d0e;
  padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.bid-timer .urgent { color: var(--bid); }
.bid-input-row { display: flex; gap: 8px; }
.bid-input-row input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 14px;
  font-size: 1rem; font-family: inherit; outline: none; min-width: 0;
  background: #fff; color: var(--ink);
}
.bid-input-row input:focus { border-color: var(--bid); }
.bid-hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.seller-note { color: var(--muted); font-size: .9rem; }

.result-banner {
  padding: 14px 16px; border-radius: 9px; background: var(--surface-2); font-size: .96rem;
}
.result-sold { background: #eaf5ec; color: #14532d; }

.bid-history { margin-top: 20px; }
.bid-history h3, .contact-seller h3 { font-family: var(--serif); font-size: 1.02rem; margin-bottom: 8px; }
.bid-history ul { list-style: none; }
.bid-history li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 8px 12px; border-radius: 8px; font-size: .9rem;
}
.bid-history li:nth-child(odd) { background: var(--surface); }
.bid-history li.top-bid { background: #eaf5ec; font-weight: 600; }
.bid-history li strong { font-variant-numeric: tabular-nums; }
.bid-history li em { color: var(--muted); font-style: normal; font-size: .77rem; }
.bid-history .no-bids { color: var(--muted); }

.contact-seller { margin-top: 20px; }
.contact-seller textarea, .chat-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px;
  font-family: inherit; font-size: .92rem; resize: vertical; margin-bottom: 8px;
  background: #fff; color: var(--ink);
}

/* ===== Forms ===== */

.form-page {
  max-width: 440px; margin: 30px auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 34px 36px; box-shadow: var(--shadow);
}
.form-page-wide { max-width: 720px; }
.form-page h1 { margin-bottom: 6px; }
.form-sub { color: var(--muted); margin-bottom: 22px; font-size: .92rem; }
.form-alt { margin-top: 18px; text-align: center; color: var(--muted); font-size: .9rem; }

.stack-form { display: flex; flex-direction: column; gap: 16px; }
.stack-form label { display: flex; flex-direction: column; gap: 6px; }
.stack-form label > span { font-weight: 600; font-size: .87rem; }
.stack-form label small { color: var(--muted); font-weight: 400; }
.stack-form input, .stack-form select, .stack-form textarea {
  border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 14px;
  font-family: inherit; font-size: .95rem; outline: none; background: #fff; color: var(--ink);
  transition: border-color .15s;
}
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus { border-color: var(--green-2); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }

/* ===== Tabs ===== */

.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin: 18px 0 20px; flex-wrap: wrap; }
.tab {
  background: none; border: 0; font-family: inherit; font-size: .93rem; font-weight: 600;
  color: var(--muted); padding: 10px 16px; cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--green); border-bottom-color: var(--brass); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== Bid rows (dashboard) ===== */

.bid-rows { display: flex; flex-direction: column; gap: 10px; }
.bid-row {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px 10px 10px;
  color: var(--ink); box-shadow: var(--shadow);
}
.bid-row:hover { text-decoration: none; box-shadow: var(--shadow-lift); }
.bid-row.winning { border-left: 4px solid var(--win); }
.bid-row.outbid { border-left: 4px solid var(--lose); }
.bid-row-img img, .bid-row-img .card-img-placeholder {
  width: 60px; height: 60px; object-fit: cover; border-radius: 8px;
}
.bid-row-info { flex: 1; display: flex; flex-direction: column; }
.bid-row-info span { color: var(--muted); font-size: .84rem; }
.bid-row-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bid-row-status em { font-style: normal; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }

.pill {
  display: inline-block; border-radius: 999px; padding: 2px 12px;
  font-size: .75rem; font-weight: 700;
}
.pill-green { background: #eaf5ec; color: var(--win); }
.pill-red { background: #fbeeec; color: var(--lose); }
.pill-gold { background: var(--brass-soft); color: var(--brass); }
.pill-gray { background: #efece4; color: var(--muted); }

/* ===== Messages ===== */

.thread-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.thread-item {
  display: grid; grid-template-columns: 180px 1fr auto; grid-template-rows: auto auto;
  gap: 2px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; color: var(--ink); box-shadow: var(--shadow);
}
.thread-item:hover { text-decoration: none; box-shadow: var(--shadow-lift); }
.thread-item.unread { border-left: 4px solid var(--brass); }
.thread-who { font-weight: 700; position: relative; display: inline-flex; gap: 12px; }
.thread-who .badge-dot { position: static; }
.thread-listing { color: var(--green-2); font-size: .85rem; grid-column: 1; }
.thread-preview { color: var(--muted); font-size: .9rem; grid-column: 2; grid-row: 1 / 3; align-self: center; }
.thread-when { color: var(--muted); font-size: .8rem; grid-column: 3; grid-row: 1; }

.thread-page { max-width: 720px; margin-inline: auto; }
.back-link { color: var(--muted); font-size: .9rem; }
.thread-header {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin: 12px 0 18px;
}
.thread-header h1 { font-size: 1.35rem; }
.thread-re { font-size: .88rem; }
.thread-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }

.chat-log {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px;
  max-height: 480px; overflow-y: auto;
}
.chat-msg { max-width: 78%; }
.chat-msg.mine { align-self: flex-end; text-align: right; }
.chat-msg.theirs { align-self: flex-start; }
.chat-bubble {
  display: inline-block; padding: 10px 16px; border-radius: 15px; font-size: .94rem;
  white-space: pre-wrap; text-align: left;
}
.mine .chat-bubble { background: var(--green); color: #f2efe6; border-bottom-right-radius: 4px; }
.theirs .chat-bubble { background: #efece4; border-bottom-left-radius: 4px; }
.chat-meta { font-size: .72rem; color: var(--muted); margin-top: 3px; }
.chat-form { display: flex; gap: 10px; align-items: flex-start; }
.chat-form textarea { flex: 1; margin: 0; }

/* ===== Profile ===== */

.profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.profile-head h1 { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; }
.profile-meta { color: var(--muted); font-size: .9rem; }

/* ===== Admin ===== */

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.stat-tile strong { font-family: var(--serif); font-size: 1.55rem; letter-spacing: -.02em; }
.stat-tile span { color: var(--muted); font-size: .8rem; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .9rem; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.admin-table th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.admin-table tr:hover td { background: var(--surface-2); }

/* ===== Shipping & payment box (listing page) ===== */

.ship-pay-box {
  margin-top: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.ship-pay-box > div { display: flex; gap: 12px; align-items: flex-start; }
.spb-icon { font-size: 1.05rem; margin-top: 1px; }
.ship-pay-box strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ship-pay-box span:not(.spb-icon) { font-size: .9rem; }

/* ===== Sell form fieldset & payment checkboxes ===== */

.form-fieldset {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px;
}
.form-fieldset legend {
  font-family: var(--serif); font-weight: 700; font-size: 1.02rem; padding: 0 8px;
}
.check-row-label { font-weight: 600; font-size: .87rem; }
.check-row-label small { color: var(--muted); font-weight: 400; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font-size: .87rem; cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s;
}
.check-chip:has(input:checked) { border-color: var(--green-2); background: var(--green-soft); font-weight: 600; }
.check-chip input { accent-color: var(--green); }

/* ===== Dashboard tab alert ===== */

.tab-alert {
  display: inline-block; margin-left: 7px; background: var(--bid); color: #fff;
  font-size: .68rem; font-weight: 700; border-radius: 999px; padding: 1px 7px;
  vertical-align: 2px;
}

/* ===== Order page ===== */

.order-page { max-width: 860px; margin-inline: auto; }
.order-head { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.order-head h1 { font-size: 1.7rem; }
.order-meta { color: var(--muted); font-size: .88rem; margin: 4px 0 20px; }

.order-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.order-step {
  display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600;
  color: var(--muted);
}
.order-step-dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--line); font-size: .75rem;
}
.order-step.done { color: var(--green); }
.order-step.done .order-step-dot { background: var(--green); border-color: var(--green); color: #f2efe6; }
.order-step.now { color: var(--bid); }
.order-step.now .order-step-dot { border-color: var(--bid); color: var(--bid); font-weight: 700; }
.order-step-bar { flex: 1; min-width: 22px; height: 2px; background: var(--line); border-radius: 2px; }
.order-step-bar.done { background: var(--green); }

.order-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 760px) { .order-grid { grid-template-columns: 1fr; } }

.order-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.order-item { display: flex; gap: 14px; align-items: center; color: var(--ink); margin-bottom: 16px; }
.order-item:hover { text-decoration: none; }
.order-item img, .order-item .card-img-placeholder { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.order-item strong { display: block; line-height: 1.3; }
.order-item-sub { color: var(--green-2); font-size: .82rem; font-weight: 600; }

.invoice { width: 100%; border-collapse: collapse; font-size: .93rem; margin-bottom: 16px; }
.invoice td { padding: 8px 2px; border-bottom: 1px solid var(--line); }
.invoice td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.invoice-total td {
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  border-bottom: 2px solid var(--ink);
}
.invoice-payout td { color: var(--green); font-weight: 650; border-bottom: none; }

.order-facts { display: flex; flex-direction: column; gap: 10px; }
.order-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.order-facts dd { font-weight: 600; font-size: .92rem; }

.order-actions h3 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 12px; }
.order-hint { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.order-hint strong { color: var(--ink); }

/* ===== Trust: badges, stars, reviews ===== */

.vbadge {
  display: inline-block; background: var(--green-soft); color: var(--green);
  border: 1px solid #c6d9cc; border-radius: 999px; padding: 1px 10px;
  font-size: .74rem; font-weight: 700; vertical-align: 2px;
}
.stars { color: var(--brass); letter-spacing: .05em; }
.star-dim { color: var(--line); }

.review-list { display: flex; flex-direction: column; gap: 10px; }
.review-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow);
}
.review-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.review-head em { color: var(--muted); font-style: normal; font-size: .8rem; }
.review-item p { font-size: .92rem; color: var(--ink); }

.review-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-box h3 { font-family: var(--serif); font-size: 1rem; margin-bottom: 8px; }
.star-row { display: flex; flex-direction: column; gap: 4px; }
.star-opt {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 1rem; color: var(--brass); padding: 2px 4px; border-radius: 6px;
}
.star-opt:hover { background: var(--brass-soft); }
.star-opt input { accent-color: var(--brass); }

/* ===== Escrow & disputes ===== */

.escrow-banner {
  background: var(--green-soft); border: 1px solid #c6d9cc; color: var(--green);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-size: .93rem;
}
.escrow-offer {
  background: var(--green-soft); border: 1.5px solid #c6d9cc; border-radius: var(--radius);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px;
}
.escrow-offer > strong { color: var(--green); }
.escrow-offer > span { font-size: .85rem; color: var(--muted); }
.escrow-balance { font-size: .8rem; color: var(--muted); }
.credits-chip { margin-bottom: 8px; width: 100%; justify-content: flex-start; }

.or-divider {
  display: flex; align-items: center; gap: 12px; margin: 12px 0;
  color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
}
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.dispute-box, .report-box { margin-top: 14px; }
.dispute-box summary, .report-box summary {
  cursor: pointer; color: var(--muted); font-size: .88rem; font-weight: 600;
}
.dispute-box summary:hover, .report-box summary:hover { color: var(--ink); }

.dispute-row {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow);
}
.dispute-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dispute-reason { color: var(--muted); font-size: .9rem; margin: 6px 0 10px; }
.dispute-actions { display: flex; gap: 10px; }

.stat-alert { border-left: 4px solid var(--bid); }
.stat-alert strong { color: var(--bid); }

/* ===== Wallet & credits ===== */

.nav-wallet { font-weight: 650; white-space: nowrap; }
.wallet-page { max-width: 860px; margin-inline: auto; }
.wallet-page h1 { margin-top: 8px; }
.wallet-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 18px 0; }
.stat-credits { border-left: 4px solid var(--brass); }
.stat-credits strong { color: var(--brass); }
.wallet-explain {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.wallet-explain h3 { font-family: var(--serif); font-size: 1.02rem; margin-bottom: 6px; }
.wallet-explain p { font-size: .92rem; color: var(--muted); }
.wallet-explain p strong { color: var(--ink); }
.wallet-topup { border-style: dashed; }
.wallet-credits-box { border-left: 4px solid var(--brass); }
.credit-earn-list { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.credit-earn-list li { font-size: .92rem; color: var(--muted); }
.credit-earn-list strong { color: var(--ink); }
.credit-earn-list code {
  background: var(--brass-soft); border-radius: 6px; padding: 1px 8px;
  font-weight: 700; color: var(--brass);
}
.wallet-h2 { font-size: 1.15rem; margin: 22px 0 10px; }
.tx-in { color: var(--win); font-weight: 700; }
.tx-out { color: var(--muted); }
.wallet-credit-form input {
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
  font-family: inherit; font-size: .82rem; width: 70px;
}

.signup-bonus {
  background: var(--brass-soft); border: 1px solid #e6d5ac; border-radius: 10px;
  padding: 10px 14px; font-size: .9rem; margin-bottom: 18px; color: #6c4d0e;
}

/* ===== Safety page ===== */

.safety-page { max-width: 900px; margin-inline: auto; }
.safety-page h1 { margin-top: 8px; }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
@media (max-width: 720px) { .safety-grid { grid-template-columns: 1fr; } }
.safety-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow);
}
.safety-card h2 { font-size: 1.15rem; margin-bottom: 10px; }
.safety-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.safety-card li { font-size: .93rem; color: var(--muted); padding-left: 18px; position: relative; }
.safety-card li::before { content: '•'; position: absolute; left: 4px; color: var(--brass); }
.safety-card li strong, .safety-card li em { color: var(--ink); }
.safety-wide { margin-top: 16px; }

/* ===== Feed (swipe view) ===== */

.nav-feed { font-weight: 650 !important; }

.feed-wrap { position: relative; }
.feed-hint {
  text-align: center; color: var(--muted); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .12em; padding: 6px 0 10px;
}
.feed {
  height: calc(100vh - 130px);
  min-height: 480px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  border-radius: 18px;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }

.feed-slide {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-radius: 18px;
  overflow: hidden;
  background: #14120d;
  margin-bottom: 10px;
}

.feed-media { position: absolute; inset: 0; }
.feed-media img { width: 100%; height: 100%; object-fit: cover; }
.feed-media-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; font-size: 7rem;
  background: radial-gradient(60rem 40rem at 50% 30%, #3a3427, #14120d);
}
.feed-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 5, .88) 0%, rgba(10, 9, 5, .25) 40%, rgba(10, 9, 5, 0) 60%, rgba(10, 9, 5, .35) 100%);
}

.feed-info {
  position: absolute; left: 20px; bottom: 20px; right: 96px;
  color: #f5f2ec; display: flex; flex-direction: column; gap: 8px;
}
.feed-seller { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.feed-seller a { color: #f5f2ec; font-weight: 700; }
.feed-seller .avatar { width: 28px; height: 28px; font-size: .8rem; }
.feed-title {
  color: #fff; font-family: var(--serif); font-size: 1.25rem; line-height: 1.25;
  font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-title:hover { text-decoration: none; color: #ffd166; }
.feed-price-row { display: flex; align-items: center; gap: 12px; }
.feed-price { font-family: var(--serif); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.feed-bids { opacity: .75; font-size: .85rem; }
.feed-price-row .card-time { position: static; }
.feed-cta-row { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.feed-buynow { width: auto; }
.feed-view { width: auto; color: #f5f2ec; border-color: rgba(245, 242, 236, .4); }
.feed-view:hover { border-color: #f5f2ec; color: #fff; }

.feed-rail {
  position: absolute; right: 16px; bottom: 24px;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.rail-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(20, 18, 13, .55); border: 1px solid rgba(245, 242, 236, .18);
  color: #f5f2ec; border-radius: 16px; padding: 10px 12px; cursor: pointer;
  font-family: inherit; backdrop-filter: blur(6px);
  transition: transform .12s, background .15s;
  text-decoration: none;
}
.rail-btn:hover { transform: scale(1.08); background: rgba(20, 18, 13, .75); text-decoration: none; }
.rail-icon { font-size: 1.35rem; line-height: 1; }
.rail-count { font-size: .72rem; font-weight: 700; opacity: .85; }
.rail-btn.liked { border-color: var(--bid); }
.rail-btn.liked .rail-icon { color: var(--bid); text-shadow: 0 0 12px rgba(207, 74, 31, .7); }
.rail-btn.shared { border-color: var(--brass); }
.rail-btn.shared .rail-icon { color: #ffd166; }

/* ===== Engage row (listing page like/share) ===== */

.engage-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.engage-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 16px; font-family: inherit; font-size: .9rem; font-weight: 650;
  color: var(--ink); cursor: pointer; transition: border-color .15s, transform .12s;
}
.engage-btn:hover { transform: translateY(-1px); border-color: var(--muted); }
.engage-btn.liked { border-color: var(--bid); color: var(--bid); }
.engage-btn.shared { border-color: var(--brass); color: var(--brass); }
.engage-note { font-size: .78rem; color: var(--muted); }
.engage-note em { font-style: normal; font-weight: 700; color: var(--ink); }

/* ===== Payout box (direct payment details at checkout) ===== */

.payout-box {
  background: var(--brass-soft); border: 1px solid #e6d5ac; border-radius: 10px;
  padding: 12px 14px; font-size: .92rem; margin-bottom: 10px; color: #6c4d0e;
  overflow-wrap: anywhere;
}
.payout-box strong { color: var(--ink); }
.payout-addr {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; margin-top: 6px; font-size: .84rem; user-select: all;
}
.dash-head-actions { display: flex; align-items: center; gap: 14px; }

/* ===== Advertising: banners, sponsored, promote ===== */

.ad-banner {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px dashed var(--brass); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 22px; color: var(--ink);
  box-shadow: var(--shadow); position: relative;
}
.ad-banner:hover { text-decoration: none; box-shadow: var(--shadow-lift); }
.ad-label {
  position: absolute; top: -9px; left: 14px;
  background: var(--brass); color: #fff; font-size: .62rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; padding: 2px 10px;
}
.ad-banner-img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.ad-banner-text { flex: 1; display: flex; flex-direction: column; }
.ad-banner-text strong { font-family: var(--serif); font-size: 1.05rem; }
.ad-banner-text span { color: var(--muted); font-size: .88rem; }
.ad-cta { color: var(--brass); font-weight: 700; font-size: .9rem; white-space: nowrap; }

.sponsored-pill {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--brass); color: #fff; font-size: .68rem; font-weight: 800;
  border-radius: 999px; padding: 3px 12px; letter-spacing: .04em;
}
.sponsored-pill-card { top: 8px; left: 8px; font-size: .62rem; padding: 2px 9px; }
.card-img { position: relative; }

.sponsored-strip { margin-bottom: 22px; }
.sponsored-strip-label {
  display: inline-block; color: var(--brass); font-weight: 800; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px;
}

.feed-ad-slide { background: var(--green); }
.feed-ad-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 12px; padding: 40px;
  color: #f2efe6; z-index: 2;
}
.feed-ad-inner .ad-label { position: static; align-self: flex-start; }
.feed-ad-inner h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); color: #fbf8ef; max-width: 520px; }
.feed-ad-inner p { opacity: .85; max-width: 460px; }

.promo-box {
  background: var(--brass-soft); border: 1px solid #e6d5ac; border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem;
}
.promo-box strong { color: #6c4d0e; }
.promo-box > span { color: var(--muted); font-size: .84rem; }
.promo-days { display: flex; gap: 8px; flex-wrap: wrap; }
.promo-active { color: #6c4d0e; font-weight: 600; }
.ad-create-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }

/* ===== Wallet top-up form ===== */

.topup-form { display: flex; flex-direction: column; gap: 12px; }
.topup-amounts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.topup-amt input { accent-color: var(--green); }
.topup-custom {
  width: 110px; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font-family: inherit; font-size: .87rem; outline: none;
}
.topup-custom:focus { border-color: var(--green-2); }
.topup-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== Toast ===== */

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: 12px 22px; border-radius: 999px;
  font-size: .92rem; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 200; box-shadow: var(--shadow-lift);
  max-width: min(90vw, 480px); text-align: center;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-gold { background: var(--brass); color: #fff; }
.toast-err { background: var(--lose); color: #fff; }

/* ===== Empty states ===== */

.empty-state {
  text-align: center; padding: 56px 20px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-icon { font-size: 3rem; }
.empty-state h1, .empty-state h2 { color: var(--ink); }

/* ===== Footer ===== */

.site-footer { background: #141b33; color: #b6bdd1; margin-top: auto; }
.footer-inner { padding-block: 34px; display: flex; flex-direction: column; gap: 14px; }
.footer-logo { font-family: var(--serif); color: #f2efe6; font-size: 1.2rem; font-weight: 700; }
.footer-logo em { font-style: italic; color: #cbb87a; }
.footer-inner p { font-size: .9rem; opacity: .8; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .87rem; }
.footer-links a { color: #b6bdd1; }
.footer-links a:hover { color: #fff; }
.footer-note { font-size: .78rem; opacity: .55; }

/* ===== Bottom nav (mobile app bar) ===== */

.bottom-nav { display: none; }
.mobile-only { display: none; }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

/* ===== Responsive ===== */

@media (max-width: 820px) {
  /* --- chrome: compact header + app-style bottom tab bar --- */
  .hide-mobile { display: none !important; }
  .mobile-only { display: inline-block; }
  .header-inner { gap: 10px; padding-block: 10px; flex-wrap: wrap; }
  .logo { font-size: 1.25rem; }
  .search-form { order: 3; flex-basis: 100%; min-width: 0; }
  .main-nav { gap: 10px; margin-left: auto; }
  .nav-wallet { font-size: .82rem; }

  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px max(8px, env(safe-area-inset-left)) max(6px, env(safe-area-inset-bottom));
    justify-content: space-around;
    box-shadow: 0 -4px 16px rgba(33, 29, 21, .07);
  }
  .bn-item {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    color: var(--muted); font-size: .64rem; font-weight: 650;
    padding: 4px 10px; border-radius: 10px; min-width: 52px;
  }
  .bn-item:hover { text-decoration: none; color: var(--ink); }
  .bn-icon { font-size: 1.2rem; line-height: 1.2; position: relative; }
  .bn-icon .badge-dot { top: -5px; right: -12px; }
  .bn-sell .bn-icon {
    background: var(--bid); color: #fff; border-radius: 50%;
    width: 30px; height: 30px; display: grid; place-items: center; font-size: 1rem;
  }
  .bn-sell { color: var(--bid); }

  body { padding-bottom: 62px; }             /* clear the tab bar */
  .site-footer { padding-bottom: 8px; }
  main.container { padding-block: 14px 40px; }

  /* --- forms: 16px controls so iOS Safari doesn't zoom on focus --- */
  input, select, textarea, .search-form input, .hero-search input, .bid-input-row input {
    font-size: 16px !important;
  }

  /* --- hero --- */
  .hero { padding: 26px 20px 24px; border-radius: 16px; }
  .hero-sub { font-size: .92rem; }
  .hero-search input { padding: 13px 18px; }
  .hero-search button { padding: 0 18px; font-size: .88rem; }
  .hero-stats { gap: 14px; margin-top: 20px; }

  /* --- cards: 2-up marketplace grid --- */
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 9px 10px 11px; gap: 3px; }
  .card-title { font-size: .84rem; min-height: 2.6em; }
  .card-price strong { font-size: 1.1rem; }
  .card-bids, .card-buynow { font-size: .72rem; }
  .card-seller { font-size: .68rem; }
  .card-time { font-size: .66rem; padding: 3px 8px; }

  /* --- tabs & tables: horizontal scroll instead of squish --- */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; padding: 10px 12px; font-size: .88rem; }
  .admin-table, .memory-flat-table { display: block; overflow-x: auto; white-space: nowrap; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .wallet-tiles { grid-template-columns: 1fr 1fr; }

  /* --- listing page --- */
  .listing-title { font-size: 1.3rem; }
  .bid-current strong { font-size: 1.9rem; }
  .gallery-thumbs img { width: 56px; height: 56px; }
  .engage-row { gap: 8px; }
  .engage-note { flex-basis: 100%; }

  /* --- feed: fill the phone screen between chrome --- */
  .feed-hint { display: none; }
  .feed {
    height: calc(100svh - 196px);
    min-height: 400px;
    border-radius: 14px;
  }
  .feed-slide { border-radius: 14px; margin-bottom: 8px; }
  .feed-info { left: 14px; bottom: 14px; right: 78px; }
  .feed-title { font-size: 1.05rem; }
  .feed-price { font-size: 1.4rem; }
  .feed-cta-row .btn { padding: 9px 14px; font-size: .85rem; }
  .feed-rail { right: 10px; bottom: 16px; gap: 10px; }
  .rail-btn { padding: 8px 10px; border-radius: 14px; }
  .rail-icon { font-size: 1.2rem; }

  /* --- orders / misc --- */
  .order-head h1 { font-size: 1.4rem; }
  .order-steps { gap: 5px; }
  .order-step { font-size: .74rem; gap: 5px; }
  .order-step-dot { width: 22px; height: 22px; font-size: .68rem; }
  .browse-head h1 { font-size: 1.3rem; }
  .filter-bar { width: 100%; }
  .filter-bar select { flex: 1; }
  .profile-head { gap: 14px; }
  .avatar-lg { width: 56px; height: 56px; font-size: 1.5rem; }
  .chat-msg { max-width: 88%; }
  .form-page { padding: 24px 20px; }
  .toast { bottom: 76px; }                   /* above the tab bar */
}

@media (max-width: 720px) {
  .thread-item { grid-template-columns: 1fr auto; }
  .thread-preview { grid-column: 1; grid-row: auto; }
}
