/* ==========================================================================
   Logged-in app shell: dashboard, trade room, admin
   Shares tokens/reset/buttons/icons from style.css
   ========================================================================== */

body.app-body { background: var(--paper); }

.app-shell { display: flex; min-height: 100vh; }

/* ---------- sidebar ---------- */
.app-sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; width: 258px; z-index: 70;
  background: var(--pine-950); color: var(--paper);
  display: flex; flex-direction: column; padding: 18px 14px;
  transform: translateX(-100%); transition: transform 0.2s ease;
}
.app-sidebar.is-open { transform: translateX(0); }
.app-sidebar .brand { color: var(--paper); padding: 6px 10px 22px; }

.app-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.app-nav-section { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(245,240,228,0.4); padding: 16px 10px 6px; }
.app-nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 8px;
  color: rgba(245,240,228,0.78); font-weight: 600; font-size: 0.92rem;
}
.app-nav-link .icon { width: 19px; height: 19px; flex-shrink: 0; }
.app-nav-link:hover { background: rgba(245,240,228,0.06); color: var(--paper); }
.app-nav-link.is-active { background: var(--gold-500); color: var(--pine-950); }
.app-nav-link .count {
  margin-left: auto; background: rgba(245,240,228,0.15); color: var(--paper);
  font-size: 0.72rem; padding: 1px 7px; border-radius: 999px;
}
.app-nav-link.is-active .count { background: rgba(18,38,29,0.2); color: var(--pine-950); }

.app-sidebar-foot { border-top: 1px solid rgba(245,240,228,0.1); padding-top: 10px; margin-top: 10px; }

.app-sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(18,38,29,0.5); z-index: 65;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s;
}
.app-sidebar-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- main column ---------- */
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.app-topbar {
  position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--clay-200);
  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
}
.app-menu-toggle { color: var(--ink); flex-shrink: 0; }
.app-menu-toggle .icon { width: 24px; height: 24px; }

.app-search {
  flex: 1; display: flex; align-items: center; gap: 8px; max-width: 420px;
  background: var(--paper-2); border-radius: 8px; padding: 9px 12px;
}
.app-search .icon { width: 17px; height: 17px; color: var(--ink-soft); }
.app-search input { border: 0; background: none; flex: 1; font-size: 0.9rem; min-width: 0; }
.app-search input:focus { outline: none; }

.app-topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn .badge {
  position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500);
}
.app-user { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.app-user span { display: none; }

@media (min-width: 640px) { .app-user span { display: inline; } }

.app-content { padding: 22px 18px 60px; max-width: 1160px; width: 100%; margin-inline: auto; }

.app-content-flush {
  padding: 0; max-width: none; margin: 0;
  height: calc(100vh - 61px); overflow: hidden;
}

@media (min-width: 1080px) {
  .app-sidebar { transform: none; }
  .app-sidebar-backdrop { display: none; }
  .app-menu-toggle { display: none; }
  .app-main { margin-left: 258px; }
  .app-content { padding: 30px 32px 70px; }
}

/* ---------- page header ---------- */
.app-page-head { margin-bottom: 22px; }
.app-page-head h1 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); text-transform: uppercase; }
.app-page-head p { color: var(--ink-soft); margin-top: 4px; }

/* ---------- stat tiles ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 26px; }
.stat-tile { background: #fff; border: 1px solid var(--clay-200); border-radius: 10px; padding: 16px; }
.stat-tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stat-tile .icon { width: 20px; height: 20px; color: var(--pine-500); }
.stat-label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-note { font-size: 0.78rem; color: var(--good-600); font-weight: 600; }
.stat-note.is-down { color: #b5451f; }

@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- insights / analytics ---------- */
.insights-chart-wrap { overflow-x: auto; }
.insights-chart-wrap svg { display: block; min-width: 480px; width: 100%; height: auto; }
.chart-grid-line { stroke: var(--clay-200); stroke-width: 1; }
.chart-axis-value { fill: var(--ink-soft); font-family: var(--font-mono); font-size: 10px; }
.chart-bar { fill: var(--pine-700); }
.chart-bar-value { fill: var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.chart-bar-label { fill: var(--ink-soft); font-family: var(--font-mono); font-size: 10px; }

.source-row { display: grid; grid-template-columns: 118px 1fr 40px; gap: 10px; align-items: center; margin-bottom: 14px; }
.source-row:last-child { margin-bottom: 0; }
.source-label { font-size: 0.85rem; font-weight: 600; }
.source-bar-track { height: 10px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.source-bar-fill { display: block; height: 100%; background: var(--pine-700); border-radius: 999px; }
.source-pct { font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; text-align: right; }

/* ---------- dashboard layout ---------- */
.dash-layout { display: grid; gap: 22px; }
@media (min-width: 1080px) { .dash-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } }

.panel { background: #fff; border: 1px solid var(--clay-200); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h2 { font-size: 1.05rem; text-transform: uppercase; }
.panel-head a { font-size: 0.85rem; font-weight: 700; color: var(--pine-700); }

/* trade rows */
.trade-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--clay-200); }
.trade-row:last-child { border-bottom: 0; padding-bottom: 0; }
.trade-swap-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); color: var(--pine-700); display: grid; place-items: center; flex-shrink: 0; }
.trade-row-info { flex: 1; min-width: 0; }
.trade-row-info strong { display: block; font-size: 0.92rem; }
.trade-row-info span { font-size: 0.82rem; color: var(--ink-soft); }
.trade-row a.btn { flex-shrink: 0; }

.status-pill {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  white-space: nowrap;
}
.status-negotiating { background: #fdeecb; color: #93650c; }
.status-accepted { background: #dcecff; color: #1c4f8c; }
.status-shipped { background: #e2e0fb; color: #4a3b9c; }
.status-completed { background: var(--good-100); color: var(--good-600); }
.status-pending { background: var(--paper-2); color: var(--ink-soft); }
.status-active { background: var(--good-100); color: var(--good-600); }
.status-intrade { background: #fdeecb; color: #93650c; }
.status-open { background: #fdeecb; color: #93650c; }
.status-investigating { background: #dcecff; color: #1c4f8c; }
.status-resolved { background: var(--good-100); color: var(--good-600); }

/* listing rows */
.listing-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--clay-200); }
.listing-row:last-child { border-bottom: 0; padding-bottom: 0; }
.listing-thumb { width: 40px; height: 40px; border-radius: 8px; background: var(--paper-2); color: var(--pine-500); display: grid; place-items: center; flex-shrink: 0; }
.listing-thumb .icon { width: 18px; height: 18px; }
.listing-row-info { flex: 1; min-width: 0; }
.listing-row-info strong { display: block; font-size: 0.9rem; }
.listing-row-info span { font-size: 0.8rem; color: var(--ink-soft); }

/* notification / activity list */
.activity-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--clay-200); }
.activity-item:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); color: var(--pine-700); display: grid; place-items: center; flex-shrink: 0; }
.activity-icon .icon { width: 15px; height: 15px; }
.activity-text { font-size: 0.87rem; color: var(--ink); }
.activity-time { font-size: 0.76rem; color: var(--ink-soft); }

/* match mini card */
.match-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--clay-200); }
.match-item:last-child { border-bottom: 0; padding-bottom: 0; }
.match-item .listing-thumb { background: var(--good-100); color: var(--good-600); }

/* verification checklist card */
.checklist-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.88rem; }
.checklist-item .icon { width: 18px; height: 18px; color: var(--good-600); flex-shrink: 0; }
.checklist-item.is-todo .icon { color: var(--clay-400); }
.checklist-item.is-todo span { color: var(--ink-soft); }

/* ---------- data table (admin) ---------- */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
table.data-table th {
  text-align: left; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-soft); padding: 10px 12px; border-bottom: 2px solid var(--clay-200);
}
table.data-table td { padding: 12px; border-bottom: 1px solid var(--clay-200); vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: 0; }
.table-user { display: flex; align-items: center; gap: 8px; }
.table-actions { display: flex; gap: 8px; }
.table-actions .btn { white-space: nowrap; }

/* ---------- trade room ---------- */
.trade-header {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--clay-200);
  border-radius: 12px; padding: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.trade-header-info { flex: 1; min-width: 0; }
.trade-header-info strong { display: block; font-size: 1rem; }
.trade-header-info span { font-size: 0.82rem; color: var(--ink-soft); font-family: var(--font-mono); }

.status-tracker { display: flex; gap: 4px; margin-bottom: 22px; overflow-x: auto; }
.status-tracker-step {
  flex: 1; min-width: 84px; text-align: center; padding: 10px 6px; border-radius: 8px;
  background: var(--paper-2); font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  color: var(--ink-soft); position: relative;
}
.status-tracker-step.is-done { background: var(--good-100); color: var(--good-600); }
.status-tracker-step.is-active { background: var(--pine-700); color: var(--paper); }

.trade-room-grid { display: grid; gap: 18px; }
@media (min-width: 1080px) { .trade-room-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }

.offer-compare { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.offer-item-card { flex: 1; background: var(--paper-2); border-radius: 10px; padding: 14px; text-align: center; }
.offer-item-card .icon { width: 30px; height: 30px; color: var(--pine-500); margin-bottom: 8px; }
.offer-item-card strong { display: block; font-size: 0.9rem; }
.offer-item-card span { font-size: 0.78rem; color: var(--ink-soft); }
.offer-swap-mid { width: 34px; height: 34px; border-radius: 50%; background: var(--pine-700); color: var(--paper); display: grid; place-items: center; flex-shrink: 0; }

.cash-note { text-align: center; font-size: 0.85rem; color: var(--gold-700); font-weight: 700; margin-bottom: 16px; }
.offer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.offer-actions .btn { flex: 1; }

.counter-form { margin-top: 16px; border-top: 1px dashed var(--clay-200); padding-top: 16px; }
.counter-form .field { margin-bottom: 12px; }

.negotiation-status {
  display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-soft);
  font-style: italic; margin-top: 14px;
}
.negotiation-status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); flex-shrink: 0;
  animation: negotiation-pulse 1s ease-in-out infinite;
}
@keyframes negotiation-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.offer-actions.is-busy { opacity: 0.5; pointer-events: none; }

/* ---------- rating & review ---------- */
.rating-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--clay-200);
}
.rating-row:last-child { border-bottom: 0; }
.rating-row span:first-child { font-weight: 600; font-size: 0.92rem; }
.rating-row-overall { padding-top: 4px; }
.rating-row-overall span:first-child { font-size: 1rem; }

.rating-subgrid { margin-top: 4px; }

.star-rating { display: flex; gap: 4px; }
.star-btn { color: var(--clay-400); padding: 2px; }
.star-btn .icon { width: 26px; height: 26px; fill: none; stroke-width: 1.5; }
.star-btn.is-filled { color: var(--gold-600); }
.star-btn.is-filled .icon { fill: var(--gold-500); }
.star-rating-sm .star-btn .icon { width: 19px; height: 19px; }

.rating-success-note { text-align: center; color: var(--ink-soft); }

/* ---------- escrow ---------- */
.escrow-panel .panel-head h2 { display: flex; align-items: center; gap: 8px; }
.escrow-panel .panel-head .icon { color: var(--gold-600); width: 20px; height: 20px; }

.escrow-step { border-top: 1px dashed var(--clay-200); padding-top: 16px; margin-top: 16px; }
.escrow-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.escrow-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.escrow-step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); color: var(--ink-soft);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; flex-shrink: 0;
}
.escrow-step-num.is-active { background: var(--pine-700); color: var(--paper); }
.escrow-step-head strong { display: block; font-size: 0.92rem; }
.escrow-step-head span { font-size: 0.8rem; color: var(--ink-soft); }

.escrow-party-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0; flex-wrap: wrap;
}
.escrow-party-name { font-weight: 600; font-size: 0.88rem; min-width: 130px; }
.escrow-status { font-size: 0.82rem; color: var(--ink-soft); }
.escrow-status.is-confirmed { color: var(--good-600); font-weight: 600; }
.escrow-party-row .btn { margin-left: auto; }

/* ---------- dispute ---------- */
.dispute-tracker { margin-bottom: 16px; }
.dispute-tracker-step {
  flex: 1; min-width: 74px; text-align: center; padding: 8px 4px; border-radius: 8px;
  background: var(--paper-2); font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  color: var(--ink-soft);
}
.dispute-tracker-step.is-done { background: var(--good-100); color: var(--good-600); }
.dispute-tracker-step.is-active { background: var(--pine-700); color: var(--paper); }

.dispute-detail {
  background: var(--paper-2); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px;
}
.dispute-detail strong { display: block; font-size: 0.88rem; margin-bottom: 4px; }
.dispute-detail p { font-size: 0.88rem; color: var(--ink-soft); }

.dispute-resolution {
  background: var(--good-100); border-radius: 8px; padding: 14px; margin-top: 14px;
}
.dispute-resolution p { font-size: 0.9rem; color: var(--ink); margin-bottom: 12px; }

/* chat */
.chat-panel { background: #fff; border: 1px solid var(--clay-200); border-radius: 12px; display: flex; flex-direction: column; height: 520px; }
.chat-thread { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; padding: 10px 13px; border-radius: 12px; font-size: 0.9rem; line-height: 1.4; }
.msg-them { align-self: flex-start; background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 4px; }
.msg-me { align-self: flex-end; background: var(--pine-700); color: var(--paper); border-bottom-right-radius: 4px; }
.msg-time { display: block; font-size: 0.7rem; opacity: 0.65; margin-top: 4px; }
.msg-proposal { align-self: flex-start; max-width: 82%; background: #fff; border: 1.5px dashed var(--gold-500); border-radius: 10px; padding: 12px; font-size: 0.85rem; }
.msg-proposal strong { display: block; margin-bottom: 4px; }

.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--clay-200); }
.chat-input-row input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--clay-200); }
.chat-send { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-500); color: var(--pine-950); display: grid; place-items: center; flex-shrink: 0; }

/* trade room: mobile offer/chat tab switch */
.trade-mobile-tabs { margin-bottom: 16px; }
.trade-tab-panel.is-tab-hidden { display: none; }
@media (min-width: 1080px) {
  .trade-mobile-tabs { display: none; }
  .trade-tab-panel.is-tab-hidden { display: block; }
}

/* ---------- messages inbox ---------- */
.inbox-shell { display: flex; height: 100%; background: #fff; }

.convo-list-pane { width: 100%; display: flex; flex-direction: column; border-right: 1px solid var(--clay-200); }
.convo-list-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--clay-200); }
.convo-list-head h1 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 12px; }
.convo-search { max-width: none; background: var(--paper-2); }

.convo-list { flex: 1; overflow-y: auto; }
.convo-row {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  padding: 14px 18px; border-bottom: 1px solid var(--clay-200);
}
.convo-row:hover { background: var(--paper-2); }
.convo-row.is-active { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--gold-500); }
.convo-row .avatar { width: 40px; height: 40px; font-size: 0.85rem; flex-shrink: 0; margin-top: 2px; }
.convo-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.convo-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.convo-row-top strong { font-size: 0.92rem; }
.convo-time { font-size: 0.74rem; color: var(--ink-soft); flex-shrink: 0; }
.convo-preview {
  font-size: 0.85rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.convo-trade-pill {
  display: inline-block; margin-top: 3px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; width: fit-content;
}
.unread-badge {
  width: 20px; height: 20px; border-radius: 50%; background: var(--gold-500); color: var(--pine-950);
  font-size: 0.7rem; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; margin-top: 4px;
}

.convo-thread-pane { display: none; width: 100%; flex-direction: column; }
.convo-thread-pane .chat-thread { flex: 1; }

.thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--clay-200); }
.thread-back { color: var(--ink-soft); flex-shrink: 0; }
.thread-head-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.thread-head-info span { font-size: 0.8rem; color: var(--ink-soft); }
.thread-head .btn { flex-shrink: 0; }

.inbox-shell.is-thread-open .convo-list-pane { display: none; }
.inbox-shell.is-thread-open .convo-thread-pane { display: flex; }

@media (min-width: 900px) {
  .convo-list-pane { width: 340px; flex-shrink: 0; }
  .convo-thread-pane { display: flex; }
  .thread-back { display: none; }
  .inbox-shell.is-thread-open .convo-list-pane { display: flex; }
}

/* ---------- notifications ---------- */
.notif-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.notif-head p { color: var(--gold-700); font-weight: 700; font-size: 0.85rem; margin-top: 4px; }

.notif-tabs { margin-bottom: 18px; }
.notif-tabs .tab-row { margin-bottom: 0; }

.notif-panel { padding: 0; overflow: hidden; }

.notif-group-label {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); background: var(--paper-2); padding: 8px 18px;
}

.notif-row {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--clay-200); color: var(--ink);
}
.notif-row:last-child { border-bottom: 0; }
.notif-row:hover { background: var(--paper-2); }
.notif-row.is-unread { background: #fbf6ea; }
.notif-row[hidden] { display: none; }

.notif-icon {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
}
.notif-icon .icon { width: 17px; height: 17px; }
.notif-icon-trade { background: var(--paper-2); color: var(--pine-700); }
.notif-icon-message { background: #fdeecb; color: #93650c; }
.notif-icon-account { background: var(--good-100); color: var(--good-600); }
.notif-icon-warn { background: #fbe4de; color: #b5451f; }

.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-text { font-size: 0.92rem; line-height: 1.4; }
.notif-time { font-size: 0.78rem; color: var(--ink-soft); }

.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); margin-top: 6px; flex-shrink: 0; }

.icon-btn.is-current { color: var(--pine-700); background: var(--paper-2); }

/* ---------- settings ---------- */
.settings-tabs { margin-bottom: 20px; }
.settings-panel[hidden] { display: none; }

.field-grid { display: grid; gap: 0; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; gap: 0 16px; } }

.field textarea {
  width: 100%; padding: 12px 14px; border-radius: 7px; border: 1.5px solid var(--clay-200);
  background: #fff; color: var(--ink); font-size: 0.95rem; font-family: inherit; resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--pine-500); }
.field-hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }

.avatar-edit-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }

.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--clay-200);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row strong { display: block; font-size: 0.92rem; }
.contact-row span { font-size: 0.85rem; color: var(--ink-soft); }

.panel-danger { border-color: #f0ccc0; }
.panel-danger .panel-head h2 { color: #b5451f; }
.danger-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--clay-200);
}
.danger-row:last-child { border-bottom: 0; }
.danger-row strong { display: block; font-size: 0.92rem; }
.danger-row span { font-size: 0.82rem; color: var(--ink-soft); }
.btn-danger { border-color: #d9583a; color: #b5451f; background: #fff; }
.btn-danger:hover { background: #fbe4de; }

/* toggle switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; justify-self: center; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; background: var(--clay-200); border-radius: 999px; transition: background-color 0.15s ease; }
.switch .track::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform 0.15s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.switch input:checked ~ .track { background: var(--pine-700); }
.switch input:checked ~ .track::before { transform: translateX(18px); }
.switch input:focus-visible ~ .track { outline: 2.5px solid var(--gold-500); outline-offset: 2px; }

.pref-table-head, .pref-row {
  display: grid; grid-template-columns: 1fr 46px 46px 46px; align-items: center; gap: 10px;
}
.pref-table-head {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; color: var(--ink-soft);
  padding-bottom: 10px; border-bottom: 2px solid var(--clay-200); text-align: center;
}
.pref-table-head span:first-child { text-align: left; }
.pref-row { padding: 14px 0; border-bottom: 1px solid var(--clay-200); }
.pref-row:last-of-type { border-bottom: 0; }
.pref-row-label strong { display: block; font-size: 0.9rem; }
.pref-row-label span { font-size: 0.78rem; color: var(--ink-soft); }

.verify-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--clay-200); }
.verify-row:last-child { border-bottom: 0; }
.verify-row-icon {
  width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); color: var(--clay-400);
  display: grid; place-items: center; flex-shrink: 0;
}
.verify-row-icon.is-done { background: var(--good-100); color: var(--good-600); }
.verify-row-icon .icon { width: 16px; height: 16px; }
.verify-row-body { flex: 1; min-width: 0; }
.verify-row-body strong { display: block; font-size: 0.92rem; }
.verify-row-body span { font-size: 0.82rem; color: var(--ink-soft); }

.wallet-balance-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.wallet-balance { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--pine-700); }
.wallet-tx-list { margin-top: 16px; border-top: 1px solid var(--clay-200); }
.wallet-tx-row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--clay-200); font-size: 0.9rem; }
.wallet-tx-row:last-child { border-bottom: 0; }
.tx-amount { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.tx-amount.is-debit { color: var(--ink-soft); }
.tx-amount.is-credit { color: var(--good-600); }

/* ---------- wallet page ---------- */
.wallet-tabs { margin-bottom: 20px; }

.amount-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.amount-chip {
  padding: 10px 16px; border-radius: 8px; border: 1.5px solid var(--clay-200); background: #fff;
  font-weight: 700; font-family: var(--font-mono); font-size: 0.88rem; color: var(--ink); cursor: pointer;
}
.amount-chip:hover { border-color: var(--clay-400); }
.amount-chip.is-selected { border-color: var(--pine-700); background: var(--pine-700); color: var(--paper); }

.wallet-ledger-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--clay-200); }
.wallet-ledger-row:last-child { border-bottom: 0; padding-bottom: 0; }
.wallet-ledger-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); color: var(--pine-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.wallet-ledger-icon .icon { width: 17px; height: 17px; }
.wallet-ledger-icon.is-credit { background: var(--good-100); color: var(--good-600); }
.wallet-ledger-info { flex: 1; min-width: 0; }
.wallet-ledger-info strong { display: block; font-size: 0.9rem; font-weight: 600; }
.wallet-ledger-info span { font-size: 0.78rem; color: var(--ink-soft); }
.wallet-ledger-row .tx-amount { font-size: 0.92rem; white-space: nowrap; }

.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.plan-perks { display: grid; gap: 10px; }
.plan-perks li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.plan-perks .icon { color: var(--good-600); flex-shrink: 0; }
.badge-chip.is-premium { background: var(--gold-500); color: var(--pine-950); }
.badge-chip.is-cancelling { background: var(--paper-2); color: var(--ink-soft); }

/* ---------- premium / plans ---------- */
.billing-tabs { margin-bottom: 18px; }

.plan-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 18px; }
@media (min-width: 700px) { .plan-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.plan-card { position: relative; }
.plan-card.is-highlight { border-color: var(--gold-500); border-width: 2px; }
.plan-badge {
  position: absolute; top: -12px; right: 18px; background: var(--gold-500); color: var(--pine-950);
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.plan-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.plan-card-head h3 { font-size: 1.05rem; text-transform: uppercase; }
.plan-price { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--ink); white-space: nowrap; }
.plan-price small { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.plan-card .plan-perks { margin: 14px 0 18px; }
#premiumActiveNote { justify-content: center; margin-top: 10px; padding: 10px 0 0; }
#cancelSubBtn.is-confirm { background: #b5451f; color: #fff; border-color: #b5451f; }

/* ---------- wishlist ---------- */
.wishlist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.wishlist-head p { color: var(--ink-soft); margin-top: 4px; max-width: 52ch; }

#addWishPanel { margin-bottom: 20px; }

.wishlist-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .wishlist-grid { grid-template-columns: repeat(2, 1fr); } }

.wish-card {
  display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid var(--clay-200);
  border-radius: 12px; padding: 16px; position: relative;
}
.wish-card-open { border-style: dashed; background: var(--paper-2); }

.wish-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--paper-2); color: var(--pine-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.wish-card-open .wish-icon { background: #fff; color: var(--gold-700); }

.wish-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.wish-category {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gold-700);
}
.wish-body p { font-size: 0.95rem; color: var(--ink); }

.wish-match-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; width: fit-content;
  background: var(--good-100); color: var(--good-600); font-size: 0.8rem; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
}
.wish-match-badge .icon { width: 0.95em; height: 0.95em; }
.wish-match-badge:hover { background: #d3ead8; }

.wish-match-none { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }

.wish-remove {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  color: var(--ink-soft); display: grid; place-items: center; flex-shrink: 0;
}
.wish-remove:hover { background: var(--paper-2); color: #b5451f; }
.wish-remove .icon { width: 14px; height: 14px; }

.wishlist-empty-msg { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* ---------- admin: manage listings ---------- */
.listings-toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.admin-search-field { flex: 1; }
@media (min-width: 640px) { .listings-toolbar { flex-direction: row; } }

.admin-status-tabs { margin-bottom: 18px; }
.admin-status-tabs .tab-btn .count {
  margin-left: 6px; background: var(--paper-2); color: var(--ink-soft); font-size: 0.7rem;
  padding: 1px 7px; border-radius: 999px;
}
.admin-status-tabs .tab-btn.is-active .count { background: var(--pine-700); color: var(--paper); }

.listings-panel { padding: 18px; }
.listing-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.listings-table tr[hidden] { display: none; }

.status-featured { background: #fbead0; color: var(--gold-700); display: inline-flex; align-items: center; gap: 5px; }
.status-featured .icon { width: 0.85em; height: 0.85em; fill: var(--gold-500); color: var(--gold-600); }
.status-pending-approval { background: #fdeecb; color: #93650c; }
.status-removed { background: #fbe4de; color: #b5451f; }

.table-empty-msg { text-align: center; color: var(--ink-soft); padding: 30px 0 6px; }

.table-pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; font-size: 0.85rem; color: var(--ink-soft);
}
.pagination-controls { display: flex; align-items: center; gap: 10px; }
.pagination-controls .btn[disabled] { opacity: 0.4; cursor: default; }
.page-indicator { font-family: var(--font-mono); font-size: 0.8rem; }

/* ---------- admin: manage users ---------- */
.users-table .table-user { gap: 10px; }
.user-cell-info { display: flex; flex-direction: column; }
.user-cell-info span { font-size: 0.78rem; color: var(--ink-soft); }
.users-table tr[hidden] { display: none; }

.verify-cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.unverified-tag {
  font-size: 0.76rem; font-weight: 700; color: var(--ink-soft); background: var(--paper-2);
  padding: 4px 9px; border-radius: 999px;
}

.status-suspended { background: #fdeecb; color: #93650c; }
.status-banned { background: #fbe4de; color: #b5451f; }

/* ---------- admin: manage trades ---------- */
.trades-table tr[hidden] { display: none; }
.ticket-cell { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; }
.trade-participants { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; }
.avatar-overlap { margin-left: -10px; border: 2px solid #fff; }
.cash-tag {
  display: inline-block; margin-left: 6px; font-family: var(--font-mono); font-size: 0.72rem;
  font-weight: 700; color: var(--gold-700); background: #fbead0; padding: 1px 7px; border-radius: 999px;
}
.status-disputed { background: #e6d6f5; color: #6b3fa0; }
.status-cancelled { background: var(--paper-2); color: var(--ink-soft); }

/* ---------- admin: manage reports ---------- */
.reports-table tr[hidden] { display: none; }
.report-against { font-size: 0.78rem; color: var(--ink-soft); }
.status-closed { background: var(--paper-2); color: var(--ink-soft); }

.row-expand-btn {
  width: 26px; height: 26px; border-radius: 50%; color: var(--ink-soft);
  display: grid; place-items: center; transition: transform 0.15s ease, background-color 0.15s ease;
}
.row-expand-btn:hover { background: var(--paper-2); }
.row-expand-btn[aria-expanded="true"] { transform: rotate(180deg); }
.row-expand-btn .icon { width: 16px; height: 16px; }

.report-detail-row td { padding: 0; border-bottom: 1px solid var(--clay-200); }
.report-detail { background: var(--paper-2); padding: 14px 20px; }
.report-detail p { font-size: 0.9rem; color: var(--ink); max-width: 70ch; margin-bottom: 12px; }
.report-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- admin: manage categories ---------- */
.cat-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cat-admin-head p { color: var(--ink-soft); margin-top: 4px; }
#addCategoryPanel { margin-bottom: 20px; }

.cat-admin-list { display: flex; flex-direction: column; gap: 12px; }
.cat-admin-item { background: #fff; border: 1px solid var(--clay-200); border-radius: 10px; overflow: hidden; }
.cat-admin-item[data-active="no"] .cat-admin-icon { opacity: 0.45; }
.cat-admin-item[data-active="no"] .cat-admin-name { color: var(--ink-soft); }

.cat-admin-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.cat-admin-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); color: var(--pine-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.cat-admin-icon .icon { width: 17px; height: 17px; }
.cat-admin-name { font-weight: 700; font-size: 0.98rem; }
.cat-admin-count { font-size: 0.8rem; color: var(--ink-soft); margin-left: auto; }
.inactive-tag {
  font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); background: var(--paper-2);
  padding: 3px 9px; border-radius: 999px;
}
.cat-active-switch { flex-shrink: 0; }
.cat-delete-btn.is-confirm { background: #b5451f; color: #fff; border-color: #b5451f; }
.ad-delete-btn.is-confirm { background: #b5451f; color: #fff; border-color: #b5451f; }

.cat-admin-sub { border-top: 1px solid var(--clay-200); padding: 14px 16px; background: var(--paper-2); }
.sub-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sub-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--clay-200);
  border-radius: 999px; padding: 6px 8px 6px 12px; font-size: 0.85rem; font-weight: 600;
}
.sub-chip button { width: 18px; height: 18px; border-radius: 50%; color: var(--ink-soft); display: grid; place-items: center; }
.sub-chip button:hover { background: var(--paper-2); color: #b5451f; }
.sub-chip button .icon { width: 11px; height: 11px; }

.sub-add-row { display: flex; gap: 8px; max-width: 360px; }
.sub-add-row input {
  flex: 1; min-width: 0; padding: 8px 12px; border-radius: 7px; border: 1.5px solid var(--clay-200); font-size: 0.88rem;
}

/* ---------- admin: CMS pages ---------- */
.cms-slug { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }
.cms-updated { font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; }
.cms-page-row[hidden], .cms-edit-row[hidden] { display: none; }

.cms-edit-row td { padding: 0; border-bottom: 1px solid var(--clay-200); }
.cms-edit-form { background: var(--paper-2); padding: 18px 20px; }
.cms-edit-actions { display: flex; gap: 10px; margin-top: 4px; }

.cms-faq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cms-add-faq-panel { background: var(--paper-2); border-radius: 10px; padding: 16px; margin-bottom: 16px; }

.faq-admin-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--clay-200); border-radius: 10px; overflow: hidden; }
.faq-item-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.faq-question { font-weight: 600; font-size: 0.95rem; flex: 1; min-width: 160px; }
.faq-item-body { border-top: 1px solid var(--clay-200); padding: 14px 16px; background: var(--paper-2); }
.faq-answer-text { font-size: 0.9rem; color: var(--ink); max-width: 70ch; }
.faq-edit-form { background: #fff; border: 1px solid var(--clay-200); border-radius: 8px; padding: 14px; margin-top: 4px; }

/* ---------- admin: ads ---------- */
.ad-admin-list { display: flex; flex-direction: column; gap: 10px; }
.ad-item { background: #fff; border: 1px solid var(--clay-200); border-radius: 10px; overflow: hidden; }
.ad-item[data-active="no"] .ad-thumb { opacity: 0.45; }
.ad-item[data-active="no"] .ad-name { color: var(--ink-soft); }
.ad-item-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.ad-thumb {
  width: 34px; height: 34px; border-radius: 8px; background: var(--paper-2); color: var(--pine-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.ad-thumb .icon { width: 16px; height: 16px; }
.ad-name { font-weight: 700; font-size: 0.95rem; }
.ad-placement-tag {
  background: var(--paper-2); color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 999px;
}
.ad-stat { font-size: 0.8rem; color: var(--ink-soft); margin-left: auto; white-space: nowrap; }
.ad-item-body { border-top: 1px solid var(--clay-200); padding: 14px 16px; background: var(--paper-2); }
.ad-preview-text { font-size: 0.9rem; color: var(--ink); max-width: 70ch; margin-bottom: 4px; }
.ad-preview-url { font-size: 0.8rem; color: var(--pine-700); word-break: break-all; }
.ad-edit-form { background: #fff; border: 1px solid var(--clay-200); border-radius: 8px; padding: 14px; margin-top: 10px; }
.ads-tabs { margin-bottom: 20px; }

/* ---------- admin: platform settings ---------- */
.field-inline-narrow { max-width: 360px; }
.settings-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--clay-200); margin-bottom: 4px;
}
.settings-toggle-row:last-of-type { border-bottom: 0; }
.settings-toggle-row strong { display: block; font-size: 0.92rem; }
.settings-toggle-row span { font-size: 0.82rem; color: var(--ink-soft); }
.settings-panel .field > span:first-child { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }

/* ---------- create listing wizard ---------- */
.wizard-steps {
  display: flex; align-items: center; gap: 6px; margin-bottom: 22px; overflow-x: auto;
  padding-bottom: 4px;
}
.wizard-step-dot {
  display: flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600;
  color: var(--clay-400); white-space: nowrap; flex-shrink: 0;
}
.wizard-step-dot span {
  width: 24px; height: 24px; border-radius: 50%; background: var(--paper-2); color: var(--ink-soft);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.74rem; flex-shrink: 0;
}
.wizard-step-dot.is-active { color: var(--ink); }
.wizard-step-dot.is-active span { background: var(--pine-700); color: var(--paper); }
.wizard-step-dot.is-done span { background: var(--good-600); color: #fff; }
.wizard-step-line { width: 20px; height: 2px; background: var(--clay-200); flex-shrink: 0; }

.wizard-panel { max-width: 640px; margin-inline: auto; }
.wizard-pane-title { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 18px; }
.wizard-pane[hidden] { display: none; }

.opt-tag { font-style: normal; font-weight: 500; font-size: 0.76rem; color: var(--ink-soft); }

.condition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 480px) { .condition-grid { grid-template-columns: repeat(3, 1fr); } }
.condition-radio {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px;
  border: 1.5px solid var(--clay-200); font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.condition-radio:has(input:checked) { border-color: var(--pine-700); background: var(--paper-2); color: var(--pine-700); }
.condition-radio input { accent-color: var(--pine-700); }

.wizard-error { color: #b5451f; font-size: 0.85rem; min-height: 1.2em; margin: 10px 0 0; }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.wizard-actions-center { justify-content: center; }

.photo-thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 14px; }
.photo-add-btn {
  aspect-ratio: 1; border: 1.5px dashed var(--clay-400); border-radius: 10px; background: var(--paper-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink-soft); font-size: 0.72rem; font-weight: 600;
}
.photo-add-btn:hover { border-color: var(--pine-700); color: var(--pine-700); }
.photo-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--clay-200); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb-remove {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(18,38,29,0.75); color: #fff; display: grid; place-items: center;
}
.photo-thumb-remove .icon { width: 11px; height: 11px; }
.photo-count { font-size: 0.8rem; color: var(--ink-soft); margin-top: 8px; }

.wizard-media-row { align-items: start; }
#videoPreview { width: 100%; max-width: 280px; border-radius: 8px; margin-top: 10px; }
.video-filename { font-size: 0.82rem; color: var(--ink-soft); margin-top: 6px; }

.review-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--clay-200); border-radius: 12px; padding: 16px; flex-wrap: wrap; }
.review-card-thumb {
  width: 100px; height: 100px; border-radius: 10px; background: var(--paper-2); color: var(--pine-500);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0;
}
.review-card-thumb .icon { width: 32px; height: 32px; }
.review-photo-count { font-size: 0.7rem; color: var(--ink-soft); }
.review-card-body { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.review-card-body h3 { font-size: 1.1rem; text-transform: none; }
.review-desc { font-size: 0.88rem; color: var(--ink-soft); }
.review-card-body .value-amount { font-size: 1.1rem; }

.success-check {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--good-100); color: var(--good-600); margin: 0 auto 18px;
}
.success-check .icon { width: 30px; height: 30px; }
.wizard-success { text-align: center; }
.wizard-success[hidden] { display: none; }

/* profile-style tabs reused on public profile page */
.tabbed-panel .tab-row { display: flex; gap: 6px; border-bottom: 1px solid var(--clay-200); margin-bottom: 20px; overflow-x: auto; }
.tabbed-panel .tab-btn { padding: 12px 16px; font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabbed-panel .tab-btn.is-active { color: var(--pine-700); border-color: var(--gold-500); }
