:root {
  --pink: #ff3d8b; --pink2: #ff7a59; --bg: #fff5f8; --card: #ffffff; --ink: #24131c; --muted: #8a7480;
  --line: #f1dde6; --red: #e5284a; --redbg: #ffe9ed; --green: #19a463; --amber: #e39a10;
}
* { box-sizing: border-box; }
[v-cloak] { display: none; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Nastaliq Urdu", "Noto Sans Arabic", "PingFang SC", sans-serif; }
body[dir="rtl"] { text-align: right; }
input, select, button { font: inherit; }
input, select {
  width: 100%; padding: 12px 14px; margin: 6px 0; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); outline: none;
}
input:focus, select:focus { border-color: var(--pink); }
.btn {
  display: block; width: 100%; padding: 12px; margin: 10px 0 4px; border: 0; border-radius: 12px; cursor: pointer;
  color: #fff; font-weight: 700; background: linear-gradient(90deg, var(--pink), var(--pink2));
}
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { width: auto; margin: 6px 0; padding: 12px 16px; white-space: nowrap; }
.btn.ghost { background: #fff; color: var(--pink); border: 1.5px solid var(--pink); }
.link { background: none; border: 0; color: var(--pink); cursor: pointer; padding: 6px; font-weight: 600; }
.card { background: var(--card); border-radius: 18px; padding: 16px; box-shadow: 0 4px 18px rgba(255, 61, 139, .08); margin: 10px 0; }
.muted { color: var(--muted); font-size: 13px; margin: 4px 0; }
.center { text-align: center; }
.err { color: var(--red); font-size: 13px; margin: 6px 0; display: block; }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; }
.row > .btn.small { flex: 0 0 auto; }

.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login { width: 100%; max-width: 380px; text-align: center; padding: 26px 22px; }
.login h1 { font-size: 20px; margin: 10px 0 2px; }
.logo-big { width: 84px; height: 84px; border-radius: 22px; }
.logo-sm { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; }

.main { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; }
.top { display: flex; align-items: center; gap: 10px; padding: 14px 0 8px; }
.who { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.who small { width: 100%; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 2px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #f3e9ee; color: var(--muted); }
.chip.merchant { background: #fff1d6; color: #a76a00; }
.chip.seller { background: #ffe3ef; color: var(--pink); }
.chip.st-active { background: #dcf6e9; color: var(--green); }
.chip.st-pending { background: #fff1d6; color: var(--amber); }
.chip.st-blocked, .chip.st-frozen, .chip.st-rejected { background: var(--redbg); color: var(--red); }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 6px; }
.tabs button { flex: 1; min-width: 86px; padding: 10px; border: 0; border-radius: 12px; background: #fff; color: var(--muted); font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--pink); color: #fff; }
.seg { display: flex; background: #fff; border-radius: 12px; padding: 4px; margin: 8px 0; }
.seg button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--pink); color: #fff; }

.banner { border-radius: 14px; padding: 12px 14px; margin: 8px 0; font-weight: 600; }
.banner.red { background: var(--redbg); color: var(--red); border: 1.5px solid #ffc2cd; }
.banner .count { font-size: 22px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }

.balance { display: flex; flex-direction: column; background: linear-gradient(120deg, var(--pink), var(--pink2)); color: #fff; }
.balance b { font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.balance small { opacity: .9; }

.who-card { display: flex; gap: 12px; align-items: center; }
.who-card.bad { border: 1.5px solid var(--red); }
.who-card img, .who-card .ph { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #f3e9ee; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: 0 0 auto; }
.who-card small { display: block; color: var(--muted); }

.warn { background: #fff8e6; color: #8a5a00; border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }

.list { background: #fff; border-radius: 16px; overflow: hidden; margin: 10px 0; }
.li { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; padding: 11px 14px; border-top: 1px solid var(--line); align-items: center; }
.li:first-child { border-top: 0; }
.li.head { background: #fff0f6; color: var(--muted); font-size: 12px; font-weight: 700; }
.li small { display: block; color: var(--muted); font-size: 12px; }
.li .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.li .tm { font-size: 12px; color: var(--muted); }
.date { display: block; font-size: 12px; color: var(--muted); }

.modal { position: fixed; inset: 0; background: rgba(36, 19, 28, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.modal .card { width: 100%; max-width: 400px; }
.modal h3 { margin: 0 0 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; z-index: 20; max-width: 90vw; }

.langs { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.langs button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 10px; cursor: pointer; font-size: 13px; color: var(--muted); }
.langs button.on { border-color: var(--pink); color: var(--pink); }
.langs.small { margin: 0; }
.langs.small select { width: auto; padding: 5px 8px; margin: 0; border-radius: 99px; font-size: 13px; }

@media (max-width: 420px) {
  .li { grid-template-columns: 1.4fr 1fr; }
  .li > :nth-child(3) { grid-column: 1 / -1; }
  .li.head > :nth-child(3) { display: none; }
}
.ok { color: var(--green); font-size: 13px; display: block; }
.tagline { color: var(--pink) !important; font-weight: 600; }
.grow { flex: 1; min-width: 0; }

/* Buy / Redeem */
.logo-mid { display: block; width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 6px; }
.lbl { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 12px 0 0; }
.acct { display: flex; align-items: center; gap: 8px; background: #fff0f6; border-radius: 12px; padding: 10px 12px; margin: 6px 0; }
.acct small { color: var(--muted); }
.acct b { flex: 1; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.coins-box { background: #fff8e6; border-radius: 12px; padding: 10px 12px; margin: 6px 0; display: flex; flex-direction: column; }
.coins-box b { font-size: 22px; color: #8a5a00; font-variant-numeric: tabular-nums; }
.coins-box small { color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0; }
.shot { position: relative; aspect-ratio: 3 / 4; border: 1.5px dashed #f2b8cf; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; color: var(--pink); font-size: 28px; }
.shot.has { border-style: solid; }
.shot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-big { max-width: 100%; max-height: 90vh; border-radius: 12px; }
.dot { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; }
.rec { padding: 11px 14px; border-top: 1px solid var(--line); }
.rec:first-child { border-top: 0; }
.rec small { display: block; color: var(--muted); font-size: 12px; }
.rec-top { display: flex; justify-content: space-between; align-items: center; }
.chip.st-approved, .chip.st-paid { background: #dcf6e9; color: var(--green); }
.chip.st-approving { background: #fff1d6; color: var(--amber); }
.chip.st-expired, .chip.st-returned, .chip.st-reversed { background: #f3e9ee; color: var(--muted); }
.redeem { text-align: center; }
.redeem .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; background: #f3e9ee; font-size: 28px; }
.kv { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 14px; margin: 4px 0; }
.kv span { color: var(--muted); }
.kv b { color: var(--ink); overflow-wrap: anywhere; }
.link.tiny { padding: 0 4px; font-size: 12px; }
.self .row { margin: 8px 0 4px; }
.self input { flex: 1; min-width: 0; }
.ok { color: var(--green); font-weight: 700; }
