/* ──────────────────────────────────────────────────────────────
   اپ شهروندی — دیزاین سیستم پوسته‌ها (پورت مستقیم از پروتوتایپ)
   5 پوسته‌ی طبیعت (دریا، جنگل، کویر، کوهستان، شهری) × روشن/تاریک
   اکسنت‌ها: oklch هم‌کروما و هم‌لایتنس، فقط هیو متفاوت
   ────────────────────────────────────────────────────────────── */

/* ── فونت اصلی: وزیرمتن متغیر، self-hosted (بدون وابستگی به CDN) ── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/app/fonts/Vazirmatn-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── فونت محلی جایگزین ── */
@font-face {
  font-family: 'IRANSans';
  src: url('/static/fonts/IRANSansWeb.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('/static/fonts/IRANSansWeb_Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('/static/fonts/IRANSansWeb_Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh; box-sizing: border-box;
  display: flex; justify-content: center;
  background: #e9e7e2;
  font-family: 'Vazirmatn', 'IRANSans', ui-sans-serif, system-ui, sans-serif;
  transition: background .45s ease;
}
body.page-dark { background: #111316; }

/* ── ریشه‌ی اپ — تمام‌صفحه‌ی موبایل، وسط‌چین روی دسکتاپ ── */
.dk-app {
  position: fixed; inset: 0; z-index: 0;
  margin: 0 auto; width: 100%; max-width: 480px; height: 100dvh;
  direction: rtl;
  font-family: 'Vazirmatn', 'IRANSans', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg-solid);
  overflow: hidden;
  --radius: 22px;
  transition: background .45s ease, color .45s ease;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 481px) {
  .dk-app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* کانتینر صفحه‌ی فعال (روتر داخلش رندر می‌کند) */
.dk-view { position: absolute; inset: 0; }

/* ── بک‌گراند بلر مالتی‌کالر (کانسپت طبیعت هر پروژه) ── */
.dk-bg { position: absolute; inset: 0; pointer-events: none; }
.dk-bg i {
  position: absolute; border-radius: 50%;
  filter: blur(64px); opacity: var(--blob-op, .9);
  transition: background .6s ease;
}
.dk-bg .b1 { width: 380px; height: 380px; top: -100px; right: -90px; background: var(--blob1); }
.dk-bg .b2 { width: 330px; height: 330px; top: 210px; left: -130px; background: var(--blob2); }
.dk-bg .b3 { width: 420px; height: 420px; bottom: -150px; right: -70px; background: var(--blob3); }
.dk-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg-solid) 55%, transparent));
}

/* ══ پوسته‌ها ══ */

/* دریا و ساحل */
.dk-app[data-theme="sea"][data-mode="light"] {
  --accent: oklch(0.56 0.10 215); --accent-ink: #fff;
  --bg-solid: oklch(0.965 0.008 200);
  --blob1: oklch(0.84 0.075 200); --blob2: oklch(0.88 0.06 85); --blob3: oklch(0.85 0.06 250);
}
.dk-app[data-theme="sea"][data-mode="dark"] {
  --accent: oklch(0.70 0.10 215); --accent-ink: oklch(0.20 0.05 215);
  --bg-solid: oklch(0.205 0.015 230);
  --blob1: oklch(0.35 0.07 215); --blob2: oklch(0.31 0.05 85); --blob3: oklch(0.33 0.06 260);
}
/* جنگل و شمال */
.dk-app[data-theme="forest"][data-mode="light"] {
  --accent: oklch(0.56 0.10 155); --accent-ink: #fff;
  --bg-solid: oklch(0.965 0.008 130);
  --blob1: oklch(0.84 0.075 150); --blob2: oklch(0.88 0.06 110); --blob3: oklch(0.86 0.05 75);
}
.dk-app[data-theme="forest"][data-mode="dark"] {
  --accent: oklch(0.70 0.10 155); --accent-ink: oklch(0.20 0.05 155);
  --bg-solid: oklch(0.205 0.015 150);
  --blob1: oklch(0.34 0.06 155); --blob2: oklch(0.31 0.05 115); --blob3: oklch(0.32 0.04 80);
}
/* کویر */
.dk-app[data-theme="desert"][data-mode="light"] {
  --accent: oklch(0.56 0.10 55); --accent-ink: #fff;
  --bg-solid: oklch(0.965 0.008 80);
  --blob1: oklch(0.87 0.07 70); --blob2: oklch(0.85 0.06 40); --blob3: oklch(0.88 0.05 95);
}
.dk-app[data-theme="desert"][data-mode="dark"] {
  --accent: oklch(0.70 0.10 55); --accent-ink: oklch(0.22 0.05 55);
  --bg-solid: oklch(0.21 0.012 60);
  --blob1: oklch(0.35 0.06 65); --blob2: oklch(0.32 0.05 40); --blob3: oklch(0.33 0.04 95);
}
/* کوهستان */
.dk-app[data-theme="mountain"][data-mode="light"] {
  --accent: oklch(0.56 0.10 270); --accent-ink: #fff;
  --bg-solid: oklch(0.965 0.006 260);
  --blob1: oklch(0.85 0.06 268); --blob2: oklch(0.88 0.04 220); --blob3: oklch(0.86 0.04 300);
}
.dk-app[data-theme="mountain"][data-mode="dark"] {
  --accent: oklch(0.72 0.10 270); --accent-ink: oklch(0.22 0.05 270);
  --bg-solid: oklch(0.205 0.015 265);
  --blob1: oklch(0.33 0.06 268); --blob2: oklch(0.30 0.04 225); --blob3: oklch(0.32 0.05 300);
}
/* شهری / صنعتی */
.dk-app[data-theme="urban"][data-mode="light"] {
  --accent: oklch(0.56 0.10 80); --accent-ink: #fff;
  --bg-solid: oklch(0.96 0.004 250);
  --blob1: oklch(0.86 0.02 250); --blob2: oklch(0.88 0.05 80); --blob3: oklch(0.85 0.015 350);
}
.dk-app[data-theme="urban"][data-mode="dark"] {
  --accent: oklch(0.72 0.10 80); --accent-ink: oklch(0.22 0.05 80);
  --bg-solid: oklch(0.20 0.008 250);
  --blob1: oklch(0.32 0.02 250); --blob2: oklch(0.33 0.05 80); --blob3: oklch(0.30 0.012 350);
}

/* ── متغیرهای مشترک هر مود ── */
.dk-app[data-mode="light"] {
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --ink: oklch(0.26 0.018 250); --ink2: oklch(0.45 0.015 250); --ink3: oklch(0.60 0.012 250);
  --line: oklch(0.26 0.02 250 / .09);
  --glass: rgba(255,255,255,.60); --glass-border: rgba(255,255,255,.75);
  --glass-strong: rgba(255,255,255,.88);
  --shadow: 0 10px 28px -14px rgba(20,30,40,.22);
  --ok: oklch(0.58 0.12 150); --warn: oklch(0.66 0.13 70); --danger: oklch(0.56 0.16 25);
  --blob-op: .9;
}
.dk-app[data-mode="dark"] {
  --accent-soft: color-mix(in srgb, var(--accent) 17%, transparent);
  --ink: oklch(0.93 0.008 250); --ink2: oklch(0.73 0.01 250); --ink3: oklch(0.57 0.01 250);
  --line: rgba(255,255,255,.09);
  --glass: rgba(16,20,25,.50); --glass-border: rgba(255,255,255,.09);
  --glass-strong: color-mix(in srgb, var(--bg-solid) 92%, white 4%);
  --shadow: 0 12px 32px -14px rgba(0,0,0,.55);
  --ok: oklch(0.70 0.12 150); --warn: oklch(0.76 0.12 70); --danger: oklch(0.68 0.15 25);
  --blob-op: .8;
}

/* ══ اجزای پایه ══ */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* اسکرول صفحه */
.dk-scroll {
  position: absolute; inset: 0; overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px 132px;
  scrollbar-width: none;
}
.dk-scroll::-webkit-scrollbar { display: none; }
/* صفحهٔ بی‌هدر (خانه، #320): جای نوار وضعیت گوشی را، همان‌طور که هدر نگه می‌دارد */
.dk-scroll.no-header { padding-top: calc(env(safe-area-inset-top) + 10px); }

/* هدر — padding بالا و پایین متقارن؛ روی گوشی notch‌دار safe-area اضافه می‌شود */
.dk-header {
  position: sticky; top: 0; z-index: 25;
  margin: 0 -16px 4px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--bg-solid) 62%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.h-pill {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--ink); cursor: pointer; position: relative;
  backdrop-filter: blur(12px);
}
.h-title { font-size: 16.5px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.big-title { font-size: 25px; font-weight: 800; margin: 12px 4px 2px; letter-spacing: -.2px; }
.big-sub { font-size: 12.5px; color: var(--ink2); margin: 2px 4px 0; }

/* سکشن */
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 4px 10px; }
.sec h3 { font-size: 15.5px; font-weight: 800; margin: 0; }
/* زیرنویس سکشن در خط بعدی (نه کنار عنوان) */
.sec .sub { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink3); margin-top: 3px; }
.sec button { background: none; border: none; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 0; }

/* دکمه */
.btn {
  height: 48px; border-radius: 16px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  border: none; cursor: pointer; box-sizing: border-box;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 22px -12px var(--accent); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-ghost { background: var(--glass); border: 1px solid var(--glass-border); color: var(--ink); backdrop-filter: blur(12px); }
.btn-danger { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.btn-sm { height: 38px; border-radius: 13px; font-size: 12.5px; padding: 0 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; pointer-events: none; }

/* چیپ */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 25px; padding: 0 10px; border-radius: 13px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent);
}
.chip-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.chip-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.chip-danger { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.chip-mute { background: color-mix(in srgb, var(--ink3) 14%, transparent); color: var(--ink2); }

/* سگمنت */
.seg { display: flex; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; padding: 4px; gap: 4px; backdrop-filter: blur(12px); }
.seg button {
  flex: 1; height: 37px; border-radius: 12px; border: none; background: transparent;
  color: var(--ink2); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s, color .2s;
}
.seg button.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 14px -8px var(--accent); }
.seg .cnt { font-size: 10px; opacity: .75; }

/* فیلد */
.field { display: flex; flex-direction: column; }
.field > label { font-size: 12px; font-weight: 700; color: var(--ink2); margin: 0 4px 6px; }
.field input, .field textarea, .field select {
  width: 100%; box-sizing: border-box; height: 48px; border-radius: 14px;
  border: 1px solid var(--glass-border); background: var(--glass);
  color: var(--ink); padding: 0 14px; font: inherit; font-size: 14px;
  outline: none; transition: border-color .2s, box-shadow .2s;
  backdrop-filter: blur(10px); appearance: none; -webkit-appearance: none;
}
.field textarea { height: auto; padding: 12px 14px; resize: none; line-height: 1.9; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .selwrap { position: relative; }
.field .selwrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink3); }

/* دکمه‌ی انتخاب (جایگزین دراپ‌داون) + ردیف گزینه در شیت */
.sel-btn {
  width: 100%; height: 48px; border-radius: 14px;
  border: 1px solid var(--glass-border); background: var(--glass);
  color: var(--ink); padding: 0 14px; font: inherit; font-size: 14px;
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.sel-btn:active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.opt-row {
  width: 100%; min-height: 50px; border-radius: 14px; padding: 0 14px;
  display: flex; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s;
}
.opt-row.on { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 800; }
.hint { font-size: 11px; color: var(--ink3); margin: 6px 4px 0; line-height: 1.8; }

/* تاگل */
.tgl { width: 46px; height: 28px; border-radius: 14px; background: color-mix(in srgb, var(--ink3) 30%, transparent); position: relative; cursor: pointer; transition: background .22s; border: none; padding: 0; flex-shrink: 0; }
.tgl::after { content: ''; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .22s cubic-bezier(.3,1.4,.4,1); box-shadow: 0 2px 5px rgba(0,0,0,.25); }
.tgl.on { background: var(--accent); }
.tgl.on::after { transform: translateX(-18px); }

/* ردیف لیست */
.lrow { display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lrow + .lrow { border-top: 1px solid var(--line); }
.lrow .lt { flex: 1; min-width: 0; }
.lrow .lt b { display: block; font-size: 13.5px; font-weight: 700; }
.lrow .lt span { display: block; font-size: 11.5px; color: var(--ink3); margin-top: 2px; }

/* فهرست تیک‌دار کسانی که با بهره‌بردار رفتنی تمام می‌شوند (#257) */
.tick-head { font-size: 12px; font-weight: 800; color: var(--ink2); margin: 0 4px 6px; }
.tick-row .tick {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--ink3) 55%, transparent);
  display: grid; place-items: center; color: #fff; transition: background .15s, border-color .15s;
}
.tick-row.on .tick { background: var(--danger); border-color: var(--danger); }
.tick-row .lt .tick-pending { color: var(--warn); font-weight: 700; }
.tick-row.locked { cursor: default; }
.tick-row.locked .tick { opacity: .5; }

/* آواتار: عکس شخص در دایره، وگرنه حروف اول نام */
.ava { border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.ava img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* شمارهٔ ملک روی تابلو، به جای آیکونِ تنها ملک شخص (#322) */
.num-sign {
  display: inline-block; border: 1.6px solid currentColor; border-radius: 6px;
  font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .3px;
  padding: 3px 4px 2px; white-space: nowrap;
}

/* تنها ملکی که فرم برایش است، به جای فهرستی با یک گزینه: واژهٔ محصول و شماره‌اش روی چیپ (#392) */
.only-property { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }

/* تایل سرویس */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.svc {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 13px 4px 11px; cursor: pointer; text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease;
}
.svc:active { transform: scale(.95); }
.svc .ico { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.svc.hot .ico { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 16px -8px var(--accent); }
/* با شمارهٔ ملک روی تابلو، به اندازهٔ شماره پهن می‌شود (#322) */
.svc .ico.sign { width: auto; min-width: 42px; padding: 0 5px; box-sizing: border-box; }
.svc b { font-size: 10.5px; font-weight: 700; color: var(--ink); }
.svc .badge {
  position: absolute; top: 7px; left: 9px; min-width: 17px; height: 17px;
  border-radius: 9px; padding: 0 4px; box-sizing: border-box;
  background: var(--warn); color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
}

/* اطلاعیه‌ها (#415): کارت تازه‌ترینِ خوانده‌نشده در خانه، فهرست، و صفحهٔ هر اطلاعیه */
.ann-new { margin-top: 14px; }
.ann-new .lt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-ico {
  width: 38px; height: 38px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.ann { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ann .spread { align-items: flex-start; }
.ann b { font-size: 14px; font-weight: 800; line-height: 1.8; }
.ann-day { font-size: 11.5px; color: var(--ink3); margin-top: 2px; }
.ann-sub { font-size: 12.5px; font-weight: 700; color: var(--ink2); margin-top: 8px; line-height: 1.8; }
/* چکیدهٔ دوخطیِ متن در فهرست */
.ann-text {
  font-size: 12.5px; color: var(--ink2); margin-top: 6px; line-height: 1.9;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ann-page h2 { font-size: 17px; font-weight: 800; line-height: 1.8; margin: 0; }
.ann-page .ann-sub { font-size: 13px; }
/* متن ویرایشگر پنل، پس از فهرست مجاز (DK.richText) */
.rich { font-size: 13.5px; line-height: 2; margin-top: 12px; overflow-wrap: anywhere; }
.rich p, .rich ul, .rich ol, .rich blockquote, .rich h1, .rich h2, .rich h3, .rich h4 { margin: 0 0 8px; }
.rich h1, .rich h2, .rich h3, .rich h4 { font-weight: 800; line-height: 1.8; }
.rich h1 { font-size: 18px; }
.rich h2 { font-size: 16.5px; }
.rich h3 { font-size: 15px; }
.rich h4 { font-size: 14px; }
.rich ul, .rich ol { padding-inline-start: 22px; }
.rich ol { list-style-type: persian; } /* شماره‌ها هم فارسی، مثل همهٔ رقم‌های اپ */
.rich blockquote { border-inline-start: 3px solid var(--accent); padding-inline-start: 12px; color: var(--ink2); }
.rich a { color: var(--accent); font-weight: 700; }
.rich img { display: block; max-width: 100%; height: auto; border-radius: 14px; margin: 8px 0; }
.rich .ql-align-center { text-align: center; }
.rich .ql-align-right { text-align: right; }
.rich .ql-align-left { text-align: left; }
.rich .ql-align-justify { text-align: justify; }
.rich .ql-direction-rtl { direction: rtl; }
/* عکس‌های گالری زیر متن؛ با ضربه، بزرگ در شیت */
.ann-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ann-gallery img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 14px; background: var(--accent-soft); cursor: pointer;
}
.ann-big { display: block; width: 100%; max-height: 70dvh; object-fit: contain; border-radius: 16px; }

/* بنر — اسلایدر transform-based (LTR track؛ جهت drag در JS هندل می‌شود).
   هر اسلاید عرض کامل ریل است و بین اسلایدها یک فاصله‌ی واقعی (--bnr-gap) هست،
   پس موقع جابه‌جایی بنرها به هم نمی‌چسبند. ریل یک padding عمودی کوچک دارد تا
   گوشه‌های گرد بنر هنگام حرکت کنار لبه crop نشوند. قدمِ هر اسلاید در JS برابر
   railWidth + gap محاسبه می‌شود. */
.banner-rail {
  --bnr-gap: 12px;
  position: relative; overflow: hidden; touch-action: pan-y;
  padding: 3px 0; /* فضای کوچک تا گوشه‌های گرد crop نشوند */
}
.banner-rail::-webkit-scrollbar { display: none; }
.banner-track {
  display: flex;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  /* آینه‌ی افقی روی خود تِرَک از طریق JS اعمال می‌شود (apply مقدار را
     'scaleX(-1) translateX(...)' می‌گذارد) تا ترتیب و جهت حرکت اسلایدها هم‌جهت
     با دات‌ها (راست→چپ) شود؛ هر بنر با scaleX(-1) خودش، محتوا را برمی‌گرداند. */
}
.banner-track.dragging { transition: none; }
.banner {
  position: relative; flex: 0 0 100%; box-sizing: border-box;
  border-radius: calc(var(--radius) + 4px); overflow: hidden;
  background: linear-gradient(160deg, var(--blob1), var(--blob3) 55%, var(--blob2));
  transform: scaleX(-1); /* محتوای بنر را از آینه‌ی تِرَک برمی‌گرداند */
}
/* فاصله بین اسلایدها */
.banner-track > .banner + .banner { margin-left: var(--bnr-gap); }
/* ریل رویدادها (افقی، چند کارت کوچک) همچنان scroll-based است */
.banner-rail.events { overflow-x: auto; display: flex; gap: 10px; scrollbar-width: none; touch-action: pan-x; }
.banner-rail.events::-webkit-scrollbar { display: none; }
.banner-rail.events > .banner { flex: 0 0 62%; }
.banner.sq { aspect-ratio: 1 / 1; }
.banner.wide { aspect-ratio: 2 / 1; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner .grad { position: absolute; inset: 0; background: linear-gradient(12deg, rgba(8,16,22,.68), rgba(8,16,22,.05) 55%); pointer-events: none; }
.banner .tag { position: absolute; top: 12px; right: 12px; pointer-events: none; }
/* RTL caption: title at the right, action button at the left (the banner track
   is LTR for the slider math, so force the caption back to RTL here) */
.banner .cap { position: absolute; bottom: 14px; right: 16px; left: 16px; color: #fff; pointer-events: none; direction: rtl; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.banner .cap > div { text-align: right; }
.banner .cap small { display: block; font-size: 11.5px; opacity: .85; font-weight: 500; }
.banner .cap b { display: block; font-size: 19px; font-weight: 800; margin-top: 2px; }
.banner .cap .btn { pointer-events: auto; }
.dots { display: flex; gap: 5px; justify-content: center; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--ink3); opacity: .4; transition: all .25s; }
.dots i.on { width: 18px; background: var(--accent); opacity: 1; }

/* ناوبری پایین — با احتساب safe-area پایین گوشی */
.dk-nav {
  position: absolute; left: 14px; right: 14px;
  bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; padding: 7px 6px;
  border-radius: 30px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 18px 44px -14px rgba(0,0,0,.35);
}
.dk-nav.hidden { display: none; }
.dk-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; color: var(--ink3);
  font: inherit; font-size: 10px; font-weight: 700; padding: 4px 0 5px;
  cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent;
  transition: color .2s;
}
.dk-nav button .nico { width: 44px; height: 27px; border-radius: 14px; display: grid; place-items: center; transition: background .22s; }
.dk-nav button.on { color: var(--accent); }
.dk-nav button.on .nico { background: var(--accent-soft); }
/* زبانهٔ «پروفایل» با آواتار شخص، بی‌آیکون و نوشته (#320)؛ حلقهٔ زبانهٔ باز همان
   رنگ کم‌رنگِ زبانه‌های باز دیگر است، --accent-soft (#353) */
.dk-nav button.person { justify-content: center; }
.dk-nav button.person.on .ava { box-shadow: 0 0 0 2px var(--accent-soft); }
/* زبانهٔ ملک‌های شخصی که یک ملک دارد: شمارهٔ ملک روی تابلو به جای آیکون (#322) */
.dk-nav button .nico.sign { width: auto; min-width: 44px; padding: 0 5px; box-sizing: border-box; }
.dk-nav .nbadge { position: absolute; top: 1px; left: calc(50% - 21px); min-width: 15px; height: 15px; border-radius: 8px; background: var(--warn); color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; padding: 0 3px; box-sizing: border-box; }

/* پلاک خودرو */
.plate {
  direction: ltr; display: inline-flex; align-items: stretch;
  background: #fdfdfb; border: 1.5px solid #232c38; border-radius: 7px;
  overflow: hidden; color: #19222e; font-weight: 800; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.plate .ir { width: 16px; background: #1f51c4; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 3px 0; }
.plate .ir .flag { width: 8px; height: 6px; border-radius: 1px; overflow: hidden; display: flex; flex-direction: column; }
.plate .ir .flag i { flex: 1; } .plate .ir .flag i:nth-child(1) { background: #2da64f; } .plate .ir .flag i:nth-child(2) { background: #fff; } .plate .ir .flag i:nth-child(3) { background: #d24a43; }
.plate .ir small { color: #fff; font-size: 5px; font-weight: 700; letter-spacing: .5px; }
.plate .main { display: flex; align-items: center; gap: 8px; padding: 4px 10px; font-size: 15px; }
.plate .reg { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px 8px; border-left: 1.5px solid #232c38; font-size: 12.5px; line-height: 1.1; }
.plate .reg small { font-size: 5.5px; font-weight: 700; }
.plate.sm .main { font-size: 12px; gap: 5px; padding: 2px 7px; }
.plate.sm .reg { font-size: 10px; padding: 1px 5px; }
.plate.sm .ir { width: 12px; }

/* ویزارد عمودی */
.wstep { overflow: hidden; transition: opacity .25s; }
.wstep.locked { opacity: .5; pointer-events: none; }
.wstep-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wnum {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
  background: var(--glass-strong); color: var(--ink3); border: 1px solid var(--glass-border);
  transition: all .25s;
}
.wstep.active .wnum { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.wstep.done .wnum { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); border-color: transparent; }
.wstep-head .wt { flex: 1; min-width: 0; }
.wstep-head .wt b { display: block; font-size: 13.5px; font-weight: 800; }
.wstep-head .wt span { display: block; font-size: 11px; color: var(--ink3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wstep-body { padding: 2px 16px 16px; display: flex; flex-direction: column; gap: 13px; }
.wedit { background: none; border: none; color: var(--accent); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; padding: 4px; }

/* چت پژواک */
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 82%; }

/* ── چت تمام‌قد (مثل تلگرام): هدر ثابت، پیام‌ها از پایین، کامپوزر چسبیده پایین ── */
.dk-chat {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.dk-chat > .dk-header { margin: 0; padding-left: 16px; padding-right: 16px; }
/* ناحیه‌ی پیام‌ها: فضای میانی را پر می‌کند و خودش اسکرول می‌شود.
   justify-content:flex-end باعث می‌شود وقتی پیام‌ها کم‌اند، ته صفحه بنشینند. */
.dk-chat-scroll {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 8px 16px 6px;
  display: flex; flex-direction: column;
}
.dk-chat-scroll::-webkit-scrollbar { display: none; }
.dk-chat-scroll > .dk-chat-meta { flex: 0 0 auto; margin-bottom: 10px; }
.dk-chat-scroll > .thread { flex: 1 0 auto; justify-content: flex-end; }
/* کامپوزر/کارت چسبیده به پایین — با باز شدن کیبورد موبایل (resize شدن viewport)
   به‌خاطر height:100dvh روی .dk-app خودبه‌خود بالا می‌آید. */
.dk-chat-foot {
  flex: 0 0 auto;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg-solid) 80%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.msg.me { align-self: flex-start; }
.msg.them { align-self: flex-end; }
.msg .meta { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--ink3); padding: 0 6px; }
.bub { padding: 10px 14px; border-radius: 18px; font-size: 13px; line-height: 1.9; white-space: pre-line; }
.msg.me .bub { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg.them .bub { background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); border-bottom-left-radius: 6px; }

/* QR */
.qr-wrap { background: #fff; border-radius: 20px; padding: 14px; display: inline-block; box-shadow: 0 8px 24px -12px rgba(0,0,0,.25); }

/* مودال / باتم‌شیت */
.modal-back {
  position: absolute; inset: 0; z-index: 80;
  background: rgba(8,12,16,.45); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: flex-end;
  padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.sheet {
  width: 100%; box-sizing: border-box;
  max-height: 100%; overflow-y: auto; /* a sheet taller than a short phone scrolls instead of losing its top */
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: 28px; padding: 22px 20px;
  animation: sheetUp .32s cubic-bezier(.2,.9,.3,1);
}
.sheet .grab { width: 38px; height: 4.5px; border-radius: 3px; background: var(--ink3); opacity: .35; margin: -8px auto 16px; }

/* توست */
.toast {
  position: absolute; top: calc(max(env(safe-area-inset-top), 14px) + 14px);
  left: 16px; right: 16px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px); border-radius: 16px; padding: 12px 14px;
  font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow);
  animation: dkToast .25s ease;
}

/* «نسخهٔ تازه آماده است» (#373) — بالای ناوبری پایین، تا دکمهٔ برگشت هدر را نپوشاند؛ بی ناوبری (ورود، تکمیل پروفایل)، لب پایین */
.new-version {
  position: absolute; left: 14px; right: 14px;
  bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 10px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 18px; padding: 8px 14px 8px 8px;
  font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow);
  animation: sheetUp .32s cubic-bezier(.2,.9,.3,1);
}
.new-version span { flex: 1; }
.dk-nav.hidden ~ .new-version { bottom: calc(12px + env(safe-area-inset-bottom)); }
/* تا پیام هست، آخرِ هر صفحه بالای آن می‌ماند: دکمهٔ ثبت فرم، فرم ورود، و کامپوزر گفتگو (بی ناوبری) */
.dk-app:has(> .new-version) .dk-scroll { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
.dk-app:has(> .new-version) .login { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.dk-app:has(> .new-version) .dk-chat { bottom: calc(76px + env(safe-area-inset-bottom)); }

/* پلیس‌هولدر تصویر */
.ph {
  background: repeating-linear-gradient(45deg, var(--accent-soft) 0 10px, transparent 10px 20px);
  border: 1px dashed color-mix(in srgb, var(--ink3) 40%, transparent);
  display: grid; place-items: center; border-radius: 16px;
}
.ph .ph-label { font-family: ui-monospace, 'SF Mono', monospace; font-size: 10.5px; color: var(--ink3); direction: ltr; }

/* نقشهٔ سنجاق (DK.pinMap، #398): محدوده به رنگ پوسته، و قرمز وقتی سنجاق بیرون از آن است */
.pin-map .leaflet-container { background: var(--bg-solid); font-family: inherit; }
.pin-map .pin-area { stroke: var(--accent); fill: var(--accent); }
.pin-map .pin-area.out { stroke: var(--danger); fill: var(--danger); }

/* نوار پیشرفت ظرفیت */
.cap-bar { height: 8px; border-radius: 4px; background: var(--accent-soft); overflow: hidden; }
.cap-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transition: width .4s ease; }

/* آمار ملک */
.stats { display: flex; }
.stats .st { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 4px; }
.stats .st + .st { border-right: 1px solid var(--line); }
.stats .st b { font-size: 16px; font-weight: 800; }
.stats .st span { font-size: 10.5px; color: var(--ink3); display: flex; align-items: center; gap: 4px; }

/* کی‌والیو */
.kv { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; gap: 12px; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv .k { font-size: 12px; color: var(--ink3); }
.kv .v { font-size: 13px; font-weight: 700; text-align: left; }

/* ── فیلدهای پلاک و OTP و فلو ورود (از head پروتوتایپ) ── */
.pl-in {
  width: 48px; height: 44px; border-radius: 10px;
  border: 1.5px solid var(--glass-border); background: var(--glass);
  color: var(--ink); font: inherit; font-size: 15px; font-weight: 800;
  text-align: center; outline: none; box-sizing: border-box;
}
.pl-in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.otp-row { display: flex; gap: 8px; justify-content: center; direction: ltr; }
.otp-in {
  width: 46px; height: 54px; border-radius: 14px;
  border: 1.5px solid var(--glass-border); background: var(--glass);
  color: var(--ink); font: inherit; font-size: 20px; font-weight: 800;
  text-align: center; outline: none; box-sizing: border-box;
}
.otp-in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.otp-in:disabled { opacity: .4; }
.login {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: calc(max(env(safe-area-inset-top), 24px) + 72px) 24px calc(40px + env(safe-area-inset-bottom));
  overflow-y: auto; scrollbar-width: none;
}
.login::-webkit-scrollbar { display: none; }
.login .brand { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-bottom: 34px; }
.login .logo {
  width: 64px; height: 64px; border-radius: 22px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  box-shadow: 0 16px 32px -12px var(--accent);
}
/* لوگوی خود محصول (Branding:LogoUrl) روی کاشی شیشه‌ای، مثل کارت‌های اپ (#320) */
.login .logo.has-img {
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--shadow);
}
.login .logo img { width: 46px; height: 46px; object-fit: contain; display: block; }
.upload-box {
  width: 100%; min-height: 104px; border-radius: 18px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 50%, transparent);
  background: var(--accent-soft); cursor: pointer;
  display: grid; place-items: center;
  color: var(--accent); font: inherit; font-weight: 700; font-size: 13px;
}
/* عکس شخص در فیلد عکس، همان‌طور که در آواتار دیده می‌شود */
.upload-round { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto; }
/* چقدر از یک عکس بالا رفته (DK.upload.bar، #399): درصد روی نوار باریک؛ در فیلد عکس، جای «تغییر عکس» */
.up-bar {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 100%; max-width: 180px; margin: 0 auto;
  font-size: 12px; font-weight: 800; color: var(--accent);
}
.up-track {
  display: block; width: 100%; height: 4px; border-radius: 2px; overflow: hidden;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.up-track i { display: block; height: 100%; border-radius: 2px; background: var(--accent); transition: width .2s ease; }
/* روی تصویر کوچکِ پیوست پژواک: روی خود عکس */
.up-cover {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 0 8px;
  border-radius: 12px; background: rgba(0, 0, 0, .45);
}
.up-cover .up-bar { gap: 4px; font-size: 11px; color: #fff; }
.up-cover .up-track { background: rgba(255, 255, 255, .35); }
.up-cover .up-track i { background: #fff; }

/* ── برش عکس: قاب مربع با ماسک دایره‌ای (DK.crop) ── */
.crop-frame {
  /* at most 300px, and on a short phone small enough for the whole sheet to fit */
  position: relative; width: min(100%, 300px, calc(100dvh - 340px)); aspect-ratio: 1 / 1; margin: 0 auto;
  border-radius: 16px; overflow: hidden; background: #000;
  touch-action: none; cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.crop-frame:active { cursor: grabbing; }
.crop-pic { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; display: block; pointer-events: none; -webkit-user-drag: none; }
.crop-mask {
  position: absolute; inset: 0; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .55);
  pointer-events: none;
}
.crop-zoom { width: 100%; margin: 4px 0; accent-color: var(--accent); }

/* ── انتخابگر روز و ساعت (DK.date، #391): نوار روزهای پیش رو که با انگشت می‌لغزد، ماه به‌خواست، و نوار ساعت‌ها (#409) ── */
.sel-btn .pick-text { flex: 1; min-width: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-btn .pick-text.empty { color: var(--ink3); }
.day-strip, .hour-strip {
  display: flex; overflow-x: auto; padding: 2px 2px 6px;
  scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
}
.day-strip::-webkit-scrollbar, .hour-strip::-webkit-scrollbar { display: none; }
.day-strip { gap: 8px; }
.day-card {
  flex: 0 0 66px; height: 80px; border-radius: 16px;
  border: 1px solid var(--glass-border); background: var(--glass); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: inherit; cursor: pointer; scroll-snap-align: center;
  -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s;
}
.day-card small { font-size: 10.5px; font-weight: 700; color: var(--ink3); }
.day-card b { font-size: 20px; font-weight: 800; }
.day-card.fri small, .day-card.fri b { color: var(--danger); }
.day-card.on { background: var(--accent); border-color: transparent; box-shadow: 0 10px 18px -12px var(--accent); }
.day-card.on small, .day-card.on b { color: var(--accent-ink); }
.day-card:disabled { opacity: .3; pointer-events: none; }
.day-more {
  align-self: flex-start; background: none; border: none; padding: 2px 4px; cursor: pointer;
  color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 800;
}
.day-month:empty { display: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head b { font-size: 15px; font-weight: 800; }
.cal-nav {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--ink);
}
.cal-nav:disabled { opacity: .3; pointer-events: none; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font-size: 11px; font-weight: 800; color: var(--ink3); padding: 4px 0; }
.cal-week .fri { color: var(--danger); }
.cal-day {
  aspect-ratio: 1; border-radius: 12px; border: none; background: transparent; cursor: pointer;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; -webkit-tap-highlight-color: transparent;
}
.cal-day.fri { color: var(--danger); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-day.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 16px -10px var(--accent); }
.cal-day:disabled { opacity: .25; pointer-events: none; }
.pick-sub { font-size: 12px; font-weight: 700; color: var(--ink2); margin: 0 4px; }
/* ساعت‌ها و دقیقه‌ها مثل خود ساعت، از چپ به راست: ساعت‌ها در نواری مثل نوار روزها (#409)، دقیقه‌ها در یک ردیف.
   دو سر نوار ساعت جای خالی دارد تا هر ساعتی، ۰۰ و ۲۳ هم، وسط آن بیاید (تصمیم صاحب پروژه):
   هر سر نیمی از نوار است، منهای نیم کارت و فاصلهٔ کنار آن. */
.hour-strip { gap: 6px; direction: ltr; padding-left: 0; padding-right: 0; }
.hour-strip::before, .hour-strip::after { content: ''; flex: 0 0 calc(50% - 31px); }
.hour-strip .time-cell { flex: 0 0 50px; scroll-snap-align: center; }
.time-grid { display: grid; gap: 6px; direction: ltr; }
.time-grid.minutes { grid-template-columns: repeat(4, 1fr); }
.time-cell {
  height: 40px; border-radius: 12px; border: 1px solid var(--glass-border); background: var(--glass); cursor: pointer;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; -webkit-tap-highlight-color: transparent;
}
.time-cell.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.time-cell:disabled { opacity: .3; pointer-events: none; }
.pick-sum { text-align: center; font-size: 15px; font-weight: 800; }

/* ── حالت لودینگ (شیمر) ── */
.skeleton {
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(90deg,
    var(--glass) 25%,
    color-mix(in srgb, var(--ink3) 16%, var(--glass)) 50%,
    var(--glass) 75%);
  background-size: 200% 100%;
  animation: dkShimmer 1.4s ease infinite;
}

/* ── حالت خطا (کارت شیشه‌ای با تینت خطر) ── */
.err-box {
  background: color-mix(in srgb, var(--danger) 8%, var(--glass));
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--danger); font-size: 12.5px; font-weight: 700;
  text-align: center; line-height: 1.9;
}

/* انیمیشن صفحات — فقط transform تا محتوا همیشه دیده شود؛ .enter برای
   چیزی که بعد از صفحه می‌رسد (بنر خانه، #320) تا همان‌طور وارد شود */
.screen, .enter { animation: dkSlide .28s cubic-bezier(.2,.8,.2,1); }
@keyframes dkSlide { from { transform: translateY(12px); } }
@keyframes dkFade { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(14px); } }
@keyframes dkToast { from { transform: translateY(-10px); } }
@keyframes dkShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .screen, .enter, .sheet, .toast, .new-version, .skeleton { animation: none; }
}

/* عمومی */
.dk-app * { box-sizing: border-box; }
.dk-app button { font-family: inherit; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.pad { padding: 16px; }
.center { text-align: center; }
.muted { color: var(--ink3); }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rowg { display: flex; align-items: center; gap: 8px; }
.wrapg { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
