/* FRONT agent — checkout page */
.page { padding-top: 28px; }
.head { max-width: 760px; margin-bottom: 26px; }
.head h1 { font-family: var(--f-th-bold); font-weight: 700; font-size: clamp(30px, 7.4vw, 48px); line-height: 1.28; margin: 10px 0 12px; }
.head .hl { color: var(--lime-ink); }
.head .lead { font-size: 17.5px; line-height: 1.65; margin: 0; max-width: 640px; }
@media (min-width: 720px) { .head .lead { font-size: 19px; } }
.br-m { display: none; }
.mt { margin-top: 14px; }
.center { text-align: center; }
.center-block { display: block; margin-left: auto; margin-right: auto; }
.lime { color: var(--lime-ink); }
.linkbtn { background: none; border: 0; padding: 4px 2px; color: var(--lime-ink); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--lime-rgb),.4); cursor: pointer; font-size: 16px; }
.m-only { display: none !important; }
@media (hover: none) and (pointer: coarse) { .m-only { display: inline-flex !important; } strong.m-only { display: block !important; } .d-only { display: none !important; } }

.layout { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
  .summary { order: 2; position: sticky; top: 84px; }
  .flow { order: 1; }
}

/* tier switch */
.tier-switch { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(var(--fg-rgb),.04); border: 1px solid var(--line); margin-bottom: 12px; }
.tier-switch button { flex: 1; min-height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font-weight: 700; font-size: 15.5px; line-height: 1.3; transition: background-color .2s, color .2s; padding: 0 10px; }
.tier-switch button[aria-selected="true"] { background: var(--lime); color: var(--on-lime); }
.tier-switch button:not([aria-selected="true"]):hover { color: var(--text); background: rgba(var(--fg-rgb),.06); }
.tier-switch.locked button:not([aria-selected="true"]) { opacity: .35; pointer-events: none; }

/* tier card */
.tier-card { padding: 22px; position: relative; overflow: hidden; }
.tier-card::after { content: ""; position: absolute; inset: 0 0 auto auto; width: 220px; height: 220px; transform: translate(40%, -45%); background: radial-gradient(circle, rgba(var(--lime-rgb),.22), transparent 65%); pointer-events: none; }
.tier-card.is-full { border-color: rgba(var(--lime-rgb),.35); box-shadow: var(--glow), var(--shadow-lg); }
.tc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tc-name { font-family: var(--f-lat); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.tc-badge { font-size: 14px; line-height: 1.4; font-weight: 700; color: var(--on-lime); background: var(--lime); padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.tc-price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 2px; }
.tc-price .p { font-family: var(--f-lat); font-weight: 800; font-size: 46px; letter-spacing: -.03em; line-height: 1.1; }
.tc-price .p .c { font-size: 26px; font-weight: 700; margin-right: 3px; color: var(--lime-ink); }
.tc-price .usd { color: var(--text-3); font-family: var(--f-lat); font-size: 15px; }
.tc-tag { color: var(--text-2); margin: 8px 0 14px; font-size: 17px; line-height: 1.55; }
.tc-feat { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.tc-feat li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 17px; line-height: 1.55; }
.tc-feat svg { width: 20px; height: 20px; color: var(--lime-ink); margin-top: 3px; }
.tc-onsite { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--lime-dim); border: 1px solid rgba(var(--lime-rgb),.28); font-size: 15.5px; line-height: 1.55; color: var(--text); display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.tc-onsite svg { width: 20px; height: 20px; color: var(--lime-ink); }
.lock-note { margin: 10px 4px 0; }
.sk { background: linear-gradient(90deg, rgba(var(--fg-rgb),.05), rgba(var(--fg-rgb),.11), rgba(var(--fg-rgb),.05)); background-size: 200% 100%; animation: sh 1.3s linear infinite; border-radius: 8px; height: 14px; margin: 10px 0; }
.sk-title { width: 40%; } .sk-price { height: 42px; width: 60%; } .sk-line { width: 90%; } .sk-line.short { width: 55%; }
@keyframes sh { to { background-position: -200% 0; } }

/* flow */
.flow { padding: 20px; min-height: 420px; }
@media (min-width: 720px) { .flow { padding: 30px 32px 34px; } }
.stepper { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: s; }
.stepper li { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 2px solid var(--line); color: var(--text-3); font-size: 15.5px; line-height: 1.4; font-weight: 700; transition: color .25s, border-color .25s; min-width: 0; }
.stepper .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-lat); font-size: 14px; font-weight: 700; border: 1.5px solid var(--line-2); flex: none; transition: all .25s; }
.stepper .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li.on { color: var(--text); border-color: var(--lime-line); }
.stepper li.on .num { background: var(--lime); border-color: var(--lime-line); color: var(--on-lime); }
.stepper li.done { color: var(--text-2); border-color: rgba(var(--lime-rgb),.4); }
.stepper li.done .num { border-color: rgba(var(--lime-rgb),.55); color: var(--lime-ink); }
.view { animation: vin .35s ease-out; }
@keyframes vin { from { opacity: 0; transform: translateY(6px); } }
.v-title { font-family: var(--f-th-bold); font-size: clamp(25px, 6.4vw, 30px); font-weight: 700; margin: 0; line-height: 1.3; }
.v-sub { margin: 6px 0 22px; font-size: 17px; line-height: 1.6; }
.row2 { display: grid; gap: 0 14px; }
@media (min-width: 620px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form-err:empty { display: none; }
.form-err { margin-bottom: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.3); }
.closed-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.35); color: var(--text); margin-bottom: 18px; font-size: 16px; line-height: 1.55; }
.closed-note svg { width: 20px; height: 20px; color: var(--warn); flex: none; margin-top: 2px; }
.center-msg { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.center-msg h2 { margin: 6px 0 0; font-size: 24px; line-height: 1.3; font-family: var(--f-th-bold); }
.spin.big { width: 34px; height: 34px; border-width: 3px; color: var(--lime-ink); }

/* pay */
.pay-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ordercode { text-align: right; display: grid; font-size: 14px; }
.ordercode .mono { font-size: 16.5px; color: var(--text); font-weight: 600; letter-spacing: .04em; }
.amount-big { font-family: var(--f-lat); font-weight: 800; font-size: clamp(44px, 12vw, 62px); letter-spacing: -.03em; line-height: 1; margin: -6px 0 22px; color: var(--lime-ink); }
.amount-big .cur { font-size: .55em; margin-right: 4px; font-weight: 700; }
.qr-block { display: grid; gap: 18px; align-items: center; margin-bottom: 22px; }
@media (min-width: 620px) { .qr-block { grid-template-columns: 260px 1fr; gap: 26px; } }
.qr-frame { background: #fff; border-radius: 20px; padding: 14px 14px 12px; width: 100%; max-width: 300px; margin: 0 auto; box-shadow: 0 0 0 6px rgba(var(--lime-rgb),.12), 0 20px 50px rgba(0,0,0,calc(.45*var(--shk))); color: #0b0f19; }
.qr-top { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-family: var(--f-lat); letter-spacing: .1em; padding: 0 4px 8px; border-bottom: 1px solid #e6e8ec; }
.qr-top .dim { color: #5f6675; }
.pp-mark { font-weight: 800; color: #0b3a6e; letter-spacing: .02em; font-size: 14px; }
.qr-img { aspect-ratio: 1; display: grid; place-items: center; padding: 6px; }
.qr-img svg, .qr-img img { width: 100%; height: 100%; display: block; }
.qr-bottom { text-align: center; font-weight: 700; font-size: 19px; padding-top: 6px; border-top: 1px solid #e6e8ec; }
.qr-help { display: grid; gap: 14px; }
.how { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.how-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--lime-dim); color: var(--lime-ink); display: grid; place-items: center; }
.how-ic svg { width: 21px; height: 21px; }
.how strong { font-size: 17.5px; line-height: 1.4; }
.how p { margin: 3px 0 0; font-size: 16px; line-height: 1.6; }
.bank { border: 1px solid var(--line); border-radius: 16px; background: rgba(var(--bg-rgb),.5); padding: 6px 16px; }
.bank-title { padding: 12px 0 4px; }
.bank-title .eyebrow { font-family: var(--f-th-bold); font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.bank-title + .bank-row { border-top: 0; }
.bank-row > div { display: grid; min-width: 0; }
.bank-row .dim { font-size: 14.5px; }
.bank-row strong { font-size: 18px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.bank-row strong.big { font-size: 22px; letter-spacing: .02em; white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 420px) { .bank-row strong.big { font-size: 19px; letter-spacing: 0; } }

/* upload */
.drop { display: block; border: 1.5px dashed rgba(var(--lime-rgb),.45); border-radius: 18px; background: rgba(var(--lime-rgb),.035); cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; outline: none; }
.drop:hover, .drop:focus-visible, .drop.over { background: rgba(var(--lime-rgb),.08); border-color: var(--lime-line); }
.drop.over { transform: scale(1.01); }
.drop-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 38px 18px; }
.drop-empty strong { font-size: 18px; line-height: 1.4; }
.drop-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(var(--lime-rgb),.25); }
.drop-ic svg { width: 28px; height: 28px; }
.drop-preview { display: grid; justify-items: center; gap: 12px; padding: 16px; }
.drop-preview img { max-width: 100%; max-height: 360px; border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,calc(.5*var(--shk))); background: #fff; }
.pv-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; align-items: center; }
.pv-meta .linkbtn { white-space: nowrap; }
.cam-btn { cursor: pointer; }
.reject-box { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.35); font-size: 16px; line-height: 1.55; }
.checking { position: absolute; inset: 0; z-index: 5; border-radius: inherit; background: rgba(var(--bg-rgb),.92); backdrop-filter: blur(6px); display: grid; place-items: center; align-content: center; text-align: center; gap: 8px; padding: 24px; }
.flow { position: relative; }
.checking strong { font-size: 22px; line-height: 1.35; }
.scan { position: relative; width: 96px; height: 124px; margin-bottom: 10px; }
.scan-doc { position: absolute; inset: 0; border-radius: 12px; border: 2px solid var(--line-2); background: var(--bg-3); padding: 16px 14px; display: grid; gap: 9px; align-content: start; }
.scan-doc span { height: 6px; border-radius: 4px; background: rgba(var(--fg-rgb),.18); }
.scan-doc span.s { width: 60%; background: rgba(var(--lime-rgb),.5); }
.scan-line { position: absolute; left: -8px; right: -8px; height: 3px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 18px 4px rgba(var(--lime-rgb),.5); animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 6px; } to { top: calc(100% - 9px); } }

/* results */
.result { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 10px 0 4px; }
.result h2 { font-family: var(--f-th-bold); font-size: clamp(26px, 6.8vw, 30px); margin: 2px 0 0; line-height: 1.3; }
.result > p { margin: 0 0 10px; max-width: 480px; line-height: 1.65; }
.badge-ic { position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; }
.badge-ic svg { width: 38px; height: 38px; position: relative; }
.badge-ic.ok { background: var(--lime); color: var(--on-lime); box-shadow: 0 0 0 10px rgba(var(--lime-rgb),.12), 0 0 0 22px rgba(var(--lime-rgb),.05), 0 16px 50px rgba(var(--lime-rgb),.35); }
.badge-ic.warn { background: rgba(251,191,36,.12); color: var(--warn); border: 1.5px solid rgba(251,191,36,.45); }
.badge-ic.bad { background: rgba(248,113,113,.12); color: var(--bad); border: 1.5px solid rgba(248,113,113,.45); }
.pop { animation: pop .55s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.pulse-ring { position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--warn); animation: ring 2s ease-out infinite; }
@keyframes ring { to { transform: scale(1.5); opacity: 0; } }
.warn-t { color: var(--warn); }
.go { max-width: 420px; margin-top: 6px; }
.link-box { display: flex; gap: 8px; width: 100%; max-width: 420px; margin-top: 12px; align-items: center; }
.link-box .input { min-height: 44px; font-size: 14.5px; padding: 8px 12px; color: var(--text-2); }
.save-note { display: flex; gap: 10px; text-align: left; max-width: 420px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(var(--lime-rgb),.3); background: var(--lime-dim); font-size: 15.5px; line-height: 1.55; }
.save-note svg { width: 20px; height: 20px; color: var(--lime-ink); flex: none; margin-top: 1px; }
.onsite-note { max-width: 420px; text-align: left; margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.onsite-note strong { color: var(--text); }
.reason { color: var(--text); background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.3); padding: 12px 16px; border-radius: 12px; max-width: 460px; margin: 4px 0 16px !important; }
.poll-box { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15.5px; line-height: 1.45; color: var(--text-2); max-width: 100%; text-align: left; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px rgba(251,191,36,.6); animation: blink 1.6s ease-in-out infinite; flex: none; }
.poll-box.stopped .live-dot { animation: none; background: var(--text-3); box-shadow: none; }
@keyframes blink { 50% { opacity: .3; } }

/* recover */
.recover { margin-top: 26px; display: grid; gap: 18px; }
@media (min-width: 860px) { .recover { grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; } }
.recover h2 { font-family: var(--f-th-bold); font-size: 26px; line-height: 1.3; margin: 8px 0 8px; }
.recover p { margin: 0; }
.rc-result { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 16px; line-height: 1.55; display: grid; gap: 10px; }
.rc-result.ok { border-color: rgba(var(--lime-rgb),.4); background: var(--lime-dim); }
.rc-result.bad { border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.07); }

@media (max-width: 420px) {
  .br-m { display: inline; }
  .stepper li { font-size: 14px; gap: 6px; flex-direction: column; align-items: flex-start; }
  .stepper .lbl { white-space: normal; overflow: visible; line-height: 1.35; }
  .stepper .num { width: 26px; height: 26px; font-size: 13px; }
  .tc-price .p { font-size: 40px; }
}

/* THEME — light-mode polish */
:root[data-theme="light"] .qr-frame { box-shadow: 0 0 0 1px rgba(11,15,25,.10), 0 0 0 7px rgba(200,245,66,.35), 0 18px 44px rgba(11,15,25,.12); }
:root[data-theme="light"] .tier-switch { background: var(--bg-2); }
:root[data-theme="light"] .bank { background: var(--bg-2); }
:root[data-theme="light"] .drop { background: rgba(200,245,66,.10); border-color: rgba(111,146,0,.55); }
:root[data-theme="light"] .drop:hover, :root[data-theme="light"] .drop:focus-visible, :root[data-theme="light"] .drop.over { background: rgba(200,245,66,.20); border-color: var(--lime-line); }
:root[data-theme="light"] .badge-ic.ok { box-shadow: 0 0 0 10px rgba(200,245,66,.25), 0 0 0 22px rgba(200,245,66,.10), 0 16px 40px rgba(122,160,0,.25); }
:root[data-theme="light"] .drop-ic { box-shadow: 0 8px 22px rgba(122,160,0,.25); }

.tc-price .was { margin-left: 10px; color: var(--text-3); font-size: 18px; }
.tc-price .early { margin-left: 8px; padding: 3px 11px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-size: 14px; line-height: 1.4; font-weight: 700; }

@media (max-width: 480px) { .tc-price .early ~ .usd { display: none; } .tc-price .early { white-space: nowrap; } }
