/* ==========================================================================
   میوو‌کلاب v1 — loyalty and referral preview (ADR-0018).
   Calm surfaces like میوو‌پزشک and the Mio panel: white cards, one hairline,
   one soft shadow on the site cream. One accent per meaning: mint = progress
   and earned, coral = the page's one main action, sun = «به‌زودی» and rewards.
   ========================================================================== */

.cb1 {
  --cb-surface: #fff;
  --cb-fill: #faf6f1;
  --cb-line: rgba(34, 48, 74, .09);
  --cb-line-2: rgba(34, 48, 74, .16);
  --cb-shadow: 0 1px 2px rgba(34, 48, 74, .04), 0 10px 26px -16px rgba(34, 48, 74, .16);
  --cb-progress: #1a9886;
  --cb-track: #eaefed;
  --cb-soon-bg: #fff7df;
  --cb-soon-line: rgba(138, 90, 0, .18);
  --cb-raise: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(34, 48, 74, .06), 0 6px 14px -8px rgba(34, 48, 74, .22);
  animation-name: sv1Fade;
}
.cb1 [hidden] { display: none !important; }
.cb1 h1, .cb1 h2, .cb1 h3 { margin: 0; color: var(--b-ink); font-family: var(--font-display); letter-spacing: -.02em; }
.cb1 p { margin: 0; }
.cb1 :focus-visible { outline: 3px solid var(--b-mint); outline-offset: 2px; box-shadow: 0 0 0 2px var(--b-mint-ink); }
.cb1 [tabindex="-1"]:focus { outline: none; box-shadow: none; }
.cb1 img { display: block; }
.cb1-wrap { display: grid; gap: 20px; padding-block: 22px 72px; }

/* ---------- Buttons ---------- */
.cb1-btn {
  min-height: 46px; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff; background: var(--b-cta);
  border: 0; border-radius: 14px;
  box-shadow: 0 8px 18px -10px rgba(210, 64, 47, .6);
  font: 650 .88rem/1.3 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, box-shadow .25s var(--b-ease), transform .2s var(--b-ease);
}
.cb1-btn svg, .cb1-soft svg, .cb1-textbtn svg, .cb1-icon svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cb1-btn:hover { background: var(--b-cta-hover); transform: translateY(-1px); }
.cb1-btn:active { transform: none; background: var(--b-cta-hover); box-shadow: none; }
.cb1-btn:focus-visible { outline-offset: 3px; }
/* Soft raised: white pill that sinks when pressed. */
.cb1-soft {
  min-height: 42px; padding: 0 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  color: var(--b-ink); background: var(--cb-surface);
  border: 1px solid var(--cb-line-2); border-radius: 13px;
  box-shadow: var(--cb-raise);
  font: 650 .82rem/1.3 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cb1-soft:hover { border-color: rgba(34, 48, 74, .26); }
.cb1-soft:active { background: #f3ede6; box-shadow: inset 0 2px 5px rgba(34, 48, 74, .14); }
.cb1-soft.is-done { color: var(--b-mint-ink); background: var(--b-mint-soft); border-color: rgba(10, 113, 102, .3); }
.cb1-textbtn {
  min-height: 40px; padding: 0 8px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--b-ink-2); background: none; border: 0; border-radius: 10px;
  font: 650 .82rem/1 var(--font); text-decoration: none; cursor: pointer;
}
.cb1-textbtn:hover { color: var(--b-ink); text-decoration: underline; text-underline-offset: 3px; }
.cb1-icon {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--b-ink-2); background: var(--cb-surface); border: 1px solid var(--cb-line-2); border-radius: 12px;
  box-shadow: var(--cb-raise); cursor: pointer;
}
.cb1-icon:active { box-shadow: inset 0 2px 5px rgba(34, 48, 74, .14); }
.cb1 .flip { transform: scaleX(-1); }

/* ---------- Shared pieces ---------- */
.cb1-card {
  background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: 28px;
  box-shadow: var(--cb-shadow);
}
.cb1-eyebrow, .cb1-overline { display: inline-flex; align-items: center; gap: 8px; color: var(--b-mint-ink); font-size: .76rem; font-weight: 650; line-height: 1.6; }
.cb1-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--b-mint); }
.cb1-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: .7rem; font-weight: 650; white-space: nowrap;
}
.cb1-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cb1-chip.is-live { color: var(--b-mint-ink); background: var(--b-mint-soft); }
.cb1-chip.is-soon { color: var(--b-sun-ink); background: var(--cb-soon-bg); border: 1px solid var(--cb-soon-line); }
.cb1-chip.is-soon i { background: #b57a00; }
.cb1-chip.is-est { color: var(--b-ink-2); background: var(--cb-fill); border: 1px solid var(--cb-line); }
.cb1-head { display: grid; gap: 4px; margin-bottom: 16px; }
.cb1-head h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 750; line-height: 1.5; }
.cb1-head p { max-width: 42rem; color: var(--b-ink-2); font-size: .86rem; line-height: 1.85; }
.cb1-block { padding: 24px; scroll-margin-top: 90px; }
.cb1-fine { color: var(--b-ink-2); font-size: .78rem; line-height: 1.85; }
.cb1-msg { padding: 10px 14px; border-radius: 14px; font-size: .82rem; font-weight: 600; line-height: 1.7; }
.cb1-msg.is-error { color: #8f2414; background: #fff5f1; border: 1px solid rgba(184, 50, 31, .18); }
.cb1-msg.is-ok { color: var(--b-mint-ink); background: #effaf7; border: 1px solid rgba(10, 113, 102, .2); }

/* ---------- Top: hero + member card ---------- */
.cb1-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.cb1-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 26px 28px;
  background: radial-gradient(120% 90% at 0% 100%, #fff4d6 0%, rgba(255, 244, 214, 0) 60%), var(--cb-surface);
}
.cb1-hero h1 { margin: 8px 0 10px; font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 750; line-height: 1.5; text-wrap: balance; }
.cb1-hero h1 em { color: var(--b-cta); font-style: normal; }
.cb1-hero__copy > p { max-width: 31rem; color: var(--b-ink-2); font-size: .9rem; line-height: 1.95; }
.cb1-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.cb1-status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px !important; min-height: 32px; padding: 0 12px;
  color: var(--b-ink-2); background: var(--cb-fill); border: 1px solid var(--cb-line); border-radius: 999px;
  font-size: .74rem; font-weight: 650;
}
.cb1-status i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--b-sun); box-shadow: 0 0 0 3px rgba(255, 201, 77, .3); }
.cb1-hero__art { position: relative; width: 260px; }
.cb1-hero__art img { width: 100%; height: auto; }
.cb1-hero__art::after {
  content: ""; position: absolute; inset: auto 18% 2% 18%; height: 14px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 48, 74, .16), transparent);
  z-index: -1;
}

@media (prefers-reduced-motion: no-preference) {
  .cb1-hero__art img { animation: cbFloat 3.6s ease-in-out infinite alternate; }
  .cb1-ring__bar { transition: stroke-dashoffset .9s var(--b-ease); }
  .cb1-bar > span { transition: width .7s var(--b-ease); }
  .cb1-coins.is-on span { animation: cbCoin 1.1s var(--b-ease) forwards; }
  .cb1-num.is-pop { animation: cbPop .5s var(--b-ease); }
}
@keyframes cbFloat { from { translate: 0 3px; rotate: -1deg; } to { translate: 0 -6px; rotate: 1deg; } }
@keyframes cbPop { 40% { transform: scale(1.14); } }
@keyframes cbCoin {
  0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--rot)); }
}

/* Member card: one of three states (guest, consent, member). */
.cb1-member { position: relative; padding: 22px; display: grid; align-content: start; gap: 14px; }
.cb1-state { display: grid; gap: 14px; }
.cb1-head--flush { margin: 0; }
.cb1-member h2 { font-size: 1.1rem; font-weight: 750; line-height: 1.55; }
.cb1-member__lead { color: var(--b-ink-2); font-size: .84rem; line-height: 1.85; }
.cb1-perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cb1-perks li { display: flex; align-items: flex-start; gap: 10px; color: var(--b-ink); font-size: .83rem; line-height: 1.75; }
.cb1-perks svg { flex: none; width: 22px; height: 22px; margin-top: 1px; padding: 4px; color: var(--b-mint-ink); background: var(--b-mint-soft); border-radius: 8px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cb1-perks.is-no svg { color: var(--b-ink-2); background: var(--cb-fill); }
.cb1-perks-title { color: var(--b-ink); font-size: .8rem; font-weight: 700; }
.cb1-member .cb1-btn { width: 100%; }

.cb1-wallet { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: center; }
.cb1-ring { position: relative; width: 132px; height: 132px; }
.cb1-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cb1-ring circle { fill: none; stroke-width: 11; }
.cb1-ring__track { stroke: var(--cb-track); }
.cb1-ring__bar { stroke: var(--cb-progress); stroke-linecap: round; }
.cb1-ring__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.cb1-num { display: block; color: var(--b-ink); font: 750 1.8rem/1.1 var(--font-display); }
.cb1-ring__mid small { color: var(--b-ink-2); font-size: .74rem; font-weight: 650; }
.cb1-tiernow { display: grid; gap: 6px; justify-items: start; }
.cb1-tiernow__row { display: flex; align-items: center; gap: 10px; }
.cb1-tiernow img { width: 44px; height: 44px; }
.cb1-tiernow small { display: block; color: var(--b-ink-2); font-size: .74rem; font-weight: 600; }
.cb1-tiernow strong { display: block; color: var(--b-ink); font: 750 1.08rem/1.4 var(--font-display); }
.cb1-tiernow p { color: var(--b-ink-2); font-size: .8rem; line-height: 1.7; }
.cb1-week { display: grid; gap: 6px; padding: 12px 14px; background: var(--cb-fill); border-radius: 16px; }
.cb1-week__row { display: flex; justify-content: space-between; gap: 10px; color: var(--b-ink); font-size: .8rem; font-weight: 650; }
.cb1-week__row span:last-child { color: var(--b-mint-ink); }
.cb1-bar { height: 8px; overflow: hidden; background: var(--cb-track); border-radius: 999px; }
.cb1-bar > span { display: block; height: 100%; width: 0; background: var(--cb-progress); border-radius: inherit; }
.cb1-next { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cb1-next button {
  width: 100%; min-height: 48px; padding: 8px 12px;
  display: flex; align-items: center; gap: 10px; text-align: start;
  color: var(--b-ink); background: var(--cb-surface); border: 1px solid var(--cb-line-2); border-radius: 14px;
  box-shadow: var(--cb-raise); font: 600 .8rem/1.6 var(--font); cursor: pointer;
}
.cb1-next button:active { box-shadow: inset 0 2px 5px rgba(34, 48, 74, .14); }
.cb1-next img { flex: none; width: 32px; height: 32px; }
.cb1-next span { flex: 1; min-width: 0; }
.cb1-next b { flex: none; color: var(--b-mint-ink); font-weight: 750; }
.cb1-next svg { flex: none; width: 16px; height: 16px; color: var(--b-ink-2); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cb1-est { display: flex; align-items: flex-start; gap: 8px; color: var(--b-ink-2); font-size: .74rem; line-height: 1.75; }
.cb1-est svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.cb1-coins { position: absolute; inset-block-start: 70px; inset-inline-start: 70px; width: 0; height: 0; pointer-events: none; }
.cb1-coins span {
  position: absolute; width: 18px; height: 18px; opacity: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4c2 0 18%, #ffcf4a 40%, #d99a12 100%);
  box-shadow: inset 0 -2px 0 rgba(138, 90, 0, .35);
}

/* ---------- Earn ---------- */
.cb1-earn__actions { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.cb1-earn { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cb1-earn li {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px;
  padding: 16px; background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: 20px;
}
.cb1-earn__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cb1-earn img { width: 52px; height: 52px; }
.cb1-earn h3 { font-size: .92rem; font-weight: 750; line-height: 1.5; }
.cb1-earn p { color: var(--b-ink-2); font-size: .78rem; line-height: 1.8; }
.cb1-earn .cb1-textbtn { justify-self: start; padding-inline: 0; color: var(--b-mint-ink); }
.cb1-pts { color: var(--b-ink); font-size: .8rem; font-weight: 750; }
.cb1-chip--inline { display: none; }
.cb1-safe {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 14px !important; padding: 12px 14px;
  color: var(--b-ink); background: #effaf7; border: 1px solid rgba(10, 113, 102, .16); border-radius: 16px;
  font-size: .8rem; line-height: 1.8;
}
.cb1-safe svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--b-mint-ink); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tiers ---------- */
.cb1-tiers { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cb1-tier {
  position: relative; display: grid; align-content: start; gap: 8px;
  padding: 16px; background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: 20px;
}
.cb1-tier img { width: 64px; height: 64px; }
.cb1-tier h3 { font-size: 1rem; font-weight: 750; }
.cb1-tier__min { color: var(--b-ink-2); font-size: .76rem; font-weight: 650; }
.cb1-tier ul { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cb1-tier li { position: relative; padding-inline-start: 16px; color: var(--b-ink); font-size: .78rem; line-height: 1.7; }
.cb1-tier li::before { content: ""; position: absolute; top: .7em; inset-inline-start: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--cb-progress); }
.cb1-tier__you { position: absolute; top: 14px; inset-inline-end: 14px; }
.cb1-tier.is-current { background: #f5fcfa; border: 2px solid var(--b-mint-ink); padding: 15px; }
.cb1-tier.is-reached img { filter: none; }

/* ---------- Rewards ---------- */
.cb1-rewards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cb1-reward {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px;
  padding: 16px; background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: 20px;
}
.cb1-reward__art { width: 72px; height: 72px; display: grid; place-items: center; background: var(--b-sun-soft); border-radius: 20px; }
.cb1-reward__art img { width: 56px; height: 56px; }
.cb1-reward h3 { font-size: .95rem; font-weight: 750; line-height: 1.5; }
.cb1-reward p { color: var(--b-ink-2); font-size: .78rem; line-height: 1.8; }
.cb1-reward__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.cb1-cost { color: var(--b-sun-ink); font-size: .8rem; font-weight: 700; }
.cb1-cost b { font: 750 1.05rem/1 var(--font-display); }
.cb1-meter { display: grid; gap: 4px; }
.cb1-meter small { color: var(--b-ink-2); font-size: .72rem; font-weight: 600; }

/* ---------- Invite ---------- */
.cb1-invite { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: center; }
.cb1-invite__art { display: grid; place-items: center; padding: 16px; background: var(--b-mint-soft); border-radius: 24px; }
.cb1-invite__art img { width: 100%; max-width: 280px; height: auto; }
.cb1-invite__body { display: grid; gap: 14px; }
.cb1-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: cbstep; }
.cb1-steps li { counter-increment: cbstep; display: flex; align-items: flex-start; gap: 10px; color: var(--b-ink); font-size: .84rem; line-height: 1.75; }
.cb1-steps li::before {
  content: counter(cbstep, persian); flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  color: var(--b-mint-ink); background: var(--b-mint-soft); border-radius: 50%; font-size: .78rem; font-weight: 750;
}
.cb1-codebox { display: grid; gap: 10px; padding: 14px; background: var(--cb-fill); border: 1px solid var(--cb-line); border-radius: 18px; }
.cb1-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cb1-code small { display: block; color: var(--b-ink-2); font-size: .74rem; font-weight: 650; }
.cb1-code output { display: block; color: var(--b-ink); font: 750 1.2rem/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; }
.cb1-linkrow { display: flex; gap: 8px; }
.cb1-linkrow input {
  flex: 1; min-width: 0; min-height: 42px; padding: 0 12px;
  color: var(--b-ink); background: var(--cb-surface); border: 1px solid var(--cb-line-2); border-radius: 12px;
  font: 500 .8rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-align: left;
}
.cb1-share { display: flex; flex-wrap: wrap; gap: 8px; }
.cb1-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; color: var(--b-sun-ink); background: var(--cb-soon-bg); border: 1px solid var(--cb-soon-line); border-radius: 14px; font-size: .78rem; font-weight: 600; line-height: 1.8; }
.cb1-note svg { flex: none; width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cb1-note.is-mint { color: var(--b-mint-ink); background: #effaf7; border-color: rgba(10, 113, 102, .18); }

/* ---------- History + FAQ ---------- */
.cb1-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cb1-history { margin: 0; padding: 0; list-style: none; display: grid; }
.cb1-history li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--cb-line); }
.cb1-history li:first-child { border-top: 0; }
.cb1-history img { flex: none; width: 38px; height: 38px; padding: 3px; background: var(--cb-fill); border-radius: 12px; }
.cb1-history span { flex: 1; min-width: 0; }
.cb1-history strong { display: block; color: var(--b-ink); font-size: .84rem; font-weight: 650; line-height: 1.6; }
.cb1-history small { display: block; color: var(--b-ink-2); font-size: .74rem; line-height: 1.6; }
.cb1-history b { flex: none; color: var(--b-mint-ink); font: 750 .92rem/1 var(--font-display); }
.cb1-history li.is-capped b, .cb1-history li.is-zero b { color: var(--b-ink-2); }
.cb1-empty { display: grid; justify-items: center; gap: 8px; padding: 10px 8px 4px; text-align: center; }
.cb1-empty img { width: 120px; height: 120px; }
.cb1-empty strong { color: var(--b-ink); font-size: .92rem; }
.cb1-empty p { max-width: 22rem; color: var(--b-ink-2); font-size: .8rem; line-height: 1.8; }
.cb1-faq { display: grid; }
.cb1-faq details { border-top: 1px solid var(--cb-line); }
.cb1-faq details:first-child { border-top: 0; }
.cb1-faq summary {
  min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  list-style: none; cursor: pointer; border-radius: 12px;
  color: var(--b-ink); font-size: .86rem; font-weight: 650; line-height: 1.6;
}
.cb1-faq summary::-webkit-details-marker { display: none; }
.cb1-faq summary svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .25s var(--b-ease); }
.cb1-faq details[open] summary svg { transform: rotate(180deg); }
.cb1-faq details p { padding: 0 2px 14px; color: var(--b-ink-2); font-size: .82rem; line-height: 1.9; }

/* ---------- Terms ---------- */
.cb1-terms ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.cb1-terms li { position: relative; padding-inline-start: 18px; color: var(--b-ink); font-size: .82rem; line-height: 1.85; }
.cb1-terms li::before { content: ""; position: absolute; top: .72em; inset-inline-start: 2px; width: 7px; height: 7px; border-radius: 2px; background: var(--b-ink-2); opacity: .5; }
.cb1-terms__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--cb-line); }
.cb1-leave { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cb1-leave p { color: var(--b-ink); font-size: .8rem; font-weight: 600; }

/* ---------- Coming-soon dialog ---------- */
.cb1-soon {
  width: min(420px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 26px;
  color: var(--b-ink); background: #fff; box-shadow: 0 30px 70px -30px rgba(19, 34, 56, .5);
}
.cb1-soon::backdrop { background: rgba(19, 34, 56, .42); }
.cb1-soon__body { position: relative; display: grid; justify-items: center; gap: 10px; padding: 26px 22px 22px; text-align: center; }
.cb1-soon__body img { width: 110px; height: 110px; }
.cb1-soon h2 { margin: 0; font: 750 1.15rem/1.5 var(--font-display); color: var(--b-ink); }
.cb1-soon p { margin: 0; color: var(--b-ink-2); font-size: .84rem; line-height: 1.9; }
.cb1-soon .cb1-msg { width: 100%; }
.cb1-soon__actions { display: grid; gap: 8px; width: 100%; margin-top: 4px; }
.cb1-soon__actions .cb1-btn, .cb1-soon__actions .cb1-soft { width: 100%; }
.cb1-soon__close { position: absolute; top: 12px; inset-inline-end: 12px; }
.cb1-soon :focus-visible { outline: 3px solid var(--b-mint); outline-offset: 2px; box-shadow: 0 0 0 2px var(--b-mint-ink); }

/* ---------- Footer link (the fourth service with a colour) ---------- */
.site-footer .sf-links [data-route="club"] svg { color: #7a4fc0; background: #f1eafd; }
@media (max-width: 760px) {
  /* Ten links on a three-column grid: the last one spans the row instead of dangling. */
  .site-footer .sf-links > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cb1-earn { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cb1-rewards, .cb1-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .cb1-top, .cb1-pair { grid-template-columns: 1fr; }
  .cb1-invite { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cb1-wrap { gap: 14px; padding-block: 14px 120px; }
  .cb1-card { border-radius: 24px; }
  .cb1-block { padding: 18px 16px; }
  .cb1-hero { grid-template-columns: minmax(0, 1fr) 118px; align-items: start; padding: 20px 18px; gap: 6px; }
  .cb1-hero__art { width: 118px; margin-top: 4px; }
  .cb1-hero h1 { font-size: 1.42rem; }
  .cb1-hero__copy > p { font-size: .84rem; line-height: 1.9; }
  .cb1-hero__copy > p, .cb1-hero__actions, .cb1-status { grid-column: 1 / -1; }
  .cb1-hero__copy { display: contents; }
  .cb1-hero__copy > .cb1-eyebrow { grid-column: 1; grid-row: 1; align-self: start; }
  .cb1-hero__copy > h1 { grid-column: 1; grid-row: 2; }
  .cb1-hero__art { grid-column: 2; grid-row: 1 / span 2; }
  .cb1-hero__actions { margin-top: 12px; gap: 4px 14px; }
  .cb1-hero__actions .cb1-btn { flex: 1 1 100%; }
  .cb1-status { margin-top: 6px !important; justify-self: start; }
  .cb1-member { padding: 18px 16px; }
  .cb1-ring { width: 112px; height: 112px; }
  .cb1-num { font-size: 1.55rem; }
  .cb1-earn { grid-template-columns: 1fr; gap: 8px; }
  .cb1-earn li { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none; gap: 4px 12px; padding: 14px; }
  .cb1-earn__top { grid-row: 1 / span 3; flex-direction: column; justify-content: flex-start; }
  .cb1-earn__top .cb1-chip { display: none; }
  .cb1-earn img { width: 48px; height: 48px; }
  .cb1-earn h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
  .cb1-earn h3 .cb1-chip--inline { display: inline-flex; }
  .cb1-tiers { gap: 8px; }
  .cb1-tier { padding: 14px 12px; }
  .cb1-tier.is-current { padding: 13px 11px; }
  .cb1-tier img { width: 52px; height: 52px; }
  .cb1-tier__you { top: 10px; inset-inline-end: 10px; }
  .cb1-rewards { gap: 8px; }
  .cb1-reward { padding: 14px 12px; }
  .cb1-reward__art { width: 60px; height: 60px; border-radius: 16px; }
  .cb1-reward__art img { width: 46px; height: 46px; }
  .cb1-reward__foot { flex-direction: column; align-items: stretch; }
  .cb1-reward__foot .cb1-soft { width: 100%; }
  .cb1-invite { grid-template-columns: 1fr; gap: 14px; }
  .cb1-invite__art { padding: 10px; }
  .cb1-invite__art img { max-width: 220px; }
  .cb1-share .cb1-soft { flex: 1 1 0; }
  .cb1-terms ul { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .cb1-tiers, .cb1-rewards { grid-template-columns: 1fr; }
  .cb1-wallet { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cb1-tiernow { justify-items: center; }
}
