/* Server-rendered pages on top of /ui/ui.css: payment page, status pages, entry page, demo shop. */

body.page { min-height: 100vh; min-height: 100dvh; }
.center { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: var(--s6); padding: var(--s6) var(--s4); }
.mark.sm { width: 20px; height: 20px; font-size: 12px; border-radius: 22.5%; box-shadow: none; }
.powered { display: inline-flex; align-items: center; gap: 7px; color: var(--label-2); font: 600 13px/1 var(--font); letter-spacing: -.01em; }
.powered:hover { color: var(--label); text-decoration: none; }

/* ───────── status pages (paid, expired, not found) ───────── */
.status-card { width: min(420px, 92vw); padding: var(--s10) var(--s8) var(--s8); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-card); text-align: center; display: grid; gap: var(--s3); justify-items: center; }
.status-card h1 { font-size: 26px; }
.status-card p { max-width: 32ch; }
.status-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--s2); background: var(--fill-3); }
.status-ico::after { content: ""; width: 30px; height: 30px; background: var(--label-2); -webkit-mask: var(--i-clock) center / contain no-repeat; mask: var(--i-clock) center / contain no-repeat; }
.status-ico.ok { background: color-mix(in srgb, var(--green) 18%, transparent); animation: pop .6s var(--ease-bounce); }
.status-ico.ok::after { background: var(--green-text); -webkit-mask-image: var(--i-check); mask-image: var(--i-check); }
.status-ico.bad { background: color-mix(in srgb, var(--red) 15%, transparent); }
.status-ico.bad::after { background: var(--red-text); -webkit-mask-image: var(--i-x); mask-image: var(--i-x); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ───────── payment page: an Apple Pay-style sheet ───────── */
.checkout { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: var(--s5); padding: var(--s6) var(--s4); }
.sheet { width: min(440px, 94vw); padding: var(--s6); border-radius: var(--r-sheet); background: var(--surface); box-shadow: var(--shadow-pop); display: grid; gap: var(--s4); animation: sheet-in .5s var(--ease); }
.payee { display: flex; align-items: center; gap: var(--s3); }
.payee b { display: block; font: 600 17px/1.25 var(--font-display); letter-spacing: -.02em; }
.payee small { display: block; font-size: 13px; color: var(--label-2); }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 22.5%; display: grid; place-items: center; color: #fff; font: 700 20px/1 var(--font-rounded); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.avatar.a0 { background: #FF9500; } .avatar.a1 { background: #34C759; } .avatar.a2 { background: #007AFF; } .avatar.a3 { background: #5856D6; }
.avatar.a4 { background: #AF52DE; } .avatar.a5 { background: #FF2D55; } .avatar.a6 { background: #30B0C7; } .avatar.a7 { background: #F94603; }
.hero { display: grid; gap: 4px; margin-top: var(--s2); }
.amount { font: 700 46px/1.05 var(--font-rounded); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.desc { font-size: 15px; color: var(--label-2); }
.rows { margin: 0; border-radius: var(--r-md); background: var(--surface-2); padding: 0 var(--s4); }
.rows div { display: flex; justify-content: space-between; gap: var(--s4); padding: 12px 0; border-bottom: .5px solid var(--separator); font-size: 15px; }
.rows div:last-child { border-bottom: 0; }
.rows dt { color: var(--label-2); }
.rows dd { margin: 0; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: 2px 2px 0; font: 600 17px/1.3 var(--font); letter-spacing: -.015em; }
.total small { display: block; font: 400 13px/1.3 var(--font); color: var(--label-2); }
.total b { font: 700 17px/1.3 var(--font-rounded); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-go { min-height: 54px; font-size: 17px; }
.secure { display: flex; gap: var(--s2); align-items: flex-start; font-size: 12px; color: var(--label-2); line-height: 1.45; }
.ico-mask.shield { --i: var(--i-shield); width: 16px; height: 16px; margin-top: 1px; color: var(--green-text); }
@media (max-width: 520px) {
  .checkout { place-content: end center; padding: var(--s4) 0 0; }
  .sheet { width: 100vw; border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: var(--s6) var(--s5) calc(var(--s6) + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .08); }
  .checkout .powered { order: -1; margin-bottom: auto; }
  .amount { font-size: 42px; }
}

/* ───────── entry page (pay.rubrek.com) ───────── */
.home-in { width: min(560px, 92vw); margin: 0 auto; padding: 12vh 0 var(--s10); display: grid; gap: var(--s4); justify-items: center; text-align: center; }
.home-in h1 { font-size: 40px; letter-spacing: -.03em; margin-top: var(--s2); }
.lead { font-size: 19px; line-height: 1.4; color: var(--label-2); max-width: 36ch; letter-spacing: -.015em; }
.list { width: 100%; margin-top: var(--s4); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; text-align: left; }
.row-link { display: flex; align-items: center; gap: var(--s3); padding: 12px var(--s4); color: var(--label); position: relative; }
.row-link + .row-link::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; border-top: .5px solid var(--separator); }
.row-link:hover { background: var(--fill-4); text-decoration: none; }
.row-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); }
.row-ico::after { content: ""; width: 20px; height: 20px; background: #fff; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.row-ico.cart { --i: var(--i-cart); background: #34C759; } .row-ico.store { --i: var(--i-store); background: #F94603; }
.row-ico.people { --i: var(--i-people); background: #5856D6; } .row-ico.shield { --i: var(--i-shield); background: #8E8E93; }
.row-ico.bolt { --i: var(--i-bolt); background: #FF9500; } .row-ico.code { --i: var(--i-code); background: #007AFF; }
.row-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row-txt b { font: 500 16px/1.25 var(--font); letter-spacing: -.015em; }
.row-txt span { font-size: 13px; color: var(--label-2); }
.chev { flex: none; width: 8px; height: 13px; background: var(--label-3); transform: scaleX(-1); -webkit-mask: var(--i-chev-left) center / contain no-repeat; mask: var(--i-chev-left) center / contain no-repeat; }
.foot { font-size: 13px; margin-top: var(--s6); }

/* payment page: on a computer, the same page on a phone by QR */
.phone-pay { display: flex; gap: var(--s4); align-items: center; padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); }
.phone-pay img { flex: none; width: 104px; height: 104px; border-radius: 10px; background: #fff; }
.phone-pay p { display: grid; gap: 4px; font-size: 13px; color: var(--label-2); }
.phone-pay b { font: 600 15px/1.3 var(--font); color: var(--label); }
@media (max-width: 720px), (pointer: coarse) { .phone-pay { display: none; } }
