/* ==========================================================================
   SPA MAMBO — GUEST PORTAL  (myaccount.html)
   ========================================================================== */

/* ── PHASE WRAPPER ── */
.ma-phase { min-height: calc(100vh - 80px); display: flex; flex-direction: column; justify-content: center; }

body.myaccount-shell #nav,
body.myaccount-shell #mmenu,
body.myaccount-shell #footer {
  display: none !important;
}
body.myaccount-shell #main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.myaccount-shell.public-entry #nav {
  display: flex !important;
}
body.myaccount-shell.public-entry #mmenu {
  display: none;
}
body.myaccount-shell.public-entry #mmenu.open {
  display: flex !important;
}
body.myaccount-shell.public-entry #footer {
  display: block !important;
}
body.myaccount-shell.public-entry #main {
  padding-top: 86px !important;
}

/* ── PUBLIC MY MAMBO INTRO ── */
.ma-intro-phase {
  min-height: calc(100vh - 86px);
  justify-content: center;
  background:
    radial-gradient(circle at 72% 42%, rgba(207,179,140,0.12), transparent 38%),
    linear-gradient(135deg, #fdfaf7 0%, #f7f1e8 54%, #e8ded0 100%);
  overflow: hidden;
}
.ma-intro-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 56px;
  padding: 42px 0 64px;
}
.ma-intro-kicker {
  margin: 0 0 14px;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #4A8C70;
}
.ma-intro-title {
  margin: 0 0 18px;
  max-width: 620px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.1rem, 7vw, 5.7rem);
  font-weight: 300;
  line-height: 0.98;
  color: #241f1a;
}
.ma-intro-sub {
  max-width: 560px;
  margin: 0 0 30px;
  font-family: 'Jost', sans-serif;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(54,41,23,0.67);
}
.ma-intro-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.ma-intro-primary {
  border: none;
  cursor: pointer;
}
.ma-intro-secondary {
  border: 1.5px solid rgba(74,140,112,0.34);
  background: rgba(74,140,112,0.06);
  color: #2d5a4e;
  border-radius: 99px;
  padding: 14px 22px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.ma-intro-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 680px;
}
.ma-intro-points div {
  border-top: 1px solid rgba(122,107,82,0.18);
  padding-top: 15px;
}
.ma-intro-points span {
  display: block;
  margin-bottom: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4A8C70;
}
.ma-intro-points p {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(54,41,23,0.62);
}
.ma-phone-stage {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.ma-phone {
  width: 306px;
  height: 618px;
  border-radius: 44px;
  padding: 13px;
  background: #121614;
  box-shadow: 0 34px 72px rgba(26,60,52,0.24), 0 14px 28px rgba(0,0,0,0.18);
  transform: rotate(-2deg);
}
.ma-phone-screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #4A8C70;
  padding: 38px 18px 18px;
  box-sizing: border-box;
  color: #fdfaf7;
}
.ma-phone-sensor {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 25px;
  border-radius: 0 0 16px 16px;
  background: #121614;
}
.ma-phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ma-phone-top img {
  width: 34px;
  height: 34px;
}
.ma-phone-card {
  border-radius: 20px;
  padding: 18px;
  background: rgba(253,250,247,0.94);
  color: #241f1a;
  box-shadow: 0 12px 34px rgba(0,0,0,0.14);
}
.ma-phone-card small,
.ma-phone-reward small {
  display: block;
  margin-bottom: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #4A8C70;
}
.ma-phone-card strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
}
.ma-phone-card span {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  color: rgba(54,41,23,0.62);
}
.ma-phone-reward {
  margin-top: 14px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(253,250,247,0.14);
  border: 1px solid rgba(253,250,247,0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ma-phone-reward strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 400;
}
.ma-phone-reward span {
  color: #cfb38c;
  font-family: 'Jost', sans-serif;
  font-weight: 800;
}
.ma-phone-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.ma-phone-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px;
  background: rgba(253,250,247,0.11);
}
.ma-phone-list span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #cfb38c;
  opacity: 0.85;
}
.ma-phone-list p {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.84rem;
}
.ma-phone-tabbar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 54px;
  border-radius: 20px;
  background: rgba(19,31,27,0.68);
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.ma-phone-tabbar span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(253,250,247,0.34);
}
.ma-phone-tabbar span.active {
  background: #cfb38c;
}

/* ── LOGIN / CHECK EMAIL ── */
.ma-center {
  max-width: 480px; margin: 0 auto;
  padding: 56px var(--gutter,40px) 60px;
  text-align: center;
}
.ma-login-logo {
  display: block;
  width: 170px;
  height: auto;
  margin: 0 auto 36px;
  filter: brightness(0) saturate(100%);
  opacity: 0.95;
}
.ma-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 300; color: var(--text); line-height: 1.05;
  margin: 12px 0 20px;
}
.ma-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 300; color: var(--text); line-height: 1.1;
  margin: 16px 0 20px;
}
.ma-sub {
  font-family: 'Jost', sans-serif; font-size: 1rem;
  color: rgba(54,41,23,0.6); line-height: 1.7; margin: 0 0 32px;
}
.ma-icon { font-size: 3rem; margin-bottom: 8px; }

.ma-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.ma-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(54,41,23,0.88);
}
.ma-input {
  width: 100%; padding: 16px 20px;
  border: 1.5px solid rgba(122,107,82,0.25);
  border-radius: 14px; background: var(--cream,#fdfaf7);
  font-family: 'Jost', sans-serif; font-size: 1rem;
  color: var(--text); box-sizing: border-box;
  transition: border-color 0.2s;
}
.ma-input:focus { outline: none; border-color: var(--accent,#cfb38c); }
.ma-btn { width: 100%; padding: 16px; font-size: 0.88rem; }
.ma-helper {
  margin: -2px 0 2px;
  font-family: 'Jost', sans-serif;
  font-size: 0.84rem;
  color: rgba(54,41,23,0.56);
  text-align: center;
}
.ma-err { font-family: 'Jost', sans-serif; font-size: 0.88rem; color: #c0392b; min-height: 20px; }
.ma-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  color: rgba(54,41,23,0.42);
  font-family: 'Jost', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ma-divider::before,
.ma-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(122,107,82,0.18);
}
.ma-secondary-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 99px;
  border: 1.5px solid rgba(122,107,82,0.25);
  background: transparent;
  color: rgba(54,41,23,0.78);
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ma-secondary-solid {
  background: rgba(26,60,52,0.92);
  color: #fdfaf7;
  border-color: rgba(26,60,52,0.92);
}
.ma-create-btn {
  margin-top: 2px;
}
.ma-text-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.88rem;
  color: rgba(54,41,23,0.5); text-decoration: underline;
  text-underline-offset: 3px; padding: 4px 0; margin-top: 8px;
}
.ma-text-btn:hover { color: var(--text); }
.ma-login-links {
  display: flex; justify-content: flex-start; align-items: center;
  margin-top: 4px;
}
.ma-check-note {
  margin: -18px 0 18px;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(54,41,23,0.65);
}
.ma-check-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ma-check-handoff {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(122,107,82,0.22);
  background: rgba(253,250,247,0.65);
  text-align: left;
}
.ma-check-handoff-title {
  margin: 0 0 8px;
  font-family: 'Jost', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(54,41,23,0.8);
}
.ma-check-handoff-copy {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(54,41,23,0.7);
}
.ma-check-handoff-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ma-check-handoff-steps {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(122,107,82,0.16);
}
.ma-check-handoff-steps p {
  margin: 0 0 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(54,41,23,0.66);
}

/* ── PORTAL NAV — always show on brand-green so white logo is visible ── */
#nav {
  background: rgba(26, 60, 52, 0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) 12px !important;
}
#nav .nav-logo img {
  width: 150px !important;
  margin-left: var(--logo-offset-150) !important;
}

/* ── PORTAL DARK SHELL ── */
body.portal-active { background: #1A3C34; overflow: hidden; }
body.portal-active #nav,
body.portal-active #footer { display: none; }
body.portal-active #main {
  padding-top: 0 !important; margin-top: 0;
  height: 100dvh; height: 100vh; /* fallback then dvh */
  overflow: hidden;
}

/* ── PORTAL PHASE ── */
#phase-portal {
  display: flex; flex-direction: column;
  /* Safari requires explicit height (not just min-height) for flex: 1 children to get size */
  height: 100vh; height: 100dvh;
  overflow: hidden; position: relative;
}

/* ── TOPBAR ── */
.ma-topbar {
  flex-shrink: 0; z-index: 200;
  background: #1A3C34;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top,0px) + 12px) 20px 12px;
  border-bottom: 1px solid rgba(207,179,140,0.1);
}
.ma-topbar-logo-img {
  display: block;
  width: 150px; height: auto;
  margin-left: var(--logo-offset-150);
  filter: brightness(0) invert(1);
}
.ma-topbar-sign-out {
  background: none; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.78rem;
  color: rgba(207,179,140,0.7); padding: 0;
  transition: color 0.15s;
}
.ma-topbar-sign-out:hover { color: rgba(207,179,140,0.9); }

/* ── VIEWS CONTAINER ── */
.ma-views {
  flex: 1; overflow: hidden; position: relative;
}
.ma-view {
  position: absolute; inset: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.ma-view-inner {
  max-width: 560px; margin: 0 auto;
  padding: 24px 20px calc(env(safe-area-inset-bottom,0px) + 100px);
}

/* ── BOTTOM NAV ── */
.ma-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #131f1b;
  border-top: 1px solid rgba(207,179,140,0.12);
  display: grid; grid-template-columns: repeat(4,1fr);
  padding-bottom: env(safe-area-inset-bottom,0px);
}
.ma-nav-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 10px 8px 10px;
  background: none; border: none; cursor: pointer;
  transition: opacity 0.15s;
}
.ma-nav-tab svg { width: 22px; height: 22px; stroke: rgba(207,179,140,0.65); transition: stroke 0.15s; }
.ma-nav-label {
  font-family: 'Jost', sans-serif; font-size: 0.71rem;
  font-weight: 500; letter-spacing: 0.08em;
  color: rgba(207,179,140,0.65); transition: color 0.15s;
}
.ma-nav-tab.active svg { stroke: #cfb38c; }
.ma-nav-tab.active .ma-nav-label { color: #cfb38c; }

/* ── FLOATING BOOK FAB ── */
.ma-fab-wrap {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  pointer-events: none;
  display: flex; justify-content: center;
  padding-bottom: calc(env(safe-area-inset-bottom,0px) + 76px);
}
.ma-fab {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: #fdfaf7;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.14);
  transition: transform 0.15s, box-shadow 0.15s;
}
.ma-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.2); }
.ma-fab:active { transform: translateY(0); }

/* ── HOME — HERO ── */
.ma-hero {
  padding: 32px 0 28px;
  border-bottom: 1px solid rgba(207,179,140,0.1);
  margin-bottom: 28px;
}
.ma-hero-tier-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
}
.ma-hero-tier-row .ma-rewards-link { padding: 0; }
.ma-tier-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Jost', sans-serif; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #cfb38c; background: rgba(207,179,140,0.1);
  border: 1px solid rgba(207,179,140,0.22);
  padding: 5px 13px; border-radius: 99px;
}
.ma-loyalty-level-up { font-style: italic; color: rgba(207,179,140,0.7); }
.ma-tier-dot { width: 6px; height: 6px; border-radius: 50%; background: #cfb38c; flex-shrink: 0; }
.ma-greeting {
  font-family: 'Jost', sans-serif; font-size: 0.78rem;
  font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(207,179,140,0.82); margin: 0 0 8px;
}
.ma-guest-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 12vw, 5.5rem);
  font-weight: 300; font-style: italic;
  color: #fdfaf7; line-height: 1; margin: 0;
  letter-spacing: -0.02em;
}

/* ── LOYALTY BAR ── */
.ma-loyalty-bar { margin-top: 20px; }
.ma-loyalty-track {
  height: 7px; background: rgba(207,179,140,0.14);
  border-radius: 99px; overflow: hidden; margin-bottom: 10px;
}
.ma-loyalty-fill {
  height: 100%; background: linear-gradient(to right, #b89a6a, #cfb38c, #e8d4b0);
  border-radius: 99px; transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 0 8px rgba(207,179,140,0.3);
}
.ma-loyalty-labels {
  display: flex; justify-content: flex-end;
  font-family: 'Jost', sans-serif; font-size: 0.85rem;
  color: rgba(207,179,140,0.92);
}

/* ── NUDGE STRIP ── */
.ma-nudge {
  background: rgba(207,179,140,0.07);
  border: 1px solid rgba(207,179,140,0.18);
  border-radius: 14px; padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 28px;
}
.ma-nudge-ico { font-size: 0.82rem; color: #cfb38c; flex-shrink: 0; }
.ma-nudge-text {
  font-family: 'Jost', sans-serif; font-size: 0.94rem;
  color: rgba(253,250,247,0.88); flex: 1; line-height: 1.5;
}
.ma-nudge-text strong { color: #fdfaf7; }
.ma-nudge-bal {
  font-family: 'Jost', sans-serif; font-size: 0.82rem;
  color: #cfb38c; font-weight: 600;
}
.ma-nudge-btn {
  padding: 9px 18px; border-radius: 99px;
  background: #cfb38c; color: #1A3C34; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ── SECTION HEADING ── */
.ma-section { margin-bottom: 36px; }
.ma-section-title {
  font-family: 'Jost', sans-serif; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(207,179,140,0.8); margin: 0 0 14px;
}
.ma-portal-spacer { height: 32px; }

.ma-foryou-intro {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: rgba(253,250,247,0.78);
  line-height: 1.55;
  margin: 0;
}
.ma-reco-card {
  background: linear-gradient(160deg, #1c3a32 0%, #243f38 70%);
  border: 1px solid rgba(207,179,140,0.18);
  border-top: 2px solid rgba(207,179,140,0.5);
  border-radius: 20px;
  padding: 22px 22px 20px;
  margin-bottom: 16px;
}
.ma-reco-card-service {
  border-top-color: rgba(109,184,154,0.7);
}
.ma-reco-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(207,179,140,0.7);
  margin-bottom: 14px;
}
.ma-reco-type-dot {
  color: rgba(253,250,247,0.22);
}
.ma-reco-type-tag {
  color: rgba(253,250,247,0.38);
}
.ma-reco-title {
  margin: 0 0 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-style: italic;
  font-weight: 400;
  color: #fdfaf7;
  line-height: 1.1;
}
.ma-reco-note {
  margin: 0 0 16px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(253,250,247,0.65);
}
.ma-reco-how {
  margin: 0 0 14px;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(253,250,247,0.5);
}
.ma-reco-actions {
  margin-top: 20px;
}
.ma-reco-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  transition: opacity 0.15s, transform 0.1s;
}
.ma-reco-btn:active:not(:disabled) {
  transform: scale(0.98);
  opacity: 0.9;
}
.ma-reco-btn-service {
  background: #6db89a;
  color: #0f2a22;
}
.ma-reco-btn-product {
  background: #cfb38c;
  color: #1A3C34;
}
.ma-reco-btn-done {
  background: rgba(207,179,140,0.1);
  color: rgba(207,179,140,0.5);
  border: 1px solid rgba(207,179,140,0.15);
  cursor: default;
}
.ma-offer-card {
  background: rgba(207,179,140,0.1);
  border: 1px solid rgba(207,179,140,0.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.ma-offer-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fdfaf7;
  margin-bottom: 4px;
}
.ma-offer-meta {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  color: rgba(207,179,140,0.9);
}

/* ── STATUS PILLS ── */
.ma-pill {
  font-family: 'Jost', sans-serif; font-size: 0.69rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; flex-shrink: 0; white-space: nowrap;
}
.ma-pill-ok     { background: rgba(89,196,128,0.13); color: #59c480; }
.ma-pill-warn   { background: rgba(230,180,80,0.13);  color: #e6b450; }
.ma-pill-cancel { background: rgba(220,80,80,0.1);    color: rgba(220,130,130,0.85); }

/* ── NEXT-UP CARD (home tab, featured appointment) ── */
.ma-next-card {
  background: #243f38;
  border: 1px solid rgba(207,179,140,0.15);
  border-radius: 20px; overflow: hidden;
  margin-bottom: 16px;
}
.ma-next-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 20px 20px 14px;
}
.ma-next-svc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem; font-weight: 400; font-style: italic;
  color: #fdfaf7; line-height: 1.15; flex: 1;
}
.ma-next-divider {
  height: 1px; margin: 0 20px;
  background: repeating-linear-gradient(to right,
    rgba(207,179,140,0.2) 0, rgba(207,179,140,0.2) 5px,
    transparent 5px, transparent 10px);
}
.ma-next-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 10px; padding: 16px 20px;
}
.ma-next-cell {}
.ma-next-label {
  font-family: 'Jost', sans-serif; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(207,179,140,0.8); margin-bottom: 3px;
}
.ma-next-val {
  font-family: 'Jost', sans-serif; font-size: 1rem;
  font-weight: 500; color: #fdfaf7;
}
.ma-next-bal {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 20px 12px;
  background: rgba(207,179,140,0.07); border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Jost', sans-serif; font-size: 0.84rem;
  color: rgba(207,179,140,0.6);
}
.ma-next-bal strong { color: #cfb38c; font-weight: 600; }
.ma-next-actions {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(207,179,140,0.07);
  flex-wrap: wrap;
}
.ma-change-appt-btn {
  padding: 9px 16px; border-radius: 99px;
  border: 1px solid rgba(207,179,140,0.25); background: transparent;
  cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(207,179,140,0.6); transition: all 0.15s;
}
.ma-change-appt-btn:hover { background: rgba(207,179,140,0.07); color: #cfb38c; }
.ma-cal-btn {
  font-family: 'Jost', sans-serif; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.08em;
  color: rgba(207,179,140,0.45); text-decoration: none;
  padding: 9px 0; display: inline-flex; align-items: center;
  background: none; border: none; cursor: pointer;
  transition: color 0.15s;
}
.ma-cal-btn:hover { color: #cfb38c; }
.ma-pay-btn {
  margin-left: auto; padding: 9px 20px; border-radius: 99px;
  background: rgba(207,179,140,0.12);
  border: 1px solid rgba(207,179,140,0.3); cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #cfb38c; transition: all 0.15s;
}
.ma-pay-btn:hover { background: rgba(207,179,140,0.22); }

/* ── EMPTY STATE ── */
.ma-empty-state {
  text-align: center; padding: 48px 24px;
  border: 1px dashed rgba(207,179,140,0.18); border-radius: 20px;
}
.ma-empty-icon { font-size: 1.8rem; color: rgba(207,179,140,0.3); margin-bottom: 16px; }
.ma-empty-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 300; font-style: italic;
  color: rgba(253,250,247,0.65); margin: 0 0 8px;
}
.ma-empty-sub {
  font-family: 'Jost', sans-serif; font-size: 0.94rem;
  color: rgba(207,179,140,0.4); margin: 0 0 24px; line-height: 1.55;
}
.ma-empty-cta {
  padding: 13px 28px; border-radius: 99px;
  background: #cfb38c; color: #1A3C34; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.ma-home-reco-cta {
  width: 100%;
  margin-top: 12px;
  padding: 13px 22px;
  border-radius: 99px;
  border: 1px solid rgba(207,179,140,0.35);
  background: rgba(207,179,140,0.1);
  color: #cfb38c;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ── VISITS TAB ── */
.ma-visits-header {
  position: sticky; top: 0; z-index: 10;
  background: #1A3C34;
  padding: 16px 0 0;
  border-bottom: 1px solid rgba(207,179,140,0.08);
  margin-bottom: 4px;
}
.ma-segment {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(207,179,140,0.06);
  border-radius: 12px; margin-bottom: 16px;
}
.ma-seg {
  flex: 1; padding: 10px 8px; border-radius: 99px;
  background: transparent; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.88rem;
  font-weight: 500; color: rgba(207,179,140,0.45);
  transition: all 0.2s;
}
.ma-seg.active {
  background: #243f38; color: #cfb38c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ── VISIT ROW CARD ── */
.ma-visit-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(207,179,140,0.08);
}
.ma-visit-card:last-child { border-bottom: none; }
.ma-visit-card.cancelled { opacity: 0.45; }
.ma-vc-date {
  flex-shrink: 0; width: 44px; text-align: center;
  background: rgba(207,179,140,0.08); border-radius: 10px;
  padding: 8px 6px; display: flex; flex-direction: column; align-items: center;
}
.ma-vc-mo {
  font-family: 'Jost', sans-serif; font-size: 0.69rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #cfb38c; display: block;
}
.ma-vc-dy {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
  font-weight: 400; color: #fdfaf7; line-height: 1.1;
}
.ma-vc-info { flex: 1; min-width: 0; }
.ma-vc-svc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-style: italic; color: #fdfaf7;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.ma-vc-meta {
  font-family: 'Jost', sans-serif; font-size: 0.84rem;
  color: rgba(207,179,140,0.78);
}
.ma-vc-bal-btn {
  display: inline-flex; align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: 'Jost', sans-serif; font-size: 0.84rem;
  color: #cfb38c; font-weight: 600; margin-top: 3px;
  transition: opacity 0.15s;
}
.ma-vc-bal-btn:hover { opacity: 0.72; }
.ma-vc-bal-chevron { font-size: 1rem; line-height: 1; opacity: 0.65; }
.ma-vc-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ma-vc-rebook {
  padding: 7px 14px; border-radius: 99px;
  border: none; background: #cfb38c; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #1A3C34; transition: background 0.15s;
}
.ma-vc-rebook:hover { background: #d9c4a0; }

/* ── PROFILE TAB ── */
.ma-profile-name-card {
  width: 100%; text-align: left; padding: 24px 20px;
  background: #243f38;
  border: 1px solid rgba(207,179,140,0.12);
  border-radius: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px; transition: background 0.15s;
}
.ma-profile-name-card:hover { background: #2a4940; }
.ma-profile-big-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 300; font-style: italic;
  color: #fdfaf7; line-height: 1; margin: 0 0 4px;
}
.ma-profile-email {
  font-family: 'Jost', sans-serif; font-size: 0.9rem;
  color: rgba(207,179,140,0.82); margin: 0;
}
.ma-profile-edit-arrow {
  font-family: 'Jost', sans-serif; font-size: 0.82rem;
  color: rgba(207,179,140,0.68); flex-shrink: 0;
  letter-spacing: 0.06em;
}
.ma-profile-tier-card {
  background: rgba(207,179,140,0.06);
  border: 1px solid rgba(207,179,140,0.12);
  border-radius: 16px; padding: 18px 20px;
  margin-bottom: 28px;
}
.ma-profile-tier-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.ma-profile-tier-label {
  font-family: 'Jost', sans-serif; font-size: 0.97rem;
  color: #fdfaf7; font-weight: 500;
}
.ma-profile-visits {
  font-family: 'Jost', sans-serif; font-size: 0.88rem;
  color: rgba(207,179,140,0.82);
}
/* ── CANCEL CONFIRM SHEET ── */
.ma-cancel-svc-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-style: italic;
  color: #fdfaf7; margin: 0 0 8px; line-height: 1.2;
}
.ma-cancel-warning {
  font-family: 'Jost', sans-serif; font-size: 0.94rem;
  color: rgba(207,179,140,0.5); margin: 0 0 24px; line-height: 1.55;
}
.ma-keep-btn {
  background: transparent !important;
  border: 1px solid rgba(207,179,140,0.25) !important;
  color: rgba(207,179,140,0.65) !important;
  margin-bottom: 10px;
}
.ma-keep-btn:hover:not(:disabled) { background: rgba(207,179,140,0.06) !important; color: rgba(207,179,140,0.85) !important; }
.ma-cancel-confirm-btn {
  width: 100%; padding: 15px; border-radius: 99px;
  background: rgba(200,70,70,0.15);
  border: 1px solid rgba(220,100,100,0.3); cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.84rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(220,140,140,0.9); transition: all 0.15s;
}
.ma-cancel-confirm-btn:hover { background: rgba(200,70,70,0.22); }
.ma-cancel-confirm-btn:disabled { opacity: 0.5; }

/* ── FAVORITE SERVICES ── */
.ma-fav-intro {
  font-family: 'Jost', sans-serif; font-size: 0.88rem;
  color: rgba(207,179,140,0.4); line-height: 1.6; margin-bottom: 14px;
}
.ma-fav-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ma-chip {
  padding: 9px 17px; border-radius: 99px;
  border: 1px solid rgba(207,179,140,0.18); background: transparent; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.88rem;
  color: rgba(207,179,140,0.5); transition: all 0.15s;
}
.ma-chip.selected { background: rgba(207,179,140,0.13); border-color: #cfb38c; color: #cfb38c; }
.ma-picks-label {
  font-family: 'Jost', sans-serif; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(207,179,140,0.3); margin-bottom: 10px;
}
.ma-pick-tile {
  display: block; width: 100%; text-align: left;
  padding: 15px 18px; border-radius: 99px; margin-bottom: 8px;
  background: rgba(207,179,140,0.06);
  border: 1px solid rgba(207,179,140,0.14); cursor: pointer;
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
  font-style: italic; color: rgba(253,250,247,0.8);
  transition: all 0.15s;
}
.ma-pick-tile:hover { background: rgba(207,179,140,0.1); color: #fdfaf7; }
.ma-pick-tile::after { content: ' →'; color: #cfb38c; }

/* ── MY DETAILS ── */
.ma-details-card {
  background: rgba(207,179,140,0.04);
  border: 1px solid rgba(207,179,140,0.1);
  border-radius: 16px; overflow: hidden;
}
.ma-detail-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(207,179,140,0.07);
}
.ma-detail-row:last-child { border-bottom: none; }
.ma-detail-ico { font-size: 1.1rem; flex-shrink: 0; width: 24px; text-align: center; }
.ma-detail-info { flex: 1; min-width: 0; }
.ma-detail-label {
  font-family: 'Jost', sans-serif; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(207,179,140,0.78); display: block; margin-bottom: 2px;
}
.ma-detail-val {
  font-family: 'Jost', sans-serif; font-size: 1rem;
  color: #fdfaf7;
}
.ma-detail-edit {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.78rem;
  color: rgba(207,179,140,0.38); padding: 4px 8px; transition: color 0.15s;
}
.ma-detail-edit:hover { color: #cfb38c; }
.ma-detail-row-tap {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; width: 100%;
  border-bottom: 1px solid rgba(207,179,140,0.07);
  border-left: none; border-right: none; border-top: none;
  background: none; cursor: pointer; text-align: left;
  transition: background 0.15s;
}
.ma-detail-row-tap:last-child { border-bottom: none; }
.ma-detail-row-tap:hover { background: rgba(207,179,140,0.04); }
.ma-detail-placeholder { color: rgba(207,179,140,0.55) !important; font-style: italic; }
.ma-detail-chevron {
  flex-shrink: 0; color: rgba(207,179,140,0.2);
  font-size: 1.1rem; font-family: 'Jost', sans-serif; line-height: 1;
}

/* ── PROFILE EDIT SHEET ── */
.ma-pwa-veil {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.ma-pwa-veil.open { opacity: 1; pointer-events: auto; }
.ma-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9001;
  background: #243f38; border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32,0.72,0,1);
  max-height: 90vh;
  display: flex; flex-direction: column;
}
.ma-sheet.open { transform: translateY(0); }
.ma-sheet-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: rgba(207,179,140,0.22); margin: 16px auto 0;
}
.ma-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(207,179,140,0.1);
}
.ma-sheet-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-style: italic; color: #fdfaf7;
}
.ma-sheet-close {
  background: none; border: none; cursor: pointer;
  color: rgba(207,179,140,0.7); font-size: 1.3rem; padding: 8px;
}
.ma-sheet-body { padding: 24px; padding-bottom: max(32px, env(safe-area-inset-bottom,32px)); display: flex; flex-direction: column; gap: 12px; flex: 1; overflow-y: auto; min-height: 0; }
.ma-field-label {
  font-family: 'Jost', sans-serif; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(207,179,140,0.5); margin-bottom: -4px;
}
.ma-sheet-input {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(207,179,140,0.06);
  border: 1px solid rgba(207,179,140,0.18);
  font-family: 'Jost', sans-serif; font-size: 1rem;
  color: #fdfaf7; box-sizing: border-box; transition: border-color 0.15s;
}
.ma-sheet-input:focus { outline: none; border-color: #cfb38c; }
.ma-sheet-email {
  font-family: 'Jost', sans-serif; font-size: 0.88rem;
  color: rgba(207,179,140,0.3); padding: 0 4px;
}
.ma-sheet-err {
  font-family: 'Jost', sans-serif; font-size: 0.88rem;
  color: rgba(220,130,130,0.9); min-height: 16px;
}
.ma-sheet-save {
  width: 100%; padding: 15px; border-radius: 99px;
  background: #cfb38c; color: #1A3C34; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.84rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 4px; transition: background 0.15s;
}
.ma-sheet-save:disabled { opacity: 0.5; }
.ma-sheet-save:hover:not(:disabled) { background: #d9c4a0; }

/* Balance payment sheet */
.ma-pay-sheet {
  background: #1A3C34;
}
.ma-pay-summary {
  background: #243f38;
  border: 1px solid rgba(207,179,140,0.14);
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin-bottom: 10px;
}
.ma-pay-eyebrow {
  margin: 0 0 8px;
  font-family: 'Jost', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(207,179,140,0.72);
}
.ma-pay-summary h3 {
  margin: 0 0 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.62rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.12;
  color: #fdfaf7;
}
.ma-pay-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(207,179,140,0.1);
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: rgba(207,179,140,0.62);
}
.ma-pay-summary-row strong {
  color: #cfb38c;
  font-size: 1.16rem;
  font-weight: 700;
  white-space: nowrap;
}
.ma-pay-meta {
  margin: -6px 0 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(253,250,247,0.58);
}
#ma-pay-stripe-element {
  min-height: 84px;
  margin: 8px 0 4px;
}
.ma-pay-note {
  margin: 2px 4px 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  line-height: 1.55;
  text-align: center;
  color: rgba(207,179,140,0.42);
}
.ma-pay-success {
  text-align: center;
  padding: 18px 0 8px;
}
.ma-pay-success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #cfb38c;
  color: #1A3C34;
  font-size: 1.5rem;
  font-weight: 700;
}
.ma-pay-success h3 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 400;
  color: #fdfaf7;
}
.ma-pay-success p {
  margin: 0 0 22px;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(207,179,140,0.62);
}

.ma-forms-sheet {
  background: #fff;
  color: #2c2c2c;
  max-height: min(88vh, 760px);
  box-shadow: 0 -18px 60px rgba(0,0,0,0.22);
}
.ma-forms-sheet .ma-sheet-head {
  background: #fff;
  border-bottom: 1px solid #e8e0d8;
  padding-top: 18px;
}
.ma-forms-sheet .ma-sheet-title {
  color: #2d5a4e;
  font-style: normal;
}
.ma-forms-sheet .ma-sheet-close {
  color: #2d5a4e;
}
.ma-forms-sheet .ma-sheet-handle {
  background: #e8e0d8;
}
.ma-forms-sub {
  font-size: .78rem;
  color: #888;
  font-family: 'Jost', sans-serif;
  margin-top: 1px;
}
.ma-forms-body {
  padding: 20px 20px max(28px, env(safe-area-inset-bottom, 28px));
}

/* ── PWA INSTALL SHEET ── */
.ma-pwa-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9001;
  background: #1A3C34; border-radius: 24px 24px 0 0;
  padding: 16px 32px max(48px, env(safe-area-inset-bottom,48px));
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32,0.72,0,1);
}
.ma-pwa-sheet.open { transform: translateY(0); }
.ma-pwa-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: rgba(207,179,140,0.3); margin: 0 auto 28px;
}
.ma-pwa-icon {
  width: 80px; height: 80px; border-radius: 18px;
  margin: 0 auto 16px; display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.ma-pwa-eyebrow {
  font-family: 'Jost', sans-serif; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(207,179,140,0.7); margin: 0 0 10px;
}
.ma-pwa-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem,7vw,2.8rem);
  font-weight: 300; line-height: 1.1; color: #fdfaf7; margin: 0 0 14px;
}
.ma-pwa-title em { font-style: italic; }
.ma-pwa-sub {
  font-family: 'Jost', sans-serif; font-size: 0.95rem;
  color: rgba(253,250,247,0.6); line-height: 1.65;
  max-width: 320px; margin: 0 auto 28px;
}
.ma-pwa-btn {
  display: block; width: 100%; max-width: 320px; margin: 0 auto 16px;
  padding: 16px 24px; border-radius: 99px;
  background: #cfb38c; color: #1A3C34; border: none;
  font-family: 'Jost', sans-serif; font-size: 0.88rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
}
.ma-pwa-steps {
  max-width: 320px; margin: 0 auto 16px;
  background: rgba(207,179,140,0.08); border-radius: 16px;
  padding: 18px 20px; text-align: left;
}
.ma-pwa-steps-label {
  font-family: 'Jost', sans-serif; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(207,179,140,0.75); margin: 0 0 14px;
}
.ma-pwa-step {
  display: flex; align-items: flex-start; gap: 14px;
  font-family: 'Jost', sans-serif; font-size: 0.94rem;
  color: rgba(253,250,247,0.92); line-height: 1.5; margin-bottom: 12px;
}
.ma-pwa-step:last-child { margin-bottom: 0; }
.ma-pwa-step strong { color: #cfb38c; }
.ma-pwa-step-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(207,179,140,0.18); color: #cfb38c;
  font-size: 0.78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ma-pwa-dismiss {
  background: none; border: none;
  font-family: 'Jost', sans-serif; font-size: 0.88rem;
  color: rgba(253,250,247,0.3); cursor: pointer;
  padding: 8px 16px; display: block; margin: 0 auto;
}

/* ── PROFILE PHONE ── */
.ma-profile-phone {
  font-family: 'Jost', sans-serif; font-size: 0.9rem;
  color: rgba(207,179,140,0.82); margin: 2px 0 0;
}

/* ── EDIT APPOINTMENT SHEET ── */
.ma-edit-appt-svc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-style: italic;
  color: #fdfaf7; margin: 0 0 4px; line-height: 1.2;
}
.ma-edit-appt-when {
  font-family: 'Jost', sans-serif; font-size: 0.88rem;
  color: rgba(207,179,140,0.45); margin: 0 0 20px;
}
.ma-reschedule-btn { margin-bottom: 10px !important; }
.ma-change-svc-btn {
  background: transparent !important;
  border: 1px solid rgba(207,179,140,0.25) !important;
  color: rgba(207,179,140,0.65) !important;
  margin-bottom: 0 !important;
}
.ma-change-svc-btn:hover:not(:disabled) { background: rgba(207,179,140,0.06) !important; color: rgba(207,179,140,0.85) !important; }
.ma-edit-appt-policy {
  margin-top: 16px; padding: 14px 18px;
  background: rgba(207,179,140,0.05);
  border: 1px solid rgba(207,179,140,0.1);
  border-radius: 12px;
}
.ma-edit-appt-policy p {
  font-family: 'Jost', sans-serif; font-size: 0.82rem;
  color: rgba(207,179,140,0.35); margin: 0; line-height: 1.65;
}
.ma-edit-appt-cancel-zone {
  text-align: center; padding-top: 16px; margin-top: 8px;
  border-top: 1px solid rgba(207,179,140,0.08);
}
.ma-ghost-cancel-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.8rem;
  color: rgba(220,130,130,0.35); text-decoration: underline;
  text-underline-offset: 3px; padding: 4px 8px;
  transition: color 0.15s;
}
.ma-ghost-cancel-btn:hover { color: rgba(220,130,130,0.65); }

/* ── REWARDS SECTION HEADER ── */
.ma-rewards-section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.ma-rewards-section-head .ma-section-title { margin: 0; }
.ma-rewards-section-head .ma-rewards-link { padding: 0; font-size: 0.72rem; }

/* ── REWARDS HOME LINK ── */
.ma-rewards-link {
  background: none; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(207,179,140,0.52); padding: 10px 0 0;
  display: block; text-align: left; transition: color 0.15s;
}
.ma-rewards-link:hover { color: #cfb38c; }

/* ── REWARDS SHEET CONTENT ── */
.ma-rewards-intro {
  font-family: 'Jost', sans-serif; font-size: 0.94rem;
  color: rgba(207,179,140,0.72); line-height: 1.65; margin: 0 0 20px;
}
.ma-rewards-tier {
  display: flex; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid rgba(207,179,140,0.08);
  transition: opacity 0.15s;
}
.ma-rewards-tier:last-child { border-bottom: none; }
.ma-rewards-tier.ma-rt-active {
  background: rgba(207,179,140,0.07);
  margin: 0 -24px; padding: 16px 24px; border-radius: 14px;
  border-bottom: none;
}
.ma-rewards-tier.ma-rt-locked { opacity: 0.7; }
.ma-rewards-dot {
  flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(207,179,140,0.2); margin-top: 6px;
}
.ma-rewards-dot.ma-rd-past { background: rgba(207,179,140,0.5); }
.ma-rewards-dot.ma-rd-active {
  background: #cfb38c;
  box-shadow: 0 0 0 3px rgba(207,179,140,0.18);
}
.ma-rewards-body { flex: 1; min-width: 0; }
.ma-rewards-head {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: 8px; margin-bottom: 5px;
}
.ma-rewards-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-style: italic; color: #fdfaf7; line-height: 1.1;
}
.ma-rewards-range {
  font-family: 'Jost', sans-serif; font-size: 0.69rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(207,179,140,0.5); flex-shrink: 0;
}
.ma-rewards-perk {
  font-family: 'Jost', sans-serif; font-size: 0.9rem;
  color: rgba(207,179,140,0.65); line-height: 1.55; margin: 0 0 6px;
}
.ma-rt-active .ma-rewards-perk { color: rgba(253,250,247,0.82); }
.ma-rewards-you {
  font-family: 'Jost', sans-serif; font-size: 0.69rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #cfb38c;
}

/* ── DATE PICKER ── */
.ma-date-selects {
  display: grid; grid-template-columns: 5fr 3fr 4fr;
  gap: 10px; margin-bottom: 4px;
}
.ma-date-col { display: flex; flex-direction: column; gap: 6px; }
.ma-date-label {
  font-family: 'Jost', sans-serif; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(207,179,140,0.58);
}
.ma-date-select {
  width: 100%; padding: 13px 10px; border-radius: 12px;
  background: rgba(207,179,140,0.06);
  border: 1px solid rgba(207,179,140,0.18);
  font-family: 'Jost', sans-serif; font-size: 1rem;
  color: #fdfaf7; box-sizing: border-box;
  -webkit-appearance: none; appearance: none;
  cursor: pointer; transition: border-color 0.15s;
}
.ma-date-select:focus { outline: none; border-color: #cfb38c; }
.ma-date-select option { background: #243f38; color: #fdfaf7; }

/* ── SIGN-UP NAME ROW ── */
.ma-name-row { display: flex; gap: 10px; }
.ma-name-row > div { flex: 1; min-width: 0; }

/* ── ONBOARDING SLIDES ── */
.ma-onboard-fields { display: flex; flex-direction: column; gap: 18px; margin-top: 4px; text-align: left; }
.ma-onboard-row { display: flex; align-items: flex-start; gap: 12px; }
.ma-onboard-ico { font-size: 1.25rem; margin-top: 24px; flex-shrink: 0; }
.ma-onboard-field { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ma-onboard-dates { display: flex; gap: 8px; }
.ma-onboard-dates .ma-date-select { flex: 1; min-width: 0; padding: 10px 8px; }
.ma-onboard-input { margin-bottom: 0 !important; }
.ma-onboard-opt { opacity: 0.55; font-size: 0.9em; }
/* Apple-style service checklist */
.ma-ob-list-wrap {
  position: relative;
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(122,107,82,0.2);
  overflow: hidden;
}
.ma-ob-list-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 56px;
  background: linear-gradient(to bottom, rgba(253,250,247,0), rgba(253,250,247,0.96));
  pointer-events: none;
  transition: opacity 0.25s;
}
.ma-ob-list-wrap.at-bottom::after { opacity: 0; }
.ma-ob-list {
  display: flex; flex-direction: column;
  text-align: left;
}
.ma-ob-section-head {
  font-family: 'Jost', sans-serif; font-size: 0.85rem;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(54,41,23,0.72); padding: 12px 18px 7px;
  background: rgba(122,107,82,0.1);
  border-bottom: 1px solid rgba(122,107,82,0.18);
  margin-top: 2px;
}
.ma-ob-section-head + .ma-ob-item { border-top: none; }
.ma-ob-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px;
  background: rgba(54,41,23,0.025); border: none;
  border-bottom: 1px solid rgba(122,107,82,0.12);
  font-family: 'Jost', sans-serif; font-size: 0.95rem;
  color: rgba(54,41,23,0.85); cursor: pointer;
  text-align: left; width: 100%;
  transition: background 0.12s;
}
.ma-ob-item:last-child { border-bottom: none; }
.ma-ob-item.selected { background: rgba(207,179,140,0.12); }
.ma-ob-item-name { flex: 1; }
.ma-ob-item-check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(122,107,82,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: transparent;
  transition: all 0.15s;
}
.ma-ob-item.selected .ma-ob-item-check {
  background: #a8895c; border-color: #a8895c; color: #fff;
}
.ma-ob-loading {
  font-family: 'Jost', sans-serif; font-size: 0.88rem;
  color: rgba(54,41,23,0.5); padding: 24px; text-align: center;
}

/* Onboarding readability — overlay is cream, dark text required for all elements */
.ma-welcome-overlay .ma-center { padding-top: 28px; padding-bottom: 28px; }
.ma-welcome-overlay .ma-login-logo { margin-bottom: 48px; }
/* Explicit colors so portal-active dark shell doesn't bleed through */
.ma-welcome-overlay .ma-h1,
.ma-welcome-overlay .ma-h2 { color: #362917; }
.ma-welcome-overlay .ma-sub { color: rgba(54,41,23,0.78); }
.ma-welcome-overlay .ma-field-label { color: rgba(54,41,23,0.82); font-size: 0.8rem; font-weight: 600; }

/* Slide 3 — pinned header + scrollable list + pinned footer */
.ma-welcome-overlay.slide-3 { overflow-y: hidden; }
.ma-welcome-overlay.slide-3 .ma-center {
  height: 100%; min-height: 100%;
  display: flex; flex-direction: column;
  padding-bottom: 0; box-sizing: border-box;
}
.ma-welcome-overlay.slide-3 #welcome-s3 {
  flex: 1; min-height: 0;
  display: flex !important; flex-direction: column;
}
.ma-welcome-overlay.slide-3 .ma-ob-list-wrap {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  margin-bottom: 12px;
}
.ma-welcome-overlay.slide-3 .ma-ob-list {
  flex: 1; overflow-y: auto; min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.ma-welcome-overlay.slide-3 .ma-welcome-dots,
.ma-welcome-overlay.slide-3 .ma-form { flex-shrink: 0; }
.ma-welcome-overlay .ma-onboard-opt { color: rgba(54,41,23,0.5); }
.ma-welcome-overlay .ma-date-select {
  background: rgba(54,41,23,0.06);
  border: 1.5px solid rgba(122,107,82,0.3);
  color: #362917;
}
.ma-welcome-overlay .ma-date-select option { background: #fff; color: #362917; }
.ma-welcome-overlay .ma-sheet-input {
  background: rgba(54,41,23,0.05);
  border: 1.5px solid rgba(122,107,82,0.25);
  color: #362917;
}
.ma-welcome-overlay .ma-sheet-input::placeholder { color: rgba(54,41,23,0.35); }
/* PWA slide — cream bg needs dark text */
.ma-welcome-overlay .ma-welcome-pwa-img { width: 60px; height: 60px; border-radius: 14px; margin-bottom: 14px; }
.ma-welcome-overlay .ma-pwa-steps {
  background: rgba(54,41,23,0.05);
  border: 1px solid rgba(122,107,82,0.2);
}
.ma-welcome-overlay .ma-pwa-steps-label { color: rgba(54,41,23,0.6); }
.ma-welcome-overlay .ma-pwa-step { color: rgba(54,41,23,0.85); }
.ma-welcome-overlay .ma-pwa-step strong { color: #6b5335; }
.ma-welcome-overlay .ma-pwa-step-num { background: rgba(122,107,82,0.15); color: #6b5335; }

/* ── REBOOK SHEET ── */
.ma-rebook-svc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-style: italic;
  color: #fdfaf7; margin: 0 0 4px; line-height: 1.2;
}
.ma-rebook-ask {
  font-family: 'Jost', sans-serif; font-size: 0.84rem;
  color: rgba(207,179,140,0.45); margin: 0 0 18px;
}
.ma-cadence-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 20px;
}
.ma-cadence-btn {
  padding: 16px 12px; border-radius: 99px;
  background: rgba(207,179,140,0.06);
  border: 1px solid rgba(207,179,140,0.15);
  cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.88rem;
  font-weight: 500; color: rgba(253,250,247,0.65);
  transition: all 0.15s;
}
.ma-cadence-btn:hover,
.ma-cadence-btn.selected { background: rgba(207,179,140,0.14); border-color: #cfb38c; color: #cfb38c; }

/* ── WELCOME OVERLAY ── */
.ma-welcome-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: var(--cream,#fdfaf7);
  display: flex; align-items: center; justify-content: center;
  overflow-y: auto;
  transition: opacity 0.3s;
}
.ma-welcome-overlay .ma-form { gap: 10px; }
.ma-welcome-features {
  list-style: none; padding: 0; margin: 28px 0 40px;
  display: flex; flex-direction: column; gap: 16px; text-align: left;
}
.ma-welcome-feature {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Jost', sans-serif; font-size: 0.95rem;
  color: rgba(54,41,23,0.78);
}
.ma-welcome-feature svg { flex-shrink: 0; color: var(--accent,#cfb38c); }
.ma-welcome-dots {
  display: flex; gap: 8px; justify-content: center; margin: 24px 0 8px;
}
.ma-welcome-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(54,41,23,0.14); transition: background 0.25s;
}
.ma-welcome-dot.active { background: var(--accent,#cfb38c); }
.ma-welcome-pwa-img {
  width: 80px; height: 80px; border-radius: 18px;
  margin: 0 auto 24px; display: block;
  box-shadow: 0 4px 24px rgba(54,41,23,0.12);
}

/* ── PWA HOME BANNER ── */
.ma-pwa-banner {
  display: flex; align-items: center; gap: 12px;
  background: rgba(26,60,52,0.06);
  border: 1px solid rgba(26,60,52,0.1);
  border-radius: 14px; padding: 12px 14px;
  margin-bottom: 16px;
  transition: opacity 0.2s;
}
.ma-pwa-banner-content { flex: 1; min-width: 0; }
.ma-pwa-banner-title {
  display: block; font-family: 'Jost', sans-serif;
  font-size: 0.85rem; font-weight: 600; color: rgba(26,60,52,0.9);
}
.ma-pwa-banner-sub {
  display: block; font-family: 'Jost', sans-serif;
  font-size: 0.76rem; color: rgba(26,60,52,0.58); margin-top: 2px;
}
.ma-pwa-banner-btn {
  font-family: 'Jost', sans-serif; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(26,60,52,0.92); color: #fdfaf7;
  border: none; border-radius: 99px; padding: 8px 16px;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.ma-pwa-banner-close {
  background: none; border: none; cursor: pointer; flex-shrink: 0;
  color: rgba(54,41,23,0.36); font-size: 1rem; padding: 4px; line-height: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  body.myaccount-shell.public-entry #main { padding-top: 78px !important; }
  .ma-intro-phase { min-height: calc(100vh - 78px); justify-content: flex-start; }
  .ma-intro-wrap {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0 48px;
  }
  .ma-intro-title {
    max-width: 340px;
    font-size: clamp(2.55rem, 11vw, 3.35rem);
    line-height: 1.02;
  }
  .ma-intro-sub { font-size: 0.96rem; margin-bottom: 24px; }
  .ma-intro-actions { align-items: stretch; flex-direction: column; gap: 10px; margin-bottom: 26px; }
  .ma-intro-primary,
  .ma-intro-secondary { width: 100%; }
  .ma-intro-points { grid-template-columns: 1fr; gap: 14px; }
  .ma-phone { width: min(286px, 86vw); height: 574px; transform: none; }
  .ma-center { padding: 44px 24px 48px; }
  .ma-login-logo { width: 150px; margin-bottom: 14px; }
  .ma-view-inner { padding: 20px 16px calc(env(safe-area-inset-bottom,0px) + 100px); }
  .ma-next-grid { gap: 12px 8px; }
}

/* ── RECOMMENDED NEXT VISIT CARD ── */
.ma-next-visit-card{background:linear-gradient(135deg,#1A3C34,#2D5447);border-radius:18px;padding:24px 20px;text-align:center;margin-top:4px}
.ma-nvc-label{font-family:'Jost',sans-serif;font-size:.72rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:rgba(207,179,140,.75);margin-bottom:8px}
.ma-nvc-date{font-family:'Cormorant Garamond',serif;font-size:1.6rem;color:#F7F4EF;margin-bottom:18px;letter-spacing:.01em}
.ma-nvc-btn{font-size:.78rem;padding:13px 28px;letter-spacing:.1em}

/* ── YOUR WELLNESS STORY ── */
/* ── For You — Mambo Journey ── */
.ws-entry{padding:20px 0;border-bottom:1px solid rgba(247,244,239,.1)}
.ws-entry:last-child{border-bottom:none}
.ws-entry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.ws-entry-svc{font-family:'Cormorant Garamond',Georgia,serif;font-size:1.3rem;font-weight:300;color:#F7F4EF;line-height:1.2;margin-bottom:3px}
.ws-entry-date{font-family:'Jost',sans-serif;font-size:.68rem;font-weight:600;letter-spacing:.06em;color:rgba(247,244,239,.45);text-transform:uppercase}
.ws-entry-note{font-family:'Jost',sans-serif;font-size:.88rem;line-height:1.65;color:rgba(247,244,239,.82);margin:10px 0 12px;border-left:2px solid #cfb38c;padding-left:12px;font-style:italic}
.ws-share-btn{background:rgba(207,179,140,.15);color:#cfb38c;border:1px solid rgba(207,179,140,.3);border-radius:99px;padding:6px 12px;font-family:'Jost',sans-serif;font-size:.68rem;font-weight:600;cursor:pointer;white-space:nowrap;flex-shrink:0;letter-spacing:.04em}
.ws-share-btn:active{background:rgba(207,179,140,.25)}
.ws-thumbs{display:flex;gap:6px;margin-top:10px}
.ws-thumb{width:64px;height:64px;border-radius:8px;object-fit:cover;cursor:pointer;flex-shrink:0;opacity:.9}
.ws-thumb:active{opacity:1}
.ws-see-more{display:block;width:100%;background:none;border:none;color:rgba(207,179,140,.7);font-family:'Jost',sans-serif;font-size:.8rem;font-weight:500;cursor:pointer;padding:16px 0 0;text-align:center;letter-spacing:.02em}
.ws-see-more:active{color:#cfb38c}
/* ── Portal Lightbox ── */
.portal-lb{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:9999;display:none;align-items:center;justify-content:center;flex-direction:column}
.portal-lb.on{display:flex}
.portal-lb-img{max-width:100%;max-height:80vh;object-fit:contain;border-radius:6px}
.portal-lb-close{position:absolute;top:20px;right:20px;background:none;border:none;color:white;font-size:2rem;cursor:pointer;opacity:.7;line-height:1;padding:4px}
.portal-lb-nav{display:flex;gap:16px;margin-top:16px}
.portal-lb-nav button{background:rgba(255,255,255,.15);border:none;color:white;border-radius:99px;padding:8px 22px;font-size:1.1rem;cursor:pointer}
/* ── Portal Toast ── */
.portal-toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:rgba(26,60,52,.95);color:#F7F4EF;padding:12px 24px;border-radius:99px;font-family:'Jost',sans-serif;font-size:.84rem;z-index:10000;opacity:0;transition:opacity .3s;pointer-events:none;white-space:nowrap}
.portal-toast.show{opacity:1}
