/* ============================================
   HOST DASHBOARD — DARK CONCERT THEME
   ============================================ */

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

:root {
  --red:         #FF2D78;
  --dark-red:    #C9005C;
  --red-glow:    rgba(255,45,120,0.25);
  --bg:          #0A0A0A;
  --bg-card:     #141414;
  --bg-elevated: #1C1C1C;
  --bg-input:    #1A1A1A;
  --border:      #2A2A2A;
  --border-light:#333333;
  --text:        #FFFFFF;
  --text-sec:    #B0B0B0;
  --text-muted:  #666666;
  --green:       #10B981;
  --yellow:      #F59E0B;
  --blue:        #3B82F6;
  --purple:      #8B5CF6;
  --sidebar-w:   240px;
  --topbar-h:    64px;
  --font:        'Inter', -apple-system, sans-serif;
  --r:           12px;
  --shadow:      0 1px 4px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.6);
  --glow-red:    0 0 20px var(--red-glow), 0 0 40px rgba(255,45,120,0.1);
}

html, body { height: 100%; font-family: var(--font); color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
select, input, textarea { font-family: var(--font); }
img { display: block; }

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform 0.25s ease;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-link {
  display: flex; align-items: center; gap: 8px;
  color: var(--red); font-size: 17px; font-weight: 700;
  letter-spacing: -0.3px;
}
.sidebar-logo-icon { font-size: 20px; }
.sidebar-close { display: none; font-size: 18px; color: var(--text-muted); }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.sidebar-link:hover  { background: var(--bg-elevated); color: var(--text-sec); }
.sidebar-link.active {
  background: rgba(255,45,120,0.12);
  color: var(--red);
  font-weight: 600;
}
.sidebar-badge {
  margin-left: auto;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}
.sidebar-badge:empty { display: none; }
.sidebar-badge-msg { background: var(--blue); }

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-user:hover { background: var(--bg-elevated); }
.sidebar-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
  border: 2px solid var(--border-light);
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-name  { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.sidebar-user-email { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-logout {
  display: flex; align-items: center; gap: 8px;
  padding: 8px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-logout:hover { background: rgba(255,45,120,0.1); color: var(--red); }

/* ── MAIN ── */
.dashboard-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── TOPBAR ── */
.dash-topbar {
  height: var(--topbar-h);
  background: rgba(20,20,20,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky; top: 0; z-index: 100;
}
.hamburger {
  display: none;
  flex-direction: column; gap: 5px; padding: 8px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-sec); border-radius: 2px; }
.dash-topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.topbar-icon-btn:hover { background: var(--bg-elevated); color: var(--text-sec); }
.topbar-badge {
  position: absolute; top: 6px; right: 6px;
  background: var(--red); color: white;
  font-size: 10px; font-weight: 700;
  border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}
.topbar-badge:empty { display: none; }
.topbar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border-light);
  transition: border-color 0.2s;
}
.topbar-avatar:hover { border-color: var(--red); }
.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }

.topbar-help-wrap { position: relative; }
.help-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  min-width: 140px;
  z-index: 700;
  overflow: hidden;
}
.help-dropdown.hidden { display: none; }
.help-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  font-size: 13px; font-weight: 500; color: var(--text-sec);
  transition: background 0.15s, color 0.15s;
}
.help-dropdown-item:hover { background: var(--bg-card); color: var(--text); }

/* ── SECTIONS ── */
.sections-wrap { flex: 1; padding: 32px 32px 60px; }
.section { display: none; }
.section.active { display: block; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
}
.section-title { font-size: 26px; font-weight: 700; color: var(--text); }
.section-sub   { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.btn-add-listing {
  background: linear-gradient(135deg, var(--red), var(--dark-red));
  color: white;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(255,45,120,0.3);
}
.btn-add-listing:hover { opacity: 0.88; box-shadow: var(--glow-red); }

/* ── STATS GRID ── */
/* ── Earnings filter bar ── */
.earnings-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.earnings-filter-bar select {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-sec);
  font-size: 13px;
  cursor: pointer;
}
.earnings-filter-bar select:focus { outline: none; border-color: var(--red); }
.earnings-source-pills { display: flex; gap: 6px; }
.earnings-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.earnings-pill:hover { border-color: var(--border-light); color: var(--text-sec); }
.earnings-pill.active {
  background: rgba(255,45,120,0.12);
  border-color: rgba(255,45,120,0.35);
  color: var(--red);
}

.stat-card--dim { opacity: 0.45; pointer-events: none; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border-light); }
.stat-card-link { cursor: pointer; }
.stat-card-link:hover { border-color: var(--red); }

.venue-confirmed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.venue-confirmed-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.2s;
}
.venue-confirmed-name {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.venue-confirmed-count {
  font-size: 32px; font-weight: 700; color: var(--text); line-height: 1;
}
.venue-confirmed-label {
  font-size: 13px; color: var(--text-muted); font-weight: 500;
  display: flex; align-items: center; gap: 8px; margin-top: 2px;
}
.venue-confirmed-badge {
  border-radius: 999px; padding: 1px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  white-space: nowrap;
}
.venue-confirmed-new {
  background: rgba(59,130,246,0.15); color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.25);
}
.venue-confirmed-total {
  background: rgba(16,185,129,0.12); color: #34d399;
  border: 1px solid rgba(16,185,129,0.25);
}
.stat-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
}
.stat-card-value { font-size: 28px; font-weight: 700; color: var(--text); }
.stat-card-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.stat-card-delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 600;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
}
.delta-up      { background: rgba(16,185,129,0.15);  color: #34d399; }
.delta-down    { background: rgba(239,68,68,0.15);   color: #f87171; }
.delta-neutral { background: rgba(148,163,184,0.12); color: #94a3b8; }
.delta-pending { background: rgba(245,158,11,0.15);  color: #fbbf24; }

/* ─── Artist reliability badges (host booking view) ──────────────── */
.reliability-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px; margin-top: 4px;
}
.reliability-good { background: rgba(16,185,129,0.12); color: #34d399; }
.reliability-warn { background: rgba(245,158,11,0.12); color: #fbbf24; }
.reliability-poor { background: rgba(239,68,68,0.12);  color: #f87171; }

/* ─── Strike banner (artist dashboard) ───────────────────────────── */
.strike-banner {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; padding: 12px 16px; border-radius: 8px;
  margin: 0 0 20px; line-height: 1.55;
}
.strike-banner svg { flex-shrink: 0; margin-top: 2px; }
.strike-banner-warn    { background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }
.strike-banner-freeze  { background: rgba(239,68,68,0.10);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }
.strike-banner-flagged { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.5);  color: #f87171; }
.strike-dismiss-btn {
  margin-left: 8px; background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3); color: #fbbf24;
  font-size: 12px; padding: 3px 10px; border-radius: 5px; cursor: pointer;
}

/* ─── Decline booking button (artist requests) ───────────────────── */
.res-action-btn-decline {
  background: transparent; border: 1px solid rgba(239,68,68,0.35);
  color: #f87171; font-size: 12px; padding: 5px 10px;
  border-radius: 6px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
.res-action-btn-decline:hover { background: rgba(239,68,68,0.10); }

/* ─── Decline modal ──────────────────────────────────────────────── */
.dm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 1100; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.dm-overlay.open { opacity: 1; pointer-events: all; }
.dm-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  background: #1a1a1a; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; width: min(440px, 92vw);
  z-index: 1101; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.dm-modal.open { opacity: 1; pointer-events: all; transform: translate(-50%, -50%); }
.dm-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.dm-title  { font-size: 17px; font-weight: 700; color: var(--text); margin: 0; }
.dm-close  { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 4px; }
.dm-body   { padding: 16px 20px 24px; }
.dm-note   { font-size: 13px; color: var(--text-sec); margin: 0 0 18px; line-height: 1.55; }
.dm-field  { margin-bottom: 20px; }
.dm-label  { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.dm-select { width: 100%; padding: 10px 12px; background: #111; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: var(--text); font-size: 14px; }
.dm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.dm-cancel-btn  { padding: 9px 18px; border-radius: 8px; background: transparent; border: 1px solid rgba(255,255,255,0.12); color: var(--text-muted); font-size: 13px; cursor: pointer; }
.dm-confirm-btn { padding: 9px 18px; border-radius: 8px; background: #dc2626; border: none; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.dm-confirm-btn:hover { background: #b91c1c; }

/* ─── Demo payment button ────────────────────────────────────────── */
.res-note-active { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.35); color: #60a5fa; }
.confirm-played-btn { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.35); color: #34d399; font-weight: 700; }
.confirm-played-btn:hover { background: rgba(16,185,129,0.22); border-color: rgba(16,185,129,0.6); }
.confirm-tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: #10B981; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.note-tag-btn { display:inline-flex; align-items:center; padding:4px 10px; border-radius:999px; font-size:12px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12); color:var(--text-sec); cursor:pointer; transition:background 0.15s,border-color 0.15s; }
.note-tag-btn:hover { background:rgba(255,255,255,0.08); }
.note-tag-active { background:rgba(59,130,246,0.15) !important; border-color:rgba(59,130,246,0.4) !important; color:#60a5fa !important; }

.pm-demo-btn {
  display: block; width: 100%; margin-top: 10px; padding: 12px;
  background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3);
  border-radius: 10px; color: #34d399; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: center; transition: background 0.15s;
}
.pm-demo-btn:hover { background: rgba(16,185,129,0.20); }
.stat-card-accent {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 0 var(--r) var(--r) 0;
}

/* ── OVERVIEW GRID ── */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── CARD ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-title { font-size: 16px; font-weight: 700; color: var(--text); }
.card-title-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.card-link { font-size: 13px; color: var(--red); font-weight: 600; }
.card-link:hover { text-decoration: underline; }

/* Action items */
.action-items { display: flex; flex-direction: column; gap: 0; margin-top: 16px; }
.action-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
  border-radius: 6px;
}
.action-item:last-child { border-bottom: none; }
.action-item:hover { background: var(--bg-elevated); margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
.action-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.action-icon.orange { background: rgba(245,158,11,0.15); }
.action-icon.blue   { background: rgba(59,130,246,0.15); }
.action-icon.green  { background: rgba(16,185,129,0.15); }
.action-icon.red    { background: rgba(255,45,120,0.15); }
.action-body strong { font-size: 14px; display: block; margin-bottom: 2px; color: var(--text); }
.action-body span   { font-size: 12px; color: var(--text-muted); }
.action-chevron { margin-left: auto; color: var(--text-muted); font-size: 18px; }

/* Check-in list */
.checkin-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.checkin-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s;
}
.checkin-item:hover { border-color: var(--border-light); }
.checkin-img {
  width: 52px; height: 52px;
  border-radius: 8px; object-fit: cover; flex-shrink: 0;
  background: var(--border);
}
.checkin-info { flex: 1; min-width: 0; }
.checkin-info strong { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.checkin-info span   { font-size: 12px; color: var(--text-muted); }
.checkin-date {
  text-align: right; flex-shrink: 0;
  font-size: 13px; font-weight: 600; color: var(--red);
}
.checkin-date small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; }

/* ── EARNINGS CHART (SVG line chart) ── */
#earningsChart { width: 100%; }
.chart-area   { width: 100%; }

.chart-plot {
  position: relative;
  height: 120px;
  margin-left: 44px;
}

/* Y-axis labels (HTML so they don't stretch with SVG preserveAspectRatio:none) */
.chart-y-labels {
  position: absolute;
  left: -44px; top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
}
.chart-gl-label {
  position: absolute;
  right: 4px;
  font-size: 9px;
  color: var(--text-muted);
  text-align: right;
  line-height: 1;
  white-space: nowrap;
}

/* SVG fills the plot area; preserveAspectRatio:none stretches it horizontally */
.chart-svg {
  display: block;
  width: 100%;
  height: 120px;
}

/* Month label row */
.chart-label-row {
  display: flex;
  margin-left: 44px;
  margin-top: 6px;
}
.chart-label-row span {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
}

/* ── FILTER TABS ── */
.filter-tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-tab:hover  { border-color: var(--border-light); color: var(--text-sec); }
.filter-tab.active {
  background: rgba(255,45,120,0.15);
  color: var(--red);
  border-color: rgba(255,45,120,0.35);
  font-weight: 600;
}

/* ── RESERVATIONS TABLE ── */
.reservations-table-wrap { overflow-x: auto; }
.res-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 14px;
  border: 1px solid var(--border);
}
.res-table th {
  text-align: left;
  padding: 14px 16px;
  background: var(--bg-elevated);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.res-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-sec);
}
.res-table tr:last-child td { border-bottom: none; }
.res-table tr:hover td { background: rgba(255,255,255,0.02); }
.guest-cell { display: flex; align-items: center; gap: 10px; }
.guest-cell img {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; background: var(--border);
}
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status-pending  { background: rgba(245,158,11,0.15);  color: #fbbf24; }
.status-confirmed  { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.status-completed  { background: rgba(16,185,129,0.15);  color: #34d399; }
.status-cancelled  { background: rgba(239,68,68,0.15);   color: #f87171; }
/* Legacy aliases */
.status-upcoming   { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.status-pending    { background: rgba(245,158,11,0.15);  color: #fbbf24; }
.res-action-btn {
  font-size: 12px; font-weight: 600;
  color: var(--red); text-decoration: underline;
  white-space: nowrap;
  background: none; border: none; padding: 0; cursor: pointer;
}
.res-played-off-btn {
  color: #10B981;
}
.req-archive-btn { color: var(--text-muted) !important; }
.req-archive-btn:hover { color: var(--text) !important; }
.archived-toggle-row td {
  padding: 10px 16px;
  background: var(--bg-elevated);
  border-top: 2px solid var(--border-light);
}
.archived-toggle-btn {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  background: none; border: none;
  cursor: pointer; padding: 0;
}
.archived-toggle-btn:hover { color: var(--text); }
.archived-entry { opacity: 0.55; }

/* ── BOOKING DETAILS DRAWER ── */
.res-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 300;
}
.res-drawer-overlay.hidden { display: none; }
.res-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 95vw;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 301;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.res-drawer.hidden { display: none; }
.res-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.res-drawer-title { font-size: 15px; font-weight: 700; color: var(--text); }
.res-drawer-close {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--text-muted); line-height: 1;
  padding: 2px 6px;
}
.res-drawer-close:hover { color: var(--text); }
.res-drawer-body {
  flex: 1; overflow-y: auto;
  padding: 20px;
  display: flex; flex-direction: column; gap: 20px;
}
.rd-section { display: flex; flex-direction: column; gap: 10px; }
.rd-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.rd-artist-card {
  display: flex; align-items: center; gap: 14px;
}
.rd-artist-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: var(--bg-elevated);
}
.rd-artist-name { font-size: 15px; font-weight: 700; color: var(--text); }
.rd-artist-band { font-size: 13px; color: var(--text-sec); margin-top: 2px; }
.rd-artist-btns { display: flex; gap: 8px; margin-top: 8px; }
.rd-artist-btn {
  font-size: 12px; font-weight: 600; padding: 5px 12px;
  border-radius: 6px; border: 1px solid var(--border-light);
  background: var(--bg-elevated); color: var(--text-sec);
  cursor: pointer;
}
.rd-artist-btn:hover { color: var(--text); border-color: var(--text-muted); }
.rd-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px;
}
.rd-row-label { color: var(--text-muted); }
.rd-row-val { color: var(--text); font-weight: 500; text-align: right; }
.rd-notes {
  font-size: 13px; color: var(--text-sec); line-height: 1.55;
  background: var(--bg-elevated); border-radius: 8px;
  padding: 10px 12px; margin-top: 2px;
  font-style: italic;
}
.rd-notes-empty { font-size: 12px; color: var(--text-muted); font-style: italic; }
.rd-financials { display: flex; flex-direction: column; gap: 8px; }
.rd-fin-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-sec);
}
.rd-fin-row-total {
  display: flex; justify-content: space-between;
  font-size: 14px; font-weight: 700; color: var(--text);
  padding-top: 8px; border-top: 1px solid var(--border);
}
.rd-fin-note { font-size: 11px; color: var(--text-muted); }
.rd-timeline { display: flex; flex-direction: column; gap: 0; }
.rd-tl-step {
  display: flex; align-items: flex-start; gap: 12px;
  padding-bottom: 14px; position: relative;
}
.rd-tl-step:last-child { padding-bottom: 0; }
.rd-tl-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  margin-top: 3px;
}
.rd-tl-dot.done { background: var(--green); }
.rd-tl-dot.pending { background: var(--border-light); border: 2px solid var(--border-light); }
.rd-tl-step:not(:last-child)::before {
  content: '';
  position: absolute; left: 4px; top: 13px;
  width: 2px; height: calc(100% - 6px);
  background: var(--border);
}
.rd-tl-label { font-size: 13px; color: var(--text-sec); line-height: 1.4; }
.rd-tl-time { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.rd-contact-locked {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted);
  background: var(--bg-elevated); border-radius: 8px;
  padding: 10px 12px;
}
.rd-contact-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-sec);
}
.rd-contact-row strong { color: var(--text); }
.rd-competing { display: flex; flex-direction: column; gap: 8px; }
.rd-comp-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-elevated); border-radius: 8px;
  padding: 8px 10px;
}
.rd-comp-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: var(--bg-card);
}
.rd-comp-name { font-size: 13px; font-weight: 600; color: var(--text); }
.rd-comp-band { font-size: 11px; color: var(--text-muted); }
.rd-comp-rank {
  margin-left: auto; font-size: 11px; font-weight: 700;
  color: var(--text-muted);
}
.rd-status-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em;
}
.rd-status-chip.paid { background: rgba(16,185,129,0.15); color: #10B981; }
.rd-status-chip.unpaid { background: rgba(245,158,11,0.15); color: #F59E0B; }
.rd-status-chip.na { background: var(--bg-elevated); color: var(--text-muted); }

/* ── PENDING PRIORITY RANKING ── */
.rank-th { width: 80px; text-align: center; }
.rank-td {
  text-align: center;
  vertical-align: middle;
  padding: 10px 8px !important;
}
.rank-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  margin: 0 auto 4px;
  border: 2px solid transparent;
}
.rank-badge.rank-1 { background: rgba(251,191,36,0.2); color: #fbbf24; border-color: rgba(251,191,36,0.5); }
.rank-badge.rank-2 { background: rgba(148,163,184,0.15); color: #94a3b8; border-color: rgba(148,163,184,0.35); }
.rank-badge.rank-3 { background: rgba(180,120,80,0.15); color: #c4845a; border-color: rgba(180,120,80,0.35); }
.rank-badge.rank-4 { background: rgba(100,100,100,0.12); color: var(--text-muted); border-color: var(--border); }
.rank-arrows { display: flex; justify-content: center; gap: 2px; }
.rank-arrow {
  width: 20px; height: 20px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s, color 0.1s;
}
.rank-arrow:hover:not(:disabled) { background: var(--bg-elevated); color: var(--text); }
.rank-arrow:disabled { opacity: 0.25; cursor: not-allowed; }

/* Drag handle */
.drag-handle {
  font-size: 16px;
  color: var(--border-light);
  cursor: grab;
  user-select: none;
  margin-right: 6px;
  flex-shrink: 0;
}
.drag-handle:active { cursor: grabbing; }

/* Drag state */
.res-row-dragging td { opacity: 0.4; }
.res-row-drag-over td {
  background: rgba(255,45,120,0.06) !important;
  border-top: 2px solid var(--red);
}

/* Flash highlight when navigated to from calendar */
@keyframes row-flash {
  0%   { background: rgba(255,45,120,0.18); }
  60%  { background: rgba(255,45,120,0.18); }
  100% { background: transparent; }
}
.res-row-highlight td {
  animation: row-flash 2.2s ease forwards;
}

/* ── VENUE GROUP HEADER (pending tab) ── */
.venue-group-header td {
  background: var(--bg-elevated) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 10px 16px !important;
}
.venue-group-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.venue-group-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.venue-priority-note {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}
.venue-group-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
}

/* Conflict warning */
.conflict-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 999px;
  padding: 1px 7px;
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.res-row-new { cursor: pointer; }
.res-row-new:hover { background: rgba(52,211,153,0.04) !important; }

.new-req-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 999px;
  padding: 1px 7px;
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.submitted-at-text {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.host-gen-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.25);
  border-radius: 999px;
  padding: 1px 7px;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* Status dropdown in reservations table */
.res-status-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 28px 4px 12px;
  font-size: 12px; font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s;
}
.res-status-select:hover  { border-color: var(--border-light); }
.res-status-select:focus  { border-color: var(--red); }
.res-status-select option { background: var(--bg-elevated); color: var(--text); }

/* Colour the select to match its current status */
.res-status-select.status-pending { background-color: rgba(245,158,11,0.12); color: #fbbf24; border-color: rgba(245,158,11,0.3); }
.res-status-select.status-confirmed { background-color: rgba(59,130,246,0.12); color: #60a5fa; border-color: rgba(59,130,246,0.3); }
.res-status-select.status-completed { background-color: rgba(16,185,129,0.12); color: #34d399; border-color: rgba(16,185,129,0.3); }
.res-status-select.status-cancelled { background-color: rgba(239,68,68,0.12);  color: #f87171; border-color: rgba(239,68,68,0.3); }

/* ── LISTINGS MANAGER ── */
.listings-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.listing-mgr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.listing-mgr-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}
.listing-mgr-img {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--border);
  filter: brightness(0.9);
  transition: filter 0.3s;
}
.listing-mgr-card:hover .listing-mgr-img { filter: brightness(1); }
.listing-mgr-body { padding: 16px; }
.listing-mgr-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.listing-mgr-loc   { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.listing-mgr-meta  {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.listing-mgr-price { font-size: 15px; font-weight: 700; color: var(--text); }
.listing-mgr-price span { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.listing-mgr-rating { font-size: 13px; display: flex; align-items: center; gap: 4px; color: var(--yellow); }
.listing-mgr-actions {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 16px 16px;
}
.lma-row {
  display: flex; gap: 8px;
}
.lma-btn {
  flex: 1; padding: 8px 6px;
  border-radius: 6px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-sec);
  background: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
}
.lma-btn:hover { background: var(--bg-elevated); border-color: var(--border-light); color: var(--text); }
.lma-btn.primary {
  background: linear-gradient(135deg, var(--red), var(--dark-red));
  color: white; border-color: transparent;
}
.lma-btn.primary:hover { opacity: 0.88; }
.lma-btn.danger {
  border-color: rgba(239,68,68,0.3);
  color: #f87171;
}
.lma-btn.danger:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.5); }
.lma-btn.lma-promote { color: #f59e0b; border-color: rgba(245,158,11,0.3); }
.lma-btn.lma-promote:hover { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.5); }
.lma-btn.lma-promote.active { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.5); color: #f59e0b; }
.listing-mgr-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px 16px;
  font-size: 13px; color: var(--text-muted);
}
.toggle-switch {
  position: relative; display: inline-block;
  width: 40px; height: 22px; flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: rgba(16,185,129,0.25); }
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
  background: var(--green);
}

/* ── CALENDAR VENUE TABS ── */
.cal-venue-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cal-venue-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
.cal-venue-tab:hover { border-color: var(--border-light); color: var(--text-sec); }
.cal-venue-tab.active {
  background: var(--bg-card);
  border-color: var(--red);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--red);
}
.cal-venue-tab-name { /* inherits */ }
.cal-venue-unlisted {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ── BIG CALENDAR ── */
.cal-nav-btns { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.cal-nav-btns button {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px; font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-sec);
  transition: border-color 0.15s;
}
.cal-nav-btns button:hover { border-color: var(--red); color: var(--red); }
.cal-legend { display: flex; gap: 20px; margin-bottom: 16px; font-size: 13px; color: var(--text-muted); }
.leg-item { display: flex; align-items: center; gap: 6px; }
.leg-dot { width: 12px; height: 12px; border-radius: 50%; }
.leg-dot.available { background: var(--green); }
.leg-dot.pending   { background: #f59e0b; }
.leg-dot.booked    { background: var(--red); }
.big-calendar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.big-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.big-cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.big-cal-dayname {
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.big-cal-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 80px;
  padding: 8px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.big-cal-cell:nth-child(7n) { border-right: none; }
.big-cal-cell:hover { background: var(--bg-elevated); }
.big-cal-cell.other-month { background: rgba(0,0,0,0.15); }
.big-cal-cell.today { border: 1.5px solid var(--red); }
.big-cal-num {
  font-size: 13px; font-weight: 500; color: var(--text-sec);
  display: flex; align-items: center; gap: 6px;
}
.big-cal-day-digit { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.big-cal-cell.today .big-cal-day-digit { background: var(--red); color: white; font-weight: 700; }
.big-cal-today-label { font-size: 11px; font-weight: 600; color: var(--red); letter-spacing: 0.02em; }
.big-cal-event {
  display: block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
/* ── CALENDAR DAY STATUS ── */
.big-cal-cell.cal-status-booked  { background: rgba(255,45,120,0.07); }
.big-cal-cell.cal-status-pending { background: rgba(245,158,11,0.07); }
.big-cal-cell.cal-status-booked:hover  { background: rgba(255,45,120,0.14); }
.big-cal-cell.cal-status-pending:hover { background: rgba(245,158,11,0.14); }
.big-cal-cell.cal-status-booked  .big-cal-num { color: #FF85C0; }
.big-cal-cell.cal-status-pending .big-cal-num { color: #fbbf24; }
.big-cal-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cal-badge-booked  { background: rgba(255,45,120,0.18);  color: #FF85C0; }
.cal-badge-pending { background: rgba(245,158,11,0.18); color: #fbbf24; }

/* Artist name / request count shown inside booked/pending calendar cells */
.big-cal-guest-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
  line-height: 1.3;
  max-width: 100%;
}

/* Booked/pending cells look like links — available cells don't */
.big-cal-cell.cal-cell-linked { cursor: default; }
.cal-booking-entry { cursor: pointer; border-radius: 6px; padding: 2px 3px; margin-top: 2px; transition: background 0.12s; }
.cal-booking-entry:hover { background: rgba(255,255,255,0.06); }
.big-cal-band-name { display: block; font-size: 10px; font-weight: 500; color: var(--text-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.big-cal-cell.cal-cell-linked:hover { filter: brightness(1.15); }

/* ── CALENDAR DAY POPUP ── */
.cal-day-popup {
  position: fixed;
  z-index: 9999;
  width: 280px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  padding: 16px;
  animation: cdp-in 0.15s ease;
}
@keyframes cdp-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cal-day-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.cal-day-popup-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
  margin-right: 8px;
}
.cal-day-popup-close {
  width: 24px; height: 24px;
  background: var(--bg-input);
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cal-day-popup-close:hover { background: var(--bg-card); color: var(--text); }
.cal-day-popup-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.cal-day-popup-options { display: flex; flex-direction: column; gap: 6px; }
.cdp-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.cdp-opt:hover { background: var(--bg-input); border-color: var(--border-light); }
.cdp-opt.cdp-active { border-color: var(--red); background: rgba(255,45,120,0.06); }
.cdp-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cdp-dot-available { background: var(--green); }
.cdp-dot-pending   { background: #f59e0b; }
.cdp-dot-booked    { background: var(--red); }
.cdp-opt-text { flex: 1; }
.cdp-opt-text strong { display: block; font-size: 13px; color: var(--text); font-weight: 600; }
.cdp-opt-text span   { display: block; font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.cdp-check {
  width: 16px; height: 16px;
  fill: var(--red);
  flex-shrink: 0;
}

/* ── CALENDAR DAY POPUP – band name section ── */
.cdp-band-section { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.cdp-band-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cdp-band-input { background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 13px; color: var(--text); width: 100%; outline: none; transition: border-color 0.15s; }
.cdp-band-input:focus { border-color: var(--red); }
.cdp-save-btn { background: var(--red); color: #fff; border: none; border-radius: 8px; padding: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.cdp-save-btn:hover { opacity: 0.88; }

/* ── CONTACT POPUP ── */
.contact-clickable { cursor: pointer; }
.contact-clickable:hover { opacity: 0.8; }
.act-cell:hover { color: var(--text) !important; }
.date-cal-link { cursor: pointer; color: var(--text-sec); border-bottom: 1px dashed var(--border-light); transition: color 0.15s; }
.date-cal-link:hover { color: var(--text); }

.contact-popup {
  position: fixed;
  z-index: 9000;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  padding: 14px;
  animation: cdp-in 0.13s ease;
}
.contact-popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.contact-popup-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
}
.contact-popup-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.contact-popup-band {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.contact-popup-actions { display: flex; flex-direction: column; gap: 6px; }
.contact-popup-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  width: 100%;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.contact-popup-btn:hover {
  background: var(--bg-input);
  border-color: var(--border-light);
}

/* ── MESSAGES ── */
.messages-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  min-height: 500px;
  overflow: hidden;
}
.msg-thread-list {
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.msg-thread {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.msg-thread:hover  { background: var(--bg-elevated); }
.msg-thread.active { background: rgba(255,45,120,0.08); }
.msg-thread-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--border); }
.msg-thread-body { flex: 1; min-width: 0; }
.msg-thread-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.msg-thread-name-wrap { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.msg-thread-name { font-size: 14px; font-weight: 600; color: var(--text-sec); }
.msg-thread-band { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-thread-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; margin-left: 8px; padding-top: 1px; }
.msg-chat-band { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-left: 6px; }
.msg-thread-preview { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-thread-unread .msg-thread-name { color: var(--text); }
.msg-thread-unread .msg-thread-preview { color: var(--text-sec); font-weight: 500; }
.msg-unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); flex-shrink: 0; margin-top: 6px;
}
.msg-chat { display: flex; flex-direction: column; }
.msg-chat-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 15px;
}
.msg-chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-elevated);
}
.msg-chat-header strong { font-size: 15px; color: var(--text); }
.msg-chat-header-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.msg-chat-header-top { display: flex; align-items: baseline; gap: 0; flex-wrap: wrap; }
.msg-chat-header-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-chat-header-sub span { font-size: 12px; color: var(--text-muted); }
.msg-prerequest-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(99,102,241,0.15);
  color: #818CF8;
  white-space: nowrap;
}

.msg-booking-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.msg-booking-badge-link { cursor: pointer; }
.msg-booking-badge-link:hover { opacity: 0.85; }
.msg-chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.msg-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}
.msg-bubble.mine   { background: var(--red); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-bubble.theirs { background: var(--bg-elevated); color: var(--text-sec); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-bubble-time { font-size: 10px; opacity: 0.6; margin-top: 4px; }
.msg-chat-input {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: flex-end;
  background: var(--bg-elevated);
}
.msg-chat-input textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  resize: none;
  outline: none;
  max-height: 120px;
  overflow-y: auto;
  background: var(--bg-input);
  color: var(--text);
}
.msg-chat-input textarea::placeholder { color: var(--text-muted); }
.msg-chat-input textarea:focus { border-color: var(--red); }
.msg-send-btn {
  background: var(--red); color: white;
  border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.msg-send-btn:hover { opacity: 0.88; box-shadow: 0 4px 12px rgba(255,45,120,0.4); }
.msg-attach-btn {
  background: transparent; border: 1px solid var(--border);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
  cursor: pointer;
}
.msg-attach-btn:hover { border-color: var(--border-light); color: var(--text); }

/* ── REVIEWS ── */
.reviews-summary {
  display: flex; align-items: center; gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.review-big-score { font-size: 56px; font-weight: 700; line-height: 1; color: var(--text); }
.review-stars { display: flex; gap: 4px; margin: 8px 0 4px; }
.review-stars svg { fill: var(--yellow); }
.review-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.review-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.review-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.review-bar-fill  { height: 100%; border-radius: 3px; background: var(--red); }
.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px;
  box-shadow: var(--shadow);
}
.review-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--border); }
.review-name { font-size: 14px; font-weight: 600; color: var(--text); }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-stars-sm { display: flex; gap: 2px; }
.review-stars-sm svg { fill: var(--yellow); }
.review-text { font-size: 14px; line-height: 1.6; color: var(--text-sec); margin-bottom: 12px; }
.review-reply-btn { font-size: 13px; color: var(--red); font-weight: 600; text-decoration: underline; }
.review-reply {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 16px;
  font-size: 13px; line-height: 1.6; margin-top: 12px;
  color: var(--text-sec);
}
.review-reply strong { display: block; margin-bottom: 4px; font-size: 12px; color: var(--text-muted); }

/* ── PROFILE SWITCHER ── */
.sidebar-profile-chip {
  display: inline-block; margin-top: 5px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--red); background: none; border: 1px solid var(--red);
  border-radius: 999px; padding: 2px 8px; cursor: pointer; font-family: var(--font);
  transition: background 0.15s, color 0.15s;
}
.sidebar-profile-chip:hover { background: var(--red); color: #fff; }

.profile-cards-section { margin-bottom: 28px; }
.profile-cards-heading { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.profile-cards-wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.profile-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-elevated); border: 1.5px solid var(--border-light);
  border-radius: var(--r-sm); padding: 12px 14px; min-width: 240px; flex: 1 1 240px;
}
.profile-card-active { border-color: var(--red); }
.profile-card-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.profile-card-info { flex: 1; min-width: 0; }
.profile-card-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-card-genre { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.profile-card-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.profile-card-active-badge { font-size: 11px; font-weight: 700; color: var(--red); background: rgba(255,45,120,0.1); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.profile-card-btn { font-size: 12px; font-weight: 600; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-family: var(--font); transition: border-color 0.15s, color 0.15s; }
.profile-card-btn:hover { border-color: var(--red); color: var(--red); }
.profile-card-delete { background: none; border: none; color: var(--text-muted); font-size: 13px; cursor: pointer; padding: 4px; border-radius: 4px; line-height: 1; transition: color 0.15s; }
.profile-card-delete:hover { color: var(--red); }
.profile-card-add {
  display: flex; align-items: center; justify-content: center;
  min-width: 160px; height: 68px; border: 1.5px dashed var(--border);
  border-radius: var(--r-sm); background: none; color: var(--text-muted);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font);
  transition: border-color 0.15s, color 0.15s;
}
.profile-card-add:hover { border-color: var(--red); color: var(--red); }

/* ── NEW PROFILE MODAL ── */
.np-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  z-index: 1000; align-items: center; justify-content: center;
}
.np-modal-overlay.open { display: flex; }
.np-modal {
  background: var(--bg-elevated); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 28px 28px 24px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.np-modal-title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.np-modal-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* ── PROFILE ── */
.profile-layout { display: block; }
.profile-avatar-wrap { position: relative; width: 100px; height: 100px; margin: 0 0 20px; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border-light); }
.profile-avatar-edit {
  position: absolute; bottom: 0; right: 0;
  background: var(--red); color: white;
  border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-weight: 600;
  box-shadow: var(--shadow);
}
.superhost-badge {
  display: inline-block;
  background: rgba(245,158,11,0.12); color: var(--yellow);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 999px; padding: 4px 12px;
  font-size: 12px; font-weight: 600;
  margin-bottom: 16px;
}
.superhost-badge.hidden { display: none; }


.profile-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow); padding: 28px;
}
.profile-form h2 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.field-row-p { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.p-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.p-field label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.vis-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--text-muted); cursor: pointer; margin-top: 6px; }
.profile-contact-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-top: -4px; margin-bottom: 8px; padding: 10px 12px; background: var(--bg-elevated); border-radius: 6px; border-left: 3px solid var(--border-light); }
/* ── PRICING OPTION BLOCKS ── */
.pricing-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin: 20px 0 10px;
}
.pricing-option-block {
  background: var(--bg-input); border: 1px solid var(--border-light);
  border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 10px;
}
.pricing-option-header {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
}
.pricing-option-header input[type="checkbox"] {
  accent-color: var(--red); width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; cursor: pointer;
}
.pricing-option-title { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.pricing-option-sub   { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.deposit-calc { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.deposit-calc-row { font-size: 12px; color: var(--text-muted); }
.deposit-calc-row strong { color: var(--text); }
.deposit-calc-note { font-size: 11px; color: var(--text-muted); }
.vis-checkbox-label input[type="checkbox"] { accent-color: var(--red); width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; }
.p-field input, .p-field textarea, .p-field select {
  border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px;
  font-size: 14px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--bg-input);
  color: var(--text);
}
.p-field input::placeholder, .p-field textarea::placeholder { color: var(--text-muted); }
.p-field input:focus, .p-field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,45,120,0.1);
}
.p-field select { color: var(--text-sec); }
.p-field select option { background: var(--bg-elevated); color: var(--text); }
.p-field textarea { resize: vertical; }
.profile-form-footer {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 16px; margin-top: 8px;
}
.profile-save-msg { font-size: 13px; color: var(--green); font-weight: 600; }
.btn-save {
  background: linear-gradient(135deg, var(--red), var(--dark-red));
  color: white;
  border-radius: 8px; padding: 11px 24px;
  font-size: 14px; font-weight: 600;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.btn-save:hover { opacity: 0.88; box-shadow: 0 4px 16px rgba(255,45,120,0.35); }
.btn-save.secondary {
  background: var(--bg-elevated);
  color: var(--text-sec);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-save.secondary:hover { background: var(--border); box-shadow: none; }

/* ── MODAL OVERLAY ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
}
.modal-overlay.hidden { display: none; }

/* ── NEW / EDIT LISTING MODAL ── */
.new-listing-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  width: 90%; max-width: 560px;
  max-height: 88vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  z-index: 600;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8);
}
.new-listing-modal.hidden { display: none; }
.nlm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.nlm-header h2 { font-size: 15px; font-weight: 700; color: var(--text); }
.nlm-header button { font-size: 18px; color: var(--text-muted); transition: color 0.15s; }
.nlm-header button:hover { color: var(--red); }
.nlm-body {
  overflow-y: auto; padding: 24px;
  display: flex; flex-direction: column; gap: 4px;
}

/* Modal section divider */
.nlm-section-divider {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px; margin-top: 12px; margin-bottom: 4px;
}

/* Policy upload zone */
.policy-upload-zone {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border: 2px dashed var(--border-light);
  border-radius: var(--r); cursor: pointer;
  font-size: 13px; color: var(--text-muted);
  transition: border-color 0.15s, background 0.15s;
}
.policy-upload-zone:hover { border-color: var(--red); background: rgba(255,45,120,0.04); color: var(--text); }

/* Dropzone */
.img-dropzone {
  border: 2px dashed var(--border-light);
  border-radius: var(--r);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg-elevated);
}
.img-dropzone:hover, .img-dropzone.drag-over {
  border-color: var(--red);
  background: rgba(255,45,120,0.05);
}
.dropzone-inner p { font-size: 14px; color: var(--text-muted); margin-top: 10px; }
.dropzone-inner small { font-size: 12px; color: var(--text-muted); opacity: 0.6; }

/* Preview grid */
.img-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.img-preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.2s;
}
.img-preview-item.feature { border-color: var(--red); box-shadow: 0 0 12px rgba(255,45,120,0.4); }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-remove {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.75); color: white;
  border-radius: 50%; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1;
  opacity: 0; transition: opacity 0.15s;
  border: none; cursor: pointer; padding: 0;
}
.img-preview-item:hover .img-preview-remove { opacity: 1; }
.feature-badge {
  position: absolute; bottom: 4px; left: 4px;
  background: var(--red); color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.nlm-amenity-search-wrap { margin-bottom: 0; }
.amenity-search-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  background: var(--bg-input);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.amenity-search-input::placeholder { color: var(--text-muted); }
.amenity-search-input:focus { border-color: var(--red); }

.amenity-desc-input {
  display: block; width: 100%; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px;
  font-size: 12px; color: var(--text); outline: none; font-family: var(--font);
  transition: border-color 0.15s; box-sizing: border-box;
}
.amenity-desc-input:focus { border-color: var(--red); }
.amenity-desc-input::placeholder { color: var(--text-muted); }

.amenity-feature-btn {
  flex-shrink: 0; padding: 4px 10px; font-size: 11px; font-weight: 600;
  border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-muted);
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap; font-family: var(--font);
}
.amenity-feature-btn:hover:not(:disabled) { border-color: #f59e0b; color: #f59e0b; }
.amenity-feature-btn.active { background: rgba(245,158,11,0.15); border-color: #f59e0b; color: #f59e0b; }
.amenity-feature-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── DELETE CONFIRM MODAL ── */
.delete-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: var(--bg-card);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--r);
  width: 90%; max-width: 420px;
  padding: 32px;
  z-index: 700;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8);
  text-align: center;
}
.delete-modal.hidden { display: none; }
.delete-modal-icon { font-size: 48px; margin-bottom: 16px; }
.delete-modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.delete-modal p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 28px; }
.delete-modal-actions { display: flex; gap: 12px; justify-content: center; }
.btn-delete-confirm {
  padding: 11px 28px;
  background: #dc2626;
  color: white;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: opacity 0.2s;
  font-family: var(--font);
  cursor: pointer;
  border: none;
}
.btn-delete-confirm:hover { opacity: 0.88; }
.btn-delete-cancel {
  padding: 11px 28px;
  background: var(--bg-elevated);
  color: var(--text-sec);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: background 0.15s;
  font-family: var(--font);
  cursor: pointer;
}
.btn-delete-cancel:hover { background: var(--border); }

/* ── SIDEBAR OVERLAY (MOBILE) ── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 199;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .overview-grid   { grid-template-columns: 1fr; }

}
/* ── HOST FAQ ── */
.host-faq-item { border-bottom: 1px solid var(--border); }
.host-faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 16px 0; background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text); text-align: left;
}
.host-faq-q svg { flex-shrink: 0; transition: transform 0.2s; }
.host-faq-q.open svg { transform: rotate(180deg); }
.host-faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease-out, padding-bottom 0.25s;
  font-size: 14px; color: var(--text-sec); line-height: 1.65;
  padding-bottom: 0;
}
.host-faq-a.open { max-height: 600px; padding-bottom: 16px; }
.host-faq-a p + p { margin-top: 10px; }

/* ── FEATURE NIGHT ── */
.fn-badge {
  display: inline-block;
  font-size: 11px;
  color: #fbbf24;
  margin-left: 4px;
  vertical-align: middle;
}
.fn-feature-btn {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}
.fn-feature-btn:hover { background: rgba(251,191,36,0.2); }
.fn-feature-remove { color: var(--text-muted); background: rgba(100,100,100,0.1); border-color: rgba(100,100,100,0.2); }
.fn-feature-remove:hover { color: var(--text); background: rgba(100,100,100,0.2); }
.cdp-feature-section { padding: 10px 14px 4px; border-top: 1px solid var(--border-light); margin-top: 4px; }
.cdp-feature-night-btn {
  width: 100%; padding: 7px 10px; border-radius: 6px; cursor: pointer;
  font-size: 12px; font-weight: 600; text-align: left;
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); color: #d97706;
}
.cdp-feature-night-btn:hover { background: rgba(251,191,36,0.2); }
.cdp-feature-night-btn.cdp-feature-remove { color: var(--text-muted); background: rgba(100,100,100,0.08); border-color: rgba(100,100,100,0.2); }
.cdp-feature-night-btn.cdp-feature-remove:hover { color: var(--text); background: rgba(100,100,100,0.15); }
.cal-cell-featured { outline: 1px solid rgba(251,191,36,0.4); outline-offset: -1px; }
.feature-night-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 1100;
}
.feature-night-overlay.open { display: block; }
.feature-night-modal {
  display: none; position: fixed;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(480px, 94vw);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 16px; z-index: 1101; overflow: hidden;
}
.feature-night-modal.open { display: block; }
.fn-modal-header {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.fn-modal-title { font-size: 16px; font-weight: 700; margin: 0; }
.fn-modal-close {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); font-size: 16px;
  cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.fn-modal-close:hover { background: var(--border-light); color: var(--text); }
.fn-modal-body { padding: 20px; }
.fn-date-label {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 16px;
  padding: 8px 12px;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 8px;
}
.fn-notice {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ── ANALYTICS ── */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.analytics-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.analytics-stat-accent {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
}
.analytics-stat-value { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.analytics-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.analytics-stat-delta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── BLOCKED DATE ── */
.cal-badge-blocked {
  background: rgba(100,100,100,0.35) !important;
  color: #999 !important;
}
.cal-status-blocked {
  background: rgba(60,60,60,0.4) !important;
}

/* ── STAR RATING INPUT ── */
.star-rating { display: flex; flex-direction: row-reverse; gap: 2px; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label {
  font-size: 24px; color: var(--border-light);
  cursor: pointer; transition: color 0.1s;
  line-height: 1;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #F59E0B; }

/* ── TOUR PLANNER ── */
.tour-stops-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.tour-stop-row {
  display: grid; grid-template-columns: 1fr 1fr auto;
  gap: 10px; align-items: center;
}
.tour-results-section { margin-top: 24px; }
.tour-stop-group { margin-bottom: 20px; }
.tour-stop-group-title { font-size: 13px; font-weight: 700; color: var(--text-sec); margin-bottom: 10px; }
.tour-venue-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 8px;
}
.tour-venue-img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.tour-venue-info { flex: 1; min-width: 0; }
.tour-venue-title { font-size: 14px; font-weight: 600; color: var(--text); }
.tour-venue-loc { font-size: 12px; color: var(--text-muted); }

/* ── WISHLIST (FEATURED nights section on index) ── */
.featured-nights-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .sidebar-overlay.open { display: block; }
  .dashboard-main { margin-left: 0; }
  .hamburger { display: flex; }
  .messages-layout { grid-template-columns: 1fr; }
  .msg-thread-list { border-right: none; border-bottom: 1px solid var(--border); max-height: 260px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sections-wrap { padding: 20px 16px 48px; }
  .section-header { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
  .listings-manager-grid { grid-template-columns: 1fr; }
  .field-row-p { grid-template-columns: 1fr; }
  .reviews-summary { flex-direction: column; gap: 16px; }
}

/* ── Archived venue listings ─────────────────────────────────────────────── */
.lmgr-archived-section { margin-top: 8px; }
.lmgr-archived-section > .archived-toggle-btn {
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--text-muted); padding: 6px 0;
}
.lmgr-archived-section > .archived-toggle-btn:hover { color: var(--text); }
.listing-mgr-card--archived {
  opacity: 0.6;
  border-style: dashed;
  pointer-events: auto;
}
.listing-mgr-card--archived:hover { opacity: 0.8; }

/* Chat button repositioning handled at end of file via body # higher-specificity selector */

/* ── Earnings chart legend + YTD badge ───────────────────────────────────── */
.earnings-ytd-badge { font-size: 14px; font-weight: 700; color: var(--text); }
.earnings-chart-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.ecl-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.ecl-swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

/* ── Variable pricing: day-rate grid + calendar popup price section ─────── */
.weekday-rates-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.wdr-cell {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.wdr-cell span {
  font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.wdr-cell input {
  width: 100%; text-align: center;
  padding: 6px 4px;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-size: 12px;
}
.wdr-cell input:focus { outline: none; border-color: var(--red); }

.cdp-price-section {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
}
.cdp-price-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
}
.cdp-price-input {
  width: 80px; padding: 5px 8px;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-size: 14px; font-weight: 600;
}
.cdp-price-input:focus { outline: none; border-color: var(--red); }
.cdp-price-source {
  font-size: 11px; color: var(--text-muted); white-space: nowrap;
}
.cdp-price-btn {
  padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-sec);
}
.cdp-price-btn:hover { border-color: var(--border-light); color: var(--text); }
.cdp-price-btn-day { color: var(--red); border-color: rgba(255,45,120,0.3); }
.cdp-price-btn-day:hover { background: rgba(255,45,120,0.08); }

/* ── Analytics PIN: lock overlay ──────────────────────────────────────────── */
.analytics-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  min-height: 400px;
}
.analytics-lock-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.analytics-lock-icon {
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.analytics-lock-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.analytics-lock-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.analytics-lock-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.analytics-pin-input {
  width: 100%;
  text-align: center;
  font-size: 24px;
  letter-spacing: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}
.analytics-pin-input:focus { outline: none; border-color: var(--red); }
.analytics-pin-error {
  font-size: 13px;
  color: var(--red);
  margin: 0;
}
.analytics-lock-footer {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}
.analytics-lock-footer a { color: var(--red); text-decoration: none; }
.analytics-lock-footer a:hover { text-decoration: underline; }

/* ── Analytics PIN: settings card ─────────────────────────────────────────── */
.analytics-pin-settings-card {
  max-width: 560px;
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.analytics-pin-settings-card h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}
.analytics-pin-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.55;
}
.analytics-pin-set-form { display: flex; flex-direction: column; gap: 14px; }
.analytics-pin-input-sm {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  letter-spacing: 6px;
  text-align: center;
  box-sizing: border-box;
}
.analytics-pin-input-sm:focus { outline: none; border-color: var(--red); }

#section-overview { position: relative; }

/* ── Resolve Booking Modal ─────────────────────────────────────────────────── */
.resolve-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.resolve-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.resolve-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 0;
  gap: 12px;
}
.resolve-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.resolve-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* 5 option cards — 2-column grid, last card spans full width */
.resolve-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px 24px;
}
.resolve-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.resolve-opt:hover { border-color: var(--border-light); }
.resolve-opt.active {
  border-color: var(--red);
  background: rgba(255,45,120,0.06);
}
.resolve-opt--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.resolve-opt--wide .resolve-opt-desc { margin-left: auto; text-align: right; }

.resolve-opt-icon {
  font-size: 16px;
  font-weight: 700;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
  font-style: normal;
  flex-shrink: 0;
}
.resolve-opt--wide .resolve-opt-icon { margin-bottom: 0; margin-right: 10px; }
.resolve-opt-icon--green { background: rgba(16,185,129,0.15); color: #10B981; }
.resolve-opt-icon--red   { background: rgba(255,45,120,0.15);  color: var(--red); }
.resolve-opt-icon--amber { background: rgba(245,158,11,0.15); color: #F59E0B; }
.resolve-opt-icon--blue  { background: rgba(59,130,246,0.15);  color: #3B82F6; }

.resolve-opt-label {
  font-size: 13px; font-weight: 600; color: var(--text);
}
.resolve-opt-desc {
  font-size: 11px; color: var(--text-muted); line-height: 1.4;
}

/* Details panel */
.resolve-details {
  margin: 0 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.resolve-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--text-sec);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.resolve-detail-row:last-of-type { border-bottom: none; }
.resolve-detail-row.resolve-detail-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  border-bottom: none;
  font-weight: 600;
}
.resolve-detail-label { color: var(--text-muted); }
.resolve-detail-muted { color: var(--text-muted); font-size: 12px; }
.resolve-detail-amount { color: #10B981; font-size: 16px; font-weight: 700; }
.resolve-detail-amount--zero { color: var(--text-muted); }
.resolve-detail-note {
  font-size: 12px; color: var(--text-muted);
  margin: 10px 0 0; line-height: 1.5;
}

/* Cancellation policy block */
.resolve-policy-block {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.resolve-policy-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: #F59E0B; margin-bottom: 6px;
}
.resolve-policy-text {
  font-size: 12px; color: var(--text-sec);
  line-height: 1.55; margin-bottom: 8px;
}
.resolve-policy-applied {
  font-size: 12px; font-weight: 600;
  color: var(--text);
}

.resolve-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 24px;
}

/* ── Cancellation deposit split selector ── */
.resolve-split-header {
  font-size: 13px; font-weight: 600;
  color: var(--text); margin: 16px 0 10px;
}
.resolve-split-sub {
  font-size: 11px; font-weight: 400;
  color: var(--text-muted); margin-left: 4px;
}
.resolve-split-presets {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.resolve-split-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text); font-size: 13px; font-weight: 600;
  cursor: pointer; line-height: 1.3;
  transition: border-color .15s;
}
.resolve-split-btn span {
  font-size: 10px; font-weight: 400;
  color: var(--text-muted); margin-top: 2px;
}
.resolve-split-btn:hover { border-color: var(--border-light); }
.resolve-split-btn.active {
  border-color: #FF2D78;
  background: rgba(255,45,120,0.08);
  color: #FF2D78;
}
.resolve-split-btn.active span { color: #FF2D78; }

/* ── Escrow table section headers ── */
.escrow-section-header td {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  padding: 14px 12px 6px;
  background: transparent;
  border-bottom: 1px solid var(--border-light);
}
.escrow-section-header--disputed td { color: #EF4444; }
.escrow-section-header--upcoming  td { color: var(--text-muted); }

/* ── Pending resolution badges ── */
.escrow-pending-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(59,130,246,0.15);
  color: #60A5FA;
  border: 1px solid rgba(59,130,246,0.3);
}
.escrow-time-remaining {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.status-disputed {
  background: rgba(239,68,68,0.15);
  color: #F87171;
  border: 1px solid rgba(239,68,68,0.3);
}
.status-res-pending {
  background: rgba(59,130,246,0.15);
  color: #60A5FA;
  border: 1px solid rgba(59,130,246,0.3);
}
.res-disputed-btn {
  color: #F87171 !important;
  border-color: rgba(239,68,68,0.4) !important;
}
.escrow-dispute-notes {
  font-size: 11px;
  color: var(--text-sec);
  font-style: italic;
  margin-top: 4px;
  max-width: 200px;
  white-space: normal;
  line-height: 1.4;
}
.delta-disputed {
  color: #F87171;
  font-size: 11px;
}

/* ── Chat button: move to bottom-right on host dashboard to clear sidebar ── */
/* body # selector has higher specificity than # alone — wins regardless of CSS load order */
@media (min-width: 769px) {
  body #gnv-chat-btn   { left: auto; right: 28px; }
  body #gnv-chat-panel { left: auto; right: 28px; }
}
