/* Members + Shop — same design system as the public DRS Golf site */
:root {
  --ivory: #F3EEE7;
  --blush: #EFE3DD;
  --charcoal: #25272B;
  --terracotta: #B5654A;
  --plum: #8B3A2F;
  --plum-deep: #6f2e25;
  --sage: #8B9271;
  --taupe: #9C9488;
  --gold: #D9A441;
  --tan: #C4A882;
  --burgundy: #3D242F;
  --wash-page: color-mix(in srgb, var(--plum) 5.5%, var(--ivory));
  --line: rgba(122, 113, 104, 0.22);
  --surface: #ffffff;
  --muted: #7a7168;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --serif: var(--font-serif);
  --sans: var(--font-sans);
  --container: 1280px;
  --radius-pill: 100px;
  --radius: 6px;
  --shadow: 0 10px 28px rgba(37, 39, 43, 0.06);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
}

body.portal-body {
  background: var(--wash-page);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  position: relative;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--plum) 86%, #fff) 0%,
      var(--plum) 40%,
      color-mix(in srgb, var(--plum) 80%, #000) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--gold) 78%, #fff);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent),
    0 7px 18px rgba(37, 39, 43, 0.12);
  transition: background 0.25s var(--ease-out), color 0.25s, transform 0.25s;
}

.btn-primary:hover {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--gold) 78%, #fff) 0%,
      var(--gold) 45%,
      color-mix(in srgb, var(--gold) 78%, #8a6a28) 100%);
  color: var(--charcoal);
  transform: translateY(-1px);
}

/* —— Navbar (matched to news.php / about.html) —— */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
  padding: 0;
}

.account-sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--charcoal);
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  border-radius: 6px;
}

#navbar.scrolled,
#navbar.menu-open {
  background: var(--wash-page, #f6f0e8);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(37, 39, 43, 0.08);
  box-shadow: 0 1px 0 rgba(37, 39, 43, 0.04);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  justify-self: start;
}

.nav-logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.nav-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-logo:hover .nav-logo-mark {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  justify-self: center;
}

.nav-links a {
  position: relative;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #25272B;
  padding: 8px 4px;
  transition: color 0.25s;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
  opacity: 0;
}

.nav-links a:hover {
  color: #1a1c1f;
}

.nav-links a:hover::after {
  transform: scaleX(0.45);
  opacity: 0.55;
}

.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: #1a1c1f;
  font-weight: 700;
}

.nav-links a.is-active::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-cta {
  flex-shrink: 0;
  justify-self: end;
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 39, 43, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: #25272B;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

#navbar.transparent:not(.scrolled) .nav-icon-btn {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-icon-btn:hover {
  background: var(--gold, #c7922d) !important;
  border-color: var(--gold, #c7922d) !important;
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(199, 146, 45, 0.3);
}

.nav-icon-btn svg {
  display: block;
  transition: transform 0.2s ease;
}

.nav-icon-btn:hover svg {
  transform: scale(1.08);
}

.nav-icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--plum, #8b3a2f);
  color: #ffffff;
  font-family: var(--font-sans, "Montserrat", sans-serif);
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 1.5px solid #ffffff;
}

#navbar.transparent:not(.scrolled) .nav-icon-badge {
  border-color: #1a1715;
}

.nav-cta .btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 10px 22px;
  font-size: 11px;
  letter-spacing: 1.5px;
  background: transparent;
  color: #25272B;
  border: 1.5px solid #25272B;
  box-shadow: none;
  transition:
    background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.nav-cta .btn-primary::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -45%;
  width: 42%;
  height: 140%;
  background: linear-gradient(105deg,
      transparent 0%,
      rgba(217, 164, 65, 0) 32%,
      rgba(255, 236, 170, 0.85) 50%,
      rgba(217, 164, 65, 0.45) 58%,
      transparent 72%);
  transform: skewX(-18deg) translateX(0);
  animation: nav-cta-shine 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes nav-cta-shine {

  0%,
  28% {
    transform: skewX(-18deg) translateX(0);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  55% {
    transform: skewX(-18deg) translateX(340%);
    opacity: 1;
  }

  56%,
  100% {
    transform: skewX(-18deg) translateX(340%);
    opacity: 0;
  }
}

.nav-cta .btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #25272B;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--gold) 28%, transparent);
  transform: none;
}

.nav-cta .btn-primary:hover::before {
  background: linear-gradient(105deg,
      transparent 0%,
      rgba(255, 255, 255, 0) 35%,
      rgba(255, 255, 255, 0.7) 50%,
      rgba(255, 248, 220, 0.35) 58%,
      transparent 70%);
  animation-duration: 1.6s;
}

@media (prefers-reduced-motion: reduce) {
  .nav-cta .btn-primary::before {
    animation: none;
    opacity: 0;
  }
}

.nav-topstrip {
  display: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  justify-self: end;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #25272B;
  border-radius: 2px;
  transition: background 0.35s, transform 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding: 16px 40px 24px;
  gap: 4px;
}

.nav-mobile.open {
  display: flex !important;
}

.nav-mobile a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #25272B;
  padding: 10px 0;
  border-bottom: 1px solid rgba(37, 39, 43, 0.08);
  transition: color 0.2s;
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover {
  color: #1a1c1f;
}

.nav-mobile a.is-active,
.nav-mobile a[aria-current="page"] {
  color: #1a1c1f;
  font-weight: 700;
}

/* —— Page hero (same as News / About / Courses) —— */
.page-hero {
  position: relative;
  min-height: clamp(260px, 38vh, 340px);
  margin-top: 76px;
  display: grid;
  place-items: end start;
  overflow: hidden;
  background: var(--charcoal);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 16, 14, 0.55) 0%, rgba(18, 16, 14, 0.28) 42%, rgba(18, 16, 14, 0.18) 100%),
    linear-gradient(180deg, rgba(18, 16, 14, 0.2) 0%, transparent 40%, rgba(18, 16, 14, 0.5) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4.5vw, 40px) 0;
}

.page-hero .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero breadcrumbs — match site trail */
.page-hero .bc,
.page-hero .bc--hero {
  margin: 0;
  background: none;
  border: none;
  padding: 0;
}

.page-hero .bc-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.page-hero .bc-item {
  display: inline-flex;
  align-items: center;
  color: rgba(243, 238, 231, 0.5);
}

.page-hero .bc-item+.bc-item::before {
  content: '·';
  margin: 0 10px;
  color: color-mix(in srgb, var(--gold) 75%, #fff);
  font-weight: 700;
}

.page-hero .bc-item a {
  color: rgba(243, 238, 231, 0.72);
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s;
}

.page-hero .bc-item a:hover {
  color: var(--gold);
}

.page-hero .bc-item [aria-current="page"] {
  color: color-mix(in srgb, var(--gold) 85%, #fff);
  font-weight: 600;
}

/* —— Content section —— */
.tp-section {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0;
}

.page-hero+.tp-section {
  padding-top: clamp(28px, 4vw, 44px);
}

.tp-section>.container {
  position: relative;
  z-index: 1;
}

.portal-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 500;
  color: var(--plum);
  line-height: 1.15;
}

.portal-main {
  min-height: 40vh;
}

.account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: none;
}

.account-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--taupe);
  transition: color 0.2s;
  padding: 10px 0;
}

.account-links a:hover,
.account-links a.is-active {
  color: var(--plum);
}

.site-member-bar {
  position: sticky;
  top: 76px;
  z-index: 900;
  background: color-mix(in srgb, var(--ivory) 88%, #fff);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-member-bar .account-links {
  border-bottom: none;
  padding: 0;
  margin: 0;
}

.site-member-bar .container {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.portal-body--compact .site-member-bar {
  top: 76px;
}

.portal-body--compact .portal-main--compact {
  margin-top: 0;
  height: calc(100vh - 76px);
  max-height: calc(100vh - 76px);
  overflow: hidden;
}

.portal-body--compact:has(.site-member-bar) .portal-main--compact {
  height: calc(100vh - 76px - 44px);
  max-height: calc(100vh - 76px - 44px);
}

.portal-body--account {
  background: #f7f3ee;
  overflow: hidden;
}

.portal-main--account {
  margin-top: 0;
  padding: 28px 0 48px;
  min-height: calc(100vh - 76px);
  background: transparent;
}

.portal-main--app {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 24px 0 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f7f3ee;
}

.container--account {
  max-width: 980px;
  padding-left: 28px;
  padding-right: 28px;
}

/* —— Account shell + left sidebar —— */
.account-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  height: calc(100vh - 76px);
  min-height: 0;
  margin-top: 76px;
  overflow: hidden;
}

.account-shell--compact {
  height: calc(100vh - 76px);
  min-height: 0;
  overflow: hidden;
}

.account-shell--compact .account-content,
.account-shell .account-content {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.account-shell--compact .portal-main--compact {
  height: 100%;
  max-height: none;
  flex: 1;
  min-height: 0;
}

.account-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.account-content #footer {
  margin-top: auto;
}

.account-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  position: fixed;
  top: 88px;
  left: 16px;
  z-index: 920;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.m-bottom-nav {
  display: none;
}

.account-sidebar-backdrop {
  display: none;
}

.account-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  height: calc(100vh - 76px);
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 910;
}

.account-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 16px;
  border-bottom: 1px solid var(--line);
}

.account-sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--plum);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.account-sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-sidebar-who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-sidebar-who strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-sidebar-who span {
  font-size: 11px;
  color: var(--muted);
}

.account-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.account-sidebar-foot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  color: #5f574f;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.account-nav-link:hover {
  background: color-mix(in srgb, var(--ivory) 70%, #fff);
  color: var(--charcoal);
}

.account-nav-link.is-active {
  background: color-mix(in srgb, var(--plum) 8%, #fff);
  border-left-color: var(--plum);
  color: var(--plum);
  box-shadow: none;
}

.account-nav-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.account-nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* —— Member overview (restrained club portal) —— */
.dash {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--line);
}

.dash-welcome-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--plum);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  flex-shrink: 0;
}

.dash-welcome-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-welcome-copy {
  flex: 1;
  min-width: 0;
}

.dash-welcome-kicker {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-welcome h1 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.15;
}

.dash-welcome-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.dash-welcome-meta span {
  margin: 0 4px;
  color: var(--taupe);
}

.dash-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--plum);
  white-space: nowrap;
}

.dash-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dash-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}

.dash-panel--alert {
  border-color: color-mix(in srgb, var(--plum) 35%, var(--line));
  background: #fffaf8;
}

.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ivory) 35%, #fff);
}

.dash-panel-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--charcoal);
}

.dash-rows {
  display: flex;
  flex-direction: column;
}

.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.dash-row:last-child {
  border-bottom: none;
}

.dash-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.dash-row span {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
}

.dash-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--sage) 16%, #fff);
  color: #445038 !important;
  border: 1px solid color-mix(in srgb, var(--sage) 28%, transparent);
}

.dash-tag--muted {
  background: color-mix(in srgb, var(--ivory) 80%, #fff);
  color: var(--muted) !important;
  border-color: var(--line);
}

.dash-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  color: inherit;
  border-right: 1px solid var(--line);
  min-height: 0;
}

.dash-stat:last-child {
  border-right: none;
}

a.dash-stat:hover {
  background: color-mix(in srgb, var(--ivory) 45%, #fff);
  color: inherit;
}

.dash-stat strong {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1;
}

.dash-stat span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.dash-compose {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 18px 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ivory) 40%, #fff);
  color: var(--muted);
  font-size: 13px;
}

.dash-compose:hover {
  border-color: color-mix(in srgb, var(--plum) 30%, var(--line));
  color: var(--charcoal);
}

.dash-compose-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--plum);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.dash-post {
  display: block;
  margin: 12px 18px 16px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  color: inherit;
}

.dash-post strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.dash-post span {
  font-size: 12px;
  color: var(--muted);
}

.dash-post:hover strong {
  color: var(--plum);
}

@media (max-width: 980px) {
  .account-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .account-content {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  /* On mobile member pages, use native bottom navigation bar instead of awkward floating button */
  .account-menu-btn {
    display: none !important;
  }

  .m-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(122, 113, 104, 0.22);
    box-shadow: 0 -3px 18px rgba(37, 39, 43, 0.08);
    z-index: 910;
  }

  /* Inside an active chat thread on mobile, hide bottom nav so message input has full viewport */
  body:has(.fb-msg.is-chat-open) .m-bottom-nav,
  .fb-msg.is-chat-open~.m-bottom-nav {
    display: none !important;
  }

  .m-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0 4px;
    color: var(--muted, #6f675e);
    text-decoration: none;
    background: transparent;
    border: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .m-bottom-nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: stroke 0.15s ease, transform 0.15s ease;
  }

  .m-bottom-nav-item.is-active {
    color: var(--plum, #8B3A2F);
    font-weight: 700;
  }

  .m-bottom-nav-item.is-active svg {
    stroke: var(--plum, #8B3A2F);
    transform: scale(1.08);
  }

  .m-bottom-nav-icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .m-bottom-nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--plum, #8B3A2F);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(139, 58, 47, 0.4);
  }

  button.m-bottom-nav-item {
    font-family: inherit;
  }

  /* Allow natural document scrolling on all pages except active chat */
  body.portal-body--account:not(:has(.fb-msg.is-chat-open)) {
    overflow-x: clip !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
  }

  .account-shell:not(:has(.fb-msg.is-chat-open)),
  .account-shell--compact:not(:has(.fb-msg.is-chat-open)) {
    height: auto !important;
    overflow: visible !important;
  }

  .account-shell:not(:has(.fb-msg.is-chat-open)) .account-content,
  .account-shell--compact:not(:has(.fb-msg.is-chat-open)) .account-content {
    height: auto !important;
    overflow: visible !important;
  }

  .portal-main--compact:not(:has(.fb-msg.is-chat-open)),
  .portal-main--app:not(:has(.fb-msg.is-chat-open)) {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: clip !important;
    flex: none !important;
    min-height: 0 !important;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .account-sidebar {
    position: fixed;
    left: 0;
    top: calc(76px + env(safe-area-inset-top));
    height: calc(100vh - 76px - env(safe-area-inset-top));
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.28s var(--ease-out);
    box-shadow: 12px 0 32px rgba(37, 39, 43, 0.2);
    z-index: 1000;
  }

  .account-sidebar-open .account-sidebar {
    transform: translateX(0);
  }

  .account-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(37, 39, 43, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 995;
  }

  .account-sidebar-backdrop[hidden] {
    display: none;
  }

  .portal-main--account:not(:has(.fb-msg.is-chat-open)),
  .portal-main--app:not(:has(.fb-msg.is-chat-open)) {
    padding: 16px 0 calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .dash-columns {
    grid-template-columns: 1fr;
  }

  .dash-stats {
    grid-template-columns: 1fr 1fr;
  }

  .dash-stat:nth-child(2) {
    border-right: none;
  }

  .dash-stat:nth-child(1),
  .dash-stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {

  .portal-main--account:not(:has(.fb-msg.is-chat-open)),
  .portal-main--app:not(:has(.fb-msg.is-chat-open)) {
    padding: 14px 0 calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .dash-stats {
    grid-template-columns: 1fr;
  }

  .dash-stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .dash-stat:last-child {
    border-bottom: none;
  }

  .dash-welcome {
    flex-wrap: wrap;
  }

  .container--account {
    padding-left: 14px !important;
    padding-right: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

.portal-flash {
  padding: 12px 14px;
  border-radius: 6px;
  margin: 0 0 16px;
  font-size: 14px;
}

.portal-flash-ok {
  background: #eaf5ef;
  color: #1f4a36;
  border: 1px solid #cfe3d7;
}

.portal-flash-error {
  background: #f8ebe8;
  color: var(--plum);
  border: 1px solid #e8cfc8;
}

.portal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.portal-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--plum);
}

.portal-muted {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 14px;
}

.portal-btn,
a.portal-btn,
button.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--gold) 70%, #fff);
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--plum) 86%, #fff) 0%,
      var(--plum) 40%,
      color-mix(in srgb, var(--plum) 80%, #000) 100%);
  color: #fff !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.portal-btn:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

.portal-btn--sm,
a.portal-btn--sm {
  padding: 8px 14px;
  font-size: 10px;
  letter-spacing: 1px;
}

.portal-btn-ghost,
a.portal-btn-ghost {
  background: #fff;
  color: var(--plum) !important;
  border-color: var(--line);
  box-shadow: none;
}

.portal-btn-ghost:hover {
  border-color: var(--gold);
  color: var(--plum) !important;
}

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

.portal-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #faf7f3);
  color: var(--charcoal);
  min-height: 110px;
}

.portal-tile:hover {
  color: var(--charcoal);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}

.portal-tile strong {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--plum);
}

.portal-tile span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.portal-tile em {
  margin-top: auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--plum);
}

.portal-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.portal-kpi a,
.portal-kpi>div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  color: inherit;
}

.portal-kpi strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--plum);
  line-height: 1;
  margin-bottom: 6px;
}

.portal-kpi span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.portal-list {
  display: grid;
  gap: 10px;
}

.portal-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #faf7f3;
}

.portal-item strong {
  display: block;
  font-size: 15px;
  color: var(--charcoal);
}

.portal-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.portal-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: #f4e5c0;
  color: #6a4a12;
}

.portal-alert {
  border-color: #e8cfc8;
  background: linear-gradient(180deg, #fff8f6, #fff);
}

.portal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.portal-split>.portal-card {
  margin-bottom: 0;
}

.portal-split+.portal-split {
  margin-top: 16px;
}

/* —— Footer (matched to home page) —— */
#footer {
  background: #5A3127;
  padding: 72px 0 40px;
  margin-top: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .nav-logo-mark {
  width: 56px;
  height: 56px;
  background: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.footer-tagline {
  font-size: 14px;
  color: rgba(243, 238, 231, 0.45);
  margin: 16px 0 24px;
  max-width: 260px;
  line-height: 1.65;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(243, 238, 231, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.footer-social a:hover {
  border-color: var(--gold);
  background: rgba(217, 164, 65, 0.1);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  stroke: rgba(243, 238, 231, 0.6);
  stroke-width: 1.5;
  fill: none;
}

.footer-social a:hover svg {
  stroke: var(--gold);
}

.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(243, 238, 231, 0.4);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: rgba(243, 238, 231, 0.55);
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(243, 238, 231, 0.08);
}

.footer-copy {
  font-size: 12px;
  color: rgba(243, 238, 231, 0.3);
  letter-spacing: 0.3px;
  margin: 0;
}

.footer-copy a {
  color: rgba(243, 238, 231, 0.45);
}

.footer-copy a:hover {
  color: var(--gold);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(243, 238, 231, 0.35);
}

.footer-bottom-links a:hover {
  color: var(--gold);
}

@media (max-width: 960px) {
  .container {
    padding: 0 24px;
  }

  #navbar,
  #navbar.scrolled,
  #navbar.menu-open {
    background: rgba(246, 240, 232, 0.72) !important;
    backdrop-filter: blur(20px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 10px 28px rgba(37, 39, 43, 0.08) !important;
  }

  #navbar::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
      linear-gradient(115deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.05) 42%, transparent 43%),
      radial-gradient(90% 140% at 100% 0%, rgba(217, 164, 65, 0.28), transparent 50%);
  }

  .nav-topstrip,
  .nav-inner,
  .nav-mobile {
    position: relative;
    z-index: 1;
  }

  .nav-topstrip {
    display: block;
    color: var(--charcoal);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08));
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }

  .nav-topstrip::before {
    content: none;
  }

  .nav-topstrip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 24px;
  }

  .nav-topstrip-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .nav-topstrip-contact a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.25;
    color: var(--charcoal);
    white-space: nowrap;
  }

  .nav-topstrip-contact svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    stroke: var(--plum);
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .nav-topstrip-social {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
  }

  .nav-topstrip-social a {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.7);
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  .nav-topstrip-social svg {
    width: 11px;
    height: 11px;
    stroke: var(--plum);
    fill: none;
    stroke-width: 1.7;
  }

  .nav-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    height: 58px;
    gap: 12px;
  }

  .nav-logo-mark,
  #navbar.scrolled .nav-logo-mark {
    width: 44px;
    height: 44px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  #navbar.menu-open .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  #navbar.menu-open .nav-burger span:nth-child(2) {
    opacity: 0;
  }

  #navbar.menu-open .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-mobile {
    padding: 8px 24px calc(24px + env(safe-area-inset-bottom));
    background: rgba(246, 240, 232, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(37, 39, 43, 0.08);
    box-shadow: 0 16px 36px rgba(37, 39, 43, 0.16);
    max-height: calc(100svh - 86px - env(safe-area-inset-top));
    overflow-y: auto;
  }

  .nav-mobile.open {
    display: flex !important;
  }

  .account-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-mobile a {
    padding: 14px 0;
    font-size: 15px;
    letter-spacing: 0.06em;
  }

  .nav-mobile .btn-primary {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
  }

  .page-hero {
    margin-top: calc(86px + env(safe-area-inset-top));
    min-height: 0;
    height: 120px;
  }

  .page-hero-content {
    padding: 12px 0 10px;
  }
}

@media (max-width: 900px) {

  .portal-grid,
  .portal-kpi,
  .portal-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .portal-grid,
  .portal-kpi,
  .portal-split {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .page-hero+.tp-section {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .portal-title {
    font-size: clamp(26px, 6vw, 36px);
    margin-bottom: 12px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 14px;
  }
}

/* Password visibility toggle */
.m-pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.m-pass-wrap input {
  width: 100%;
  padding-right: 46px !important;
}

.m-pass-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted, #7a7168);
  transition: color 0.15s ease, background-color 0.15s ease;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.m-pass-toggle:hover {
  color: var(--plum, #8b3a2f);
  background: color-mix(in srgb, var(--plum, #8b3a2f) 10%, transparent);
}

.m-pass-toggle:focus-visible {
  outline: 2px solid var(--plum, #8b3a2f);
  outline-offset: 1px;
}

.m-pass-toggle .m-icon-eye-off {
  display: none;
}

.m-pass-toggle[aria-pressed="true"] .m-icon-eye {
  display: none;
}

.m-pass-toggle[aria-pressed="true"] .m-icon-eye-off {
  display: block;
  color: var(--plum, #8b3a2f);
}