/* HavenPoint brand polish */
:root {
  --haven-primary: #002050;
  --haven-primary-dark: #001636;
  --haven-accent: #c09020;
  --haven-surface: #f7f5ef;
}

body {
  background: var(--haven-surface);
}

a {
  color: var(--haven-primary);
}

.MuiAppBar-root {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(0, 32, 80, 0.12);
}

.MuiButton-contained,
.MuiFab-root {
  background: linear-gradient(135deg, var(--haven-primary), var(--haven-primary-dark)) !important;
  color: #fff !important;
}

.MuiButton-contained:hover,
.MuiFab-root:hover {
  background: linear-gradient(135deg, var(--haven-primary-dark), #000f28) !important;
}

.MuiButton-outlined {
  border-color: rgba(0, 32, 80, 0.34) !important;
  color: var(--haven-primary) !important;
}

.MuiChip-colorPrimary,
.MuiBadge-colorPrimary .MuiBadge-badge,
.MuiCircularProgress-colorPrimary {
  color: var(--haven-primary) !important;
}

.MuiChip-colorPrimary {
  background-color: rgba(0, 32, 80, 0.1) !important;
}

.Mui-selected,
.MuiTabs-indicator {
  color: var(--haven-primary) !important;
}

.MuiTabs-indicator {
  background-color: var(--haven-accent) !important;
}

img[src="/img/haven-point-logo.png"],
img[src*="img/haven-point-logo.png"] {
  object-fit: contain;
}

body.route-dashboard {
  background: #f4f6f8;
}

body.route-dashboard main {
  background:
    linear-gradient(180deg, #f7f9fc 0%, #f4f6f8 220px),
    #f4f6f8 !important;
}

body.route-dashboard .MuiAppBar-root {
  background: #111827 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(15, 23, 42, 0.16) !important;
}

body.route-dashboard .MuiDrawer-paper {
  background: #111827 !important;
  color: #e5e7eb !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.route-dashboard .MuiDrawer-paper .MuiListItemButton-root {
  margin: 3px 10px !important;
  border-radius: 8px !important;
}

body.route-dashboard .MuiDrawer-paper .MuiListItemButton-root:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

body.route-dashboard .MuiDrawer-paper .MuiListItemIcon-root {
  color: #cbd5e1 !important;
  min-width: 42px !important;
}

body.route-dashboard .MuiCard-root,
body.route-dashboard .MuiPaper-root {
  border-radius: 8px !important;
  border: 1px solid #e3e8ef !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
}

body.route-dashboard .MuiCard-root:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
}

body.route-dashboard .MuiTypography-h3 {
  letter-spacing: 0 !important;
}

body.route-dashboard .MuiChip-root {
  border-radius: 7px !important;
  font-weight: 700 !important;
}

body.route-dashboard .MuiButton-root {
  border-radius: 8px !important;
  text-transform: none !important;
  font-weight: 700 !important;
}

body.route-agents {
  background: #f5f7fb;
}

body.route-agents .MuiContainer-root {
  max-width: 1180px !important;
}

body.route-agents .MuiGrid-container {
  align-items: stretch !important;
}

body.route-agents .MuiGrid-item {
  display: flex !important;
}

body.route-agents .MuiCard-root {
  border-radius: 8px !important;
  border: 1px solid #e3e8ef !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
}

body.route-agents .MuiCardContent-root {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

body.route-agents .MuiTypography-body2 {
  line-height: 1.55 !important;
}

body.route-agents .MuiButton-root {
  border-radius: 8px !important;
  text-transform: none !important;
  font-weight: 700 !important;
}

@media (min-width: 1024px) {
  body.route-agents .MuiGrid-container > .MuiGrid-item {
    flex-basis: 33.333333% !important;
    max-width: 33.333333% !important;
  }
}

@media (min-width: 700px) and (max-width: 1023.98px) {
  body.route-agents .MuiGrid-container > .MuiGrid-item {
    flex-basis: 33.333333% !important;
    max-width: 33.333333% !important;
  }
}

@media (max-width: 699.98px) {
  body.route-agents .MuiGrid-container > .MuiGrid-item {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }
}

/* HavenPoint WhatsApp buttons */
a[href*="api.whatsapp.com"].MuiButton-root,
.MuiButton-containedSuccess,
.MuiButton-colorSuccess.MuiButton-contained {
  background: #c09020 !important;
  border-color: #c09020 !important;
  color: #002050 !important;
  box-shadow: 0 10px 22px rgba(192, 144, 32, 0.24) !important;
}

a[href*="api.whatsapp.com"].MuiButton-root:hover,
.MuiButton-containedSuccess:hover,
.MuiButton-colorSuccess.MuiButton-contained:hover {
  background: #ffffff !important;
  border-color: #c09020 !important;
  color: #002050 !important;
}

a[href*="api.whatsapp.com"].MuiButton-outlined,
.MuiButton-colorSuccess.MuiButton-outlined {
  background: transparent !important;
  border-color: #c09020 !important;
  color: #c09020 !important;
  box-shadow: none !important;
}

a[href*="api.whatsapp.com"].MuiButton-outlined:hover,
.MuiButton-colorSuccess.MuiButton-outlined:hover {
  background: #ffffff !important;
  color: #002050 !important;
}

/* HavenPoint pricing page */
.hp-pricing-nav-link {
  color: inherit !important;
  text-decoration: none;
  font-weight: 800;
  padding: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  line-height: inherit;
}

.hp-pricing-nav-link:hover {
  background: transparent;
  color: inherit !important;
  text-decoration: underline;
}

.hp-pricing-page {
  min-height: 100vh;
  background: #f7f5ef;
  color: #111827;
}

.hp-pricing-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 32, 80, 0.12);
  position: sticky;
  top: 0;
  z-index: 5;
}

.hp-pricing-brand img {
  height: 48px;
  width: 144px;
  object-fit: contain;
}

.hp-pricing-header nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hp-pricing-header nav a {
  color: #002050;
  text-decoration: none;
  font-weight: 800;
}

.hp-pricing-hero {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 64px) 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.hp-pricing-hero p,
.hp-boost-section > div:first-child p,
.hp-plan-kicker {
  margin: 0 0 10px;
  color: #c09020;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.hp-pricing-hero h1 {
  margin: 0;
  color: #002050;
  max-width: 840px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hp-pricing-hero span {
  display: block;
  max-width: 720px;
  margin-top: 18px;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hp-plan-grid,
.hp-boost-section,
.hp-payment-note {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px clamp(18px, 5vw, 64px);
}

.hp-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.hp-plan-card,
.hp-boost-card,
.hp-payment-note {
  background: #fff;
  border: 1px solid rgba(0, 32, 80, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hp-plan-card {
  min-height: 430px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.hp-plan-card.is-featured {
  border-color: #c09020;
  box-shadow: 0 16px 34px rgba(192, 144, 32, 0.18);
}

.hp-plan-card h2,
.hp-boost-section h2,
.hp-payment-note h2,
.hp-boost-card h3 {
  color: #002050;
  letter-spacing: 0;
  margin: 0;
}

.hp-plan-description {
  color: #64748b;
  line-height: 1.55;
  min-height: 74px;
}

.hp-plan-price span {
  color: #002050;
  font-size: 2.35rem;
  font-weight: 950;
}

.hp-plan-price small {
  color: #64748b;
  font-weight: 800;
}

.hp-plan-card ul {
  padding-left: 18px;
  color: #334155;
  line-height: 1.8;
}

.hp-upgrade-button {
  border: 1px solid #c09020;
  background: #c09020;
  color: #002050;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.hp-upgrade-button:hover {
  background: #fff;
}

.hp-boost-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 20px;
  align-items: start;
}

.hp-boost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hp-boost-card {
  padding: 18px;
}

.hp-boost-card p,
.hp-payment-note p {
  color: #64748b;
  line-height: 1.6;
}

.hp-boost-card strong {
  color: #c09020;
  font-size: 1.45rem;
}

.hp-payment-note {
  margin-bottom: 42px;
}

.hp-upgrade-status {
  color: #002050 !important;
  font-weight: 900;
}

.hp-loading {
  grid-column: 1 / -1;
  padding: 28px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 32, 80, 0.12);
  color: #64748b;
}

@media (max-width: 980px) {
  .hp-plan-grid,
  .hp-boost-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-boost-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hp-pricing-header {
    height: auto;
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hp-pricing-header nav {
    width: 100%;
    justify-content: space-between;
  }

  .hp-plan-grid,
  .hp-boost-grid {
    grid-template-columns: 1fr;
  }

  .hp-plan-card {
    min-height: 0;
  }
}

.hp-plan-action {
  display: grid;
  gap: 10px;
}

.hp-plan-message {
  min-height: 38px;
  margin: 0;
  color: #475569;
  font-weight: 800;
  line-height: 1.45;
}

.hp-plan-message[data-tone="success"] {
  color: #166534;
}

.hp-plan-message[data-tone="error"] {
  color: #b91c1c;
}

.hp-upgrade-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

/* Simple 3-column agent cards */
@media (min-width: 1024px) {
  body.route-agents .MuiGrid-container > .MuiGrid-item {
    flex-basis: 33.333333% !important;
    max-width: 33.333333% !important;
  }
}

/* Force Agents page to 3 cards per row on desktop */
body.route-agents .MuiGrid-container {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
  margin: 0 !important;
  width: 100% !important;
}

body.route-agents .MuiGrid-container > .MuiGrid-item {
  display: block !important;
  flex: none !important;
  flex-basis: auto !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

@media (min-width: 900px) {
  body.route-agents .MuiGrid-container {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.hp-admin-payment-shortcut {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: #c09020;
  color: #002050 !important;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.hp-admin-payment-shortcut:hover {
  background: #fff;
  outline: 1px solid #c09020;
}

.hp-admin-payments-page {
  min-height: 100vh;
  background: #f6f8fb;
  color: #0f172a;
  padding: 32px clamp(16px, 4vw, 54px);
}

.hp-admin-payments-shell {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.hp-admin-payments-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 8px;
  background: #002050;
  color: #fff;
}

.hp-admin-payments-header p,
.hp-admin-payments-header h1,
.hp-admin-payments-header span {
  margin: 0;
  letter-spacing: 0;
}

.hp-admin-payments-header p {
  color: #c09020;
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hp-admin-payments-header h1 {
  margin-top: 6px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 950;
}

.hp-admin-payments-header span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.hp-admin-payments-header a,
.hp-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  color: #002050 !important;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.hp-admin-payment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-admin-payment-tabs button,
.hp-admin-payment-actions button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(0, 32, 80, 0.16);
  background: #fff;
  color: #002050;
  font-weight: 900;
  cursor: pointer;
}

.hp-admin-payment-tabs button {
  padding: 0 18px;
}

.hp-admin-payment-tabs button.is-active,
.hp-admin-payment-actions button:first-child {
  border-color: #c09020;
  background: #c09020;
  color: #002050;
}

.hp-admin-payment-status,
.hp-admin-error {
  padding: 16px 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0, 32, 80, 0.12);
  color: #475569;
  font-weight: 800;
}

.hp-admin-error {
  color: #b91c1c;
}

.hp-admin-payment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hp-admin-payment-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0, 32, 80, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hp-admin-payment-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.hp-admin-payment-main h2,
.hp-admin-payment-main p,
.hp-admin-payment-main span {
  margin: 0;
  letter-spacing: 0;
}

.hp-admin-payment-main h2 {
  margin-top: 4px;
  color: #002050;
  font-size: 1.25rem;
  font-weight: 950;
}

.hp-admin-payment-main span {
  display: block;
  margin-top: 8px;
  color: #c09020;
  font-size: 1.25rem;
  font-weight: 950;
}

.hp-admin-payment-type {
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hp-payment-status {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.hp-status-pending {
  background: #fef3c7;
  color: #92400e;
}

.hp-status-paid {
  background: #dcfce7;
  color: #166534;
}

.hp-status-failed,
.hp-status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.hp-admin-payment-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
}

.hp-admin-payment-card dl div {
  min-width: 0;
}

.hp-admin-payment-card dt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.hp-admin-payment-card dd {
  margin: 3px 0 0;
  color: #0f172a;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.hp-admin-payment-note {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  line-height: 1.5;
}

.hp-admin-payment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hp-admin-payment-actions button {
  padding: 0 14px;
}

.hp-admin-payment-actions button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.hp-admin-payment-actions p {
  margin: 0;
  color: #475569;
  font-weight: 800;
}

@media (max-width: 860px) {
  .hp-admin-payment-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hp-admin-payments-page {
    padding: 18px 12px;
  }

  .hp-admin-payments-header,
  .hp-admin-payment-main {
    flex-direction: column;
  }

  .hp-admin-payment-card dl {
    grid-template-columns: 1fr;
  }

  .hp-admin-payment-shortcut {
    right: 12px;
    bottom: 12px;
  }
}

/* Dashboard navbar logo visibility */
body.route-dashboard .MuiAppBar-root img[src="/img/haven-point-logo.png"],
body.route-dashboard .MuiAppBar-root img[src*="img/haven-point-logo.png"],
body.route-dashboard header img[src="/img/haven-point-logo.png"],
body.route-dashboard header img[src*="img/haven-point-logo.png"] {
  filter: drop-shadow(0 0 8px rgba(192, 144, 32, 0.9)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.35));
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
}

body.route-dashboard .MuiAppBar-root a:has(img[src*="haven-point-logo"]),
body.route-dashboard header a:has(img[src*="haven-point-logo"]) {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

/* Agent billing page */
.hp-billing-shortcut {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: #c09020;
  color: #002050 !important;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.hp-billing-shortcut:hover {
  background: #fff;
  outline: 1px solid #c09020;
}

.hp-billing-page {
  min-height: 100vh;
  background: #f6f8fb;
  color: #0f172a;
  padding: 32px clamp(16px, 4vw, 54px);
}

.hp-billing-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.hp-billing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 8px;
  background: #002050;
  color: #fff;
}

.hp-billing-header p,
.hp-billing-header h1,
.hp-billing-header span,
.hp-section-title p,
.hp-section-title h2 {
  margin: 0;
  letter-spacing: 0;
}

.hp-billing-header p,
.hp-section-title p {
  color: #c09020;
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hp-billing-header h1 {
  margin-top: 6px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 950;
}

.hp-billing-header span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.hp-billing-header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  color: #002050 !important;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.hp-billing-summary,
.hp-billing-plan-grid,
.hp-billing-payment-list {
  display: grid;
  gap: 16px;
}

.hp-billing-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-billing-summary article,
.hp-billing-plan-card,
.hp-boost-form,
.hp-billing-payment-row {
  background: #fff;
  border: 1px solid rgba(0, 32, 80, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hp-billing-summary article {
  padding: 20px;
}

.hp-billing-summary p,
.hp-billing-plan-card p,
.hp-billing-payment-row p {
  margin: 0;
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hp-billing-summary h2,
.hp-section-title h2,
.hp-billing-plan-card h3,
.hp-billing-payment-row h3 {
  margin: 6px 0 0;
  color: #002050;
  font-weight: 950;
  letter-spacing: 0;
}

.hp-billing-summary small,
.hp-billing-payment-row span {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-weight: 750;
}

.hp-usage-bar {
  height: 10px;
  margin: 12px 0 4px;
  background: rgba(0, 32, 80, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.hp-usage-bar span {
  display: block;
  height: 100%;
  background: #c09020;
  border-radius: inherit;
}

.hp-billing-plans,
.hp-billing-boost,
.hp-billing-history {
  display: grid;
  gap: 14px;
}

.hp-billing-plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hp-billing-plan-card {
  min-height: 330px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.hp-billing-plan-card.is-current {
  border-color: #c09020;
  box-shadow: 0 16px 34px rgba(192, 144, 32, 0.16);
}

.hp-billing-plan-card strong {
  display: block;
  margin-top: 10px;
  color: #c09020;
  font-size: 2rem;
  font-weight: 950;
}

.hp-billing-plan-card strong span {
  color: #64748b;
  font-size: 0.85rem;
}

.hp-billing-plan-card ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.75;
}

.hp-billing-plan-card button,
.hp-boost-form button {
  min-height: 44px;
  border: 1px solid #c09020;
  border-radius: 8px;
  background: #c09020;
  color: #002050;
  font-weight: 950;
  cursor: pointer;
}

.hp-billing-plan-card button:disabled,
.hp-boost-form button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.hp-boost-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
}

.hp-boost-form label {
  display: grid;
  gap: 8px;
  color: #64748b;
  font-weight: 900;
}

.hp-boost-form select {
  min-height: 44px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0, 32, 80, 0.18);
  background: #fff;
  color: #0f172a;
  padding: 0 12px;
  font-weight: 800;
}

.hp-boost-form p {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: #475569;
  font-weight: 800;
}

.hp-billing-payment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
}

.hp-billing-payment-row strong {
  color: #c09020;
  font-size: 1.08rem;
}

.hp-billing-payment-row em {
  font-style: normal;
  justify-self: end;
}

@media (max-width: 1020px) {
  .hp-billing-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-billing-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .hp-billing-page {
    padding: 18px 12px;
  }

  .hp-billing-header,
  .hp-boost-form,
  .hp-billing-payment-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hp-billing-plan-grid {
    grid-template-columns: 1fr;
  }

  .hp-billing-payment-row em {
    justify-self: start;
  }

  .hp-billing-shortcut {
    right: 12px;
    bottom: 12px;
  }
}

.hp-status-active {
  background: #dcfce7;
  color: #166534;
}

.hp-status-inactive {
  background: #e2e8f0;
  color: #334155;
}

/* Boosted listings and paid lead access */
.hp-property-boost-card {
  position: relative !important;
  overflow: visible !important;
}

.hp-featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 8;
  max-width: calc(100% - 20px);
  padding: 6px 10px;
  border-radius: 999px;
  background: #c09020;
  color: #002050;
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.hp-featured-badge.is-pending {
  background: #fff;
  color: #92400e;
  border: 1px solid #c09020;
}

.hp-card-boost-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 8;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #c09020;
  border-radius: 8px;
  background: #fff;
  color: #002050;
  font-size: 0.76rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.hp-card-boost-button:hover {
  background: #c09020;
}

.hp-lead-locked,
[data-lead-locked="true"] {
  border-color: rgba(192, 144, 32, 0.45) !important;
}

@media (max-width: 640px) {
  .hp-featured-badge {
    top: 8px;
    left: 8px;
    font-size: 0.68rem;
  }

  .hp-card-boost-button {
    right: 8px;
    bottom: 8px;
    min-height: 32px;
    font-size: 0.7rem;
  }
}

/* Traffic, search, request, and trust tools */
.hp-traffic-tools {
  max-width: 1180px;
  margin: 18px auto;
  padding: 0 clamp(14px, 4vw, 24px);
}

.hp-advanced-search,
.hp-popular-searches,
.hp-request-shell,
.hp-seo-hero,
.hp-seo-results,
.hp-seo-links {
  background: #fff;
  border: 1px solid rgba(0, 32, 80, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hp-advanced-search {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  align-items: center;
}

.hp-advanced-search input,
.hp-advanced-search select,
.hp-request-form input,
.hp-request-form select,
.hp-request-form textarea {
  min-height: 42px;
  border: 1px solid rgba(0, 32, 80, 0.18);
  border-radius: 8px;
  padding: 0 11px;
  color: #0f172a;
  font-weight: 750;
}

.hp-advanced-search label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  font-weight: 850;
}

.hp-advanced-search button,
.hp-request-form button,
.hp-property-actions button {
  min-height: 42px;
  border: 1px solid #c09020;
  border-radius: 8px;
  background: #c09020;
  color: #002050;
  font-weight: 950;
  cursor: pointer;
}

.hp-popular-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 12px 14px;
}

.hp-popular-searches strong {
  color: #002050;
}

.hp-popular-searches a {
  color: #002050 !important;
  background: rgba(192, 144, 32, 0.14);
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 900;
  text-decoration: none;
}

.hp-property-quickfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px 46px;
}

.hp-property-quickfacts span {
  border-radius: 999px;
  background: rgba(0, 32, 80, 0.08);
  color: #002050;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.hp-property-actions {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 9;
  display: flex;
  gap: 6px;
}

.hp-property-actions button {
  min-height: 32px;
  padding: 0 9px;
  background: #fff;
  font-size: 0.72rem;
}

.hp-request-page,
.hp-seo-page {
  min-height: 100vh;
  background: #f6f8fb;
  padding: 28px clamp(14px, 4vw, 54px);
}

.hp-request-shell,
.hp-seo-hero,
.hp-seo-results,
.hp-seo-links {
  max-width: 980px;
  margin: 0 auto 18px;
  padding: 22px;
}

.hp-request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hp-request-form textarea {
  grid-column: 1 / -1;
  min-height: 120px;
  padding-top: 10px;
}

.hp-request-form button,
.hp-request-form p {
  grid-column: 1 / -1;
}

.hp-request-form p {
  margin: 0;
  color: #475569;
  font-weight: 850;
}

.hp-seo-hero {
  background: #002050;
  color: #fff;
}

.hp-seo-hero p,
.hp-seo-hero h1,
.hp-seo-hero span {
  margin: 0;
  letter-spacing: 0;
}

.hp-seo-hero p {
  color: #c09020;
  font-weight: 950;
  text-transform: uppercase;
}

.hp-seo-hero h1 {
  margin-top: 8px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 950;
}

.hp-seo-hero span {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,0.78);
}

.hp-seo-results {
  display: grid;
  gap: 12px;
}

.hp-seo-result a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  color: #0f172a !important;
  text-decoration: none;
  padding: 13px;
  border: 1px solid rgba(0, 32, 80, 0.1);
  border-radius: 8px;
}

.hp-seo-result span {
  color: #64748b;
}

.hp-seo-result em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: #c09020;
  font-style: normal;
  font-weight: 950;
}

@media (max-width: 900px) {
  .hp-advanced-search,
  .hp-request-form {
    grid-template-columns: 1fr;
  }

  .hp-seo-result a {
    grid-template-columns: 1fr;
  }

  .hp-seo-result em {
    grid-row: auto;
    grid-column: auto;
  }
}

/* Removed top injected search panel */
.hp-traffic-tools {
  display: none !important;
}

/* Advanced property form and detail sections */
.hp-property-advanced-panel,
.hp-property-detail-plus {
  margin: 18px 0;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0, 32, 80, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hp-property-advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.hp-property-advanced-grid label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 850;
}

.hp-property-advanced-grid input,
.hp-property-advanced-grid select {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(0, 32, 80, 0.18);
  border-radius: 8px;
  padding: 0 11px;
  color: #0f172a;
  font-weight: 750;
}

.hp-property-advanced-grid .hp-advanced-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(0, 32, 80, 0.04);
}

.hp-property-advanced-grid .hp-advanced-check input {
  width: auto;
  min-height: auto;
}

.hp-advanced-note {
  margin: 12px 0 0;
  color: #64748b;
  font-weight: 800;
}

.hp-property-detail-plus {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.hp-property-detail-plus dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 14px 0 0;
}

.hp-property-detail-plus dl div {
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.hp-property-detail-plus dt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.hp-property-detail-plus dd {
  margin: 4px 0 0;
  color: #002050;
  font-weight: 950;
}

.hp-request-hero {
  padding: 22px;
  border-radius: 8px;
  background: #002050;
  color: #fff;
}

.hp-request-hero p,
.hp-request-hero h1,
.hp-request-hero span {
  margin: 0;
  letter-spacing: 0;
}

.hp-request-hero p {
  color: #c09020;
  font-weight: 950;
  text-transform: uppercase;
}

.hp-request-hero h1 {
  margin-top: 8px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 950;
}

.hp-request-hero span {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hp-property-advanced-grid,
  .hp-property-detail-plus dl {
    grid-template-columns: 1fr;
  }
}

/* Clean property detail facts and remove advanced list clutter */
.hp-property-quickfacts,
.hp-property-actions {
  display: none !important;
}

.hp-property-detail-plus {
  padding: 18px !important;
  box-shadow: none !important;
  border: 1px solid rgba(0, 32, 80, 0.1) !important;
}

.hp-simple-detail-title h2 {
  margin: 0 0 12px;
  color: #002050;
  font-size: 1.2rem;
  font-weight: 950;
  letter-spacing: 0;
}

.hp-property-detail-plus dl {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border-top: 1px solid rgba(0, 32, 80, 0.08);
}

.hp-property-detail-plus dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0 !important;
  border-bottom: 1px solid rgba(0, 32, 80, 0.08);
  border-radius: 0 !important;
  background: transparent !important;
}

.hp-property-detail-plus dt {
  color: #64748b !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
}

.hp-property-detail-plus dd {
  margin: 0 !important;
  color: #0f172a !important;
  font-weight: 900 !important;
  text-align: right;
}

@media (max-width: 760px) {
  .hp-property-detail-plus dl {
    grid-template-columns: 1fr !important;
  }
}

/* Unframed aligned property details */
.hp-property-detail-plus {
  max-width: 1180px !important;
  width: calc(100% - clamp(28px, 8vw, 96px)) !important;
  margin: 24px auto 8px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.hp-simple-detail-title h2 {
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #002050 !important;
  font-size: 1.05rem !important;
  line-height: 1.25 !important;
}

.hp-property-detail-plus dl {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: clamp(18px, 4vw, 44px) !important;
  row-gap: 0 !important;
  margin: 0 !important;
  border-top: 1px solid rgba(15, 23, 42, 0.12) !important;
}

.hp-property-detail-plus dl div {
  min-height: 42px;
  align-items: center;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
}

.hp-property-detail-plus dt {
  color: #64748b !important;
  font-size: 0.84rem !important;
  line-height: 1.35 !important;
}

.hp-property-detail-plus dd {
  color: #111827 !important;
  font-size: 0.9rem !important;
  line-height: 1.35 !important;
}

@media (max-width: 760px) {
  .hp-property-detail-plus {
    width: calc(100% - 24px) !important;
    margin-top: 18px !important;
  }

  .hp-property-detail-plus dl {
    grid-template-columns: 1fr !important;
  }
}

/* Remove injected advanced details display everywhere */
.hp-property-detail-plus {
  display: none !important;
}

/* Show advanced details only on single property detail pages */
body:not(.route-single-property-detail) .hp-property-detail-plus {
  display: none !important;
}

body.route-single-property-detail .hp-property-detail-plus {
  display: block !important;
}

/* Admin analytics and content guides */
.hp-admin-analytics-shortcut {
  position: fixed;
  right: 24px;
  bottom: 82px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fff;
  color: #002050 !important;
  border: 1px solid #c09020;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.hp-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hp-analytics-grid article {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0, 32, 80, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hp-analytics-grid p,
.hp-guide-shell p {
  margin: 0;
  color: #c09020;
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hp-analytics-grid h2 {
  margin: 6px 0 0;
  color: #002050;
  font-size: 2rem;
  font-weight: 950;
}

.hp-analytics-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0, 32, 80, 0.08);
}

.hp-analytics-list span {
  color: #334155;
  overflow-wrap: anywhere;
}

.hp-analytics-list strong {
  color: #002050;
}

.hp-guide-page {
  min-height: 100vh;
  background: #f6f8fb;
  padding: 28px clamp(14px, 4vw, 54px);
}

.hp-guide-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0, 32, 80, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hp-guide-shell h1 {
  margin: 12px 0 10px;
  color: #002050;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.hp-guide-shell > span {
  display: block;
  color: #475569;
  line-height: 1.65;
  font-weight: 750;
}

.hp-guide-shell ul {
  margin: 22px 0;
  padding-left: 20px;
  color: #1f2937;
  line-height: 1.85;
  font-weight: 800;
}

.hp-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-guide-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #c09020;
  color: #002050 !important;
  font-weight: 950;
  text-decoration: none;
}

@media (max-width: 760px) {
  .hp-analytics-grid {
    grid-template-columns: 1fr;
  }

  .hp-admin-analytics-shortcut {
    right: 12px;
    bottom: 70px;
  }
}

/* Keep advanced listing form off request and public pages */
body:not(.route-property-form) .hp-property-advanced-panel,
body.route-property-request .hp-property-advanced-panel {
  display: none !important;
}

.hp-remove-payment-button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(185, 28, 28, 0.22);
  background: #fff;
  color: #991b1b;
  font-weight: 900;
  cursor: pointer;
}

.hp-remove-payment-button:hover {
  background: #fee2e2;
}

.hp-remove-payment-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 700px) {
  .hp-remove-payment-button {
    justify-self: start;
  }
}

/* Smaller billing history remove action */
.hp-remove-payment-button {
  min-height: 26px !important;
  padding: 0 7px !important;
  border-radius: 6px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

/* Compact fixed-width billing remove button */
.hp-billing-payment-row .hp-remove-payment-button {
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  justify-self: end !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center !important;
}


/* Login gate for public property detail pages */
body.route-property-locked main > :not(.hp-login-gate-overlay) {
  filter: blur(5px);
  max-height: 460px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

body.route-property-locked .hp-property-detail-plus,
body.route-property-locked a[href^="tel:"],
body.route-property-locked a[href^="mailto:"],
body.route-property-locked a[href*="api.whatsapp.com"],
body.route-property-locked a[href*="wa.me"] {
  display: none !important;
}

.hp-login-gate-overlay {
  position: relative;
  z-index: 12;
  width: min(920px, calc(100% - 28px));
  margin: 28px auto 44px;
  padding: 24px;
  border: 1px solid rgba(192, 144, 32, 0.28);
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
  box-shadow: 0 18px 45px rgba(0, 32, 80, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hp-login-gate-overlay span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #c09020;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hp-login-gate-overlay h2 {
  margin: 0;
  color: #002050;
  font-size: clamp(1.28rem, 2vw, 1.85rem);
  line-height: 1.2;
  font-weight: 950;
}

.hp-login-gate-overlay p {
  margin: 8px 0 0;
  color: #475569;
  font-weight: 650;
}

.hp-login-gate-overlay a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: #c09020;
  color: #002050 !important;
  font-weight: 950;
  text-decoration: none;
}

@media (max-width: 700px) {
  body.route-property-locked main > :not(.hp-login-gate-overlay) {
    max-height: 360px;
  }

  .hp-login-gate-overlay {
    align-items: stretch;
    flex-direction: column;
    margin-top: 18px;
    padding: 18px;
  }

  .hp-login-gate-overlay a {
    width: 100%;
  }
}


/* Verified listing badge for property cards */
.hp-verified-listing-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  max-width: calc(100% - 20px);
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #002050;
  border: 1px solid rgba(192, 144, 32, 0.65);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

@media (max-width: 640px) {
  .hp-verified-listing-badge {
    top: 8px;
    right: 8px;
    font-size: 0.66rem;
  }
}

/* Area guides hub */
.hp-area-guides-page,
.hp-valuation-page {
  min-height: 100vh;
  background: #f6f8fb;
  padding: 28px clamp(14px, 4vw, 54px);
}

.hp-area-guides-hero,
.hp-valuation-hero {
  max-width: 1120px;
  margin: 0 auto 18px;
  padding: 24px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #002050 0%, #0f2f68 100%);
  color: #fff;
}

.hp-area-guides-hero p,
.hp-valuation-hero p {
  margin: 0;
  color: #c09020;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hp-area-guides-hero h1,
.hp-valuation-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.hp-area-guides-hero span,
.hp-valuation-hero span {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  font-weight: 700;
}

.hp-area-guides-grid {
  max-width: 1120px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hp-area-guide-card a {
  display: grid;
  gap: 6px;
  min-height: 100%;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0, 32, 80, 0.1);
  color: #0f172a !important;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hp-area-guide-card p {
  margin: 0;
  color: #c09020;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hp-area-guide-card h3 {
  margin: 0;
  color: #002050;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 900;
}

.hp-area-guide-card span {
  color: #475569;
  font-weight: 750;
}

.hp-area-guides-links,
.hp-valuation-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.hp-area-guides-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-area-guides-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0, 32, 80, 0.12);
  color: #002050 !important;
  text-decoration: none;
  font-weight: 950;
}

.hp-valuation-shell {
  background: #fff;
  border: 1px solid rgba(0, 32, 80, 0.12);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hp-valuation-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hp-valuation-form textarea {
  grid-column: 1 / -1;
  min-height: 140px;
  padding-top: 10px;
}

.hp-valuation-form button,
.hp-valuation-form p {
  grid-column: 1 / -1;
}

.hp-valuation-form p {
  margin: 0;
  color: #475569;
  font-weight: 850;
}

@media (max-width: 900px) {
  .hp-area-guides-grid,
  .hp-valuation-form {
    grid-template-columns: 1fr;
  }
}


/* Agent directory and profile refinement */
body.route-agents .MuiGrid-container {
  align-items: stretch !important;
}

body.route-agents .MuiGrid-container > .MuiGrid-item {
  display: flex !important;
}

body.route-agents .hp-agent-card,
body.route-agent-profile .hp-agent-profile-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0, 32, 80, 0.12);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

body.route-agents .hp-agent-card {
  display: flex;
  flex-direction: column;
}

body.route-agents .hp-agent-card .MuiCardContent-root,
body.route-agent-profile .hp-agent-profile-card .MuiCardContent-root {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 18px !important;
}

body.route-agents .hp-agent-card .MuiAvatar-root,
body.route-agent-profile .hp-agent-profile-card .MuiAvatar-root {
  border: 2px solid #c09020;
  box-shadow: 0 0 0 4px rgba(192, 144, 32, 0.16);
}

body.route-agents .hp-agent-card .MuiTypography-h6,
body.route-agent-profile .hp-agent-profile-card .MuiTypography-h4,
body.route-agent-profile .hp-agent-profile-card .MuiTypography-h6 {
  color: #002050;
  font-weight: 950 !important;
  letter-spacing: 0;
}

body.route-agents .hp-agent-card .MuiTypography-body2,
body.route-agent-profile .hp-agent-profile-card .MuiTypography-body2 {
  color: #475569;
}

body.route-agents .hp-agent-card .MuiChip-root,
body.route-agent-profile .hp-agent-profile-card .MuiChip-root {
  background: rgba(192, 144, 32, 0.12);
  color: #7c4d00;
  font-weight: 950;
}

.hp-agent-stats,
.hp-agent-profile-stats {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 32, 80, 0.08);
}

.hp-agent-stats span,
.hp-agent-profile-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 32, 80, 0.06);
  color: #002050;
  font-weight: 900;
}

.hp-agent-stats strong,
.hp-agent-profile-stats strong {
  color: #c09020;
  font-size: 1.05rem;
}

body.route-agent-profile .hp-agent-profile-card .MuiButton-root,
body.route-agents .hp-agent-card .MuiButton-root {
  border-radius: 8px;
  font-weight: 900;
}

body.route-agent-profile .hp-agent-profile-card .MuiButton-contained,
body.route-agents .hp-agent-card .MuiButton-contained {
  background: #c09020;
  color: #002050;
}

body.route-agent-profile .hp-agent-profile-card .MuiButton-contained:hover,
body.route-agents .hp-agent-card .MuiButton-contained:hover {
  background: #d4a52d;
}


/* Admin agents management */
.hp-admin-agents-page {
  min-height: 100vh;
  background: #f6f8fb;
  color: #0f172a;
  padding: 32px clamp(16px, 4vw, 54px);
}

.hp-admin-agents-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.hp-admin-agents-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #002050 0%, #0f2f68 100%);
  color: #fff;
}

.hp-admin-agents-header p,
.hp-admin-agents-header h1,
.hp-admin-agents-header span {
  margin: 0;
  letter-spacing: 0;
}

.hp-admin-agents-header p {
  color: #c09020;
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hp-admin-agents-header h1 {
  margin-top: 6px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 950;
}

.hp-admin-agents-header span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.hp-admin-agents-header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  color: #002050 !important;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.hp-admin-agents-status {
  color: #475569;
  font-weight: 850;
}

.hp-admin-agents-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0, 32, 80, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hp-admin-agents-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

.hp-admin-agents-table thead th {
  padding: 16px 18px;
  text-align: left;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
  border-bottom: 1px solid rgba(0, 32, 80, 0.08);
}

.hp-admin-agents-table tbody td {
  padding: 16px 18px;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 32, 80, 0.08);
}

.hp-admin-agents-table tbody tr:hover {
  background: #f8fafc;
}

.hp-admin-agent-name {
  display: grid;
  gap: 4px;
}

.hp-admin-agent-name strong {
  color: #002050;
  font-size: 1rem;
  font-weight: 950;
}

.hp-admin-agent-name span,
.hp-admin-agent-breakdown,
.hp-admin-agent-contact span {
  color: #475569;
  font-weight: 750;
}

.hp-admin-agent-name em {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(192, 144, 32, 0.12);
  color: #7c4d00;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 950;
}

.hp-admin-agent-contact {
  display: grid;
  gap: 8px;
}

.hp-admin-agent-contact div {
  display: grid;
  gap: 2px;
}

.hp-admin-agent-contact strong {
  color: #002050;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hp-admin-agent-count {
  color: #002050;
  font-size: 1.15rem;
  font-weight: 950;
}

.hp-agent-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 950;
}

.hp-agent-status-pill.is-verified {
  background: rgba(22, 101, 52, 0.12);
  color: #166534;
}

.hp-agent-status-pill.is-standard {
  background: rgba(100, 116, 139, 0.12);
  color: #334155;
}

.hp-admin-agents-shortcut {
  position: fixed;
  right: 24px;
  bottom: 132px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fff;
  color: #002050 !important;
  border: 1px solid #c09020;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.hp-admin-agents-shortcut:hover {
  background: #c09020;
  color: #002050 !important;
}

@media (max-width: 760px) {
  .hp-admin-agents-shortcut {
    right: 12px;
    bottom: 118px;
  }
}


/* Admin moderation page */
.hp-admin-moderation-page {
  min-height: 100vh;
  background: #f6f8fb;
  color: #0f172a;
  padding: 32px clamp(16px, 4vw, 54px);
}

.hp-admin-moderation-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.hp-admin-moderation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #002050 0%, #0f2f68 100%);
  color: #fff;
}

.hp-admin-moderation-header p,
.hp-admin-moderation-header h1,
.hp-admin-moderation-header span {
  margin: 0;
  letter-spacing: 0;
}

.hp-admin-moderation-header p {
  color: #c09020;
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hp-admin-moderation-header h1 {
  margin-top: 6px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 950;
}

.hp-admin-moderation-header span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.8);
  line-height: 1.55;
}

.hp-admin-moderation-header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  color: #002050 !important;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.hp-admin-moderation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-admin-moderation-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(0, 32, 80, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #002050;
  font-weight: 900;
  cursor: pointer;
}

.hp-admin-moderation-tabs button.is-active {
  background: #002050;
  color: #fff;
  border-color: #002050;
}

.hp-admin-moderation-status {
  color: #475569;
  font-weight: 850;
}

.hp-admin-moderation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hp-admin-moderation-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0, 32, 80, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hp-admin-moderation-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hp-admin-moderation-main h2,
.hp-admin-moderation-main p,
.hp-admin-moderation-main span {
  margin: 0;
}

.hp-admin-moderation-type {
  color: #c09020;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hp-admin-moderation-main h2 {
  color: #002050;
  font-size: 1.08rem;
  font-weight: 950;
  margin-top: 4px;
}

.hp-admin-moderation-main span,
.hp-admin-moderation-notes,
.hp-admin-moderation-card dd {
  color: #475569;
  font-weight: 750;
}

.hp-review-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 950;
}

.hp-review-pill.is-pending {
  background: rgba(192, 144, 32, 0.12);
  color: #7c4d00;
}

.hp-review-pill.is-approved {
  background: rgba(22, 101, 52, 0.12);
  color: #166534;
}

.hp-review-pill.is-rejected {
  background: rgba(185, 28, 28, 0.12);
  color: #b91c1c;
}

.hp-admin-moderation-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
}

.hp-admin-moderation-card dl div {
  padding: 10px 0;
  border-top: 1px solid rgba(0, 32, 80, 0.08);
}

.hp-admin-moderation-card dt {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hp-admin-moderation-card dd {
  margin: 4px 0 0;
}

.hp-admin-moderation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hp-admin-moderation-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c09020;
  border-radius: 8px;
  background: #fff;
  color: #002050;
  font-weight: 900;
  cursor: pointer;
}

.hp-admin-moderation-actions button:first-child {
  background: #c09020;
}

.hp-admin-moderation-actions p {
  margin: 0;
  color: #475569;
  font-weight: 850;
}

.hp-admin-moderation-shortcut {
  position: fixed;
  right: 24px;
  bottom: 176px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fff;
  color: #002050 !important;
  border: 1px solid #c09020;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.hp-admin-moderation-shortcut:hover {
  background: #c09020;
  color: #002050 !important;
}

@media (max-width: 900px) {
  .hp-admin-moderation-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hp-admin-moderation-shortcut {
    right: 12px;
    bottom: 162px;
  }
}

/* Agent contact login gate */
.hp-agent-contact-lock {
  margin: 14px 16px 0;
  padding: 10px 12px;
  border: 1px solid rgba(0, 32, 80, 0.12);
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.hp-agent-profile-card .hp-agent-contact-lock {
  margin: 16px 0 0;
}

.hp-agent-contact-lock a {
  color: var(--haven-primary);
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.hp-agent-contact-lock a:hover {
  color: var(--haven-accent);
}

@media (max-width: 520px) {
  .hp-agent-contact-lock {
    align-items: flex-start;
    flex-direction: column;
  }
}
