/*! Foot Relief Privé — Member Portal (mobile-first PWA shell) */

:root {
  --mp-emerald: #073b30;
  --mp-emerald-dark: #062b24;
  --mp-emerald-soft: #0a4f40;
  --mp-ivory: #faf8f3;
  --mp-ivory-deep: #f2ede3;
  --mp-cream: #f2ede3;
  --mp-gold: #c6a66b;
  --mp-gold-soft: #d4bc8a;
  --mp-gold-deep: #a8874f;
  --mp-charcoal: #242424;
  --mp-muted: #77736d;
  --mp-border: rgba(7, 59, 48, 0.12);
  --mp-border-strong: rgba(198, 166, 107, 0.45);
  --mp-surface: #ffffff;
  --mp-danger: #b42318;
  --mp-success: #067647;
  --mp-warn: #b54708;
  --mp-amber: #b54708;
  --mp-radius: 1rem;
  --mp-radius-sm: 0.75rem;
  --mp-nav-h: 4.5rem;
  --mp-topbar-h: 3.25rem;
  --mp-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --mp-sans: "Outfit", system-ui, -apple-system, sans-serif;
  --mp-shadow: 0 1px 2px rgba(36, 36, 36, 0.04), 0 8px 24px rgba(7, 59, 48, 0.06);
  --mp-ease: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--mp-ivory);
  color: var(--mp-charcoal);
  -webkit-text-size-adjust: 100%;
}

body.mp-body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(198, 166, 107, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(7, 59, 48, 0.06), transparent 50%),
    var(--mp-ivory);
  color: var(--mp-charcoal);
  font-family: var(--mp-sans);
  font-weight: 400;
  line-height: 1.45;
  touch-action: manipulation;
  overflow-x: hidden;
}

.mp-body h1,
.mp-body h2,
.mp-body h3,
.mp-body .mp-heading {
  font-family: var(--mp-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
/* Zero-specificity default. A component color (plan name, page title, back
   chevron, nav, buttons) must win, or emerald text disappears on emerald. */
:where(.mp-body) :where(h1, h2, h3, .mp-heading) {
  color: var(--mp-emerald);
}

.mp-body a {
  text-decoration: none;
  transition: color var(--mp-ease);
}
:where(.mp-body) a {
  color: var(--mp-emerald);
}
:where(.mp-body) a:hover {
  color: var(--mp-gold-deep);
}

/* These beat the heading/link defaults above. Without them the label is
   emerald on an emerald surface and disappears. */
.mp-body .mp-mem-card__plan,
.mp-body .mp-pagehead__title {
  color: #fff;
}
.mp-body a.mp-btn--primary,
.mp-body a.mp-btn--primary:hover,
.mp-body a.mp-btn--primary:focus-visible {
  color: #fff;
}
.mp-body a.mp-btn--gold,
.mp-body a.mp-btn--gold:hover,
.mp-body a.mp-btn--gold:focus-visible,
.mp-body a.mp-btn--outline,
.mp-body a.mp-btn--outline:hover,
.mp-body a.mp-btn--outline:focus-visible {
  color: var(--mp-emerald);
}

.mp-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 40rem;
  margin: 0 auto;
  padding:
    env(safe-area-inset-top, 0px)
    max(1rem, env(safe-area-inset-right, 0px))
    calc(var(--mp-nav-h) + env(safe-area-inset-bottom, 0px) + 0.75rem)
    max(1rem, env(safe-area-inset-left, 0px));
}

.mp-shell--auth {
  padding: 0;
  justify-content: center;
  max-width: none;
  width: 100%;
}

.mp-shell--sticky {
  padding-bottom: calc(var(--mp-nav-h) + env(safe-area-inset-bottom, 0px) + 5.5rem);
}

/* ── Brand ── */
.mp-brand {
  text-align: center;
  margin-bottom: 1.25rem;
}
.mp-brand__logo {
  width: 5.5rem;
  height: auto;
  display: block;
  margin: 0 auto 0.85rem;
  object-fit: contain;
}
.mp-brand__name {
  margin: 0;
  font-family: var(--mp-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--mp-emerald);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.mp-brand--on-dark .mp-brand__name {
  color: #fff;
}
.mp-brand__prive {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--mp-gold);
  letter-spacing: 0.28em;
  margin-top: 0.2rem;
}
.mp-brand__tagline {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--mp-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mp-brand--on-dark .mp-brand__tagline {
  color: rgba(250, 248, 243, 0.72);
}

/* ── Auth screens ── */
.mp-auth-screen {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    max(1.5rem, env(safe-area-inset-top, 0px))
    max(1.25rem, env(safe-area-inset-right, 0px))
    max(1.5rem, env(safe-area-inset-bottom, 0px))
    max(1.25rem, env(safe-area-inset-left, 0px));
  overflow-x: hidden;
}
.mp-auth-screen--premium,
.mp-auth-screen--light {
  background: #f7f3ea;
}
body.mp-auth {
  background: #f7f3ea;
}
.mp-auth-screen .mp-card {
  max-width: 24rem;
  margin: 0 auto;
  width: 100%;
  background: var(--mp-surface);
}
.mp-auth-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  padding: 0.25rem 0 0.5rem;
}
.mp-auth-botanical {
  position: absolute;
  color: rgba(168, 135, 79, 0.28);
  pointer-events: none;
  z-index: 0;
}
.mp-auth-botanical svg {
  display: block;
  width: 100%;
  height: 100%;
}
.mp-auth-botanical--tr {
  top: max(0.25rem, env(safe-area-inset-top, 0px));
  right: -0.35rem;
  width: min(42vw, 9.5rem);
  height: min(52vw, 11.5rem);
}
.mp-auth-botanical--bl {
  bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  left: -0.5rem;
  width: min(40vw, 9rem);
  height: min(50vw, 11rem);
}
.mp-auth-screen--premium .mp-brand {
  margin-bottom: 1.75rem;
}
.mp-auth-screen--premium .mp-brand__logo {
  width: 5.75rem;
  margin-bottom: 0.75rem;
}
.mp-auth-heading {
  text-align: center;
  margin: 0 0 0.45rem;
  font-size: clamp(1.85rem, 7vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mp-emerald);
}
.mp-auth-lead {
  text-align: center;
  color: var(--mp-muted);
  font-family: var(--mp-sans);
  font-size: 0.92rem;
  margin: 0 0 1.65rem;
  line-height: 1.45;
}
.mp-auth-form .mp-field {
  margin-bottom: 1.15rem;
}
.mp-auth-form .form-label {
  font-family: var(--mp-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mp-charcoal);
  margin-bottom: 0.4rem;
}
.mp-auth-screen--premium .form-control,
.mp-auth-screen--premium .form-select {
  min-height: 3rem;
  border-radius: 0.85rem;
  border-color: rgba(7, 59, 48, 0.14);
  background: #fff;
  font-size: 1rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.mp-auth-screen--premium .spa-phone-input {
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(7, 59, 48, 0.14);
  background: #fff;
}
.mp-auth-screen--premium .spa-phone-input > .form-select,
.mp-auth-screen--premium .spa-phone-input > .form-control {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 3rem;
}
.mp-auth-screen--premium .spa-phone-input > .form-select {
  max-width: 5.75rem !important;
  flex: 0 0 5.75rem;
  font-weight: 500;
  color: var(--mp-emerald);
  background-color: #fff;
  border-right: 1px solid rgba(7, 59, 48, 0.12) !important;
  padding-left: 0.75rem;
  padding-right: 1.75rem;
}
.mp-auth-screen--premium .spa-phone-input > .form-control:focus,
.mp-auth-screen--premium .spa-phone-input > .form-select:focus,
.mp-auth-screen--premium .mp-password .form-control:focus {
  box-shadow: none;
  outline: none;
}
.mp-auth-screen--premium .spa-phone-input:focus-within,
.mp-auth-screen--premium .mp-password .form-control:focus {
  border-color: rgba(7, 59, 48, 0.35);
  box-shadow: 0 0 0 3px rgba(7, 59, 48, 0.08);
}
.mp-auth-screen--premium .mp-password .form-control {
  border: 1px solid rgba(7, 59, 48, 0.14);
  padding-right: 3.1rem;
}
.mp-auth-screen--premium .mp-password__toggle {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
}
.mp-auth-submit {
  margin-top: 0.35rem;
  min-height: 3.15rem;
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: 0.01em;
}
.mp-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.45rem 0 1.1rem;
  color: var(--mp-muted);
  font-size: 0.78rem;
}
.mp-auth-divider::before,
.mp-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(7, 59, 48, 0.12);
}
.mp-auth-help {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(7, 59, 48, 0.055);
  border: 1px solid rgba(7, 59, 48, 0.08);
}
.mp-auth-help__icon {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mp-emerald);
  background: rgba(7, 59, 48, 0.08);
}
.mp-auth-help__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  font-family: var(--mp-sans);
  font-size: 0.84rem;
  color: var(--mp-muted);
  line-height: 1.35;
}
.mp-auth-help__copy strong {
  color: var(--mp-emerald);
  font-weight: 600;
  font-size: 0.9rem;
}
.mp-auth-foot {
  margin-top: 2rem;
  text-align: center;
}
.mp-auth-foot__rule {
  display: block;
  width: 2.75rem;
  height: 1.5px;
  margin: 0 auto 0.75rem;
  background: var(--mp-gold);
  border-radius: 999px;
}
.mp-auth-foot__brand {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mp-gold-deep);
  font-weight: 500;
}

/* Login card — cream page and corner motifs stay outside the card. */
.mp-auth-screen--login {
  align-items: center;
  justify-content: flex-start;
  padding-bottom: calc(9rem + env(safe-area-inset-bottom, 0px));
}
.mp-auth-screen--login .mp-auth-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(26.5rem, 100%);
  max-width: 26.5rem;
  margin-block: auto;
  padding: 0.15rem 0 0.15rem;
}
.mp-auth-card {
  background: #fff;
  border: 1px solid rgba(198, 166, 107, 0.55);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(36, 36, 36, 0.04),
    0 12px 32px rgba(7, 59, 48, 0.08);
  padding: 1.35rem 1.2rem 1.2rem;
}
.mp-auth-screen--login .mp-brand {
  margin-bottom: 1rem;
}
.mp-auth-screen--login .mp-brand__logo {
  width: 5rem;
  margin-bottom: 0.45rem;
}
.mp-auth-screen--login .mp-auth-heading {
  margin-bottom: 0.3rem;
}
.mp-auth-screen--login .mp-auth-lead {
  margin-bottom: 1.1rem;
}
.mp-auth-screen--login .mp-auth-divider {
  margin: 1.05rem 0 0.85rem;
}
.mp-auth-screen--login .mp-auth-foot {
  margin-top: 1rem;
}
.mp-contact-row.mp-auth-contact {
  margin-top: 0.9rem;
  flex-wrap: nowrap;
  gap: 0.35rem;
}
.mp-contact-row.mp-auth-contact .mp-btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  white-space: nowrap;
  background: #fff;
  border-color: rgba(198, 166, 107, 0.7);
  padding-inline: 0.3rem;
  font-size: 0.72rem;
}
.mp-contact-row.mp-auth-contact .mp-btn--gold {
  background: linear-gradient(135deg, var(--mp-gold), var(--mp-gold-soft));
  border-color: transparent;
}
@media (min-width: 480px) {
  .mp-contact-row.mp-auth-contact .mp-btn {
    font-size: 0.8rem;
    padding-inline: 0.45rem;
  }
}
@media (min-width: 768px) {
  .mp-auth-card {
    padding: 2.1rem 1.85rem 1.55rem;
  }
}
@media (min-height: 760px) {
  .mp-auth-screen--login {
    justify-content: center;
  }
}
.mp-auth-branch {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--mp-muted);
  letter-spacing: 0.04em;
}

@media (max-width: 430px) {
  .mp-auth-panel {
    max-width: 100%;
  }
}
@media (max-width: 359.98px) {
  .mp-auth-screen {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .mp-auth-heading {
    font-size: 1.7rem;
  }
}

/* ── Cards / surfaces ── */
.mp-card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--mp-shadow);
}
.mp-card + .mp-card {
  margin-top: 1rem;
}

.mp-panel {
  background: var(--mp-ivory-deep);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  padding: 1rem;
}

.mp-panel--warn {
  background: #fffaeb;
  border-color: #fedf89;
  color: var(--mp-warn);
}
.mp-panel--info {
  background: rgba(7, 59, 48, 0.06);
  border-color: var(--mp-border);
  color: var(--mp-emerald);
}

.mp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding-top: 0.35rem;
}
.mp-header__title {
  margin: 0;
  font-size: 1.55rem;
}
.mp-header__sub {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--mp-muted);
}
.mp-header__logo {
  width: 2.75rem;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.mp-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.mp-muted {
  color: var(--mp-muted);
  font-size: 0.88rem;
}
.mp-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--mp-muted);
  line-height: 1.4;
}

/* ── Top bar + drawer ── */
.mp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--mp-topbar-h);
  margin-bottom: 0.85rem;
  padding-top: 0.25rem;
}
.mp-topbar__btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--mp-emerald);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  touch-action: manipulation;
}
.mp-topbar__btn:hover,
.mp-topbar__btn:focus-visible {
  background: rgba(7, 59, 48, 0.06);
  outline: none;
}
.mp-topbar__greet {
  flex: 1;
  min-width: 0;
}
.mp-topbar__hello {
  margin: 0;
  font-size: 0.78rem;
  color: var(--mp-muted);
  letter-spacing: 0.04em;
}
.mp-topbar__name {
  margin: 0.1rem 0 0;
  font-family: var(--mp-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--mp-emerald);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--mp-emerald), var(--mp-emerald-soft));
  color: var(--mp-gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  border: 2px solid rgba(198, 166, 107, 0.45);
}
.mp-avatar--lg {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1rem;
}

.mp-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 43, 36, 0.45);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--mp-ease), visibility var(--mp-ease);
}
.mp-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.mp-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(18.5rem, 86vw);
  z-index: 210;
  background: var(--mp-ivory);
  box-shadow: 8px 0 32px rgba(6, 43, 36, 0.18);
  padding:
    calc(1rem + env(safe-area-inset-top, 0px))
    1.15rem
    calc(1.25rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-105%);
  transition: transform var(--mp-ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mp-drawer.is-open {
  transform: translateX(0);
}
.mp-drawer__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mp-drawer__name {
  margin: 0;
  font-family: var(--mp-serif);
  font-size: 1.15rem;
  color: var(--mp-emerald);
}
.mp-drawer__meta {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--mp-muted);
}
.mp-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.mp-drawer__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--mp-radius-sm);
  color: var(--mp-charcoal);
  font-weight: 500;
  font-size: 0.95rem;
}
.mp-drawer__link i {
  color: var(--mp-gold-deep);
  font-size: 1.1rem;
}
.mp-drawer__link:hover,
.mp-drawer__link.is-active {
  background: rgba(7, 59, 48, 0.06);
  color: var(--mp-emerald);
}
.mp-drawer__foot {
  margin-top: auto;
}

/* ── Page chrome (emerald header for wizard) ── */
.mp-pagehead {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: -0.15rem -0.15rem 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(145deg, var(--mp-emerald) 0%, var(--mp-emerald-dark) 100%);
  border-radius: var(--mp-radius);
  color: #fff;
}
.mp-pagehead__back {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mp-pagehead__back:hover {
  color: var(--mp-gold-soft);
}
.mp-pagehead__title {
  margin: 0;
  font-family: var(--mp-serif);
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
}
.mp-pagehead__sub {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: rgba(250, 248, 243, 0.7);
}

.mp-steps {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
  padding: 0 0.15rem;
}
.mp-steps__dot {
  flex: 1;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(7, 59, 48, 0.12);
}
.mp-steps__dot.is-done,
.mp-steps__dot.is-active {
  background: var(--mp-emerald);
}
.mp-steps__dot.is-active {
  background: var(--mp-gold);
}

/* ── Forms ── */
.mp-body .form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mp-charcoal);
  margin-bottom: 0.35rem;
}

.mp-body .form-control,
.mp-body .form-select {
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  background: var(--mp-surface);
  color: var(--mp-charcoal);
  min-height: 2.85rem;
  font-size: 1rem;
  padding: 0.6rem 0.9rem;
  transition: border-color var(--mp-ease), box-shadow var(--mp-ease);
}
.mp-body .form-control:focus,
.mp-body .form-select:focus {
  border-color: var(--mp-gold);
  box-shadow: 0 0 0 3px rgba(198, 166, 107, 0.22);
  background: var(--mp-surface);
  color: var(--mp-charcoal);
}
.mp-body .form-control::placeholder {
  color: #9a9a9a;
}
.mp-body textarea.form-control {
  min-height: 4.5rem;
}

.mp-body .spa-phone-input {
  display: flex;
  width: 100%;
}
.mp-body .spa-phone-input > .form-select,
.mp-body .spa-phone-input > .form-control {
  border-radius: 0;
}
.mp-body .spa-phone-input > :first-child {
  border-radius: var(--mp-radius-sm) 0 0 var(--mp-radius-sm);
  max-width: 6.5rem;
  border-right: 0;
}
.mp-body .spa-phone-input > .spa-phone-custom-cc {
  max-width: 5rem;
  border-right: 0;
}
.mp-body .spa-phone-input > .spa-phone-national {
  border-radius: 0 var(--mp-radius-sm) var(--mp-radius-sm) 0;
  flex: 1;
}
.mp-body .spa-phone-input > .form-select:focus,
.mp-body .spa-phone-input > .form-control:focus {
  z-index: 2;
}

.mp-field {
  margin-bottom: 1rem;
}

.mp-password {
  position: relative;
}
.mp-password .form-control {
  padding-right: 3rem;
}
.mp-password__toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--mp-muted);
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  cursor: pointer;
  touch-action: manipulation;
}
.mp-password__toggle:hover,
.mp-password__toggle:focus-visible {
  color: var(--mp-emerald);
  outline: none;
}
.mp-password__toggle .bi-eye-slash {
  display: none;
}
.mp-password.is-visible .bi-eye {
  display: none;
}
.mp-password.is-visible .bi-eye-slash {
  display: inline;
}

.mp-req {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--mp-muted);
  margin-top: 0.4rem;
}
.mp-req.is-ok {
  color: var(--mp-success);
}
.mp-req.is-bad {
  color: var(--mp-danger);
}

/* ── Buttons ── */
.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--mp-ease), border-color var(--mp-ease), color var(--mp-ease),
    opacity var(--mp-ease);
  text-decoration: none;
  width: 100%;
}
.mp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.mp-btn--primary {
  background: var(--mp-emerald);
  color: #fff;
}
.mp-btn--primary:hover,
.mp-btn--primary:focus-visible {
  background: var(--mp-emerald-soft);
  color: #fff;
}
.mp-btn--gold {
  background: linear-gradient(135deg, var(--mp-gold), var(--mp-gold-soft));
  color: var(--mp-emerald);
}
.mp-btn--gold:hover,
.mp-btn--gold:focus-visible {
  filter: brightness(1.04);
  color: var(--mp-emerald);
}
.mp-btn--outline {
  background: transparent;
  border-color: var(--mp-border-strong);
  color: var(--mp-emerald);
}
.mp-btn--outline:hover,
.mp-btn--outline:focus-visible {
  border-color: var(--mp-gold);
  color: var(--mp-emerald);
  background: rgba(198, 166, 107, 0.08);
}
.mp-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--mp-muted);
  min-height: 2.4rem;
}
.mp-btn--ghost:hover {
  color: var(--mp-danger);
}
.mp-btn--danger {
  background: #fef3f2;
  border-color: #fecdca;
  color: var(--mp-danger);
}
.mp-btn--sm {
  min-height: 2.35rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  width: auto;
}
.mp-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.mp-btn-row .mp-btn {
  width: auto;
  flex: 1 1 auto;
}

.mp-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--mp-nav-h) + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, transparent, var(--mp-ivory) 28%);
  pointer-events: none;
}
.mp-sticky-cta .mp-btn {
  pointer-events: auto;
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  box-shadow: 0 -4px 24px rgba(7, 59, 48, 0.08);
}
.mp-shell--auth ~ .mp-sticky-cta,
body.mp-auth .mp-sticky-cta {
  bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Alerts ── */
.mp-body .alert {
  border-radius: var(--mp-radius-sm);
  border: 1px solid var(--mp-border);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
}
.mp-body .alert-danger {
  background: #fef3f2;
  border-color: #fecdca;
  color: var(--mp-danger);
}
.mp-body .alert-warning {
  background: #fffaeb;
  border-color: #fedf89;
  color: var(--mp-warn);
}
.mp-body .alert-success {
  background: #ecfdf3;
  border-color: #abefc6;
  color: var(--mp-success);
}
.mp-body .alert-info {
  background: #f8f6f1;
  border-color: var(--mp-border);
  color: var(--mp-emerald);
}
.mp-body .btn-close {
  filter: none;
}

/* ── Bottom nav ── */
.mp-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--mp-border);
  padding: 0.3rem 0.35rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
}
.mp-nav__inner {
  max-width: 40rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.1rem;
}
.mp-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-height: 3.35rem;
  padding: 0.3rem 0.1rem;
  border-radius: var(--mp-radius-sm);
  color: var(--mp-muted);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--mp-ease), background var(--mp-ease);
  text-align: center;
  line-height: 1.15;
}
.mp-nav__link i {
  font-size: 1.2rem;
  line-height: 1;
}
.mp-nav__link:hover {
  color: var(--mp-emerald);
}
.mp-nav__link.is-active {
  color: var(--mp-emerald);
  background: rgba(7, 59, 48, 0.06);
}

/* ── Emerald membership card ── */
.mp-mem-card {
  background: linear-gradient(155deg, var(--mp-emerald) 0%, var(--mp-emerald-dark) 55%, #0a4f40 100%);
  border-radius: var(--mp-radius);
  padding: 1.35rem 1.25rem;
  color: #fff;
  box-shadow: var(--mp-shadow);
  position: relative;
  overflow: hidden;
}
.mp-mem-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: rgba(198, 166, 107, 0.12);
  pointer-events: none;
}
.mp-mem-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.mp-mem-card__plan {
  margin: 0;
  font-family: var(--mp-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}
.mp-mem-card__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.65);
  margin-bottom: 0.25rem;
}
.mp-mem-card__balance {
  font-family: var(--mp-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--mp-gold-soft);
  line-height: 1.1;
  position: relative;
  z-index: 1;
}
.mp-mem-card__meta {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: rgba(250, 248, 243, 0.72);
  position: relative;
  z-index: 1;
}
.mp-mem-card__progress {
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}
.mp-progress {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.mp-progress__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mp-gold), var(--mp-gold-soft));
  transition: width var(--mp-ease);
}
.mp-progress__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(250, 248, 243, 0.65);
  margin-top: 0.4rem;
}
.mp-mem-card .mp-status {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(198, 166, 107, 0.4);
  color: var(--mp-gold-soft);
}
.mp-mem-card .mp-btn {
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

/* ── Status badges ── */
.mp-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--mp-border);
  background: var(--mp-ivory-deep);
  color: var(--mp-emerald);
  white-space: nowrap;
}
.mp-status.status-active,
.mp-status.status-BOOKED,
.mp-status.status-booked {
  background: #ecfdf3;
  border-color: #abefc6;
  color: var(--mp-success);
}
.mp-status.status-REQUESTED,
.mp-status.status-requested {
  background: #fffaeb;
  border-color: #fedf89;
  color: var(--mp-amber);
}
.mp-status.status-COMPLETED,
.mp-status.status-completed,
.mp-status.status-ENDED,
.mp-status.status-ended {
  background: var(--mp-ivory-deep);
  border-color: var(--mp-border);
  color: var(--mp-muted);
}
.mp-status.status-CANCELLED,
.mp-status.status-cancelled,
.mp-status.status-NO_SHOW,
.mp-status.status-exhausted,
.mp-status.status-inactive {
  background: #fef3f2;
  border-color: #fecdca;
  color: var(--mp-danger);
}
.mp-status.status-expiring_soon {
  background: #fffaeb;
  border-color: #fedf89;
  color: var(--mp-warn);
}

.mp-stat-grid {
  display: grid;
  gap: 0.75rem;
}
.mp-stat {
  background: var(--mp-ivory-deep);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  padding: 0.9rem 1rem;
}
.mp-stat__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 0.3rem;
}
.mp-stat__value {
  display: block;
  font-family: var(--mp-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--mp-emerald);
  line-height: 1.2;
}
.mp-stat__value--sm {
  font-size: 1.05rem;
  font-family: var(--mp-sans);
  font-weight: 500;
}
.mp-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mp-detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--mp-border);
  font-size: 0.92rem;
}
.mp-detail-list li:last-child {
  border-bottom: 0;
}
.mp-detail-list__k {
  color: var(--mp-muted);
}
.mp-detail-list__v {
  color: var(--mp-charcoal);
  font-weight: 500;
  text-align: right;
}

.mp-ledger {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: collapse;
}
.mp-ledger th {
  font-weight: 500;
  color: var(--mp-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.35rem;
  border-bottom: 1px solid var(--mp-border);
}
.mp-ledger td {
  padding: 0.65rem 0.35rem;
  border-bottom: 1px solid var(--mp-border);
  vertical-align: top;
}
.mp-ledger tr:last-child td {
  border-bottom: 0;
}
.mp-ledger .is-debit {
  color: var(--mp-danger);
}
.mp-ledger .is-credit {
  color: var(--mp-success);
}

/* ── Home ── */
.mp-hero-cta {
  display: block;
  border-radius: var(--mp-radius);
  overflow: hidden;
  position: relative;
  min-height: 9.5rem;
  color: #fff;
  box-shadow: var(--mp-shadow);
  margin-top: 1rem;
}
.mp-hero-cta__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--mp-emerald-dark) 0%, var(--mp-emerald) 55%, var(--mp-emerald-soft) 100%);
}
.mp-hero-cta__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.2rem;
  min-height: 9.5rem;
}
.mp-hero-cta__logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}
.mp-hero-cta__title {
  margin: 0;
  font-family: var(--mp-serif);
  font-size: 1.45rem;
  color: #fff;
}
.mp-hero-cta__sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: rgba(250, 248, 243, 0.8);
}
.mp-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
.mp-quick__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1rem;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  color: var(--mp-charcoal);
  box-shadow: var(--mp-shadow);
  min-height: 5rem;
}
.mp-quick__link i {
  font-size: 1.35rem;
  color: var(--mp-gold-deep);
}
.mp-quick__link span {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--mp-emerald);
}
.mp-pending {
  display: block;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--mp-radius-sm);
  border: 1px solid #fedf89;
  background: #fffaeb;
  color: var(--mp-charcoal);
}
.mp-pending__title {
  margin: 0;
  font-weight: 560;
  color: var(--mp-amber);
  font-size: 0.92rem;
}
.mp-pending__meta {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--mp-muted);
}

/* ── Profile choice cards ── */
.mp-profiles {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}
.mp-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: var(--mp-radius-sm);
  border: 1.5px solid var(--mp-border);
  background: var(--mp-surface);
  color: var(--mp-charcoal);
  cursor: pointer;
  transition: border-color var(--mp-ease), box-shadow var(--mp-ease);
}
.mp-profile:hover {
  border-color: var(--mp-gold);
}
.mp-profile.is-selected {
  border-color: var(--mp-emerald);
  box-shadow: 0 0 0 3px rgba(7, 59, 48, 0.12);
}
.mp-profile__name {
  margin: 0;
  font-weight: 560;
  color: var(--mp-emerald);
  font-size: 1rem;
}
.mp-profile__plan {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--mp-muted);
}

/* ── Book / services ── */
.mp-service {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  width: 100%;
  text-align: left;
  padding: 0.85rem;
  border-radius: var(--mp-radius-sm);
  border: 1.5px solid var(--mp-border);
  background: var(--mp-surface);
  color: var(--mp-charcoal);
  transition: border-color var(--mp-ease), background var(--mp-ease);
  margin-bottom: 0.65rem;
  position: relative;
}
.mp-service:hover {
  border-color: var(--mp-gold);
  color: var(--mp-charcoal);
}
.mp-service.is-selected {
  border-color: var(--mp-emerald);
  background: rgba(7, 59, 48, 0.04);
  box-shadow: 0 0 0 3px rgba(7, 59, 48, 0.08);
}
.mp-service__thumb {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 0.65rem;
  object-fit: contain;
  object-position: center;
  padding: 0.45rem;
  flex-shrink: 0;
  background: var(--mp-ivory-deep);
  border: 1px solid var(--mp-border);
}
.mp-service__body {
  flex: 1;
  min-width: 0;
}
.mp-service__cat {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin-bottom: 0.15rem;
}
.mp-service__name {
  display: block;
  font-weight: 560;
  color: var(--mp-emerald);
  margin-bottom: 0.15rem;
}
.mp-service__meta {
  display: block;
  font-size: 0.82rem;
  color: var(--mp-muted);
}
.mp-service__note {
  display: block;
  font-size: 0.8rem;
  color: var(--mp-muted);
  margin-top: 0.35rem;
}
.mp-service__check {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--mp-border);
  background: var(--mp-surface);
}
.mp-service.is-selected .mp-service__check {
  background: var(--mp-emerald);
  border-color: var(--mp-emerald);
  box-shadow: inset 0 0 0 3px #fff;
}
.mp-cat {
  margin: 1rem 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-muted);
}

/* Calendar */
.mp-cal {
  margin-bottom: 1.15rem;
}
.mp-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.mp-cal__month {
  margin: 0;
  font-family: var(--mp-serif);
  font-size: 1.15rem;
  color: var(--mp-emerald);
}
.mp-cal__nav {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--mp-border);
  background: var(--mp-surface);
  color: var(--mp-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mp-cal__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.mp-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  text-align: center;
}
.mp-cal__dow {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--mp-muted);
  letter-spacing: 0.04em;
  padding: 0.25rem 0;
  text-transform: uppercase;
}
.mp-cal__day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mp-charcoal);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  touch-action: manipulation;
}
.mp-cal__day:hover:not(:disabled):not(.is-empty) {
  background: rgba(7, 59, 48, 0.06);
}
.mp-cal__day.is-selected {
  background: var(--mp-emerald);
  color: #fff;
}
.mp-cal__day:disabled,
.mp-cal__day.is-muted {
  color: #c4c0b8;
  cursor: default;
}
.mp-cal__day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.mp-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
@media (min-width: 400px) {
  .mp-slots {
    grid-template-columns: repeat(4, 1fr);
  }
}
.mp-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--mp-border);
  background: var(--mp-surface);
  color: var(--mp-charcoal);
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color var(--mp-ease), background var(--mp-ease), color var(--mp-ease);
  text-align: center;
}
.mp-slot:hover {
  border-color: var(--mp-gold);
  color: var(--mp-emerald);
}
.mp-slot.is-selected {
  background: var(--mp-emerald);
  border-color: var(--mp-emerald);
  color: #fff;
}
.mp-slot.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.mp-therapist {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: var(--mp-radius-sm);
  border: 1.5px solid var(--mp-border);
  background: var(--mp-surface);
  margin-bottom: 0.55rem;
  cursor: pointer;
  color: var(--mp-charcoal);
}
.mp-therapist.is-selected {
  border-color: var(--mp-emerald);
  box-shadow: 0 0 0 3px rgba(7, 59, 48, 0.1);
}
.mp-therapist__name {
  margin: 0;
  font-weight: 560;
  color: var(--mp-emerald);
}
.mp-therapist__meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--mp-muted);
}

.mp-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--mp-border);
  font-size: 0.92rem;
}
.mp-summary-row:last-child {
  border-bottom: 0;
}
.mp-summary-row__k {
  color: var(--mp-muted);
}
.mp-summary-row__v {
  font-weight: 500;
  text-align: right;
  color: var(--mp-charcoal);
}
.mp-summary-row__edit {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mp-gold-deep);
  margin-left: 0.5rem;
}

.mp-success {
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem;
}
.mp-success__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(198, 166, 107, 0.25), rgba(7, 59, 48, 0.12));
  color: var(--mp-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid var(--mp-border-strong);
}
.mp-success__title {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
}

/* ── Visits ── */
.mp-filters {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
}
.mp-filters__btn {
  flex: 0 0 auto;
  border: 1px solid var(--mp-border);
  background: var(--mp-surface);
  color: var(--mp-muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 2.25rem;
}
.mp-filters__btn.is-active {
  background: var(--mp-emerald);
  border-color: var(--mp-emerald);
  color: #fff;
}

.mp-visit {
  display: block;
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  padding: 0.95rem 1rem;
  background: var(--mp-surface);
  margin-bottom: 0.65rem;
  color: var(--mp-charcoal);
  box-shadow: var(--mp-shadow);
}
.mp-visit:hover {
  border-color: var(--mp-gold);
  color: var(--mp-charcoal);
}
.mp-visit__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.mp-visit__date {
  font-weight: 560;
  color: var(--mp-emerald);
}
.mp-visit__service {
  font-size: 0.95rem;
  font-weight: 500;
}
.mp-visit__meta {
  font-size: 0.82rem;
  color: var(--mp-muted);
  margin-top: 0.15rem;
}
.mp-visit__reason {
  font-size: 0.82rem;
  margin-top: 0.45rem;
  color: var(--mp-warn);
}
.mp-visit__action {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mp-gold-deep);
}

.mp-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--mp-muted);
  font-size: 0.92rem;
}

.mp-footer-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--mp-muted);
  margin: 1.25rem 0 0;
  line-height: 1.4;
}

.mp-choice {
  margin-bottom: 1rem;
}

/* About */
.mp-about-hero {
  text-align: center;
  padding: 1.5rem 1rem 1.25rem;
  background: linear-gradient(160deg, var(--mp-emerald), var(--mp-emerald-dark));
  border-radius: var(--mp-radius);
  color: #fff;
  margin-bottom: 1rem;
}
.mp-about-hero .mp-brand__logo {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}
.mp-about-hero .mp-brand__name {
  color: #fff;
}
.mp-about-hero__lead {
  margin: 0.75rem auto 1rem;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(250, 248, 243, 0.82);
}
.mp-about-hero__photo {
  display: block;
  width: 5.5rem;
  height: auto;
  max-height: none;
  margin: 0.5rem auto 0;
  object-fit: contain;
  border-radius: 0;
  border: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}
.mp-about-section {
  margin-bottom: 1.25rem;
  scroll-margin-top: 1rem;
}
.mp-about-section h2 {
  font-size: 1.25rem;
  margin: 0 0 0.45rem;
}
.mp-about-section > p {
  margin: 0;
  color: var(--mp-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.mp-about-photo {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border-radius: var(--mp-radius-sm);
  margin: 0.75rem 0;
}

.mp-jump {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1rem;
  padding-bottom: 0.15rem;
}
.mp-jump a {
  flex: 0 0 auto;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--mp-border);
  background: var(--mp-surface);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mp-emerald);
  white-space: nowrap;
}
.mp-jump a:hover {
  border-color: var(--mp-gold);
  color: var(--mp-gold-deep);
}

.mp-journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mp-journey__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.mp-journey__num {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(7, 59, 48, 0.08);
  border: 1px solid var(--mp-border-strong);
  color: var(--mp-gold-deep);
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}
.mp-journey__title {
  margin: 0 0 0.25rem;
  font-family: var(--mp-serif);
  font-size: 1.05rem;
  color: var(--mp-emerald);
}
.mp-journey__body {
  margin: 0;
  font-size: 0.88rem;
  color: var(--mp-muted);
  line-height: 1.5;
}
.mp-journey__aside {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--mp-gold-deep);
}

.mp-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 560;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--mp-ivory-deep);
  border: 1px solid var(--mp-border);
  color: var(--mp-muted);
  white-space: nowrap;
}
.mp-badge--gold {
  background: rgba(198, 166, 107, 0.18);
  border-color: var(--mp-border-strong);
  color: var(--mp-gold-deep);
}
.mp-badge--emerald {
  background: rgba(7, 59, 48, 0.1);
  border-color: rgba(7, 59, 48, 0.25);
  color: var(--mp-emerald);
}

.mp-exp,
.mp-plan {
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  background: var(--mp-surface);
  margin-bottom: 0.65rem;
  overflow: hidden;
}
.mp-plan.is-current {
  border-color: var(--mp-emerald);
  box-shadow: 0 0 0 3px rgba(7, 59, 48, 0.08);
}
.mp-exp__toggle,
.mp-plan__toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem;
  border: 0;
  background: transparent;
  color: var(--mp-charcoal);
  cursor: pointer;
  touch-action: manipulation;
}
.mp-exp__toggle.is-open .mp-exp__chev,
.mp-plan__toggle.is-open .mp-exp__chev,
.mp-exp__toggle[aria-expanded="true"] .mp-exp__chev,
.mp-plan__toggle[aria-expanded="true"] .mp-exp__chev {
  transform: rotate(180deg);
}
.mp-exp__img {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 0.65rem;
  object-fit: contain;
  object-position: center;
  padding: 0.45rem;
  flex-shrink: 0;
  background: var(--mp-ivory-deep);
  border: 1px solid var(--mp-border);
}
.mp-exp__main,
.mp-plan__head {
  flex: 1;
  min-width: 0;
}
.mp-exp__title-row,
.mp-plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}
.mp-exp__name,
.mp-plan__name {
  font-family: var(--mp-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--mp-emerald);
}
.mp-exp__meta,
.mp-plan__prices {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mp-charcoal);
}
.mp-exp__tag,
.mp-plan__value {
  display: block;
  font-size: 0.78rem;
  color: var(--mp-muted);
  margin-top: 0.15rem;
}
.mp-exp__chev {
  flex-shrink: 0;
  color: var(--mp-muted);
  transition: transform var(--mp-ease);
}
.mp-exp__body,
.mp-plan__body {
  padding: 0 0.95rem 1rem 0.95rem;
  border-top: 1px solid var(--mp-border);
}
.mp-exp__desc,
.mp-plan__blurb {
  margin: 0.85rem 0 0.65rem;
  font-size: 0.88rem;
  color: var(--mp-muted);
  line-height: 1.5;
}
.mp-exp__includes-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mp-emerald);
}
.mp-exp__list,
.mp-plan__priv {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--mp-charcoal);
  line-height: 1.45;
}
.mp-exp__list li,
.mp-plan__priv li {
  margin-bottom: 0.35rem;
}
.mp-plan__note {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--mp-muted);
  margin-top: 0.15rem;
}
.mp-plan__toggle {
  flex-wrap: wrap;
}
.mp-plan__prices {
  width: 100%;
  padding-left: 0;
  order: 3;
}
.mp-plan__toggle .mp-exp__chev {
  margin-left: auto;
}

.mp-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mp-contact-row .mp-btn {
  width: auto;
  flex: 1 1 auto;
  min-width: 5.5rem;
}
.mp-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mp-contact-list li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.mp-contact-list a {
  font-weight: 500;
}

/* Modal */
.mp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 43, 36, 0.5);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}
.mp-modal {
  background: var(--mp-surface);
  border-radius: var(--mp-radius);
  padding: 1.35rem 1.25rem;
  width: 100%;
  max-width: 24rem;
  box-shadow: var(--mp-shadow);
}
.mp-modal h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.mp-modal p {
  margin: 0 0 1.15rem;
  color: var(--mp-muted);
  font-size: 0.9rem;
}

/* PWA install banner — member shell does not load app.css, so the card
   layout lives here. Fixed + explicit width is what centers it. */
.mp-body .pwa-install-banner {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 150;
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  width: min(
    36rem,
    calc(100% - 1.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))
  );
  margin-inline: auto;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--mp-border);
  background: var(--mp-surface);
  color: var(--mp-charcoal);
  box-shadow: var(--mp-shadow);
  bottom: calc(var(--mp-nav-h) + 0.5rem + env(safe-area-inset-bottom, 0px));
  max-height: min(70dvh, calc(100dvh - var(--mp-nav-h) - 1.25rem - env(safe-area-inset-bottom, 0px)));
  overflow: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.mp-body .pwa-install-banner.is-visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.mp-body .pwa-install-banner[hidden] {
  display: none !important;
}
.mp-body.mp-auth .pwa-install-banner,
.mp-shell--auth ~ .pwa-install-banner,
body.mp-auth .pwa-install-banner {
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  max-height: min(70dvh, calc(100dvh - 1.75rem - env(safe-area-inset-bottom, 0px)));
}
/* Book flow sticky confirm sits in the same band as the default card. */
.mp-shell--sticky ~ .pwa-install-banner {
  bottom: calc(var(--mp-nav-h) + 5.25rem + env(safe-area-inset-bottom, 0px));
  max-height: min(60dvh, calc(100dvh - var(--mp-nav-h) - 6.5rem - env(safe-area-inset-bottom, 0px)));
}
.mp-body .pwa-install-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.65rem;
  object-fit: cover;
  border: 1px solid var(--mp-border);
  flex-shrink: 0;
}
.mp-body .pwa-install-copy {
  flex: 1;
  min-width: 0;
}
.mp-body .pwa-install-copy strong {
  display: block;
  font-size: 0.95rem;
  color: var(--mp-emerald);
  margin-bottom: 0.15rem;
}
.mp-body .pwa-install-copy p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--mp-muted);
  line-height: 1.35;
}
.mp-body .pwa-install-steps {
  margin-top: 0.55rem;
}
.mp-body .pwa-install-steps[hidden] {
  display: none !important;
}
.mp-body .pwa-install-steps-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.76rem;
  color: var(--mp-charcoal);
  line-height: 1.45;
}
.mp-body .pwa-install-steps-list li + li {
  margin-top: 0.28rem;
}
.mp-body .pwa-share-glyph {
  display: inline-flex;
  vertical-align: -2px;
  color: var(--mp-gold-deep);
}
.mp-body .pwa-install-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}
.mp-body .pwa-install-actions .btn {
  white-space: nowrap;
  min-height: 36px;
  touch-action: manipulation;
}
.mp-body .pwa-install-actions .btn-gold,
.mp-body .pwa-install-actions .btn-gold:hover,
.mp-body .pwa-install-actions .btn-gold:focus-visible {
  background: var(--mp-emerald);
  border-color: var(--mp-emerald);
  color: #fff;
}
.mp-body .pwa-install-actions .btn-outline-gold,
.mp-body .pwa-install-actions .btn-outline-gold:hover,
.mp-body .pwa-install-actions .btn-outline-gold:focus-visible {
  background: transparent;
  border-color: var(--mp-border-strong);
  color: var(--mp-emerald);
}

@media (max-width: 767.98px) {
  .mp-body .pwa-install-banner {
    flex-wrap: wrap;
  }
  .mp-body .pwa-install-actions {
    flex-direction: row;
    width: 100%;
  }
  .mp-body .pwa-install-actions .btn {
    flex: 1;
  }
}

@media (display-mode: standalone) {
  .mp-body .pwa-install-banner {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .mp-shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .mp-card {
    padding: 1.6rem 1.5rem;
  }
  .mp-brand__logo {
    width: 6.25rem;
  }
  .mp-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mp-sticky-cta .mp-btn {
    max-width: 40rem;
  }
}

@media (min-width: 992px) {
  .mp-shell {
    max-width: 44rem;
  }
  .mp-nav__inner {
    max-width: 44rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mp-body *,
  .mp-body *::before,
  .mp-body *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
