/* Moth Pass page */
.pass { position: relative; z-index: 3; width: min(1180px, 100% - 2 * var(--pad)); margin: 0 auto; padding: 104px 0 80px; }
.pass-hero { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.pass-title {
  font-family: var(--display); font-weight: 400; margin: 8px 0 18px; line-height: .9; letter-spacing: -.02em;
  font-size: clamp(64px, 13vw, 168px);
  background: linear-gradient(180deg, #fff 0%, #e6e6ec 30%, #8d8d96 47%, #2f2f36 52%, #c9c9d2 66%, #fff 80%, #a6a6ae 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pass-title em { font-style: italic; letter-spacing: -.04em; }
.pass-lead { color: var(--ink-2); font-size: 17px; max-width: 600px; margin: 0 auto; }
.pass-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; text-align: left; border-top: 1px solid var(--line); }
.pass-steps li { min-width: 0; padding: 18px 18px 0; border-left: 1px solid var(--line); }
.pass-steps li:first-child { border-left: 0; }
.pass-steps span { font-family: var(--display); font-style: italic; color: var(--amber); font-size: 22px; }
.pass-steps b { display: block; margin: 4px 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pass-steps p { margin: 0; color: var(--ink-2); font-size: 14px; }

.pass-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pass-body-in { padding: 20px; display: grid; gap: 14px; }
.badge.warn i { background: var(--danger); }

.btn {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
  cursor: pointer; font-size: 13px; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover:not(:disabled) { background: var(--ink); color: #0a0a0a; }
.btn.primary { background: var(--amber); color: #140d02; border-color: var(--amber); font-weight: 600; }
.btn.primary:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.wide { width: 100%; }

.wallet-list { display: grid; gap: 8px; }
.wallet-list .btn { display: flex; justify-content: space-between; align-items: center; border-radius: 14px; }
.note-s { margin: 0; color: var(--ink-2); font-size: 13px; }
.kv-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv-row dt { color: var(--mute); }
.kv-row dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kv-list { margin: 0; }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 20px; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper input { width: 80px; height: 44px; text-align: center; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); font-size: 18px; font-variant-numeric: tabular-nums; }
.stepper input:focus-visible, .stepper button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.total { border: 1px solid rgba(233,196,106,.4); background: rgba(233,196,106,.07); border-radius: 16px; padding: 14px 16px; }
.total b { display: block; font-family: var(--display); font-size: clamp(24px, 4vw, 32px); font-weight: 400; line-height: 1.1; overflow-wrap: anywhere; }
.total p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }

.timeline { list-style: none; margin: 0 20px 6px; padding: 0; counter-reset: s; }
.timeline li { counter-increment: s; position: relative; padding: 8px 0 8px 36px; color: var(--mute); font-size: 14px; }
.timeline li::before { content: counter(s); position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 11px; }
.timeline li.active { color: var(--ink); }
.timeline li.active::before { border-color: var(--amber); color: var(--amber); }
.timeline li.done { color: var(--ink-2); }
.timeline li.done::before { content: "\2713"; background: var(--ok); border-color: var(--ok); color: #0a0a0a; }
.timeline li.failed::before { content: "!"; background: var(--danger); border-color: var(--danger); color: #0a0a0a; }

.pass-msg { padding: 0 20px 18px; font-size: 14px; }
.pass-msg:empty { display: none; }
.pass-msg .err { color: var(--danger); margin: 0; }
.pass-msg .ok { color: var(--ok); margin: 0; }
.receipt { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 6px; }
.receipt a { color: var(--amber); overflow-wrap: anywhere; }

.pass-count { flex-wrap: wrap; margin: 0; display: flex; align-items: baseline; gap: 12px; }
.pass-count span { font-family: var(--display); font-size: clamp(64px, 10vw, 110px); line-height: .9; }
.pass-count small { color: var(--mute); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.unlocks { list-style: none; margin: 0; padding: 0; }
.unlocks li { flex-wrap: wrap; display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.unlocks li b { color: var(--ink); font-weight: 600; }
.unlocks span { color: var(--amber); }
.unlocks .soon { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.pass-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.warn-box { margin: 0; padding: 12px 14px; border-left: 2px solid var(--ember); background: rgba(255,107,44,.07); border-radius: 0 10px 10px 0; font-size: 13px; color: var(--ink-2); }
.disabled-box { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; }
.disabled-box h3 { margin: 0 0 6px; font-size: 15px; }
.disabled-box p { margin: 0; color: var(--ink-2); font-size: 14px; }

.sk { height: 18px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.12), rgba(255,255,255,.05)); background-size: 200% 100%; animation: skel 1.4s linear infinite; }
.sk.short { width: 55%; }
@keyframes skel { to { background-position: -200% 0; } }

.pass-notes { margin-top: 18px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.pass-notes article { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: rgba(10,10,10,.6); }
.pass-notes article p:last-child { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.pass-foot { text-align: center; margin-top: 32px; }
.pass-foot a { color: var(--amber); }

@media (max-width: 1024px) and (min-width: 641px) { .pass-steps li { padding: 16px 12px 0; } }
@media (max-width: 900px) {
  .pass-grid, .pass-notes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pass-steps { grid-template-columns: 1fr; }
  .pass-steps li { border-left: 0; border-bottom: 1px solid var(--line); padding: 16px 4px; }
  .pass-actions .btn { flex: 1 1 100%; }
  .pass .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.step-detail { margin: 0 20px 10px; min-height: 1em; text-transform: none; letter-spacing: 0; font-size: 13px; }
.step-detail:empty { display: none; }

/* ---------- shared control repair ---------- */
/* style.css fixes .btn at height:40px; pass/tools/workspace use min-height:44px. Let content define height and centre labels so links and buttons match. */
.pass .btn { height: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; text-decoration: none; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; max-width: 100%; white-space: normal; }
.pass .btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.pass .panel { min-width: 0; }
.pass .panel-head { flex-wrap: wrap; row-gap: 8px; }
.pass-grid > *, .pass-notes > * { min-width: 0; }
.kv-row { min-width: 0; }
.kv-row dt { flex: none; }
.stepper { flex-wrap: wrap; }
.pass .timeline li { display: block; }
.pass .wallet-list .btn { justify-content: space-between; text-align: left; }
