/* ---------- Member Portal ---------- */

/* 1. journey: five connected nodes */
.mb-path { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.mb-path::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 38px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), #f8c77f 50%, var(--navy));
  opacity: 0.35;
}
.mb-path li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mb-node {
  position: relative; width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--navy); border: 2px solid var(--line); box-shadow: 0 0 0 8px #fff, var(--shadow-md);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, scale 0.4s cubic-bezier(0.3, 1.5, 0.4, 1);
}
.mb-node .i { width: 1.7rem; height: 1.7rem; }
.mb-node i {
  position: absolute; right: -4px; top: -4px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-family: var(--f-head); font-weight: 700; font-size: 0.8rem; color: #fff; background: var(--orange); box-shadow: 0 0 0 3px #fff;
}
.mb-path li:hover .mb-node { background: var(--navy); color: #fff; border-color: var(--navy); scale: 1.06; }
.mb-path h3 { margin-top: 1.2rem; font-size: 1.12rem; font-weight: 600; }
.mb-path p { margin-top: 0.35rem; font-size: 0.93rem; line-height: 1.55; color: var(--muted); max-width: 14rem; }

/* 2. profile card + household */
.mb-p-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mb-visual { position: relative; padding: 0 3rem 3.5rem 0; }
.mb-card { position: relative; background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 1.5rem; max-width: 440px; }
.mb-card-top { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line-2); }
.mb-avatar {
  width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(145deg, var(--navy), #33348a); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #fbe0bd;
}
.mb-avatar .i { width: 1.6rem; height: 1.6rem; }
.mb-card-top b { display: block; font-family: var(--f-head); font-size: 1.1rem; color: var(--navy); }
.mb-card-top small { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.2rem; font-size: 0.8rem; font-weight: 600; color: #2f8a5b; }
.mb-card-top small .i { width: 0.9rem; height: 0.9rem; }
.mb-fields { margin-top: 0.6rem; }
.mb-fields li { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.7rem; font-size: 0.95rem; font-weight: 500; color: var(--text); }
.mb-fields li + li { border-top: 1px dashed var(--line); }
.mb-fields .i { width: 1.05rem; height: 1.05rem; color: var(--orange-600); flex: none; }
/* placeholder "value" bar, so the card reads as a form without inventing data */
.mb-fields li span { margin-left: auto; width: 34%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--line-2), var(--line)); }

.mb-house {
  position: absolute; right: 0; bottom: 0; width: min(260px, 60%); padding: 1.1rem 1.2rem; border-radius: 18px;
  background: var(--navy); color: #fff; box-shadow: var(--shadow-lg);
}
.mb-house-title { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--f-head); font-weight: 600; font-size: 0.95rem; }
.mb-house-title .i { width: 1.05rem; height: 1.05rem; color: var(--orange); }
.mb-house ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.mb-house li { padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 500; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); }
.mb-house li:first-child { background: var(--orange); border-color: var(--orange); }

.mb-points { margin-top: 1.6rem; display: grid; gap: 1rem; }
.mb-points li { display: flex; gap: 0.9rem; align-items: flex-start; }
.mb-dot { width: 32px; height: 32px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--orange-50); color: var(--orange-600); }
.mb-dot .i { width: 1rem; height: 1rem; stroke-width: 2.2; }
.mb-points b { display: block; font-family: var(--f-head); font-weight: 600; color: var(--navy); }
.mb-points span:not(.mb-dot) { display: block; margin-top: 0.15rem; font-size: 0.95rem; color: var(--muted); line-height: 1.55; }

@media (prefers-reduced-motion: no-preference) {
  .mb-house { animation: mb-bob 6s ease-in-out infinite; }
}
@keyframes mb-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* 3. engagement: a 2x2 bento of coloured tiles */
/* first tile is tall on the left; the last spans the bottom right */
.mb-bento { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-auto-rows: minmax(200px, auto); gap: var(--gap); }
.mb-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.8rem; border-radius: 24px; transition: translate 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}
.mb-tile:nth-child(1) { grid-row: span 2; }
.mb-tile:nth-child(4) { grid-column: span 2; }
.mb-tile.navy { background: linear-gradient(135deg, #202158, #2c2d74); color: #fff; }
.mb-tile.orange { background: var(--orange-50); border: 1px solid #fbe0bd; }
.mb-tile:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); }
.mb-tile-ic {
  position: absolute; right: 1.4rem; top: 1.4rem; width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.mb-tile.navy .mb-tile-ic { background: rgba(255, 255, 255, 0.1); color: var(--orange); }
.mb-tile.orange .mb-tile-ic { background: #fff; color: var(--orange-600); box-shadow: var(--shadow-sm); }
.mb-tile-ic .i { width: 1.5rem; height: 1.5rem; }
.mb-tile h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 700; }
.mb-tile.navy h3 { color: #fff; }
.mb-tile p { margin-top: 0.4rem; max-width: 24rem; font-size: 1rem; line-height: 1.6; }
.mb-tile.navy p { color: #cfd0e6; }
.mb-tile.orange p { color: var(--muted); }

@media (max-width: 1100px) {
  .mb-bento { grid-template-columns: 1fr 1fr; }
  .mb-tile:nth-child(1) { grid-row: auto; }
  .mb-tile:nth-child(4) { grid-column: auto; }
  .mb-path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.4rem; }
  .mb-path::before { display: none; }
  .mb-p-in { grid-template-columns: 1fr; }
  .mb-visual { max-width: 560px; }
}
@media (max-width: 760px) {
  .mb-path { grid-template-columns: 1fr 1fr; }
  .mb-visual { padding: 0 0 5.5rem; }
  .mb-house { width: 80%; }
  .mb-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .mb-tile { min-height: 170px; }
  .mb-tile:nth-child(1) { grid-row: auto; }
  .mb-tile:nth-child(4) { grid-column: auto; }
}
