/* هیرا — استایل پایه (موبایل‌محور، راست‌چین) */
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-UI-FD-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-UI-FD-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-UI-FD-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* رنگ‌های برند (خالص) و گرادینتِ هیرا: آبی ← سبز، مثل آواتار و لوگو */
  --blue: #3498db;
  --blue-dark: #2a72a9;   /* آبی برای «متن/آیکون روی روشن» (۵٫۱۵:۱) */
  --navy: #0a3472;
  --green: #00b174;
  --green-dark: #027a50;  /* سبز برای متن روی روشن (۵٫۳۸:۱) */
  --grad: linear-gradient(135deg, var(--blue), var(--green));
  --danger: #d12b3d;      /* ۵٫۰۹:۱ با متن سفید */
  --warn: #ffc107;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1d2a44;
  --muted: #5a6985;       /* ۵٫۱۵:۱ روی --bg */
  --line: #e2e8f1;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(10, 52, 114, .08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1726; --card: #16223a; --text: #e8eefb; --muted: #9aa9c4; --line: #26344f; --shadow: none; }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 14px; }   /* پایهٔ rem؛ حدود دو سایز کوچک‌تر از قبل برای ظاهری فشرده‌تر و جذاب‌تر */
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Vazirmatn', Tahoma, sans-serif; font-size: 1rem; line-height: 1.7;
  background: var(--bg); color: var(--text);
  padding-top: var(--safe-top);
}
/* حالت مستقل/روی صفحهٔ اصلی (standalone PWA): پشت ناحیهٔ نوار وضعیت (notch/status bar) باید
   همرنگ تم برنامه باشد، نه سفید/خاکستری روشنِ پس‌زمینهٔ صفحات — وگرنه یک «نوار سفید» جدا از هدر دیده می‌شود.
   یک نوار ثابت هم‌رنگ تم دقیقاً به اندازهٔ safe-area-inset-top پشت آن ناحیه گذاشته می‌شود. */
.safe-top-fill { position: fixed; top: 0; inset-inline: 0; height: var(--safe-top); background: var(--blue); z-index: 1000; pointer-events: none; }
@media (prefers-color-scheme: dark) { .safe-top-fill { background: var(--navy); } }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.4; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
a { color: var(--blue-dark); text-decoration: none; }
.muted { color: var(--muted); }
.ltr { direction: ltr; text-align: left; }
.center { text-align: center; }
.noscript { padding: 24px; text-align: center; }

/* چیدمان صفحه */
.page { padding: 20px 18px calc(24px + var(--safe-bottom)); }
.page.with-nav { padding-bottom: calc(104px + var(--safe-bottom)); }
.hero { text-align: center; padding: 34px 0 18px; }
.hero img { width: 150px; height: auto; margin-bottom: 8px; animation: heroLogoIn .9s cubic-bezier(.22, 1, .36, 1) both, heroLogoFloat 3.6s ease-in-out .9s infinite; }
.hero .tagline { color: var(--muted); font-size: .95rem; animation: heroTaglineIn .7s ease-out .35s both; }
@keyframes heroLogoIn { 0% { opacity: 0; transform: scale(.8) translateY(10px); } 60% { opacity: 1; transform: scale(1.04) translateY(0); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes heroLogoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes heroTaglineIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero img, .hero .tagline { animation: none; } }

.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card.sos-card { border: 1.5px solid var(--danger); }
.card.sos-card h3 { margin-top: 0; }
.card.sos-card .btn.ghost { margin-top: 10px; }

/* فرم */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .9rem; margin-bottom: 6px; color: var(--muted); }
.input, .select {
  width: 100%; height: 50px; padding: 0 14px; font: inherit; color: var(--text);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; outline: none;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.input:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(52, 152, 219, .22); }
.input.error, .select.error { border-color: var(--danger); }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%236b7a94' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center; padding-left: 38px; }
textarea.input { height: auto; padding: 12px 14px; min-height: 84px; resize: vertical; }
.code-input { text-align: center; letter-spacing: .5em; font-size: 1.6rem; direction: ltr; }
.err-text { color: var(--danger); font-size: .82rem; margin-top: 4px; min-height: 1em; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px;
  border: 0; border-radius: 12px; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  color: #fff; background: var(--grad); transition: transform .05s, filter .15s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn:hover { filter: brightness(.94); }
.btn.green { background: var(--grad); }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); } .btn.ghost:hover { filter: none; background: color-mix(in srgb, var(--text) 5%, transparent); }
.btn.danger-ghost { background: transparent; color: var(--danger); border: 1.5px solid var(--line); }
.btn.danger { background: var(--danger); } .btn.danger:hover { filter: none; background: #c92e3e; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 6px; font: inherit; color: var(--muted); cursor: pointer; }   /* لینک خنثی (بازگشت، تغییر، حذف…): خاکستری */
.btn-link[disabled] { color: var(--muted); cursor: default; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.spacer { height: 12px; }

/* انتخاب کارتی (جنسیت/نقش) */
.choices { display: flex; gap: 10px; }
.choice { flex: 1; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px;
  padding: 10px; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font-size: .95rem;
}
.choice small { color: var(--muted); font-size: .75rem; }
.choice input:checked + span { border-color: var(--green); background: rgba(0, 177, 116, .1); color: var(--green-dark); font-weight: 700; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(52, 152, 219, .3); }

/* لیست اطلاعات */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .78rem; background: rgba(52, 152, 219, .15); color: var(--blue-dark); }
.badge.green { background: rgba(0, 177, 116, .15); color: var(--green-dark); }
.badge.warn { background: rgba(255, 193, 7, .2); color: #8a6500; }

/* هدر و ناوبری پایین */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.topbar img { height: 34px; width: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.avatar.big { margin: 0 auto 8px; width: 64px; height: 64px; font-size: 1.6rem; }
.mb8 { margin-bottom: 8px; }
/* نوار پایینِ شناور (قرص سفید با سایه): تب‌های غیرفعال فقط آیکونِ خاکستری؛ تب فعال به‌صورت قرصِ گرادینت با آیکون + برچسب باز می‌شود */
.nav {
  position: fixed; bottom: calc(12px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 452px;
  display: flex; align-items: center; justify-content: space-around; gap: 4px; padding: 6px; background: var(--card);
  border-radius: 20px; box-shadow: 0 4px 16px rgba(10, 52, 114, .07); z-index: 5;
}
.nav a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; min-width: 56px; padding: 0; border-radius: 14px; font-size: .85rem; color: var(--muted); transition: background .18s, padding .18s, color .18s; }
/* آیکون‌ها (Phosphor از اسپرایت): پرشونده با رنگ متن؛ اندازه با em تا همراه فونت بزرگ/کوچک شود */
.ic { width: 1.25em; height: 1.25em; fill: currentColor; stroke: none; flex: none; vertical-align: -.24em; }
.ic-sm { width: 1em; height: 1em; } .ic-lg { width: 1.6em; height: 1.6em; }
.ic-flip { transform: scaleX(-1); }
.nav a .ic { width: 26px; height: 26px; }
/* برچسبِ تب‌های غیرفعال فقط برای صفحه‌خوان می‌ماند (دیده نمی‌شود) */
.nav .nv-ic { display: flex; }
.nav a .nv-tx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav a.active { background: rgba(52, 152, 219, .09); color: var(--blue-dark); }   /* فقط آیکون (برچسب فقط برای صفحه‌خوان) */
.nav a.disabled { opacity: .45; pointer-events: none; }

.soon { text-align: center; padding: 26px 14px; }
.soon .ic { width: 54px; height: 54px; color: var(--blue); margin-bottom: 8px; }

/* Toast و لودینگ */
.toast {
  position: fixed; left: 50%; bottom: calc(108px + var(--safe-bottom)); transform: translate(-50%, 20px); opacity: 0;
  max-width: 88%; padding: 12px 18px; border-radius: 12px; background: #1d2a44; color: #fff; font-size: .92rem; z-index: 20;
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }
.toast.success { background: var(--green-dark); }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.center-screen { display: flex; align-items: center; justify-content: center; min-height: 70vh; }
.center-screen .spinner { border-color: var(--line); border-top-color: var(--blue); width: 34px; height: 34px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* آواتار عکس‌دار، بنر وضعیت، ردیف مدارک */
img.avatar-img { object-fit: cover; display: block; background: var(--line); }
img.avatar-img.big { margin: 0 auto 8px; }
.banner { display: block; color: var(--text); border-inline-start: 5px solid var(--blue); }
.banner b { display: block; } .banner span { color: var(--muted); font-size: .9rem; }
.banner.s0 { border-color: var(--warn); } .banner.s1 { border-color: var(--blue); } .banner.s2 { border-color: var(--green); } .banner.s3 { border-color: var(--danger); }
.doc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-row .btn { width: auto; height: 40px; padding: 0 16px; flex-shrink: 0; }
.card h3 { margin-bottom: 10px; }

/* نوار به‌روزرسانی نسخه */
.update-bar { position: fixed; left: 12px; right: 12px; bottom: calc(88px + var(--safe-bottom)); max-width: 456px; margin: 0 auto; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px;
  background: var(--navy); color: #fff; box-shadow: 0 6px 24px rgba(10,52,114,.35); }
.update-bar .btn-update { border: 0; border-radius: 10px; padding: 7px 16px; font: inherit; font-weight: 700; cursor: pointer; background: var(--grad); color: #fff; }
.version-line { font-size: .8rem; margin-top: 18px; direction: rtl; }
.version-line #checkUpdate { display: inline-block; margin-top: 6px; }

/* ───── سفرها (M3) ───── */
.avatar.sm { width: 32px; height: 32px; font-size: .9rem; flex-shrink: 0; } .avatar.md { width: 56px; height: 56px; font-size: 1.3rem; flex-shrink: 0; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs a { flex: 1; text-align: center; padding: 9px 0; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); color: var(--muted); font-weight: 700; }
.tabs a.on { background: var(--grad); border-color: transparent; color: #fff; }
.seg { display: flex; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.seg button { flex: 1; border: 0; background: none; font: inherit; padding: 8px 4px; border-radius: 9px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--grad); color: #fff; font-weight: 700; } .seg.small button { padding: 5px 4px; font-size: .9rem; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1.5px solid var(--line); background: var(--card); color: var(--text); border-radius: 99px; padding: 6px 14px; font: inherit; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--grad); border-color: transparent; color: #fff; font-weight: 700; }
.trip-card { display: block; color: var(--text); }
.trip-route { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.05rem; }
.trip-route.big { font-size: 1.2rem; margin-bottom: 8px; } .arrow { color: var(--blue); font-weight: 700; }
.trip-meta { display: flex; justify-content: space-between; align-items: center; margin: 6px 0; }
.price { color: var(--green-dark); font-weight: 700; }
.trip-driver { display: flex; align-items: center; gap: 8px; margin-top: 6px; } .trip-driver.big { gap: 12px; }
.friend-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.friend-row .trip-driver { margin-top: 0; }
.stars { color: #f0a500; font-weight: 700; }
.trip-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.btn-col { display: flex; flex-direction: column; gap: 10px; }
.center-screen.short { min-height: 120px; }
.contact { background: rgba(0, 177, 116, .1); border-radius: 12px; padding: 12px; margin: 12px 0; }
.phone, .tel { direction: ltr; text-align: right; font-weight: 700; font-size: 1.1rem; color: var(--green-dark); }
.booking { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.booking:first-of-type { border-top: 0; }
/* دکمهٔ مینیمالِ افزودن/حذف دوست منتخب + جداکنندهٔ کادر پروفایل */
.fav-divider { border-top: 1px dashed var(--line); margin: 12px 0 10px; }
.fav-btn { display: inline-flex; align-items: center; gap: 6px; }
.fav-ic { font-size: 1rem; color: #cfd6e4; line-height: 1; }
.fav-btn.on { border-color: rgba(240, 165, 0, .5); color: #b5670a; }
.fav-btn.on .fav-ic { color: #f0a500; }
.companion-list .trip-driver { padding: 8px 0; border-top: 1px solid var(--line); margin-top: 0; }
.companion-list .trip-driver:first-child { border-top: 0; }
.quote { background: var(--bg); border-radius: 10px; padding: 8px 12px; font-size: .92rem; }
.rate-box { background: var(--bg); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.stars-input { display: flex; gap: 6px; justify-content: center; direction: ltr; }
.star { border: 0; background: none; font-size: 2rem; line-height: 1; color: #cfd6e4; cursor: pointer; padding: 0 2px; }
.star.on { color: #f0a500; }
.modal-bg { position: fixed; inset: 0; background: rgba(10, 30, 60, .55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal { width: 100%; max-width: 480px; background: var(--card); border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 10px; }
.notif { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.notif.unread { border-inline-start: 4px solid var(--blue); background: rgba(52, 152, 219, .07); }
.notif-ic { font-size: 1.5rem; line-height: 1.2; } .pre { white-space: pre-line; } .small { font-size: .78rem; }
.nav a { position: relative; }
.nav-badge { position: absolute; top: 4px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .68rem; font-style: normal; line-height: 18px; text-align: center; }
.nav-badge[hidden] { display: none; }

/* ───── M4: تقویم شمسی، نقشه، مکان‌ها، برنامه‌ریزی ───── */
.btn.sm { height: 38px; padding: 0 12px; font-size: .88rem; width: auto; }
.chips.small .chip { padding: 3px 10px; font-size: .8rem; }
.chip.static { cursor: default; } .chip.bad { border-color: var(--danger); color: var(--danger); }
.card.sub { background: rgba(52, 152, 219, .07); box-shadow: none; padding: 12px; }
.sheet-bg { align-items: flex-end; }
.sheet { width: 100%; max-width: 480px; background: var(--card); border-radius: 18px 18px 0 0; padding: 14px 14px calc(14px + var(--safe-bottom)); max-height: 92vh; overflow: auto; }
.datebtn { text-align: start; cursor: pointer; color: var(--muted); }
.datebtn.filled { color: var(--text); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-title { font-size: 1.05rem; }
.dp-nav { width: 40px; height: 40px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); border-radius: 12px; font-size: 1.3rem; cursor: pointer; }
.dp-nav[disabled] { opacity: .3; cursor: default; }
.dp-sub { text-align: center; font-size: .8rem; margin-bottom: 4px; }
.dp-week, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dp-week span { font-size: .8rem; color: var(--muted); padding: 4px 0; } .dp-week .fri, .dp-day.fri { color: var(--danger); }
.dp-day { height: 42px; border: 0; border-radius: 12px; background: none; font: inherit; color: var(--text); cursor: pointer; }
.dp-day.today { border: 1.5px solid var(--blue); }
.dp-day.on { background: var(--grad); color: #fff; font-weight: 700; }
.dp-day[disabled] { opacity: .28; cursor: default; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 10px; }
.timebtn { text-align: start; cursor: pointer; color: var(--muted); direction: ltr; }
.timebtn.filled { color: var(--text); font-weight: 700; }
.tp-big { text-align: center; font-size: 2.4rem; font-weight: 800; direction: ltr; color: var(--text); margin-bottom: 4px; }
.tp-cols { display: flex; direction: ltr; align-items: center; justify-content: center; gap: 10px; margin: 10px 0; }
.tp-col { width: 76px; height: 190px; overflow-y: auto; scroll-snap-type: y mandatory; border: 1.5px solid var(--line); border-radius: 14px; padding: 4px 0; background: var(--bg); }
.tp-colon { font-size: 1.4rem; font-weight: 800; color: var(--muted); }
.tp-cell { display: block; width: 100%; border: 0; background: none; font: inherit; font-size: 1.05rem; color: var(--text); padding: 9px 0; text-align: center; cursor: pointer; scroll-snap-align: center; border-radius: 10px; }
.tp-cell.on { background: var(--grad); color: #fff; font-weight: 700; }
.tp-presets { justify-content: center; margin-bottom: 6px; }
.ymd-cols { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; }
.ymd-big { text-align: center; font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.map-box { width: 100%; height: 210px; border-radius: 12px; overflow: hidden; background: var(--line); margin-bottom: 8px; position: relative; }
.map-box.tall { height: 300px; }
.map-box.map-fail { display: flex; align-items: center; justify-content: center; }
/* پین سفارشی با برچسبِ اسم (نقشهٔ محل سوار شدن همپاها) */
.hira-pin { display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.hira-pin-label {
  max-width: 92px; margin-bottom: 2px; padding: 2px 8px; border-radius: 99px; background: var(--card); color: var(--text);
  font-size: .72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--shadow);
}
.hira-pin svg { display: block; }
.routebox { margin-bottom: 10px; }
.loc-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.locbox { border: 1.5px dashed var(--line); border-radius: 14px; padding: 10px; margin-bottom: 12px; }
.locbox .field { margin-bottom: 8px; }
.loc-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.loc-pt { color: var(--green-dark); font-size: .85rem; }
.place-chips { align-items: center; }
.wd { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.wd-btn { border: 1.5px solid var(--line); background: var(--card); color: var(--text); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: .85rem; cursor: pointer; }
.wd-btn.on { background: var(--grad); border-color: transparent; color: #fff; font-weight: 700; }
.place-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.place-actions { margin-top: 8px; }
.nav-links { margin-top: 4px; }
/* انتخاب موقعیت تمام‌صفحه */
.mp { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; }
.mp-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-top)) 14px 8px; background: var(--card); }
.mp-x { border: 0; background: none; font-size: 1.3rem; color: var(--text); cursor: pointer; }
.mp-search { position: relative; padding: 0 12px 8px; background: var(--card); z-index: 3; }
.mp-results { position: absolute; inset-inline: 12px; top: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; max-height: 45vh; overflow: auto; box-shadow: var(--shadow); }
.mp-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: start; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 10px 12px; font: inherit; color: var(--text); cursor: pointer; }
.mp-none { padding: 12px; }
.mp-map { flex: 1; position: relative; }
.mp-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.mp-pin svg { display: block; }
.mp-gps { position: absolute; inset-inline-start: 14px; bottom: 140px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--card); color: var(--blue-dark); font-size: 1.4rem; box-shadow: var(--shadow); cursor: pointer; z-index: 3; }
.mp-bottom { background: var(--card); padding: 12px 14px calc(12px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.mp-addr { min-height: 2.4em; font-size: .92rem; }

/* ───── v0.7: اسلایدر، باکس‌های ثبت سفر، پلاک ───── */
.slider { position: relative; margin: 8px 0 14px; }
.sl-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; box-shadow: var(--shadow); }
.sl-track::-webkit-scrollbar { display: none; }
.sl-slide { flex: 0 0 100%; scroll-snap-align: center; min-height: 210px; display: flex; align-items: flex-end; text-decoration: none; color: #fff; position: relative; background-color: #0a3472; }
.sl-cap { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 30px; width: 100%; background: linear-gradient(0deg, rgba(4, 12, 30, .72) 0%, rgba(4, 12, 30, .28) 55%, transparent 100%); }
.sl-cap b { font-size: 1.35rem; font-weight: 800; line-height: 1.45; } .sl-cap small { opacity: .92; font-size: .82rem; }
.sl-dots { position: absolute; bottom: 10px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.sl-dot { pointer-events: auto; width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .2s; }
.sl-dot.on { width: 22px; background: #fff; }
.cta2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.cta { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 20px; text-decoration: none; box-shadow: 0 1px 4px rgba(10, 52, 114, .06); min-height: 148px; }
.cta-top { display: flex; align-items: flex-start; justify-content: space-between; }
.cta-tag { background: rgba(255, 255, 255, .65); border-radius: 99px; padding: 3px 11px; font-size: .7rem; font-weight: 700; }
.cta-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto; }
.cta-icon .ic { width: 22px; height: 22px; }
.cta b { font-size: 1.3rem; font-weight: 800; margin-top: auto; } .cta small { opacity: .78; font-size: .78rem; line-height: 1.5; }
.cta small.one-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta.blue { background: #e9f2fc; color: #0a3472; } .cta.blue .cta-icon { background: var(--blue); }
.cta.green { background: #e6f9f0; color: #04512f; } .cta.green .cta-icon { background: var(--green); }
.cta:active { transform: scale(.98); }
.plate-in { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.plate-in .input { text-align: center; padding-inline: 4px; } .plate-in .select { width: 74px; flex: 0 0 auto; }
.plate-in #pl1 { width: 62px; } .plate-in #pl2 { width: 76px; } .plate-in .pl-code { width: 62px; border-color: var(--blue); }
.plate { display: inline-flex; align-items: stretch; border: 2px solid #222; border-radius: 8px; overflow: hidden; background: #f7f7f2; color: #111; font-weight: 700; direction: ltr; }
.pl-main { padding: 2px 10px; font-size: 1.05rem; letter-spacing: .04em; unicode-bidi: isolate; } .pl-main bdi { margin-inline: 3px; font-weight: 700; unicode-bidi: isolate; }
.pl-iran { background: #1f5fa8; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 8px; line-height: 1.1; font-size: .95rem; }
.pl-iran small { font-size: .55rem; font-weight: 400; }
.loc-sum { margin-bottom: 8px; }

/* ───── v0.8: پوش و درخواست سفر ───── */
.push-card { background: rgba(0, 177, 116, .08); box-shadow: none; }
.push-msg { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; line-height: 1.7; } .push-ic { font-size: 1.4rem; }
.card.sub .badge { margin-inline-end: 6px; }

/* ───── v0.9: سازمان، سفر سبز، کیف پول ───── */
.org-badge { background: color-mix(in srgb, var(--oc, var(--blue)) 15%, #fff); color: var(--oc, var(--blue-dark)); }
.org-logo { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; vertical-align: -3px; margin-inline-end: 2px; }
.org-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.org-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.green-badge { background: #e7f6ef; color: #04804f; }
.green-ribbon { margin-top: 6px; display: inline-block; background: #e7f6ef; color: #04804f; padding: 4px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.green-card { background: #e7f6ef; color: #04804f; text-align: center; font-weight: 600; }
.green-toggle { background: #f2fbf6; border-radius: 12px; padding: 10px 12px; }
.wallet-balance h1 { color: var(--green-dark, #04804f); margin: 6px 0; font-size: 1.8rem; }
.wallet-row { padding: 12px 14px; }

/* ───── v0.10: هدر خانه (باکس‌های امتیاز/اعتبار + لینک پروفایل) ───── */
.head-stats { display: flex; align-items: center; gap: 6px; }
.mini-stat { display: flex; align-items: center; gap: 7px; border-radius: 99px; padding: 6px 10px 6px 7px; font-size: .72rem; font-weight: 400; white-space: nowrap; border: 1px solid #ededed; }
.mini-label { opacity: 1; font-weight: 400; }
.mini-num { min-width: 24px; height: 24px; padding: 0 6px; display: flex; align-items: center; justify-content: center; border-radius: 99px; background: #fff; font-size: .82rem; font-weight: 400; flex: 0 0 auto; }
.mini-points { background: #e8f1fc; color: #2f6fb0; }
.mini-points .mini-num { color: #2f6fb0; }
.mini-credit { background: #fff6da; color: #96751a; }
.mini-credit .mini-num { color: #96751a; }
.head-avatar { display: block; line-height: 0; }
.head-avatar .avatar { width: 40px; height: 40px; }
.head-avatar-wrap { position: relative; display: inline-flex; }
.head-bell { position: absolute; top: -4px; inset-inline-start: -6px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; color: var(--blue-dark); }
.head-bell .ic { width: 15px; height: 15px; }
.head-bell .nav-badge { top: -5px; inset-inline-start: auto; inset-inline-end: -6px; min-width: 15px; height: 15px; font-size: .58rem; line-height: 15px; padding: 0 3px; }

/* ───── v0.12: کیف‌پول و اعتبار سفر ───── */
.credit-summary { justify-content: space-around; text-align: center; padding: 16px 10px; }
.cs-item { display: flex; flex-direction: column; gap: 2px; }
.cs-item b { font-size: 1.15rem; }
.plan-row { padding: 12px 14px; }

/* ───── v0.15: منو/پروفایل — فهرست ردیفی آیکون‌دار، صفحهٔ منو، شبکه‌های اجتماعی ───── */
.list-menu { padding: 6px 6px; }
.list-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 10px; border: 0; background: none;
  border-bottom: 1px solid var(--line); color: var(--text); font: inherit; text-align: start; cursor: pointer;
}
.list-row:last-child { border-bottom: 0; }
.list-row .lr-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(52, 152, 219, .12); color: var(--blue-dark); }
.list-row .lr-ic .ic { width: 22px; height: 22px; }
.list-row .lr-body { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.list-row .lr-label { font-size: .95rem; }
.list-row .lr-sub { font-size: .78rem; color: var(--muted); }
.list-row .lr-badge { flex: 0 0 auto; background: rgba(255, 193, 7, .22); color: #8a6500; font-weight: 700; }
.list-row .lr-chev { flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); }
.list-row .lr-chev .ic { width: 100%; height: 100%; }
.list-row.danger { color: var(--danger); }
.list-row.danger .lr-ic { background: rgba(229, 56, 74, .12); color: var(--danger); }

.menu-profile-link { display: block; color: var(--text); }
.mobile-num { direction: ltr; text-align: center; }
.profile-view-btn { display: inline-block; background: var(--bg); color: var(--blue-dark); border: 1px solid var(--line); border-radius: 99px; padding: 7px 20px; font-size: .82rem; font-weight: 700; box-shadow: none; margin-top: 2px; }

.social-links { display: flex; justify-content: center; gap: 12px; margin: 4px 0 14px; }
.social-ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card); box-shadow: var(--shadow); color: var(--blue-dark); }
.social-ic .ic { width: 22px; height: 22px; }

.page-content { line-height: 2; font-size: .95rem; }
.page-content h2, .page-content h3, .page-content h4 { margin: 14px 0 8px; }
.page-content ul, .page-content ol { padding-inline-start: 22px; margin: 8px 0; }
.page-content blockquote { border-inline-start: 3px solid var(--line); padding-inline-start: 12px; margin: 10px 0; color: var(--muted); }
.page-content a { text-decoration: underline; }

/* ───── v0.18: اثر زیست‌محیطی (صرفه‌جویی سوخت/CO2) ───── */
.eco-card { background: linear-gradient(135deg, rgba(0, 177, 116, .08), rgba(0, 177, 116, .02)); border: 1px solid rgba(0, 177, 116, .25); }
.eco-card h3 { margin-top: 0; }
.eco-stats { display: flex; gap: 10px; margin: 10px 0 6px; }
.eco-stat { flex: 1; text-align: center; background: var(--card); border-radius: 12px; padding: 12px 8px; box-shadow: var(--shadow); }
.eco-stat b { display: block; font-size: 1.3rem; color: var(--green-dark); }
.eco-stat span { color: var(--muted); font-size: .78rem; }

/* ───── v0.36: ثبت سفر روی نقشه (مثل اسنپ/تپسی) ───── */
.tm { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; }
/* نقشه تمام‌صفحه؛ CSS خودِ SDK نشان به این عنصر position:relative می‌دهد، پس با flex/اندازهٔ صریح پر می‌شود نه absolute */
.tm-map { position: relative; flex: 1; width: 100%; height: 100%; min-height: 100%; }
.tm-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.tm-pin[hidden], .tm-gps[hidden], .tm-places[hidden], .tm-swap[hidden], .tm-search[hidden] { display: none; }
.tm-pin svg { display: block; }
.tm-head { position: absolute; inset-inline: 10px; top: calc(10px + var(--safe-top)); z-index: 4; display: flex; align-items: center; gap: 8px; }
.tm-x { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--card); color: var(--text); font-size: 1.15rem; box-shadow: var(--shadow); cursor: pointer; }
.tm-rows { flex: 1; min-width: 0; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.tm-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: 0; background: none; font: inherit; color: var(--text); text-align: start; cursor: pointer; }
.tm-row + .tm-row { border-top: 1px solid var(--line); }
.tm-row.on { background: color-mix(in srgb, var(--blue) 10%, var(--card)); font-weight: 700; }
.tm-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; }
.tm-dot.o { background: var(--green); } .tm-dot.d { background: #e5384a; }
.tm-swap { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--card); color: var(--blue-dark); font-size: 1.2rem; box-shadow: var(--shadow); cursor: pointer; }
.tm-gps { bottom: calc(var(--tm-sheet, 190px) + 14px); z-index: 4; }
.tm-sheet { position: absolute; inset-inline: 0; bottom: 0; z-index: 4; background: var(--card); border-radius: 22px 22px 0 0; box-shadow: 0 -4px 18px rgba(10, 52, 114, .14); padding: 14px 14px calc(12px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 10px; }
.tm-search { position: relative; }
.tm-search .mp-results { top: auto; bottom: 100%; margin-bottom: 6px; }
.tm-places { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tm-places::-webkit-scrollbar { display: none; }
.tm-places .chip { flex: 0 0 auto; }
.tm-manual { align-self: center; font-size: .82rem; }

/* ───── v0.37: پین خیابان‌های میان‌راه + مسیرهای من ───── */
.tm-sheet { max-height: 62vh; overflow-y: auto; }
.tm-mine[hidden], .tm-route[hidden], .tm-sugg[hidden] { display: none; }
.tm-lbl { font-weight: 700; font-size: .85rem; margin-bottom: 4px; }
.tm-mine .chips, .tm-streets, .tm-vias .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-mine .chip.mine { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-streets .chip.on, .tm-vias .chip.on { background: color-mix(in srgb, #f5a623 22%, var(--card)); border-color: #f5a623; color: var(--text); }
.tm-streets .chip.static { opacity: .85; cursor: default; }
.tm-vx { border: 0; background: none; cursor: pointer; color: var(--text); font-size: .9rem; padding: 0 2px; }
.tm-sugg { background: color-mix(in srgb, var(--blue) 9%, var(--card)); border-radius: 12px; padding: 8px 10px; font-size: .85rem; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.tm-route { display: flex; flex-direction: column; gap: 8px; }
#tmaddpin.on { border-color: #f5a623; background: color-mix(in srgb, #f5a623 18%, var(--card)); }
.streets-line { margin-top: 2px; }

/* ───── v0.38: جستجوی سفر روی نقشه (تطبیق مسیر) ───── */
.map-search-btn { width: 100%; margin-bottom: 12px; white-space: nowrap; }   /* دکمهٔ کنش استاندارد: گرادینت + متن سفید */
.map-search-btn[hidden], .geo-sum[hidden], #cityFields[hidden] { display: none; }
.geo-sum { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.geo-pts { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.geo-pts .tm-dot { display: inline-block; margin-inline-end: 6px; }
.geo-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trip-match { margin-top: 6px; font-size: .86rem; color: var(--blue-dark); background: color-mix(in srgb, var(--blue) 9%, var(--card)); border-radius: 10px; padding: 5px 10px; }

/* ───── v0.39: درخواست سفر روی نقشه + مسیرهای پرتکرار ───── */
.tm-sugg b { font-weight: 800; }
.route-reqs { border: 1px solid color-mix(in srgb, var(--green, #04b276) 40%, var(--line)); }
.trip-match-row { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .92rem; }

/* ───── v0.40: جزئیات آیکون‌ها (Phosphor) در اجزای موجود ───── */
.star .ic { width: 1em; height: 1em; display: block; }
.stars .ic, .star-ic, .fav-ic .ic { color: #f0a500; }
.fav-ic .ic { color: inherit; vertical-align: -.2em; }
.star.on .ic { color: #f0a500; }
.ok-ic { color: var(--green-dark); } .pin-ic { color: #f5a623; }
.notif-ic .ic, .push-ic .ic { width: 1.4rem; height: 1.4rem; color: var(--blue-dark); }
.tm-x .ic, .tm-swap .ic, .mp-x .ic, .mp-gps .ic { width: 1.35rem; height: 1.35rem; vertical-align: middle; }
.datebtn .ic, .timebtn .ic { color: var(--muted); }
.chip .ic, .badge .ic, .btn-link .ic { vertical-align: -.22em; }
.green-card .ic, .eco-card h3 .ic, .green-ribbon .ic { color: var(--green-dark); }

/* دک شناور در حالت تیره: لبهٔ ظریف به‌جای سایه + آیکون فعال روشن‌تر */
@media (prefers-color-scheme: dark) {
  .nav { box-shadow: 0 0 0 1px var(--line); }
  .nav a.active { background: rgba(52, 152, 219, .15); color: #6cb8ea; }
}

/* v0.43.0 — دسترسی‌پذیری و لمس: هدف لمسی ≥۴۴px، فوکوس صفحه‌کلید، حالت :active، کنتراست تیره */
.chip { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.chip.static { min-height: 0; }
.btn.sm { min-height: 44px; height: 44px; }
.btn-link { min-height: 44px; min-width: 44px; padding: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.badge { font-size: .8rem; }
.btn:focus-visible, .btn-link:focus-visible, .chip:focus-visible, .nav a:focus-visible, .tabs a:focus-visible,
.seg button:focus-visible, .input:focus-visible, .select:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(52, 152, 219, .55); outline-offset: 2px;
}
.input:focus-visible, .select:focus-visible { outline-offset: 0; }
.chip:active, .btn-link:active, .nav a:active, .tabs a:active, .seg button:active { transform: scale(.97); opacity: .9; }
@media (prefers-color-scheme: dark) {
  a, .btn.ghost.link, .btn-link.blue { color: #6cb8ea; }
  .badge { color: #8cc9f0; }
  .badge.green { color: #4fd6a1; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* v0.43.1 — دکمه‌های «تب» خنثی (نه گرادینت) تا با دکمه‌های کنش قاطی نشوند */
.tabs a.on, .seg button.on { background: var(--text); border-color: transparent; color: var(--card); }

/* پنل پایینِ نقشه: زبانهٔ کشیدنی؛ حالت کوچک = فقط نشانی (یک خط) + تأیید */
.tm-grip { align-self: center; width: 100%; height: 22px; margin: -8px 0 -4px; border: 0; background: none; cursor: grab; touch-action: none; display: flex; align-items: center; justify-content: center; }
.tm-grip i { width: 44px; height: 5px; border-radius: 99px; background: var(--line); display: block; }
.tm-sheet.min { overflow: hidden; gap: 6px; }
.tm-sheet.min > :not(.tm-grip):not(.mp-addr):not(#tmok) { display: none; }
.tm-sheet.min .mp-addr { min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-sheet { max-height: 58vh; }

/* v0.44.0 — آواتارهای آمادهٔ همپا + یادداشت عکس اجباری */
.av-actions { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.err-note { color: var(--danger); margin: 0 0 4px; }
.av-pick { position: fixed; inset: 0; z-index: 70; background: rgba(10, 20, 40, .5); display: flex; align-items: flex-end; justify-content: center; }
.av-box { width: 100%; max-width: 480px; max-height: 85vh; overflow-y: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 16px 18px calc(18px + var(--safe-bottom)); }
.av-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.av-box h4 { margin: 12px 0 8px; font-size: .9rem; color: var(--muted); }
.av-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; justify-items: center; }
.av-opt { border: 3px solid transparent; background: none; padding: 2px; border-radius: 50%; cursor: pointer; line-height: 0; }
.av-opt img { width: 72px; height: 72px; border-radius: 50%; display: block; }
.av-opt.on { border-color: var(--blue); }
.av-opt:active { transform: scale(.94); }

/* v0.45.0 — معرفی ورود اولیه (قبل از صفحهٔ ورود) */
.intro { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(10px + var(--safe-top)) 0 calc(18px + var(--safe-bottom)); }
.intro-top { display: flex; justify-content: flex-start; padding: 0 12px; min-height: 44px; }
.intro-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.intro-track::-webkit-scrollbar { display: none; }
.intro-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 8px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.intro-art { width: 100%; max-width: 360px; aspect-ratio: 4 / 3; border-radius: 28px; background: var(--grad); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 14px; box-shadow: 0 12px 30px rgba(10, 52, 114, .18); }
.intro-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro-ic { color: #fff; display: flex; } .intro-ic .ic { width: 96px; height: 96px; }
.intro-slide h2 { margin: 0; font-size: 1.35rem; }
.intro-slide p { margin: 0; color: var(--muted); max-width: 320px; line-height: 1.9; }
.intro-dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0; }
.intro-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .2s, background .2s; }
.intro-dots i.on { width: 24px; background: var(--blue); }
.intro-foot { padding: 0 24px; }

/* v0.46.0 — مرکز راهنما و گزارش مشکل */
.help-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.help-item { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; }
.help-item summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; min-height: 44px; }
.help-item summary::-webkit-details-marker { display: none; }
.help-item[open] summary { color: var(--blue-dark); }
.help-body { padding: 0 16px 14px; color: var(--text); line-height: 2; }
.sec-title { margin: 18px 0 8px; font-size: 1rem; }
.report-card .rc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.report-card p { margin: 8px 0 0; white-space: pre-wrap; }
.rc-reply { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--blue) 9%, var(--card)); font-size: .92rem; }
.rshot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (prefers-color-scheme: dark) { .help-item[open] summary { color: #6cb8ea; } }

/* v0.47.0 — فهرست اعلان‌ها: ۱۰ تای اول + خطِ جداکننده با «مشاهدهٔ همهٔ اعلان‌ها» */
.nmore-wrap { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; }
.nmore-line { flex: 1; height: 1px; background: var(--line); }
.nmore-wrap .btn-link { color: var(--blue-dark); font-weight: 700; }
@media (prefers-color-scheme: dark) { .nmore-wrap .btn-link { color: #6cb8ea; } }

/* قفل اطلاعات پروفایل */
.lock-banner { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border, #e3e8ef); }
.lock-banner > svg, .lock-banner > .ic { flex: none; width: 26px; height: 26px; color: var(--primary, #2563eb); }
.lock-banner > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.lock-banner span { font-size: .85rem; color: var(--muted); }
.lock-banner.open > svg, .lock-banner.open > .ic { color: #16a34a; }
input:disabled, select:disabled { opacity: .65; cursor: not-allowed; }

/* کراپ عکس پروفایل */
.crop-wrap { position: relative; width: 280px; height: 280px; margin: 10px auto; touch-action: none; border-radius: 14px; overflow: hidden; background: #eee; }
.crop-wrap canvas { display: block; width: 280px; height: 280px; cursor: grab; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 600px rgba(10, 20, 40, .45); pointer-events: none; border: 2px solid #fff; }
#cpz { direction: ltr; width: 280px; max-width: 100%; display: block; margin: 8px auto; }
#cpw { margin: 6px 0 10px; }

/* نجات سفر: دیالوگ لغو راننده */
.cancel-modal { max-height: 90vh; overflow-y: auto; }
.cancel-sev { border-radius: 12px; padding: 10px 12px; background: #eef7f0; }
.cancel-sev.sev-light { background: #fff6e0; }
.cancel-sev.sev-heavy { background: #fdeaea; }
.cancel-reasons { display: flex; flex-direction: column; gap: 6px; }
.rescue-card .trip-card { margin-top: 8px; }

.noshow-card { border: 1px solid #f3c969; background: #fffaf0; }

.push-ask h3 { display: flex; gap: 8px; align-items: flex-start; font-size: 1rem; }
#pushBox:empty { display: none; }
