/* order + track pages (loaded after style.css) */
.page { min-height: 100vh; padding: 110px max(16px, calc((100% - 1080px) / 2)) 60px; position: relative; z-index: 1; }
.page::before { content: ''; position: fixed; inset: 0; z-index: -1; background: radial-gradient(50% 50% at 50% 20%, rgba(124, 58, 237, .25), transparent 70%); }
.page-head { text-align: center; margin-bottom: 30px; }
.page-head h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; font-style: italic; line-height: 1.15; }
.page-head p { color: var(--muted); }
.order-id { display: inline-block; margin-top: 8px; padding: 4px 14px; border-radius: 99px; border: 1px solid var(--line); font-family: ui-monospace, monospace; letter-spacing: 1px; color: var(--neon); }

.stepper { display: flex; justify-content: center; gap: 0; margin: 0 auto 34px; max-width: 760px; }
.stepper li { list-style: none; flex: 1; text-align: center; position: relative; font-size: 13px; color: var(--muted); }
.stepper li::before { content: attr(data-n); display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 8px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font-weight: 800; position: relative; z-index: 1; transition: all .4s; }
.stepper li::after { content: ''; position: absolute; top: 19px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.stepper li:first-child::after { display: none; }
.stepper li.done::before { content: '✓'; background: var(--purple); border-color: var(--purple-2); color: #fff; }
.stepper li.done::after, .stepper li.now::after { background: var(--purple-2); }
.stepper li.now { color: var(--text); }
.stepper li.now::before { border-color: var(--volt); color: var(--volt); box-shadow: 0 0 0 6px rgba(196, 255, 61, .12); animation: nowPulse 1.6s infinite; }
@keyframes nowPulse { 50% { box-shadow: 0 0 0 12px rgba(196, 255, 61, 0); } }

.order-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
.card { border-radius: 24px; background: var(--card); border: 1px solid var(--line); padding: 24px; }
.card h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }

.qr-card { padding: 0; overflow: hidden; text-align: center; }
.qr-top { background: #0e3d6b; padding: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; letter-spacing: .5px; }
.qr-top .tq { background: #fff; color: #0e3d6b; border-radius: 6px; padding: 2px 8px; font-size: 13px; }
.qr-top .ppbadge { background: #fff; color: #0e3d6b; border-radius: 6px; padding: 1px 8px; font-size: 15px; font-weight: 600; border: 2px solid #0e3d6b; outline: 2px solid #fff; }
.qr-top .ppbadge b { font-weight: 900; font-style: italic; }
.ship-note { margin: 14px 0; font-size: 14px; color: var(--muted); }
.btn-line { color: #fff; }
.qr-body { padding: 24px; display: grid; justify-items: center; gap: 12px; }
.qr-box { background: #fff; padding: 14px; border-radius: 18px; position: relative; box-shadow: 0 0 0 6px rgba(167, 139, 250, .2), 0 20px 50px -20px var(--purple-2); }
.qr-box img { display: block; width: 240px; height: 240px; image-rendering: pixelated; -webkit-touch-callout: default; }
.qr-box::after { pointer-events: none; content: ''; position: absolute; left: 14px; right: 14px; top: 14px; height: 3px; background: var(--volt); box-shadow: 0 0 14px var(--volt); animation: scan 2.4s ease-in-out infinite; border-radius: 3px; }
@keyframes scan { 50% { top: calc(100% - 17px); } }
.amount { font-size: 46px; font-weight: 900; font-style: italic; line-height: 1; }
.acct { color: var(--muted); font-size: 14px; }
.timer { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 99px; background: rgba(255, 85, 119, .12); color: #ff8fa6; font-weight: 600; font-variant-numeric: tabular-nums; }
.qr-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.qr-actions .btn { padding: 10px 18px; font-size: 15px; }

.drop { border: 2px dashed var(--line); border-radius: 18px; padding: 26px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; display: grid; gap: 8px; justify-items: center; }
.drop:hover, .drop.drag { border-color: var(--neon); background: rgba(167, 139, 250, .06); }
.drop svg { width: 40px; height: 40px; stroke: var(--neon); fill: none; stroke-width: 2; }
.drop img { max-height: 260px; border-radius: 12px; }
.drop small { color: var(--muted); }

.state { text-align: center; padding: 34px 24px; display: grid; gap: 12px; justify-items: center; }
.state .big-ico { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 44px; background: rgba(124, 58, 237, .2); border: 2px solid var(--purple-2); position: relative; }
.state .big-ico::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--purple-2); animation: pulse 1.8s infinite; }
.state.ok .big-ico { background: rgba(196, 255, 61, .15); border-color: var(--volt); }
.state.ok .big-ico::after { border-color: var(--volt); }
.state.bad .big-ico { background: rgba(255, 85, 119, .12); border-color: var(--danger); }
.state.bad .big-ico::after { display: none; }
.state h2 { font-size: 26px; font-weight: 800; }
.state p { color: var(--muted); max-width: 420px; }
.tracking { font-family: ui-monospace, monospace; font-size: 20px; padding: 8px 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }

.sum-items { list-style: none; display: grid; gap: 10px; margin-bottom: 14px; }
.sum-items li { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; }
.sum-items img { width: 54px; height: 54px; object-fit: contain; background: var(--bg-2); border-radius: 12px; padding: 4px; }
.sum-items small { color: var(--muted); display: block; }
.ship-to { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); white-space: pre-line; }
.ship-to b { color: var(--text); }
.history { list-style: none; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.history li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; }
.history li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--purple-2); margin-top: 6px; }
.history time { color: var(--muted); font-size: 12px; display: block; }

.track-card { max-width: 460px; margin: 0 auto; display: grid; gap: 14px; }
.track-card label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }

.zap-burst { position: fixed; inset: 0; pointer-events: none; z-index: 400; }

@media (max-width: 860px) {
  .order-grid { grid-template-columns: 1fr; }
  .stepper li { font-size: 11px; }
  .stepper li::before { width: 32px; height: 32px; }
  .stepper li::after { top: 16px; }
}
