@font-face { font-family: 'Vazirmatn'; src: url('/assets/vazirmatn.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
[hidden] { display: none !important; }
:root {
  --ink: #0d2622; --lime: #c8f25a; --paper: #f6f3ec; --card: #fff; --line: #e7e1d4; --text: #10201d; --muted: #6f7a72;
  --ok-bg: #eefbd2; --ok: #3e6b00; --bad-bg: #ffe7e1; --bad: #b4321a; --wait-bg: #fff3dc; --wait: #8a5200;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #08130f; --card: #0f1f1b; --line: #1c332d; --text: #e8f0ec; --muted: #8ea39b; --ok-bg: #1f3510; --ok: #c8f25a; --bad-bg: #3a1a12; --bad: #ff9a85; --wait-bg: #352610; --wait: #ffc875; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Vazirmatn, 'Segoe UI', Tahoma, sans-serif; color: var(--text); -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, var(--ink) 0, var(--ink) 240px, var(--paper) 240px); min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; padding: 0 16px;
}
.ltr { direction: ltr; unicode-bidi: isolate; }
.top { width: 100%; max-width: 440px; display: flex; justify-content: space-between; align-items: center; padding: calc(18px + env(safe-area-inset-top, 0px)) 4px 18px; color: #fff; }
.mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 19px; direction: ltr; }
.mark i { width: 32px; height: 32px; border-radius: 10px; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-style: normal; font-size: 13px; }
.mark b span { color: var(--lime); }
.secure-pill { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; color: var(--lime); background: rgba(255, 255, 255, .08); padding: 6px 11px; border-radius: 999px; }
.card { width: 100%; max-width: 440px; background: var(--card); border-radius: 28px; padding: 24px 20px; box-shadow: 0 24px 50px -30px rgba(13, 38, 34, .6); }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 0; color: var(--muted); font-weight: 700; font-size: 14px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-left-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.store { display: flex; gap: 12px; align-items: center; }
.logo { width: 50px; height: 50px; border-radius: 16px; background: var(--paper); display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #1f4d45; flex: none; }
.store b { display: block; font-size: 16.5px; font-weight: 800; }
.store span { font-size: 12.5px; color: var(--muted); }
.amount { text-align: center; margin: 24px 0 4px; }
.amount > span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.amount b { font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.amount small, .result-amount small { font-size: 14px; color: var(--muted); font-weight: 700; }
.perf { border-top: 2px dashed var(--line); margin: 20px -20px 10px; position: relative; }
.perf::before, .perf::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); }
.perf::before { right: -11px; } .perf::after { left: -11px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; }
.kv span { color: var(--muted); font-weight: 600; }
.kv b { font-weight: 800; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border-radius: 18px; border: 0; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; margin-top: 20px; text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(200, 242, 90, .6); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn.primary { background: var(--lime); color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; }
.foot { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 0; line-height: 1.8; }
.err { background: var(--bad-bg); color: var(--bad); border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 700; margin: 14px 0 0; }
.state-ico { width: 76px; height: 76px; border-radius: 26px; display: grid; place-items: center; margin: 6px auto 14px; font-size: 34px; font-weight: 900; }
.state-ico.ok { background: var(--ok-bg); color: var(--ok); }
.state-ico.bad { background: var(--bad-bg); color: var(--bad); }
.state-ico.wait { background: var(--wait-bg); color: var(--wait); }
h1 { font-size: 21px; font-weight: 900; text-align: center; margin: 0; }
.state-text { text-align: center; color: var(--muted); font-size: 14px; line-height: 1.9; margin: 8px 0 14px; }
.result-amount { text-align: center; margin-bottom: 10px; }
.result-amount b { font-size: 28px; font-weight: 900; }
.bottom { font-size: 11.5px; color: var(--muted); text-align: center; padding: 20px 0 calc(20px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }
