@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn.woff2') format('woff2-variations'), url('../fonts/Vazirmatn.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Shabnam'; src: url('../fonts/Shabnam.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Shabnam'; src: url('../fonts/Shabnam-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --fs: 1;
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f6f8fc; --surface-3: #edf1f8; --line: #e2e8f2; --line-2: #ccd6e6;
  --text: #16203a; --text-2: #5b6780; --text-3: #8a95ad;
  --primary: #0673ff; --primary-2: #0458cc; --on-primary: #ffffff; --primary-soft: #dbe8ff; --primary-tint: #eaf1ff;
  --accent: #0673ff; --gold: #1fc46e; --gold-soft: #d7f7e6; --gold-chip: #5fe0a0;
  --red: #e0443c; --red-soft: #fdeceb; --green: #17a862; --green-soft: #ddf6ea; --blue: #0673ff; --blue-soft: #e2edff; --orange: #e08a1f; --orange-soft: #fdf1df;
  --nav-h: 66px; --radius-xl: 30px; --radius-l: 24px; --radius-m: 18px; --radius-s: 12px;
  --shadow-1: 0 1px 2px rgba(18, 40, 80, .05), 0 6px 18px rgba(18, 40, 80, .07);
  --shadow-2: 0 10px 30px rgba(6, 80, 190, .25);
  --btn-grad: linear-gradient(180deg, #1a80ff 0%, #0561e0 100%);
  --hero: linear-gradient(145deg, #e8f1ff 0%, #d6e6ff 100%);
  --scrim: rgba(14, 26, 48, .45);
  --cloud-arrow: #ffffff; --hero-line: rgba(6,115,255,.16); --wal-bg: rgba(255,255,255,.6);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #141d2e; --surface-2: #19243a; --surface-3: #1f2c46; --line: #23314c; --line-2: #2e3e5e;
  --text: #eaf0fa; --text-2: #9aa8c2; --text-3: #6d7c98;
  --primary: #5aa6ff; --primary-2: #2f86f0; --on-primary: #06152c; --primary-soft: #16304f; --primary-tint: #13253d;
  --accent: #5aa6ff; --gold: #4ce688; --gold-soft: #10321f; --gold-chip: #37c976;
  --red: #f0756c; --red-soft: #3a1e1c; --green: #4ce688; --green-soft: #12331f; --blue: #5aa6ff; --blue-soft: #16273f; --orange: #eba55a; --orange-soft: #3a2c1a;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .45);
  --btn-grad: linear-gradient(180deg, #5aa6ff 0%, #2f86f0 100%);
  --hero: linear-gradient(150deg, #16304f 0%, #12253f 45%, #0e1c31 100%);
  --scrim: rgba(0, 0, 0, .58);
  --cloud-arrow: #141d2e; --hero-line: rgba(90,166,255,.18); --wal-bg: rgba(20,29,46,.55);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font-family: 'Vazirmatn', Tahoma, sans-serif; font-size: calc(14px * var(--fs, 1)); line-height: 1.85; overscroll-behavior: none; -webkit-font-smoothing: antialiased; hyphens: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
.ic { width: 24px; height: 24px; flex: none; display: block; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--text-2); } .dim { color: var(--text-3); }
.red { color: var(--red); } .green { color: var(--green); } .gold { color: var(--gold); }
.hidden { display: none !important; }
.num { font-feature-settings: 'tnum'; }

#app { max-width: 560px; margin: 0 auto; min-height: 100%; position: relative; }
.screen { min-height: 100vh; padding: calc(env(safe-area-inset-top, 0px)) 0 calc(var(--nav-h) + 40px + env(safe-area-inset-bottom, 0px)); animation: screenIn .22s ease both; }
.screen.no-nav { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
@keyframes screenIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .screen, .sheet, .dialog { animation: none !important; } }

/* ---------- app bars ---------- */
.home-bar { display: flex; align-items: center; gap: 10px; padding: 22px 20px 10px; }
.home-bar .t { flex: 1; }
.home-bar h1 { margin: 0; font-size: calc(25px * var(--fs, 1)); font-weight: 900; line-height: 1.3; }
.home-bar .d { color: var(--text-2); font-size: calc(14px * var(--fs, 1)); line-height: 1.4; }
.round-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-1); color: var(--text); }
:root[data-theme="dark"] .round-btn { background: var(--surface-2); box-shadow: none; }
.round-btn .ic { width: 24px; height: 24px; }

.top-bar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; height: 58px; padding: 0 8px; padding-top: env(safe-area-inset-top, 0px); background: var(--bg); border-bottom: 1px solid var(--line); }
.top-bar h2 { margin: 0; text-align: center; font-size: calc(18px * var(--fs, 1)); font-weight: 900; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--text); justify-self: center; }
.icon-btn:active { background: var(--surface-3); }
.icon-btn .ic { width: 25px; height: 25px; }
.icon-btn.sm .ic { width: 22px; height: 22px; }

/* ---------- bottom nav ---------- */
.nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; max-width: 560px; margin: 0 auto; height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--surface); border-radius: 26px 26px 0 0; display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: center; box-shadow: 0 -4px 22px rgba(20, 40, 35, .07); }
:root[data-theme="dark"] .nav { background: #101828; box-shadow: 0 -1px 0 var(--line); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-2); text-decoration: none; font-size: calc(12px * var(--fs, 1)); font-weight: 500; line-height: 1.5; }
.nav a .pill { width: 54px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background .2s; }
.nav a.on { color: var(--primary); font-weight: 800; }
.nav a.on .pill { background: var(--primary-soft); }
:root[data-theme="light"] .nav a.on { color: var(--primary); }
.nav a .ic { width: 23px; height: 23px; }
.fab { position: fixed; z-index: 41; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 50%; transform: translateX(50%); width: 64px; height: 64px; border-radius: 22px; background: var(--btn-grad); color: var(--on-primary); display: grid; place-items: center; box-shadow: var(--shadow-2), 0 0 0 8px var(--bg); }
[dir="rtl"] .fab { transform: translateX(50%); }
.fab .ic { width: 28px; height: 28px; stroke-width: 2.2; }
.fab:active { transform: translateX(50%) scale(.96); }
.xfab { position: fixed; z-index: 39; bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom, 0px)); inset-inline-end: max(22px, calc(50% - 258px)); height: 56px; padding: 0 22px; border-radius: 20px; display: flex; align-items: center; gap: 10px; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: calc(15px * var(--fs, 1)); box-shadow: var(--shadow-2); }
.xfab .ic { width: 24px; height: 24px; }

/* ---------- home ---------- */
.hero { margin: 10px 16px 0; border-radius: var(--radius-xl); padding: 24px 26px 22px; background: var(--hero); position: relative; overflow: hidden; border: 1px solid var(--hero-line); }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .14), transparent 60%); pointer-events: none; }
.hero .cap { color: var(--text-2); font-size: calc(15px * var(--fs, 1)); }
.hero .big { font-size: calc(31px * var(--fs, 1)); font-weight: 900; margin: 18px 0 8px; line-height: 1.3; }
.hero .big small { font-size: .62em; font-weight: 800; }
.hero .split { display: flex; gap: 12px; }
.hero .split > div { flex: 1; }
.hero .split .k { color: var(--text-2); font-size: calc(14px * var(--fs, 1)); }
.hero .split .v { font-weight: 800; font-size: calc(16px * var(--fs, 1)); }
.hero .wal { position: absolute; top: 20px; inset-inline-end: 20px; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--wal-bg); color: var(--gold); z-index: 1; }
.hero .wal .ic { width: 30px; height: 30px; }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 16px 0; }
.stat { background: var(--surface); border-radius: var(--radius-l); padding: 16px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-1); border: 1px solid var(--line); }
:root[data-theme="dark"] .stat { box-shadow: none; }
.stat .bub { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.stat .k { font-size: calc(13px * var(--fs, 1)); color: var(--text-2); line-height: 1.5; }
.stat .v { font-weight: 800; font-size: calc(15px * var(--fs, 1)); line-height: 1.5; }

.sec-h { display: flex; align-items: center; gap: 8px; margin: 20px 22px 10px; }
.sec-h .dia { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; flex: none; }
.sec-h h3 { margin: 0; font-size: calc(16px * var(--fs, 1)); font-weight: 900; flex: 1; line-height: 1.5; }
.sec-h .more { color: var(--accent); font-weight: 800; font-size: calc(15px * var(--fs, 1)); }

/* ---------- cards & lists ---------- */
.card { background: var(--surface); border-radius: var(--radius-xl); margin: 0 16px 12px; box-shadow: var(--shadow-1); border: 1px solid var(--line); overflow: hidden; }
:root[data-theme="dark"] .card { box-shadow: none; }
.card.pad { padding: 18px 20px; }
.empty { display: flex; align-items: center; gap: 14px; padding: 22px 22px; color: var(--text-2); }
.empty .bub { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-tint); color: var(--text-2); border: 1px solid var(--line); flex: none; }
.empty-big { text-align: center; padding: 60px 30px; color: var(--text-2); }
.empty-big .bub { width: 92px; height: 92px; border-radius: 30px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary); }
.empty-big .bub .ic { width: 44px; height: 44px; }
.empty-big b { display: block; color: var(--text); font-size: calc(17px * var(--fs, 1)); margin-bottom: 4px; }

.menu { background: var(--surface); border-radius: var(--radius-xl); margin: 0 16px 16px; box-shadow: var(--shadow-1); border: 1px solid var(--line); overflow: hidden; }
:root[data-theme="dark"] .menu { box-shadow: none; }
.mi { display: flex; align-items: center; gap: 14px; padding: 10px 16px; width: 100%; text-align: start; position: relative; }
.mi + .mi::before { content: ''; position: absolute; top: 0; inset-inline-start: 74px; inset-inline-end: 64px; height: 1px; background: var(--line); }
.mi:active { background: var(--surface-2); }
.mi .bub { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1.5px solid var(--line-2); color: var(--primary); flex: none; }
.mi .bub { --bub-bg: var(--surface-3); }
:root[data-theme="light"] .mi .bub { --bub-bg: #e8f0ff; background: #e8f0ff; color: #0561e0; border-color: #cddcf5; }
.mi .bub .ic { width: 22px; height: 22px; }
.mi .tx { flex: 1; min-width: 0; }
.mi .tx b { display: block; font-size: calc(15.5px * var(--fs, 1)); font-weight: 500; line-height: 1.6; }
.mi .tx span { display: block; color: var(--text-2); font-size: calc(13px * var(--fs, 1)); line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi > .ic:last-child { color: var(--text-2); width: 22px; height: 22px; }
.mi .tog { margin-inline-start: auto; }

.row-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--radius-xl); margin: 0 16px 10px; padding: 12px 16px; box-shadow: var(--shadow-1); border: 1px solid var(--line); width: calc(100% - 32px); text-align: start; }
:root[data-theme="dark"] .row-card { box-shadow: none; }
.row-card:active { transform: scale(.995); background: var(--surface-2); }
.row-card .tx { flex: 1; min-width: 0; }
.row-card .tx b { display: block; font-size: calc(15.5px * var(--fs, 1)); font-weight: 800; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-card .tx span { display: block; font-size: calc(13px * var(--fs, 1)); color: var(--text-2); line-height: 1.6; }
.row-card .amt { text-align: end; flex: none; max-width: 48%; }
.row-card .amt b { display: block; font-weight: 900; font-size: calc(16px * var(--fs, 1)); line-height: 1.4; }
.row-card .amt span { font-size: calc(13px * var(--fs, 1)); line-height: 1.4; }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font-weight: 800; font-size: calc(20px * var(--fs, 1)); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.doc-ic { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.doc-ic .ic { width: 23px; height: 23px; }
.ic-sale { background: var(--green-soft); color: var(--green); }
.ic-buy { background: var(--red-soft); color: var(--red); }
.ic-pre { background: var(--gold-soft); color: #a07a3a; }
:root[data-theme="dark"] .ic-pre { color: var(--gold); }
.ic-in { background: var(--green-soft); color: var(--green); }
.ic-out { background: var(--red-soft); color: var(--red); }
.ic-chq { background: var(--orange-soft); color: var(--orange); }
.ic-blue { background: var(--blue-soft); color: var(--blue); }

/* ---------- segmented / chips ---------- */
.kind-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 20px 14px; }
.kind-tab { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 24px; background: var(--surface); border: 1.5px solid var(--line); text-align: start; position: relative; box-shadow: var(--shadow-1); }
.kind-tab .doc-ic { width: 48px; height: 48px; border-radius: 20px; }
.kind-tab b { font-size: calc(17px * var(--fs, 1)); font-weight: 900; display: block; line-height: 1.4; }
.kind-tab span { color: var(--text-2); font-size: calc(14px * var(--fs, 1)); }
.kind-tab.on.sale { background: linear-gradient(160deg, #2189ff, #0561e0); border-color: #4ce688; color: #fff; }
.kind-tab.on.sale span { color: #d5e6ff; }
.kind-tab.on.sale .doc-ic { background: rgba(255, 255, 255, .12); color: #fff; }
.kind-tab.on.buy { background: linear-gradient(160deg, #b0443c, #8c2f29); border-color: #4ce688; color: #fff; }
.kind-tab.on.buy span { color: #f4d9d6; }
.kind-tab.on.buy .doc-ic { background: rgba(255, 255, 255, .12); color: #fff; }
.kind-tab .chk { position: absolute; inset-inline-end: 50%; top: 50%; transform: translate(-60%, -50%); width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #0561e0; display: none; place-items: center; }
.kind-tab.on .chk { display: grid; inset-inline-end: 14px; transform: translateY(-50%); }
.kind-tab.on.buy .chk { color: #6e2b27; }
.kind-tab .chk .ic { width: 18px; height: 18px; stroke-width: 2.6; }

.chips { display: flex; gap: 10px; padding: 0 20px 14px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--text); font-weight: 700; font-size: calc(14px * var(--fs, 1)); background: transparent; white-space: nowrap; }
:root[data-theme="dark"] .chip { border-color: var(--line-2); }
.chip.on { background: var(--primary-soft); border-color: transparent; }
.chip.on .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.chip.gold.on { background: var(--gold-chip); color: #2a2115; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 12px 20px 16px; border: 1.5px solid var(--text); border-radius: 24px; overflow: hidden; height: 46px; }
:root[data-theme="dark"] .seg { border-color: var(--line-2); }
.seg button { font-weight: 800; font-size: calc(15px * var(--fs, 1)); display: flex; align-items: center; justify-content: center; gap: 8px; }
.seg button + button { border-inline-start: 1.5px solid var(--text); }
:root[data-theme="dark"] .seg button + button { border-color: var(--line-2); }
.seg button.on { background: var(--primary-soft); }
.seg .ic { width: 20px; height: 20px; }
.range-note { margin: 2px 22px 12px; color: var(--primary); font-size: calc(14px * var(--fs, 1)); }
:root[data-theme="light"] .range-note { color: #0458cc; }

/* ---------- summary strip ---------- */
.sumbar { display: flex; background: var(--surface); border-radius: var(--radius-xl); margin: 0 16px 16px; padding: 16px 8px; box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.sumbar > div { flex: 1; text-align: center; min-width: 0; }
.sumbar > div + div { border-inline-start: 1px solid var(--line-2); }
.sumbar .k { color: var(--text-2); font-size: calc(13px * var(--fs, 1)); line-height: 1.6; }
.sumbar .v { font-weight: 900; font-size: calc(15.5px * var(--fs, 1)); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }

/* donut */
.donut-wrap { display: grid; place-items: center; margin: 4px 0 10px; position: relative; }
.donut-wrap svg { width: 270px; height: 270px; max-width: 72vw; max-height: 72vw; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .08)); }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center b { font-size: calc(24px * var(--fs, 1)); font-weight: 900; line-height: 1.4; }
.donut-center span { color: var(--text-2); font-size: calc(14px * var(--fs, 1)); }
.legend { margin: 0 24px 18px; }
.legend div { display: flex; align-items: center; gap: 12px; padding: 5px 0; font-size: calc(15px * var(--fs, 1)); }
.legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.legend .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend .pc { font-weight: 700; font-size: calc(14px * var(--fs, 1)); }

/* bottom export bar */
.export-bar { position: fixed; z-index: 30; inset-inline: 0; bottom: 0; max-width: 560px; margin: 0 auto; padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: 0 -6px 26px rgba(0, 0, 0, .08); }
.export-bar button { height: 56px; border-radius: 20px; color: #fff; font-weight: 800; font-size: calc(15px * var(--fs, 1)); display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-excel { background: linear-gradient(180deg, #17a862, #128a50); box-shadow: 0 8px 18px rgba(18, 138, 80, .28); }
.btn-pdf { background: linear-gradient(180deg, #b8332c, #9b2923); box-shadow: 0 8px 18px rgba(155, 41, 35, .3); }

/* ---------- buttons ---------- */
.btn { height: 54px; border-radius: 20px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: calc(15.5px * var(--fs, 1)); width: 100%; }
.btn-primary { background: var(--btn-grad); color: var(--on-primary); box-shadow: 0 8px 20px rgba(18, 53, 48, .22); }
:root[data-theme="dark"] .btn-primary { box-shadow: none; }
.btn-outline { border: 1.5px solid var(--text); background: transparent; }
:root[data-theme="dark"] .btn-outline { border-color: var(--line-2); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-text { color: var(--accent); font-weight: 800; height: 48px; }
.btn .ic { width: 24px; height: 24px; }
.btn-stack { display: grid; gap: 14px; margin: 18px 20px; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn.sm { height: 48px; border-radius: 18px; font-size: calc(15px * var(--fs, 1)); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- forms ---------- */
.form { padding: 6px 20px 0; }
.fld { display: block; position: relative; margin-bottom: 14px; }
.fld > label, .fld > .lbl { display: block; font-size: calc(13px * var(--fs, 1)); color: var(--text-2); margin: 0 6px 4px; font-weight: 600; line-height: 1.5; }
.inp { width: 100%; min-height: 52px; border-radius: 16px; border: 1.5px solid transparent; background: var(--surface-3); padding: 10px 16px; font-size: calc(15px * var(--fs, 1)); font-weight: 600; outline: none; direction: rtl; text-align: start; line-height: 1.6; }
:root[data-theme="light"] .inp { background: #eceee8; }
.inp:focus { border-color: var(--primary); background: var(--surface); }
textarea.inp { min-height: 96px; resize: vertical; }
.inp.ltr-in, input[type="tel"].inp, input[type="email"].inp, input[type="url"].inp { direction: ltr; text-align: end; }
.inp::placeholder { color: var(--text-3); font-weight: 400; }
select.inp { appearance: none; -webkit-appearance: none; background-image: none; padding-inline-start: 18px; }
.sel-wrap { position: relative; }
.sel-wrap .ic { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-2); width: 20px; height: 20px; }
.fld-float { position: relative; }
.fld-float > label { position: absolute; top: -9px; inset-inline-start: 20px; font-size: calc(13px * var(--fs, 1)); background: transparent; color: var(--text-2); z-index: 1; margin: 0; line-height: 1.2; }
.fld-float .inp { padding-top: 20px; font-weight: 800; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; }
.picker { display: flex; align-items: center; gap: 12px; min-height: 64px; border-radius: 20px; background: var(--surface-3); padding: 8px 16px; width: 100%; text-align: start; }
:root[data-theme="light"] .picker { background: #eceee8; }
.picker .avatar { width: 46px; height: 46px; font-size: calc(16px * var(--fs, 1)); }
.picker .tx { flex: 1; min-width: 0; }
.picker .tx b { display: block; font-weight: 800; line-height: 1.5; }
.picker .tx span { color: var(--text-2); font-size: calc(13px * var(--fs, 1)); line-height: 1.5; }
.hint { font-size: calc(13px * var(--fs, 1)); color: var(--text-2); margin: 6px 8px 14px; line-height: 1.7; }
/* a hint that follows a whole field sits under it (the field already has 14px below); inside a field it sits right under the input */
.fld + .hint, .grid2 + .hint { margin-top: -6px; }
.fld > .hint { margin: 6px 6px 0; }
.err { color: var(--red); font-size: calc(13px * var(--fs, 1)); margin: 6px 8px 12px; }
.fld + .err { margin-top: -6px; }
.inp.bad { border-color: var(--red); }

.toggle { width: 52px; height: 32px; border-radius: 16px; background: var(--line-2); position: relative; flex: none; transition: background .2s; }
.toggle::after { content: ''; position: absolute; top: 4px; inset-inline-start: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.toggle.on { background: var(--primary); }
.toggle.on::after { inset-inline-start: 24px; }

/* invoice editor lines */
.line-item { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; margin-bottom: 10px; }
.line-item .top { display: flex; align-items: center; gap: 10px; }
.line-item .top b { flex: 1; font-weight: 800; line-height: 1.5; }
.line-item .calc { color: var(--text-2); font-size: calc(14px * var(--fs, 1)); margin-top: 4px; display: flex; justify-content: space-between; gap: 8px; }
.line-item .calc b { color: var(--text); }
.totals { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 8px 18px; margin: 6px 0 16px; }
.totals div { display: flex; justify-content: space-between; padding: 7px 0; font-size: calc(15px * var(--fs, 1)); }
.totals div + div { border-top: 1px dashed var(--line-2); }
.totals .grand { font-weight: 900; font-size: calc(18px * var(--fs, 1)); }
.save-bar { position: fixed; z-index: 30; inset-inline: 0; bottom: 0; max-width: 560px; margin: 0 auto; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--surface); box-shadow: 0 -6px 26px rgba(0, 0, 0, .08); border-radius: 26px 26px 0 0; display: flex; gap: 12px; }
.save-bar .btn { flex: 1; }
.save-bar .btn.outline-narrow { flex: 0 0 34%; }
.mini-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border-radius: 20px; border: 1.5px dashed var(--line-2); color: var(--primary); font-weight: 800; margin-bottom: 14px; }
.sub-h { font-weight: 900; font-size: calc(16px * var(--fs, 1)); margin: 18px 6px 10px; display: flex; align-items: center; gap: 8px; }
.sub-h .dia { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; }

/* ---------- sheets, dialogs, toast ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: var(--scrim); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 91; inset-inline: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 34px 34px 0 0; padding: 12px 22px calc(22px + env(safe-area-inset-bottom, 0px)); animation: up .28s cubic-bezier(.2, .9, .3, 1) both; }
:root[data-theme="light"] .sheet { background: #fbfbf8; }
@keyframes up { from { transform: translateY(100%); } }
.sheet .handle { width: 48px; height: 5px; border-radius: 3px; background: var(--text); margin: 4px auto 14px; opacity: .85; }
.sheet .sh-title { text-align: center; font-weight: 900; font-size: calc(19px * var(--fs, 1)); margin-bottom: 8px; }
.divider-dia { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; }
.divider-dia::before, .divider-dia::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.divider-dia i { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; }
.act { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px; margin-bottom: 10px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line-2); text-align: start; }
:root[data-theme="light"] .act { border-color: #dcdfd6; background: #fdfdfb; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.act:active { background: var(--surface-2); }
.act .sq { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.act .sq .ic { width: 23px; height: 23px; }
.act b { flex: 1; font-size: calc(16px * var(--fs, 1)); font-weight: 800; }
.act b small { font-weight: 500; font-size: calc(13px * var(--fs, 1)); color: var(--text-2); margin-inline-start: 4px; }
.act > .ic:last-child { width: 22px; height: 22px; color: var(--text-2); }
.act.danger { background: var(--red-soft); border-color: rgba(193,67,60,.3); }
.act.danger b { color: var(--red); }
.act.danger .sq { background: rgba(193,67,60,.12); color: var(--red); }
.sq-green { background: var(--green-soft); color: var(--green); } .sq-red { background: var(--red-soft); color: var(--red); } .sq-gold { background: var(--gold-soft); color: #a07a3a; }
.sq-blue { background: var(--blue-soft); color: var(--blue); } .sq-orange { background: var(--orange-soft); color: var(--orange); } .sq-teal { background: var(--primary-soft); color: var(--primary); } .sq-brown { background: #f1e6d6; color: #9a6a2c; }
:root[data-theme="dark"] .sq-gold, :root[data-theme="dark"] .sq-brown { color: var(--gold); background: var(--gold-soft); }

.dialog-wrap { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 24px; }
.dialog { width: min(100%, 420px); background: var(--surface-2); border-radius: 34px; padding: 30px 28px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); animation: pop .22s cubic-bezier(.2, .9, .3, 1.2) both; }
:root[data-theme="light"] .dialog { background: #fbfbf8; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.dialog h4 { margin: 0 0 10px; font-size: calc(19px * var(--fs, 1)); font-weight: 900; line-height: 1.5; }
.dialog p { margin: 0 0 20px; color: var(--text-2); font-size: calc(15px * var(--fs, 1)); line-height: 1.9; }
.dialog .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dialog .actions .btn-primary, .dialog .actions .btn-danger { width: auto; min-width: 70%; border-radius: 30px; height: 58px; }
.dialog .actions .btn-danger { background: var(--red); color: #fff; }
.dialog .actions .btn-text { padding: 0 20px; font-size: calc(17px * var(--fs, 1)); }
.dialog .actions .btn-text.red { color: var(--red); }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3.5px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy-pill { width: 60%; height: 58px; border-radius: 30px; background: var(--surface-3); display: grid; place-items: center; }
.btn-text[disabled] { opacity: .45; }

.toast { position: fixed; z-index: 340; inset-inline: 20px; bottom: calc(var(--nav-h) + 34px + env(safe-area-inset-bottom, 0px)); max-width: 520px; margin: 0 auto; background: #1e2a27; color: #fff; padding: 14px 20px; border-radius: 18px; font-weight: 600; box-shadow: var(--shadow-2); animation: up2 .25s ease both; display: flex; gap: 10px; align-items: center; }
:root[data-theme="dark"] .toast { background: #e8f0fb; color: #0e1a2c; }
@keyframes up2 { from { transform: translateY(20px); opacity: 0; } }
.toast button { margin-inline-start: auto; color: #7fc0ff; font-weight: 800; }

/* search bar */
.search-box { margin: 10px 20px 14px; display: flex; align-items: center; gap: 10px; height: 56px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); padding: 0 16px; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; font-size: calc(16px * var(--fs, 1)); min-width: 0; }
.search-box .ic { color: var(--text-2); }

/* ledger */
.ledger-row { display: flex; gap: 12px; padding: 14px 18px; align-items: center; }
.ledger-row + .ledger-row { border-top: 1px solid var(--line); }
.ledger-row .tx { flex: 1; min-width: 0; }
.ledger-row .tx b { display: block; font-weight: 700; font-size: calc(15px * var(--fs, 1)); line-height: 1.6; }
.ledger-row .tx span { color: var(--text-2); font-size: calc(13px * var(--fs, 1)); }
.ledger-row .am { text-align: end; }
.ledger-row .am b { display: block; font-weight: 800; }
.ledger-row .am span { font-size: calc(12px * var(--fs, 1)); color: var(--text-2); }
.person-head { text-align: center; padding: 10px 20px 4px; }
.person-head .avatar { width: 96px; height: 96px; margin: 0 auto 10px; font-size: calc(32px * var(--fs, 1)); border: 3px solid var(--surface); box-shadow: var(--shadow-1); }
.person-head h3 { margin: 0; font-size: calc(20px * var(--fs, 1)); font-weight: 900; line-height: 1.5; }
.person-head .ph { color: var(--text-2); }
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 20px 16px; }
.quick-row button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: calc(13px * var(--fs, 1)); font-weight: 700; }
.quick-row .sq { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.bal-card { margin: 0 20px 14px; border-radius: 26px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.bal-card.pos { background: var(--red-soft); } .bal-card.neg { background: var(--green-soft); } .bal-card.zero { background: var(--surface-3); }
.bal-card b { font-size: calc(22px * var(--fs, 1)); font-weight: 900; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border-radius: 10px; font-size: calc(12px * var(--fs, 1)); font-weight: 700; line-height: 24px; height: 24px; }
.b-green { background: var(--green-soft); color: var(--green); } .b-red { background: var(--red-soft); color: var(--red); } .b-gold { background: var(--gold-soft); color: #9a6f2e; } .b-blue { background: var(--blue-soft); color: var(--blue); } .b-gray { background: var(--surface-3); color: var(--text-2); }
:root[data-theme="dark"] .b-gold { color: var(--gold); }

/* backup page */
.big-btn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 60px; width: calc(100% - 32px); margin: 0 16px 12px; border-radius: 30px; background: var(--btn-grad); color: var(--on-primary); font-weight: 800; font-size: calc(16px * var(--fs, 1)); box-shadow: 0 10px 22px rgba(18, 53, 48, .25); }
:root[data-theme="dark"] .big-btn { box-shadow: none; }
.big-btn .ic { width: 24px; height: 24px; order: 2; }
.bk-card { background: var(--surface); border-radius: 26px; margin: 0 16px 14px; padding: 16px; box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.bk-card .head { display: flex; gap: 14px; align-items: center; }
.bk-card .head .tx { flex: 1; }
.bk-card .head .tx span { color: var(--text-2); font-size: calc(14px * var(--fs, 1)); display: block; line-height: 1.6; }
.bk-card .head .tx b { font-size: calc(17px * var(--fs, 1)); font-weight: 900; display: block; line-height: 1.6; }
.bk-card .sq { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }

/* color wheel */
.wheel-wrap { display: grid; place-items: center; padding: 14px 0; position: relative; }
.wheel { width: 300px; height: 300px; max-width: 76vw; max-height: 76vw; border-radius: 50%; position: relative; background: conic-gradient(from 90deg, red, magenta, blue, cyan, lime, yellow, red); touch-action: none; }
.wheel::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 70%); }
.wheel .knob { position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transform: translate(-50%, -50%); z-index: 2; pointer-events: none; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; border-radius: 10px; outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 38px; height: 38px; border-radius: 50%; background: currentColor; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.swatch { width: 44px; height: 44px; border-radius: 12px; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.preset-row { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 0 10px; }
.preset-row button { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-2); }
.preset-row button.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--text); }
.upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.up-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 14px; text-align: center; }
.up-card .prev { height: 84px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 14px; background: repeating-conic-gradient(var(--surface-3) 0 25%, transparent 0 50%) 0 0/16px 16px; overflow: hidden; }
.up-card .prev img { max-height: 80px; max-width: 100%; }
.up-card .btn { height: 48px; border-radius: 24px; font-size: calc(15px * var(--fs, 1)); }
.thumb { margin: 10px auto 20px; width: 70%; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-1); border: 1px solid var(--line); background: #fff; }
.thumb-inner { transform-origin: top right; }

/* PIN lock */
.lock { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 30px; }
.lock h2 { margin: 0; font-weight: 900; }
.dots { display: flex; gap: 16px; direction: ltr; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--primary); }
.dots i.f { background: var(--primary); }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; direction: ltr; }
.keypad button { height: 76px; border-radius: 50%; background: var(--surface); font-size: calc(26px * var(--fs, 1)); font-weight: 800; box-shadow: var(--shadow-1); }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* date picker */
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-head b { font-size: calc(18px * var(--fs, 1)); font-weight: 900; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dp-grid .w { font-size: calc(12px * var(--fs, 1)); color: var(--text-2); padding: 4px 0; }
.dp-grid button { height: 44px; border-radius: 14px; font-weight: 700; }
.dp-grid button.today { box-shadow: inset 0 0 0 1.5px var(--primary); }
.dp-grid button.sel { background: var(--primary); color: var(--on-primary); }

/* help */
.help-body h5 { margin: 16px 0 4px; font-size: calc(16px * var(--fs, 1)); }
.help-body p { margin: 0 0 6px; color: var(--text-2); line-height: 1.9; }

/* table in reports */
.tbl { width: 100%; border-collapse: collapse; font-size: calc(14px * var(--fs, 1)); }
.tbl th, .tbl td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--text-2); font-weight: 700; font-size: calc(13px * var(--fs, 1)); }
.tbl td.n { text-align: end; font-weight: 700; white-space: nowrap; }

/* ---------- invoice paper (print) ---------- */
.paper-holder { background: #d9dcd6; padding: 14px 0 20px; overflow-x: auto; }
:root[data-theme="dark"] .paper-holder { background: #0a100f; }
.paper-scale { transform-origin: top right; }
.inv { width: 794px; min-height: 1123px; background: #fff; color: #222; padding: 34px 38px; font-family: var(--inv-data, 'Vazirmatn'), Tahoma, sans-serif; font-size: 12.5px; line-height: 1.75; position: relative; direction: rtl; --c: #1f4a8a; --c-soft: #eef2f8; --c-mid: #d6dfee; --c-line: #b9c7df; }
.inv * { letter-spacing: 0; }
.inv .t-font { font-family: var(--inv-title, 'Shabnam'), 'Vazirmatn', sans-serif; }
.inv .bism { text-align: center; color: #777; font-size: 11px; }
.inv .doc-title { text-align: center; font-size: 22px; font-weight: 900; color: var(--c); margin: 0 0 12px; }
.inv .hdr { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 10px; }
.inv .hdr .logo { width: 58px; height: 58px; border-radius: 10px; display: grid; place-items: center; background: var(--c); color: #fff; overflow: hidden; flex: none; }
.inv .hdr .logo img { width: 100%; height: 100%; object-fit: cover; }
.inv .hdr .logo.round { border-radius: 50%; border: 3px solid rgba(255, 255, 255, .6); }
.inv .hdr .nm { flex: 1; }
.inv .hdr .nm b { display: block; font-size: 20px; font-weight: 900; line-height: 1.5; }
.inv .hdr .nm span { font-size: 11.5px; color: #666; }
.inv .hdr .meta { font-size: 12px; text-align: start; min-width: 140px; }
.inv .hdr .meta div { display: flex; gap: 8px; }
.inv .hdr .meta b { font-weight: 800; }
.inv.banner .hdr { background: var(--c); color: #fff; }
.inv.banner .hdr .nm span, .inv.banner .hdr .meta { color: #fff; }
.inv.banner .hdr .logo { background: #fff; color: var(--c); }
.inv.simple .hdr, .inv.boxed .hdr { padding: 6px 0 12px; border-bottom: 2px solid var(--c-line); border-radius: 0; }
.inv.simple .hdr .nm b, .inv.boxed .hdr .nm b { color: var(--c); }
.inv.boxed .hdr { border-bottom: 1.5px solid var(--gold-line, #d9c79a); }
.inv.boxed .hdr .nm { text-align: center; }
.inv .buyer { margin: 14px 0 12px; border: 1.2px solid var(--c-line); background: var(--c-soft); border-radius: 8px; padding: 9px 14px; display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: baseline; }
.inv .buyer .k { color: var(--c); font-weight: 800; }
.inv .buyer b { font-weight: 800; }
.inv table.items { width: 100%; border-collapse: collapse; font-size: 12px; }
.inv table.items th { background: var(--c); color: #fff; font-weight: 700; padding: 7px 8px; border: 1px solid var(--c); text-align: center; }
.inv table.items td { padding: 6px 8px; border: 1px solid #e0e0e0; text-align: center; }
.inv table.items td.desc { text-align: start; }
.inv table.items tr:nth-child(even) td { background: #fafafa; }
.inv table.items tr.sum td { background: var(--c-soft); font-weight: 800; }
.inv .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.inv .box { border: 1.2px solid var(--c-line); border-radius: 8px; padding: 10px 14px; background: #fff; }
.inv .box.soft { background: var(--c-soft); }
.inv .box h6 { margin: 0 0 6px; font-size: 13px; font-weight: 900; color: var(--c); }
.inv .kv { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.inv .kv b { font-weight: 800; }
.inv .kv .l { direction: ltr; unicode-bidi: isolate; font-family: 'Vazirmatn', sans-serif; font-weight: 700; }
.inv .kv.big { font-size: 14px; color: var(--c); font-weight: 900; border-top: 1px solid var(--c-line); margin-top: 4px; padding-top: 6px; }
.inv .finalbar { margin-top: 14px; border-radius: 8px; background: var(--c); color: #fff; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.inv .finalbar b { font-size: 16px; font-weight: 900; white-space: nowrap; }
.inv .finalbar span { font-size: 11.5px; opacity: .95; }
.inv .sect-title { font-weight: 900; color: var(--c); margin: 14px 0 4px; font-size: 13px; }
.inv .acct { border: 1.2px solid var(--c-line); border-radius: 8px; padding: 10px 14px; margin-top: 12px; }
.inv .acct .kv.big { border-top: 1px dashed var(--c-line); }
.inv .pays div { display: flex; justify-content: space-between; padding: 1px 0; }
.inv .notes { border: 1.2px solid var(--c-line); background: var(--c-soft); border-radius: 8px; padding: 9px 14px; margin-top: 12px; white-space: pre-line; }
.inv .signs { display: flex; justify-content: space-around; margin-top: 44px; text-align: center; font-weight: 800; font-size: 12px; }
.inv .signs div { width: 34%; border-top: 1px solid #999; padding-top: 6px; position: relative; }
.inv .signs img { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); max-height: 80px; max-width: 150px; }
.inv .footer-addr { margin-top: 16px; padding-top: 8px; border-top: 1px solid #ddd; display: flex; justify-content: space-between; font-size: 11.5px; color: #555; }
.inv .footer-addr b { color: var(--c); }
.inv.boxed .boxwrap { border: 1.4px solid #b8b8b8; border-radius: 10px; overflow: hidden; margin-top: 12px; }
.inv.boxed .boxtitle { text-align: center; background: var(--c-soft); font-weight: 900; font-size: 17px; padding: 6px; border-bottom: 1.4px solid #b8b8b8; color: var(--c); }
.inv.boxed .buyer { margin: 0; border: 0; border-bottom: 1.4px solid #b8b8b8; border-radius: 0; background: #fff; }
.inv.boxed table.items th { background: var(--c-soft); color: #222; border-color: #cfcfcf; }
.inv.boxed table.items td { border-color: #d6d6d6; }
.inv.boxed .trow td { text-align: start; font-weight: 800; }
.inv.boxed .trow td.val { text-align: center; }
.inv.boxed .trow.pay td { background: var(--c-soft); color: var(--c); font-size: 13px; }
.inv.boxed .notes { background: #fff; border-color: #b8b8b8; }
.inv.boxed .notes .sect-title { color: #222; }
.inv.boxed .buyer .k { color: #222; }
.inv.bw { --c: #333 !important; filter: grayscale(1); }
.inv .wm { position: absolute; top: 36px; inset-inline-start: 38px; font-size: 11px; color: #999; }
.inv .stamp-img { position: absolute; }

@media print {
  body * { visibility: hidden; }
  .inv, .inv * { visibility: visible; }
  .inv { position: absolute; top: 0; right: 0; }
  @page { size: A4; margin: 0; }
}

.ph-l { display: block; direction: ltr; text-align: end; unicode-bidi: plaintext; }
.row-card .tx b.one { -webkit-line-clamp: 1; }
.stat > span:last-child { min-width: 0; }
.stat .v, .hero .split .v, .sumbar .v, .row-card .amt b { overflow-wrap: anywhere; }
.stat .v { font-size: calc(clamp(12px, 3.6vw, 15px) * var(--fs, 1)); }
.hero .big { font-size: calc(clamp(22px, 7.4vw, 31px) * var(--fs, 1)); overflow-wrap: anywhere; }
@media (max-width: 350px) { .stat { padding: 12px; gap: 8px; } .stat .bub { width: 38px; height: 38px; } .quick-row { gap: 6px; margin-inline: 12px; } }
.stat-row.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-row.three .stat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 10px; }
.stat-row.three .stat .bub { width: 36px; height: 36px; }
.stat-row.three .stat .bub .ic { width: 20px; height: 20px; }
.stat-row.three .stat .k { font-size: calc(12px * var(--fs, 1)); }
.stat-row.three .stat .v { font-size: calc(clamp(11px, 3.2vw, 14px) * var(--fs, 1)); font-weight: 800; }
.hero .split > div:nth-child(3) { text-align: start; }
.export-bar.three { grid-template-columns: 58px 1fr 1fr; gap: 10px; }
.export-bar .btn-share { background: var(--surface-3); color: var(--text); }
.export-bar.three button { padding: 0 8px; }
.big-ic { width: 44px !important; height: 44px !important; }
.radio { display: flex; align-items: center; gap: 10px; padding: 7px 2px; font-size: calc(14.5px * var(--fs, 1)); }
.radio input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
.wheel-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; height: 210px; position: relative; }
.wheel-row::before { content: ''; z-index: 0; position: absolute; inset-inline: 0; top: 50%; height: 46px; transform: translateY(-50%); background: var(--primary-soft); border-radius: 14px; pointer-events: none; }
.wheel-col { position: relative; z-index: 1; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; padding: 82px 0; text-align: center; }
.wheel-col::-webkit-scrollbar { display: none; }
.wheel-col button { display: block; width: 100%; height: 46px; scroll-snap-align: center; font-size: calc(16px * var(--fs, 1)); color: var(--text-2); font-weight: 600; }
.wheel-col button.on { color: var(--text); font-weight: 900; font-size: calc(18px * var(--fs, 1)); }
.dp-sel { text-align: center; font-weight: 900; color: var(--primary); font-size: calc(17px * var(--fs, 1)); margin-bottom: 8px; }
.scanner { position: fixed; inset: 0; z-index: 150; background: #000; display: grid; place-items: center; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; width: 74%; height: 130px; border: 3px solid var(--gold); border-radius: 16px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
.scanner .hintbar { position: absolute; bottom: 60px; color: #fff; background: rgba(0,0,0,.6); padding: 10px 18px; border-radius: 14px; font-weight: 700; }
.scanner .close { position: absolute; top: calc(18px + env(safe-area-inset-top,0px)); inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: calc(20px * var(--fs, 1)); }
.xfab.up { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
/* ---------- boot splash (Sam Group) ---------- */
.boot-splash { position: fixed; inset: 0; z-index: 300; pointer-events: none; background: radial-gradient(110% 70% at 50% 30%, #123a86 0%, #0b2154 38%, #0a111e 78%); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .5s ease; overflow: hidden; }
.boot-splash.out { opacity: 0; }
.bs-warp { position: absolute; inset: 0; width: 100%; height: 100%; }
.bs-blob { position: absolute; width: 90vmax; height: 90vmax; right: -40vmax; bottom: -45vmax; border-radius: 50%; background: radial-gradient(circle, rgba(90,166,255,.28), rgba(90,166,255,0) 60%); opacity: 0; animation: bsFade 1.4s ease .9s forwards; }
.bs-stage { position: relative; width: 150px; height: 150px; margin-top: -6vh; display: grid; place-items: center; }
.bs-glow { position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(6,115,255,.55), rgba(6,115,255,0) 65%); opacity: 0; animation: bsFade .6s ease 1.5s forwards, bsBreath 2.8s ease-in-out 2.2s infinite; }
.bs-flash { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 30px 12px rgba(160,205,255,.9); opacity: 0; animation: bsFlash .5s ease-out .95s forwards; }
.bs-wave { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 2px solid rgba(170,210,255,.85); opacity: 0; transform: scale(.15); animation: bsWave .9s cubic-bezier(.2,.7,.3,1) 1s forwards; }
.bs-wave.w2 { border-width: 1px; animation-delay: 1.14s; }
.bs-logo { position: relative; width: 150px; height: 150px; overflow: visible; }
.bs-tile { transform-box: view-box; transform-origin: 60px 60px; opacity: 0; transform: scale(.55); animation: bsTile .55s cubic-bezier(.3,1.5,.5,1) 1.55s forwards, bsFloat 3.2s ease-in-out 2.4s infinite; filter: drop-shadow(0 10px 18px rgba(3,40,110,.45)); }
.bs-blk { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.2); animation: bsPop .42s cubic-bezier(.3,1.7,.5,1) calc(1.1s + var(--i) * .12s) forwards; }
.bs-rise { transform-box: fill-box; transform-origin: center; opacity: 0; transform: translate(-3px, 37px) scale(.7); animation: bsRise .6s cubic-bezier(.2,1.35,.4,1) 1.5s forwards, bsDotGlow 2.4s ease-in-out 2.3s infinite; }
.bs-word { position: relative; width: 206px; max-width: 60vw; height: auto; margin-top: 30px; overflow: visible; }
.bs-l { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(30px); animation: bsLetter .5s cubic-bezier(.2,1.2,.35,1) calc(2.1s + var(--i) * 55ms) forwards; }
.bs-fa { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 12px; color: rgba(220,234,255,.85); font-size: 14.5px; opacity: 0; animation: bsUp .55s ease 2.7s forwards; }
.bs-fa b { font-weight: 700; }
.bs-fa i { display: block; width: 26px; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, rgba(90,166,255,0), #5aa6ff); }
.bs-fa i:last-child { transform: scaleX(-1); }
.bs-foot { position: absolute; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); color: rgba(190,212,245,.55); font-size: 12px; opacity: 0; animation: bsFade .6s ease 3s forwards; }
@keyframes bsFade { to { opacity: 1; } }
@keyframes bsBreath { 50% { transform: scale(1.08); opacity: .8; } }
@keyframes bsFlash { 40% { opacity: 1; transform: scale(1.6); } to { opacity: 0; transform: scale(3); } }
@keyframes bsWave { 15% { opacity: .9; } to { opacity: 0; transform: scale(2.6); } }
@keyframes bsDraw { to { stroke-dashoffset: 0; } }
@keyframes bsPop { to { opacity: 1; transform: none; } }
@keyframes bsRise { 25% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes bsDotGlow { 50% { filter: drop-shadow(0 0 5px #6febaa); } }
@keyframes bsTile { to { opacity: 1; transform: none; } }
@keyframes bsFloat { 50% { translate: 0 -3px; } }
@keyframes bsLetter { to { opacity: 1; transform: none; } }
@keyframes bsUp { from { transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bs-warp, .bs-wave, .bs-flash { display: none; } .bs-blob, .bs-glow, .bs-tile, .bs-blk, .bs-rise, .bs-l, .bs-fa, .bs-foot { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; } }

/* ---------- paywall ---------- */
.pay-hero { text-align: center; padding: 18px 24px 10px; }
.pay-hero h3 { margin: 10px 0 4px; font-size: calc(20px * var(--fs, 1)); font-weight: 900; }
.pay-hero p { margin: 0; color: var(--text-2); line-height: 1.9; }
.pay-feat { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: calc(14.5px * var(--fs, 1)); line-height: 1.8; }
.pay-feat .ic { color: var(--green); width: 22px; height: 22px; flex: none; margin-top: 4px; }
.plan { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 0 16px 12px; padding: 16px 18px; border-radius: 24px; background: var(--surface); border: 2px solid var(--line); text-align: start; position: relative; }
.plan.best { border-color: var(--primary); box-shadow: var(--shadow-1); }
.plan .tx { flex: 1; min-width: 0; }
.plan .tx b { display: block; font-size: calc(17px * var(--fs, 1)); font-weight: 900; }
.plan .tx span { color: var(--text-2); font-size: calc(13px * var(--fs, 1)); line-height: 1.7; }
.plan .pr { text-align: end; flex: none; }
.plan .pr b { display: block; font-size: calc(16px * var(--fs, 1)); font-weight: 900; color: var(--primary); }
.plan .pr span { font-size: calc(12px * var(--fs, 1)); color: var(--text-2); }
.tag-best { position: absolute; top: -11px; inset-inline-start: 18px; background: var(--primary); color: #fff; font-size: calc(12px * var(--fs, 1)); font-weight: 800; padding: 2px 12px; border-radius: 10px; }
/* brand lockup in the home header */
.home-bar h1.brand { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-word { font-size: calc(20px * var(--fs, 1)); font-weight: 900; line-height: 1.35; color: var(--text); white-space: nowrap; }
@media (max-width: 350px) { .brand-word { font-size: calc(18px * var(--fs, 1)); } .brand-mark { width: 26px; height: 26px; } }
.attach-prev { display: block; width: 100%; border-radius: 18px; overflow: hidden; position: relative; border: 1px solid var(--line); background: var(--surface-3); }
.attach-prev img { width: 100%; max-height: 190px; object-fit: cover; display: block; }
.attach-prev span { position: absolute; inset-inline-end: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; padding: 5px 12px; border-radius: 12px; font-size: calc(13px * var(--fs, 1)); display: flex; gap: 6px; align-items: center; }
.attach-prev span .ic { width: 18px; height: 18px; }

/* ---------- نسخهٔ کامل (paywall v2) ---------- */
.pw-hero { text-align: center; padding: 18px 22px 8px; background: radial-gradient(120% 80% at 50% 0%, var(--primary-tint), transparent 70%); }
.pw-hero h3 { margin: 10px 0 4px; font-size: calc(22px * var(--fs, 1)); font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pw-hero p { margin: 0 auto; max-width: 340px; color: var(--text-2); line-height: 1.9; }
.pro-chip { background: linear-gradient(135deg, #0673ff, #4ce688); color: #fff; font-size: calc(12px * var(--fs, 1)); font-weight: 900; padding: 2px 10px; border-radius: 10px; letter-spacing: .5px; }
.pw-offer { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-top: 12px; padding: 8px 16px; border-radius: 16px; background: linear-gradient(135deg, #ff7a45, #ff4d6d); color: #fff; font-weight: 800; box-shadow: 0 8px 20px rgba(255, 77, 109, .3); }
.pw-offer > span { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.2); padding: 2px 10px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.pw-offer .ic { width: 18px; height: 18px; }
.plans { padding: 12px 16px 4px; display: grid; gap: 12px; }
.plan2 { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-radius: 22px; border: 2px solid var(--line-2); background: var(--surface); text-align: start; transition: border-color .15s, box-shadow .15s; }
.plan2.on { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.plan2 .radio-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; }
.plan2.on .radio-dot { border-color: var(--primary); }
.plan2.on .radio-dot::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }
.plan2 .pl-tx { flex: 1; min-width: 0; }
.plan2 .pl-tx b { display: block; font-size: calc(18px * var(--fs, 1)); font-weight: 900; }
.plan2 .pl-tx span { color: var(--text-2); font-size: calc(13px * var(--fs, 1)); }
.plan2 .pl-pr { text-align: end; flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.plan2 .pl-pr s { color: var(--text-3); font-size: calc(13px * var(--fs, 1)); }
.plan2 .pl-pr b { font-size: calc(21px * var(--fs, 1)); font-weight: 900; color: var(--primary); line-height: 1.3; }
.plan2 .pl-pr span { font-size: calc(12px * var(--fs, 1)); color: var(--text-2); }
.plan2 .ribbon { position: absolute; top: -12px; inset-inline-start: 16px; background: linear-gradient(135deg, #0673ff, #2a8bff); color: #fff; font-size: calc(12px * var(--fs, 1)); font-weight: 900; padding: 3px 12px; border-radius: 10px; }
.plan2 .ribbon.alt { background: linear-gradient(135deg, #ff7a45, #ff4d6d); }
.pw-cta-wrap { padding: 14px 16px 6px; }
.pw-cta { height: 62px; font-size: calc(17px * var(--fs, 1)); border-radius: 22px; animation: ctaPulse 2.4s ease-in-out infinite; }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 10px 24px rgba(6,115,255,.28); } 50% { box-shadow: 0 10px 34px rgba(6,115,255,.5); } }
.pw-safe { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-2); font-size: calc(12.5px * var(--fs, 1)); margin-top: 8px; }
.pw-safe .ic { width: 16px; height: 16px; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 6px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.feat .f-ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary); margin-bottom: 8px; }
.feat .f-ic .ic { width: 22px; height: 22px; }
.feat b { display: block; font-size: calc(14px * var(--fs, 1)); font-weight: 800; line-height: 1.6; }
.feat span { display: block; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); line-height: 1.7; margin-top: 2px; }
.tbl.cmp th, .tbl.cmp td { text-align: center; }
.tbl.cmp td:first-child, .tbl.cmp th:first-child { text-align: start; }
.tbl.cmp .ic.ok { width: 20px; height: 20px; color: var(--green); margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+ '; color: var(--primary); font-weight: 900; }
.faq details[open] summary::before { content: '− '; }
.faq p { margin: 6px 0 0; color: var(--text-2); line-height: 1.9; }

/* home / more banner */
.pro-banner { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 14px 16px 0; padding: 14px 16px; border-radius: 22px; color: #fff; text-align: start; background: linear-gradient(120deg, #0561e0 0%, #0673ff 55%, #29a3ff 100%); box-shadow: 0 10px 26px rgba(6, 97, 224, .3); position: relative; overflow: hidden; }
.pro-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(120%); } }
.pro-banner.hot { background: linear-gradient(120deg, #ff4d6d 0%, #ff7a45 60%, #ffb13b 100%); box-shadow: 0 10px 26px rgba(255, 77, 109, .3); }
.pro-banner .pb-ic { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.pro-banner .pb-tx { flex: 1; min-width: 0; }
.pro-banner .pb-tx b { display: block; font-size: calc(15.5px * var(--fs, 1)); font-weight: 900; }
.pro-banner .pb-tx span { font-size: calc(13px * var(--fs, 1)); opacity: .95; }
.pro-banner .pb-tx b b { display: inline; }
.pro-banner .pb-off { background: #fff; color: #ff4d6d; font-weight: 900; border-radius: 12px; padding: 4px 10px; font-size: calc(14px * var(--fs, 1)); flex: none; }
.pro-banner:not(.hot) .pb-off { color: #0561e0; }
.pro-banner .pb-go { flex: none; opacity: .9; }
.menu + .pro-banner, .top-bar + .pro-banner { margin-top: 12px; }
.pro-owned { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 12px 16px 0; padding: 14px 16px; border-radius: 22px; background: var(--green-soft); color: var(--text); text-align: start; }
.pro-owned > .ic { color: var(--green); width: 28px; height: 28px; }
.pro-owned b { display: block; font-weight: 900; }
.pro-owned span span { color: var(--text-2); font-size: calc(13px * var(--fs, 1)); }
.round-btn.crown { background: linear-gradient(135deg, #0673ff, #29a3ff); color: #fff; }

/* offer popup */
.offer-sheet { padding-top: 8px; }
.offer { text-align: center; padding: 0 4px 4px; }
.offer-tag { display: inline-block; background: linear-gradient(135deg, #ff4d6d, #ff7a45); color: #fff; font-weight: 900; font-size: calc(13px * var(--fs, 1)); padding: 4px 14px; border-radius: 12px; margin-bottom: 10px; }
.offer h3 { margin: 0 0 6px; font-size: calc(20px * var(--fs, 1)); font-weight: 900; line-height: 1.6; }
.offer p { margin: 0 auto 12px; color: var(--text-2); line-height: 1.9; max-width: 360px; }
.offer-price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 6px 0 10px; }
.offer-price s { color: var(--text-3); font-size: calc(15px * var(--fs, 1)); }
.offer-price b { font-size: calc(34px * var(--fs, 1)); font-weight: 900; color: var(--primary); line-height: 1.2; }
.offer-price span { color: var(--text-2); font-size: calc(13px * var(--fs, 1)); }
.offer-timer { display: inline-flex; align-items: center; gap: 6px; background: var(--red-soft); color: var(--red); font-weight: 800; padding: 6px 14px; border-radius: 14px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.offer-timer .ic { width: 18px; height: 18px; }
.offer-list { list-style: none; padding: 0; margin: 0 0 14px; text-align: start; }
.offer-list li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; line-height: 1.7; }
.offer-list .ic { color: var(--green); width: 20px; height: 20px; flex: none; margin-top: 3px; }
.offer-cta { height: 60px; font-size: calc(17px * var(--fs, 1)); animation: ctaPulse 2.4s ease-in-out infinite; }

/* rating */
.rate { text-align: center; padding: 4px 2px; }
.rate h3 { margin: 10px 0 6px; font-size: calc(19px * var(--fs, 1)); font-weight: 900; line-height: 1.6; }
.rate p { margin: 0 0 14px; color: var(--text-2); line-height: 1.9; }
.stars { display: flex; justify-content: center; gap: 6px; direction: ltr; }
.stars button { font-size: calc(42px * var(--fs, 1)); line-height: 1; color: var(--line-2); transition: transform .12s, color .12s; padding: 2px; }
.stars button.on { color: #ffb703; transform: scale(1.08); }
.stars-label { margin: 6px 0 14px; font-weight: 800; color: var(--text-2); min-height: 26px; }
.reasons { display: grid; gap: 8px; text-align: start; margin-bottom: 12px; }
.reason { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); }
.reason input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
.reason:has(input:checked) { border-color: var(--primary); background: var(--primary-tint); }
.thanks-ic { width: 72px; height: 72px; border-radius: 50%; margin: 6px auto 0; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.thanks-ic .ic { width: 36px; height: 36px; }
.pro-banner .pb-tx span b, .pro-banner .pb-tx span span { display: inline; font-size: inherit; }
.pro-banner .pb-tx > span { display: block; line-height: 1.7; }
.offer-two { display: grid; grid-template-columns: 1fr 1.05fr; gap: 10px; margin: 4px 0 12px; }
.offer-two .ot { position: relative; border: 2px solid var(--line-2); border-radius: 20px; padding: 14px 10px 12px; background: var(--surface); display: grid; gap: 2px; justify-items: center; }
.offer-two .ot-six { border-color: var(--primary); background: var(--primary-tint); }
.offer-two .ot .ot-h { font-weight: 900; font-size: calc(15px * var(--fs, 1)); }
.offer-two .ot s { color: var(--text-3); font-size: calc(12.5px * var(--fs, 1)); }
.offer-two .ot b { font-size: calc(22px * var(--fs, 1)); font-weight: 900; color: var(--primary); line-height: 1.3; }
.offer-two .ot .ot-u { font-size: calc(11.5px * var(--fs, 1)); color: var(--text-2); }
.offer-two .ot-badge { position: absolute; top: -11px; inset-inline-start: 50%; transform: translateX(50%); background: linear-gradient(135deg, #ff4d6d, #ff7a45); color: #fff; font-size: calc(11.5px * var(--fs, 1)); font-weight: 900; padding: 2px 10px; border-radius: 10px; white-space: nowrap; }

/* ---------- اسلایدهای معرفی (اجرای اول) ---------- */
.intro { position: fixed; inset: 0; z-index: 260; display: grid; grid-template-rows: auto 1fr auto; background: var(--i1); transition: opacity .38s ease, background .45s ease; overflow: hidden; }
.intro.out { opacity: 0; }
.intro[data-theme="blue"]   { --i1: #0673ff; --i2: #0c4fd6; --i3: #4ce688; }
.intro[data-theme="indigo"] { --i1: #4f5bd5; --i2: #2f3aa8; --i3: #ffd166; }
.intro[data-theme="teal"]   { --i1: #0f9b8e; --i2: #07746c; --i3: #ffe066; }
.intro[data-theme="amber"]  { --i1: #f5820b; --i2: #d1620a; --i3: #fff3bf; }
.intro[data-theme="green"]  { --i1: #14a05a; --i2: #0b7a43; --i3: #d8f5a2; }
.intro[data-theme="violet"] { --i1: #7048e8; --i2: #5133c4; --i3: #ffc9de; }
.intro[data-theme="cyan"]   { --i1: #0b93c9; --i2: #0a6f9c; --i3: #c5f6fa; }
.intro[data-theme="slate"]  { --i1: #2b3a55; --i2: #1b2740; --i3: #7ad7ff; }
.intro::before { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 12%, rgba(255,255,255,.22), transparent 60%), linear-gradient(180deg, var(--i1), var(--i2)); }

.intro-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 4px; }
.it-back { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.22); color: #fff; display: grid; place-items: center; flex: none; }
.it-bar { flex: 1; display: flex; gap: 6px; align-items: center; justify-content: center; background: rgba(0,0,0,.18); border-radius: 12px; padding: 7px 10px; }
.it-bar i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.45); transition: width .3s ease, background .3s ease; }
.it-bar i.done { background: rgba(255,255,255,.8); }
.it-bar i.on { width: 26px; background: #fff; }
.it-skip { color: #fff; font-weight: 800; font-size: calc(14px * var(--fs, 1)); padding: 6px 4px; }

.intro-stage { position: relative; z-index: 2; display: grid; place-items: center; padding: 8px 20px 18px; }
.intro-stage .art { width: min(92vw, 360px); height: min(46vh, 340px); border-radius: 44px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); position: relative; overflow: hidden; }
.intro-stage.in .art { animation: artIn .5s cubic-bezier(.2,.9,.3,1.2) both; }
.intro[data-dir="b"] .intro-stage.in .art { animation-name: artInB; }
@keyframes artIn { from { opacity: 0; transform: translateX(26px) scale(.96); } }
@keyframes artInB { from { opacity: 0; transform: translateX(-26px) scale(.96); } }
.art-chip { position: relative; margin-top: -8px; background: rgba(0,0,0,.22); color: #fff; font-weight: 800; font-size: calc(13.5px * var(--fs, 1)); padding: 7px 18px; border-radius: 16px; }
.intro-stage.in .art-chip { animation: chipIn .45s ease .12s both; }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px); } }

.intro-card { position: relative; z-index: 2; background: var(--surface); border-radius: 34px 34px 0 0; padding: 24px 24px calc(20px + env(safe-area-inset-bottom, 0px)); text-align: center; box-shadow: 0 -10px 40px rgba(0,0,0,.18); }
.intro-card.in h2 { animation: upIn .45s ease .05s both; }
.intro-card.in p { animation: upIn .45s ease .14s both; }
.intro-card.in .intro-next { animation: upIn .45s ease .22s both; }
@keyframes upIn { from { opacity: 0; transform: translateY(14px); } }
.intro-card h2 { margin: 0 0 8px; font-size: calc(21px * var(--fs, 1)); font-weight: 900; line-height: 1.7; }
.intro-card p { margin: 0 0 18px; color: var(--text-2); line-height: 2; font-size: calc(14.5px * var(--fs, 1)); }
.intro-next { height: 60px; border-radius: 22px; background: #16203a; color: #fff; font-size: calc(17px * var(--fs, 1)); }
:root[data-theme="dark"] .intro-next { background: var(--btn-grad); color: var(--on-primary); }

/* ---- صحنه‌ها ---- */
.sc { position: absolute; inset: 0; }
.sc i, .sc b, .sc span { box-sizing: border-box; }
.sc .ring { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(255,255,255,.3); }
.sc-welcome .r1 { width: 150px; height: 150px; animation: pulseRing 2.6s ease-in-out infinite; }
.sc-welcome .r2 { width: 210px; height: 210px; animation: pulseRing 2.6s ease-in-out .4s infinite; }
@keyframes pulseRing { 50% { transform: translate(-50%, -50%) scale(1.08); opacity: .55; } }
.sc-welcome .mark { position: absolute; width: 92px; height: 92px; inset: 50% auto auto 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 10px 22px rgba(0,0,0,.28)); animation: floatY 3s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translate(-50%, -58%); } }
.chip-f { position: absolute; display: inline-flex; align-items: center; gap: 5px; background: #fff; color: #16203a; font-weight: 800; font-size: 12.5px; padding: 6px 12px; border-radius: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.18); opacity: 0; }
.chip-f .ic { width: 16px; height: 16px; }
.sc-welcome .f1 { top: 14%; inset-inline-start: 8%; animation: popIn .5s ease .35s both, floatY 4s ease-in-out 1s infinite; }
.sc-welcome .f2 { top: 26%; inset-inline-end: 6%; animation: popIn .5s ease .5s both, floatY 4.4s ease-in-out 1.2s infinite; }
.sc-welcome .f3 { bottom: 20%; inset-inline-start: 10%; animation: popIn .5s ease .65s both, floatY 4.2s ease-in-out .8s infinite; }
.sc-welcome .f4 { bottom: 12%; inset-inline-end: 12%; animation: popIn .5s ease .8s both, floatY 4.6s ease-in-out 1.4s infinite; }
@keyframes popIn { from { opacity: 0; transform: scale(.7) translateY(8px); } to { opacity: 1; transform: none; } }

.sc-invoice .paper { position: absolute; inset: 12% 16% 14%; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.25); padding: 14px; animation: popIn .55s cubic-bezier(.2,.9,.3,1.3) both; overflow: hidden; }
.sc-invoice .ph { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.sc-invoice .logo-sq { width: 34px; height: 34px; border-radius: 10px; background: var(--i1); color: #fff; display: grid; place-items: center; }
.sc-invoice .logo-sq .ic { width: 20px; height: 20px; }
.sc-invoice .lines { flex: 1; display: grid; gap: 5px; }
.sc-invoice .lines i { height: 8px; border-radius: 4px; background: #dfe6f2; display: block; }
.sc-invoice .lines i.s { width: 55%; height: 6px; }
.sc-invoice .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 7px; opacity: 0; }
.sc-invoice .row i { height: 9px; border-radius: 4px; background: #eef2f9; }
.sc-invoice .r1 { animation: rowIn .4s ease .35s both; }
.sc-invoice .r2 { animation: rowIn .4s ease .5s both; }
.sc-invoice .r3 { animation: rowIn .4s ease .65s both; }
@keyframes rowIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.sc-invoice .total { margin-top: 10px; background: var(--i1); color: #fff; border-radius: 10px; padding: 8px 10px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 900; opacity: 0; animation: popIn .45s ease .85s both; }
.sc-invoice .total span { font-size: 11px; font-weight: 600; }
.sc-invoice .stamp { position: absolute; bottom: 12px; inset-inline-start: 14px; width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--i1); color: var(--i1); display: grid; place-items: center; transform: rotate(-16deg) scale(.4); opacity: 0; animation: stampIn .5s cubic-bezier(.2,.9,.3,1.4) 1s both; }
@keyframes stampIn { to { opacity: .85; transform: rotate(-16deg) scale(1); } }
.fly { position: absolute; display: inline-flex; align-items: center; gap: 5px; background: #fff; color: #16203a; font-weight: 800; font-size: 12.5px; padding: 6px 12px; border-radius: 14px; box-shadow: 0 8px 18px rgba(0,0,0,.2); opacity: 0; }
.fly .ic { width: 16px; height: 16px; }
.sc-invoice .f-pdf { top: 8%; inset-inline-end: 6%; animation: popIn .45s ease 1.15s both, floatY 3.4s ease-in-out 1.6s infinite; }
.sc-invoice .f-send { bottom: 6%; inset-inline-end: 10%; animation: popIn .45s ease 1.3s both, floatY 3.8s ease-in-out 1.8s infinite; }

.sc-people .balance { position: absolute; top: 8%; inset-inline: 10%; background: rgba(255,255,255,.95); border-radius: 16px; padding: 10px 14px; text-align: center; box-shadow: 0 10px 24px rgba(0,0,0,.18); animation: popIn .5s ease both; }
.sc-people .balance span { color: #5b6780; font-size: 12px; }
.sc-people .balance b { display: block; font-size: 20px; font-weight: 900; color: #0f9b8e; }
.sc-people .pr { position: absolute; inset-inline: 8%; height: 44px; background: #fff; border-radius: 14px; display: flex; align-items: center; gap: 8px; padding: 0 10px; box-shadow: 0 8px 18px rgba(0,0,0,.14); opacity: 0; }
.sc-people .p1 { top: 38%; animation: rowIn .45s ease .3s both; }
.sc-people .p2 { top: 57%; animation: rowIn .45s ease .45s both; }
.sc-people .p3 { top: 76%; animation: rowIn .45s ease .6s both; }
.sc-people .av { width: 28px; height: 28px; border-radius: 50%; background: #eef2f9; color: #16203a; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.sc-people .nm { flex: 1; display: grid; gap: 4px; }
.sc-people .nm i { height: 7px; border-radius: 4px; background: #e3e9f3; display: block; }
.sc-people .nm i.s { width: 45%; height: 6px; }
.sc-people .pr b { font-size: 11.5px; font-weight: 900; }
.sc-people .deb { color: #e0443c; }
.sc-people .cre { color: #17a862; }

.sc-cheque .cheq { position: absolute; inset-inline: 10%; height: 56px; background: #fff; border-radius: 16px; display: flex; align-items: center; gap: 10px; padding: 0 14px; box-shadow: 0 10px 22px rgba(0,0,0,.16); color: var(--i2); opacity: 0; }
.sc-cheque .cheq span { flex: 1; display: grid; gap: 5px; }
.sc-cheque .cheq i { height: 8px; border-radius: 4px; background: #e6ebf4; display: block; }
.sc-cheque .cheq i.s { width: 50%; height: 6px; }
.sc-cheque .c1 { top: 14%; animation: rowIn .45s ease .25s both; }
.sc-cheque .c2 { top: 36%; animation: rowIn .45s ease .4s both; }
.sc-cheque .bell { position: absolute; bottom: 24%; inset-inline-start: 50%; transform: translateX(50%); width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--i1); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.2); animation: popIn .5s ease .6s both; }
.sc-cheque .bell .ic { width: 30px; height: 30px; animation: ring 1.6s ease-in-out .9s infinite; transform-origin: 50% 15%; }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 90% { transform: rotate(8deg); } }
.sc-cheque .bubble { position: absolute; bottom: 8%; inset-inline: 8%; background: #16203a; color: #fff; border-radius: 14px; padding: 9px 12px; font-size: 12.5px; font-weight: 700; text-align: center; opacity: 0; animation: popIn .45s ease 1.1s both; }

.sc-money .box { position: absolute; width: 40%; border-radius: 18px; background: #fff; padding: 12px; text-align: center; box-shadow: 0 10px 22px rgba(0,0,0,.16); color: var(--i2); opacity: 0; }
.sc-money .box .ic { width: 26px; height: 26px; margin: 0 auto 4px; }
.sc-money .box b { display: block; font-size: 13px; font-weight: 900; color: #16203a; }
.sc-money .box span { font-size: 11.5px; color: #5b6780; }
.sc-money .b1 { top: 10%; inset-inline-start: 8%; animation: popIn .5s ease .2s both, floatY 4s ease-in-out 1s infinite; }
.sc-money .b2 { top: 34%; inset-inline-end: 8%; animation: popIn .5s ease .35s both, floatY 4.4s ease-in-out 1.2s infinite; }
.sc-money .b3 { bottom: 10%; inset-inline-start: 18%; animation: popIn .5s ease .5s both, floatY 4.2s ease-in-out .8s infinite; }
.sc-money .coin { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--i3); color: #14532d; display: grid; place-items: center; font-weight: 900; font-size: 13px; opacity: 0; }
.sc-money .k1 { top: 20%; inset-inline-end: 34%; animation: coinDrop 2.4s ease-in .8s infinite; }
.sc-money .k2 { top: 14%; inset-inline-end: 44%; animation: coinDrop 2.4s ease-in 1.4s infinite; }
.sc-money .k3 { top: 24%; inset-inline-end: 26%; animation: coinDrop 2.4s ease-in 2s infinite; }
@keyframes coinDrop { 0% { opacity: 0; transform: translateY(-16px) scale(.6); } 25% { opacity: 1; transform: none; } 70% { opacity: 1; transform: translateY(46px); } 100% { opacity: 0; transform: translateY(70px) scale(.7); } }

.sc-reports .donut { position: absolute; top: 10%; inset-inline-start: 50%; transform: translateX(50%); width: 150px; height: 150px; }
.sc-reports circle { fill: none; stroke-width: 15; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-linecap: round; }
.sc-reports .d-bg { stroke: rgba(255,255,255,.28); }
.sc-reports .d-a { stroke: #fff; stroke-dasharray: 289; stroke-dashoffset: 289; animation: dash 1.1s ease .2s forwards; }
.sc-reports .d-b { stroke: var(--i3); stroke-dasharray: 289; stroke-dashoffset: 289; animation: dashB 1.1s ease .45s forwards; }
.sc-reports .d-c { stroke: #ffd43b; stroke-dasharray: 289; stroke-dashoffset: 289; animation: dashC 1.1s ease .7s forwards; }
@keyframes dash { to { stroke-dashoffset: 145; } }
@keyframes dashB { from { stroke-dashoffset: 289; } to { stroke-dashoffset: 210; transform: rotate(84deg); } }
@keyframes dashC { from { stroke-dashoffset: 289; } to { stroke-dashoffset: 245; transform: rotate(180deg); } }
.sc-reports .bars { position: absolute; bottom: 12%; inset-inline: 14%; height: 26%; display: flex; align-items: flex-end; gap: 8px; }
.sc-reports .bars i { flex: 1; background: #fff; border-radius: 6px 6px 0 0; height: 10%; opacity: .92; }
.sc-reports .v1 { animation: grow .6s ease .5s forwards; } .sc-reports .v2 { animation: grow2 .6s ease .6s forwards; }
.sc-reports .v3 { animation: grow3 .6s ease .7s forwards; } .sc-reports .v4 { animation: grow4 .6s ease .8s forwards; }
.sc-reports .v5 { animation: grow5 .6s ease .9s forwards; }
@keyframes grow { to { height: 45%; } } @keyframes grow2 { to { height: 70%; } } @keyframes grow3 { to { height: 40%; } } @keyframes grow4 { to { height: 90%; } } @keyframes grow5 { to { height: 62%; } }
.sc-reports .tagx { position: absolute; bottom: 6%; inset-inline-start: 50%; transform: translateX(50%); background: #fff; color: #14532d; font-weight: 900; font-size: 12.5px; padding: 6px 14px; border-radius: 14px; opacity: 0; animation: popIn .5s ease 1.2s both; }

.sc-stock .scan { position: absolute; top: 12%; inset-inline: 16%; height: 34%; background: #fff; border-radius: 18px; box-shadow: 0 12px 26px rgba(0,0,0,.18); overflow: hidden; display: grid; place-items: center; animation: popIn .5s ease both; }
.sc-stock .bars-code { display: flex; gap: 4px; align-items: center; height: 54%; }
.sc-stock .bars-code i { width: 4px; height: 100%; background: #16203a; border-radius: 2px; }
.sc-stock .bars-code i:nth-child(3n) { height: 70%; width: 6px; } .sc-stock .bars-code i:nth-child(4n) { height: 85%; width: 3px; }
.sc-stock .beam { position: absolute; inset-inline: 6%; height: 3px; background: #ff4d6d; box-shadow: 0 0 14px #ff4d6d; border-radius: 3px; animation: beam 1.8s ease-in-out infinite; }
@keyframes beam { 0%, 100% { top: 18%; } 50% { top: 78%; } }
.sc-stock .shelf { position: absolute; inset-inline: 14%; display: flex; gap: 10px; justify-content: center; }
.sc-stock .shelf i { width: 46px; height: 34px; background: #fff; border-radius: 8px; box-shadow: 0 6px 14px rgba(0,0,0,.16); opacity: 0; }
.sc-stock .s1 { bottom: 26%; } .sc-stock .s2 { bottom: 10%; }
.sc-stock .s1 i:nth-child(1) { animation: popIn .4s ease .5s both; } .sc-stock .s1 i:nth-child(2) { animation: popIn .4s ease .6s both; } .sc-stock .s1 i:nth-child(3) { animation: popIn .4s ease .7s both; }
.sc-stock .s2 i:nth-child(1) { animation: popIn .4s ease .8s both; } .sc-stock .s2 i:nth-child(2) { animation: popIn .4s ease .9s both; }
.sc-stock .qty { position: absolute; bottom: 44%; inset-inline-end: 12%; background: #16203a; color: #fff; font-weight: 900; font-size: 12.5px; padding: 5px 12px; border-radius: 12px; opacity: 0; animation: popIn .45s ease 1s both; }

.sc-safe .phone { position: absolute; width: 74px; height: 120px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--i1); box-shadow: 0 12px 26px rgba(0,0,0,.2); top: 26%; }
.sc-safe .phone .ic { width: 34px; height: 34px; }
.sc-safe .p-old { inset-inline-start: 12%; animation: popIn .5s ease .15s both; }
.sc-safe .p-new { inset-inline-end: 12%; animation: popIn .5s ease .3s both; }
.sc-safe .pack { position: absolute; top: 40%; inset-inline-start: 50%; width: 46px; height: 46px; border-radius: 14px; background: var(--i3); color: #16203a; display: grid; place-items: center; --cloud-arrow: #16203a; animation: moveOver 2.6s ease-in-out .8s infinite; }
@keyframes moveOver { 0% { transform: translateX(50%) scale(.85); opacity: 0; } 20% { opacity: 1; transform: translateX(50%) scale(1); } 75% { opacity: 1; transform: translateX(-120%) scale(1); } 100% { opacity: 0; transform: translateX(-150%) scale(.85); } }
.sc-safe .lockb { position: absolute; bottom: 8%; inset-inline: 10%; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(0,0,0,.25); color: #fff; font-weight: 700; font-size: 12.5px; padding: 8px 12px; border-radius: 14px; opacity: 0; animation: popIn .5s ease .9s both; }
.sc-safe .lockb .ic { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .intro *, .sc * { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }
.list-note { margin: 2px 22px 10px; color: var(--text-2); font-size: calc(13px * var(--fs, 1)); }
/* نبض کسب‌وکار */
.pulse { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 16px 6px; }
.pl-item { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px; text-align: start; display: grid; gap: 2px; box-shadow: var(--shadow-1); }
:root[data-theme="dark"] .pl-item { box-shadow: none; }
.pl-item .k { color: var(--text-2); font-size: calc(12.5px * var(--fs, 1)); }
.pl-item b { font-size: calc(17px * var(--fs, 1)); font-weight: 900; line-height: 1.5; overflow-wrap: anywhere; }
.pl-item b.sm { font-size: calc(14px * var(--fs, 1)); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pl-item b.locked { color: var(--primary); }
.pl-item b.locked .ic { width: 20px; height: 20px; }
.pl-item .d { font-size: calc(12px * var(--fs, 1)); color: var(--text-2); line-height: 1.6; }

/* ---------- quick tour (first run) ---------- */
.tour { position: fixed; inset: 0; z-index: 250; opacity: 0; transition: opacity .28s ease; }
.tour.in { opacity: 1; }
.tour.out { opacity: 0; pointer-events: none; }
.tour-hole { position: fixed; display: block; padding: 0; border: 0; background: transparent; border-radius: 18px; box-shadow: 0 0 0 200vmax rgba(7, 13, 26, .72); transition: left .42s cubic-bezier(.3,.9,.3,1), top .42s cubic-bezier(.3,.9,.3,1), width .42s cubic-bezier(.3,.9,.3,1), height .42s cubic-bezier(.3,.9,.3,1), border-radius .42s ease; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tour-ring { position: absolute; inset: -3px; border-radius: inherit; border: 2.5px solid #5aa6ff; box-shadow: 0 0 18px rgba(90,166,255,.55); animation: tourPulse 1.6s ease-in-out infinite; pointer-events: none; }
.tour-tip { position: fixed; background: var(--surface); color: var(--text); border-radius: 22px; padding: 16px 18px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.35); transition: top .42s cubic-bezier(.3,.9,.3,1), left .42s cubic-bezier(.3,.9,.3,1); }
.tour-tip.swap .tour-head, .tour-tip.swap .tour-text { animation: tourIn .32s ease both; }
.tour-arrow { position: absolute; width: 16px; height: 16px; margin-left: -8px; background: var(--surface); transform: rotate(45deg); bottom: -7px; border-radius: 3px; }
.tour-tip.below .tour-arrow { bottom: auto; top: -7px; }
.tour-head { display: flex; align-items: center; gap: 10px; }
.tour-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.tour-ic svg { width: 20px; height: 20px; }
.tour-title { font-size: calc(17px * var(--fs, 1)); font-weight: 900; flex: 1; }
.tour-count { font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); font-weight: 700; }
.tour-text { margin: 8px 0 12px; font-size: calc(14.5px * var(--fs, 1)); line-height: 1.85; color: var(--text-2); }
.tour-foot { display: flex; align-items: center; gap: 8px; }
.tour-dots { display: flex; gap: 5px; flex: 1; }
.tour-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line-2); transition: width .3s ease, background .3s ease; }
.tour-dots i.on { width: 20px; background: var(--primary); }
.tour-skip { padding: 10px 12px; color: var(--text-3); font-weight: 700; font-size: calc(14px * var(--fs, 1)); background: none; border: 0; }
.tour-next { padding: 10px 22px; border-radius: 16px; background: var(--btn-grad); color: var(--on-primary); font-weight: 800; font-size: calc(14.5px * var(--fs, 1)); border: 0; }
.tour-next:focus-visible, .tour-skip:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; }
@keyframes tourPulse { 50% { opacity: .35; transform: scale(1.04); } }
@keyframes tourIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .tour-hole, .tour-tip { transition: none; } .tour-ring, .tour-tip.swap .tour-head, .tour-tip.swap .tour-text { animation: none; } }

/* start offer: price → per-month → deadline → what you get */
.start-offer h3 { font-size: calc(21px * var(--fs, 1)); line-height: 1.7; }
.start-offer .offer-price { margin: 10px 0 2px; }
.offer-per { color: var(--text-2); font-size: calc(13.5px * var(--fs, 1)); margin-bottom: 14px; }
.start-offer .offer-timer { margin-bottom: 6px; }
.start-offer .offer-timer span { font-weight: 700; }
.offer-after { font-size: calc(12.5px * var(--fs, 1)) !important; color: var(--text-3) !important; margin: 0 auto 14px !important; line-height: 1.8 !important; }
.offer-list-h { text-align: start; font-weight: 800; font-size: calc(14px * var(--fs, 1)); margin-bottom: 8px; }

/* ---------- home v2: own look (dark balance deck, grouped actions, one-piece month strip) ---------- */
.home-v2 .home-bar { padding: 18px 18px 12px; }
.home-v2 .home-bar .t { display: flex; align-items: center; gap: 10px; }
.home-v2 .brand-mark { width: 40px; height: 40px; }
.home-v2 .home-bar h1.brand { margin: 0; }
.home-v2 .home-bar .d { font-size: calc(13px * var(--fs, 1)); }
.hb-acts { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.hb-acts .round-btn { width: 40px; height: 40px; border-radius: 14px; box-shadow: none; background: transparent; }
.hb-acts .round-btn .ic { width: 21px; height: 21px; }
.hb-acts .round-btn.crown { background: var(--btn-grad); color: #fff; }
.hero.hero-v2 { margin: 4px 14px 0; padding: 20px 20px 16px; border: 0; border-radius: 26px 26px 26px 8px; color: #eaf1ff; background: radial-gradient(120% 120% at 100% 0%, #1f4fa3 0%, #0f2a5e 42%, #0b1a3a 100%); box-shadow: 0 14px 30px rgba(8, 26, 70, .28); }
.hero.hero-v2::after { background: radial-gradient(60% 70% at 0% 100%, rgba(111, 235, 170, .16), transparent 70%); }
.hero-v2 .hv-top { display: flex; align-items: center; gap: 10px; }
.hero-v2 .wal { position: static; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #9fc8ff; }
.hero-v2 .wal .ic { width: 21px; height: 21px; }
.hero-v2 .cap { color: rgba(234, 241, 255, .72); font-size: calc(14px * var(--fs, 1)); }
.hero-v2 .big { margin: 14px 0 12px; color: #fff; letter-spacing: -.3px; }
.hero-v2 .big small { color: rgba(234, 241, 255, .7); }
.hv-bar { position: relative; display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: #ff7a8a; margin-bottom: 12px; }
.hv-bar .g { display: block; height: 100%; background: linear-gradient(90deg, #3ddc97, #6febaa); border-radius: 8px 0 0 8px; transition: width .6s ease; }
.hv-bar .r { flex: 1; }
.hero-v2 .split { gap: 10px; }
.hero-v2 .split .k { color: rgba(234, 241, 255, .7); display: flex; align-items: center; gap: 6px; font-size: calc(13px * var(--fs, 1)); }
.hero-v2 .split .v { font-size: calc(17px * var(--fs, 1)); }
.hero-v2 .split .v.green { color: #6febaa; }
.hero-v2 .split .v.red { color: #ff9aa6; }
.hero-v2 .split > div:nth-child(2) { text-align: end; }
.hero-v2 .split > div:nth-child(2) .k { justify-content: flex-end; }
.hero-v2 .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.hero-v2 .dot.g { background: #6febaa; } .hero-v2 .dot.r { background: #ff9aa6; }
.hv-cash { position: relative; z-index: 1; margin-top: 14px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); color: #eaf1ff; text-align: start; }
.hv-cash .ci { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(111, 235, 170, .16); color: #6febaa; flex: none; }
.hv-cash .ci .ic { width: 18px; height: 18px; }
.hv-cash .k { flex: 1; color: rgba(234, 241, 255, .8); font-size: calc(13.5px * var(--fs, 1)); }
.hv-cash .v { font-size: calc(15.5px * var(--fs, 1)); font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.hv-cash > .ic { width: 16px; height: 16px; opacity: .6; }
.hv-lbl { margin: 18px 22px 8px; font-size: calc(13px * var(--fs, 1)); font-weight: 800; color: var(--text-3); }
.home-v2 .stat-row.three { margin: 0 14px; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1); overflow: hidden; }
.home-v2 .stat-row.three .stat { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 14px 12px; }
.home-v2 .stat-row.three .stat + .stat { border-inline-start: 1px solid var(--line); }
.home-v2 .stat-row.three .stat .bub { width: 32px; height: 32px; border-radius: 10px; }
.home-v2 .sec-h .dia { width: 4px; height: 16px; border-radius: 3px; transform: none; background: var(--primary); }
:root[data-theme="dark"] .hero.hero-v2 { background: radial-gradient(120% 120% at 100% 0%, #24539f 0%, #16305f 45%, #111f3d 100%); box-shadow: none; border: 1px solid #2a3d63; }

/* ---------- account & sync ---------- */
.sync-pill { display: inline-flex; align-items: center; gap: 5px; font-size: calc(12px * var(--fs, 1)); font-weight: 700; color: var(--text-2); padding: 2px 9px; border-radius: 10px; background: var(--surface-3); border: 0; line-height: 1.7; }
.sync-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.sync-pill.s-ok::before { background: #2fbf71; }
.sync-pill.s-syncing::before { background: var(--primary); animation: tourPulse 1s ease-in-out infinite; }
.sync-pill.s-offline::before, .sync-pill.s-error::before { background: #f0a020; }
.sync-pill.s-auth::before { background: var(--red); }
.sync-pill.mini { margin-inline-start: 6px; padding: 0 8px; font-size: calc(11px * var(--fs, 1)); }
.acc-card { display: flex; align-items: center; gap: 12px; margin: 14px 16px 0; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.acc-card .bub { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.acc-card .tx { flex: 1; display: grid; gap: 4px; justify-items: start; }
.acc-card .tx b { font-size: calc(17px * var(--fs, 1)); }
.web-note { margin: 0 16px; padding: 14px 16px; font-size: calc(14px * var(--fs, 1)); line-height: 1.9; color: var(--text-2); }
.web-note p { margin: 0 0 6px; }
.web-note ul { margin: 0; padding-inline-start: 18px; }
.web-note b { color: var(--text); }

/* ---------- web: first-visit gate ---------- */
.web-gate { display: grid; place-items: center; background: radial-gradient(110% 70% at 50% 20%, #123a86 0%, #0b2154 40%, #0a111e 85%); padding: 24px; z-index: 255; }
.web-gate.out { opacity: 0; }
.wg-box { width: 100%; max-width: 420px; background: var(--surface); border-radius: 30px; padding: 30px 26px 24px; text-align: center; display: grid; gap: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.wg-logo { width: 76px; height: 76px; margin: -2px auto 2px; }
.wg-box h1 { margin: 0; font-size: calc(24px * var(--fs, 1)); font-weight: 900; }
.wg-box h1 span { display: block; font-size: .6em; color: var(--primary); font-weight: 800; }
.wg-box p { margin: 0 0 6px; color: var(--text-2); line-height: 1.9; }
.wg-box small { color: var(--text-3); }

/* ---------- desktop (web version on a computer): side menu + wide column ---------- */
@media (min-width: 1000px) {
  :root { --side: 248px; --col: 860px; }
  body { padding-inline-start: var(--side); }
  #app { max-width: var(--col); }
  .screen { padding-bottom: 90px; }
  .nav { top: 0; bottom: 0; inset-inline-start: 0; inset-inline-end: auto; width: var(--side); max-width: none; height: auto; margin: 0; padding: 92px 14px 24px; border-radius: 0; display: flex; flex-direction: column; gap: 4px; box-shadow: none; border-inline-end: 1px solid var(--line); }
  .nav > span { display: none; }
  .nav a { align-self: stretch; width: auto; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 8px 10px; border-radius: 14px; font-size: calc(15px * var(--fs, 1)); }
  .nav a .pill { width: 38px; height: 38px; border-radius: 12px; }
  .nav a:hover { background: var(--surface-2); }
  .nav a.on { background: var(--primary-tint); }
  .nav a.on .pill { background: transparent; }
  .fab, [dir="rtl"] .fab { top: 22px; bottom: auto; inset-inline-start: 14px; inset-inline-end: auto; transform: none; width: calc(var(--side) - 28px); height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .fab::after { content: 'ثبت جدید'; font-weight: 800; font-size: calc(15px * var(--fs, 1)); }
  .fab .ic { width: 22px; height: 22px; }
  .fab:active { transform: scale(.98); }
  .xfab { bottom: 28px; inset-inline-end: max(22px, calc((100vw - var(--side) - var(--col)) / 2 + 22px)); }
  .export-bar, .save-bar, .sheet { inset-inline-start: var(--side); inset-inline-end: 0; max-width: var(--col); }
  .sheet { max-width: 620px; }
  .toast { inset-inline-start: calc(var(--side) + 20px); bottom: 34px; }
  .intro > * { width: 100%; max-width: 560px; margin-inline: auto; }
  .intro, .web-gate, .lock { inset-inline-start: 0; }
  .row-card, .mi, .stat, .act, .chip, .kind-tab, .hv-cash { cursor: pointer; }
  .row-card:hover, .mi:hover, .stat:hover, .act:hover { background-color: var(--surface-2); }
  .home-v2 .home-bar { padding-top: 26px; }
  ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg); }
}
.web-gate { grid-template-rows: none; }
.web-gate::before, .web-gate::after { display: none; }
.wg-box { position: relative; z-index: 3; }

/* ---------- rating (v2) ---------- */
.rate-sheet .sheet { padding-top: 10px; }
.rate2 { text-align: center; padding: 2px 2px 4px; }
.rt-head img { display: block; margin: 4px auto 0; border-radius: 16px; box-shadow: 0 8px 20px rgba(6, 82, 196, .25); }
.rt-head h3 { margin: 12px 0 6px; font-size: calc(20px * var(--fs, 1)); font-weight: 900; line-height: 1.6; }
.rt-head p { margin: 0 0 14px; color: var(--text-2); line-height: 1.9; font-size: calc(14.5px * var(--fs, 1)); }
.rate2 .stars { display: flex; justify-content: center; gap: 8px; direction: rtl; margin: 6px 0 4px; }
.rate2 .stars button { width: 52px; height: 52px; padding: 4px; border-radius: 16px; background: transparent; border: 0; color: var(--line-2); transition: transform .15s ease, color .15s ease; cursor: pointer; }
.rate2 .stars button svg { width: 100%; height: 100%; fill: currentColor; }
.rate2 .stars button.on { color: #ffb703; animation: starPop .35s cubic-bezier(.3,1.8,.5,1) calc(var(--k) * 40ms) both; }
.rate2 .stars button:focus-visible { outline: 3px solid var(--primary-soft); }
.rate2 .stars-label { margin: 4px 0 10px; font-weight: 800; min-height: 28px; color: var(--text-3); font-size: calc(15px * var(--fs, 1)); }
.rate2 .stars-label.s1, .rate2 .stars-label.s2 { color: #d9480f; } .rate2 .stars-label.s3 { color: #b7791f; } .rate2 .stars-label.s4 { color: #2f9e44; } .rate2 .stars-label.s5 { color: #2f9e44; }
.rt-burst { position: relative; height: 34px; margin-bottom: -14px; }
.rt-burst span { position: absolute; top: 12px; left: 50%; width: 18px; height: 18px; margin-left: -9px; color: #ffb703; opacity: 0; animation: burst .8s ease-out calc(var(--k) * 60ms) forwards; }
.rt-burst span svg { width: 100%; height: 100%; fill: currentColor; }
.rt-burst span:nth-child(1) { --dx: -110px; --dy: -6px; } .rt-burst span:nth-child(2) { --dx: -56px; --dy: -22px; } .rt-burst span:nth-child(3) { --dx: 0px; --dy: -30px; } .rt-burst span:nth-child(4) { --dx: 56px; --dy: -22px; } .rt-burst span:nth-child(5) { --dx: 110px; --dy: -6px; }
.rt-change { background: none; border: 0; color: var(--primary); font-weight: 800; padding: 0 4px; cursor: pointer; font-size: inherit; }
.chips-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 2px 0 14px; }
.rate2 .reason { padding: 9px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-size: calc(13.5px * var(--fs, 1)); font-weight: 600; line-height: 1.6; cursor: pointer; transition: background .15s, border-color .15s; }
.rate2 .reason.on { background: var(--primary-tint); border-color: var(--primary); color: var(--primary); }
.rt-lbl { display: block; text-align: start; font-weight: 700; font-size: calc(13.5px * var(--fs, 1)); color: var(--text-2); margin-bottom: 6px; }
.rate2 textarea.inp { width: 100%; box-sizing: border-box; margin-bottom: 10px; }
.rt-contact { display: flex; align-items: center; gap: 8px; justify-content: flex-start; margin: 2px 2px 10px; font-size: calc(14px * var(--fs, 1)); color: var(--text-2); cursor: pointer; }
.rt-contact input { width: 20px; height: 20px; accent-color: var(--primary); }
.rate2 #rs-phone { width: 100%; box-sizing: border-box; margin-bottom: 12px; }
.rate2 .btn-primary { width: 100%; margin-bottom: 4px; }
.rate2 .btn-primary[disabled] { opacity: .45; }
.rt-thanks-ic { width: 72px; height: 72px; margin: 6px auto 0; border-radius: 24px; display: grid; place-items: center; background: #e6fbef; color: #2f9e44; animation: starPop .45s cubic-bezier(.3,1.8,.5,1) both; }
.rt-thanks-ic .ic { width: 36px; height: 36px; }
:root[data-theme="dark"] .rt-thanks-ic { background: #16352a; color: #6febaa; }
@keyframes starPop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1.06); } }
@keyframes burst { 0% { opacity: 0; transform: translate(0, 10px) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
@media (prefers-reduced-motion: reduce) { .rate2 .stars button.on, .rt-burst span, .rt-thanks-ic { animation: none; } .rt-burst { display: none; } }

.rate2 .stars.done { display: flex; justify-content: center; gap: 4px; margin: 0 0 10px; }
.rate2 .stars.done span { width: 26px; height: 26px; color: #ffb703; animation: starPop .35s cubic-bezier(.3,1.8,.5,1) calc(var(--k) * 70ms) both; }
.rate2 .stars.done svg { width: 100%; height: 100%; fill: currentColor; }
.chips-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rate2 .reason { text-align: center; padding: 10px 8px; }
@media (max-width: 340px) { .chips-wrap { grid-template-columns: 1fr; } }
.bs-name { position: relative; margin-top: 24px; color: #fff; font-size: 44px; font-weight: 900; line-height: 1.3; letter-spacing: 0; clip-path: inset(0 0 0 100%); transform: translateY(10px); animation: bsName .75s cubic-bezier(.3,.9,.3,1) 2.05s forwards; }
@keyframes bsName { to { clip-path: inset(0 0 0 0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .bs-name { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* ---------- inline validation: «this is what's missing» ---------- */
.fld.f-err .inp, .fld.f-err .picker, .fld.f-err .seg, .fld.f-err .sel-wrap .inp { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(224, 49, 49, .14); background-color: var(--red-soft); }
.fld.f-err > .lbl { color: var(--red); }
.err-msg { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--red); font-size: calc(13.5px * var(--fs, 1)); font-weight: 700; line-height: 1.6; animation: errIn .22s ease both; }
.err-msg .ic { width: 17px; height: 17px; flex: none; }
.f-shake { animation: fShake .42s cubic-bezier(.36,.07,.19,.97) both; }
.f-pulse { position: relative; animation: fPulse 1.2s ease-in-out 2; border-color: var(--primary) !important; color: var(--primary) !important; }
.req { color: var(--red); margin-inline-start: 2px; }
.empty-slot { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 10px; border: 1.5px dashed var(--line-2); border-radius: 18px; background: var(--surface); color: var(--text-2); flex-wrap: wrap; }
.empty-slot > .ic { width: 30px; height: 30px; color: var(--primary); flex: none; }
.empty-slot .tx { flex: 1; min-width: 180px; display: grid; gap: 2px; }
.empty-slot b { color: var(--text); font-size: calc(14.5px * var(--fs, 1)); }
.empty-slot span { font-size: calc(13px * var(--fs, 1)); line-height: 1.7; }
.empty-slot.f-err { border-color: var(--red); border-style: solid; background: var(--red-soft); }
.empty-slot.f-err > .ic { color: var(--red); }
.empty-slot .err-msg { flex-basis: 100%; margin-top: 2px; }
@keyframes fShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
@keyframes fPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(6, 115, 255, 0); } 50% { box-shadow: 0 0 0 6px rgba(6, 115, 255, .22); } }
@keyframes errIn { from { opacity: 0; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .f-shake, .f-pulse, .err-msg { animation: none; } }
.inp.f-err { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(224, 49, 49, .14); background-color: var(--red-soft); }

/* ---------- one line language: no more heavy black outlines ----------
   segmented controls, filter chips and outline buttons used 1.5px near-black borders (and a black divider inside the
   segmented control) while every card and field uses soft hairlines — they looked misplaced next to each other. */
.seg { border: 1px solid var(--line); background: var(--surface-3); padding: 4px; gap: 4px; border-radius: 18px; height: 50px; box-sizing: border-box; overflow: visible; }
:root[data-theme="dark"] .seg { border-color: var(--line); }
.seg button, :root[data-theme="dark"] .seg button + button, .seg button + button { border: 0; border-radius: 14px; color: var(--text-2); transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.seg button.on { background: var(--surface); color: var(--primary); box-shadow: 0 1px 2px rgba(18, 40, 80, .08), 0 4px 12px rgba(18, 40, 80, .08); }
:root[data-theme="dark"] .seg button.on { background: var(--surface-2); box-shadow: none; outline: 1px solid var(--line-2); }
.chip, :root[data-theme="dark"] .chip { border: 1.5px solid var(--line-2); color: var(--text-2); background: var(--surface); }
.chip.on { background: var(--primary-tint); border-color: var(--primary); color: var(--primary); }
:root[data-theme="dark"] .chip.on { background: var(--primary-soft); }
.btn-outline, :root[data-theme="dark"] .btn-outline { border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text); }
.btn-outline:active { background: var(--surface-2); }
.mini-add { border-color: color-mix(in srgb, var(--primary) 35%, var(--line-2)); background: var(--surface); }
/* text buttons with an icon: icon and label on one line (the icon used to sit on its own line above the label) */
.btn-text { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-text .ic { width: 20px; height: 20px; flex: none; }

/* ---------- banks ---------- */
.bank-badge { flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--bc, var(--surface-3)); color: #fff; font-weight: 900; line-height: 1; letter-spacing: -.3px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); overflow: hidden; }
.bank-badge.none { background: var(--surface-3); color: var(--text-3); box-shadow: none; }
.bank-badge.none .ic { width: 55%; height: 55%; }
.bank-badge.logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.bank-badge.logo img { width: 78%; height: 78%; object-fit: contain; }
.bank-pick { gap: 12px; }
.bank-pick .tx span { font-size: calc(12.5px * var(--fs, 1)); }
.grid2 .bank-pick { padding-inline: 10px; }
.grid2 .bank-pick .tx span { display: none; }
.grid2 .bank-pick .bank-badge { width: 32px !important; height: 32px !important; }
.bank-list { display: grid; gap: 6px; max-height: 60vh; overflow-y: auto; }
.bank-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: start; }
.bank-row b { flex: 1; font-size: calc(15px * var(--fs, 1)); }
.bank-row.on { border-color: var(--primary); background: var(--primary-tint); }
.bank-row .ic { width: 20px; height: 20px; color: var(--primary); }
.inp.mono, .mono { font-family: Vazirmatn, ui-monospace, monospace; font-feature-settings: "tnum"; letter-spacing: .5px; direction: ltr; }
.bk-hint { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; line-height: 1.7; color: var(--text-3); }
.bk-hint .ic { width: 17px; height: 17px; flex: none; margin-top: 3px; }
.bk-hint.s-ok { color: var(--green); font-weight: 700; }
.bk-hint.s-error { color: var(--red); font-weight: 700; }
.bk-hint.s-typing { color: var(--text-2); }
.bk-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.btn-text.sm { height: 36px; font-size: calc(13.5px * var(--fs, 1)); }
.btn-text.sm .ic { width: 17px; height: 17px; }
.f-flash { animation: fFlash 1.1s ease; }
@keyframes fFlash { 0% { box-shadow: 0 0 0 0 rgba(47, 199, 122, 0); } 30% { box-shadow: 0 0 0 5px rgba(47, 199, 122, .35); } 100% { box-shadow: 0 0 0 0 rgba(47, 199, 122, 0); } }
.bank-info { padding: 14px 16px; }
.bi-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.bi-head b { font-size: calc(16px * var(--fs, 1)); }
.bi-head span { color: var(--text-2); font-size: calc(13px * var(--fs, 1)); }
.bank-info .btn { margin-top: 10px; width: 100%; }
/* bank tools */
.bt-lead { margin: 0 0 12px; color: var(--text-2); line-height: 1.9; }
.bt-quota { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: var(--primary-tint); color: var(--primary); font-weight: 700; font-size: calc(13.5px * var(--fs, 1)); margin-bottom: 14px; }
.bt-quota > .ic { width: 18px; height: 18px; flex: none; }
.bt-quota span { flex: 1; line-height: 1.7; }
.bt-quota.empty { background: var(--red-soft); color: var(--red); }
.bt-result { border: 1px solid var(--line); border-radius: 18px; padding: 6px 14px; margin: 4px 0 14px; background: var(--surface); animation: errIn .25s ease both; }
.bt-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.bt-row:last-child, .bt-result .btn { border-bottom: 0; }
.bt-row > span { color: var(--text-3); min-width: 44px; font-size: calc(13px * var(--fs, 1)); }
.bt-row > b { flex: 1; font-size: calc(15px * var(--fs, 1)); word-break: break-all; }
.bt-bank { display: inline-flex; align-items: center; gap: 8px; }
.bt-mock { margin: 8px 0 2px; padding: 6px 10px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); font-size: calc(12.5px * var(--fs, 1)); font-weight: 700; }
.bt-note { color: var(--text-3); font-size: calc(12.5px * var(--fs, 1)); padding: 6px 0; }
.bt-result .btn { width: 100%; margin: 8px 0; }
.bt-err { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--red-soft); color: var(--red); font-weight: 700; margin: 4px 0 14px; line-height: 1.8; }
.bt-err .ic { width: 18px; height: 18px; flex: none; margin-top: 4px; }
.btn.loading { opacity: .7; pointer-events: none; }
.free-tag { font-size: 11px; font-weight: 800; color: var(--green); margin-inline-start: 4px; }
.bt-box .btn-primary { width: 100%; }
/* recent person suggestion under «انتخاب طرف حساب» */
.p-suggest { margin-top: 8px; }
.ps-h { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: calc(12.5px * var(--fs, 1)); font-weight: 700; margin-bottom: 6px; }
.ps-h .ic { width: 15px; height: 15px; }
.ps-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ps-row::-webkit-scrollbar { display: none; }
.ps-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line-2); font-weight: 700; font-size: calc(13.5px * var(--fs, 1)); max-width: 230px; }
.ps-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-chip.first { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); }
.bt-row > b.mono { word-break: keep-all; overflow-wrap: normal; text-align: left; line-height: 1.8; }
.bt-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 16px 14px; }
.bt-tab { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); text-align: start; min-height: 64px; }
.bt-tab .sq { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.bt-tab .sq .ic { width: 20px; height: 20px; }
.bt-tab b { font-size: calc(13.5px * var(--fs, 1)); line-height: 1.6; font-weight: 800; }
.bt-tab .free-tag { position: absolute; top: 6px; inset-inline-end: 8px; margin: 0; }
.bt-tab.on { border-color: var(--primary); background: var(--primary-tint); }
.bt-tab.on .sq { background: var(--primary); color: #fff; }
.bank-badge { white-space: nowrap; letter-spacing: -.5px; }
.bank-badge:not(.none):not(.logo) { color: #fff !important; font-weight: 900 !important; }
