/* فونت دست‌خط (محلی، بدون نیاز به اینترنت). برای عوض کردن فونت فقط --font را تغییر دهید */
@font-face { font-family: 'Dastkhat'; src: url("../fonts/Dastkhat-Variable.4dd271bf345d.woff2") format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }

/* ==========================================================
   JAGOZIN brand palette: orange · charcoal · warm white
   ========================================================== */
:root {
  --font: 'Dastkhat', Tahoma, 'Segoe UI', sans-serif;
  --orange: #FF5A1F;
  --orange-d: #B93C0A;   /* نارنجی تیره برای متن و هاور؛ کنتراست ≥ ۴٫۶:۱ روی سفید، کرم و نارنجی روشن */
  --focus: #B93C0A;
  --cream: #FFF0E9;
  --cream-soft: #FFF7F3;
  --mint: #FFE3D6;
  --blue: #FFCBB6;
  --ink: #202832;
  --ink-2: #5E6875;
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --surface: #F8F9FA;
  --line: rgba(32, 40, 50, .11);
  --sky-h: clamp(96px, 19vw, 230px);
  --r: 18px;
  --r-s: 12px;
  --sh: 0 12px 32px rgba(32, 40, 50, .09);
  --sh-s: 0 2px 10px rgba(32, 40, 50, .06);
  --inv: #202832;               /* سطح تیره‌ی ثابت (دکمه‌ی فعال، توست، بنر) */
  --footer-bg: #202832;
  --header-bg: rgba(255, 255, 255, .92);
  --chip-bg: rgba(255, 255, 255, .82);
  --sk-a: #f3ece7; --sk-b: #faf6f3;
  color-scheme: light;
}

/* ---------- حالت تیره (با دکمه‌ی خورشید/ماه در هدر؛ منطق در js/theme.js) ---------- */
:root[data-theme="dark"] {
  --orange-d: #FF8A5B;
  --focus: #FFB38F;
  --cream: #3A2619;
  --cream-soft: #2B2019;
  --mint: #4A2D1D;
  --blue: #5C3924;
  --ink: #EEF2F7;
  --ink-2: #A5B1BF;
  --bg: #12161C;
  --card: #1A2029;
  --surface: #222A35;
  --line: rgba(255, 255, 255, .11);
  --sh: 0 12px 32px rgba(0, 0, 0, .45);
  --sh-s: 0 2px 10px rgba(0, 0, 0, .35);
  --inv: #36414F;
  --footer-bg: #0B0E12;
  --header-bg: rgba(18, 22, 28, .92);
  --chip-bg: rgba(26, 32, 41, .85);
  --sk-a: #1E2530; --sk-b: #28313E;
  color-scheme: dark;
}
:root[data-theme="dark"] .site-header .brand-logo { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="dark"] .btn-danger { color: #ff9a92; border-color: rgba(255, 154, 146, .35); }
:root[data-theme="dark"] .btn-danger:hover { background: rgba(255, 154, 146, .12); }
:root[data-theme="dark"] .btn-primary { color: #fff; }
:root[data-theme="dark"] .btn-primary:hover { background: #E8501A; }
:root[data-theme="dark"] .hero { background-color: var(--bg); }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { color-scheme: dark; }
:root[data-theme="dark"] .view-toggle .btn.on { color: var(--ink); }
:root[data-theme="dark"] .cafe-surface-warm { --bg: #1B1713; --card: #241F1A; --surface: #2C2620; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; direction: rtl;
  font-family: var(--font);
  background: var(--bg); color: var(--ink);
  line-height: 1.8; font-size: 16px;
  overflow-x: clip;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.38; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: 1.42rem; font-weight: 800; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.ic { flex: none; vertical-align: middle; }
.muted { color: var(--ink-2); }
.small { font-size: .87rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* روی پس‌زمینه‌ی تیره حلقه‌ی فوکوس روشن می‌شود */
.site-footer :focus-visible, .lightbox :focus-visible, .cafe-surface-dark :focus-visible { outline-color: #FFB38F; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .48rem;
  min-height: 44px; padding: .55rem 1.2rem; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 600; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, color .15s;
  white-space: nowrap; flex-shrink: 0; background: none; color: var(--ink);
}
.btn:active:not([disabled]) { transform: scale(.98); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); }
.btn-soft { background: var(--cream); color: var(--ink); }
.btn-soft:hover { background: var(--mint); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); background: var(--surface); }
.btn-danger { background: var(--card); color: #b3261e; border-color: #efc4c0; }
.btn-danger:hover { background: #fdeceb; }
.btn-sm { min-height: 36px; padding: .28rem .85rem; font-size: .88rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- هدر و فوتر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1.2rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 1; }
.logo .brand-logo { display: block; width: 148px; height: auto; max-height: 46px; }
.main-nav { display: flex; gap: .35rem; align-items: center; }
.main-nav a {
  padding: .35rem .85rem; border-radius: 10px; color: var(--ink-2);
  font-weight: 600; font-size: .95rem; white-space: nowrap; flex-shrink: 0;
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--ink); background: var(--surface); }
.main-nav a.on { color: var(--orange-d); background: var(--cream-soft); }
.auth { margin-inline-start: auto; display: flex; gap: .5rem; align-items: center; flex-shrink: 0; }
.mobile-menu-btn { display: none !important; margin-inline-start: auto; }

.site-footer { position: relative; margin-top: calc(var(--sky-h) + 28px); background: var(--footer-bg); color: #dbe3ec; padding: 40px 0 28px; }
/* خط افق شهر بالای فوتر؛ کف تصویر با رنگ فوتر یکی است */
.foot-skyline {
  position: absolute; bottom: calc(100% - 1px); left: 50%; transform: translateX(-50%);
  height: var(--sky-h); width: min(100%, calc(var(--sky-h) * 4.06)); object-fit: cover; object-position: 64% 100%;
  pointer-events: none; user-select: none;
}
.site-footer .logo .brand-logo { filter: brightness(0) invert(1); }
.foot-grid { display: grid; gap: 28px 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.foot-brand p { color: #aebccc; max-width: 380px; margin: .6rem 0 0; font-size: .95rem; }
.foot-contact { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .9rem; }
.foot-contact a { color: #dbe3ec; }
.foot-contact a:hover, .foot-col a:hover, .copy a:hover { color: var(--cream); }
.foot-col, .foot-trust { display: flex; flex-direction: column; gap: .15rem; align-items: flex-start; }
.foot-col h4, .foot-trust h4 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 800; color: #fff; }
.foot-col a { color: #c3cfdc; font-size: .94rem; padding: .22rem 0; transition: color .15s; }
.trust-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-badge {
  display: inline-grid; place-items: center; gap: 2px; width: 104px; height: 104px; padding: 8px;
  background: #fff; border-radius: 14px; overflow: hidden;
}
.trust-badge img { width: 100%; height: 100%; object-fit: contain; }
.trust-empty { background: transparent; border: 1.5px dashed rgba(255, 255, 255, .28); color: #8ea0b4; text-align: center; align-content: center; }
.trust-empty small { font-size: .72rem; line-height: 1.4; }
.copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #8ea0b4; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between; align-items: center; }
.copy a { color: #aebccc; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .foot-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; } }

/* صفحه‌ی متنی (قوانین و مقررات) */
.legal-text { max-width: 820px; margin-inline: auto; }
.legal-text h2 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; color: var(--ink); }
.legal-text p, .legal-text li { color: var(--ink-2); line-height: 2; }
.legal-text ul, .legal-text ol { padding-inline-start: 1.3rem; margin: 0 0 1em; }
.legal-text a { color: var(--orange-d); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--line); }

/* دکمه‌های سمت چپ هدر (تیره/روشن + حساب) */
.bar-end { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.acct-btn { display: none !important; color: var(--ink); }
.theme-btn { cursor: pointer; color: var(--ink); }
.theme-btn:hover, .acct-btn:hover { background: var(--surface); }

/* ---------- منوی پایین صفحه‌ی موبایل (متصل به کل سایت) ---------- */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; inset-inline: 0; z-index: 60;
  background: var(--header-bg); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px;
  box-shadow: 0 -6px 24px rgba(32, 40, 50, .06);
}
.mn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 48px; border-radius: 12px; color: var(--ink-2);
  font-size: .74rem; font-weight: 600; transition: color .15s, background .15s;
}
.mn-item .ic { transition: transform .15s; }
.mn-item.on { color: var(--orange); background: var(--cream-soft); }
.mn-item.on .ic { transform: translateY(-1px); }

/* ---------- منوی کشویی (Bottom Sheet) ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(20, 28, 38, .52); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .16s ease-out;
}
.drawer-sheet {
  width: min(520px, 100%); background: var(--card);
  border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  max-height: 82vh; overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(20, 28, 38, .18);
  animation: sheetUp .2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes sheetUp { from { transform: translateY(32px); opacity: .7; } }
.sheet-handle { width: 40px; height: 4px; border-radius: 99px; background: rgba(32, 40, 50, .18); margin: 0 auto 12px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-head b { font-size: 1.05rem; }
.drawer-links { display: flex; flex-direction: column; gap: 4px; }
.drawer-links a, .drawer-logout {
  display: flex; align-items: center; gap: .75rem; min-height: 46px; padding: .6rem .9rem;
  border-radius: 12px; font-weight: 600; color: var(--ink); border: 0; background: none; width: 100%; cursor: pointer; text-align: right;
}
.drawer-links a:hover, .drawer-links a.on { background: var(--cream-soft); color: var(--orange-d); }
.drawer-logout { color: #b3261e; }
.drawer-logout:hover { background: #fdeceb; }
.drawer-sep { height: 1px; background: var(--line); margin: 6px 0; }
.drawer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dg-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 12px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--card); cursor: pointer; text-align: right; min-height: 68px; position: relative;
  font-weight: 600; color: var(--ink); transition: border-color .15s, background .15s;
}
.dg-item.on { border-color: var(--orange); background: var(--cream-soft); color: var(--orange-d); }
.dg-item .tier-tag { position: absolute; top: 8px; left: 8px; font-size: .7rem; color: var(--orange-d); font-weight: 700; }

/* ---------- هیرو صفحه‌ی اصلی ---------- */
.hero {
  position: relative; overflow: hidden; padding: 68px 0 78px; text-align: center;
  background:
    radial-gradient(520px 320px at 12% 20%, rgba(255, 90, 31, .10) 0, transparent 70%),
    radial-gradient(520px 340px at 90% 80%, rgba(32, 40, 50, .06) 0, transparent 70%),
    var(--cream-soft);
}
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40px; background: linear-gradient(transparent, var(--bg)); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }
.hero-art { position: relative; z-index: 0; max-width: 460px; width: 88%; margin-inline: auto; }
.hero-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(185, 60, 10, .14)); animation: hero-float 6s ease-in-out infinite; }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.eyebrow { display: inline-block; color: var(--orange-d); font-size: .92rem; font-weight: 700; margin-bottom: .65rem; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.15rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { font-size: 1.06rem; color: var(--ink-2); margin-bottom: 1.65rem; max-width: 580px; margin-inline: auto; }
@media (min-width: 900px) {
  .hero { text-align: start; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; }
  .hero-inner { margin-inline: 0; max-width: 640px; }
  /* صفحه‌های داخلی: متن هیرو هم‌تراز با هدر داخل کانتینر بماند (قبلاً به لبه‌ی صفحه می‌چسبید) */
  .page-hero > .container.hero-inner { max-width: min(1180px, 100% - 32px); margin-inline: auto; }
  .page-hero > .container.hero-inner .lead { max-width: 640px; }
  .hero .lead, .hero .search-box { margin-inline: 0; }
  .hero .type-chips { justify-content: flex-start; }
  .hero-art { max-width: 540px; width: 100%; }
}

.search-box {
  position: relative; display: flex; align-items: center; gap: .45rem;
  background: var(--card); border-radius: 16px; padding: .42rem;
  border: 1.5px solid var(--line); box-shadow: var(--sh); max-width: 640px; margin-inline: auto;
}
.search-box:focus-within { border-color: var(--orange-d); outline: 2px solid var(--focus); outline-offset: 2px; }
.search-box .si { padding-inline: .75rem .15rem; color: var(--ink-2); display: flex; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; padding: .5rem .25rem; min-width: 0; font-size: 1rem; }
.suggest {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; background: var(--card); border-radius: var(--r);
  box-shadow: var(--sh); text-align: right; overflow: hidden; z-index: 10; border: 1px solid var(--line);
}
.suggest a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1.1rem; min-height: 44px; align-items: center; }
.suggest a:hover, .suggest a.act { background: var(--cream-soft); }
.suggest .none { padding: .9rem 1.1rem; color: var(--ink-2); }

.type-chips { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-top: 1.35rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .95rem; border-radius: 10px;
  background: var(--chip-bg); border: 1.5px solid var(--line); font-weight: 600; font-size: .92rem;
}
.chip.on { background: var(--inv); color: #fff; border-color: var(--inv); }
.chip.off { opacity: .62; border-style: dashed; }
.chip small { font-size: .74rem; color: var(--ink-2); font-weight: 500; }

/* ---------- سکشن‌ها ---------- */
.section { padding-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.link-more { color: var(--orange-d); font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); }
.pills { display: flex; gap: .45rem; flex-wrap: wrap; }
.pill {
  min-height: 38px; border: 1.5px solid var(--line); background: var(--card); border-radius: 10px; padding: .25rem .95rem;
  cursor: pointer; font-weight: 600; font-size: .92rem; transition: .15s; white-space: nowrap;
}
.pill:hover { border-color: var(--orange); color: var(--orange-d); }
.pill.on { background: var(--inv); color: #fff; border-color: var(--inv); }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.step { background: var(--card); border-radius: var(--r); padding: 22px; border: 1px solid var(--line); }
.step .num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--orange-d); font-weight: 800; margin-bottom: .75rem; }
.step:nth-child(2) .num { background: var(--mint); }
.step:nth-child(3) .num { background: var(--inv); color: #fff; }
.step h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.cta {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  background: var(--inv); color: #fff; border-radius: 24px; padding: 34px 36px;
  background-image: radial-gradient(320px 220px at 0% 0%, rgba(255, 90, 31, .32), transparent 70%);
}
.cta { position: relative; gap: 24px; }
.cta-pin { width: 112px; height: auto; flex: none; margin-block: -14px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
.cta-text { flex: 1 1 260px; }
.pin-404 { width: 132px; height: auto; margin: 0 auto 10px; filter: drop-shadow(0 14px 18px rgba(185, 60, 10, .22)); animation: hero-float 6s ease-in-out infinite; }
@media (max-width: 560px) { .cta-pin { width: 84px; margin-block: 0; } }
.cta h2 { color: #fff; margin-bottom: .25rem; }
.cta p { margin: 0; color: #cbd5e1; max-width: 560px; }
/* اصلاح دکمه‌ی نامرئی داخل CTA تیره‌رنگ */
.cta .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); color: #fff; }

/* ---------- کارت کافه ---------- */
.cafe-card {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-s); transition: transform .2s, box-shadow .2s;
}
.cafe-card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.cc-img { position: relative; aspect-ratio: 16 / 10; background: var(--cream); overflow: hidden; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cafe-card:hover .cc-img img { transform: scale(1.04); }
.cc-img .badge { position: absolute; top: 12px; right: 12px; }
.cc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: .38rem; flex: 1; }
.cc-body h3 { margin: 0; font-size: 1.12rem; font-weight: 800; }
.cc-meta { display: flex; flex-wrap: wrap; gap: .35rem .85rem; align-items: center; color: var(--ink-2); font-size: .88rem; }
.cc-meta > span { display: inline-flex; align-items: center; gap: .25rem; }
.st-dot { font-weight: 700; font-size: .84rem; }
.st-dot.open { color: #0f6b47; }
.st-dot.closed { color: #a1322b; }
.cc-tag { color: var(--ink-2); font-size: .91rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-am { font-size: .81rem; color: var(--ink-2); margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-foot { margin-top: auto; padding-top: .55rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.res-note { font-size: .81rem; font-weight: 700; color: var(--orange-d); white-space: nowrap; }
.rate { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rate .num { font-weight: 800; }

.badge { display: inline-flex; align-items: center; gap: .25rem; padding: 0 .65rem; border-radius: 8px; font-size: .78rem; font-weight: 700; line-height: 1.85; background: var(--card); box-shadow: var(--sh-s); white-space: nowrap; }
.badge.plus { background: var(--inv); color: #fff; }
.badge.pro { background: var(--orange); color: #fff; }
.badge.open { background: #dff3ea; color: #0f5b3e; box-shadow: none; }
.badge.closed { background: #f8e4e3; color: #8a2a24; box-shadow: none; }
.badge.pending { background: var(--cream); color: #8c3d0c; box-shadow: none; }
.badge.confirmed { background: #dff3ea; color: #0f5b3e; box-shadow: none; }
.badge.rejected { background: #f8e4e3; color: #8a2a24; box-shadow: none; }

.stars { position: relative; display: inline-block; letter-spacing: 2px; line-height: 1; font-size: .98rem; }
.stars-bg { color: #e2ddd7; }
.stars-fg { position: absolute; top: 0; right: 0; width: var(--p); overflow: hidden; white-space: nowrap; color: var(--orange); }
.star-input { display: inline-flex; gap: 2px; }
.star-input button { border: 0; background: none; font-size: 2rem; line-height: 1; color: #dcd6ce; cursor: pointer; padding: 2px 4px; transition: transform .12s, color .12s; }
.star-input button.on { color: var(--orange); transform: scale(1.06); }

.skeleton { border-radius: var(--r); min-height: 260px; background: linear-gradient(100deg, var(--sk-a) 30%, var(--sk-b) 50%, var(--sk-a) 70%); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

.empty { text-align: center; padding: 40px 20px; background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--r); color: var(--ink-2); }
.empty .ic { color: var(--orange); margin-bottom: .45rem; }

/* ---------- صفحه‌ی کافه‌ها و فیلترهای دقیق ---------- */
.cafes-page { padding-top: 28px; }
.cafes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cafes-head h1 { font-weight: 800; font-size: 1.7rem; margin: 0; }
.mobile-filter-btn { display: none !important; }
.filter-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 800; }
.filters-card { margin-bottom: 22px; }
.filters-search-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.filters-basic-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; min-width: 260px; }
.filters-extra-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.res-check { min-height: 44px; }
.amenities-filter { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.af-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.af-title { font-weight: 700; font-size: .95rem; }
.af-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.af-btn {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 38px;
  padding: .3rem .85rem; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: border-color .15s, background .15s, color .15s; white-space: nowrap;
}
.af-btn:hover { border-color: var(--orange); color: var(--orange-d); }
.af-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

/* ---------- فرم‌ها ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .28rem; }
.field label .req { color: var(--orange-d); }
.input, .field input:not([type=checkbox]):not([type=file]):not([type=color]), .field select, .field textarea {
  width: 100%; min-height: 44px; padding: .58rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-s);
  background: var(--card); transition: border-color .15s, box-shadow .15s; font-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange-d); outline: 0; box-shadow: 0 0 0 3px rgba(185, 60, 10, .22); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--ink-2); margin-top: .25rem; }
.field-err { color: #b3261e; font-size: .84rem; margin-top: .22rem; font-weight: 600; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #d9534f; }
.form-error { background: #fdeceb; color: #8a2a24; border-radius: var(--r-s); padding: .7rem .95rem; margin-bottom: 1rem; font-size: .92rem; font-weight: 600; }
.form-row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.form-row > * { min-width: 0; }
.checkline { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.checkline input { width: 19px; height: 19px; accent-color: var(--orange); flex: none; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cfd6de; border-radius: 999px; cursor: pointer; transition: .2s; }
.switch span::after { content: ''; position: absolute; width: 20px; height: 20px; top: 3px; right: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--sh-s); }
.switch input:checked + span { background: var(--orange); }
.switch input:checked + span::after { transform: translateX(-20px); }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- مودال، توست ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(20, 28, 38, .55); display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--card); border-radius: 22px; padding: 24px; width: min(490px, 100%); box-shadow: var(--sh); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal .sheet-handle { display: none; }
.modal h3 { font-size: 1.18rem; }
.modal-actions { display: flex; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
#toasts { position: fixed; bottom: 20px; inset-inline: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: .5rem; pointer-events: none; padding: 0 16px; }
.toast { background: var(--inv); color: #fff; padding: .62rem 1.2rem; border-radius: 12px; box-shadow: var(--sh); animation: up .22s; pointer-events: auto; font-size: .93rem; text-align: center; max-width: 420px; }
.toast.ok { background: #14634a; }
.toast.err { background: #a3281f; }
.toast.out { opacity: 0; transition: .3s; }
@keyframes up { from { transform: translateY(14px); opacity: 0; } }

/* ---------- صفحه‌ی کافه ---------- */
.cafe-hero { position: relative; height: clamp(190px, 32vw, 340px); background: var(--cream); overflow: hidden; }
.cafe-hero img { width: 100%; height: 100%; object-fit: cover; }
.cafe-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(20, 28, 38, .42)); }
.cafe-wrap { padding-bottom: 24px; }
.cafe-head {
  position: relative; margin-top: -58px; z-index: 2; display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center;
  background: var(--card); border-radius: 22px; padding: 22px 24px; box-shadow: var(--sh); border: 1px solid var(--line);
}
.cafe-avatar { width: 80px; height: 80px; border-radius: 20px; background: var(--orange); color: #fff; font-size: 2.3rem; font-weight: 800; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .25); }
.cafe-title { flex: 1; min-width: 210px; }
.cafe-title h1 { margin: 0 0 .12rem; font-size: 1.65rem; font-weight: 800; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.cafe-title .tagline { margin: 0 0 .45rem; color: var(--ink-2); }
.meta { display: flex; gap: .45rem 1rem; flex-wrap: wrap; align-items: center; font-size: .92rem; color: var(--ink-2); }
.meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.cafe-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.section-nav {
  position: sticky; top: 64px; z-index: 20; display: flex; gap: .35rem; overflow-x: auto;
  padding: 12px 0; margin-top: 8px; background: linear-gradient(var(--bg) 78%, transparent);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a {
  flex: none; min-height: 38px; display: inline-flex; align-items: center;
  padding: .25rem .95rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.section-nav a:hover { background: var(--cream); color: var(--orange-d); border-color: transparent; }

.cafe-layout { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
.cafe-layout > * { min-width: 0; }
@media (min-width: 980px) { .cafe-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .cafe-side { position: sticky; top: 126px; } }
.card { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); padding: 22px; box-shadow: var(--sh-s); min-width: 0; max-width: 100%; }
.card + .card { margin-top: 18px; }
.card h2, .card h3.t { font-size: 1.18rem; font-weight: 800; margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; }
.card h2 .ic, .card h3.t .ic { color: var(--orange); }
.cafe-main .card { scroll-margin-top: 126px; }
.about-text { white-space: pre-line; margin: 0; }
.cafe-amenities { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ca-item { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.ca-item .ic { color: var(--orange); }

/* تم اختصاصی صفحه‌ی کافه‌های پرو */
.cafe-themed { transition: background .2s, color .2s; }
.cafe-surface-warm { --bg: #FAF4EC; --card: #FFFFFF; --surface: #F3EAE0; background: var(--bg); }
.cafe-surface-dark {
  --bg: #131820; --card: #1C232E; --surface: #252E3B;
  --ink: #F1F5F9; --ink-2: #A3B1C2; --line: rgba(255, 255, 255, .12);
  background: var(--bg); color: var(--ink);
}
.cafe-surface-dark .btn-ghost, .cafe-surface-dark .pill, .cafe-surface-dark .empty,
.cafe-surface-dark .field input:not([type=checkbox]):not([type=file]), .cafe-surface-dark .field select, .cafe-surface-dark .field textarea {
  background: #232B38; color: var(--ink); border-color: var(--line);
}
.cafe-surface-dark .btn-soft { color: #fff; }
.cafe-surface-dark .rv-form, .cafe-surface-dark .reply { background: #232B38; }
.cafe-surface-dark .ev { background: #232B38; }
.cafe-surface-dark .ev-date { background: rgba(255, 255, 255, .07); }
.cafe-surface-dark .rv-bar .track { background: rgba(255, 255, 255, .1); }
.cafe-surface-dark .stars-bg { color: rgba(255, 255, 255, .2); }
.cafe-surface-dark .pill.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.cafe-surface-dark .mi-dots { border-bottom-color: rgba(255, 255, 255, .18); }

.menu-cat { display: grid; gap: 4px 36px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1rem; }
.menu-item { padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.mi-top { display: flex; align-items: baseline; gap: .5rem; }
.mi-name { font-weight: 700; }
.mi-dots { flex: 1; border-bottom: 2px dotted rgba(32, 40, 50, .18); transform: translateY(-4px); min-width: 16px; }
.mi-price { font-weight: 800; color: var(--orange-d); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mi-price small { font-weight: 400; color: var(--ink-2); }
.mi-desc { margin: .15rem 0 0; font-size: .86rem; color: var(--ink-2); }

.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
.gallery button { border: 0; padding: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--cream); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(15, 22, 31, .94); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 82vh; max-width: min(1000px, 92vw); border-radius: 12px; object-fit: contain; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 1.4rem; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .32); }
.lb-prev { right: 14px; } .lb-next { left: 14px; }
.lb-close { position: absolute; top: 16px; left: 16px; }
.lb-count { position: absolute; bottom: 18px; color: #fff; font-variant-numeric: tabular-nums; }

.hours-row { display: flex; justify-content: space-between; padding: .38rem .65rem; border-radius: 10px; font-size: .95rem; font-variant-numeric: tabular-nums; }
.hours-row.today { background: var(--cream); font-weight: 700; }
.hours-row .off { color: #a1322b; }
.map-box { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-bottom: .8rem; background: var(--cream); }
.map-box iframe { width: 100%; height: 220px; border: 0; display: block; }
.map-fake { height: 140px; display: grid; place-items: center; color: var(--orange-d); background:
  linear-gradient(90deg, rgba(255, 255, 255, .55) 2px, transparent 2px) 0 0 / 36px 36px,
  linear-gradient(rgba(255, 255, 255, .55) 2px, transparent 2px) 0 0 / 36px 36px, var(--cream); }
.contact-line { display: flex; align-items: flex-start; gap: .55rem; margin-bottom: .6rem; font-size: .95rem; word-break: break-word; }
.contact-line .ic { color: var(--orange); margin-top: .25rem; }
.contact-line a:hover { color: var(--orange-d); }

.rv-summary { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-bottom: 1.3rem; }
.rv-big { text-align: center; }
.rv-big .n { font-size: 2.8rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rv-bars { flex: 1; min-width: 210px; }
.rv-bar { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rv-bar .track { flex: 1; height: 8px; background: var(--surface); border-radius: 99px; overflow: hidden; }
.rv-bar .fill { height: 100%; background: var(--orange); border-radius: 99px; }
.rv { padding: 1rem 0; border-top: 1px solid var(--line); }
.rv-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .3rem; }
.rv-av { width: 38px; height: 38px; border-radius: 50%; background: var(--cream); color: var(--orange-d); display: grid; place-items: center; font-weight: 800; flex: none; }
.rv-top .who { flex: 1; line-height: 1.4; min-width: 0; }
.rv p { margin: 0; }
.reply { margin-top: .65rem; background: var(--cream-soft); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .95rem; font-size: .93rem; }
.rv-form { background: var(--cream-soft); border-radius: var(--r); padding: 18px; margin-top: 1rem; border: 1px solid var(--line); }
.rv-form h3 { font-size: 1.05rem; }
.notice { background: #e6f4ee; color: #0f5b3e; border-radius: var(--r-s); padding: 1rem 1.2rem; }

/* ---------- ورود ---------- */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 32px 16px;
  background: radial-gradient(420px 300px at 15% 15%, var(--cream), transparent 70%), radial-gradient(420px 300px at 85% 85%, var(--cream-soft), transparent 70%), var(--bg); }
.auth-card { width: min(430px, 100%); background: var(--card); border-radius: 24px; padding: 30px; box-shadow: var(--sh); border: 1px solid var(--line); }
.auth-card .logo { justify-content: center; margin-bottom: .5rem; }
.auth-card h1 { font-size: 1.28rem; text-align: center; margin-bottom: 1.2rem; font-weight: 700; color: var(--ink-2); }
.demo-hint { margin-top: 1.2rem; background: var(--cream-soft); border: 1px solid var(--line); border-radius: var(--r-s); padding: .85rem 1rem; font-size: .86rem; color: var(--ink-2); line-height: 1.9; }
.demo-hint code { background: var(--card); border: 1px solid var(--line); padding: 0 .4rem; border-radius: 6px; direction: ltr; display: inline-block; color: var(--ink); }

/* ---------- پنل‌ها (دسکتاپ + موبایل حرفه‌ای) ---------- */
.panel { display: grid; gap: 22px; padding-top: 24px; grid-template-columns: minmax(0, 1fr); }
.panel > * { min-width: 0; max-width: 100%; }
@media (min-width: 900px) { .panel { grid-template-columns: 248px minmax(0, 1fr); align-items: start; } }
.panel-nav { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-width: 0; max-width: 100%; overflow: hidden; }
@media (min-width: 900px) { .panel-nav { position: sticky; top: 82px; } }
.pn-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: .6rem .85rem .8rem; font-weight: 800; color: var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.pn-plan { font-size: .76rem; color: var(--orange-d); font-weight: 700; }
.pn-back-bar { display: none; }
.pn-list { display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: 100%; }
.pn-list a {
  display: flex; align-items: center; gap: .6rem; min-height: 42px; padding: .5rem .85rem;
  border-radius: 12px; white-space: nowrap; flex-shrink: 0; font-weight: 600; color: var(--ink-2); font-size: .94rem;
  transition: background .15s, color .15s;
}
.pn-list a:hover { background: var(--cream-soft); color: var(--ink); }
.pn-list a.on { background: var(--cream); color: var(--orange-d); font-weight: 700; }
.nav-tier { margin-inline-start: auto; font-size: .72rem; color: var(--ink-2); font-weight: 700; }

/* منوی بزرگ و زیرهمِ صفحه‌ی اول پنل صاحب کافه */
.panel-menu-section { margin-top: 6px; }
.pm-heading { font-size: 1.08rem; font-weight: 800; margin: 0 0 12px; color: var(--ink); }
.panel-menu-stack { display: flex; flex-direction: column; gap: 10px; }
.pm-card {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  box-shadow: var(--sh-s); transition: border-color .15s, transform .15s, background .15s;
  min-height: 72px; text-decoration: none; color: var(--ink);
}
.pm-card:hover { border-color: var(--orange); background: var(--cream-soft); transform: translateY(-1px); }
.pm-card:active { transform: scale(.99); }
.pm-ic {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  display: grid; place-items: center; background: var(--cream); color: var(--orange-d);
}
.pm-card.is-locked .pm-ic { background: var(--surface); color: var(--ink-2); }
.pm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-body b { font-size: 1.02rem; font-weight: 800; color: var(--ink); line-height: 1.35; }
.pm-body small { font-size: .84rem; color: var(--ink-2); line-height: 1.45; }
.pm-badge {
  flex: none; padding: 2px 9px; border-radius: 8px; font-size: .76rem; font-weight: 700;
  white-space: nowrap;
}
.pm-badge.tier { background: var(--cream); color: var(--orange-d); }
.pm-badge.locked { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.pm-badge.hot { background: var(--orange); color: #fff; }
.pm-go { color: var(--ink-2); flex: none; display: inline-flex; opacity: .7; }
.pm-card:hover .pm-go { color: var(--orange-d); opacity: 1; }

.panel-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 1.15rem; }
.panel-title h1 { font-size: 1.45rem; margin: 0; font-weight: 800; min-width: 0; }
.pt-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr)); margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.stat .v { font-size: 1.8rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--ink-2); font-size: .88rem; margin-top: 2px; }
.stat:nth-child(1) { background: var(--cream-soft); border-color: var(--mint); }
.stat:nth-child(2) { background: var(--card); }
.stat:nth-child(3) { background: var(--surface); }

.progress { height: 10px; background: var(--surface); border-radius: 99px; overflow: hidden; margin: .5rem 0 1rem; }
.progress i { display: block; height: 100%; background: var(--orange); border-radius: 99px; transition: width .35s; }
.todo { list-style: none; padding: 0; margin: 0; }
.todo li { display: flex; align-items: center; gap: .55rem; padding: .28rem 0; }
.todo .ok { color: #14634a; } .todo .no { color: #c0b8b0; }

/* آمار صفحه‌ی پرو */
.bar-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 190px; padding-top: 8px; }
.bc-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.bc-val { font-size: .78rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bc-track { flex: 1; width: 100%; max-width: 38px; background: var(--cream-soft); border-radius: 10px; display: flex; align-items: flex-end; overflow: hidden; }
.bc-bar { width: 100%; background: var(--orange); border-radius: 10px 10px 4px 4px; transition: height .35s; min-height: 6px; }
.bc-lbl { font-size: .74rem; color: var(--ink-2); white-space: nowrap; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.metric-list { display: grid; gap: 12px; }
.ml-row { display: grid; gap: 6px; min-width: 0; }
.ml-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .93rem; }
.ml-top span { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); min-width: 0; }
.ml-top b { font-variant-numeric: tabular-nums; flex-shrink: 0; }
.ml-track { height: 8px; background: var(--surface); border-radius: 99px; overflow: hidden; }
.ml-fill { height: 100%; background: var(--inv); border-radius: 99px; }

/* کارت ارتقای اشتراک (پلاس / پرو) */
.lock-card { text-align: center; padding: 38px 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lock-ic { width: 58px; height: 58px; border-radius: 18px; background: var(--cream); color: var(--orange-d); display: grid; place-items: center; }
.lock-card h3 { margin: 4px 0 0; font-size: 1.2rem; }
.lock-card p { max-width: 460px; margin: 0; }
.lock-meta { font-size: .9rem; color: var(--ink-2); margin-bottom: 6px; }

/* شخصی‌سازی رنگ صفحه‌ی پرو */
.theme-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.theme-layout > * { min-width: 0; }
@media (min-width: 980px) { .theme-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.theme-swatches { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); }
.swatch-btn {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; min-width: 0;
  border: 1.5px solid var(--line); background: var(--card); cursor: pointer; text-align: right;
  font-weight: 600; font-size: .88rem; transition: border-color .15s, background .15s;
}
.swatch-btn.on { border-color: var(--orange); background: var(--cream-soft); }
.sw-dot { width: 20px; height: 20px; border-radius: 7px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sw-surf { margin-inline-start: auto; font-size: .74rem; color: var(--ink-2); flex-shrink: 0; }
.color-pick-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.color-pick-row input[type=color] { width: 48px; height: 44px; padding: 3px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; flex: none; }
.color-pick-row input[type=text] { min-width: 0; flex: 1; }
.surface-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.theme-preview { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; padding: 12px; }
.tp-hero { height: 74px; border-radius: 12px; }
.tp-card { margin-top: -24px; position: relative; border-radius: 14px; border: 1px solid var(--line); padding: 14px; box-shadow: var(--sh-s); }
.tp-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tp-av { width: 42px; height: 42px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 1.25rem; display: grid; place-items: center; flex: none; }
.tp-acts { display: flex; gap: 8px; margin-bottom: 12px; }
.tp-btn { padding: 5px 12px; border-radius: 9px; font-size: .82rem; font-weight: 700; }
.tp-menu { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .88rem; }

/* منو، ساعت، گالری و جدول پنل */
.toggle-card { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cat-block { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; overflow: hidden; background: var(--card); }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; background: var(--cream-soft); font-weight: 800; flex-wrap: wrap; }
.cat-head .acts, .row-acts { display: flex; gap: .38rem; align-items: center; flex-wrap: wrap; }
.item-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.item-row .nm { flex: 1; min-width: 150px; }
.item-row .nm small { display: block; color: var(--ink-2); font-size: .84rem; }
.item-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item-price { color: var(--orange-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-price small { font-weight: 400; color: var(--ink-2); }
.icon-btn { border: 1px solid var(--line); background: var(--card); border-radius: 10px; width: 38px; height: 38px; display: inline-grid; place-items: center; cursor: pointer; flex: none; color: var(--ink); }
.icon-btn:hover { background: var(--cream-soft); border-color: var(--mint); }
.icon-btn.danger { color: #b3261e; }

.hours-edit { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: .55rem 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.he-day { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 150px; }
.he-times { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; }
.hours-edit input[type=time] { flex: 1; min-width: 0; min-height: 40px; padding: .35rem .6rem; border: 1.5px solid var(--line); border-radius: 10px; direction: ltr; background: var(--card); }
.hours-edit.closed input[type=time] { opacity: .4; }

.thumbs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); margin-top: 1rem; }
.thumb { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--cream); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 6px; left: 6px; }
.drop { border: 2px dashed var(--orange); border-radius: var(--r); padding: 22px; text-align: center; background: var(--cream-soft); cursor: pointer; display: block; transition: background .15s; }
.drop:hover { background: var(--cream); }
.cover-prev { aspect-ratio: 16 / 6; border-radius: 14px; overflow: hidden; background: var(--cream); margin-bottom: .65rem; }
.cover-prev img { width: 100%; height: 100%; object-fit: cover; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); max-width: 100%; min-width: 0; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 700px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: right; background: var(--cream-soft); font-size: .86rem; padding: .75rem 1rem; white-space: nowrap; color: var(--ink-2); }
.tbl td { padding: .7rem 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl select { min-height: 36px; padding: .25rem .6rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.toolbar .input { max-width: 280px; min-height: 42px; padding: .45rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); }
.toolbar .toolbar-select { max-width: 180px; }
.toolbar .grow { flex: 1; }

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.plan { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; min-width: 0; }
.plan.cur { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 90, 31, .12); }
.plan h3 { font-size: 1.18rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan ul { padding-inline-start: 1.15rem; margin: .7rem 0 1.1rem; color: var(--ink-2); font-size: .93rem; }

/* ---------- علاقه‌مندی، ایونت، موجودی، QR و صفحات فرعی ---------- */
#fav-btn.on { color: var(--orange-d); border-color: var(--orange); background: var(--cream-soft); }
#fav-btn.on .ic { fill: var(--orange); }
.auth-tabs { justify-content: center; margin-bottom: 1rem; }
.fav-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ev-list { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .ev-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ev { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; min-width: 0; }
.ev-date { flex: none; min-width: 76px; text-align: center; background: var(--cream); border-radius: var(--r-s); padding: 10px 6px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.ev-date b { font-size: .92rem; } .ev-date span { color: var(--ink-2); font-size: .84rem; font-variant-numeric: tabular-nums; }
.ev-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ev-body h3 { margin: .35rem 0 .15rem; font-size: 1.04rem; }
.ev-body p { margin: .4rem 0; color: var(--ink-2); font-size: .92rem; }
.ev-cafe { display: inline-flex; align-items: center; gap: .3rem; color: var(--orange-d); font-weight: 700; font-size: .9rem; }
.badge.music { background: var(--orange); color: #fff; box-shadow: none; }
.badge.event { background: var(--cream); color: var(--ink); box-shadow: none; }
.ev-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.ev-row .ev { flex: 1; border: 0; padding: 0; min-width: 0; }

.stock { display: inline-block; margin-inline-start: .35rem; padding: 0 .5rem; border-radius: 6px; font-size: .75rem; font-weight: 700; line-height: 1.75; background: var(--cream); color: var(--ink-2); vertical-align: middle; }
.stock.out { background: #f8e4e3; color: #8a2a24; }
.stock.low { background: var(--mint); color: var(--orange-d); }
.menu-item.soldout { opacity: .6; }
.menu-item.soldout .mi-price { text-decoration: line-through; }

.qr-card { display: grid; gap: 22px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.qr-card > * { min-width: 0; }
@media (min-width: 820px) { .qr-card { grid-template-columns: auto minmax(0, 1fr); } }
.qr-sheet { text-align: center; padding: 22px; border: 2px dashed var(--line); border-radius: var(--r); background: var(--card); max-width: 340px; margin-inline: auto; width: 100%; }
.qr-sheet h2 { margin-bottom: .6rem; }
.qr-img svg { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto; }
.qr-cta { font-weight: 800; margin: .6rem 0 .2rem; color: var(--orange-d); }
.qr-url { font-size: .72rem; color: var(--ink-2); word-break: break-all; }
.qr-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1rem; }

.page-hero { padding: 48px 0 56px; }
.prose { max-width: 760px; }
.prose p { color: var(--ink-2); font-size: 1rem; }
.info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.check-list li { padding-inline-start: 1.55rem; position: relative; color: var(--ink-2); }
.check-list li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--orange-d); font-weight: 800; }
.contact-layout, .reg-layout { display: grid; gap: 20px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.contact-layout > *, .reg-layout > * { min-width: 0; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .reg-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.ci-row { display: flex; flex-direction: column; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.ci-row:last-child { border: 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.steps-col { grid-template-columns: 1fr; gap: 12px; }
.steps-col .step { padding: 14px 16px; }
.done-box { grid-column: 1 / -1; text-align: center; padding: 40px 20px; }
.adm-h { margin: 2rem 0 .8rem; font-size: 1.25rem; }

/* ==========================================================
   ریسپانسیو موبایل و تبلت (کل سایت + پنل‌ها + منوی پایین صفحه)
   ========================================================== */
@media (max-width: 899px) {
  .panel { padding-top: 14px; gap: 12px; }
  .panel-nav { padding: 10px; }
  /* در صفحه‌ی اول پنل صاحب کافه، نوار بالای منو مخفی می‌شود تا گزینه‌های بزرگ زیر هم بدرخشند */
  .panel-nav.is-home { display: none; }
  .panel-nav:has(.pn-back-bar) .pn-head,
  .panel-nav:has(.pn-back-bar) .pn-list { display: none; }
  .pn-back-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  .pn-back-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
    padding: .35rem .85rem; border-radius: 11px; border: 1.5px solid var(--mint);
    background: var(--cream-soft); color: var(--orange-d); font-weight: 700; font-size: .9rem;
    cursor: pointer;
  }
  .pn-back-btn .ic { transform: rotate(180deg); }
  .pn-cur-label { font-weight: 800; font-size: .92rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* برای پنل کاربر (account.html) که فقط ۳ تب دارد، تب‌ها زیر هم و خوانا باشند */
  .pn-head { padding: .35rem .5rem .65rem; font-size: .96rem; }
  .pn-list { flex-direction: column; gap: 6px; }
  .pn-list a { padding: .55rem .9rem; border: 1px solid var(--line); background: var(--card); font-size: .94rem; min-height: 44px; }
  .pn-list a.on { border-color: var(--orange); background: var(--cream-soft); }
  .nav-tier { display: none; }
}

@media (max-width: 820px) {
  body.has-mobile-nav { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  /* هدر موبایل: منو راست · لوگو وسط · (تیره/روشن + حساب) چپ */
  .site-header .bar { min-height: 56px; gap: .5rem; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .site-header .bar > .logo { order: 2; justify-self: center; }
  .site-header .bar > .mobile-menu-btn { order: 1; justify-self: start; margin-inline-start: 0; }
  .site-header .bar > .bar-end { order: 3; justify-self: end; gap: .3rem; }
  .logo .brand-logo { width: 116px; }
  .main-nav, .site-header .auth { display: none; }
  .mobile-menu-btn { display: inline-grid !important; width: 40px; height: 40px; }
  .acct-btn { display: inline-grid !important; }
  .site-header .icon-btn { width: 40px; height: 40px; }
  .mobile-nav { display: grid; }
  .section-nav { top: 54px; }
  .cafe-main .card { scroll-margin-top: 112px; }
  #toasts { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { margin-top: calc(var(--sky-h) + 20px); padding: 32px 0 24px; }
}

@media (max-width: 760px) {
  .mobile-filter-btn { display: inline-flex !important; }
  .filters-body { display: none; }
  .filters-body.open { display: block; }
  .filters-basic-inline { min-width: 0; width: 100%; }

  /* تبدیل جدول‌های پنل و ادمین به کارت‌های خوانا روی موبایل */
  .table-wrap { background: transparent; border: 0; overflow: visible; }
  table.tbl.tbl-cards { min-width: 0; width: 100%; display: block; }
  table.tbl.tbl-cards thead { display: none; }
  table.tbl.tbl-cards tbody { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
  table.tbl.tbl-cards tr {
    display: grid; gap: 8px; background: var(--card); min-width: 0;
    border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
    box-shadow: var(--sh-s);
  }
  table.tbl.tbl-cards td {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    flex-wrap: wrap; min-width: 0; padding: 4px 0; border: 0; text-align: left;
    overflow-wrap: anywhere; word-break: break-word;
  }
  table.tbl.tbl-cards td[colspan] { justify-content: center; text-align: center; }
  table.tbl.tbl-cards td::before {
    content: attr(data-label);
    font-size: .82rem; font-weight: 700; color: var(--ink-2); flex: none; text-align: right;
  }
  table.tbl.tbl-cards td[colspan]::before { display: none; }
  table.tbl.tbl-cards td[data-label="پیام"], table.tbl.tbl-cards td[data-label="جزئیات"], table.tbl.tbl-cards td[data-label="توضیح"] {
    flex-direction: column; align-items: flex-start; text-align: right; max-width: none !important;
  }
}

@media (max-width: 640px) {
  .container { width: min(1180px, 100% - 24px); }
  .hero { padding: 40px 0 52px; }
  .page-hero { padding: 32px 0 40px; }
  .hero .lead { font-size: .98rem; margin-bottom: 1.25rem; }
  .search-box { padding: .35rem; gap: .3rem; }
  .search-box .si { padding-inline: .45rem .1rem; }
  .search-box .btn { padding: .45rem .95rem; font-size: .92rem; }
  .section { padding-top: 34px; }
  h2 { font-size: 1.26rem; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { padding: 16px; border-radius: 16px; }
  .cta { padding: 24px 20px; border-radius: 18px; }
  .cta > div:last-child { width: 100%; }
  .cta .btn { flex: 1; }

  .cafe-hero { height: 200px; }
  .cafe-head { margin-top: -40px; padding: 16px; gap: 12px; border-radius: 18px; }
  .cafe-avatar { width: 58px; height: 58px; font-size: 1.7rem; border-radius: 16px; }
  .cafe-title h1 { font-size: 1.32rem; }
  .cafe-actions { width: 100%; }
  .cafe-actions .btn { flex: 1 1 auto; }
  .menu-cat { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

  .panel-title { gap: 8px; margin-bottom: .9rem; }
  .panel-title h1 { font-size: 1.24rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 13px 14px; }
  .stat .v { font-size: 1.44rem; }
  .stat .l { font-size: .8rem; }
  .item-row { align-items: flex-start; gap: 8px; padding: 12px 14px; }
  .item-row .nm { flex-basis: 100%; min-width: 0; }
  .item-row .row-acts { margin-inline-start: auto; }
  .he-day { width: 100%; min-width: 0; }
  .he-times { width: 100%; min-width: 0; }
  .toolbar .input, .toolbar .toolbar-select { max-width: 100% !important; width: 100%; }
  .toolbar .grow { display: none; }
  .bar-chart { gap: 4px; height: 165px; }
  .bc-lbl { font-size: .65rem; }
  .ev-row { flex-direction: column; }
  .ev-row .ev { width: 100%; }
  .ev-row > .btn { align-self: flex-end; }
  .qr-sheet { padding: 16px; }
  .qr-acts .btn { flex: 1 1 110px; }

  /* مودال‌ها در موبایل به‌شکل شیت از پایین باز شوند */
  .overlay { align-items: end; padding: 0; }
  .modal { width: 100%; border-radius: 22px 22px 0 0; padding: 12px 18px calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 88vh; animation: sheetUp .2s cubic-bezier(0.16, 1, 0.3, 1); }
  .modal .sheet-handle { display: block; }
  .modal-actions .btn { flex: 1; }
  .auth-card { padding: 24px 20px; border-radius: 20px; }
}

@media print {
  .mobile-nav { display: none !important; }
  body.print-qr .site-header, body.print-qr .site-footer, body.print-qr .panel-nav, body.print-qr .qr-noprint, body.print-qr .panel-title, body.print-qr .mobile-nav { display: none !important; }
  body.print-qr .qr-card { display: block; border: 0; box-shadow: none; }
  body.print-qr .qr-sheet { margin: 0 auto; border: 0; max-width: none; }
  body.print-qr .qr-img svg { max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- ایمپورت CSV (پنل مدیر کل) ---------- */
.imp { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.imp-opts { display: flex; flex-direction: column; gap: .4rem; margin-top: .9rem; }
.imp .chk { display: flex; align-items: center; gap: .5rem; font-size: .93rem; cursor: pointer; }
.imp-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 .6rem; }
.imp-sum .badge { font-size: .86rem; padding: 0 .8rem; }
.imp-log { max-height: 340px; overflow: auto; margin-top: .4rem; }
.imp-log table.tbl { min-width: 0; }
.imp-note { margin: .6rem 0 0; padding: .6rem .85rem; border-radius: 10px; background: var(--cream); color: #8c3d0c; font-size: .9rem; }
.badge.created, .badge.updated { background: #dff3ea; color: #0f5b3e; box-shadow: none; }
.badge.warning, .badge.skipped, .badge.unchanged { background: var(--cream); color: #8c3d0c; box-shadow: none; }
.badge.error { background: #f8e4e3; color: #8a2a24; box-shadow: none; }

/* ---------- نقشه (Map.ir / MapLibre) ---------- */
.j-map { width: 100%; min-height: 220px; border-radius: 14px; overflow: hidden; background: #eef0f3; direction: ltr; }
.j-map .maplibregl-popup-content { direction: rtl; font-family: inherit; text-align: right; }
.view-toggle { display: inline-flex; gap: 4px; background: var(--cream); padding: 3px; border-radius: 999px; }
.view-toggle .btn { border-radius: 999px; background: transparent; border: 0; }
.view-toggle .btn.on { background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.cafes-map-wrap { margin-bottom: 1rem; }
.cafes-map-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.near-list { display: grid; gap: .4rem; margin-top: .7rem; }
.near-item { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; text-decoration: none; }
.near-item:hover { border-color: var(--orange); }
#cafe-map { min-height: 240px; }
@media (max-width: 640px) { #cafes-map { height: 360px !important; } }
.lp-search { display: flex; gap: .5rem; margin-bottom: .5rem; }
.lp-search input { flex: 1; }
.lp-results { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: .5rem; max-height: 220px; overflow: auto; }
.lp-item { display: grid; gap: 2px; width: 100%; text-align: right; padding: .55rem .8rem; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font: inherit; }
.lp-item:last-child { border-bottom: 0; }
.lp-item:hover { background: var(--cream); }
.lp-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .5rem; flex-wrap: wrap; }
.lp-btns { display: inline-flex; gap: .4rem; }

/* ---------- صفحه‌ی دانلود ---------- */
.dl-hero { display: grid; gap: 24px; align-items: center; }
.dl-hero-art { max-width: 240px; width: 62%; margin-inline: auto; }
.dl-hero-art img { width: 100%; height: auto; filter: drop-shadow(0 16px 22px rgba(185, 60, 10, .2)); animation: hero-float 6s ease-in-out infinite; }
@media (min-width: 820px) {
  .dl-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
  .dl-hero .hero-inner { margin-inline: 0; }
  .page-hero.dl .lead { margin-inline: 0; }
}
.dl-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.dl-card { display: flex; flex-direction: column; gap: .35rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; box-shadow: var(--sh-s); }
.dl-card.live { border-color: rgba(255, 90, 31, .45); box-shadow: var(--sh); }
.dl-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--cream); color: var(--orange-d); margin-bottom: .4rem; }
.dl-card.soon .dl-ic { background: var(--surface); color: var(--ink-2); }
.dl-card h3 { font-size: 1.15rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dl-card p { margin: 0 0 .9rem; color: var(--ink-2); font-size: .95rem; flex: 1; }
.dl-card .btn { width: 100%; justify-content: center; }
.dl-card .btn[aria-disabled="true"] { background: var(--surface); color: var(--ink-2); border: 1px dashed var(--line); cursor: not-allowed; box-shadow: none; }
.badge.soon { background: var(--cream); color: #8c3d0c; box-shadow: none; }
.badge.live { background: #dff3ea; color: #0f5b3e; box-shadow: none; }

/* ---------- خرید اشتراک / نتیجه‌ی پرداخت ---------- */
.dur-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: 1rem 0; }
.plan-price { margin: 0 0 .7rem; font-size: 1rem; }
.plan-price b { font-size: 1.35rem; color: var(--orange-d); }
.pay-list { display: grid; gap: 8px; margin-top: .6rem; }
.pay-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 8px; align-items: center; padding: .6rem .9rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: .92rem; }
@media (max-width: 640px) { .pay-row { grid-template-columns: 1fr 1fr; } }
.pay-result { max-width: 560px; margin-inline: auto; text-align: center; padding: 34px 26px; }
.pay-result h1 { font-size: 1.5rem; margin-bottom: .4rem; }
.pay-ic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; }
.pay-ic.ok { background: #dff3ea; color: #14634a; }
.pay-ic.bad { background: #fdeceb; color: #b3261e; }
:root[data-theme="dark"] .pay-ic.ok { background: rgba(60, 190, 140, .18); color: #6fe0b4; }
:root[data-theme="dark"] .pay-ic.bad { background: rgba(255, 120, 110, .16); color: #ff9a92; }
.pay-meta { display: grid; gap: 8px; margin: 1.2rem 0; padding: 14px; background: var(--surface); border-radius: 14px; text-align: start; }
.pay-meta div { display: flex; justify-content: space-between; gap: 12px; }
.pay-meta dt { color: var(--ink-2); } .pay-meta dd { margin: 0; font-weight: 700; }

/* پاپ‌آپ پایین صفحه: راهنمای نصب iOS */
.ios-steps { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 12px; }
.ios-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); line-height: 1.8; }
.ios-steps li b { color: var(--ink); }
.ios-steps .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cream); color: var(--orange-d); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.notice-warn { background: var(--cream-soft); color: var(--ink); border-radius: var(--r-s); padding: .7rem .9rem; margin-bottom: 12px; font-size: .92rem; }
:root[data-theme="dark"] .sheet-handle { background: rgba(255, 255, 255, .25); }
