/* ==========================================================
   MEMBER APP SCREENS (cream theme) + JOIN PAGES (dark)
   ========================================================== */

:root {
  --cream: #f4efe6;
  --card: #fcfbf8;
  --line: #e7dfd1;
  --ink: #141414;
  --ink-2: #3a3833;
  --muted: #8a8378;
  --gold-ink: #9a8462;     /* gold that reads on cream */
  --green: #3f7d4c;
  --tab-h: 64px;
}

/* ---------- shell ---------- */
.shell { background: var(--cream); color: var(--ink); }
/* iOS draws white status-bar text over the top of the app; keep that strip dark */
.shell::before {
  content: "";
  position: absolute;
  z-index: 30;
  top: 0; left: 0; right: 0;
  height: var(--safe-t);
  background: #070707;
}

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: calc(var(--safe-t) + 18px) 20px calc(var(--safe-b) + 32px);
}
.view.has-tabs { padding-bottom: calc(var(--safe-b) + var(--tab-h) + 28px); }
.view.enter .page { animation: pageIn .45s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view.enter .rise { animation: rise .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 60ms); }

.page { max-width: 560px; margin: 0 auto; }

/* ---------- tab bar ---------- */
.tabbar {
  position: absolute;
  z-index: 20;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: #070707;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #f2f2f2;
  text-decoration: none;
  font: 800 12.5px/1 var(--f-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.tab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab svg .dots { stroke-width: 2.6; }
.tab.is-active { color: var(--gold); }
.tab:active { opacity: .7; }

/* ---------- shared bits ---------- */
.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 1px 0 #fff inset, 0 8px 24px rgba(60, 45, 20, .06);
  color: inherit;
  text-decoration: none;
}
button.card { width: 100%; text-align: left; font: inherit; }
.card + .card { margin-top: 16px; }

.card-label, .eyebrow-dk, .list-head {
  margin: 0;
  font: 800 14px/1 var(--f-display);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow-dk { font-size: 15px; margin-top: 8px; }

.page-title {
  margin: 4px 0 18px;
  font: 800 46px/.95 var(--f-display);
  text-transform: uppercase;
  letter-spacing: .005em;
}
.section-title { margin: 26px 2px 12px; font: 800 24px/1 var(--f-display); text-transform: uppercase; }
.sub-title { margin: 10px 0 6px; font: 800 30px/1 var(--f-display); text-transform: uppercase; }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: var(--ink);
}
.icon-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg .dots { stroke-width: 2.6; }
.icon-btn--lg { width: 52px; height: 52px; margin-top: 6px; }
.icon-btn--lg svg { width: 34px; height: 34px; }
.icon-btn:active { background: rgba(0, 0, 0, .05); }

.pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(#e2d6c1, #d6c8ae);
  color: #1d1b17;
  font: 700 13px/1 var(--f-body);
  letter-spacing: .02em;
}

.status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; font: 600 15px/1 var(--f-body); }
.status svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--green); fill: none; stroke: #fff; stroke-width: 3; }
.status--ok { color: var(--green); border: 1.5px solid var(--green); }
.status--used { color: var(--muted); border: 1.5px solid var(--line); padding-left: 14px; }

.bar { height: 8px; border-radius: 8px; background: #efe8dc; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b29b75, #c9b593); }
.bar--lg { height: 10px; }

.btn-dark, .btn-white, .btn-gold, .btn-ghost, .btn-outline, .btn-outline-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px;
  border-radius: 14px;
  font: 800 17px/1 var(--f-display);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .12s ease, opacity .2s;
}
.btn-dark { background: #0a0a0a; color: #fff; }
.btn-white { background: #fff; color: #0a0a0a; }
.btn-gold { background: linear-gradient(#cdb995, #b49c74); color: #111; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid #cfc4b1; }
.btn-outline-gold { background: transparent; color: var(--gold); border: 1.5px solid rgba(191, 168, 136, .6); }
.btn-dark:active, .btn-white:active, .btn-gold:active, .btn-outline:active, .btn-outline-gold:active { transform: scale(.98); }
.btn-dark[disabled] { background: #d8d1c5; color: #7d766b; }
.btn-ghost[disabled] { color: var(--muted); border: 1.5px dashed var(--line); }
.btn-block { display: flex; width: 100%; margin-top: 12px; }
.btn-sm { height: 44px; font-size: 15px; }
.link-btn, .text-btn { color: var(--ink); font: 500 16px/1.2 var(--f-body); text-decoration: underline; text-underline-offset: 4px; }
.text-btn { font-size: 14px; color: var(--gold-ink); text-decoration: none; font-weight: 600; }

.muted { color: var(--muted); font-size: 14px; }
.fine { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.fine a { color: var(--ink-2); }
.center { text-align: center; }
.motto { margin: 26px 0 0; text-align: center; font: 800 15px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }

.row-chev svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* avatars */
.avatar { display: grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 52px; height: 52px; background: #0a0a0a; }
.avatar--sm.avatar--empty svg { width: 70%; height: 70%; margin-top: 18%; fill: #fff; }
.avatar--lg { width: clamp(104px, 28vw, 132px); aspect-ratio: 1; height: auto; background: #ece5d9; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(60, 45, 20, .12); }
.avatar--lg.avatar--empty svg { width: 100%; height: 100%; fill: #c4b8a4; }

/* ---------- HOME ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.avatar-link { border-radius: 50%; }
.bell { position: relative; display: grid; place-items: center; width: 48px; height: 48px; color: var(--ink); }
.bell svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.bell .count {
  position: absolute; top: 2px; right: 0;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--gold); color: #111;
  font: 800 13px/1 var(--f-body);
  border: 2px solid var(--cream);
}
.hello { margin: 18px 0 16px; font: 800 clamp(34px, 10.2vw, 46px)/.95 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }

.checkin-btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 58px; padding: 0 30px 0 22px;
  border-radius: 999px;
  background: linear-gradient(#1b1b1b, #050505);
  color: #fff;
  font: 800 22px/1 var(--f-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 0 0 6px #ebe1cf, 0 0 0 7px #ddd0b8, 0 10px 24px rgba(0, 0, 0, .25);
  margin: 6px 0 4px 7px;
  transition: transform .12s ease;
}
.checkin-btn:active { transform: scale(.97); }
.checkin-ic svg { width: 34px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; }

.announce {
  position: relative;
  display: flex;
  margin-top: 26px;
  border-radius: 20px;
  background: linear-gradient(#1a1a1a, #070707);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}
.announce-main { display: flex; align-items: center; gap: 14px; flex: 1; padding: 18px 8px 18px 18px; text-align: left; }
.announce-ic svg { width: 46px; height: 36px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.announce-txt { font: 700 19px/1.15 var(--f-display); }
.announce-x { align-self: flex-start; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; }
.announce-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

.ach-card { position: relative; margin-top: 22px; padding: 20px 18px 18px; }
.ach-body { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-top: 14px; }
.ach-streak { display: flex; align-items: center; gap: 6px; padding-right: 12px; border-right: 1.5px solid var(--line); }
.ach-flame svg { width: 34px; height: 44px; fill: #c9ad7f; }
.ach-streak-txt { font: 800 24px/.95 var(--f-display); text-transform: uppercase; }
.ach-streak-txt b { display: block; }
.ach-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; min-width: 0; }
.mini-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.mini-badge img { width: 100%; max-width: 74px; height: auto; }
.mini-badge span { font: 800 12px/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; text-align: center; }
.see-all { display: inline-block; margin-top: 16px; font: 800 15px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }

.bookings { margin-top: 18px; padding: 20px 18px 8px; }
.booking { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.card-label + .booking { border-top: 0; margin-top: 6px; }
.booking-ic svg { width: 34px; height: 34px; fill: none; stroke: var(--gold-ink); stroke-width: 1.6; }
.booking-ic svg .dots { stroke-width: 2.4; }
.booking-txt { display: flex; flex-direction: column; gap: 3px; }
.booking-txt b { font: 800 19px/1.05 var(--f-display); text-transform: uppercase; }
.booking-txt span { font-size: 14px; color: var(--ink-2); }
.booking .row-chev { color: var(--gold-ink); }
.empty { padding: 14px 0 16px; }
.empty p { margin: 0 0 12px; color: var(--ink-2); }

/* ---------- RSVP ---------- */
.weekstrip { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; padding: 14px 4px; margin-bottom: 18px; }
.wk-nav { display: grid; place-items: center; height: 60px; color: var(--muted); }
.wk-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; color: var(--ink); }
.day-num {
  position: relative;
  display: grid; place-items: center;
  width: 100%; max-width: 46px; aspect-ratio: 1 / 1.05;
  border-radius: 12px;
  border: 1.5px solid #ebe3d5;
  background: #fff;
  font: 700 20px/1 var(--f-body);
}
.day-dow { font: 600 13px/1 var(--f-body); }
.day.has-session .day-num::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.day.is-booked .day-num::after { background: var(--green); }
.day.is-today .day-num { border-color: var(--gold); }
.day.is-sel .day-num { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }

.ses-list .card + .card { margin-top: 14px; }
.ses { padding: 18px 18px 18px; transition: box-shadow .25s, border-color .25s; scroll-margin: 90px; }
.ses.is-sel { border-color: #cbb994; box-shadow: 0 0 0 2px rgba(191, 168, 136, .35), 0 8px 24px rgba(60, 45, 20, .08); }
.ses-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tag { display: inline-block; padding: 7px 14px; border-radius: 8px; background: linear-gradient(#e4d9c5, #d7c9ae); font: 800 14px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.ses-ic svg { width: 42px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.ses-when { margin: 12px 0 8px; font: 800 26px/1.05 var(--f-body); letter-spacing: -.01em; }
.ses-when .sep { margin: 0 2px; }
.ses-where { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 16px; color: var(--ink-2); line-height: 1.35; }
.ses-where svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: var(--ink); }
.ses-moved { display: inline-block; margin: 10px 0 0; padding: 5px 10px; border-radius: 8px; background: #fbefd9; color: #8a5a12; font: 600 13px/1 var(--f-body); }
.ses-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.spots { flex: 1; min-width: 0; }
.spots p { margin: 0 0 8px; font-size: 16px; }
.ses .btn-dark { flex: none; min-width: 128px; height: 52px; font-size: 19px; }
.reserved { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--green); font: 800 20px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.reserved svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.ses-ended { margin: 0; color: var(--muted); }
.ses--empty .ses-when { margin-top: 0; }
.ses-none { margin: 4px 0 0; font: 700 20px/1.2 var(--f-body); color: var(--gold-ink); }
.ses-hint { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.ses--special { background: linear-gradient(#fffaf0, var(--card)); }

/* month calendar sheet */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h3 { margin: 0; font: 800 24px/1 var(--f-display); text-transform: uppercase; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-dow span { padding: 8px 0; font: 600 12px/1 var(--f-body); color: var(--muted); }
.cal-grid { gap: 4px; }
.cal-day { position: relative; display: grid; place-items: center; height: 44px; border-radius: 12px; font: 600 16px/1 var(--f-body); color: var(--ink); }
.cal-day.is-out { color: #c3bbae; }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--gold); }
.cal-day.is-sel { background: #0a0a0a; color: #fff; }
.cal-day .dot { position: absolute; bottom: 5px; }
.cal .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.cal .dot--booked { background: var(--green); }
.cal-legend { display: flex; justify-content: center; gap: 20px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.cal-legend .dot { margin-right: 6px; vertical-align: 1px; }

/* ---------- BUY ---------- */
.buy-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 22px 20px; }
.buy-card + .buy-card { margin-top: 16px; }
.buy-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.buy-title { font: 800 32px/.95 var(--f-display); text-transform: uppercase; }
.buy-sub { font: 600 17px/1.2 var(--f-body); color: var(--ink-2); }
.tee { position: relative; display: block; width: 128px; }
.tee-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .2)); }
.tee img { position: absolute; left: 31%; top: 32%; width: 38%; }
.tee--lg { width: 170px; margin: 0 auto 6px; }
.squad { grid-template-columns: 1fr 1fr; }
.squad-side { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-left: 14px; border-left: 1.5px solid var(--line); text-align: center; font: 600 15px/1.25 var(--f-body); }
.squad-ic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; box-shadow: inset 0 0 0 2px #d8c7a6; }
.squad-ic svg { width: 56px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.plan .row-chev.big svg { width: 34px; height: 34px; stroke-width: 2.4; color: var(--ink); }
.plan .buy-title { font-size: 26px; }

/* squad page */
.squad-hero { padding: 24px 20px; text-align: center; }
.squad-hero-ic svg { width: 72px; height: 56px; fill: none; stroke: var(--gold-ink); stroke-width: 1.5; stroke-linecap: round; }
.squad-hero p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.5; }
.squad-hero .fine { margin: 10px 0 0; }
.used-card { padding: 20px; }
.used-name { margin: 10px 0 4px; font: 800 26px/1 var(--f-display); text-transform: uppercase; }
.used-meta { margin: 0; color: var(--ink-2); }

/* forms (cream) */
.form { padding: 22px 20px; }
.form-title { margin: 0 0 14px; font: 800 22px/1 var(--f-display); text-transform: uppercase; }
.f { display: block; margin-bottom: 14px; }
.f span { display: block; margin-bottom: 7px; font: 600 14px/1 var(--f-body); color: var(--ink-2); }
.f input, .f select {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1.5px solid #e3dacb; border-radius: 12px;
  background: #fff; color: var(--ink);
  font: 500 16px/1 var(--f-body);
  appearance: none; -webkit-appearance: none;
  outline: none;
}
.f select { background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.f input:focus, .f select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(191, 168, 136, .3); }
.f.is-invalid input { border-color: #c9584b; }
.f.shake { animation: shake .4s; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.avatar-pick { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px; cursor: pointer; }
.avatar-pick-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--f-body); color: var(--gold-ink); }
.avatar-pick-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* plans (light) */
.current-plan, .plan-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px; }
.current-plan { grid-template-columns: auto 1fr; }
.crown-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; box-shadow: inset 0 0 0 2px #bba98a; }
.crown-ic svg { width: 32px; height: 32px; fill: none; stroke: #a8936f; stroke-width: 1.8; }
.crown-ic svg .fill { fill: #b49e78; stroke: none; }
.cp-name { display: block; margin-top: 6px; font: 800 24px/1 var(--f-display); text-transform: uppercase; }
.cp-meta { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

.plan-card { position: relative; padding: 24px 20px 20px; border-radius: 22px; }
.plan-card + .plan-card, .rise + .rise > .plan-card { margin-top: 16px; }
.best { position: absolute; top: -12px; right: 18px; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: #111; font: 800 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.plan-name { margin: 0; font: 800 26px/1 var(--f-display); text-transform: uppercase; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 6px; }
.plan-price b { font: 800 48px/1 var(--f-display); }
.plan-price span { font: 600 16px/1 var(--f-body); opacity: .75; }
.plan-price s { margin-left: 6px; font: 600 16px/1 var(--f-body); opacity: .5; }
.plan-note { margin: 0 0 14px; font-size: 13.5px; line-height: 1.45; opacity: .7; }
.plan-feats { list-style: none; margin: 0 0 6px; padding: 0; }
.plan-feats li { display: flex; gap: 10px; padding: 7px 0; font-size: 15px; line-height: 1.35; }
.plan-feats svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--gold); stroke-width: 2.6; }
.plan-card--light .plan-feats svg { stroke: var(--gold-ink); }
.plan-card--light.is-best { border-color: #cfbd98; }

/* ---------- MORE / lists ---------- */
.list { padding: 4px 0; overflow: hidden; }
.list + .list { margin-top: 18px; }
.list-head { padding: 16px 20px 12px; background: linear-gradient(#c9b593, #b9a37e); color: #fff; letter-spacing: .3em; margin: -4px 0 0; }
.row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 16px 18px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.list > .row:first-child, .list-head + .row, .card-label + .row { border-top: 0; }
.row:active { background: rgba(191, 168, 136, .1); }
.row-ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.row-ic svg .fill { fill: currentColor; stroke: none; }
.row-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-title { font: 800 19px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.row-sub { font-size: 14.5px; color: var(--ink-2); }
.row-chev { color: var(--ink-2); }
.card-label.pad { padding: 18px 18px 4px; }
.legal--app { margin: 28px 0 0; text-align: center; color: var(--gold-ink); font: 700 12px/1.8 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.legal--app a { color: var(--gold-ink); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-top: 1px solid var(--line); }
.toggle-row:first-child { border-top: 0; }
.toggle-row > span { display: flex; flex-direction: column; gap: 4px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 52px; height: 32px; border-radius: 16px; background: #ddd5c7; transition: background .2s; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s var(--ease-out); }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }

.faq-item { padding: 0; }
.faq-item + .faq-item { margin-top: 10px; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; list-style: none; font: 700 16px/1.3 var(--f-body); cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .row-chev { transform: rotate(90deg); }
.faq-item .row-chev { transition: transform .2s; }
.faq-item p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); line-height: 1.55; }
.faq + .btn-block { margin-top: 20px; }

/* ---------- sub-page header ---------- */
.subhead { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; margin: -4px -8px 10px; min-height: 52px; }
.subhead .back { width: 52px; height: 52px; }
.subhead .back svg { width: 30px; height: 30px; }
.brandline { margin: 0; text-align: center; font: 800 15px/1 var(--f-body); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-ink); }
.subhead-extra { display: flex; justify-content: flex-end; }
.subhead-extra .text-btn { white-space: nowrap; margin-right: 8px; }
.subhead:has(.text-btn) { grid-template-columns: 52px 1fr auto; }

/* ---------- ACCOUNT ---------- */
.profile { display: flex; align-items: center; gap: 20px; margin: 18px 4px 26px; }
.profile-meta { min-width: 0; }
.p-name { margin: 0; font: 800 34px/1 var(--f-cond); text-transform: uppercase; overflow-wrap: anywhere; }
.p-email { margin: 6px 0 12px; font-size: 17px; overflow-wrap: anywhere; }
.pill--plan { padding: 9px 18px; font: 500 14px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.plan-row { margin-top: 18px; }
.member-since { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- ACHIEVEMENTS ---------- */
.big-title { margin: 6px 0 22px; text-align: center; font: 800 46px/.92 var(--f-display); text-transform: uppercase; }
.big-title span { display: block; }
.streak-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 22px 20px; }
.ring { position: relative; width: 128px; height: 128px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring-bg { stroke: #efe7da; stroke-dasharray: 2 6; stroke-linecap: butt !important; stroke-width: 7 !important; }
.ring-fg { stroke: #bea57b; transition: stroke-dashoffset 1s var(--ease-out); }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font: 800 62px/1 var(--f-display); }
.streak-txt h2 { margin: 0 0 8px; font: 800 26px/1 var(--f-display); text-transform: uppercase; }
.streak-txt p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.streak-txt .streak-best { margin-top: 10px; font: 700 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.next-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px 20px; margin-top: 16px; }
.next-ic svg { width: 64px; height: 64px; fill: none; stroke: #c8b088; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.next-count { margin: 0 0 10px; font: 600 22px/1 var(--f-body); }
.next-count b { font: 800 30px/1 var(--f-body); }
.next-sub { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.badge-grid .card + .card { margin-top: 0; }
.badge-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 12px 16px; text-align: center !important; }
.badge-tile img { width: 100%; max-width: 150px; height: auto; }
.bt-name { font: 800 20px/1 var(--f-display); text-transform: uppercase; }
.bt-line { font: 600 14px/1.3 var(--f-body); color: var(--ink-2); min-height: 2.6em; }
.bt-state { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); }
.bt-state svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; }
.badge-tile.is-locked .bt-state { background: #bba98a; }
.badge-tile.is-locked .bt-state svg { stroke-width: 2.2; }
.badge-tile.is-locked .bt-name { color: var(--muted); }

/* ---------- NOTIFICATIONS ---------- */
.notif-list .card + .card { margin-top: 10px; }
.notif { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: flex-start; padding: 16px; }
.notif-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #f1e9db; }
.notif-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notif-ic svg .dots { stroke-width: 2.4; }
.notif-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.notif-title { font: 800 18px/1.1 var(--f-display); text-transform: uppercase; }
.notif-text { font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.notif-when { font-size: 12.5px; color: var(--muted); }
.notif-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--gold); }
.notif:not(.is-unread) { opacity: .78; }

/* ---------- app bottom sheet ---------- */
.sheet--app { background: var(--cream); color: var(--ink); border-color: var(--line); text-align: left; }
.sheet--app .sheet-grip { background: #d6ccbb; }
.sheet-msg { text-align: center; padding: 0 4px; }
.sheet-msg h3 { margin: 6px 0 8px; font: 800 28px/1 var(--f-display); text-transform: uppercase; }
.sheet-msg p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.5; }
.sheet-ic svg { width: 56px; height: 44px; fill: none; stroke: var(--gold-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sheet-badge img { width: 220px; max-width: 70%; height: auto; }
.joined-check { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green); }
.joined-check svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- CHECK-IN (full screen) ---------- */
.checkin {
  position: fixed; inset: 0; z-index: 85;
  display: grid; place-items: center;
  background: #070707;
  animation: fadeIn .2s ease both;
  opacity: 0;
}
.ci-inner { width: min(100%, 460px); padding: calc(var(--safe-t) + 20px) 22px calc(var(--safe-b) + 24px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.ci-close { position: absolute; top: calc(var(--safe-t) + 10px); right: 12px; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; }
.ci-close svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ci-logo { width: 150px; margin-bottom: 22px; }
.ci-card { width: 100%; padding: 26px 22px 20px; border-radius: 24px; background: #fff; color: #111; box-shadow: 0 0 60px rgba(255, 255, 255, .14); animation: ciIn .45s var(--ease-out) both; }
@keyframes ciIn { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.ci-name { margin: 0; font: 800 30px/1 var(--f-display); text-transform: uppercase; }
.ci-plan { margin: 6px 0 18px; font: 600 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #9a8462; }
.ci-code { width: 100%; height: 120px; }
.barcode-svg { display: block; width: 100%; height: 100%; }
.ci-id { margin: 12px 0 0; font: 600 18px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .2em; }
.ci-hint { margin: 22px 0 0; color: #cfcac2; font-size: 15px; line-height: 1.5; }
.ci-next { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(191, 168, 136, .4); color: var(--gold); font: 700 14px/1.3 var(--f-body); }

/* ==========================================================
   JOIN + JOINED (dark, public)
   ========================================================== */
.dark-page { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.join-wrap { max-width: 520px; margin: 0 auto; padding: calc(var(--safe-t) + 16px) 22px calc(var(--safe-b) + 30px); }
.join-wrap--center { min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.join-back { display: inline-flex; align-items: center; gap: 6px; margin-left: -6px; padding: 8px 6px; color: #cfc8bc; text-decoration: none; font: 600 15px/1 var(--f-body); }
.join-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.join-logo { width: 170px; margin: 16px auto 26px; }
.join-title { margin: 6px 0 12px; font: 800 52px/.92 var(--f-display); text-transform: uppercase; }
.join-lede { margin: 0 0 26px; color: #cfcac2; line-height: 1.5; }
.join .plan-card { background: linear-gradient(#141414, #0c0c0c); border: 1px solid #2a2722; color: #fff; }
.join .plan-card.is-best { border-color: rgba(191, 168, 136, .7); box-shadow: 0 0 0 1px rgba(191, 168, 136, .25), 0 20px 40px rgba(0, 0, 0, .4); }
.join .rise + .rise .plan-card { margin-top: 22px; }
.join .plan-price b { color: #fff; }
.join .fine { color: #8f897f; }
.join .fine a { color: #cfc8bc; }
.join .newhere { margin-top: 22px; }
.join .legal--login { text-align: center; color: #6f6a62; }
.join .legal--login a { color: #8f877b; }
.join-wrap--center .joined-check { margin: 4px 0 18px; }
.join-wrap--center .btn-block { max-width: 360px; }

@media (max-width: 360px) {
  .page-title, .big-title { font-size: 40px; }
  .hello { font-size: 38px; }
  .buy-title { font-size: 28px; }
  .ses-when { font-size: 22px; }
  .ach-streak-txt { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .view.enter .page, .view.enter .rise, .ci-card { animation: none !important; opacity: 1; }
}

/* keep toasts above the tab bar */
body.has-tabs .toast { bottom: calc(var(--safe-b) + var(--tab-h) + 14px); }
