/*
 * Account area (logged-in visitors): the pill nav from [role_dashboard], the
 * inner tabs on My Account, the shared page header (wps_acct_head()) and the
 * .wps-acct page wrapper, so every account page has the same look and spacing.
 */

:root {
  --ac-ink: #14222b;
  --ac-soft: #4b5563;
  --ac-muted: #6b7684;
  --ac-line: #e3e9ef;
  --ac-line-strong: #c4d0dc;
  --ac-navy: #0f2a33;
  --ac-brand: #257cae;
  --ac-brand-dark: #1d6693;
  --ac-accent: #38b6ff;
  --ac-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------------------------------------------------------------- pill nav */

.dashboard-options-outer {
  background: #fff !important;
  border-bottom: 1px solid #edf1f4 !important;
  font-family: var(--ac-font);
}
.dashboard-options-outer .dashboard-options-scroll {
  display: block !important;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 !important;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 24px;
}
.dashboard-options-outer .dashboard-options-scroll::-webkit-scrollbar { display: none; }
.dashboard-options-outer .dashboard-options {
  display: flex !important;
  gap: 8px !important;
  width: max-content !important;
  margin: 0 !important;
  padding: 14px 24px !important;
  justify-content: flex-start !important;
}
.dashboard-options-outer .dashboard-pill,
.dashboard-options-outer .dashboard-pill.dropdown {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px !important;
  border: 1px solid var(--ac-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--ac-ink) !important;
  font-family: var(--ac-font);
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  scroll-snap-align: start;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.dashboard-options-outer .dashboard-pill:hover { border-color: var(--ac-line-strong) !important; background: #fff !important; color: var(--ac-ink) !important; }
.dashboard-options-outer .dashboard-pill.active,
.dashboard-options-outer .dashboard-pill.active:hover {
  background: var(--ac-navy) !important;
  border-color: var(--ac-navy) !important;
  color: #fff !important;
}
.dashboard-options-outer .dashboard-pill svg {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  flex: none;
}
.dashboard-options-outer .dashboard-pill.dropdown .dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 8px !important;
  padding: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
}
.dashboard-options-outer .dashboard-pill:focus-visible,
.dashboard-options-outer .dashboard-pill .dropdown-toggle:focus-visible { outline: 3px solid var(--ac-accent); outline-offset: 2px; }

@media (max-width: 768px) {
  .dashboard-options-outer .dashboard-options-scroll {
    /* Fade the edges so it reads as a scrolling strip. */
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .dashboard-options-outer .dashboard-options { padding: 12px 16px !important; }
  .dashboard-options-outer .dashboard-options-scroll { scroll-padding-inline: 16px; }
  .dashboard-options-outer .dashboard-pill,
  .dashboard-options-outer .dashboard-pill.dropdown { min-height: 38px; padding: 0 14px !important; font-size: 13.5px !important; }
}

/* ---------------------------------------------------------------- page wrapper + header */

.wps-acct {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 72px;
  box-sizing: border-box;
  font-family: var(--ac-font);
  color: var(--ac-ink);
}
/* Form pages (Support): header stays aligned with the pills, the form keeps a readable width. */
.wps-acct--narrow > form,
.wps-acct--narrow > .wps-form-note { max-width: 760px; margin-left: 0 !important; margin-right: auto !important; text-align: left; }
.wps-acct--narrow .wps-acct-head { justify-content: flex-start; text-align: left; }
.wps-acct-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  font-family: var(--ac-font);
}
.wps-acct-head h1 {
  margin: 0 !important;
  color: var(--ac-ink) !important;
  font-family: var(--ac-font) !important;
  font-size: clamp(28px, 3.2vw, 38px) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -.025em;
}
.wps-acct-head__actions { display: flex; gap: 10px; }
.wps-acct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ac-brand);
  border-radius: 10px;
  background: var(--ac-brand);
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none !important;
  transition: background-color .15s ease, border-color .15s ease;
}
.wps-acct-btn:hover { background: var(--ac-brand-dark); border-color: var(--ac-brand-dark); }
.wps-acct-btn--ghost { background: #fff; border-color: var(--ac-line); color: var(--ac-ink) !important; }
.wps-acct-btn--ghost:hover { background: #fff; border-color: var(--ac-line-strong); }
.wps-acct-btn:focus-visible { outline: 3px solid var(--ac-accent); outline-offset: 2px; }

/* Old per-page wrappers inside the new one: no extra padding or borders. */
.wps-acct .unified-account-dashboard { max-width: none !important; margin: 0 !important; padding: 0 !important; }
.wps-acct .deal-edit-form-container,
.wps-acct .my-properties-container,
.wps-acct .wholesale-properties-container { margin-top: 0 !important; padding-top: 0 !important; }

@media (max-width: 768px) {
  .wps-acct { padding: 24px 16px 56px; }
  .wps-acct-head { margin-bottom: 20px; }
  .wps-acct-head__actions { width: 100%; }
  .wps-acct-head__actions .wps-acct-btn { flex: 1; }
}

/* ---------------------------------------------------------------- My Account inner tabs */

.unified-account-dashboard .dashboard-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 0 0 24px !important;
  overflow-x: auto;
  scrollbar-width: none;
}
.unified-account-dashboard .dashboard-tabs::-webkit-scrollbar { display: none; }
.unified-account-dashboard .dashboard-tab {
  flex: none !important;
  height: 40px !important;
  padding: 0 16px !important;
  border: 1px solid var(--ac-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.unified-account-dashboard .dashboard-tab .tab-label { color: var(--ac-ink) !important; font-family: var(--ac-font); font-size: 14px !important; font-weight: 600 !important; }
.unified-account-dashboard .dashboard-tab .tab-icon { color: var(--ac-muted) !important; font-size: 14px !important; height: auto !important; }
.unified-account-dashboard .dashboard-tab:hover { border-color: var(--ac-line-strong) !important; }
.unified-account-dashboard .dashboard-tab:hover .tab-label { color: var(--ac-ink) !important; }
.unified-account-dashboard .dashboard-tab.active,
.unified-account-dashboard .dashboard-tab.active:hover { background: var(--ac-navy) !important; border-color: var(--ac-navy) !important; }
.unified-account-dashboard .dashboard-tab.active .tab-label,
.unified-account-dashboard .dashboard-tab.active .tab-icon { color: #fff !important; }
.unified-account-dashboard .dashboard-tab.logout-tab .tab-label,
.unified-account-dashboard .dashboard-tab.logout-tab .tab-icon { color: #b42318 !important; }
.unified-account-dashboard .dashboard-tab.logout-tab:hover { background: #fdeceb !important; border-color: #f6c9c4 !important; }

/* Round log-out button at the end of the pill strip: an exact circle, red icon. */
.dashboard-options-outer .dashboard-pill.dashboard-pill--icon {
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  justify-content: center;
  gap: 0;
}
.dashboard-options-outer .dashboard-pill.dashboard-logout {
  border-color: #f6c9c4 !important;
  color: #dc2626 !important;
}
.dashboard-options-outer .dashboard-pill.dashboard-logout svg { width: 18px !important; height: 18px !important; stroke: #dc2626; }
.dashboard-options-outer .dashboard-pill.dashboard-logout:hover {
  background: #fdeceb !important;
  border-color: #f1a9a1 !important;
  color: #dc2626 !important;
}
.dashboard-options-outer .dashboard-pill.dashboard-logout:focus-visible { outline: 3px solid rgba(220, 38, 38, .35); outline-offset: 2px; }
@media (max-width: 768px) {
  .dashboard-options-outer .dashboard-pill.dashboard-pill--icon {
    flex-basis: 38px !important; width: 38px !important; height: 38px !important; min-width: 38px !important; min-height: 38px !important;
  }
}

/* Form submit buttons on account/support pages: flat, one solid blue (no gradient, lift or shadow). */
.wps-acct .wps-form__submit {
  min-height: 48px;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--ac-brand) !important;
  background-image: none !important;
  color: #fff !important;
  font-family: var(--ac-font);
  font-size: 15px;
  font-weight: 700;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  transition: background-color .15s ease;
  justify-self: start;
}
.wps-acct .wps-form__submit:hover { background: var(--ac-brand-dark) !important; }
.wps-acct .wps-form__submit:focus-visible { outline: 3px solid var(--ac-accent); outline-offset: 2px; }
