/* The shop's Mini App (package 2). Brand: emerald green + gold, Vazirmatn. Light and dark follow Telegram. */
@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* package 2d (owner 1405/09/07): the same tokens as the shop's customer site (gold-customer-platform wwwroot:
   theme-c.css «look c» and signin.css): green #1f6b4f buttons, amber/gold accents, off-white canvas; and its dark
   scheme. Light or dark still follows Telegram (app.js applyTheme). */
:root {
  color-scheme: light;
  --bg: #f3f5f3; --bg-2: #eff2f0;
  --surface: #fff; --surface-2: #f7f8f7; --surface-3: #eceeed;
  --text: #111714; --text-2: #4b544f; --muted: #68706b;
  --line: rgba(18, 26, 21, .07); --line-2: rgba(18, 26, 21, .12);
  --green: #1f6b4f; --green-2: #164f3a; --green-soft: #e5f0ea;
  --gold: #c08528; --gold-2: #8a5b17; --gold-hi: #c9a04a; --gold-soft: #f8ecd6;
  --on-gold: #fff; --on-green: #fff;
  --danger: #b23a2f; --danger-soft: #f9e5e2;
  --glass: rgba(255, 255, 255, .78); --glass-line: rgba(18, 26, 21, .07);
  --shadow: 0 1px 2px rgba(16, 24, 20, .04), 0 10px 28px -18px rgba(16, 24, 20, .16);
  --shadow-2: 0 1px 2px rgba(16, 24, 20, .05), 0 18px 36px -18px rgba(16, 24, 20, .22);
  --overlay: rgba(10, 14, 12, .45);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c110f; --bg-2: #0d1210;
  --surface: #131a17; --surface-2: #18201c; --surface-3: #1b2420;
  --text: #edf2ee; --text-2: #b6c0ba; --muted: #8d9892;
  --line: rgba(255, 255, 255, .06); --line-2: rgba(255, 255, 255, .11);
  --green: #3aa077; --green-2: #4bb98b; --green-soft: rgba(58, 160, 119, .15);
  --gold: #d9a24a; --gold-2: #d9a24a; --gold-hi: #d9a24a; --gold-soft: rgba(217, 162, 74, .15);
  --on-gold: #0c110f; --on-green: #0c110f;
  --danger: #e07468; --danger-soft: rgba(224, 116, 104, .15);
  --glass: rgba(19, 26, 23, .8); --glass-line: rgba(255, 255, 255, .08);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -18px rgba(0, 0, 0, .6);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .35), 0 20px 40px -18px rgba(0, 0, 0, .7);
  --overlay: rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.75 "Vazirmatn", Tahoma, sans-serif;
  min-height: 100vh;
  padding: 0 0 calc(96px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 40% at 100% 0, var(--gold-soft), transparent 60%),
    radial-gradient(90% 30% at 0 0, var(--green-soft), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
p, h1, h2, h3 { margin: 0; text-wrap: pretty; }
/* short notes break evenly: never a sentence tail alone on the last line */
.muted, .err, .guest p, .notice p, .lock p, .done p { text-wrap: balance; }
h1 { font-size: 21px; font-weight: 800; line-height: 1.5; }
h2 { font-size: 17px; font-weight: 750; }
h3 { font-size: 15px; font-weight: 700; }
.num { font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.page { max-width: 560px; margin: 0 auto; padding: 14px 16px 0; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.icon { width: 22px; height: 22px; flex: none; }

/* ---------- brand bar ---------- */
.brandbar { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; }
.monogram {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #145a45, #03251c 70%);
  color: var(--gold-hi); font-weight: 800; font-size: 15px; letter-spacing: .5px;
  box-shadow: inset 0 0 0 1.5px var(--gold-hi), var(--shadow);
}
.monogram img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.brandname { font-weight: 800; font-size: 16px; line-height: 1.4; }
.brandsub { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.grow { flex: 1; min-width: 0; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--green); color: var(--on-green); font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow);
}
.round {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.badge {
  position: absolute; top: -3px; left: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--gold); color: var(--on-gold); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}

/* ---------- glass search + chips ---------- */
.searchbar { position: sticky; top: 0; z-index: 5; margin: 0 -16px; padding: 8px 16px 8px;
  background: linear-gradient(180deg, var(--bg) 78%, transparent); }
.glass {
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--glass-line), var(--shadow);
}
.search {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 999px;
}
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.search .icon { color: var(--gold); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--surface); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line);
}
.chip.on { background: var(--green); color: var(--on-green); box-shadow: none; }

/* ---------- guest note ---------- */
.guest {
  display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; padding: 12px 14px; border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-soft), transparent), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.guest .icon { color: var(--gold); }
.guest p { font-size: 13.5px; line-height: 1.7; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 0; }
.card {
  position: relative; display: flex; flex-direction: column; text-align: start; border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); overflow: hidden;
  transition: transform .2s var(--ease);
}
.card:active { transform: scale(.97); }
.pic {
  position: relative; aspect-ratio: 1 / 1.05; background:
    radial-gradient(circle at 50% 40%, var(--gold-soft), transparent 70%), var(--surface-2);
  display: grid; place-items: center; overflow: hidden;
}
.pic img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.pic img.ready { opacity: 1; }
.pic .ph { position: absolute; color: var(--gold); opacity: .55; width: 40px; height: 40px; }
.code-tag {
  position: absolute; z-index: 2; top: 8px; right: 8px; padding: 0 9px; height: 24px; border-radius: 999px; font-size: 11.5px;
  font-weight: 700; line-height: 24px; direction: ltr; background: rgba(3, 37, 28, .62); color: #f4f1eb;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.card .title { font-weight: 750; font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.card .sub { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.fee {
  align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px;
  border-radius: 999px; background: var(--gold-soft); color: var(--gold-2); font-size: 12.5px; font-weight: 750;
}
html[data-theme="dark"] .fee { color: var(--gold-hi); }
.fee.locked { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.fee.locked .icon { width: 14px; height: 14px; }
.fee s { opacity: .6; font-weight: 500; }
.empty { padding: 36px 12px; text-align: center; color: var(--muted); }
.more { display: block; width: 100%; height: 46px; margin: 4px 0 12px; border-radius: 14px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; color: var(--text-2); }
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2));
  background-size: 200% 100%; animation: shimmer 1.2s infinite linear; min-height: 220px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- lists, rows, panels ---------- */
.head { display: flex; align-items: center; gap: 10px; padding: 6px 0 12px; }
.panel { border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  padding: 14px; margin-bottom: 12px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.row + .row { border-top: 1px solid var(--line); }
.thumb { width: 58px; height: 58px; border-radius: 14px; flex: none; overflow: hidden; background: var(--surface-2);
  display: grid; place-items: center; position: relative; }
.thumb img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.thumb img.ready { opacity: 1; }
.thumb .ph { position: absolute; width: 26px; height: 26px; color: var(--gold); opacity: .5; }
.line-title { font-weight: 700; font-size: 14.5px; line-height: 1.55; }
.line-sub { font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.row.top { align-items: flex-start; }
.when { unicode-bidi: isolate; direction: ltr; display: inline-block; color: var(--muted); }
.row .grow .status { display: inline-block; margin-top: 6px; }
.status { flex: none; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.status.pending, .status.pending_to_confirm_by_guarantor { background: var(--gold-soft); color: var(--gold-2); }
.status.approved, .status.registered { background: var(--green-soft); color: var(--green-2); }
.status.rejected { background: var(--danger-soft); color: var(--danger); }
html[data-theme="dark"] .status.pending, html[data-theme="dark"] .status.pending_to_confirm_by_guarantor { color: var(--gold-hi); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.kv + .kv { border-top: 1px dashed var(--line); }
.kv b { font-weight: 750; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; margin-top: 4px;
  border-top: 1px solid var(--line-2); font-weight: 800; font-size: 16px; }
.panel > .total:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.total b { color: var(--gold-2); }
html[data-theme="dark"] .total b { color: var(--gold-hi); }

/* ---------- wallet + account ---------- */
.goldcard {
  position: relative; overflow: hidden; border-radius: 24px; padding: 18px; margin-bottom: 12px; color: #f4f1eb;
  background: radial-gradient(130% 120% at 100% 0, #1f6b52 0, #0a3a2c 45%, #03251c 100%);
  box-shadow: inset 0 0 0 1px rgba(241, 213, 141, .35), var(--shadow-2);
}
.goldcard::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 213, 141, .35), transparent 65%); }
.goldcard .label { font-size: 13px; color: #cfe0d6; }
.goldcard .amount { font-size: 30px; font-weight: 800; color: #f1d58d; line-height: 1.4; }
.goldcard .amount small { font-size: 14px; font-weight: 600; margin-inline-start: 6px; color: #e8d9ae; }
.goldcard .who { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.notice { border-radius: var(--radius); padding: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.notice h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.notice h3 .icon { color: var(--gold); }
.phone {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.phone code { flex: 1; direction: ltr; text-align: left; font: 700 17px/1.4 "Vazirmatn", monospace; letter-spacing: .5px; }
.small-btn .icon { width: 16px; height: 16px; }
.small-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--green); color: var(--on-green); font-size: 13px; font-weight: 700; }
.lock { text-align: center; padding: 36px 18px; }
.lock .seal { margin: 0 auto 12px; }

/* ---------- forms ---------- */
label.field { display: block; margin-bottom: 12px; }
label.field span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.input {
  width: 100%; height: 52px; border-radius: 14px; border: 0; outline: 0; padding: 0 14px; font-size: 17px; font-weight: 700;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2);
}
.input:focus { box-shadow: inset 0 0 0 2px var(--gold); }
.err { color: var(--danger); font-size: 13px; min-height: 22px; line-height: 1.7; }
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 14px; border-radius: 14px; text-align: start;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 650;
}
.choice::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px var(--line-2); }
.choice.on { box-shadow: inset 0 0 0 2px var(--gold); background: var(--gold-soft); }
.choice.on::before { box-shadow: inset 0 0 0 5px var(--gold); }
.weights { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wchip { min-width: 74px; height: 40px; padding: 0 12px; border-radius: 12px; font-weight: 700; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2); }
.wchip.on { background: var(--gold); color: var(--on-gold); box-shadow: none; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); }
.stepper button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.stepper button .icon { width: 18px; height: 18px; }
.stepper output { min-width: 34px; text-align: center; font-weight: 800; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; border-radius: 16px;
  font-weight: 800; font-size: 15.5px; transition: transform .15s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--green); color: var(--on-green); box-shadow: 0 12px 24px -12px rgba(22, 79, 58, .75); }
.btn.green { background: var(--green); color: var(--on-green); }
html[data-theme="dark"] .btn.green { background: #13744c; }
.btn.ghost { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.icon-btn.del { color: var(--danger); }

/* ---------- bottom sheet ---------- */
#sheet { position: fixed; inset: 0; z-index: 30; }
#sheet[hidden] { display: none; }
.scrim { position: absolute; inset: 0; background: var(--overlay); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: absolute; inset: auto 0 0 0; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 28px 28px 0 0; background: var(--surface); box-shadow: var(--shadow-2);
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); animation: up .38s var(--ease);
  max-width: 560px; margin: 0 auto;
}
@keyframes up { from { transform: translateY(100%); } }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 12px; }
.sheet .gallery { margin: 0 -18px 14px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sheet .gallery::-webkit-scrollbar { display: none; }
.sheet .gallery .pic { flex: 0 0 100%; aspect-ratio: 1 / .9; scroll-snap-align: center; }
.dots { display: flex; justify-content: center; gap: 6px; margin: -6px 0 12px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width .2s; }
.dots i.on { width: 18px; background: var(--gold); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.tag { padding: 0 10px; height: 26px; border-radius: 999px; font-size: 12.5px; line-height: 26px; background: var(--surface-2); color: var(--text-2); }
.tag.ltr { direction: ltr; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.spec { border-radius: 16px; padding: 10px 8px; text-align: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.spec .icon { width: 20px; height: 20px; color: var(--gold); margin: 0 auto 2px; display: block; }
.spec small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.spec b { display: block; font-size: 14.5px; line-height: 1.6; }
.spec b s { font-weight: 500; opacity: .55; font-size: 12px; }
.spec.locked b { font-size: 12px; font-weight: 600; color: var(--muted); }
.section-title { font-size: 13px; font-weight: 700; color: var(--text-2); margin: 4px 0 8px; }
.desc { font-size: 14px; color: var(--text-2); margin-bottom: 14px; }
.sheet-foot { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); margin: 12px -18px 0;
  padding: 12px 18px calc(18px + env(safe-area-inset-bottom)); background: var(--surface);
  box-shadow: 0 -14px 14px -6px var(--surface); }
.page .sheet-foot { position: static; margin: 12px 0 0; padding: 0; background: none; box-shadow: none; }
.final { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 14px; }
.final b { font-size: 18px; color: var(--gold-2); }
html[data-theme="dark"] .final b { color: var(--gold-hi); }
.done { text-align: center; padding: 10px 4px 4px; }
.seal { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; margin: 6px auto 12px;
  background: radial-gradient(circle at 35% 30%, #f1d58d, #c99a3d); color: #2a1e05; box-shadow: 0 14px 30px -12px rgba(185, 143, 58, .9); }
.seal .icon { width: 34px; height: 34px; }
.seal.green { background: radial-gradient(circle at 35% 30%, #1f8f63, #0b3a2c); color: #f1d58d; }
.tracking { margin: 14px auto; padding: 12px; border-radius: 16px; background: var(--surface-2); max-width: 280px; }
.tracking span { display: block; font-size: 12.5px; color: var(--muted); }
.tracking b { font-size: 26px; letter-spacing: 1px; }

/* ---------- floating glass tab bar ---------- */
#tabs {
  position: fixed; z-index: 20; inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; max-width: 520px; margin: 0 auto;
  height: 66px; border-radius: 24px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px;
}
#tabs:empty { display: none; }
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 18px; font-size: 11px; font-weight: 650; color: var(--muted); transition: color .25s; }
.tab .icon { width: 23px; height: 23px; }
.tab.on { color: var(--on-green); }
.tab .badge { top: 0; left: 50%; margin-left: -30px; }
.pill { position: absolute; z-index: 0; top: 6px; bottom: 6px; width: calc((100% - 12px) / 5); right: 6px; border-radius: 18px;
  background: var(--green); transition: transform .4s var(--ease); box-shadow: 0 8px 18px -8px rgba(22, 79, 58, .6); }
html[data-theme="dark"] .pill { background: linear-gradient(180deg, #e7c46f, #c99a3d); }

/* ---------- toast + full-page notes ---------- */
#toast { position: fixed; z-index: 40; inset: calc(10px + env(safe-area-inset-top)) 16px auto 16px; max-width: 520px; margin: 0 auto;
  padding: 12px 16px; border-radius: 16px; background: var(--green); color: var(--on-green); font-weight: 650; font-size: 14px;
  box-shadow: var(--shadow-2); transform: translateY(-140%); transition: transform .35s var(--ease); }
#toast.show { transform: none; }
#toast.bad { background: #7a241c; color: #fff; }
.full { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.full p { color: var(--muted); margin-top: 6px; }

/* ---------------------------------------------------------------- package 2d */
/* the picture area alone shimmers while its picture is on the way; the card's text is already there */
.pic.loading, .thumb.loading { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2));
  background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.pic.loading .ph, .thumb.loading .ph { opacity: .25; }
/* «اتصال کند است؛ دوباره تلاش کنید» instead of endless skeletons */
.slow { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; padding: 28px 16px; text-align: center;
  color: var(--text-2); border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }
.slow p { text-wrap: balance; }
.slow .btn { width: auto; min-width: 140px; }
/* Persian text: numbers, codes and units keep their place inside a right-to-left line; no word alone on a line */
bdi, .num, .ltr { unicode-bidi: isolate; }
.title, .sub, .line-title, .line-sub, .desc, .tag, .kv span, .toast, .fee { text-wrap: pretty; }
.nb { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .pic.loading, .thumb.loading, .skeleton { animation: none; } }
