/* لەنگە — ڕووکاری ئەپ (v4) */
@font-face { font-family: 'NRT'; src: url('fonts/nrt-bold.woff2') format('woff2'), url('fonts/nrt-bold.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  /* ڕووکاری ڕەش و زێڕین */
  --ground: #0E0E10;
  --card: #18181B;
  --ink: #FAFAFA;
  --ink2: #D4D4D8;
  --on-ink: #111113;
  --muted: #A1A1AA;
  --line: #27272A;
  --line2: #3F3F46;
  --chip: #232327;
  --red: #E8B04B;
  --red-dark: #C99532;
  --red-soft: #2A2416;
  --kraft: #2A2416;
  --danger: #F87171;
  --danger-soft: #2B1414;
  --amber: #E8B04B;
  --amber-soft: #2A2416;
  --green: #22A05A;
  --green-bg: #13281B;
  --green-ink: #4ADE80;
  --cream: #FAFAFA;
  --cream-muted: #71717A;
  --dark2: #27272A;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ground); }
body { color: var(--ink); font-family: 'NRT', Tahoma, sans-serif; font-size: 14px; font-synthesis: none; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
button, .pc, .nav, .tabs, .chip, .pill { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.code, .price-xl { font-family: 'NRT', ui-monospace, monospace; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--red); }
img { display: block; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }

.app { max-width: 480px; min-height: 100%; height: 100vh; height: 100dvh; margin: 0 auto; position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--ground); }
.boot { flex: 1; display: flex; align-items: center; justify-content: center; }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scroll::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.hscroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pad { padding: 0 12px; }
.stack { display: flex; flex-direction: column; }
.g4 { gap: 4px; } .g6 { gap: 6px; } .g8 { gap: 8px; } .g10 { gap: 10px; } .g12 { gap: 12px; } .g14 { gap: 14px; } .g16 { gap: 16px; } .g18 { gap: 18px; } .g22 { gap: 22px; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.fs13 { font-size: 13px; } .fs14 { font-size: 14px; } .fs15 { font-size: 15px; }
.b7 { font-weight: 500; } .b8 { font-weight: 600; } .b9 { font-weight: 700; }
.lh { line-height: 1.75; }
.h1 { font-size: 22px; font-weight: 700; line-height: 1.45; margin: 0; }
.h2 { font-size: 16px; font-weight: 700; margin: 0; }
.h3 { font-size: 15px; font-weight: 700; margin: 0; }
.spacer { flex: 1; min-height: 8px; }
.scroll.stack > * { flex-shrink: 0; }
.scroll.stack > .spacer { flex-shrink: 1; }

/* دووگمەکان */
.btn { height: 48px; border-radius: 12px; border: 0; font-size: 15px; font-weight: 600; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.985); }
.btn-red { background: var(--red); color: var(--on-ink); }
.btn-red:active { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-amber { background: var(--red); color: var(--on-ink); }
.btn-outline { background: var(--card); border: 1px solid var(--line2); color: var(--ink); }
.btn-off { background: var(--chip); color: var(--cream-muted); }
.btn-sm { height: 40px; font-size: 14px; border-radius: 10px; }
.btn-link { background: none; border: 0; padding: 0; height: 40px; color: var(--red); font-size: 14px; font-weight: 600; }
.btn-link.inline { height: auto; display: inline; font-size: inherit; text-decoration: underline; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.iconbtn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); position: relative; }
.iconbtn:active { background: var(--chip); }
.pill { flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--card); color: var(--ink2); border: 1px solid var(--line2); display: inline-flex; align-items: center; gap: 6px; }
.pill.on { background: var(--red); color: var(--on-ink); border-color: var(--red); }
.pill.dark { background: var(--red); color: var(--on-ink); border-color: var(--red); }
.pill.ghost { background: var(--card); }
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 6px; white-space: nowrap; align-self: flex-start; }
.chip-fit { background: var(--green-bg); color: var(--green-ink); }
.chip-plain { background: var(--chip); color: var(--ink2); }
.chip-amber { background: var(--amber); color: var(--on-ink); }
.chip-green { background: var(--green); color: #fff; }
.chip-red { background: var(--danger); color: var(--on-ink); }
.chip-dark { background: rgba(0,0,0,.7); color: #fff; }

/* خانەکان */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span:first-child { font-size: 13px; font-weight: 600; color: var(--ink2); }
.input { height: 48px; border-radius: 10px; background: var(--card); border: 1px solid var(--line2); outline: none; font-size: 15px; padding: 0 14px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,176,75,.12); }
.input.soft { font-size: 14px; }
textarea.input { height: 100px; padding: 10px 14px; resize: none; line-height: 1.8; }
select.input { appearance: auto; }
.phonebox, .pwbox { display: flex; align-items: center; height: 48px; border-radius: 10px; background: var(--card); border: 1px solid var(--line2); overflow: hidden; }
.phonebox { direction: ltr; }
.phonebox:focus-within, .pwbox:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,176,75,.12); }
.phonebox .cc { padding: 0 12px; height: 100%; display: flex; align-items: center; border-right: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--muted); }
.phonebox input { flex: 1; height: 100%; padding: 0 12px; border: 0; outline: none; background: transparent; font-size: 16px; font-weight: 500; letter-spacing: .5px; min-width: 0; }
.pwbox input { flex: 1; height: 100%; border: 0; outline: none; background: transparent; font-size: 15px; padding: 0 14px; direction: ltr; text-align: right; min-width: 0; }
.pwbox button { height: 100%; padding: 0 14px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; }
.otp { height: 60px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); outline: none; font-size: 28px; font-weight: 700; text-align: center; letter-spacing: 18px; direction: ltr; padding-left: 18px; width: 100%; }
.otp:focus { border-color: var(--red); }
.hint-ok { color: var(--green-ink); }

/* سەرپەڕ */
.topbar { height: 52px; flex-shrink: 0; padding: 0 6px; padding-top: var(--safe-t); box-sizing: content-box; display: flex; align-items: center; justify-content: space-between; background: var(--card); border-bottom: 1px solid var(--line); }
.topbar .h2 { font-size: 16px; }
.hdr { flex-shrink: 0; background: var(--card); padding-top: var(--safe-t); border-bottom: 1px solid var(--line); }
.hdr-top { height: 52px; padding: 0 12px 0 6px; }
.brand { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 800; color: var(--red); letter-spacing: -.2px; }
.walletchip { height: 32px; padding: 0 10px; border-radius: 999px; border: 0; background: var(--chip); display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.walletchip svg { width: 16px; height: 16px; }
.search { margin: 0 12px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--chip); }
.search input { flex: 1; background: transparent; border: 0; outline: none; font-size: 14px; min-width: 0; }
.tabs { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 0 14px; margin-top: 6px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex-shrink: 0; height: 40px; border: 0; background: none; padding: 0; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--red); font-weight: 700; border-bottom-color: var(--red); }
.dot-badge { position: absolute; top: 8px; left: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--card); }

/* لیستی سەرەکی */
.toolbar { padding: 12px 12px 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sechead { padding: 14px 12px 8px; display: flex; align-items: baseline; justify-content: space-between; }
.sechead h2 { font-size: 16px; font-weight: 700; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 12px; }
.rail { display: flex; gap: 10px; overflow-x: auto; padding: 0 12px 2px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > .pc { flex: 0 0 42%; }
.pc { width: 100%; border: 1px solid var(--line); padding: 0; background: var(--card); border-radius: 12px; overflow: hidden; text-align: right; display: flex; flex-direction: column; }
.pc .ph { position: relative; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pc .ph img, .gal img, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pc .ph .chip { position: absolute; top: 8px; right: 8px; font-size: 11px; padding: 2px 7px; border-radius: 5px; }
.pc .cd { position: absolute; bottom: 8px; right: 8px; left: auto; height: 24px; padding: 0 8px; border-radius: 6px; background: rgba(24,24,27,.72); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; backdrop-filter: blur(4px); }
.pc .cd.urgent { background: var(--danger); color: var(--on-ink); }
.pc .meta { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.pc .ttl { font-size: 13px; font-weight: 500; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc .pr { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pc .pr b { font-size: 15px; font-weight: 700; color: var(--red); }
.pc .pr s { font-size: 11px; color: var(--cream-muted); }
.pc .sub { font-size: 11px; color: var(--muted); }
.ended { opacity: .55; filter: grayscale(.4); }
.timer.urgent { color: var(--red); }

/* لاپەڕەی پارچە */
.gal-wrap { position: relative; aspect-ratio: 1 / 1; width: 100%; flex-shrink: 0; }
.gal { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal::-webkit-scrollbar { display: none; }
.gal > div { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.gal-top { position: absolute; top: calc(10px + var(--safe-t)); left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.fab { pointer-events: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(14,14,16,.7); color: #fff; backdrop-filter: blur(6px); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.fab.on { color: var(--red); }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); transition: width .2s; }
.dots span.on { width: 16px; background: #fff; }
.sec { background: var(--card); padding: 14px 16px; }
.sec + .sec { margin-top: 8px; }
.price-xl { font-size: 26px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.bigtimer { font-weight: 700; border-radius: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 15px; padding: 5px 10px; background: var(--amber-soft); color: var(--red); }
.bigtimer.urgent { background: var(--danger); color: var(--on-ink); }
.bigtimer.done { background: var(--chip); color: var(--muted); }
.save { font-size: 12px; font-weight: 600; color: var(--green-ink); background: var(--green-bg); padding: 2px 6px; border-radius: 5px; }
.inforow { display: flex; align-items: center; gap: 12px; }
.inforow .ic { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--chip); color: var(--ink2); }
.inforow .ic.g { background: var(--green-bg); color: var(--green-ink); }
.inforow .ic.r { background: var(--red-soft); color: var(--red); }
.measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.measures > div { padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin: -1px 0 0 -1px; }
.hist { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hist:last-child { border-bottom: 0; }
.hist .av { width: 30px; height: 30px; border-radius: 50%; background: var(--chip); color: var(--ink2); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hist.top .av { background: var(--green-bg); color: var(--green-ink); }
.actionbar { flex-shrink: 0; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + var(--safe-b)); display: flex; align-items: center; gap: 14px; }
.actionbar .btn { flex: 1.4; }
.statusbar { flex-shrink: 0; padding: 12px 16px calc(12px + var(--safe-b)); font-size: 14px; font-weight: 600; text-align: center; border-top: 1px solid var(--line); }
.statusbar.win { background: var(--green-bg); color: var(--green-ink); }
.statusbar.off { background: var(--card); color: var(--muted); }
.box { padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.darkbox { padding: 16px; border-radius: 12px; background: var(--chip); color: var(--ink); }
.guarantee { display: flex; gap: 12px; align-items: center; }
.dashed { padding: 14px; border-radius: 10px; background: var(--chip); font-size: 13px; color: var(--muted); line-height: 1.8; }

/* لیستەکان */
.listrow { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: var(--card); text-align: right; width: 100%; }
.group { background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.group > .listrow:last-child { border-bottom: 0; }
.thumb { width: 60px; height: 72px; flex-shrink: 0; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.menu { border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.menu > button, .menu > a { min-height: 50px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 14px; text-align: right; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink); text-decoration: none; }
.menu > button:active, .menu > a:active { background: var(--chip); }
.menu > :last-child { border-bottom: 0; }
.menu svg { color: var(--ink2); flex-shrink: 0; }
.menu .small { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { color: var(--cream-muted); font-size: 18px; line-height: 1; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line2); text-align: right; width: 100%; }
.opt.on { border: 1.5px solid var(--red); background: var(--red-soft); }
.radio { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line2); }
.opt.on .radio { border: 6px solid var(--red); }
.sizechip { min-width: 52px; height: 42px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 500; background: var(--card); border: 1px solid var(--line2); }
.sizechip.on { background: var(--red); color: var(--on-ink); border-color: var(--red); }
.amt { height: 46px; border-radius: 10px; font-size: 15px; font-weight: 600; background: var(--card); border: 1px solid var(--line2); }
.amt.on { background: var(--red); color: var(--on-ink); border-color: var(--red); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.paybox { padding: 12px 14px; border-radius: 10px; background: var(--amber-soft); border: 1px solid #4A3B1C; font-size: 13px; line-height: 1.9; color: #F3D9A4; }
.sum { padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sum > div { display: flex; justify-content: space-between; }
.warn { padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: #FCA5A5; font-size: 13px; line-height: 1.8; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.tl { display: flex; gap: 12px; align-items: flex-start; }
.tl .dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; background: var(--card); border: 2px solid var(--line2); }
.tl .dot.on { background: var(--green); border-color: var(--green); }
.tl .ln { width: 2px; flex: 1; min-height: 24px; background: var(--line); }
.tl .ln.on { background: var(--green); }
.pagehead { padding: calc(14px + var(--safe-t)) 16px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.pagehead h1 { font-size: 20px; font-weight: 700; margin: 0; }
.sect { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 4px; margin-bottom: -6px; }
.invite { display: flex; align-items: center; gap: 12px; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 17px; font-weight: 700; letter-spacing: 1px; }

/* شریتی خوارەوە */
.nav { flex-shrink: 0; background: var(--card); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nav button { height: 56px; border: 0; background: transparent; color: var(--cream-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; position: relative; }
.nav button.on { color: var(--ink); font-weight: 700; }
.nav button.on svg { color: var(--red); }
.nav .badge { position: absolute; top: 5px; left: calc(50% - 20px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: var(--on-ink); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--card); }

/* سەرلێدان */
.toast { border: 1px solid var(--line2); position: absolute; bottom: calc(76px + var(--safe-b)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; padding: 10px 16px; border-radius: 10px; background: rgba(39,39,42,.97); color: #fff; font-size: 13px; font-weight: 500; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.18); z-index: 60; line-height: 1.7; animation: up .2s ease-out; }
.toast.err { background: #7F1D1D; border-color: #991B1B; }
@keyframes up { from { opacity: 0; transform: translate(-50%, 8px); } }
.sheet-wrap { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-wrap .scrim { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.65); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; background: var(--card); border-radius: 16px 16px 0 0; padding: 8px 16px calc(20px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; max-height: 88%; overflow-y: auto; animation: slide .22s ease-out; }
.sheet h2 { font-size: 17px !important; font-weight: 700 !important; }
@keyframes slide { from { transform: translateY(30px); opacity: .6; } }
.sheet .grab { align-self: center; width: 36px; height: 4px; border-radius: 2px; background: var(--line2); }
.busy { position: absolute; inset: 0; z-index: 70; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 32px; }
.busy > div { background: var(--card); border-radius: 14px; padding: 22px 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.spin { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--chip); border-top-color: var(--red); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { margin: 24px 12px; padding: 32px 20px; border-radius: 12px; background: var(--card); font-size: 14px; color: var(--muted); line-height: 1.8; text-align: center; }
.skeleton { background: linear-gradient(90deg, #1C1C20, #26262B, #1C1C20); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.tick { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; border-radius: 6px; border: 1.5px solid var(--line2); background: var(--card); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.tick.on { background: var(--red); border-color: var(--red); color: var(--on-ink); }
.auth { background: var(--card); }

@media (min-width: 520px) {
  body { background: #050506; }
  .app { box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(0,0,0,.08); }
}
.app.white { background: var(--card); }
.statusbar.win { border-top-color: #1E3A28; }
.avatar { border: 1px solid #4A3B1C; }
.dot-badge { border-color: var(--card); }
img { color: transparent; }

/* ===== v4 ===== */
/* ڕووکاری ڕووناک */
:root[data-theme="light"] {
  --ground: #F5F3EF; --card: #FFFFFF; --ink: #17140F; --ink2: #3D372D; --on-ink: #FFFFFF; --muted: #7A7366;
  --line: #E8E3D9; --line2: #D5CEC0; --chip: #F0ECE4; --red: #A8761A; --red-dark: #8C6212; --red-soft: #F7EEDC; --kraft: #F7EEDC;
  --danger: #C2410C; --danger-soft: #FDECE4; --amber: #A8761A; --amber-soft: #F7EEDC; --green: #15803D; --green-bg: #E6F4EA; --green-ink: #166534;
  --cream: #FFFFFF; --cream-muted: #A49C8E; color-scheme: light;
}
:root[data-theme="light"] .paybox { color: #5C4310; border-color: #E8D6AE; }
:root[data-theme="light"] .warn { color: #9A3412; }
:root[data-theme="light"] .skeleton { background: linear-gradient(90deg, #ECE8E0, #F7F5F0, #ECE8E0); background-size: 200% 100%; }
:root[data-theme="light"] .toast { background: rgba(23,20,15,.94); }
:root[data-theme="light"] .chip-red, :root[data-theme="light"] .bigtimer.urgent, :root[data-theme="light"] .pc .cd.urgent { color: #fff; }
@media (min-width: 520px) { :root[data-theme="light"] body { background: #E7E3DB; } }

/* سەرپەڕ */
.hello { font-size: 11px; color: var(--muted); margin-top: -2px; }
.brandbox { display: flex; flex-direction: column; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 10px 12px 0; background: var(--chip); border-radius: 12px; }
.seg button { height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s, color .2s; }
.seg button .n { font-size: 11px; opacity: .7; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.seg button.on .n { color: var(--red); opacity: 1; }
.sortsel { height: 32px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--ink2); font-size: 12px; padding: 0 10px; appearance: none; -webkit-appearance: none; text-align: center; }

/* کارت */
.pc { cursor: pointer; transition: transform .12s; }
.pc:active { transform: scale(.98); }
.pc .heart { position: absolute; top: 6px; left: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); z-index: 2; }
.pc .heart.on { color: #FF5A6A; }
.pc .ver { position: absolute; bottom: 8px; left: 8px; height: 22px; padding: 0 6px; border-radius: 6px; background: rgba(0,0,0,.6); color: var(--red); font-size: 11px; display: inline-flex; align-items: center; gap: 3px; backdrop-filter: blur(4px); }
.pc .brandl { font-size: 10px; letter-spacing: .4px; color: var(--red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cond { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.cond i { width: 5px; height: 5px; border-radius: 50%; background: var(--line2); display: inline-block; }
.cond i.on { background: var(--green-ink); }
.pc .ph img { opacity: 0; transition: opacity .35s; }
.pc .ph img.ld { opacity: 1; }
.pc .ph .chip { right: 8px; left: auto; }

/* لاپەڕەی پارچە */
.fab.on { color: #FF5A6A; }
.fabs { display: flex; gap: 8px; }
.brand-xl { font-size: 12px; color: var(--red); letter-spacing: .5px; }
.condrow .cond i { width: 7px; height: 7px; }

/* دڵخوازەکان و ئەوانی تر */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.ptr { height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; transition: height .2s; }
.ptr.show { height: 44px; }
.ptr .spin { width: 20px; height: 20px; border-width: 2px; }
.netbar { flex-shrink: 0; background: var(--danger-soft); color: var(--danger); font-size: 12px; text-align: center; padding: 6px; padding-top: calc(6px + var(--safe-t)); }
.installbar { margin: 10px 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--red-soft); border: 1px solid var(--line2); display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1.7; }
.installbar .x { border: 0; background: none; color: var(--muted); width: 28px; height: 28px; font-size: 18px; }
.themeseg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--chip); border-radius: 10px; min-width: 190px; }
.themeseg button { height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; }
.themeseg button.on { background: var(--card); color: var(--ink); }
.menu .rowstatic { min-height: 54px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.danger-link { color: var(--danger) !important; }
.screen-in { animation: scrIn .22s ease-out; }
@keyframes scrIn { from { opacity: .4; transform: translateX(-10px); } }
.nav { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .screen-in, .bump, .toast, .sheet { animation: none !important; } }

/* ===== v5: شاشەی بەخێرهاتن ===== */
.welcome { gap: 22px; background: radial-gradient(120% 60% at 50% 0%, var(--red-soft) 0%, transparent 60%), var(--ground); }
.app.white .welcome { background: radial-gradient(120% 60% at 50% 0%, var(--red-soft) 0%, transparent 60%), var(--ground); }
.wl-name { font-size: 46px; color: var(--red); line-height: 1.15; }
.wl-line { width: 56px; height: 2px; border-radius: 2px; background: var(--red); opacity: .7; margin: 8px 0 4px; }
.wl-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.wl-card .themeseg { min-width: 0; }
.wl-card .themeseg button { height: 36px; font-size: 13px; }
.wl-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.wl-feats > div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.wl-feats svg { color: var(--red); }
.wl-city { align-self: center; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); font-size: 12px; }
.wl-city svg { color: var(--red); }
[hidden] { display: none !important; }

/* ===== v7: نەخشە ===== */
.loccard { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--red); background: var(--red-soft); color: var(--ink); text-align: right; }
.loccard .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: var(--on-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.loccard .ic svg { width: 20px; height: 20px; }
.loccard.on { border-style: solid; border-color: var(--line2); background: var(--card); }
.loccard.on .ic { background: var(--green-bg); color: var(--green-ink); }
.mapov { position: fixed; inset: 0; z-index: 100; max-width: 480px; margin: 0 auto; background: var(--ground); font-family: 'NRT', Tahoma, sans-serif; color: var(--ink); }
.mapov-map { position: absolute; inset: 0; background: #1c1c20; }
.mapov .leaflet-control-attribution { font-size: 9px; background: rgba(0,0,0,.45); color: #bbb; }
.mapov .leaflet-control-attribution a { color: #ddd; }
.mapov-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-100% + 3px)); z-index: 500; pointer-events: none; display: flex; flex-direction: column; align-items: center; transition: transform .15s; }
.mapov.moving .mapov-pin { transform: translate(-50%, calc(-100% - 10px)); }
.mapov-shadow { width: 14px; height: 5px; border-radius: 50%; background: rgba(0,0,0,.45); margin-top: -2px; }
.mapov-top { position: absolute; top: 0; left: 0; right: 0; z-index: 600; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--safe-t)) 12px 10px; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent); }
.mapov-title { color: #fff; font-size: 16px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.mapov-me { position: absolute; left: 14px; bottom: 210px; z-index: 600; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--card); color: var(--red); box-shadow: 0 4px 14px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
.mapov-card { position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; background: var(--card); border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -6px 24px rgba(0,0,0,.3); }
.mapov-label { min-height: 26px; font-size: 16px; display: flex; align-items: center; }
.mapov-err { color: var(--danger); font-size: 12px; min-height: 0; }
.mapov-err:empty { display: none; }
.mapov .leaflet-bottom { bottom: 190px; }

/* ===== v8: شاشەی کردنەوە (نزیکەی 4 چرکە) ===== */
#splash { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: #0B0B0C; color: #FAFAFA; font-family: 'NRT', Tahoma, sans-serif; overflow: hidden; transition: opacity .6s ease, transform .6s ease; }
:root[data-theme="light"] #splash { background: #F5F3EF; color: #17140F; }
#splash.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
.sp-glow { position: absolute; width: 520px; height: 520px; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(.4); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232,176,75,.28), rgba(232,176,75,.07) 55%, transparent); opacity: 0; animation: spGlow 2.4s .2s ease-out forwards, spBreath 3s 2.6s ease-in-out infinite alternate; }
:root[data-theme="light"] .sp-glow { background: radial-gradient(closest-side, rgba(232,176,75,.35), rgba(232,176,75,.1) 55%, transparent); }
.sp-dust { position: absolute; inset: 0; pointer-events: none; }
.sp-dust i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #E8B04B; opacity: 0; animation: spDust 4.5s linear infinite; }
.sp-dust i:nth-child(1) { left: 18%; animation-delay: .6s; } .sp-dust i:nth-child(2) { left: 32%; animation-delay: 1.4s; width: 2px; height: 2px; }
.sp-dust i:nth-child(3) { left: 47%; animation-delay: .9s; } .sp-dust i:nth-child(4) { left: 61%; animation-delay: 2s; width: 4px; height: 4px; }
.sp-dust i:nth-child(5) { left: 74%; animation-delay: 1.1s; width: 2px; height: 2px; } .sp-dust i:nth-child(6) { left: 86%; animation-delay: 2.4s; }
.sp-dust i:nth-child(7) { left: 25%; animation-delay: 2.9s; width: 2px; height: 2px; } .sp-dust i:nth-child(8) { left: 68%; animation-delay: .3s; }
.sp-rail { position: relative; width: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #E8B04B 18%, #FFE2A0 50%, #E8B04B 82%, transparent); animation: spRail .9s .15s cubic-bezier(.2,.8,.2,1) forwards; margin-bottom: -4px; }
.sp-hanger { position: relative; transform-origin: 50% 0; opacity: 0; animation: spSwing 2.2s .55s cubic-bezier(.25,1.7,.45,1) forwards; }
.sp-hanger svg path { stroke: #E8B04B; stroke-width: 4; stroke-dasharray: 160; stroke-dashoffset: 160; filter: drop-shadow(0 0 6px rgba(232,176,75,.45)); }
.sp-hook { animation: spDraw .6s .55s ease-out forwards; }
.sp-body { animation: spDraw 1s .95s ease-in-out forwards; }
.sp-name { position: relative; font-size: 58px; line-height: 1.15; margin-top: 6px; color: transparent;
  background: linear-gradient(100deg, #C99532 0%, #E8B04B 35%, #FFF1C9 50%, #E8B04B 65%, #C99532 100%); background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; clip-path: inset(0 0 0 100%);
  animation: spReveal .9s 1.8s cubic-bezier(.6,0,.2,1) forwards, spShine 1.6s 2.8s ease-in-out forwards; }
:root[data-theme="light"] .sp-name { background-image: linear-gradient(100deg, #8C6212 0%, #A8761A 35%, #F2CF85 50%, #A8761A 65%, #8C6212 100%); }
.sp-line { width: 0; height: 2px; border-radius: 2px; background: #E8B04B; opacity: .8; margin: 10px 0 8px; animation: spLine .7s 2.5s ease-out forwards; }
.sp-tag { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 17px; }
.sp-tag span { opacity: 0; animation: spUp .7s 2.75s ease-out forwards; }
.sp-tag span + span { color: #E8B04B; animation-delay: 3.05s; }
:root[data-theme="light"] .sp-tag span + span { color: #A8761A; }
.sp-city { position: absolute; bottom: calc(34px + var(--safe-b)); font-size: 12px; letter-spacing: 2px; color: #8C8C93; opacity: 0; animation: spUp .7s 3.3s ease-out forwards; }
@keyframes spGlow { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes spBreath { to { transform: translate(-50%, -50%) scale(1.08); opacity: .8; } }
@keyframes spDust { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .7; } 85% { opacity: .5; } 100% { transform: translateY(-75vh); opacity: 0; } }
@keyframes spRail { to { width: 180px; } }
@keyframes spSwing { 0% { transform: rotate(-18deg) translateY(-8px); opacity: 0; } 12% { opacity: 1; } 100% { transform: rotate(0) translateY(0); opacity: 1; } }
@keyframes spDraw { to { stroke-dashoffset: 0; } }
@keyframes spReveal { to { clip-path: inset(0 0 0 0); } }
@keyframes spShine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes spUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spLine { to { width: 72px; } }
@media (prefers-reduced-motion: reduce) { #splash *, #splash { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* ===== v9: شار و ناوچە ===== */
.selrow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); text-align: right; }
.selrow .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--chip); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.selrow .ic svg { width: 18px; height: 18px; }
.selrow[disabled] { opacity: .45; }
.picklist { gap: 0; max-height: 52vh; overflow-y: auto; margin: 0 -4px; }
.pickrow { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-size: 15px; text-align: right; }
.pickrow:last-child { border-bottom: 0; }
.pickrow.on { color: var(--red); }
.pickrow.add { color: var(--red); }
.tickmark { width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: var(--on-ink); font-size: 12px; display: flex; align-items: center; justify-content: center; }
/* نەخشەی تاریک: هەمان نەخشەی OpenStreetMap بە ڕەنگی پێچەوانە */
.mapov .tiles-dark { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.6); }
.mapov-layer { position: absolute; right: 14px; bottom: 210px; z-index: 600; height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--card); color: var(--ink); font-family: inherit; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.adminrow { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--red); background: var(--red-soft); color: var(--red); font-family: inherit; font-size: 15px; text-align: right; }

/* ===== v11: سوڕاندنی جل لەسەر هەڵواسین ===== */
.spin3d { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  background: radial-gradient(80% 70% at 50% 42%, #FBFAF7 0%, #EEEBE5 62%, #DEDAD2 100%); perspective: 1100px; }
.spin3d.dragging { cursor: grabbing; }
.sp-hang { position: absolute; inset: 8% 10% 10%; transform-origin: 50% 0; transform-style: preserve-3d; }
.sp-rot { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.sp-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; align-items: center; justify-content: center; background: transparent; }
.sp-face.sp-b { transform: rotateY(180deg); }
.sp-face img, .sp-side img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.18)); }
.sp-side { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; }
.sp-floor { position: absolute; left: 50%; bottom: 7%; width: 46%; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.22), transparent); transform: translateX(-50%); }
.sp-hint { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(17,17,19,.72); color: #fff; font-size: 12px; transition: opacity .4s; pointer-events: none; white-space: nowrap; }
.sp-hint svg { width: 16px; height: 16px; }
.sp-hint.gone { opacity: 0; }
.sp-tabs { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(17,17,19,.72); backdrop-filter: blur(6px); }
.sp-tabs button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #D4D4D8; font-family: inherit; font-size: 12px; }
.sp-tabs button.on { background: #E8B04B; color: #111; }
.galmode { position: absolute; z-index: 3; left: 12px; bottom: 14px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(17,17,19,.72); color: #fff; font-family: inherit; font-size: 12px; backdrop-filter: blur(6px); }
.spin3d ~ .galmode { bottom: auto; top: calc(58px + var(--safe-t)); }

/* v13: پرسیاری ئاگادارکردنەوە */
.pushask { gap: 12px; }
.pushbell { align-self: center; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); margin-top: 6px; animation: bellswing 1.6s ease-in-out .3s 2; transform-origin: 50% 20%; }
@keyframes bellswing { 0%,100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }
.pushlist { display: flex; flex-direction: column; gap: 2px; background: var(--bg2, rgba(127,127,127,.06)); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; }
.pushlist div { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; }
.pushlist div + div { border-top: 1px solid var(--line); }
.pushlist div span:first-child { width: 22px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .pushbell { animation: none; } }

/* v16: چوونەژوورەوەی کارمەندان */
.staff-link { align-self: center; color: var(--muted) !important; font-size: 12.5px; margin-top: 4px; text-decoration: none; opacity: .8; }

/* v17: پارەدانی کاش */
.cashbox { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--green-ink, #4ade80) 8%, transparent); }
.cashic { font-size: 26px; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--card); }

/* v18: جزدان و مامەڵەکان */
.walletcard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); color: inherit; font: inherit; cursor: pointer; text-align: right; }
.wc-ic, .ledger-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); }
.wc-ic svg, .ledger-ic svg { width: 24px; height: 24px; }
.wc-amt { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--green-ink); white-space: nowrap; }
.wc-amt.due, .ledger-owed.due { color: var(--red); }
.ledger-head { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; border-radius: 16px; border: 1.5px solid var(--red); background: var(--card); }
.ledger-owed { font-size: 34px; line-height: 1.2; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.ledger-spent { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
.ledger-spent b { font-size: 17px; font-variant-numeric: tabular-nums; color: var(--ink2); }
.ledger-per { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ledger-per button { height: 36px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--ink2); font: inherit; font-size: 12px; cursor: pointer; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-per button.on { border-color: var(--red); color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.ledger-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card); }
.ledger-card b { font-variant-numeric: tabular-nums; font-size: 15px; }
.ledger-card.warn-card { border-color: var(--red); }
.ledger-line { height: 1px; background: var(--line); }

/* v19: دووگمەی نوێکردنەوەی ئەپ */
.updbar { position: fixed; z-index: 9999; left: 12px; right: 12px; bottom: calc(84px + var(--safe-b, 0px)); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--red); color: var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.45); animation: slide .25s ease-out; max-width: 520px; margin: 0 auto; }
.updbar b { font-size: 14px; }
.updbar .small { color: var(--muted); }
.updbar button { flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--red); color: var(--on-red, #111); font: inherit; font-size: 14px; cursor: pointer; }

/* v20: دووگمەی Google */
.gwrap { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 2px; }
#gbtn { width: 100%; min-height: 44px; display: flex; justify-content: center; }

/* ڕاکێشان بۆ نوێکردنەوە */
.ptr { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; z-index: 90; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--red); box-shadow: 0 4px 16px rgba(0,0,0,.35); transform: translate(-50%, -50px); opacity: 0; pointer-events: none; }
.ptr.ready { color: var(--on-ink); background: var(--red); }
.ptr.spin svg { animation: ptrspin .7s linear infinite; }
@keyframes ptrspin { to { transform: rotate(360deg); } }

/* ---------- کۆمپیوتەر و لاپتۆپ: ڕووکاری پان ---------- */
@media (min-width: 900px) {
  body { background: #050506; }
  /* شاشە سەرەکییەکان (لەگەڵ تابەکان): لیستی لای ڕاست وەک سایتی کۆمپیوتەر */
  .app:has(> .nav) { max-width: 1360px; padding-inline-start: 248px; }
  .app > .nav { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 248px; display: flex !important; flex-direction: column; gap: 4px; padding: 20px 14px; border-top: 0; border-inline-end: 1px solid var(--line); z-index: 5; }
  .app > .nav::before { content: 'لەنگە مەزاد'; display: block; color: var(--red); font-size: 24px; font-weight: 800; padding: 6px 14px 22px; }
  .app > .nav button { height: 50px; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 0 16px; font-size: 15.5px; border-radius: 12px; }
  .app > .nav button:hover { background: var(--card2); color: var(--ink); }
  .app > .nav button.on { background: var(--card2); }
  .app > .nav button svg { width: 22px; height: 22px; }
  .app > .nav .badge { position: static; margin-inline-start: auto; border: 0; }
  .hdr-top, .hdr > .search, .hdr > .seg, .hdr > .tabs { padding-inline: 24px; }
  .hdr > .search, .hdr > .seg { margin-inline: 24px; padding-inline: 14px; max-width: 640px; }
  .toolbar { padding: 16px 24px 6px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; padding: 0 24px 24px; }
  .pc { transition: transform .15s, box-shadow .15s; cursor: pointer; }
  .pc:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
  .scroll { scrollbar-width: thin; }
  .scroll::-webkit-scrollbar { display: block; width: 8px; }
  .scroll::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }

  /* لاپەڕەکانی تر (هەژمار، فۆڕمەکان): ناوەڕاست و تەسک بۆ خوێندنەوەی ئاسان */
  .app:not(:has(> .nav)) { max-width: 560px; }
  .app:has(> .nav) .scroll:not(:has(.grid)) > * { max-width: 760px; width: calc(100% - 48px); margin-inline: auto !important; box-sizing: border-box; }
  .app:has(> .nav) .scroll:not(:has(.grid)) > .ptr { width: auto; }
  .hdr-top .brandbox svg, .hdr-top .brandbox .logo, .hdr-top .brandbox .brand { display: none; }

  /* لاپەڕەی پارچە: وێنە لە لایەک، زانیاری لە لایەکی تر */
  .app:has(.scroll > .gal-wrap) { max-width: 1180px; }
  .scroll.stack:has(> .gal-wrap), .scroll:has(> .gal-wrap) { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-content: start; column-gap: 0; }
  .scroll > .gal-wrap { grid-column: 1; grid-row: 1 / span 30; position: sticky; top: 0; align-self: start; aspect-ratio: 4 / 5; max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); }
  .scroll:has(> .gal-wrap) > :not(.gal-wrap) { grid-column: 2; }
  .scroll:has(> .gal-wrap) > .sec { margin-top: 0; border-bottom: 8px solid var(--ground); }

  /* پەنجەرەکان (sheet): لە ناوەڕاستی شاشە */
  .sheet-wrap { justify-content: center; align-items: center; padding: 24px; }
  .sheet { width: min(520px, 100%); border-radius: 18px; max-height: 84%; padding-bottom: 20px; }
  .sheet .grab { display: none; }
  .installbar { display: none !important; }
}
@media (min-width: 900px) and (hover: hover) {
  button, [data-act] { cursor: pointer; }
}
