/* اپلیکیشن مشتری صرافی محمدی (PWA) — ظاهر طبق طرح کارفرما: سرمه‌ای تیره، دکمه‌های زرد. */
@font-face { font-family: Vazirmatn; src: url('../fonts/Vazirmatn-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url('../fonts/Vazirmatn-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
    --bg: #0b1d54;
    --bg-deep: #081540;
    --card: #132a6b;
    --card-2: #1a3480;
    --line: #2b4590;
    --text: #ffffff;
    --muted: #a9b6db;
    --yellow: #f5b81c;
    --yellow-text: #1b1300;
    --green: #12b76a;
    --red: #f04438;
    --red-bg: #4a1220;
    --blue: #2f6bff;
    --radius: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: Vazirmatn, Tahoma, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--yellow); text-decoration: none; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%); position: relative; }
.splash { display: flex; align-items: center; justify-content: center; min-height: 100vh; font-size: 1.6rem; font-weight: 700; }
.splash b, .brand b { color: var(--yellow); }

/* صفحه */
.screen { padding: 16px 18px 32px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar, .hub-head { position: sticky; top: 0; z-index: 15; background: var(--bg); margin: -16px -18px 12px; padding: 14px 18px 10px; }
.topbar { display: flex; align-items: center; gap: 12px; }
.screen.has-nav { padding-bottom: 96px; }
.filter-select { margin-bottom: 12px; }
.filter-select label { display: block; color: var(--muted); margin-bottom: 6px; font-size: .9rem; }
.topbar h1 { font-size: 1.15rem; margin: 0; font-weight: 700; }
.back { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.back svg { width: 20px; height: 20px; transform: scaleX(-1); }

/* خوش‌آمد */
.welcome-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 0 20px; }
.logo-tile { width: 112px; height: 112px; border-radius: 30px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
    display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.logo-tile svg { width: 62px; height: 62px; color: var(--yellow); }
.logo-tile.sm { width: 76px; height: 76px; border-radius: 22px; background: var(--blue); border: 0; margin-bottom: 14px; }
.logo-tile.sm svg { width: 40px; height: 40px; }
.brand { font-size: 2.1rem; font-weight: 700; margin: 0; }
.tagline { color: var(--muted); margin: 8px 0 0; }
.features { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.features li { display: flex; align-items: center; gap: 14px; font-size: .95rem; }
.feat-ico { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.feat-ico svg { width: 24px; height: 24px; }
.ico-blue { background: var(--blue); }
.ico-teal { background: #0f766e; }
.ico-green { background: #067647; }

/* دکمه‌ها */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border-radius: 14px; border: 0;
    font-weight: 700; font-size: 1.02rem; cursor: pointer; text-align: center; }
.btn-yellow { background: var(--yellow); color: var(--yellow-text); box-shadow: 0 8px 24px rgba(245, 184, 28, .25); }
.btn-yellow:disabled { opacity: .55; box-shadow: none; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn + .btn { margin-top: 12px; }
.link-center { display: block; text-align: center; margin-top: 18px; color: var(--yellow); background: none; border: 0; cursor: pointer; width: 100%; }
.install-hint { margin-top: 14px; font-size: .8rem; color: var(--muted); text-align: center; }

/* کارت و فورم */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.info { display: flex; gap: 10px; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: .85rem;
    color: #dbe3ff; margin-bottom: 14px; }
.info svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.input { width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-deep); color: var(--text);
    padding: 10px 14px; outline: none; }
.input:focus { border-color: var(--yellow); }
.input::placeholder { color: #6f7fae; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: 18px 22px, 12px 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.ltr { direction: ltr; text-align: right; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pw-wrap { display: flex; gap: 8px; }
.pw-wrap .input { flex: 1; }
.eye { width: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-deep); color: var(--muted); cursor: pointer; }
.eye svg { width: 20px; height: 20px; }
.err { color: #fda29b; font-size: .8rem; margin-top: 4px; }
.alert { display: flex; gap: 10px; border-radius: 14px; padding: 12px 14px; font-size: .88rem; margin-bottom: 14px; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert-red { background: var(--red-bg); border: 1px solid #7a2333; color: #ffd5d0; }
.alert-green { background: #053321; border: 1px solid #0b6b44; color: #c6f6dc; }
.alert b { display: block; color: #fff; }
.section-title { font-weight: 700; margin: 6px 0 10px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .9rem; margin: 8px 0 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--yellow); }

/* مدارک */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.doc { position: relative; aspect-ratio: 1; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--card); color: var(--muted);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: .78rem; cursor: pointer; overflow: hidden; }
.doc svg { width: 24px; height: 24px; }
.doc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc input { display: none; }
.doc.has-file { border-style: solid; border-color: var(--yellow); }

/* وضعیت درخواست */
.status-hero { text-align: center; margin-bottom: 18px; }
.status-ico { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.status-ico svg { width: 40px; height: 40px; }
.st-pending { background: #4a3a06; color: var(--yellow); }
.st-approved { background: #053321; color: var(--green); }
.st-rejected { background: var(--red-bg); color: var(--red); }
.status-hero h2 { margin: 0 0 6px; font-size: 1.15rem; }
.status-hero p { color: var(--muted); margin: 0 0 12px; font-size: .9rem; }
.chip { display: inline-block; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; font-size: .85rem; }
.chip b { color: var(--yellow); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; right: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: flex; align-items: center; justify-content: center; background: var(--bg-deep); }
.dot svg { width: 16px; height: 16px; }
.dot.done { background: var(--green); border-color: var(--green); }
.dot.now { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-text); }
.dot.fail { background: var(--red); border-color: var(--red); }
.timeline b { display: block; font-size: .93rem; }
.timeline b.now { color: var(--yellow); }
.timeline span { color: var(--muted); font-size: .8rem; }

/* خانه (موقت تا مرحلهٔ ۲) */
.home-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.home-head .who { display: flex; align-items: center; gap: 10px; }
.home-head .mini-logo { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--yellow); display: flex; align-items: center; justify-content: center; color: var(--yellow); }
.home-head .mini-logo svg { width: 24px; height: 24px; }
.home-head small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.2; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }

/* ---------- بخشِ واردشده (مرحلهٔ ۲) ---------- */
.screen.has-nav { padding-bottom: 96px; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(5, 1fr);
    background: #0a1845; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 20; }
.bottom-nav button { background: none; border: 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; padding: 6px 0; cursor: pointer; border-radius: 12px; }
.bottom-nav svg { width: 22px; height: 22px; }
.bottom-nav button.on { color: var(--yellow); background: rgba(245, 184, 28, .1); }
.head-actions { display: flex; gap: 8px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn i { position: absolute; top: 8px; left: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.icon-btn.sm { width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); }
.p0 { padding: 0; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; font-size: .9rem; }
.note { color: var(--muted); font-size: .8rem; margin: 10px 2px 16px; }
.link-sm { background: none; border: 0; color: var(--yellow); cursor: pointer; font-size: .85rem; padding: 0; }
.btn.sm { min-height: 40px; font-size: .88rem; border-radius: 12px; width: auto; padding: 0 16px; }
.btn.sm svg { width: 16px; height: 16px; }
.btn.danger { color: #fda29b; border-color: #7a2333; margin-top: 4px; }
.btn.danger svg { width: 18px; height: 18px; }

.balance-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; background: linear-gradient(135deg, #1d4ed8, #1e3a8a); border-radius: 20px; padding: 14px; margin-bottom: 18px; }
.bc-main { display: flex; flex-direction: column; gap: 8px; }
.bc-top { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: #dbe3ff; }
.bc-top svg { width: 16px; height: 16px; color: #6ce9a6; }
.bc-amount b { font-size: 1.55rem; }
.bc-amount span { color: #c7d2fe; font-size: .85rem; }
.bc-amount small { display: block; color: #c7d2fe; font-size: .75rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cur-chip { border: 0; border-radius: 999px; padding: 2px 10px; font-size: .75rem; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; }
.cur-chip.on { background: var(--yellow); color: var(--yellow-text); font-weight: 700; }
.bc-rates { background: rgba(8, 21, 64, .55); border-radius: 14px; padding: 10px; font-size: .8rem; }
.bc-rates small { color: var(--muted); font-size: .7rem; }
.kv.sm { padding: 3px 0; border: 0; font-size: .8rem; }

.section-title.bar { border-right: 4px solid var(--yellow); padding-right: 8px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.svc { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 6px; color: var(--text); cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.svc b { font-size: .85rem; }
.svc small { color: var(--muted); font-size: .7rem; }
.svc em { position: absolute; top: 6px; right: 6px; background: var(--yellow); color: var(--yellow-text); font-style: normal; font-size: .62rem; padding: 0 6px; border-radius: 6px; }
.svc-ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.svc-ico svg { width: 24px; height: 24px; }
.s-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.s-purple { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.s-green { background: linear-gradient(135deg, #34d399, #047857); }
.s-teal { background: linear-gradient(135deg, #2dd4bf, #0f766e); }
.s-orange { background: linear-gradient(135deg, #fbbf24, #d97706); }
.s-pink { background: linear-gradient(135deg, #f472b6, #be185d); }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

.tx { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx-ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--blue); }
.tx-ico svg { width: 20px; height: 20px; }
.c-transfer { background: #6d28d9; } .c-deposit { background: #047857; } .c-exchange { background: #0f766e; } .c-bank, .c-shop, .c-snapp { background: #d97706; } .c-service { background: #be185d; } .c-other { background: #475467; }
.tx-body { flex: 1; min-width: 0; }
.tx-body b { display: block; font-size: .88rem; }
.tx-body small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.tx-amt { text-align: left; flex: none; }
.tx-amt b { display: block; font-size: .88rem; }
.pos { color: #6ce9a6; } .neg { color: #fff; }
.st { display: inline-block; font-size: .66rem; padding: 0 8px; border-radius: 6px; margin-top: 3px; }
.st.ok { background: #053321; color: #6ce9a6; } .st.wait { background: #1e3a8a; color: #b2ccff; } .st.bad { background: var(--red-bg); color: #fda29b; }

.total-card { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); border-radius: 18px; padding: 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.total-card span, .total-card small { color: #c7d2fe; font-size: .8rem; }
.total-card b { font-size: 1.6rem; }
.acc-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.acc-sym { width: 40px; height: 40px; border-radius: 12px; background: var(--card-2); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.acc-body { flex: 1; } .acc-body small, .acc-amt small { display: block; color: var(--muted); font-size: .72rem; }
.acc-amt { text-align: left; } .acc-amt b { font-size: 1.05rem; }

.group-card { display: flex; gap: 12px; align-items: center; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.group-card svg { width: 26px; height: 26px; color: var(--yellow); flex: none; }
.group-card small { display: block; color: var(--muted); font-size: .75rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 8px; border-radius: 9px; cursor: pointer; font-weight: 700; }
.seg button.on { background: var(--yellow); color: var(--yellow-text); }
.rate-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.rate-row:last-child { border-bottom: 0; }
.rate-row.head { color: var(--muted); font-size: .78rem; }
.rate-row.head span:first-child { text-align: right; }
.rate-cur { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; text-align: right; align-items: center; }
.rate-cur i { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: var(--card-2); color: var(--yellow); font-style: normal; display: flex; align-items: center; justify-content: center; }
.rate-cur small { color: var(--muted); font-size: .68rem; }
.rate-row .buy { color: #6ce9a6; } .rate-row .sell { color: #fda29b; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.filter-chips button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 4px 14px; cursor: pointer; font-size: .82rem; }
.filter-chips button.on { background: var(--yellow); color: var(--yellow-text); border-color: var(--yellow); font-weight: 700; }
.agent-head { display: flex; gap: 10px; }
.agent-head > svg { width: 22px; height: 22px; color: var(--yellow); flex: none; margin-top: 3px; }
.agent-head b { display: block; } .agent-head b em { font-style: normal; font-size: .7rem; background: var(--yellow); color: var(--yellow-text); border-radius: 6px; padding: 0 6px; }
.agent-head small { display: block; color: var(--muted); font-size: .78rem; }
.agent-actions { display: flex; gap: 8px; margin-top: 10px; }
.agent-actions .btn + .btn { margin-top: 0; }

.notif { display: flex; gap: 10px; }
.notif b { font-size: .9rem; } .notif p { margin: 2px 0; color: #dbe3ff; font-size: .85rem; } .notif small { color: var(--muted); font-size: .72rem; }
.notif .nd { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 8px; background: var(--muted); }
.notif.unread { border-color: var(--yellow); }
.n-hawala { background: var(--green) !important; } .n-deposit { background: var(--yellow) !important; } .n-bank { background: #a78bfa !important; }

.profile-card { display: flex; gap: 12px; align-items: center; }
.profile-card small { display: block; color: var(--muted); font-size: .78rem; }
.avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; flex: none; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: #6ce9a6; font-size: .75rem; }
.verified svg { width: 14px; height: 14px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; text-align: right; }
.menu-item:last-child { border-bottom: 0; }
.menu-item svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.menu-item span { flex: 1; } .menu-item small { color: var(--muted); font-size: .75rem; }
.pin-input { letter-spacing: .6em; text-align: center; font-size: 1.3rem; }

.soon-box { display: flex; gap: 12px; background: #4a3a06; border: 1px solid #8a6a0f; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.soon-box svg { width: 22px; height: 22px; color: var(--yellow); flex: none; }
.soon-box small { display: block; color: #f5e4b3; font-size: .8rem; }
.card.disabled { opacity: .55; pointer-events: none; }
.op-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.op-grid span { border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; font-size: .85rem; }

/* ---------- ارسال حواله (مرحلهٔ ۳) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: -6px 0 16px; }
.steps div { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; color: var(--muted); }
.steps i { height: 4px; border-radius: 4px; background: var(--line); }
.steps .on i { background: var(--yellow); } .steps .on span { color: var(--text); font-weight: 700; }
.tier-note { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.tier-note svg { width: 16px; height: 16px; flex: none; }
.input.big { font-size: 1.5rem; font-weight: 700; border-color: var(--yellow); min-height: 58px; }
.avail { font-size: .78rem; color: var(--muted); margin: -8px 0 12px; }
.avail b { color: var(--text); }
.quote-box { background: #053321; border: 1px solid #0b6b44; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.quote-box.cross { background: #062a2a; border-color: #0f766e; }
.qb-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.qb-head b { color: #6ce9a6; } .qb-head small { color: var(--muted); font-size: .75rem; }
.card .qb-head b { color: var(--text); }
.chip-sm { font-size: .68rem; background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 1px 8px; color: #b2f5ea; }
.quote-box .pay { color: #6ce9a6; font-size: 1.05rem; }
.sender-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .82rem; color: var(--muted); }
.sender-grid b { color: var(--text); }
.alt-card { background: var(--card-2); }
.alt-card small { color: var(--muted); font-size: .75rem; }
.kv b.yellow { color: var(--yellow); } .kv b.big { font-size: 1.1rem; }
.card hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.done-hero { text-align: center; margin: 10px 0 16px; }
.done-hero .status-ico { margin-bottom: 10px; }
.done-hero h2 { margin: 0 0 4px; font-size: 1.2rem; } .done-hero p { color: var(--muted); margin: 0; font-size: .88rem; }
.code-card { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); border-radius: 18px; padding: 16px; text-align: center; margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.code-card small { color: #c7d2fe; font-size: .78rem; }
.code-card b { font-size: 2rem; color: var(--yellow); letter-spacing: .06em; }
.row2 .btn + .btn { margin-top: 0; }

/* ---------- مرحلهٔ ۴ ---------- */
.recip { display: flex; align-items: center; gap: 10px; }
.recip.ok { border-color: #0b6b44; }
.recip small { display: block; color: var(--muted); font-size: .75rem; }
.recip .verified { margin-right: auto; background: #053321; border-radius: 8px; padding: 2px 8px; }
.avatar.sm { width: 40px; height: 40px; font-size: 1.05rem; }
.seg.tall button { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; }
.seg.tall button small { font-weight: 400; font-size: .72rem; opacity: .8; }
.doc.wide { aspect-ratio: auto; min-height: 90px; flex-direction: row; gap: 10px; margin-bottom: 4px; }
.bank-box { background: var(--bg-deep); border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 14px; }
.ex-card { margin-bottom: 0; }
.ex-label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.ex-label b { color: var(--text); }
.ex-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.ex-out { display: flex; align-items: center; color: #6ce9a6; }
.swap-btn { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--yellow);
    color: var(--yellow-text); margin: -8px auto; position: relative; z-index: 2; cursor: pointer; box-shadow: 0 0 0 6px var(--bg); }
.swap-btn svg { width: 22px; height: 22px; transform: rotate(90deg); }
#rate { margin: 14px 0 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #101828; color: #fff; padding: 10px 18px; border-radius: 12px;
    font-size: .88rem; z-index: 50; max-width: 90vw; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.spin { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(0, 0, 0, .25); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* عنصرِ hidden همیشه پنهان — کلاس‌های display آن را نمی‌شکنند (اپلیکیشن نمایندگی، ۲۰۲۶-۱۰-۲۷) */
[hidden] { display: none !important; }

/* شارژ و خدمات دیجیتال (۲۰۲۶-۱۱-۰۷) — مشترکِ اپلیکیشن مشتری و نمایندگی */
.op-btn { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 10px; padding: 9px 6px; font: inherit; font-size: .82rem; cursor: pointer; }
.op-btn.on { border-color: var(--yellow); background: #4a3a06; color: var(--yellow); font-weight: 700; }
.pkg-list { display: grid; gap: 8px; }
.pkg { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); border-radius: 12px; padding: 11px 12px; font: inherit; font-size: .85rem; cursor: pointer; text-align: right; }
.pkg b { color: var(--yellow); white-space: nowrap; }
.pkg.on { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow) inset; }
.c-credit { background: #be185d; }

/* پنجرهٔ رمز تراکنش (common.js، ۲۰۲۶-۱۱-۱۰) */
.pin-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(4, 10, 32, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pin-box { width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pin-box h3 { margin: 0 0 4px; font-size: 1.1rem; }
.pin-msg { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.pin-err { background: var(--red-bg); color: #ffd5d1; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: .88rem; }
.pin-input { text-align: center; letter-spacing: .6em; font-size: 1.4rem; }
.pin-actions { display: flex; gap: 10px; }
.pin-actions .btn { margin: 0; }

/* خدمات ما (۲۰۲۶-۱۱-۱۱، طرحِ کارفرما) — فقط رنگ‌های تاییدشدهٔ همین فایل (var)؛ پرچم‌ها رنگِ خودشان را دارند. */
.hub-head { display: flex; align-items: center; gap: 8px; }
.hub-title { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.hub-title b { font-size: 1.3rem; }
.hub-title small { color: var(--muted); font-size: .8rem; }
a.icon-btn { color: var(--text); }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.hub-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.hub-card-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 4px; }
.hub-card-head b { font-size: 1rem; }
.hub-flag { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid var(--line); display: inline-flex; }
.hub-flag svg { width: 100%; height: 100%; }
.hub-flag-ico { border-radius: 12px; border: 0; background: var(--card-2); color: var(--yellow); align-items: center; justify-content: center; }
.hub-flag-ico svg { width: 22px; height: 22px; }
.hub-row { display: flex; align-items: center; gap: 8px; width: 100%; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px;
    padding: 9px 8px; color: var(--text); cursor: pointer; text-align: right; font: inherit; }
.hub-row b { flex: 1; font-size: .82rem; }
.hub-row > svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.hub-row-ico { width: 30px; height: 30px; border-radius: 10px; background: var(--bg-deep); color: var(--yellow); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hub-row-ico svg { width: 18px; height: 18px; }
.hub-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hub-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px;
    padding: 12px 4px; color: var(--text); cursor: pointer; font: inherit; text-align: center; }
.hub-tile span { width: 38px; height: 38px; border-radius: 12px; background: var(--bg-deep); color: var(--yellow); display: inline-flex; align-items: center; justify-content: center; }
.hub-tile span svg { width: 22px; height: 22px; }
.hub-tile b { font-size: .74rem; line-height: 1.4; }
.hub-tiles .splash, .hub-tiles .empty { grid-column: 1 / -1; }
@media (max-width: 360px) { .hub-grid { grid-template-columns: 1fr; } .hub-tiles { grid-template-columns: repeat(3, 1fr); } }

/* دکمهٔ «مشتری جدید» در هدر */
.btn-new { width: auto; min-height: 0; height: 40px; padding: 0 16px; margin: 0 auto 0 0; font-size: .85rem; font-weight: 700; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 8px; border-radius: 12px;
    background: linear-gradient(270deg, var(--yellow), #ffd24d); box-shadow: 0 4px 14px rgba(245, 184, 28, .25); }
.btn-new svg { width: 16px; height: 16px; }
.btn-new:active { transform: scale(.95); }
.btn-new[hidden] { display: none; }

/* عکس پروفایل */
.avatar.has-img { background-size: cover; background-position: center; }
.avatar-edit { background: none; border: 0; padding: 0; cursor: pointer; position: relative; border-radius: 50%; }
.avatar-edit::after { content: '✎'; position: absolute; bottom: -2px; left: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--yellow-text); font-size: .75rem; display: flex; align-items: center; justify-content: center; }

/* آیکن داخل دکمه‌ها: کوچک و کنارِ متن */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-share { min-height: 46px; margin-bottom: 0; font-size: .9rem; font-weight: 700; border-color: #0b6b44; color: #c6f6dc; background: rgba(6, 118, 71, .18); }
