/* money pages — MatDash horizontal language, loaded after app.css.
   Unlock checkout, unlock card, plans & purchases, credits, bank-transfer order, thank-you box, account.
   Payments: one clear price, one primary button, the rest folded. */

/* ---------- Shared pieces ---------- */
.pay-chip { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--md-primary-tint); color: var(--aura-color-brand-fg); }
.pay-chip .icon { width: 20px; height: 20px; }
.pay-chip.is-ok { background: var(--md-green-tint); color: var(--aura-color-status-healthy-fg); }
.pay-chip.is-amber { background: var(--md-amber-tint); color: var(--aura-color-status-attention-fg); }
.pay-no { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--md-primary-tint); color: var(--aura-color-brand-fg); font: 800 13px var(--aura-font-family-display); }
.pay-aside { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; font-size: 14px; color: var(--aura-color-text-muted); }
.pay-aside .icon { width: 16px; height: 16px; color: var(--aura-color-brand-fg); }

/* Cards on these pages: white, borderless, soft MatDash shadow, 14px corners */
.unlock-page .card, .money-page .card, .order-page .card, .account-page .card, .unlock-card {
  border: 0; box-shadow: var(--md-shadow); border-radius: 14px !important; background: var(--aura-color-bg-surface);
}

/* A folded section: a quiet row that opens */
.money-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14.5px; color: var(--aura-color-text-heading); }
.money-fold > summary::-webkit-details-marker { display: none; }
.money-fold > summary .chev { width: 18px; height: 18px; color: var(--aura-color-text-subtle); transition: transform var(--aura-duration-fast); }
.money-fold[open] > summary .chev { transform: rotate(180deg); }
.card.money-fold { padding: 0; margin-top: 16px; }
.card.money-fold > summary { padding: 16px 22px; }
.order-sub { padding: 4px 22px 22px; }

/* ---------- Unlock checkout ---------- */
.unlock-page .notice .btn { justify-self: start; }
.unlock-page, .shell-content > .unlock-page { max-width: 960px; margin-inline: auto; }
.unlock-page .page-head { margin-bottom: 20px; }
.pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 20px; align-items: start; }
.pay-summary { order: 2; position: sticky; top: 20px; display: grid; gap: 16px; padding: 24px; }
.pay-main { order: 1; min-width: 0; }
.pay-main .notice { margin-bottom: 0; }
.pay-label { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--aura-color-text-subtle); }
.pay-item { display: flex; align-items: center; gap: 12px; }
.pay-item > span:last-child { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.pay-item b { font: 700 17px/1.25 var(--aura-font-family-display); color: var(--aura-color-text-heading); overflow-wrap: anywhere; }
.pay-gets { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14px; color: var(--aura-color-text-muted); }
.pay-gets .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--aura-color-status-healthy-fg); }
.pay-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.pay-total > span { display: grid; gap: 2px; font-weight: 600; color: var(--aura-color-text-heading); }
.pay-total small { font-weight: 400; font-size: 13px; color: var(--aura-color-text-muted); }
.pay-total b { font: 800 34px/1 var(--aura-font-family-display); letter-spacing: -.03em; color: var(--aura-color-text-heading); font-variant-numeric: tabular-nums; }
.pay-fine { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--aura-color-text-subtle); }

.pay-form { display: grid; gap: 22px; padding: 26px; }
.pay-form > form { margin: 0; }
.pay-step { display: grid; gap: 12px; }
.pay-step .card-title, .order-step .card-title { display: flex; align-items: center; gap: 10px; margin: 0; }
.pay-form .unlock-code { margin: 0; }
.pay-go { width: 100%; justify-content: center; min-height: 54px; font-size: 16px; }
.pay-who { margin: -10px 0 0; text-align: center; font-size: 13px; color: var(--aura-color-text-muted); }
.unlock-code summary { color: var(--aura-color-brand-fg); }

/* ---------- Unlock card (project, step and files pages) ---------- */
.unlock-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 24px 26px; }
.unlock-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--md-primary-tint); color: var(--aura-color-brand-fg); }
.unlock-ico .icon { width: 22px; height: 22px; }
.unlock-card .unlock-eyebrow { margin: 0 0 2px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--aura-color-text-muted); }
.unlock-card h2 { font-size: 20px; margin: 0 0 10px; }
.unlock-card .unlock-list { gap: 6px; }
.unlock-card .unlock-list li { font-size: 14.5px; }
.unlock-card .unlock-side { align-self: center; min-width: 210px; max-width: 280px; gap: 6px; }
.unlock-card .unlock-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0 0 4px; }
.unlock-card .unlock-price b { font-size: 32px; }

/* ---------- Plans & purchases, credits ---------- */
.money-page .page-head { margin-bottom: 20px; }
.money-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 20px; align-items: start; }
.buy-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.buy-rows li { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.buy-rows li + li { border-top: 1px solid var(--hairline); }
.buy-row-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.buy-row-text b { font-size: 15px; font-weight: 600; color: var(--aura-color-text-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-row-text small { font-size: 13px; color: var(--aura-color-text-muted); }
.buy-rows .buy-empty { color: var(--aura-color-text-muted); font-size: 14.5px; }
.money-pass { display: grid; gap: 14px; }
.money-pass-head { display: flex; align-items: center; gap: 12px; }
.money-pass-head .card-title { flex: 1; margin: 0; }
.money-pass form { margin: 0; }
.money-pass .muted { margin: 0; font-size: 14.5px; }
.money-big { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.money-big b { font: 800 40px/1 var(--aura-font-family-display); letter-spacing: -.03em; color: var(--aura-color-text-heading); font-variant-numeric: tabular-nums; }
.money-big span { font-size: 15px; color: var(--aura-color-text-muted); }
.money-go { width: 100%; justify-content: center; }
.money-pass .money-fold { padding-top: 14px; border-top: 1px solid var(--hairline); }
.money-pass .money-fold > summary { font-size: 14px; color: var(--aura-color-text-muted); }
.money-prices { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--aura-color-text-muted); }
.money-prices li { display: flex; justify-content: space-between; gap: 12px; }
.money-prices b { flex: none; color: var(--aura-color-text-heading); }
.cur-switch { margin: 0; font-size: 13px; }
.cur-switch a { color: var(--aura-color-text-muted); text-decoration: underline; text-underline-offset: 3px; }
.cur-switch a:hover { color: var(--aura-color-brand-fg); }
.credits-page.money-page .credits-how { border: 0; box-shadow: var(--md-shadow); border-radius: 14px; }

/* ---------- Bank-transfer order ---------- */
.order-page .page-head { margin-bottom: 20px; }
.order-status { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; }
.order-page .page-head h1 { font-size: var(--type-page); }
.order-page > .card + .card, .order-page > .notice + .card { margin-top: 16px; }
.order-step { display: grid; gap: 16px; }
.order-page .notice { margin-bottom: 16px; }
.bank-sheet { display: grid; margin: 0; border-radius: 12px; background: var(--aura-color-bg-canvas); overflow: hidden; }
.bank-sheet > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.bank-sheet > div + div { border-top: 1px solid var(--hairline); }
.bank-sheet dt { font-size: 13.5px; color: var(--aura-color-text-muted); }
.bank-sheet dd { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; text-align: right; font-weight: 600; font-size: 14.5px; color: var(--aura-color-text-heading); overflow-wrap: anywhere; }
.bank-sheet .is-key dd code { font: 700 17px var(--aura-font-family-mono, ui-monospace, monospace); letter-spacing: .03em; color: var(--aura-color-text-heading); background: none; padding: 0; }
.bank-amount { font: 800 22px var(--aura-font-family-display); letter-spacing: -.02em; }
.bank-sheet .btn .icon { width: 15px; height: 15px; }
.bank-sheet .btn.copied { border-color: var(--aura-color-status-healthy-fg); color: var(--aura-color-status-healthy-fg); }
.order-step .hint { margin: 0; }
.order-step .unlock-code summary { font-size: 14px; }
.order-go { min-width: 220px; justify-content: center; }
.order-done { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 14px; align-items: start; }
.order-done > .pay-chip { grid-row: span 3; }
.order-done > :not(.pay-chip) { grid-column: 2; justify-self: start; }
.order-done p { margin: 0; font-size: 15.5px; color: var(--aura-color-text-default); }
.order-done .hint { margin-top: -6px; }
.order-fold .order-step { padding: 8px 22px 22px; }
.order-fold .order-step + .order-step { border-top: 1px solid var(--hairline); padding-top: 20px; }
.order-page .track { margin-top: 8px; }

/* ---------- Thank-you box ---------- */
.thanks-what { margin: -6px 0 18px; font-size: 14.5px; color: var(--aura-color-text-muted); }

/* ---------- Account ---------- */
.account-who { display: flex; align-items: center; gap: 16px; }
.account-avatar { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--md-primary-tint); color: var(--aura-color-brand-fg); font: 800 22px var(--aura-font-family-display); }
.account-who .lead-sm { margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-page .page-head h1 { font-size: var(--type-page); }
.set-card { display: grid; gap: 18px; }
.account-page > .card + .card { margin-top: 16px; }
.set-head { display: flex; align-items: flex-start; gap: 14px; }
.set-head .card-title { margin: 0 0 4px; }
.set-head .muted { margin: 0; font-size: 14.5px; }
.set-card form { margin: 0; }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .pay-layout, .money-grid { grid-template-columns: minmax(0, 1fr); }
  .pay-summary { order: 0; position: static; }
  .unlock-card { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; gap: 14px; }
  .unlock-ico { display: none; }
  .unlock-card .unlock-side { min-width: 0; }
  .unlock-card .unlock-price { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .pay-form { padding: 20px 18px; }
  .pay-summary { padding: 20px 18px; }
  .buy-rows li { flex-wrap: wrap; }
  .buy-rows .buy-row-text { flex-basis: 100%; }
  .bank-sheet > div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bank-sheet dd { justify-content: flex-start; text-align: left; }
  .order-go { width: 100%; }
  .account-avatar { width: 46px; height: 46px; font-size: 18px; }
}
/* Line the checkout up with the page frame (and the project tabs above it) */
.unlock-page, .shell-content > .unlock-page { margin-left: 0; margin-right: auto; }

/* One page width everywhere: the checkout fills the frame like the project and step pages (see the end of wizard.css) */
.unlock-page, .shell-content > .unlock-page { max-width: none; margin-left: 0; margin-right: 0; }
