:root {
  color-scheme: light;
  --bg: #e7f4f3;
  --bg-2: #edf5ff;
  --surface: #f6fbff;
  --surface-2: #edf9f2;
  --surface-3: #fff5d6;
  --ink: #14364a;
  --muted: #53717b;
  --line: #95cabd;
  --line-blue: #94b7e8;
  --teal: #0c8b78;
  --teal-deep: #08665f;
  --blue: #2f68bf;
  --coral: #db6548;
  --amber: #c98712;
  --violet: #6b5cc7;
  --radius: 8px;
  --shadow: 0 4px 8px rgba(20, 54, 74, .10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(12, 139, 120, .13), transparent 36%),
    linear-gradient(225deg, rgba(47, 104, 191, .13), transparent 42%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.embed {
  min-height: auto;
  background: transparent;
}

button,
input {
  font: inherit;
}

button {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #24549b;
  outline-offset: 2px;
}

.page {
  width: min(1380px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 14px 0 28px;
}

body.embed .page {
  width: 100%;
  max-width: 1040px;
  padding: 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f1fbff 0%, #e5f6ef 54%, #fff0bd 100%);
  box-shadow: var(--shadow);
}

body.embed .hero {
  display: none;
}

.mini-kicker {
  width: fit-content;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #74bfae;
  border-radius: 999px;
  background: #d9f2e8;
  color: var(--teal-deep);
  font-weight: 950;
  font-size: 12px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.brand img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  object-fit: cover;
}

h1 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: clamp(30px, 2.7vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.22;
}

p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy p {
  max-width: 72ch;
  text-wrap: pretty;
}

.back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: #24549b;
  font-weight: 950;
  text-decoration: none;
  padding: 0 14px;
  border: 1px solid #8eb0e0;
  border-radius: var(--radius);
  background: #e8f2ff;
}

#payApp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 392px);
  grid-template-areas:
    "account account"
    "plans plans";
  gap: 12px;
  align-items: start;
}

#payApp.hidden {
  display: none !important;
}

#payApp:has(#orderPanel:not(.hidden)) {
  grid-template-areas:
    "account account"
    "plans order";
}

.account-grid {
  grid-area: account;
  display: grid;
  grid-template-columns: minmax(240px, .88fr) minmax(360px, 1.24fr) minmax(280px, .88fr);
  gap: 12px;
  align-items: stretch;
}

.pay-panel {
  grid-area: plans;
}

#orderPanel {
  grid-area: order;
  position: sticky;
  top: 14px;
}

.panel {
  margin-top: 0;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 8px rgba(20, 54, 74, .07);
}

#loginTip {
  max-width: 560px;
  margin: 16px auto 0;
}

.balance {
  display: grid;
  gap: 8px;
  align-content: center;
  background: linear-gradient(145deg, #14364a, #0c796e 68%, #2e6f9e);
  color: #eefbf7;
  border-color: #0d7166;
}

.balance span,
.balance em {
  color: #caeee8;
  font-size: 13px;
}

.balance strong {
  color: #f2fff9;
  font-size: 26px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.balance em {
  font-style: normal;
  font-weight: 900;
}

.checkin-panel {
  display: grid;
  gap: 8px;
  background: linear-gradient(130deg, #12384c 0%, #0c8676 55%, #2f68bf 100%);
  color: #f2fff9;
  border-color: #0b776b;
}

.checkin-panel h2,
.checkin-panel p {
  color: #f2fff9;
}

.checkin-panel p {
  color: #d4f4ee;
  font-size: 13px;
}

.checkin-panel .mini-kicker {
  border-color: rgba(238, 251, 247, .46);
  background: rgba(238, 251, 247, .13);
  color: #cffff4;
}

.checkin-meta,
.invite-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkin-meta > div,
.invite-stats > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(238, 251, 247, .24);
  border-radius: var(--radius);
  background: rgba(238, 251, 247, .12);
}

.checkin-meta span,
.invite-stats span {
  display: block;
  color: #d5f2ed;
  font-size: 12px;
}

.checkin-meta strong,
.invite-stats strong {
  display: block;
  margin-top: 4px;
  color: #fff1b4;
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(238, 251, 247, .28);
  border-radius: 999px;
  background: rgba(238, 251, 247, .16);
}

.progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd166, #ff7a59 52%, #64e4d0);
}

.progress-text {
  color: #d4f4ee;
  font-size: 12px;
  font-weight: 780;
}

.daily-eligibility {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(238, 251, 247, .28);
  border-radius: var(--radius);
  background: rgba(238, 251, 247, .12);
  color: #fff1b4;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.checkin-panel.is-ineligible .daily-eligibility {
  border-color: rgba(255, 209, 102, .48);
  background: rgba(91, 59, 6, .22);
}

.claim,
.agent-link {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #f2b13b;
  border-radius: var(--radius);
  background: #ffd166;
  color: #5b3b06;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.claim:disabled,
.checkin-panel.claimed .claim {
  border-color: rgba(238, 251, 247, .28);
  background: rgba(238, 251, 247, .18);
  color: #d4f4ee;
  cursor: not-allowed;
}

.invite-panel {
  display: grid;
  gap: 9px;
  background: linear-gradient(145deg, #f1f6ff, #fff3da);
  border-color: #d3ad4a;
}

.invite-panel .mini-kicker {
  border-color: #d2a331;
  background: #ffe7a1;
  color: #75500a;
}

.invite-panel p {
  font-size: 13px;
}

.invite-stats > div {
  border-color: #d6b65a;
  background: #fff7df;
}

.invite-stats span {
  color: #7d632a;
}

.invite-stats strong {
  color: var(--amber);
}

.agent-link {
  border-color: #27559a;
  background: var(--blue);
  color: #f3f8ff;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.section-title span {
  color: var(--ink);
  font-weight: 950;
}

.section-title small {
  color: var(--muted);
  font-size: 13px;
}

.pricing-promise {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: #14364a;
  color: #effbf8;
}

.pricing-promise > span {
  color: #bfe7e0;
  font-size: 13px;
  font-weight: 800;
}

.pricing-promise strong {
  color: #fff1b4;
  font-size: 21px;
  line-height: 1.2;
}

.pricing-promise small {
  margin-left: auto;
  color: #d5f2ed;
  font-size: 13px;
  font-weight: 800;
}

.member-savings {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 2.2fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 13px 14px;
  border-block: 1px solid #94b7e8;
  background: #edf4ff;
}

.member-savings h2 {
  margin: 0 0 5px;
  color: #24549b;
  font-size: 17px;
}

.member-savings p {
  color: #4a6874;
  font-size: 12px;
}

.member-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-tier {
  min-width: 0;
  padding: 2px 14px;
  border-inline-start: 1px solid #b5c9e5;
}

.member-tier:first-child {
  border-inline-start: 0;
}

.member-tier > span,
.member-tier > strong,
.member-tier > small {
  display: block;
}

.member-tier > span {
  color: #53717b;
  font-size: 12px;
  font-weight: 800;
}

.member-tier > strong {
  margin-top: 3px;
  color: #14364a;
  font-size: 16px;
  line-height: 1.25;
}

.member-tier > small {
  margin-top: 4px;
  color: #53717b;
  font-size: 12px;
  line-height: 1.35;
}

.member-tier b {
  color: #24549b;
}

.upgrade-benefit {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 2.28fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
  border: 2px solid #24549b;
  border-radius: var(--radius);
  background: #f8fbff;
  box-shadow: 4px 4px 0 #9bb8df;
}

.upgrade-benefit-copy > span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 5px;
  background: #24549b;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.upgrade-benefit-copy h2 {
  margin: 9px 0 5px;
  color: #14364a;
  font-size: 19px;
  text-wrap: balance;
}

.upgrade-benefit-copy p {
  color: #385b69;
  font-size: 12px;
  line-height: 1.55;
}

.upgrade-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.upgrade-tier {
  position: relative;
  display: grid;
  align-content: end;
  min-width: 0;
  min-height: 104px;
  padding: 10px 12px;
  border: 1px solid #aabed8;
  border-inline-end: 0;
  background: #edf4ff;
}

.upgrade-tier:first-child {
  border-radius: 6px 0 0 6px;
}

.upgrade-tier:last-child {
  border-inline-end: 1px solid #aabed8;
  border-radius: 0 6px 6px 0;
}

.upgrade-tier.tier-vip {
  min-height: 118px;
  background: #e7f8f3;
  border-color: #75b9aa;
}

.upgrade-tier.tier-svip {
  min-height: 142px;
  border: 2px solid #b45309;
  background: #fff4d6;
}

.upgrade-tier.tier-enterprise {
  min-height: 130px;
  border-color: #8d7fd1;
  background: #f2efff;
}

.upgrade-tier > b {
  position: absolute;
  top: 0;
  inset-inline: 0;
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #b45309;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.upgrade-tier > span,
.upgrade-tier > strong,
.upgrade-tier > small,
.upgrade-tier > em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.upgrade-tier > span {
  color: #385b69;
  font-size: 12px;
  font-weight: 900;
}

.upgrade-tier > strong {
  margin-top: 4px;
  color: #14364a;
  font-size: 23px;
  line-height: 1.05;
  font-weight: 950;
}

.upgrade-tier.tier-svip > strong {
  color: #8b3b08;
  font-size: 28px;
}

.upgrade-tier > small,
.upgrade-tier > em {
  margin-top: 4px;
  color: #4a6874;
  font-size: 11px;
  line-height: 1.35;
  font-style: normal;
}

.upgrade-tier > em {
  color: #24549b;
  font-weight: 850;
}

.enterprise-scope-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #385b69;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.tier-vip > span {
  color: #a33e28;
}

.tier-svip > span {
  color: #4e4297;
}

.plans-heading {
  margin-top: 2px;
}

.plan-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding-bottom: 9px;
  border-bottom: 1px solid #b7ccd3;
}

.plan-tab {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #e6eff3;
  color: #385b69;
  cursor: pointer;
  font-weight: 900;
}

.plan-tab:hover:not(:disabled) {
  border-color: #78b9ab;
  background: #dff3ec;
  color: var(--teal-deep);
}

.plan-tab.active {
  border-color: var(--teal-deep);
  background: var(--teal-deep);
  color: #effbf8;
}

.plan-tab:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.plan-tab-copy {
  min-height: 32px;
  padding: 8px 2px 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.coding-status {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(190px, 1fr) minmax(240px, 1.5fr);
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #94b7e8;
  border-radius: var(--radius);
  background: #eef5ff;
}

.coding-status span,
.coding-status strong,
.coding-status small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.coding-status span {
  color: #315d9b;
  font-size: 12px;
  font-weight: 900;
}

.coding-status strong {
  color: #173f74;
  font-size: 15px;
}

.coding-status small {
  color: #4a6874;
  font-size: 12px;
  line-height: 1.4;
}

.coding-status.is-active {
  border-color: #76bdac;
  background: #e2f5ed;
}

.coding-status.is-active span,
.coding-status.is-active strong {
  color: var(--teal-deep);
}

.coding-status.is-expired,
.coding-status.is-exhausted {
  border-color: #d9aa83;
  background: #fff3e8;
}

.coding-status.is-expired span,
.coding-status.is-exhausted span {
  color: #94432d;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
}

.plans-empty {
  display: grid;
  gap: 5px;
  grid-column: 1 / -1;
  min-height: 96px;
  place-content: center;
  padding: 18px;
  border: 1px dashed #95b7c2;
  border-radius: var(--radius);
  background: #eef5f7;
  color: var(--muted);
  text-align: center;
}

.plans-empty strong {
  color: var(--ink);
}

.plan,
.method,
.primary,
.secondary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.plan {
  --plan-accent: var(--teal);
  --plan-line: #8bc7b9;
  --plan-bg: #f0faf6;
  --plan-hover: #e5f7ef;
  --plan-active-bg: #def3ea;
  --plan-ring: rgba(12, 139, 120, .18);
  --plan-strong: var(--teal-deep);
  --plan-pill-bg: #dff3ec;
  --plan-pill-fg: #176553;
  --plan-pill-line: #8bc7b9;
  --plan-note: #176553;
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 12px;
  text-align: left;
  border-color: var(--plan-line);
  border-top: 4px solid var(--plan-accent);
  background: var(--plan-bg);
  box-shadow: 0 3px 6px rgba(20, 54, 74, .07);
  overflow: hidden;
}

.plan.tone-credit {
  --plan-accent: #0c8b78;
  --plan-line: #8bc7b9;
  --plan-bg: #f0faf6;
  --plan-hover: #e5f7ef;
  --plan-active-bg: #def3ea;
  --plan-ring: rgba(12, 139, 120, .18);
  --plan-strong: #08665f;
}

.plan.tone-voucher {
  --plan-accent: #c98712;
  --plan-line: #e0b84e;
  --plan-bg: #fff7df;
  --plan-hover: #fff0bd;
  --plan-active-bg: #ffedb4;
  --plan-ring: rgba(201, 135, 18, .20);
  --plan-strong: #855a08;
  --plan-pill-bg: #ffe7a1;
  --plan-pill-fg: #75500a;
  --plan-pill-line: #d7a429;
  --plan-note: #75500a;
}

.plan.tone-plus {
  --plan-accent: #2f68bf;
  --plan-line: #94b7e8;
  --plan-bg: #eef5ff;
  --plan-hover: #e1edff;
  --plan-active-bg: #d8e8ff;
  --plan-ring: rgba(47, 104, 191, .18);
  --plan-strong: #24549b;
  --plan-pill-bg: #dce9ff;
  --plan-pill-fg: #24549b;
  --plan-pill-line: #9bb9e6;
  --plan-note: #315d9b;
}

.plan.tone-vip {
  --plan-accent: #db6548;
  --plan-line: #e8a18e;
  --plan-bg: #fff0ea;
  --plan-hover: #ffe6dc;
  --plan-active-bg: #ffddd0;
  --plan-ring: rgba(219, 101, 72, .18);
  --plan-strong: #a33e28;
  --plan-pill-bg: #ffddd1;
  --plan-pill-fg: #973b27;
  --plan-pill-line: #e7a18f;
  --plan-note: #8a412f;
}

.plan.tone-svip {
  --plan-accent: #6b5cc7;
  --plan-line: #b8addf;
  --plan-bg: #f4f0ff;
  --plan-hover: #ece6ff;
  --plan-active-bg: #e6ddff;
  --plan-ring: rgba(107, 92, 199, .18);
  --plan-strong: #4e4297;
  --plan-pill-bg: #e6ddff;
  --plan-pill-fg: #4e4297;
  --plan-pill-line: #b8addf;
  --plan-note: #5a4ca2;
}

.plan.tone-coding {
  --plan-accent: #2f68bf;
  --plan-line: #8fb4df;
  --plan-bg: #edf5ff;
  --plan-hover: #e2efff;
  --plan-active-bg: #d8e9ff;
  --plan-ring: rgba(47, 104, 191, .18);
  --plan-strong: #234f8f;
  --plan-pill-bg: #dce9ff;
  --plan-pill-fg: #24549b;
  --plan-pill-line: #91b1dd;
  --plan-note: #315d9b;
}

.plan.tone-enterprise {
  border-color: #8d7fd1;
  background: #f4f1ff;
}

.plan.tone-enterprise em,
.plan.tone-enterprise .plan-value-rate {
  color: #5143a6;
}

.plan-value-rate {
  display: inline-flex;
  width: fit-content;
  min-height: 25px;
  align-items: center;
  padding: 0 8px;
  border-radius: 5px;
  background: #e7f4f3;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 950;
}

.plan:hover {
  border-color: var(--plan-accent);
  background: var(--plan-hover);
}

.plan.active,
.plan.member.active {
  border-color: var(--plan-accent);
  background: var(--plan-active-bg);
  box-shadow: 0 0 0 2px var(--plan-ring) inset, 0 4px 8px rgba(20, 54, 74, .12);
}

.plan.unavailable {
  opacity: .72;
  cursor: not-allowed;
  filter: saturate(.7);
}

.plan-unavailable {
  padding-top: 7px;
  border-top: 1px solid var(--plan-line);
  color: #6b3340;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.plan strong {
  color: var(--plan-strong);
  font-size: 18px;
  line-height: 1.2;
}

.plan-deal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
}

.plan-deal > b {
  color: var(--plan-strong);
  font-size: 18px;
}

.plan-deal > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.plan-credit {
  color: var(--coral);
  font-size: 14px;
  font-weight: 950;
}

.plan em {
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid var(--plan-pill-line);
  border-radius: 999px;
  background: var(--plan-pill-bg);
  color: var(--plan-pill-fg);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.plan-topline {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-fit {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-multiplier {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid var(--plan-accent);
  border-radius: 999px;
  background: var(--plan-accent);
  color: #f3f8ff;
  font-size: 12px;
  line-height: 1.2;
}

.plan-validity {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.4;
}

.plan-models {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.plan-models code {
  padding: 3px 6px;
  border: 1px solid #9bb9e6;
  border-radius: 5px;
  background: #f6faff;
  color: #244d83;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.plan-note {
  color: var(--plan-note);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.custom {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.custom.active {
  border-color: var(--teal);
  background: #e2f5ed;
  box-shadow: 0 0 0 2px rgba(12, 139, 120, .16) inset;
}

.custom.tab-hidden {
  display: none;
}

.custom-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.custom-head label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.custom-head small {
  color: var(--muted);
  font-size: 12px;
}

.custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.custom input {
  width: 100%;
  height: 44px;
  border: 1px solid #8cc8bb;
  border-radius: var(--radius);
  background: #f8fcff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.custom input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12, 139, 120, .16);
}

.custom button {
  min-width: 140px;
  height: 44px;
  border: 1px solid #064f49;
  border-radius: var(--radius);
  background: var(--teal-deep);
  color: #effbf8;
  cursor: pointer;
  font-weight: 950;
}

.custom.unavailable {
  border-color: #b7c5cb;
  background: #eef2f4;
}

.custom button:disabled,
.custom input:disabled {
  cursor: not-allowed;
  opacity: .72;
}

.custom-preview {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.custom-preview.warn {
  color: #b7432f;
  font-weight: 900;
}

.checkout-summary {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(110px, .7fr) minmax(160px, 1fr);
  gap: 8px 16px;
  align-items: start;
  margin-top: 12px;
  padding: 12px 2px;
  border-block: 1px solid #b7ccd3;
}

.checkout-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.checkout-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.checkout-summary strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.checkout-summary > div:nth-child(2) strong {
  color: var(--coral);
  font-size: 18px;
}

.checkout-summary p {
  grid-column: 1 / -1;
  max-width: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.methods {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.method {
  flex: 1;
  height: 44px;
  background: var(--surface-2);
  font-weight: 950;
}

.method.active[data-method="wechat"] {
  border-color: #064f49;
  color: #effbf8;
  background: var(--teal-deep);
}

.method.active[data-method="alipay"] {
  border-color: #24549b;
  color: #f3f8ff;
  background: var(--blue);
}

.primary,
.secondary {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  font-weight: 950;
}

.primary {
  border-color: #064f49;
  background: var(--teal-deep);
  color: #effbf8;
}

.secondary {
  border-color: var(--blue);
  background: #e8f2ff;
  color: #24549b;
}

.primary:disabled,
.secondary:disabled {
  opacity: .68;
  cursor: not-allowed;
  transform: none;
}

.link {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.order-meta {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.order-meta strong {
  color: var(--ink);
}

.qr {
  display: block;
  width: min(100%, 250px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 14px auto 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef8ff;
}

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 22px;
  max-width: 448px;
  margin: 0 auto;
  background: #14364a;
  color: #effbf8;
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
  z-index: 10;
}

.hidden {
  display: none !important;
}

@media (min-width: 981px) {
  .plans.tab-balance {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .plan[data-plan="vip_month_v4"],
  .plan[data-plan="svip_month_v4"],
  .plan[data-plan="vip_month_v3"],
  .plan[data-plan="svip_month_v3"] {
    grid-column: span 2;
  }

  .plan[data-plan="vip_quarter_v4"],
  .plan[data-plan="vip_quarter_v3"] {
    grid-column: 1 / -1;
    min-height: 112px;
  }

  .plans.tab-vip,
  .plans.tab-svip,
  .plans.tab-enterprise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plans.tab-coding {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plans.tab-vip .plan,
  .plans.tab-svip .plan,
  .plans.tab-coding .plan,
  .plans.tab-enterprise .plan {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .page {
    width: calc(100vw - 24px);
    padding-top: 12px;
  }

  .hero,
  #payApp,
  #payApp:has(#orderPanel:not(.hidden)),
  .account-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .account-grid,
  .pay-panel,
  #orderPanel {
    grid-area: auto;
  }

  #orderPanel {
    position: static;
  }

  .member-savings {
    grid-template-columns: 1fr;
  }

  .upgrade-benefit {
    grid-template-columns: 1fr;
  }

  .coding-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coding-status small {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .hero,
  .panel {
    padding: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .back {
    width: 100%;
  }

  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .plan-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-tabs .plan-tab:last-child {
    grid-column: 1 / -1;
  }

  .plan {
    min-height: 0;
    padding: 10px;
  }

  .plan strong {
    font-size: 16px;
  }

  .custom-row,
  .methods,
  .checkin-meta,
  .invite-stats {
    grid-template-columns: 1fr;
  }

  .methods {
    display: grid;
  }

  .custom button {
    width: 100%;
  }

  h1 {
    font-size: 28px;
  }

  .pricing-promise {
    flex-wrap: wrap;
  }

  .pricing-promise strong {
    order: -1;
    width: 100%;
  }

  .pricing-promise small {
    margin-left: 0;
  }

  .coding-status,
  .checkout-summary {
    grid-template-columns: 1fr;
  }

  .coding-status small,
  .checkout-summary p {
    grid-column: auto;
  }

  .member-tiers {
    grid-template-columns: 1fr;
  }

  .upgrade-benefit {
    padding: 12px;
    box-shadow: 3px 3px 0 #9bb8df;
  }

  .upgrade-tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .upgrade-tier,
  .upgrade-tier.tier-vip,
  .upgrade-tier.tier-svip,
  .upgrade-tier.tier-enterprise {
    min-height: 116px;
    border: 1px solid #aabed8;
    border-radius: 0;
  }

  .upgrade-tier.tier-svip {
    min-height: 132px;
    border: 2px solid #b45309;
  }

  .upgrade-tier:first-child {
    border-radius: 6px 0 0 0;
  }

  .upgrade-tier:nth-child(2) {
    border-radius: 0 6px 0 0;
  }

  .upgrade-tier:nth-child(3) {
    border-radius: 0 0 0 6px;
  }

  .upgrade-tier:last-child {
    border-radius: 0 0 6px 0;
  }

  .member-tier {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 9px 0;
    border-inline-start: 0;
    border-top: 1px solid #b5c9e5;
  }

  .member-tier > strong,
  .member-tier > small {
    margin-top: 0;
  }

  .member-tier > small {
    grid-column: 2;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 400px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }

  button:hover:not(:disabled) {
    transform: none;
  }
}
