/* The member experience: the code field, the join screens, the club card, the member home and the friends page.
   Loaded after site.css on every guest page. Same palette: black, gray and white, with the green used for "done". */

/* ---- small shared pieces ---- */
.text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.notice.good { border-color: var(--go); }
.btn.busy { opacity: 0.7; cursor: progress; }
.btn-light { background: #ffffff; color: var(--ink); border-color: #ffffff; }
.home-h { margin: 0 0 12px; font-size: 1.75rem; line-height: 1; }
select { width: 100%; min-height: 56px; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--gray); border-radius: 4px; }

/* ---- the texted code: one real field, drawn as boxes once the script runs ---- */
.otp { display: grid; gap: 8px; }
.otp-box { position: relative; }
.otp-cells { display: none; }
.otp.on .otp-cells { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; height: 68px; }
.otp.on .otp-cells span { display: flex; align-items: center; justify-content: center; border: 2px solid var(--line); border-radius: 4px; font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 1; transition: border-color 0.12s ease-out; }
.otp.on .otp-cells span.filled { border-color: var(--ink); }
.otp.on .otp-cells span.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.otp.on .otp-input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; opacity: 0.01; font-size: 16px; }
.otp.on .otp-input:focus-visible { outline: none; }
.otp.bad .otp-cells span { border-color: var(--stop); }
.otp.bad .otp-cells { animation: otp-shake 0.3s ease-out; }
.otp.busy .otp-cells { opacity: 0.6; }
@keyframes otp-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.sent-to { margin: 0; color: var(--body); }
.sent-to strong { color: var(--ink); font-weight: 600; }
.sent-to .text-link { margin-left: 8px; }
.resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; min-height: 44px; margin: 0; padding-top: 4px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.phone-code { margin: 12px 0; }
.phone-code .stack { margin: 0; }
.phone-code .status { margin: 8px 0 0; }
#code-row:not([hidden]), .join-step:not([hidden]) { animation: step-in 0.26s ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- birthday: two numbers, spelled out as they are typed ---- */
.birthday { display: grid; gap: 8px; }
.birthday legend { font-weight: 500; }
.birthday-hint { margin: 0; font-size: 15px; color: var(--body); }
.birthday.bad .birthday-hint { color: var(--stop); }
.birthday-row { display: flex; align-items: flex-end; gap: 12px; grid-template-columns: none; }
.birthday-row label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.birthday-row input { width: 84px; min-height: 64px; padding: 0; text-align: center; font-family: var(--display); font-weight: 800; font-size: 2.1rem; border-color: var(--ink); }
.birthday.bad .birthday-row input { border-color: var(--stop); }
.birthday-slash { display: flex; align-items: center; height: 64px; font-family: var(--display); font-weight: 800; font-size: 2.1rem; color: var(--gray); }
.birthday-out { flex: 1; display: flex; align-items: center; justify-content: flex-end; min-height: 64px; text-align: right; font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; text-transform: uppercase; color: var(--go); }

/* ---- join: three screens when the script runs, one long form when it does not ---- */
.join-steps { display: grid; gap: 40px; margin: 12px 0; }
.join-steps.stepped { gap: 0; }
.join-step { display: grid; gap: 16px; }
.join-step > h1, .step-h { margin: 0.15em 0 0; font-size: 2.9rem; }
.join-step .lede { margin: 0; }
.join-step .stack { margin: 0; }
.name-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.name-row label { display: block; margin-bottom: 12px; }
.step-nav { display: none; }
.stepped .step-nav { display: grid; gap: 4px; justify-items: center; margin-top: 8px; }
.join-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.join-sum strong { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.join-steps .assure { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--body); }
.join-steps .assure li { position: relative; padding-left: 26px; }
.join-steps .assure li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 6px; border-left: 2px solid var(--go); border-bottom: 2px solid var(--go); transform: rotate(-45deg); }
.join-steps .plans legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.join-steps .plan { border-width: 3px; border-radius: 4px; transition: border-color 0.15s ease-out; }
.join-steps .plan:has(input:checked) { box-shadow: none; }
.join-steps .plan.has-art { grid-template-columns: 104px minmax(0, 1fr) 30px; align-items: center; }
.join-steps .plan-art { height: 76px; }
.join-steps .plan input { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; min-height: 30px; padding: 0; border: 2px solid var(--ink); border-radius: 0; background: #ffffff; cursor: pointer; }
.join-steps .plan input:checked { background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='square'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / 18px no-repeat; }
.join-steps .plan-price { margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
@media (min-width: 768px) { .join-step > h1, .step-h { font-size: 3.6rem; } }

/* ---- welcome ---- */
.welcome { display: grid; gap: 18px; justify-items: start; }
.welcome h1 { margin-bottom: 0; }
.welcome .lede { margin: 0; }
.welcome .pass { width: 100%; animation: pass-rise 0.45s ease-out; }
.welcome .btn { margin-top: 4px; }
.pass-links { margin: 0; justify-self: center; }
.pass-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; }
.pass-wait { width: 100%; padding: 28px 20px; border: 2px dashed var(--gray); border-radius: 20px; }
.pass-wait p { margin: 0; }
@keyframes pass-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---- the pass: the club is the largest thing on it, the code sits on white, name and tenure are quiet ---- */
.pass { display: flex; flex-direction: column; max-width: 420px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #ffffff; color: var(--ink); text-decoration: none; box-shadow: 0 14px 36px rgba(12, 12, 12, 0.1); }
a.pass { transition: transform 0.15s ease-out, box-shadow 0.15s ease-out; }
a.pass:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(12, 12, 12, 0.14); }
a.pass:focus-visible { border-radius: 20px; }
.pass-top { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 204px; padding: 18px 20px; overflow: hidden; }
.pass-top.dark { background: var(--ink); color: #ffffff; }
.pass-top.light { background: #ffffff; color: var(--ink); border-bottom: 1px solid var(--line); }
.pass-art { position: absolute; right: -14px; bottom: -12px; width: 178px; height: auto; }
.pass-top.light .pass-art { right: -6px; bottom: -4px; width: 128px; }
.pass-top.light .pass-club { font-size: 3.6rem; }
.pass-logo { position: relative; display: block; align-self: flex-start; height: 32px; width: auto; }
.pass-club { position: relative; font-family: var(--display); font-weight: 800; font-size: 4.4rem; line-height: 0.84; text-transform: uppercase; }
.pass-club span { display: block; }
.pass-top.dark .pass-club { text-shadow: 0 2px 14px #0c0c0c; }
.pass-top.light .pass-club { text-shadow: 0 0 14px #ffffff, 0 0 4px #ffffff; }
.pass-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: #ffffff; }
.pass-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pass-name { font-size: 1.375rem; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.pass-since { font-size: 12px; color: var(--muted); }
.pass-scan { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.pass-scan::before { content: ""; width: 14px; height: 14px; background:
  linear-gradient(var(--ink), var(--ink)) left top / 5px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) left top / 2px 5px no-repeat,
  linear-gradient(var(--ink), var(--ink)) right top / 5px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) right top / 2px 5px no-repeat,
  linear-gradient(var(--ink), var(--ink)) left bottom / 5px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) left bottom / 2px 5px no-repeat,
  linear-gradient(var(--ink), var(--ink)) right bottom / 5px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) right bottom / 2px 5px no-repeat; }
.pass-qr { flex-shrink: 0; width: 124px; }
.pass-qr svg { display: block; width: 100%; height: auto; }
.pass-help { margin: 10px 0 0; text-align: center; max-width: 420px; font-size: 13px; color: var(--muted); }

/* ---- member tabs: a bar along the bottom of a phone, a rail on a wide screen ---- */
body.has-tabs { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
.member-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--bg); border-top: 2px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 66px; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.tab[aria-current] { background: var(--ink); color: var(--bg); }
.tab-icon { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.tab-card { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
.tab-visits { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 6h16M4 12h16M4 18h10'/%3E%3C/svg%3E"); }
.tab-friends { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='8' cy='9' r='3.5'/%3E%3Ccircle cx='17' cy='10' r='2.5'/%3E%3Cpath d='M2 20c.8-3.5 3-5 6-5s5.2 1.5 6 5M15 15.5c3 0 4.5 1.5 5 4.5'/%3E%3C/svg%3E"); }
.tab-account { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.500 2 8 6'/%3E%3C/svg%3E"); }

/* ---- member home ---- */
.member-main { display: grid; gap: 32px; min-width: 0; padding-top: 16px; }
.member-main > .notice { margin: 0; }
.member-main .membership { display: grid; gap: 28px; margin: 0; padding: 0; border: 0; }
.member-main .membership + .membership { border-top: 3px solid var(--ink); margin-top: 8px; padding-top: 32px; }
.member-top { display: grid; gap: 28px; }
.member-now { display: grid; gap: 28px; align-content: start; min-width: 0; }
.member-now > .notice, .member-now > p { margin: 0; }
.month { display: grid; gap: 12px; }
.month .home-h { margin: 0; }
.month-count { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.month-big { font-family: var(--display); font-weight: 800; font-size: 4.5rem; line-height: 0.85; }
.month-of { color: var(--body); }
.meter { height: 12px; border-radius: 6px; overflow: hidden; background: var(--line); }
.meter span { display: block; height: 100%; width: 0; background: var(--ink); }
.m1 span { width: 10%; } .m2 span { width: 20%; } .m3 span { width: 30%; } .m4 span { width: 40%; } .m5 span { width: 50%; }
.m6 span { width: 60%; } .m7 span { width: 70%; } .m8 span { width: 80%; } .m9 span { width: 90%; } .m10 span { width: 100%; }
.month-ready { position: relative; margin: 0; padding-left: 26px; font-size: 15px; color: var(--body); }
.month-ready::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 6px; border-left: 2px solid var(--go); border-bottom: 2px solid var(--go); transform: rotate(-45deg); }
.month-ready strong { color: var(--ink); }
.month .renewal { margin: 0; }

.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.offer { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 2px solid var(--ink); border-radius: 14px; }
.offer:only-child { grid-column: 1 / -1; }
.offer-lead { font-family: var(--display); font-weight: 800; font-size: 2.75rem; line-height: 0.9; }
.offer-title { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
.offer-note { font-size: 13px; line-height: 1.4; color: var(--body); }
.offer-clock { align-self: flex-start; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--go); color: #ffffff; font-family: var(--display); font-weight: 800; font-size: 1.125rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

.visit-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.visit-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-top: 1px solid var(--line); font-size: 15px; }
.visit-total { margin: 12px 0 0; font-size: 15px; color: var(--body); }
.visit-total strong { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--ink); margin-right: 2px; }
/* Two offers a member can take up: a family member, and the yearly plan. */
.perks { display: grid; gap: 14px; margin: 24px 0; }
.perk { display: grid; gap: 10px; align-content: start; padding: 22px 20px; border: 2px solid var(--ink); border-radius: 18px; }
.perk p { margin: 0; color: var(--body); line-height: 1.4; }
.perk .perk-kicker { font-family: var(--display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.perk-h { margin: 0; font-size: 2.3rem; line-height: 0.95; }
.perk .btn, .perk form { margin-top: 6px; }
.perk form .btn { margin-top: 0; }
.perk-dark { background: var(--ink); border-color: var(--ink); }
.perk-dark p { color: #d6d2cd; }
.perk-dark .perk-kicker { color: #a39e98; }
.perk-dark .perk-h { color: #ffffff; }
.perk-dark .perk-h .g { color: #a39e98; }
.perk-dark .btn-line { background: #ffffff; color: #0c0c0c; border-color: #ffffff; }
@media (min-width: 768px) { .perks { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; } }
.plan-box { padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.plan-box .inline-form:first-of-type { margin-top: 8px; }
.plan-box .btn { max-width: 360px; }
/* ---- sign in: Google first, then one box for a phone number or an email address ---- */
.btn-google { gap: 12px; background: #ffffff; color: #1f1f1f; border: 2px solid var(--ink); text-transform: none; letter-spacing: 0; font-family: inherit; font-weight: 600; font-size: 1.05rem; }
.btn-google::before { display: none; }
.btn-google:hover { background: #f3f2ef; color: #1f1f1f; }
.g-logo { flex: 0 0 auto; display: block; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ways { position: relative; }
.way-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: #f3f2ef; }
.way-tabs label { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.way { display: none; }
#way-phone:checked ~ .way-phone, #way-email:checked ~ .way-email { display: block; }
#way-phone:checked ~ .way-tabs label[for="way-phone"], #way-email:checked ~ .way-tabs label[for="way-email"] { background: var(--ink); color: var(--bg); }
#way-phone:focus-visible ~ .way-tabs label[for="way-phone"], #way-email:focus-visible ~ .way-tabs label[for="way-email"] { outline: 3px solid var(--muted); outline-offset: 2px; }
.way .stack { margin: 0; }
/* The offer to put the card on a phone's home screen (shown by /js/member.js). */
.home-install:not([hidden]) { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px 14px; align-items: center; padding: 16px; margin: 0 0 20px; border-radius: 16px; background: #f3f2ef; }
.home-install img { width: 56px; height: 56px; border-radius: 13px; }
.home-install p { margin: 0; font-size: 15px; line-height: 1.35; color: var(--body); }
.home-install .home-install-title { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); margin-bottom: 2px; }
.home-install-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; }
.home-install-actions .btn { width: auto; flex: 1; margin: 0; }
.gift-switch { margin: 4px 0 0; text-align: center; }
.account-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
/* Settings tabs: radio buttons and labels, so they work without script. */
.acct-tabs { position: relative; min-width: 0; margin-top: 8px; }
.acct-tablist { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--ink); scrollbar-width: none; }
.acct-tablist::-webkit-scrollbar { display: none; }
.acct-tablist label { flex: 0 0 auto; min-height: 48px; display: flex; align-items: center; padding: 0 11px; margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; color: var(--muted); cursor: pointer; border-radius: 8px 8px 0 0; }
.acct-tablist label:hover { color: var(--ink); }
.acct-panel { display: none; padding: 24px 0 8px; }
.acct-panel > section { margin: 0; padding-top: 0; border-top: 0; }
.acct-panel h2 { margin-top: 0; }
#tab-emails:checked ~ .acct-emails, #tab-texts:checked ~ .acct-texts, #tab-you:checked ~ .acct-you, #tab-signin:checked ~ .acct-signin { display: block; }
#tab-emails:checked ~ .acct-tablist label[for="tab-emails"], #tab-texts:checked ~ .acct-tablist label[for="tab-texts"], #tab-you:checked ~ .acct-tablist label[for="tab-you"], #tab-signin:checked ~ .acct-tablist label[for="tab-signin"] { background: var(--ink); color: var(--bg); }
#tab-emails:focus-visible ~ .acct-tablist label[for="tab-emails"], #tab-texts:focus-visible ~ .acct-tablist label[for="tab-texts"], #tab-you:focus-visible ~ .acct-tablist label[for="tab-you"], #tab-signin:focus-visible ~ .acct-tablist label[for="tab-signin"] { outline: 3px solid var(--muted); outline-offset: 2px; }
.acct-emails .btn { margin: 0 8px 8px 0; }
/* Signed in, not in a club yet: the two clubs, each with its price and its own join button. */
.pick h1 { margin-bottom: 4px; }
.pick-clubs { display: grid; gap: 16px; margin-top: 24px; }
.pick-club { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 18px; border: 2px solid var(--ink); border-radius: 14px; }
.pick-art { grid-row: 1 / 3; width: 104px; height: 104px; object-fit: contain; }
.pick-club h2 { margin: 0; font-size: 2rem; line-height: 0.95; align-self: end; }
.pick-price { margin: 4px 0 0; align-self: start; color: var(--body); }
.pick-price strong { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--ink); }
.pick-club .btn { grid-column: 1 / -1; margin-top: 14px; max-width: none; }
.pick-note { margin-top: 18px; }
@media (min-width: 768px) {
  .pick-clubs { grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; }
  .pick-club { grid-template-columns: 140px minmax(0, 1fr); padding: 24px; }
  .pick-art { width: 140px; height: 140px; }
  .pick-club h2 { font-size: 2.4rem; }
  .acct-tablist label { font-size: 1.25rem; padding: 0 18px; }
}
.account-more .home-h { padding-top: 24px; border-top: 3px solid var(--ink); }

/* ---- friends ---- */
.friends-card { display: grid; gap: 12px; padding: 22px 20px; border-radius: 20px; background: var(--go); color: #ffffff; }
.friends-card h1, .friends-card h2 { margin: 0; font-size: 2.9rem; line-height: 0.9; }
.friends-card p { margin: 0; line-height: 1.45; }
.friends-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 4px; }
.friends-card .btn { width: auto; min-height: 52px; padding: 8px 22px; border-radius: 10px; font-size: 1.15rem; }
.friends-card .btn:focus-visible, .friends-card a:focus-visible, .friends-card button:focus-visible, .friends-card input:focus-visible { outline-color: #ffffff; }
.friends-count { display: inline-flex; align-items: center; min-height: 44px; color: #ffffff; font-size: 14px; font-weight: 500; }
.friends-hero .btn { width: 100%; min-height: 56px; }
.friends-link { border-color: #ffffff; background: transparent; color: #ffffff; font-size: 15px; }
.friends-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-size: 14px; }
.friends-card .text-link { color: #ffffff; font-size: 14px; }
.share-note { min-height: 1.4em; font-size: 14px; font-weight: 600; }
.friends-page { gap: 32px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.tile.strong { border: 2px solid var(--ink); }
.tile-label { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tile-big { font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 1; }
.friend-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.friend-list li { display: flex; align-items: center; gap: 12px; min-height: 68px; border-top: 1px solid var(--line); }
.friend-dot { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #ffffff; font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.friend-dot.open { background: none; border: 2px dashed var(--gray); }
.friend-who { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.friend-who .muted { font-size: 13px; }
.friend-chip { padding: 4px 10px; border: 1px solid var(--ink); border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.friend-chip.earned { border-color: var(--go); background: var(--go); color: #ffffff; }
.friend-chip.invited { border-color: var(--line); color: var(--muted); }
.how { counter-reset: how; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.how li { counter-increment: how; position: relative; padding-left: 36px; font-size: 15px; color: var(--body); }
.how li::before { content: counter(how); position: absolute; left: 0; top: -2px; font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 0.9; color: var(--go); }
.how strong { color: var(--ink); }

@media (min-width: 768px) {
  .offer-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  body.has-tabs { padding-bottom: 0; }
  .member-shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: start; }
  .member-tabs { position: sticky; top: calc(var(--header-h) + 32px); left: auto; right: auto; bottom: auto; flex-direction: column; gap: 2px; border-top: 0; padding-bottom: 0; }
  .tab { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 0 14px; font-size: 1.2rem; letter-spacing: 0.05em; }
  .tab-icon { width: 20px; height: 20px; }
  .member-main { padding-top: 0; gap: 44px; }
  .member-top { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; align-items: start; }
  .month-big { font-size: 6rem; }
  .friends-card { padding: 28px; }
  .friends-card h1 { font-size: 4rem; }
  .friends-hero { max-width: 640px; }
  .friends-hero .btn { width: auto; justify-self: start; padding: 8px 32px; }
  .account-more { max-width: 560px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .otp.bad .otp-cells, #code-row:not([hidden]), .join-step:not([hidden]), .welcome .pass, a.pass { animation: none; transition: none; }
}

.share-note:empty { display: none; }

/* A promo shows only for the club it belongs to (the same rule as the one-page form in site.css). */
.join-steps:has(input[name="club"][value="coffee"]:checked) :is(.promo-box, .promo-note)[data-club="latte"],
.join-steps:has(input[name="club"][value="latte"]:checked) :is(.promo-box, .promo-note)[data-club="coffee"] { display: none; }
