/* ═══════════════════════════════════════════════════════
   Host Dashboard — Mobile-first operator control centre
   ═══════════════════════════════════════════════════════ */

:root {
  --hd-orange: var(--sunset-orange, #ff6b35);
  --hd-radius: 14px;
  --hd-nav-w: 220px;
}

/* ── Layout shell ───────────────────────────────────── */
.hd-shell { display: flex; min-height: 100vh; }

.hd-sidenav {
  width: var(--hd-nav-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  position: fixed; top: 56px; left: 0; bottom: 0;
  overflow-y: auto; z-index: 20;
  display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.hd-op-strip {
  padding: .875rem 1rem; border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; gap: .6rem;
}
.hd-op-logo {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: var(--bg-elevated);
  flex-shrink: 0; border: 2px solid var(--border-color);
}
.hd-op-logo-ph {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--hd-orange);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: .9rem; flex-shrink: 0;
}
.hd-op-info { flex: 1; min-width: 0; }
.hd-op-name { font-size: .82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-op-sub  { font-size: .68rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hd-tier { font-size: .6rem; font-weight: 700; border-radius: 999px; padding: .1rem .4rem; display: inline-block; margin-top: .15rem; }
.hd-tier.applied            { background: rgba(156,163,175,.15); color: #9ca3af; }
.hd-tier.registered         { background: rgba(59,130,246,.15);  color: #60a5fa; }
.hd-tier.community_endorsed { background: rgba(16,185,129,.15);  color: #34d399; }
.hd-tier.verified           { background: rgba(139,92,246,.15);  color: #a78bfa; }
.hd-tier.platform_partner   { background: rgba(255,107,53,.15);  color: var(--hd-orange); }

.hd-nav-section { padding: .4rem 0; border-bottom: 1px solid var(--border-color); }
.hd-nav-section:last-child { border-bottom: none; }
.hd-nav-lbl {
  font-size: .6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted);
  padding: .5rem 1rem .15rem;
}
.hd-nav-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem 1rem; cursor: pointer; border: none;
  background: none; color: var(--text-secondary);
  font-size: .82rem; font-family: inherit; width: 100%;
  text-align: left; transition: all .12s; position: relative;
}
.hd-nav-item i { width: 16px; text-align: center; font-size: .82rem; flex-shrink: 0; }
.hd-nav-item:hover  { background: var(--bg-elevated); color: var(--text-primary); }
.hd-nav-item.active { background: rgba(255,107,53,.08); color: var(--hd-orange); font-weight: 700; }
.hd-nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--hd-orange);
}
.hd-nav-badge {
  margin-left: auto; background: var(--hd-orange); color: #fff;
  font-size: .6rem; font-weight: 700; border-radius: 999px;
  padding: .1rem .35rem; min-width: 16px; text-align: center;
}
.hd-nav-lock { margin-left: auto; font-size: .68rem; color: var(--text-muted); opacity: .5; }

/* ── Main area ───────────────────────────────────────── */
.hd-main { flex: 1; margin-left: var(--hd-nav-w); padding: 1.5rem 1.5rem 6rem; min-width: 0; }
.hd-section { display: none; }
.hd-section.active { display: block; }
.hd-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; flex-wrap: wrap; gap: .5rem;
}
.hd-section-head h2 { font-size: 1.2rem; font-weight: 800; margin: 0; }

/* ── Metrics ─────────────────────────────────────────── */
.hd-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.hd-metric-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--hd-radius); padding: 1rem; }
.hd-metric-val { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.hd-metric-val.green  { color: #34d399; }
.hd-metric-val.orange { color: var(--hd-orange); }
.hd-metric-val.blue   { color: #60a5fa; }
.hd-metric-val.purple { color: #a78bfa; }
.hd-metric-lbl { font-size: .7rem; color: var(--text-muted); margin-top: .3rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ── Cards ───────────────────────────────────────────── */
.hd-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--hd-radius); padding: 1rem; margin-bottom: 1rem; }
.hd-card-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 .875rem; display: flex; align-items: center; gap: .35rem; }

/* ── Tables ───────────────────────────────────────────── */
.hd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hd-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.hd-table th { text-align: left; padding: .5rem .75rem; background: var(--bg-elevated); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); white-space: nowrap; }
.hd-table td { padding: .65rem .75rem; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.hd-table tr:last-child td { border-bottom: none; }
.hd-table tr:hover td { background: var(--bg-elevated); }

/* ── Badges ───────────────────────────────────────────── */
.hd-badge { display: inline-flex; align-items: center; gap: .2rem; font-size: .67rem; font-weight: 700; border-radius: 999px; padding: .18rem .5rem; white-space: nowrap; }
.hd-badge.pending    { background: rgba(251,191,36,.15); color: #fbbf24; }
.hd-badge.confirmed  { background: rgba(59,130,246,.15); color: #60a5fa; }
.hd-badge.paid,.hd-badge.completed { background: rgba(16,185,129,.15); color: #34d399; }
.hd-badge.cancelled  { background: rgba(239,68,68,.15);  color: #f87171; }
.hd-badge.active     { background: rgba(16,185,129,.15); color: #34d399; }
.hd-badge.inactive,.hd-badge.paused { background: rgba(156,163,175,.15); color: #9ca3af; }
.hd-badge.suspended  { background: rgba(239,68,68,.15);  color: #f87171; }
.hd-badge.upcoming   { background: rgba(59,130,246,.15); color: #60a5fa; }
.hd-badge.approved   { background: rgba(16,185,129,.15); color: #34d399; }
.hd-badge.rejected   { background: rgba(239,68,68,.15);  color: #f87171; }
.hd-badge.pending-doc{ background: rgba(251,191,36,.15); color: #fbbf24; }

/* ── Buttons ─────────────────────────────────────────── */
.hd-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 700; font-family: inherit; border: 1px solid var(--border-color); background: var(--bg-elevated); color: var(--text-primary); cursor: pointer; transition: all .12s; text-decoration: none; }
.hd-btn:hover  { border-color: var(--hd-orange); color: var(--hd-orange); }
.hd-btn.primary{ background: var(--hd-orange); color: #fff; border-color: var(--hd-orange); }
.hd-btn.primary:hover { opacity: .9; }
.hd-btn.danger { background: rgba(239,68,68,.08); color: #f87171; border-color: rgba(239,68,68,.25); }
.hd-btn.danger:hover { background: rgba(239,68,68,.15); }
.hd-btn.success{ background: rgba(16,185,129,.08); color: #34d399; border-color: rgba(16,185,129,.25); }
.hd-btn.success:hover { background: rgba(16,185,129,.15); }
.hd-btn.sm { padding: .28rem .6rem; font-size: .72rem; }
.hd-btn:disabled { opacity: .45; pointer-events: none; }

/* ── Form controls ───────────────────────────────────── */
.hd-form-group { display: flex; flex-direction: column; gap: .28rem; margin-bottom: .75rem; }
.hd-form-group:last-child { margin-bottom: 0; }
.hd-form-label { font-size: .73rem; font-weight: 600; color: var(--text-muted); }
.hd-input,.hd-select,.hd-textarea { background: var(--bg-elevated); border: 1px solid var(--border-color); border-radius: 8px; padding: .55rem .875rem; color: var(--text-primary); font-size: .85rem; font-family: inherit; outline: none; transition: border-color .15s; width: 100%; box-sizing: border-box; }
.hd-input:focus,.hd-select:focus,.hd-textarea:focus { border-color: var(--hd-orange); }
.hd-textarea { resize: vertical; min-height: 80px; }
.hd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.hd-form-row.thirds { grid-template-columns: 1fr 1fr 1fr; }

/* ── Listing grid ────────────────────────────────────── */
.hd-listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 1rem; }
.hd-listing-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--hd-radius); overflow: hidden; transition: border-color .15s; }
.hd-listing-card:hover { border-color: var(--hd-orange); }
.hd-listing-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.hd-listing-img-ph { width: 100%; aspect-ratio: 4/3; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 2rem; }
.hd-listing-body { padding: .75rem; }
.hd-listing-title { font-size: .85rem; font-weight: 700; margin: 0 0 .2rem; }
.hd-listing-meta  { font-size: .72rem; color: var(--text-muted); }
.hd-listing-foot  { display: flex; gap: .4rem; padding: .5rem .75rem; border-top: 1px solid var(--border-color); flex-wrap: wrap; }

/* ── Event grid ──────────────────────────────────────── */
.hd-event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1rem; }
.hd-event-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--hd-radius); overflow: hidden; }
.hd-event-img  { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.hd-event-img-ph { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg,rgba(255,107,53,.2),rgba(139,92,246,.2)); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.hd-event-body { padding: .75rem; }
.hd-event-title{ font-size: .85rem; font-weight: 700; margin: 0 0 .2rem; }
.hd-event-meta { font-size: .72rem; color: var(--text-muted); }

/* ── Booking cards ───────────────────────────────────── */
.hd-booking-list { display: flex; flex-direction: column; gap: .75rem; }
.hd-booking-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--hd-radius); padding: 1rem; }
.hd-booking-card.pending  { border-left: 3px solid #fbbf24; }
.hd-booking-card.confirmed{ border-left: 3px solid #60a5fa; }
.hd-booking-card.paid, .hd-booking-card.completed { border-left: 3px solid #34d399; }
.hd-booking-card.cancelled{ border-left: 3px solid #f87171; }
.hd-booking-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .4rem; }
.hd-booking-title{ font-size: .88rem; font-weight: 700; }
.hd-booking-meta { font-size: .73rem; color: var(--text-muted); margin-top: .1rem; }
.hd-booking-foot { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border-color); }

/* ── Messaging ───────────────────────────────────────── */
.hd-msg-layout { display: grid; grid-template-columns: 250px 1fr; height: 540px; gap: 1rem; }
.hd-msg-threads { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--hd-radius); overflow-y: auto; }
.hd-thread-item { padding: .75rem 1rem; border-bottom: 1px solid var(--border-color); cursor: pointer; display: flex; align-items: center; gap: .6rem; transition: background .1s; }
.hd-thread-item:hover,.hd-thread-item.active { background: var(--bg-elevated); }
.hd-thread-av { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-elevated); object-fit: cover; flex-shrink: 0; }
.hd-thread-av-ph { width: 34px; height: 34px; border-radius: 50%; background: var(--hd-orange); display: flex; align-items: center; justify-content: center; color: #fff; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.hd-thread-info { flex: 1; min-width: 0; }
.hd-thread-name { font-size: .8rem; font-weight: 700; }
.hd-thread-prev { font-size: .7rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-thread-unread { background: var(--hd-orange); color: #fff; border-radius: 999px; font-size: .6rem; font-weight: 700; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.hd-msg-panel { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--hd-radius); display: flex; flex-direction: column; }
.hd-msg-panel-head { padding: .75rem 1rem; border-bottom: 1px solid var(--border-color); font-weight: 700; font-size: .85rem; display: flex; align-items: center; gap: .5rem; }
.hd-msg-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.hd-msg-bubble { max-width: 72%; padding: .55rem .875rem; border-radius: 12px; font-size: .82rem; line-height: 1.45; }
.hd-msg-bubble.mine { background: var(--hd-orange); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.hd-msg-bubble.theirs { background: var(--bg-elevated); align-self: flex-start; border-bottom-left-radius: 4px; }
.hd-msg-foot { padding: .75rem; border-top: 1px solid var(--border-color); display: flex; gap: .5rem; }
.hd-msg-input { flex: 1; background: var(--bg-elevated); border: 1px solid var(--border-color); border-radius: 999px; padding: .5rem 1rem; font-size: .85rem; font-family: inherit; color: var(--text-primary); outline: none; }
.hd-msg-input:focus { border-color: var(--hd-orange); }
.hd-msg-send { width: 38px; height: 38px; border-radius: 50%; background: var(--hd-orange); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .88rem; flex-shrink: 0; }
.hd-msg-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-muted); font-size: .85rem; flex-direction: column; gap: .5rem; }

/* ── Calendar ────────────────────────────────────────── */
.hd-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.hd-cal-month { font-weight: 700; font-size: .95rem; }
.hd-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.hd-cal-day { aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .78rem; cursor: pointer; border: 1px solid transparent; background: var(--bg-elevated); transition: all .1s; }
.hd-cal-day:hover { border-color: var(--hd-orange); color: var(--hd-orange); }
.hd-cal-day.empty   { background: none; border: none; cursor: default; }
.hd-cal-day.past    { opacity: .3; cursor: default; pointer-events: none; }
.hd-cal-day.today   { border-color: var(--hd-orange); color: var(--hd-orange); font-weight: 700; }
.hd-cal-day.blocked { background: rgba(239,68,68,.15); color: #f87171; border-color: rgba(239,68,68,.25); }
.hd-cal-day.booked  { background: rgba(59,130,246,.15); color: #60a5fa; border-color: rgba(59,130,246,.25); cursor: default; pointer-events: none; }

/* ── Analytics ───────────────────────────────────────── */
.hd-chart-ph { background: var(--bg-elevated); border-radius: 10px; padding: 2rem; text-align: center; color: var(--text-muted); font-size: .82rem; min-height: 160px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .5rem; }
.hd-chart-ph i { font-size: 2rem; }
.hd-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: .75rem; margin-bottom: 1rem; }
.hd-stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--hd-radius); padding: 1rem; }
.hd-stat-val { font-size: 1.35rem; font-weight: 900; }
.hd-stat-lbl { font-size: .7rem; color: var(--text-muted); margin-top: .2rem; }

/* ── Documents ───────────────────────────────────────── */
.hd-doc-zone { border: 2px dashed var(--border-color); border-radius: 10px; padding: 2rem; text-align: center; cursor: pointer; transition: border-color .15s; color: var(--text-muted); font-size: .82rem; }
.hd-doc-zone:hover { border-color: var(--hd-orange); color: var(--hd-orange); }
.hd-doc-zone i { font-size: 2rem; display: block; margin-bottom: .4rem; }
.hd-doc-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.hd-doc-item { display: flex; align-items: center; gap: .75rem; background: var(--bg-elevated); border-radius: 10px; padding: .65rem .875rem; border: 1px solid var(--border-color); }
.hd-doc-icon { font-size: 1.1rem; color: var(--hd-orange); width: 20px; text-align: center; }
.hd-doc-info { flex: 1; min-width: 0; }
.hd-doc-name { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-doc-meta { font-size: .68rem; color: var(--text-muted); }

/* ── Reviews ─────────────────────────────────────────── */
.hd-review-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--hd-radius); padding: 1rem; margin-bottom: .75rem; }
.hd-review-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.hd-review-av { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-elevated); object-fit: cover; }
.hd-review-stars { color: #fbbf24; font-size: .82rem; }
.hd-review-content { font-size: .82rem; line-height: 1.5; margin-bottom: .5rem; color: var(--text-secondary); }
.hd-review-reply { background: var(--bg-elevated); border-radius: 8px; padding: .55rem .875rem; font-size: .78rem; border-left: 3px solid var(--hd-orange); margin-top: .5rem; }

/* ── Pricing rules ───────────────────────────────────── */
.hd-rule-list { display: flex; flex-direction: column; gap: .5rem; }
.hd-rule-item { background: var(--bg-elevated); border-radius: 10px; padding: .75rem 1rem; border: 1px solid var(--border-color); display: flex; align-items: center; gap: .75rem; }
.hd-rule-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,107,53,.1); color: var(--hd-orange); display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.hd-rule-info { flex: 1; min-width: 0; }
.hd-rule-label { font-size: .82rem; font-weight: 700; }
.hd-rule-meta  { font-size: .7rem; color: var(--text-muted); }

/* ── CRM guests ──────────────────────────────────────── */
.hd-guest-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--hd-radius); padding: 1rem; display: flex; align-items: flex-start; gap: .875rem; margin-bottom: .75rem; }
.hd-guest-av { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-elevated); object-fit: cover; flex-shrink: 0; }
.hd-guest-av-ph { width: 42px; height: 42px; border-radius: 50%; background: var(--hd-orange); display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem; font-weight: 700; flex-shrink: 0; }
.hd-guest-info { flex: 1; min-width: 0; }
.hd-guest-name { font-size: .88rem; font-weight: 700; }
.hd-guest-meta { font-size: .7rem; color: var(--text-muted); margin-top: .1rem; }
.hd-guest-tags { margin-top: .35rem; display: flex; gap: .3rem; flex-wrap: wrap; }
.hd-guest-tag  { font-size: .63rem; font-weight: 700; border-radius: 999px; padding: .12rem .4rem; background: rgba(255,107,53,.1); color: var(--hd-orange); }

/* ── Payouts ─────────────────────────────────────────── */
.hd-payout-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--hd-radius); padding: 1rem; margin-bottom: .75rem; display: flex; align-items: center; gap: 1rem; }
.hd-payout-amount { font-size: 1.15rem; font-weight: 900; min-width: 80px; }
.hd-payout-info { flex: 1; min-width: 0; }
.hd-payout-period { font-size: .8rem; font-weight: 600; }
.hd-payout-meta   { font-size: .7rem; color: var(--text-muted); }

/* ── Modals ───────────────────────────────────────────── */
.hd-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.hd-modal-overlay.open { opacity: 1; pointer-events: all; }
.hd-modal { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; transform: translateY(16px); transition: transform .2s; }
.hd-modal-overlay.open .hd-modal { transform: none; }
.hd-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-color); }
.hd-modal-head h3 { font-size: 1rem; font-weight: 800; margin: 0; }
.hd-modal-close { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--bg-elevated); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.hd-modal-body { padding: 1.5rem; }
.hd-modal-foot { padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); display: flex; gap: .5rem; justify-content: flex-end; }

/* ── Image upload zone ───────────────────────────────── */
.hd-img-upload { border: 2px dashed var(--border-color); border-radius: 10px; padding: 1.5rem; text-align: center; cursor: pointer; transition: border-color .15s; color: var(--text-muted); font-size: .82rem; position: relative; }
.hd-img-upload:hover,.hd-img-upload.drag-over { border-color: var(--hd-orange); color: var(--hd-orange); }
.hd-img-upload i { font-size: 1.8rem; display: block; margin-bottom: .3rem; }
.hd-img-preview { width: 100%; max-height: 140px; object-fit: cover; border-radius: 8px; display: block; }

/* ── Filters ─────────────────────────────────────────── */
.hd-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.hd-filter-btn { padding: .32rem .8rem; border-radius: 999px; border: 1px solid var(--border-color); background: var(--bg-elevated); color: var(--text-secondary); font-size: .75rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .12s; }
.hd-filter-btn.active,.hd-filter-btn:hover { border-color: var(--hd-orange); color: var(--hd-orange); background: rgba(255,107,53,.06); }
.hd-search-input { padding: .32rem .875rem; border-radius: 999px; border: 1px solid var(--border-color); background: var(--bg-elevated); color: var(--text-primary); font-size: .8rem; font-family: inherit; outline: none; }
.hd-search-input:focus { border-color: var(--hd-orange); }

/* ── Feature gate ────────────────────────────────────── */
.hd-gate { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--hd-radius); padding: 3rem 2rem; text-align: center; }
.hd-gate i   { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 1rem; display: block; }
.hd-gate h3  { font-size: 1rem; font-weight: 700; margin: 0 0 .4rem; }
.hd-gate p   { font-size: .82rem; color: var(--text-muted); margin: 0 0 1rem; }

/* ── Empty ───────────────────────────────────────────── */
.hd-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.hd-empty i { font-size: 2.5rem; display: block; margin-bottom: .6rem; }
.hd-empty p { font-size: .82rem; margin: 0; }


.hd-nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 19; }
.hd-nav-backdrop.open { display: block; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hd-sidenav {
    transform: translateX(-100%);
    top: var(--header-height, 68px);
    bottom: 0;
    padding-top: 0;
    z-index: 1002;
    width: 80vw;
    max-width: 300px;
    box-shadow: 4px 0 24px rgba(0,0,0,.35);
  }
  .hd-sidenav.open { transform: none; }
  .hd-nav-backdrop { z-index: 1001; top: var(--header-height, 68px); }
  .hd-main { margin-left: 0; padding: 1rem 1rem 2rem; }
  .hd-msg-layout { grid-template-columns: 1fr; height: auto; }
  .hd-msg-threads { height: 180px; }
  .hd-msg-panel { height: 320px; }

  /* Hide the app bottom nav on this standalone page */
  .bottom-nav, #bottomNav { display: none !important; }
}
@media (max-width: 580px) {
  .hd-metrics { grid-template-columns: 1fr 1fr; }
  .hd-form-row,.hd-form-row.thirds { grid-template-columns: 1fr; }
  .hd-listing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .hd-listing-grid { grid-template-columns: 1fr; }
}
