.content-document { white-space: normal; }
.content-document .rich-content > :first-child { margin-top: 0; }
.content-document .rich-content > :last-child { margin-bottom: 0; }
.content-document .rich-content p { margin: 0 0 12px; }
.content-document .rich-content ul,
.content-document .rich-content ol { margin: 0 0 12px; padding-left: 22px; }
.content-document .rich-content blockquote { margin: 0 0 12px; padding-left: 12px; border-left: 3px solid #c79e45; color: #f0dfb7; }
.content-document .rich-content a { color: #e2bb63; text-decoration: underline; }
.content-document .rich-content img { display: block; width: 100%; height: auto; margin: 0 0 12px; border-radius: 8px; }

/* Home balance and membership summary: keep amounts readable on narrow screens. */
.balance-strip { column-gap: 8px; padding: 12px 14px; }
.balance-item { min-width: 0; grid-template-columns: 26px minmax(0, 1fr); gap: 7px; }
.balance-item .mi { font-size: 22px; }
.balance-item > div { min-width: 0; }
.balance-item span { font-size: 11px; }
.balance-item strong { min-width: 0; font-size: clamp(13px, 4vw, 18px); letter-spacing: -0.35px; overflow: hidden; text-overflow: ellipsis; }

.vip-row {
  position: relative;
  width: 100%;
  min-height: 86px;
  margin: 4px 0 2px;
  grid-template-columns: 56px minmax(0, 1fr) 38px;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(230, 183, 94, 0.3);
  border-radius: 18px;
  background: rgba(13, 12, 9, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 12px 30px rgba(0, 0, 0, 0.22);
  color: #fff;
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}
.vip-row::before { content: ""; position: absolute; top: 0; left: 20px; width: 72px; height: 2px; border-radius: 0 0 4px 4px; background: var(--member-gold); box-shadow: 0 0 16px rgba(230, 183, 94, 0.55); }
.vip-row:hover { border-color: rgba(230, 183, 94, 0.58); background: rgba(18, 16, 11, 0.94); }
.vip-row:active { transform: scale(0.992); }
.vip-row:focus-visible { outline: 2px solid var(--member-gold); outline-offset: 3px; }
.vip-row-badge { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(230, 183, 94, 0.24); border-radius: 16px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 18px rgba(230, 183, 94, 0.05); }
.vip-row-badge img { width: 46px; height: 46px; object-fit: contain; }
.vip-row-copy { min-width: 0; display: grid; align-content: center; gap: 6px; }
.vip-row-copy small { color: var(--member-gold); font-size: 9px; font-weight: 700; letter-spacing: 1.25px; line-height: 1; text-transform: uppercase; }
.vip-row-details { min-width: 0; display: flex; align-items: center; gap: 9px; }
.vip-row-details strong { min-width: 0; overflow: hidden; color: #fff; font-size: 20px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.vip-row-details em { flex: 0 1 auto; min-width: 0; padding: 4px 7px; overflow: hidden; border: 1px solid rgba(230, 183, 94, 0.22); border-radius: 999px; background: rgba(230, 183, 94, 0.08); color: #d8c39b; font-size: 10px; font-style: normal; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.vip-row-arrow { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(230, 183, 94, 0.28); border-radius: 50%; background: rgba(230, 183, 94, 0.07); color: var(--member-gold); }
.vip-row-arrow .mi { font-size: 16px; }

.home-task-note { margin: 9px 4px 0; color: var(--member-muted); font-size: 12px; line-height: 1.45; text-align: center; }
.task-hours { display: block; }
.task-hours-head { padding-top: 0; }
.task-hours-head span { display: inline; white-space: nowrap; }
.task-hours > strong { margin-top: 6px; white-space: nowrap; font-size: clamp(17px, 4.8vw, 20px); line-height: 1.25; letter-spacing: 0; }
.task-hours > p { margin-top: 9px; }

.account-card h2 { font-size: 23px; }
.account-metrics--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-metric span { font-size: 12px; font-weight: 600; }
.account-metric strong { font-size: 13px; letter-spacing: -0.2px; }

.account-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.account-service-card { position: relative; min-height: 128px; display: grid; grid-template-rows: auto 1fr; align-content: start; gap: 13px; padding: 16px; border: 1px solid rgba(230, 183, 94, 0.28); border-radius: 14px; background: linear-gradient(145deg, rgba(24, 22, 18, 0.96), rgba(11, 11, 11, 0.88)); color: #fff; text-align: left; }
.account-service-card:hover { border-color: rgba(230, 183, 94, 0.62); }
.account-service-card > .mi { position: absolute; right: 13px; top: 16px; color: var(--member-gold); font-size: 16px; }
.account-service-icon { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(230, 183, 94, 0.58); border-radius: 12px; color: var(--member-gold); background: rgba(0, 0, 0, 0.2); }
.account-service-icon .mi { font-size: 19px; }
.account-service-card strong { display: block; padding-right: 16px; font-size: 15px; line-height: 1.2; }
.account-service-card small { display: block; margin-top: 6px; color: var(--member-muted); font-size: 11px; line-height: 1.4; }

/* Keep every member-side notification centered above the bottom navigation. */
.member-toast-root { right: 0; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); left: 0; width: auto; display: grid; justify-items: center; gap: 9px; transform: none; }
.member-toast { box-sizing: border-box; width: min(330px, calc(100vw - 44px)); min-height: 50px; display: flex; align-items: center; justify-content: center; padding: 12px 18px; border: 1px solid rgba(230, 183, 94, 0.42); border-radius: 15px; background: rgba(15, 14, 12, 0.97); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05); color: #f8f4ea; font-size: 13px; font-weight: 600; line-height: 1.4; text-align: center; animation: member-toast-in .18s ease-out; }
.member-toast.success { border-color: rgba(92, 190, 145, 0.66); background: rgba(18, 69, 51, 0.97); color: #e7fff1; }
.member-toast.error { border-color: rgba(220, 106, 98, 0.7); background: rgba(91, 35, 34, 0.97); color: #fff0ee; }
@keyframes member-toast-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (min-width: 500px) {
  .member-toast-root { bottom: calc(100dvh - min(844px, 100dvh) + 86px); }
}
