:root {
  --navy-950: #07111e;
  --navy-900: #0B192C;
  --navy-800: #132843;
  --emerald-600: #059669;
  --emerald-500: #10B981;
  --emerald-bg: #ECFDF5;
  --teal-600: #0D9488;
  --amber-600: #D97706;
  --amber-500: #F59E0B;
  --amber-bg: #FFFBEB;
  --red-600: #DC2626;
  --red-bg: #FEF2F2;

  --bg-app: #F3F6FA;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --border-col: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(11, 25, 44, 0.07);
  --shadow-md: 0 8px 24px rgba(11, 25, 44, 0.12);
}

html[data-theme="dark"] {
  --bg-app: #081220;
  --bg-surface: #0F1E33;
  --bg-subtle: #152842;
  --text-main: #F1F5F9;
  --text-muted: #CBD5E1;
  --text-light: #94A3B8;
  --border-col: #1E3452;
  --emerald-bg: rgba(5, 150, 105, 0.18);
  --amber-bg: rgba(217, 119, 6, 0.18);
  --red-bg: rgba(220, 38, 38, 0.18);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-app);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header (#0B192C) */
.topbar {
  background: var(--navy-900);
  color: #FFFFFF;
  padding: 0.65rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  z-index: 30;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.radar-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.12));
  border: 1.5px solid var(--emerald-500);
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}

.radar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 10px var(--emerald-500);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-pill {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.brand-sub {
  font-size: 0.73rem;
  color: #94A3B8;
  margin-top: 1px;
}

.topbar-kpis {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.kpi-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.3rem 0.65rem;
  display: flex;
  flex-direction: column;
}

.kpi-vip {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(217, 119, 6, 0.12);
}

.kpi-label {
  font-size: 0.65rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-val {
  font-size: 0.9rem;
  font-weight: 700;
}

.text-emerald { color: #34D399; }
.text-amber { color: #FBBF24; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-vip-cta {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: #0B192C;
  font-weight: 800;
  font-size: 0.8rem;
  border: none;
  border-radius: 8px;
  padding: 0.52rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
  transition: transform 0.12s ease;
}

.btn-vip-cta:hover {
  transform: translateY(-1px);
}

/* Filter Bar */
.filter-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-col);
  padding: 0.55rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  z-index: 25;
}

.filter-row-main {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) repeat(6, minmax(120px, 1fr));
  gap: 0.45rem;
}

.filter-row-main input,
.filter-row-main select {
  width: 100%;
  height: 34px;
  padding: 0 0.6rem;
  border-radius: 7px;
  border: 1px solid var(--border-col);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.79rem;
  font-family: inherit;
}

.filter-row-toggles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.toggle-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-col);
  background: var(--bg-subtle);
  cursor: pointer;
  user-select: none;
}

.chip-toggle input {
  accent-color: var(--emerald-600);
}

.chip-toggle-vip {
  border-color: rgba(217, 119, 6, 0.45);
  background: var(--amber-bg);
}

.btn-reset {
  background: transparent;
  border: 1px dashed var(--border-col);
  color: var(--text-light);
  font-size: 0.74rem;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.province-jump-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.jump-pill {
  border: 1px solid var(--border-col);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.jump-pill.active {
  background: var(--navy-900);
  color: #FFFFFF;
  border-color: var(--navy-900);
}

html[data-theme="dark"] .jump-pill.active {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
}

/* Mobile View Switcher */
.mobile-view-tabs {
  display: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-col);
  padding: 0.35rem 0.75rem;
  gap: 0.5rem;
}

.mob-tab {
  flex: 1;
  padding: 0.42rem;
  border-radius: 7px;
  border: 1px solid var(--border-col);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}

.mob-tab.active {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}

/* Split Workspace */
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 0;
}

.map-pane {
  position: relative;
  height: 100%;
  min-height: 320px;
}

#radarMap {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-legend {
  position: absolute;
  bottom: 16px;
  left: 14px;
  z-index: 10;
  background: rgba(11, 25, 44, 0.9);
  color: #F8FAFC;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-size: 0.72rem;
  display: flex;
  gap: 0.75rem;
  backdrop-filter: blur(6px);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.dot-emerald { background: #10B981; }
.dot-teal { background: #14B8A6; }
.dot-amber { background: #F59E0B; }

/* Custom Leaflet Price/Score Pill Markers */
.rr-marker {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 3px 10px rgba(11, 25, 44, 0.35);
  border: 1.5px solid #fff;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease;
}
.rr-marker:hover {
  transform: translate(-50%, -56%) scale(1.08);
  z-index: 999 !important;
}
.rr-score-snipe { background: #059669; }
.rr-score-strong { background: #0F766E; }
.rr-score-watch { background: #D97706; }

/* Feed Pane & Property Cards */
.feed-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-left: 1px solid var(--border-col);
  background: var(--bg-app);
}

.feed-header {
  padding: 0.65rem 0.95rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-col);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.feed-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 1px;
}

.tg-pill {
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--emerald-600);
  background: var(--emerald-bg);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.cards-grid {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.deal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-col);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.deal-card:hover {
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-md);
}

.deal-card.vip-card {
  border-left: 4px solid var(--amber-500);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.score-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.52rem;
  border-radius: 6px;
  color: #fff;
}
.score-snipe { background: var(--emerald-600); }
.score-strong { background: var(--teal-600); }
.score-watch { background: var(--amber-600); }

.source-badge {
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.18rem 0.46rem;
  border-radius: 6px;
  background: var(--navy-900);
  color: #fff;
}

.vip-lock-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.18rem 0.48rem;
  border-radius: 6px;
  background: var(--amber-bg);
  color: var(--amber-600);
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.countdown-pill {
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--amber-600);
  background: var(--amber-bg);
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
}

.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.card-address {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.card-price-strip {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: var(--bg-subtle);
  border-radius: 8px;
  margin-bottom: 0.55rem;
}

.min-bid-val {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
}

.comps-strike {
  font-size: 0.74rem;
  color: var(--text-light);
  margin-left: 0.35rem;
}

.discount-tag {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--emerald-600);
  background: var(--emerald-bg);
  padding: 0.18rem 0.48rem;
  border-radius: 6px;
}

.card-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.73rem;
  color: var(--text-muted);
}

.status-tag {
  font-weight: 600;
  padding: 0.14rem 0.42rem;
  border-radius: 5px;
}
.status-ok {
  background: var(--emerald-bg);
  color: var(--emerald-600);
}
.status-warn {
  background: var(--red-bg);
  color: var(--red-600);
}

/* Slide-Over Property Investment Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 30, 0.5);
  z-index: 50;
}

.investment-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100vh;
  background: var(--bg-surface);
  z-index: 60;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(7, 17, 30, 0.3);
  border-left: 1px solid var(--border-col);
}

.drawer-sticky-top {
  background: var(--navy-900);
  color: #fff;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.drawer-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-icon-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  font-size: 0.95rem;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-headline h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.drawer-sub {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.vip-gate-banner {
  background: linear-gradient(135deg, #0B192C, #183254);
  color: #fff;
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.vip-gate-banner p {
  font-size: 0.78rem;
  color: #CBD5E1;
  margin-top: 2px;
}

.valuation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.val-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-col);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.val-box span {
  display: block;
  font-size: 0.69rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.val-box strong {
  display: block;
  font-size: 1rem;
  margin-top: 0.2rem;
}

.panel-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-col);
  border-radius: 11px;
  padding: 0.9rem 1rem;
}

.panel-card h3 {
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.score-bars {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.bar-row {
  font-size: 0.76rem;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  color: var(--text-muted);
}

.bar-track {
  height: 7px;
  background: var(--border-col);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--emerald-600);
  border-radius: 999px;
}

/* Amortization Calculator */
.dp-slider-wrap {
  margin-bottom: 0.8rem;
}

.dp-slider-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.79rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.dp-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--emerald-600);
}

.loan-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.loan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-col);
  border-radius: 9px;
  padding: 0.7rem 0.8rem;
}

.loan-card.pagibig-highlight {
  border-color: var(--emerald-500);
}

.loan-title {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-muted);
}

.loan-monthly {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0.25rem 0;
}

.loan-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.45;
}

.yield-strip {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-col);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.79rem;
}

/* Dual Strategy Tabs: Buy & Hold vs Fix & Flip ROI */
.strategy-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: var(--bg-surface);
  padding: 0.25rem;
  border-radius: 9px;
  border: 1px solid var(--border-col);
  margin-bottom: 0.85rem;
}

.strat-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.77rem;
  font-weight: 700;
  padding: 0.46rem 0.5rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.strat-tab.active {
  background: var(--navy-900);
  color: #FFFFFF;
}

html[data-theme="dark"] .strat-tab.active {
  background: var(--emerald-600);
}

.flip-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.flip-field label {
  display: block;
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.22rem;
}

.flip-field input,
.flip-field select {
  width: 100%;
  height: 34px;
  padding: 0 0.55rem;
  border-radius: 7px;
  border: 1px solid var(--border-col);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.79rem;
  font-family: inherit;
}

.flip-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.flip-kpi-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-col);
  border-radius: 9px;
  padding: 0.65rem 0.75rem;
}

.flip-kpi-box.flip-profit-highlight {
  border-color: var(--emerald-500);
}

.flip-kpi-label {
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.flip-kpi-val {
  font-size: 1.04rem;
  font-weight: 800;
  margin-top: 0.18rem;
}

.seo-hub-footer {
  padding: 0.55rem 0.85rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-col);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.71rem;
  color: var(--text-light);
}

.seo-hub-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.seo-hub-footer a:hover {
  color: var(--emerald-600);
  text-decoration: underline;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.check-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-col);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 0.77rem;
}

.check-item strong {
  display: block;
  margin-bottom: 2px;
}

.drawer-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-col);
  background: var(--bg-subtle);
  color: var(--text-main);
  cursor: pointer;
  text-align: center;
}

.btn-action-primary {
  background: var(--emerald-600);
  color: #fff;
  border-color: var(--emerald-600);
}

/* VIP Conversion Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 30, 0.68);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.vip-modal {
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border-color: var(--border-col);
}

.vip-modal-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--amber-bg);
  color: var(--amber-600);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.vip-modal h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.28rem;
  line-height: 1.28;
  margin-bottom: 0.45rem;
}

.vip-modal-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.vip-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-size: 0.8rem;
  background: var(--bg-subtle);
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-col);
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.form-field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.form-field input,
.form-field select {
  width: 100%;
  height: 38px;
  padding: 0 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border-col);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.83rem;
}

.btn-vip-submit {
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #059669, #10B981);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
}

.form-feedback {
  margin-top: 0.65rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  background: var(--emerald-bg);
  color: var(--emerald-600);
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.vip-token-box {
  margin-top: 0.95rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-col);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.vip-token-box summary {
  cursor: pointer;
  font-weight: 600;
}

.token-inline {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.token-inline input {
  flex: 1;
  height: 34px;
  padding: 0 0.6rem;
  border-radius: 7px;
  border: 1px solid var(--border-col);
  background: var(--bg-subtle);
  color: var(--text-main);
}

.btn-token-apply {
  padding: 0 0.85rem;
  border-radius: 7px;
  border: none;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.token-feedback {
  margin-top: 0.35rem;
  font-size: 0.75rem;
}

.hidden {
  display: none !important;
}

/* Responsive Mobile & Tablet Layout */
@media (max-width: 1080px) {
  .topbar-kpis {
    display: none;
  }
  .filter-row-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  body {
    height: 100dvh;
  }
  .brand-sub {
    display: none;
  }
  .mobile-view-tabs {
    display: flex;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .workspace.mobile-list-only .map-pane {
    display: none;
  }
  .workspace:not(.mobile-list-only) .feed-pane {
    display: none;
  }
  .valuation-grid,
  .loan-compare-grid,
  .form-grid,
  .drawer-actions {
    grid-template-columns: 1fr;
  }
}
