/* App pages: page hero, list rows, forms, NFT detail, docs, modal, toasts. Same Corridor language as the home. */
.page { padding-top: 72px; }
.phero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.phero .glow { position: absolute; inset: 0; background: radial-gradient(55% 80% at 78% 40%, rgba(52,92,230,.28), rgba(5,8,23,0) 70%); pointer-events: none; }
.phero .in { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; padding: 96px var(--pad) 88px; display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 60px; align-items: center; min-height: 520px; }
.phero .t { display: grid; gap: 26px; align-content: start; }
.phero h1 { font-size: 80px; line-height: .95; letter-spacing: -.04em; font-weight: 400; }
.phero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.phero .vis { position: relative; height: 420px; }
.phero .vis .globe { position: absolute; inset: -40px; }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); max-width: 640px; }
.pstats > div { padding-top: 16px; display: grid; gap: 4px; } .pstats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.pstats .v { font-size: 26px; letter-spacing: -.02em; }

.block { padding: 96px 0; }
.bar-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 40px 0 18px; }
.seg2 { display: inline-flex; padding: 3px; border-radius: 3px; background: rgba(5,8,23,.5); box-shadow: inset 0 0 0 1px var(--line); }
.seg2 button { height: 36px; padding: 0 16px; border-radius: 2px; font-size: 14px; color: var(--muted); }
.seg2 button.on { background: rgba(76,125,255,.16); box-shadow: inset 0 0 0 1px rgba(76,125,255,.5); color: var(--text); }
.sel { height: 42px; padding: 0 36px 0 14px; border-radius: 3px; background: rgba(3,5,15,.7); border: 0; box-shadow: inset 0 0 0 1px var(--line2); font-size: 14px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }

.list { border-top: 1px solid var(--line); }
.lrow { display: grid; grid-template-columns: 44px minmax(0, 1.6fr) 1fr 1fr 1fr 120px 28px; align-items: center; gap: 16px; padding: 18px 8px; border-bottom: 1px solid var(--line); transition: background .2s; }
.lrow:hover { background: rgba(76,125,255,.05); }
.lrow .tk { width: 36px; height: 36px; border-radius: 3px; background: rgba(76,125,255,.14) center/cover; box-shadow: inset 0 0 0 1px var(--line2); display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--sky); overflow: hidden; }
.lrow .nm { font-size: 17px; letter-spacing: -.01em; } .lrow .nm small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dim); letter-spacing: 0; }
.lrow .c { font-size: 15px; } .lrow .c small { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.lrow .go { color: var(--muted); }
.lhead { display: grid; grid-template-columns: 44px minmax(0, 1.6fr) 1fr 1fr 1fr 120px 28px; gap: 16px; padding: 0 8px 10px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

.empty { position: relative; border-radius: 4px; background: linear-gradient(#0A1233, #070C22); box-shadow: inset 0 0 0 1px var(--line2); padding: 56px 48px; display: grid; gap: 20px; justify-items: start; overflow: hidden; }
.empty .glow { position: absolute; inset: 0; background: radial-gradient(60% 90% at 90% 100%, rgba(52,92,230,.3), rgba(5,8,23,0) 70%); pointer-events: none; }
.empty > * { position: relative; }
.empty h3 { font-size: 36px; font-weight: 400; letter-spacing: -.03em; line-height: 1.05; max-width: 640px; }
.empty p { max-width: 560px; }

.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.qcard { border-radius: 3px; background: linear-gradient(rgba(22,37,92,.5), rgba(9,16,44,.6)); box-shadow: inset 0 0 0 1px var(--line); padding: 26px; display: grid; gap: 12px; align-content: start; }
.qcard .n { display: flex; align-items: center; gap: 14px; font-size: 18px; letter-spacing: -.01em; }
.qcard p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* forms */
.formgrid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; margin-top: 48px; }
.fpanel { border-radius: 4px; background: linear-gradient(rgba(16,27,72,.85), rgba(8,14,40,.95)); box-shadow: inset 0 0 0 1px var(--line2), 0 40px 80px -40px rgba(0,0,0,.9); padding: 32px; display: grid; gap: 22px; }
.fpanel h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field .hint { font-size: 12.5px; color: var(--dim); line-height: 1.45; }
.field .hint.err { color: var(--red); } .field .hint.ok { color: var(--mint); }
.field .in2 { position: relative; } .field .in2 input { width: 100%; padding-right: 64px; } .field .in2 span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--dim); }
.field input { width: 100%; }
.tcheck { border-radius: 3px; background: rgba(3,5,15,.55); box-shadow: inset 0 0 0 1px var(--line); padding: 14px 16px; display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.tcheck .hd { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 15px; }
.tcheck .hd img, .tcheck .hd .tk { width: 30px; height: 30px; border-radius: 3px; background: rgba(76,125,255,.14); object-fit: cover; }
.tcheck ul { list-style: none; display: grid; gap: 4px; } .tcheck li { display: flex; gap: 8px; } .tcheck li::before { content: "·"; color: var(--dim); }
.tcheck li.bad { color: var(--red); } .tcheck li.good { color: var(--mint); }
.sumrows { border-top: 1px solid var(--line); }
.sumrows div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.sumrows b { color: var(--text); font-weight: 500; }
.btn.wide { width: 100%; justify-content: space-between; }
.btn[disabled], .btn.off { opacity: .55; pointer-events: none; filter: saturate(.6); }
.steps { display: grid; gap: 0; counter-reset: s; }
.steps li { list-style: none; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-size: 12px; color: var(--amber); padding-top: 3px; }
.steps li b { color: var(--text); font-weight: 500; display: block; }

/* ticket card (market + nft + mint preview) */
.tcard { position: relative; border-radius: 6px; background: linear-gradient(160deg, #1E3078 0%, #142260 46%, #0B1440 100%); box-shadow: inset 0 0 0 1px rgba(138,169,255,.28), 0 40px 80px -30px rgba(0,0,0,.9); overflow: hidden; }
.tcard .tp { padding: 20px 22px 18px; }
.tcard .row1 { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--soft); }
.tcard .big { margin-top: 14px; font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; word-break: break-word; }
.tcard .big small { font-size: 18px; font-weight: 500; color: var(--soft); letter-spacing: -.01em; }
.tcard .sub { margin-top: 6px; font-size: 13px; color: var(--soft); }
.tcard .perf { position: relative; border-top: 1px dashed rgba(138,169,255,.3); margin: 0 18px; }
.tcard .perf::before, .tcard .perf::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 18px; background: var(--bg); }
.tcard .perf::before { left: -28px; } .tcard .perf::after { right: -28px; }
.tcard .bt { padding: 18px 22px 0; }
.tcard .meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tcard .meta b { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; }
.tcard .foot { margin-top: 18px; padding: 12px 22px; background: rgba(5,8,23,.35); display: flex; justify-content: space-between; align-items: center; }

/* nft detail */
.detail { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 48px; align-items: start; }
.kv { border-top: 1px solid var(--line); }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.kv b { color: var(--text); font-weight: 500; text-align: right; word-break: break-all; }
.kv a { color: var(--sky); }

/* docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 104px; display: grid; gap: 2px; }
.toc a { padding: 8px 12px; border-radius: 2px; font-size: 14px; color: var(--muted); box-shadow: inset 2px 0 0 transparent; }
.toc a:hover, .toc a.on { color: var(--text); background: rgba(76,125,255,.08); box-shadow: inset 2px 0 0 var(--blue); }
.prose { max-width: 780px; }
.prose section { padding: 0 0 64px; scroll-margin-top: 100px; }
.prose h2 { font-size: 40px; font-weight: 400; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 20px; }
.prose h3 { font-size: 20px; font-weight: 500; letter-spacing: -.015em; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; margin-top: 10px; }
.prose code { font-family: var(--mono); font-size: 13px; color: #DCE3FF; background: rgba(76,125,255,.1); padding: 2px 6px; border-radius: 2px; }
.prose pre { margin-top: 14px; border-radius: 4px; background: linear-gradient(#0A1233, #070C24); box-shadow: inset 0 0 0 1px var(--line2); padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: #DCE3FF; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.prose th { text-align: left; font-weight: 400; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line2); }
.prose td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.prose td code { white-space: nowrap; }

/* modal + toast */
.veil { position: fixed; inset: 0; z-index: 90; background: rgba(2,4,12,.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: .2s; }
.veil.on { opacity: 1; pointer-events: auto; }
.modal { position: fixed; z-index: 91; left: 50%; top: 50%; width: min(420px, calc(100vw - 32px)); transform: translate(-50%, -46%); opacity: 0; pointer-events: none; transition: .25s cubic-bezier(.2,.7,.2,1); border-radius: 4px; background: linear-gradient(#0E1844, #080E2C); box-shadow: inset 0 0 0 1px var(--line2), 0 40px 100px rgba(0,0,0,.7); }
.modal.on { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.modal .mh { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal .mh b { font-size: 16px; font-weight: 600; }
.modal .x { width: 32px; height: 32px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line2); display: grid; place-items: center; color: var(--muted); }
.modal .wl { padding: 12px; display: grid; gap: 6px; }
.modal .wl button, .modal .wl a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; text-align: left; transition: background .2s; }
.modal .wl button:hover, .modal .wl a:hover { background: rgba(76,125,255,.1); }
.modal .wl img, .modal .wl .wi { width: 28px; height: 28px; border-radius: 6px; }
.modal .wl .arrow { margin-left: auto; color: var(--dim); }
.modal .acct { padding: 10px 4px; font-size: 12px; color: var(--muted); word-break: break-all; }
.modal .note { padding: 0 20px 18px; font-size: 13px; color: var(--dim); }
.note.err { color: var(--red); }
.toast { position: fixed; z-index: 95; right: 24px; bottom: 24px; max-width: 360px; padding: 14px 16px; border-radius: 3px; background: #0E1844; box-shadow: inset 0 0 0 1px var(--line2), 0 20px 50px rgba(0,0,0,.6); font-size: 14px; transform: translateY(12px); opacity: 0; transition: .25s; }
.toast.on { transform: none; opacity: 1; }

/* 404 */
.gate { position: relative; min-height: calc(100vh - 72px); overflow: hidden; display: grid; align-items: center; }
.gate .in { position: relative; z-index: 2; max-width: 1440px; width: 100%; margin: 0 auto; padding: 80px var(--pad); display: grid; gap: 24px; justify-items: start; }
.gate .globe { position: absolute; right: -180px; bottom: -320px; width: 820px; height: 820px; }

@media (max-width: 1100px) {
  .phero .in { grid-template-columns: 1fr; min-height: 0; padding: 72px var(--pad) 64px; }
  .phero .vis { height: 340px; }
  .formgrid, .detail, .docs { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .lrow, .lhead { grid-template-columns: 40px minmax(0, 1.4fr) 1fr 1fr 28px; } .lrow .hide-m, .lhead .hide-m { display: none; }
}
@media (max-width: 760px) {
  .page { padding-top: 64px; }
  .phero h1 { font-size: 46px; }
  .pstats { grid-template-columns: 1fr 1fr; row-gap: 16px; } .pstats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .qgrid, .frow { grid-template-columns: 1fr; }
  .lrow, .lhead { grid-template-columns: 36px minmax(0, 1fr) auto; } .lrow .hide-s, .lhead .hide-s { display: none; }
  .empty { padding: 36px 22px; } .empty h3 { font-size: 28px; }
  .fpanel { padding: 22px 18px; }
  .prose h2 { font-size: 32px; }
  .gate .globe { width: 560px; height: 560px; right: -200px; bottom: -220px; }
  .block { padding: 72px 0; }
}
.docs > *, .formgrid > *, .detail > * { min-width: 0; }
@media (max-width: 760px) { .prose table { display: block; overflow-x: auto; } }
.prose ul + p { margin-top: 14px; }
.phero .t .seg2 { justify-self: start; }
