/* Payment + ticket UI (site dialog, mini app, ticket page) */
.ord { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ord > * { min-width: 0; }

.ord-steps { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ord-steps li { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ord-steps li:not(:last-child)::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ord-steps i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 0.7rem; border: 1px solid var(--line); background: rgba(255,255,255,0.04); }
.ord-steps li.on { color: #fff; }
.ord-steps li.on i { background: var(--grad); border-color: transparent; box-shadow: 0 0 16px rgba(255, 79, 216, 0.7); }
.ord-steps li.done i { background: rgba(77, 255, 181, 0.15); border-color: rgba(77, 255, 181, 0.6); color: #9dffd0; }
@media (max-width: 380px) { .ord-steps span { display: none; } }

.ord-sum { display: grid; justify-items: center; gap: 2px; text-align: center; padding: 6px 0; }
.ord-label { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.ord-amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.05; text-shadow: 0 0 30px rgba(139, 92, 246, 0.8); }
.ord-sub { font-size: 0.82rem; color: var(--muted); }
.ord-id { color: #fff; font-weight: 700; letter-spacing: 0.06em; }

/* bank card */
.bank-card {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 18px; padding: 20px 22px; border-radius: 20px; aspect-ratio: 1.75;
  width: 100%; max-width: 420px; justify-self: center; align-content: space-between; box-sizing: border-box;
  background: linear-gradient(135deg, #2a1470 0%, #5b21b6 45%, #be185d 100%);
  box-shadow: 0 24px 60px -24px rgba(177, 76, 255, 0.9), inset 0 0 0 1px rgba(255,255,255,0.18), inset 0 1px 0 rgba(255,255,255,0.35);
}
.bc-glow { position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent, rgba(89, 225, 255, 0.35), transparent 30%, rgba(255, 211, 110, 0.25), transparent 60%); animation: bc-spin 9s linear infinite; }
@keyframes bc-spin { to { transform: rotate(360deg); } }
.bc-top { display: flex; justify-content: space-between; align-items: center; }
.bc-bank { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; opacity: 0.9; }
.bc-chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #ffe7a8, #c99a2e 55%, #ffe7a8); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2); }
.bc-num { all: unset; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: clamp(0.95rem, 4.4vw, 1.45rem); letter-spacing: 0.05em; text-shadow: 0 2px 10px rgba(0,0,0,0.35); white-space: nowrap; }
.bc-num.copied { color: #9dffd0; }
.bc-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.bc-bottom small { display: block; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; }
.bc-bottom b { font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; }
.bc-copy { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4); background: rgba(0,0,0,0.2); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; cursor: pointer; backdrop-filter: blur(6px); }
.bc-copy svg, .copy-sm svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bc-copy.copied { background: rgba(77, 255, 181, 0.25); border-color: #4dffb5; }

.ord-rows { display: grid; gap: 8px; }
.ord-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: rgba(10, 6, 34, 0.6); border: 1px solid var(--line); }
.ord-row span { font-size: 0.75rem; color: var(--muted); }
.ord-row b { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.04em; }
.copy-sm { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: #fff; cursor: pointer; }
.copy-sm.copied { border-color: #4dffb5; color: #9dffd0; }
.ord-note { margin: 0; font-size: 0.85rem; color: #ddd5ff; text-align: center; }
.ord-warn { padding: 14px 16px; border-radius: 14px; background: rgba(255, 196, 79, 0.1); border: 1px solid rgba(255, 196, 79, 0.4); color: #ffe2a3; font-size: 0.9rem; }
.ord-warn.big { display: grid; gap: 6px; text-align: center; padding: 26px 18px; }

.ord-upload { display: grid; gap: 12px; padding-top: 16px; border-top: 1px dashed rgba(200, 170, 255, 0.3); }
.ord-h { margin: 0; font-weight: 700; text-align: center; }
.drop {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 16px; text-align: center; cursor: pointer; border-radius: 18px;
  border: 1.5px dashed rgba(200, 170, 255, 0.45); background: rgba(139, 92, 246, 0.08); transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.drop:hover, .drop.over { border-color: var(--magenta); background: rgba(255, 79, 216, 0.1); }
.drop.over { transform: scale(1.02); }
.drop.has-file { border-style: solid; border-color: rgba(77, 255, 181, 0.6); background: rgba(77, 255, 181, 0.07); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 24px rgba(177, 76, 255, 0.7); }
.drop.has-file .drop-ico { background: linear-gradient(135deg, #1fbf8f, #4dffb5); box-shadow: 0 0 24px rgba(77, 255, 181, 0.6); }
.drop-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop-t { font-size: 0.95rem; overflow-wrap: anywhere; }
.drop-s { color: var(--muted); font-size: 0.78rem; }
.ord-send { width: 100%; }
.ord-send.loading { pointer-events: none; }
.ord-send.loading::after { content: ''; width: 16px; height: 16px; margin-left: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: bc-spin 0.8s linear infinite; }
.ord-link { margin: 0; font-size: 0.78rem; color: var(--muted); text-align: center; }
.ord-link a { color: #e3d8ff; }

/* ticket */
.tk {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 12px; padding: 22px 20px 20px; border-radius: 24px;
  width: 100%; max-width: 380px; justify-self: center;
  background: radial-gradient(120% 70% at 50% 0%, rgba(139, 92, 246, 0.45), transparent 60%), linear-gradient(180deg, #1d0f52, #0c0628);
  box-shadow: 0 30px 80px -30px rgba(177, 76, 255, 0.95), inset 0 0 0 1px rgba(200, 170, 255, 0.3);
  animation: tk-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes tk-in { from { opacity: 0; transform: translateY(30px) rotateX(20deg) scale(0.95); } }
.tk-shine { position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.12) 48%, transparent 60%); transform: translateX(-100%); animation: tk-shine 5s ease-in-out infinite 1s; }
@keyframes tk-shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.tk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tk-brand { font-family: var(--font-display); font-weight: 800; font-size: 0.7rem; letter-spacing: 0.24em; }
.tk-brand i { font-style: normal; color: var(--magenta); }
.tk-status { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(77, 255, 181, 0.14); color: #9dffd0; border: 1px solid rgba(77, 255, 181, 0.45); }
.tk.used .tk-status { background: rgba(255, 79, 120, 0.14); color: #ffa3b8; border-color: rgba(255, 79, 120, 0.45); }
.tk-title { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1; text-transform: uppercase; text-shadow: 0 0 24px rgba(139, 92, 246, 0.9); }
.tk-meta { display: grid; grid-template-columns: auto auto 1fr; gap: 16px; }
.tk-meta small { display: block; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.tk-meta b { font-size: 1rem; }
.tk-addr { margin: -4px 0 0; font-size: 0.8rem; color: #ddd5ff; }
.tk-table { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 211, 110, 0.1); border: 1px solid rgba(255, 211, 110, 0.45); }
.tk-table b { font-family: var(--font-display); font-size: 0.95rem; text-transform: uppercase; color: #ffe6a8; }
.tk-table small { margin-left: auto; color: var(--muted); font-size: 0.75rem; }
.tk-cut { position: relative; height: 1px; margin: 4px -20px; border-top: 2px dashed rgba(200, 170, 255, 0.35); }
.tk-cut i { position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg, #07041a); box-shadow: inset 0 0 0 1px rgba(200, 170, 255, 0.3); }
.tk-cut i:first-child { left: -12px; } .tk-cut i:last-child { right: -12px; }
.tk-qr { position: relative; justify-self: center; width: min(240px, 72vw); padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.35), 0 0 40px rgba(177, 76, 255, 0.6); }
.tk-qr svg { display: block; width: 100%; height: auto; }
.tk.used .tk-qr svg { opacity: 0.25; }
.tk-stamp { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #e11d48; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; transform: rotate(-14deg); }
.tk-stamp small { font-size: 0.8rem; }
.tk-code { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.16em; }
.tk-holder { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: #ddd5ff; border-top: 1px solid rgba(200, 170, 255, 0.18); padding-top: 12px; }
.tk-holder span:first-child { font-weight: 700; color: #fff; }
.tk-hint { margin: 0; text-align: center; font-size: 0.85rem; color: #ddd5ff; }
.tk-hint.small { font-size: 0.76rem; color: var(--muted); }
.tk-actions { display: flex; justify-content: center; }
