/* Memberships, join popup, plans, install prompts */
.menu-item .lock { float: right; opacity: .85; }
body.is-member .menu-item.locked .lock { display: none; }
.member-pill { display: inline-block; background: #2d6a4f; color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.locked-row { background: #fff7ed; border-radius: 8px; padding: 6px 8px; cursor: pointer; color: #9a3412; }
.join-modal, .ios-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.join-modal.open, .ios-overlay.open { display: flex; }
.join-card { position: relative; background: #fff; border-radius: 20px; padding: 22px 18px 18px; width: 100%; max-width: 380px; max-height: 92vh; overflow-y: auto; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.join-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 1.8rem; line-height: 1; color: #888; cursor: pointer; }
.join-lock { font-size: 2.2rem; }
.join-feature { font-weight: 800; font-size: 1.1rem; margin: 4px 0 6px; }
.join-blurb { color: #555; font-size: .9rem; margin: 0 0 10px; }
.join-headline { font-weight: 800; font-size: 1.05rem; color: var(--orange); margin: 8px 0; }
.join-headline.alt { color: var(--green); }
.join-save { font-size: .78rem; color: #666; margin: 10px 0 4px; }
.join-msg { min-height: 1.1em; font-size: .85rem; color: #b91c1c; margin-top: 6px; }
.join-link { border: 0; background: none; color: #2563eb; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 6px; }
.plan-btn { display: block; width: 100%; margin: 8px 0; padding: 13px; border: 0; border-radius: 14px; background: var(--orange); color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer; }
.plan-btn.best { background: var(--green); }
.plan-btn.ghost { background: #eee; color: #333; }
.plan-btn:active { transform: scale(.98); }
.join-plans { display: grid; gap: 10px; margin: 10px 0 4px; text-align: left; }
.join-plan { display: block; width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; }
.join-plan:active { transform: scale(.98); }
.join-plan .jp-name { display: block; font-weight: 800; font-size: .95rem; color: #111; }
.join-plan .jp-price { display: block; font-weight: 900; color: var(--orange); font-size: 1.15rem; margin: 2px 0; }
.join-plan .jp-explain { display: block; font-size: .8rem; color: #444; line-height: 1.35; font-weight: 600; }
.join-plan.yearly { border-color: var(--green); }
.join-plan.yearly .jp-price { color: var(--green); }
.join-plan.pass { border-color: #1d4ed8; }
.join-plan.pass .jp-price { color: #1d4ed8; }
.join-plan.pass1mo { border-color: #b45309; }
.join-plan.pass1mo .jp-price { color: #b45309; }
.plan-grid.year-options { margin-top: 0; }
@media (min-width: 520px) {
  .plan-grid.year-options { grid-template-columns: 1fr 1fr; }
}
.legal-links { margin: 12px 16px 16px; font-size: .8rem; color: #666; text-align: center; }
.legal-links a { color: #2563eb; }
.join-legal { font-size: .75rem; color: #666; margin: 8px 0 0; }
.join-legal a { color: #2563eb; }
.ios-steps { text-align: left; font-size: .95rem; line-height: 1.5; padding-left: 20px; margin: 10px 0 14px; }
.plans-hero { text-align: center; padding: 16px 16px 4px; }
.plans-hero h2 { margin: 0 0 6px; font-size: 1.4rem; }
.plans-hero p { margin: 0; color: #555; font-weight: 700; }
.perk-list { margin: 10px 16px; display: grid; gap: 8px; }
.perk { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.perk > span { font-size: 1.4rem; }
.plan-grid { display: grid; gap: 12px; margin: 12px 16px; }
.plan-card { position: relative; background: #fff; border: 2px solid var(--border); border-radius: 18px; padding: 16px; text-align: center; }
.plan-card.best { border-color: var(--green); box-shadow: 0 4px 16px rgba(45,106,79,.18); }
.plan-ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.plan-name { font-weight: 800; font-size: 1rem; }
.plan-price { font-size: 2.4rem; font-weight: 900; color: var(--orange); }
.plan-price span { font-size: .95rem; color: #666; font-weight: 700; }
.plan-sub { font-weight: 700; color: var(--green); margin-bottom: 6px; }
.plan-card ul { text-align: left; padding-left: 20px; font-size: .9rem; margin: 8px 0; }
.free-box, .fineprint { margin: 10px 16px; font-size: .82rem; color: #555; }
.free-box { background: #f0fdf4; border-radius: 12px; padding: 10px 12px; }
.account-card { margin: 12px 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.acct-input { width: 100%; box-sizing: border-box; margin: 8px 0; }
.plan-actions { margin: 8px 16px; }
.early-access { margin: 0 16px 16px; }
.early-card { background: #fff7ed; border: 1px dashed var(--orange); border-radius: 14px; padding: 12px; text-align: center; cursor: pointer; }
.early-card.ok { background: #f0fdf4; border-color: var(--green); cursor: default; }
.install-bar { position: fixed; left: 8px; right: 8px; bottom: 8px; background: #1a1a1a; color: #fff; border-radius: 14px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; font-size: .85rem; z-index: 900; }
.install-bar[hidden] { display: none; }
.install-bar span { flex: 1; }
.install-bar button { border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 800; background: var(--orange); color: #fff; cursor: pointer; }
.install-bar button.x { background: none; font-size: 1.3rem; padding: 4px 8px; color: #bbb; }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px); background: #1a1a1a; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .88rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 1100; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }
/* Backstop: the toast is never drawn over the open menu (its Close button was covered on phones). */
body:has(.menu-overlay.open) .toast { display: none; }
.join-plan[hidden] { display: none; }
.gas-avg { display: flex; gap: 12px; align-items: center; margin: 8px 16px; background: #eff6ff; border-radius: 14px; padding: 10px 12px; }
.gas-avg-val { font-size: 1.8rem; font-weight: 900; color: #1d4ed8; }
.gas-avg-val span { font-size: .8rem; color: #555; }

.join-cancel { font-size: .8rem; color: #333; margin: 8px 0 4px; line-height: 1.4; }
.join-legal, .legal-links, .join-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.join-close { min-width: 44px; min-height: 44px; }
.loc-btn, .zip-btn { min-height: 44px; }
