/* پردیس — پنل مشتریان (فرانت، RTL، موبایل‌اول)
 *
 * رنگ‌بندی بر پایه راهنمای برند «رستوران پردیس سلمان»:
 *   مریمی  #a9c6a9  (C40 M10 Y40 K0) — رنگ اصلی، ۴۰٪ استفاده
 *   هلویی  #f7ad79  (C0 M40 Y55 K0)  — مکمل گرم، ۲۰٪
 *   سربی   #4b5c5d  (C60 M35 Y40 K50)— پایه سطوح تیره، ۱۰٪
 *   آبی    #88c1dc  ۵٪   قرمز #ea4f3d  ۱۰٪   سفید ۱۵٪
 *
 * نکته دسترس‌پذیری: رنگ اصلی روشن است؛ متن سفید روی آن کنتراست ۱.۸۵
 * می‌دهد که ناخواناست. پس متن روی رنگ اصلی همیشه تیره است (کنتراست ۸.۰).
 */
.pd-app {
	/* برند */
	--pd-primary: #a9c6a9;
	--pd-secondary: #f7ad79;
	--pd-on-primary: #1f2e26;
	--pd-accent: #ea4f3d;
	--pd-info: #88c1dc;
	--pd-slate: #4b5c5d;

	/* سطوح تیره — مشتق از سربی برند، نه خاکستری خنثی */
	--pd-bg: #161d1c;
	--pd-surface: #1e2726;
	--pd-surface-2: #283331;
	--pd-line: rgba(169,198,169,.14);
	--pd-text: #e9efea;
	--pd-dim: #97a8a1;
	--pd-ok: #7cc394;
	--pd-err: #ea4f3d;

	--pd-radius: 20px;
	--pd-shadow: 0 10px 34px rgba(0,0,0,.28);
	--pd-nav-h: 68px;

	direction: rtl;

	/*
	 * فونت از قالب می‌آید ولی اندازه‌ها از خود پنل.
	 *
	 * font-family: inherit یعنی قلم سایت استفاده شود — درست است و باید
	 * بماند. ولی font-size و line-height هم ارث می‌رسیدند، و المنتور Kit
	 * روی body مقادیر خودش را می‌گذارد. نتیجه: همان پنل روی برگه معمولی و
	 * برگه المنتوری دو اندازه متفاوت داشت.
	 *
	 * با تثبیت این دو، چیدمان همه‌جا یکسان می‌ماند و فونت همچنان از قالب
	 * ارث می‌رسد.
	 */
	/* قلم و اندازه از تنظیمات افزونه می‌آیند، نه از قالب. */
	font-family: var(--pd-font, Tahoma, sans-serif);
	font-size: var(--pd-fs, 15px);
	line-height: 1.75;
	font-weight: 400;
	letter-spacing: normal;

	color: var(--pd-text);
	background: var(--pd-bg);
	border-radius: var(--pd-radius);
	padding: 0;
	position: relative;
	max-width: 560px;
	margin: 0 auto;
	min-height: 480px;
	display: flex;
	flex-direction: column;
}

.pd-app[data-scheme="light"] {
	--pd-bg: #f4f7f4;
	--pd-surface: #ffffff;
	--pd-surface-2: #eaf0ea;
	--pd-line: rgba(75,92,93,.14);
	--pd-text: #22302c;
	--pd-dim: #6c7d77;
	--pd-ok: #4f9c6b;
	--pd-shadow: 0 10px 30px rgba(75,92,93,.12);
}
@media (prefers-color-scheme: light) {
	.pd-app[data-scheme="auto"] {
		--pd-bg: #f4f7f4;
		--pd-surface: #ffffff;
		--pd-surface-2: #eaf0ea;
		--pd-line: rgba(75,92,93,.14);
		--pd-text: #22302c;
		--pd-dim: #6c7d77;
		--pd-ok: #4f9c6b;
		--pd-shadow: 0 10px 30px rgba(75,92,93,.12);
	}
}


/* ═══════════ قانون حیاتی: صفت hidden همیشه برنده ═══════════
 *
 * صفت HTML `hidden` از طریق قانون پیش‌فرض مرورگر `[hidden]{display:none}`
 * کار می‌کند که ویژگی (specificity) صفر دارد. هر قانون کلاسی که display
 * تعیین کند — مثل `.pd-sheet{display:flex}` — آن را می‌شکند و عنصری که
 * باید پنهان باشد نمایش داده می‌شود.
 *
 * نمونه واقعی: شیت «بیشتر» با inset:0 روی کل صفحه می‌نشست و همه کلیک‌ها
 * را می‌بلعید؛ نتیجه‌اش این بود که هیچ دکمه‌ای در صفحه کار نمی‌کرد.
 */
.pd-app [hidden],
.pd-app[hidden],
.pd-sheet[hidden] { display: none !important; }

/*
 * جلوگیری از سرریز افقی.
 *
 * قانون قبلی فقط فرزندان را پوشش می‌داد و خودِ .pd-app جا افتاده بود؛ با
 * box-sizing قالب سایت (که گاهی content-box است) عرض + padding از حد
 * می‌گذشت و در موبایل نوار اسکرول افقی می‌ساخت.
 */
.pd-app,
.pd-app * { box-sizing: border-box; }

/*
 * قالب‌ها گاهی روی عناصر عمومی اندازه و فاصله می‌گذارند (مثلاً p یا h3 در
 * محتوای برگه). داخل پنل این‌ها باید خنثی شوند وگرنه چیدمان از قالبی به
 * قالب دیگر جابه‌جا می‌شود.
 */
/*
 * بازنشانی فقط روی عناصر بی‌کلاس.
 *
 * نسخه قبل همه li ها را صفر می‌کرد و چون وزنش از .pd-dish بیشتر بود،
 * فاصله داخلی کارت‌های غذا و پیام را هم از بین می‌برد. با استثنا کردن
 * عناصری که کلاس افزونه دارند، بازنشانی فقط محتوای عمومی را می‌گیرد.
 */
.pd-app.pd-app.pd-app p:not([class*="pd-"]),
.pd-app.pd-app.pd-app h1:not([class*="pd-"]),
.pd-app.pd-app.pd-app h2:not([class*="pd-"]),
.pd-app.pd-app.pd-app h3:not([class*="pd-"]),
.pd-app.pd-app.pd-app h4:not([class*="pd-"]),
.pd-app.pd-app.pd-app h5:not([class*="pd-"]),
.pd-app.pd-app.pd-app ul:not([class*="pd-"]),
.pd-app.pd-app.pd-app ol:not([class*="pd-"]),
.pd-app.pd-app.pd-app li:not([class*="pd-"]),
.pd-app.pd-app.pd-app figure:not([class*="pd-"]),
.pd-app.pd-app.pd-app blockquote:not([class*="pd-"]) { margin: 0; padding: 0; }

/*
 * قالب و المنتور Kit روی عناصر عمومی اندازه می‌گذارند و اگر استایلشان بعد
 * از این فایل بارگذاری شود، برنده می‌شوند. وزن انتخابگر اینجا عمداً بالا
 * برده شده تا پنل در هر ترتیب بارگذاری یکسان بماند.
 */
.pd-app.pd-app {
	font-family: var(--pd-font, Tahoma, sans-serif);
	font-size: var(--pd-fs, 15px);
	line-height: 1.75;
	font-weight: 400;
	letter-spacing: normal;
}

.pd-app.pd-app p,
.pd-app.pd-app span,
.pd-app.pd-app strong,
.pd-app.pd-app small,
.pd-app.pd-app a,
.pd-app.pd-app li,
.pd-app.pd-app label {
	line-height: inherit;
	letter-spacing: inherit;
}

.pd-app.pd-app h1,
.pd-app.pd-app h2,
.pd-app.pd-app h3,
.pd-app.pd-app h4 {
	line-height: 1.6;
	letter-spacing: normal;
	color: inherit;
}

/*
 * فهرست‌ها یک پله وزن بیشتر می‌گیرند.
 *
 * ‎.elementor ul خودش دو بخشی است و با ‎.pd-app.pd-app ul برابر می‌شود؛ در
 * برابری، هرکدام دیرتر بارگذاری شود برنده است و این فایل معمولاً زودتر
 * می‌آید.
 */
/*
 * نشانه فهرست برای همه فهرست‌ها برداشته می‌شود — این یکی بی‌خطر است چون
 * هیچ کارتی در پنل نشانه نمی‌خواهد. ولی فاصله فقط از فهرست‌های بی‌کلاس
 * گرفته می‌شود تا فاصله داخلی کارت‌ها دست‌نخورده بماند.
 */
.pd-app.pd-app.pd-app ul,
.pd-app.pd-app.pd-app ol,
.pd-app.pd-app.pd-app li {
	list-style-type: none;
	list-style-image: none;
	list-style-position: outside;
}

.pd-app.pd-app.pd-app ul:not([class*="pd-"]),
.pd-app.pd-app.pd-app ol:not([class*="pd-"]) {
	padding-inline-start: 0;
	padding-inline-end: 0;
	margin: 0;
}

/*
 * کارت‌های فهرستی عمداً اینجا خنثی نمی‌شوند.
 *
 * تلاش اول یک قانون li[class*="pd-"] بود، ولی انتخابگر نوع به آن وزن
 * بیشتری از خودِ کلاس کارت می‌داد و فاصله داخلی کارت‌ها را صفر می‌کرد.
 * به‌جایش هر کارت فهرستی وزن انتخابگر خودش را بالا می‌برد.
 */
.pd-app.pd-app.pd-app li.pd-dish,
.pd-app.pd-app.pd-app li.pd-msg,
.pd-app.pd-app.pd-app li.pd-track,
.pd-app.pd-app.pd-app li.pd-showcase,
.pd-app.pd-app.pd-app li.pd-list { margin-top: 0; margin-bottom: 0; }

.pd-app button,
.pd-app input,
.pd-app select,
.pd-app textarea {
	font-size: inherit;
	line-height: inherit;
	letter-spacing: inherit;
}

.pd-app {
	max-width: 100%;

	/* در حالت افقی روی گوشی‌های دارای بریدگی، لبه‌ها هم امن نیستند. */
	padding-inline-start: env(safe-area-inset-left);
	padding-inline-end: env(safe-area-inset-right);
}

/*
 * سرریز روی .pd-main بسته می‌شود، نه روی .pd-app.
 *
 * دلیل: هر overflow غیر از visible روی یک عنصر، فرزندان position:fixed را
 * به همان عنصر محدود می‌کند. شیت «بیشتر»، نوار سبد و پنل زنگوله همگی
 * fixed هستند و با بستن سرریز روی ریشه می‌شکستند.
 *
 * .pd-main از قبل overflow-x: hidden دارد و همان جای درست است، چون
 * هیچ عنصر شناوری داخلش نیست.
 */

/* هیچ فرزندی نباید از عرض ظرف بیرون بزند. */
.pd-app img,
.pd-app svg,
.pd-app video,
.pd-app canvas,
.pd-app table { max-width: 100%; }

/*
 * محافظ نهایی سرریز افقی.
 *
 * عناصر تزئینی (::before و ::after با inset منفی) عمداً از کادر بیرون
 * می‌زنند تا حس عمق بدهند، ولی روی موبایل همان بیرون‌زدگی نوار اسکرول
 * افقی می‌سازد. هر بخش سطح‌بالای پنل خودش مهار می‌شود تا این عناصر
 * داخل بمانند و بقیه چیدمان دست‌نخورده باقی بماند.
 *
 * .pd-app عمداً مستثناست: بستن سرریز روی آن، عناصر position:fixed
 * (شیت، نوار سفارش، پنل زنگوله) را به همان کادر محدود می‌کند.
 */
.pd-app > .pd-auth,
.pd-app > .pd-header,
.pd-app > .pd-main,
.pd-app > .pd-nav { max-width: 100%; }

.pd-app > .pd-header { overflow: visible; }
.pd-app.pd-app button { font-family: inherit; }

/* ---------- ورود ---------- */
/*
 * مهار عنصر تزئینی صفحه ورود.
 *
 * ‎.pd-auth::before با inset منفی حدود ۲۰٪ از عرض به چپ بیرون می‌زند (روی
 * صفحه ۴۵۴ پیکسلی یعنی ۹۱ پیکسل) و همان اسکرول افقی را می‌ساخت. صفحه ورود
 * مستقیم داخل ‎.pd-app است نه ‎.pd-main، پس محافظ سرریز آنجا به آن نمی‌رسید.
 *
 * clip به‌جای hidden، چون hidden یک ظرف اسکرول می‌سازد.
 */
.pd-auth { padding: 38px 24px 30px; position: relative; overflow: clip; max-width: 100%; }
@supports not (overflow: clip) {
	.pd-auth { overflow: hidden; }
}
.pd-auth::before {
	content: ""; position: absolute; inset: -30% 20% auto -20%; height: 300px;
	background: radial-gradient(circle at 50% 50%, var(--pd-primary), transparent 62%);
	opacity: .3; filter: blur(50px); pointer-events: none;
}
.pd-auth__brand { text-align: center; position: relative; margin-bottom: 26px; }
.pd-auth__logo, .pd-auth__brand img { max-width: 92px; height: auto; margin: 0 auto 14px; display: block; border-radius: 16px; }
.pd-auth__mark {
	width: 66px; height: 66px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
	border-radius: 20px; font-size: 30px; font-weight: 800;
	background: linear-gradient(135deg, var(--pd-primary), var(--pd-secondary));
	color: var(--pd-on-primary); box-shadow: 0 10px 26px rgba(0,0,0,.3);
}
.pd-auth__title { font-size: 21px; font-weight: 800; margin: 0 0 4px; color: var(--pd-text); }
.pd-auth__slogan { font-size: 13px; color: var(--pd-dim); margin: 0; }
.pd-auth__terms { font-size: 11.5px; color: var(--pd-dim); text-align: center; margin: 22px 0 0; line-height: 2; }

.pd-step { display: none; position: relative; }
.pd-step.is-active { display: block; animation: pd-fade .25s ease; }
@keyframes pd-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pd-label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 8px; color: var(--pd-text); }
.pd-hint { font-size: 11.5px; color: var(--pd-dim); margin: 8px 0 0; line-height: 1.9; }
.pd-hint--center { text-align: center; }

.pd-input {
	width: 100%; padding: 14px 16px; border-radius: 14px; font-size: 15px; font-family: inherit;
	background: var(--pd-surface); color: var(--pd-text);
	border: 1.5px solid var(--pd-line); outline: none; transition: border-color .18s, box-shadow .18s;
}
.pd-input:focus { border-color: var(--pd-primary); box-shadow: 0 0 0 3px rgba(193,39,45,.16); }
.pd-input:disabled { opacity: .55; }
.pd-input--tel, .pd-input--amount { direction: ltr; text-align: center; letter-spacing: 2px; font-weight: 700; font-size: 18px; }
.pd-input--amount { letter-spacing: normal; }
select.pd-input { appearance: none; padding-inline-end: 30px; }

.pd-btn {
	width: 100%; margin-top: 18px; padding: 15px 18px; border: 0; border-radius: 14px;
	font-size: 15px; font-weight: 800; cursor: pointer; position: relative;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	transition: transform .12s, opacity .18s; text-decoration: none;
}
.pd-btn:active { transform: scale(.985); }
.pd-btn--primary { background: var(--pd-primary); color: var(--pd-on-primary); }
.pd-btn--ghost { background: var(--pd-surface-2); color: var(--pd-text); }
.pd-btn:disabled { opacity: .6; cursor: default; }
.pd-btn.is-busy .pd-btn__text { visibility: hidden; }
.pd-btn.is-busy::after {
	content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: pd-spin .7s linear infinite;
}
@keyframes pd-spin { to { transform: rotate(360deg); } }

.pd-back { background: none; border: 0; color: var(--pd-dim); font-size: 12.5px; cursor: pointer; padding: 0 0 12px; }
.pd-back:hover { color: var(--pd-text); }
.pd-link { background: none; border: 0; color: var(--pd-secondary); font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 0; }
.pd-mobile-badge { color: var(--pd-secondary); font-weight: 800; display: inline-block; }

.pd-otp { display: flex; gap: 8px; justify-content: center; margin: 4px 0 6px; }
.pd-otp__box {
	width: 48px; height: 56px; text-align: center; font-size: 22px; font-weight: 800;
	border-radius: 13px; border: 1.5px solid var(--pd-line);
	background: var(--pd-surface); color: var(--pd-text); outline: none; font-family: inherit;
	transition: border-color .18s, box-shadow .18s;
}
.pd-otp__box:focus { border-color: var(--pd-primary); box-shadow: 0 0 0 3px rgba(193,39,45,.16); }

.pd-resend { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; min-height: 20px; }
.pd-timer { font-size: 12px; color: var(--pd-dim); }

.pd-alert {
	margin: 14px 0 0; padding: 11px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.9;
	background: rgba(248,113,113,.12); color: var(--pd-err); border: 1px solid rgba(248,113,113,.24);
}
.pd-alert.is-success { background: rgba(34,197,94,.12); color: var(--pd-ok); border-color: rgba(34,197,94,.24); }
.pd-dev { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--pd-surface-2); color: var(--pd-secondary); font-size: 12px; text-align: center; }

/* ---------- سربرگ پنل ---------- */
.pd-header {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 16px 18px; background: var(--pd-surface); border-bottom: 1px solid var(--pd-line);
	position: sticky; top: 0; z-index: 5;
}
.pd-header__brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
/*
 * لوگوی سربرگ.
 *
 * عرض خودکار است تا لوگوی افقی کشیده یا بریده نشود؛ فقط ارتفاع کنترل
 * می‌شود که از تنظیمات می‌آید.
 */
.pd-header__logo {
	width: auto;
	max-width: 120px;
	height: 34px;
	border-radius: 8px;
	object-fit: contain;
	display: block;
}
.pd-header__brand img:not(.pd-header__logo) {
	width: 40px; height: 40px; border-radius: 12px; object-fit: cover;
}
.pd-header__mark {
	width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 18px; background: linear-gradient(135deg, var(--pd-primary), var(--pd-secondary)); color: var(--pd-on-primary);
}
.pd-header__title { display: block; font-size: 14px; font-weight: 800; }
.pd-header__sub { display: block; font-size: 11.5px; color: var(--pd-dim); margin-top: 2px; }
.pd-header__logout {
	background: var(--pd-surface-2); border: 0; color: var(--pd-dim); border-radius: 10px;
	padding: 8px 14px; font-size: 12px; cursor: pointer; flex-shrink: 0;
}
.pd-header__logout:hover { color: var(--pd-err); }

.pd-hero-card::after {
	content: ""; position: absolute; inset: auto -30px -60px auto; width: 170px; height: 170px;
	border-radius: 50%; background: rgba(255,255,255,.09);
}
.pd-hero-card__label { font-size: 12px; opacity: .82; }
.pd-hero-card__value { display: block; font-size: 34px; font-weight: 900; line-height: 1.25; margin: 2px 0 10px; }
.pd-hero-card__meta { display: flex; gap: 16px; font-size: 12px; opacity: .88; flex-wrap: wrap; position: relative; }

/* ---------- کاشی‌ها ---------- */
.pd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-bottom: 18px; }
.pd-tile {
	background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 16px;
	padding: 16px 14px; text-decoration: none; color: var(--pd-text);
	display: flex; flex-direction: column; gap: 4px; transition: transform .14s, border-color .18s;
}
.pd-tile:hover { transform: translateY(-2px); border-color: var(--pd-primary); }
.pd-tile.is-soon { opacity: .48; pointer-events: none; }
.pd-tile__icon { font-size: 20px; color: var(--pd-secondary); margin-bottom: 4px; }
.pd-tile strong { font-size: 13.5px; font-weight: 800; }
.pd-tile__desc { font-size: 11px; color: var(--pd-dim); }

.pd-notice {
	display: block; background: var(--pd-surface-2); border-radius: 14px; padding: 14px 16px;
	margin-bottom: 16px; text-decoration: none; color: var(--pd-text);
	border-inline-start: 3px solid var(--pd-secondary);
}
.pd-notice strong { display: block; font-size: 13px; margin-bottom: 3px; }
.pd-notice span { font-size: 11.5px; color: var(--pd-dim); line-height: 1.9; }
.pd-notice--warn { border-inline-start-color: var(--pd-secondary); font-size: 12px; }

/* ---------- بخش‌ها و لیست ---------- */
.pd-section { margin-bottom: 18px; }
.pd-section__title { font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.pd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pd-list__item {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 13px; padding: 12px 14px;
}
.pd-list__item strong { font-size: 13.5px; display: block; }
.pd-list__meta { font-size: 11px; color: var(--pd-dim); }
.pd-badge { font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--pd-surface-2); color: var(--pd-dim); flex-shrink: 0; }
.pd-badge--paid { background: rgba(34,197,94,.14); color: var(--pd-ok); }
.pd-badge--failed, .pd-badge--canceled { background: rgba(248,113,113,.13); color: var(--pd-err); }
.pd-badge--pending { background: rgba(242,183,5,.14); color: var(--pd-secondary); }

/* ---------- فرم‌ها ---------- */
.pd-form { display: block; }
.pd-form .pd-label { margin-top: 16px; }
.pd-form .pd-label:first-child { margin-top: 0; }
.pd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-row--3 { grid-template-columns: 1.1fr 1.3fr .8fr; }
.pd-row .pd-label { margin-top: 0; }

.pd-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pd-chip {
	background: var(--pd-surface); border: 1.5px solid var(--pd-line); color: var(--pd-text);
	border-radius: 999px; padding: 9px 16px; font-size: 12.5px; cursor: pointer; transition: all .16s;
}
.pd-chip:hover { border-color: var(--pd-primary); }
.pd-chip.is-active { background: var(--pd-primary); border-color: var(--pd-primary); color: var(--pd-on-primary); font-weight: 700; }

.pd-switch { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12.5px; cursor: pointer; }
.pd-switch input { width: 18px; height: 18px; accent-color: var(--pd-primary); }

.pd-referral {
	margin-top: 20px; padding: 14px 16px; border-radius: 13px; background: var(--pd-surface-2);
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pd-referral span { font-size: 12px; color: var(--pd-dim); }
.pd-referral strong { font-size: 16px; font-weight: 800; letter-spacing: 2px; color: var(--pd-secondary); }

/* ---------- نتیجه پرداخت ---------- */
.pd-result { text-align: center; padding: 24px 8px 8px; }
.pd-result__icon {
	width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700;
}
.pd-result--ok .pd-result__icon { background: rgba(34,197,94,.14); color: var(--pd-ok); }
.pd-result--fail .pd-result__icon { background: rgba(248,113,113,.13); color: var(--pd-err); }
.pd-result__title { font-size: 17px; font-weight: 800; margin: 0 0 18px; }
.pd-result__reason { font-size: 12.5px; color: var(--pd-dim); line-height: 2; margin: 0 0 12px; }
.pd-result__note { font-size: 12px; color: var(--pd-dim); margin: 14px 0 0; line-height: 2; }

.pd-receipt { margin: 0; text-align: right; background: var(--pd-surface); border-radius: 14px; padding: 6px 16px; }
.pd-receipt > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--pd-line); }
.pd-receipt > div:last-child { border-bottom: 0; }
.pd-receipt dt { font-size: 12px; color: var(--pd-dim); margin: 0; }
.pd-receipt dd { font-size: 13px; font-weight: 700; margin: 0; }

/* ---------- منوی پایین ---------- */

/* ═══════════ فاز ۳ — منو، میز و فضا ═══════════ */

/* نوار میز جاری */
.pd-table-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	background: var(--pd-surface-2); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px;
	border-inline-start: 3px solid var(--pd-secondary);
}
.pd-table-bar__label { display: block; font-size: 11px; color: var(--pd-dim); margin-bottom: 2px; }
.pd-table-bar strong { font-size: 13.5px; }
.pd-table-bar__clear {
	background: none; border: 1px solid var(--pd-line); color: var(--pd-dim);
	border-radius: 9px; padding: 6px 14px; font-size: 11.5px; cursor: pointer; flex-shrink: 0;
}
.pd-table-bar__clear:hover { color: var(--pd-text); border-color: var(--pd-primary); }

/* جستجو */
.pd-search { position: relative; }
.pd-search__results {
	position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 20;
	background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 14px;
	overflow: hidden; box-shadow: 0 12px 34px rgba(0,0,0,.28); max-height: 300px; overflow-y: auto;
}
.pd-search__row {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 12px 15px; text-decoration: none; color: var(--pd-text);
	border-bottom: 1px solid var(--pd-line); font-size: 13px;
}
.pd-search__row:last-child { border-bottom: 0; }
.pd-search__row:hover { background: var(--pd-surface-2); }
.pd-search__price { font-size: 12px; color: var(--pd-secondary); font-weight: 700; flex-shrink: 0; }
.pd-search__empty { padding: 16px; text-align: center; color: var(--pd-dim); font-size: 12.5px; margin: 0; }

/* ناوبری دسته‌ها */
.pd-catnav {
	display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 6px;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pd-catnav::-webkit-scrollbar { display: none; }

/* بلوک دسته */
.pd-catblock__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-catblock__head .pd-section__title { margin: 0 0 8px; }
.pd-catblock__desc { font-size: 12px; color: var(--pd-dim); margin: 0 0 12px; line-height: 1.9; }
.pd-catblock.is-unavailable .pd-dish { opacity: .55; }

/* کارت غذا */
.pd-menu-list { display: flex; flex-direction: column; gap: 12px; }

/*
 * کارت غذا.
 *
 * فاصله داخلی سخاوتمندانه‌تر شد و قیمت از گوشه جدا شد. قبلاً قیمت با
 * text-align به لبه می‌چسبید و روی صفحه‌های باریک کنار مرز کارت می‌نشست.
 */
.pd-app.pd-app.pd-app li.pd-dish,
.pd-app.pd-app.pd-app .pd-dish {
	display: flex;
	gap: 14px;
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: 18px;
	padding: 15px 16px;
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.pd-dish:hover { border-color: color-mix(in srgb, var(--pd-primary) 55%, var(--pd-line)); }
@supports not (border-color: color-mix(in srgb, red 50%, blue)) {
	.pd-dish:hover { border-color: var(--pd-primary); }
}
.pd-dish.is-highlight { border-color: var(--pd-secondary); box-shadow: 0 0 0 3px rgba(242,183,5,.18); }

.pd-dish__media { position: relative; flex-shrink: 0; width: 84px; height: 84px; }
.pd-dish__img {
	width: 84px; height: 84px; object-fit: cover;
	border-radius: 14px; display: block;
}
.pd-dish__off {
	position: absolute; top: -6px; inset-inline-start: -6px;
	background: var(--pd-primary); color: var(--pd-on-primary);
	font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
}

.pd-dish__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }

/* نام و قیمت روی یک سطر، با فاصله تضمین‌شده بینشان. */
.pd-dish__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}
.pd-dish__name { font-size: 14.5px; font-weight: 800; margin: 0; line-height: 1.7; }

.pd-dish__price {
	flex-shrink: 0;
	text-align: end;
	font-size: 12.5px;
	line-height: 1.6;
	/* از لبه کارت فاصله می‌گیرد تا به مرز نچسبد. */
	padding-inline-start: 2px;
}
.pd-dish__price del { display: block; font-size: 11px; color: var(--pd-dim); margin-bottom: 1px; }
.pd-dish__price strong {
	color: var(--pd-secondary);
	font-weight: 800;
	white-space: nowrap;
	font-size: 13.5px;
}

.pd-dish__desc { font-size: 12px; color: var(--pd-dim); margin: 0; line-height: 1.95; }
.pd-dish__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pd-dish__allergy { font-size: 10.5px; color: var(--pd-dim); margin: 0; opacity: .85; }

/*
 * دکمه‌ها و لینک نظر نباید تمام عرض کارت را بگیرند.
 *
 * در اسکرین‌شات، دکمه افزودن وسط‌چین و تمام‌عرض دیده می‌شد چون هیچ
 * محدودیتی نداشت و ظرفش ستونی بود.
 */
.pd-dish__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 2px;
}
.pd-dish .pd-add {
	min-width: 96px;
	padding: 9px 20px;
	border-radius: 12px;
}

.pd-dish .pd-review-open {
	align-self: flex-start;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--pd-dim);
	cursor: pointer;
	text-align: start;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color .18s ease;
}
.pd-dish .pd-review-open:hover { color: var(--pd-primary); }

.pd-chip-sm {
	font-size: 10.5px; padding: 3px 9px; border-radius: 999px;
	background: var(--pd-surface-2); color: var(--pd-dim); white-space: nowrap;
}
.pd-chip-sm--badge { background: rgba(242,183,5,.15); color: var(--pd-secondary); font-weight: 700; }
.pd-chip-sm--diet { background: rgba(34,197,94,.13); color: var(--pd-ok); }
.pd-chip-sm--spicy { background: rgba(248,113,113,.13); }

.pd-menu-note { font-size: 11.5px; color: var(--pd-dim); text-align: center; margin: 18px 0 0; line-height: 2; }
.pd-empty { text-align: center; color: var(--pd-dim); font-size: 13px; padding: 40px 20px; }

/* انتخاب میز و فضا */
.pd-locblock { margin-bottom: 18px; }
.pd-locblock__title { font-size: 12.5px; font-weight: 700; color: var(--pd-dim); margin: 0 0 8px; }
.pd-chip.is-disabled, .pd-chip:disabled { opacity: .4; cursor: not-allowed; }

.pd-locgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 11px; }
.pd-loccard {
	background: var(--pd-surface); border: 1.5px solid var(--pd-line); border-radius: 16px;
	padding: 0 0 14px; cursor: pointer; text-align: center; overflow: hidden;
	display: flex; flex-direction: column; gap: 5px; transition: all .18s; font-family: inherit; color: var(--pd-text);
}
.pd-loccard:hover { border-color: var(--pd-primary); transform: translateY(-2px); }
.pd-loccard.is-active { border-color: var(--pd-primary); box-shadow: 0 0 0 3px rgba(193,39,45,.16); }
.pd-loccard__img { width: 100%; height: 90px; object-fit: cover; margin-bottom: 6px; display: block; }
.pd-loccard__name { font-size: 13.5px; font-weight: 800; padding: 8px 10px 0; }
.pd-loccard:not(:has(.pd-loccard__img)) .pd-loccard__name { padding-top: 16px; }
.pd-loccard__desc { font-size: 11px; color: var(--pd-dim); padding: 0 10px; line-height: 1.8; }
.pd-loccard__tags { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; padding: 4px 8px 0; }

@media screen and (max-width: 420px) {
	.pd-dish__media, .pd-dish__img { width: 70px; height: 70px; }
	.pd-locgrid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════ فاز ۴ — سفارش‌گیری ═══════════ */

/* دکمه افزودن و کنترل تعداد در منو */
.pd-dish__actions { margin-top: 10px; }
.pd-add {
	background: var(--pd-primary); color: var(--pd-on-primary); border: 0;
	border-radius: 10px; padding: 8px 20px; font-size: 12.5px; font-weight: 700;
	cursor: pointer; font-family: inherit; transition: transform .12s;
}
.pd-add:active { transform: scale(.95); }

.pd-qty { display: inline-flex; align-items: center; gap: 4px; background: var(--pd-surface-2); border-radius: 10px; padding: 3px; }
.pd-qty__btn {
	width: 30px; height: 30px; border: 0; border-radius: 8px; cursor: pointer;
	background: var(--pd-surface); color: var(--pd-text); font-size: 16px; font-weight: 700;
	font-family: inherit; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.pd-qty__btn:hover { background: var(--pd-primary); color: var(--pd-on-primary); }
.pd-qty__num { min-width: 30px; text-align: center; font-weight: 800; font-size: 13.5px; }

/* دکمه شناور سبد در منو */
.pd-cart-fab {
	position: sticky; bottom: 12px; margin: 18px auto 0; width: calc(100% - 8px);
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	background: var(--pd-primary); color: var(--pd-on-primary); text-decoration: none;
	border-radius: 14px; padding: 13px 18px; font-size: 13.5px; font-weight: 800;
	box-shadow: 0 8px 24px rgba(0,0,0,.3); z-index: 10;
}
.pd-cart-fab [data-pd-fab-count] {
	background: rgba(255,255,255,.22); border-radius: 999px; min-width: 26px;
	height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}

/* نشانگر تعداد روی منوی پایین */

/* سبد */
.pd-cartline {
	display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 8px;
	background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 14px;
}
.pd-cartline__info { flex: 1; min-width: 0; }
.pd-cartline__info strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.pd-cartline__unit { font-size: 11px; color: var(--pd-dim); }
.pd-cartline__total { font-size: 12.5px; font-weight: 800; color: var(--pd-secondary); white-space: nowrap; }

.pd-cart__summary { margin-top: 16px; }
.pd-cart__row {
	display: flex; justify-content: space-between; align-items: center;
	padding: 10px 0; border-bottom: 1px solid var(--pd-line); font-size: 13px;
}
.pd-cart__row span { color: var(--pd-dim); }
.pd-cart__row--total { border-bottom: 0; padding-top: 14px; font-size: 15px; }
.pd-cart__row--total span { color: var(--pd-text); font-weight: 700; }
.pd-cart__row--total strong { color: var(--pd-secondary); font-size: 17px; font-weight: 900; }

/* کارت سفارش و نوار پیشرفت */
.pd-order {
	background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 16px;
	padding: 14px; margin-bottom: 12px; transition: border-color .3s, box-shadow .3s;
}
.pd-order.is-highlight { border-color: var(--pd-secondary); box-shadow: 0 0 0 3px rgba(242,183,5,.16); }
.pd-order__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pd-order__number { font-size: 14px; font-weight: 800; display: block; }
.pd-order__meta { font-size: 11px; color: var(--pd-dim); }
.pd-order__reason { font-size: 12px; color: var(--pd-err); margin: 0 0 10px; }

.pd-track { list-style: none; margin: 0 0 14px; padding: 0; display: flex; justify-content: space-between; position: relative; }
.pd-track::before {
	content: ""; position: absolute; top: 7px; inset-inline: 8%; height: 2px;
	background: var(--pd-line); z-index: 0;
}
.pd-track__step { flex: 1; text-align: center; position: relative; z-index: 1; }
.pd-track__dot {
	width: 16px; height: 16px; border-radius: 50%; display: block; margin: 0 auto 6px;
	background: var(--pd-surface-2); border: 2px solid var(--pd-line); transition: all .3s;
}
.pd-track__step.is-done .pd-track__dot { background: var(--pd-ok); border-color: var(--pd-ok); }
.pd-track__step.is-current .pd-track__dot {
	background: var(--pd-secondary); border-color: var(--pd-secondary);
	box-shadow: 0 0 0 4px rgba(242,183,5,.2);
	animation: pd-pulse 1.6s ease-in-out infinite;
}
@keyframes pd-pulse { 50% { box-shadow: 0 0 0 8px rgba(242,183,5,0); } }
.pd-track__label { font-size: 9.5px; color: var(--pd-dim); }
.pd-track__step.is-done .pd-track__label, .pd-track__step.is-current .pd-track__label { color: var(--pd-text); font-weight: 700; }

.pd-order__items { list-style: none; margin: 0 0 12px; padding: 0; }
.pd-order__items li {
	display: flex; align-items: center; gap: 8px; padding: 7px 0;
	border-bottom: 1px dashed var(--pd-line); font-size: 12.5px;
}
.pd-order__items li:last-child { border-bottom: 0; }
.pd-order__items li span:first-child { flex: 1; }
.pd-order__qty { color: var(--pd-dim); font-size: 11.5px; }
.pd-order__linetotal { font-size: 11.5px; color: var(--pd-dim); white-space: nowrap; }

.pd-order__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--pd-line); }
.pd-order__total { display: block; font-size: 14px; font-weight: 800; color: var(--pd-secondary); }
.pd-btn-sm {
	background: var(--pd-primary); color: var(--pd-on-primary); border: 0; border-radius: 10px;
	padding: 8px 16px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; flex-shrink: 0;
}
.pd-btn-sm.is-busy { opacity: .6; }

.pd-badge--pending { background: rgba(242,183,5,.14); color: var(--pd-secondary); }
.pd-badge--confirmed { background: rgba(59,130,246,.14); color: #60a5fa; }
.pd-badge--preparing { background: rgba(168,85,247,.14); color: #c084fc; }
.pd-badge--ready { background: rgba(34,197,94,.16); color: var(--pd-ok); }
.pd-badge--served, .pd-badge--completed { background: rgba(34,197,94,.12); color: var(--pd-ok); }
.pd-badge--canceled { background: rgba(248,113,113,.13); color: var(--pd-err); }

/* ═══════════ فاز ۵ — باشگاه امتیاز ═══════════ */
.pd-progress { height: 8px; background: var(--pd-surface-2); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.pd-progress__bar { height: 100%; background: linear-gradient(90deg, var(--pd-primary), var(--pd-secondary)); border-radius: 999px; transition: width .5s ease; }

.pd-chip small { display: block; font-size: 10px; opacity: .8; margin-top: 2px; }

.pd-coupon {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	background: var(--pd-surface); border: 1px dashed var(--pd-secondary); border-radius: 14px;
	padding: 13px 16px; margin-bottom: 9px; position: relative; overflow: hidden;
}
.pd-coupon::before {
	content: ""; position: absolute; inset-inline-start: -7px; top: 50%; transform: translateY(-50%);
	width: 14px; height: 14px; border-radius: 50%; background: var(--pd-bg);
}
.pd-coupon__body { min-width: 0; }
.pd-coupon__code { display: block; font-size: 15px; font-weight: 900; letter-spacing: 1.5px; color: var(--pd-secondary); }
.pd-coupon__desc { display: block; font-size: 11.5px; color: var(--pd-text); margin-top: 3px; }
.pd-coupon__expiry { display: block; font-size: 10.5px; color: var(--pd-dim); margin-top: 2px; }
.pd-coupon__copy {
	background: var(--pd-surface-2); border: 0; color: var(--pd-text); border-radius: 9px;
	padding: 8px 15px; font-size: 11.5px; cursor: pointer; font-family: inherit; flex-shrink: 0;
}
.pd-coupon__copy.is-done { background: var(--pd-ok); color: #fff; }

.pd-inline-form { display: flex; gap: 7px; align-items: center; }
.pd-inline-form .pd-input { flex: 1; min-width: 0; }
.pd-btn-sm--ghost { background: var(--pd-surface-2); color: var(--pd-dim); display: none; }
.pd-discount.is-applied .pd-btn-sm--ghost { display: inline-block; }
.pd-discount.is-applied [data-pd-coupon-apply] { display: none; }
.pd-discount { padding: 14px 0; border-bottom: 1px solid var(--pd-line); margin-bottom: 4px; }
.pd-discount-amount { color: var(--pd-ok) !important; }

.pd-delta { font-size: 13px; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.pd-delta--credit { color: var(--pd-ok); }
.pd-delta--debit { color: var(--pd-dim); }
.pd-delta small { font-size: 9.5px; font-weight: 400; opacity: .8; }

/* ═══════════ فاز ۶ — بازی ═══════════ */
.pd-quota {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
	background: var(--pd-surface); border: 1px solid var(--pd-line);
	border-radius: 14px; padding: 14px; margin-bottom: 16px; text-align: center;
}
.pd-quota__item { display: flex; flex-direction: column; gap: 3px; }
.pd-quota__label { font-size: 10.5px; color: var(--pd-dim); }
.pd-quota__item strong { font-size: 15px; font-weight: 800; }

.pd-gamelist { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 11px; }
.pd-gamecard {
	background: var(--pd-surface); border: 1.5px solid var(--pd-line); border-radius: 16px;
	padding: 18px 14px; cursor: pointer; text-align: center; font-family: inherit; color: var(--pd-text);
	display: flex; flex-direction: column; gap: 5px; align-items: center; transition: all .18s;
}
.pd-gamecard:hover { border-color: var(--pd-primary); transform: translateY(-2px); }
.pd-gamecard.is-soon { opacity: .45; pointer-events: none; }
.pd-gamecard__icon { font-size: 30px; color: var(--pd-secondary); line-height: 1; }
.pd-gamecard strong { font-size: 14px; font-weight: 800; }
.pd-gamecard__desc { font-size: 11px; color: var(--pd-dim); line-height: 1.8; }
.pd-gamecard__reward {
	font-size: 10.5px; font-weight: 700; color: var(--pd-secondary);
	background: rgba(242,183,5,.13); padding: 3px 10px; border-radius: 999px; margin-top: 4px;
}

.pd-gameboard { position: relative; }
.pd-gameboard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; min-height: 24px; }
.pd-gameboard__turn { font-size: 12.5px; color: var(--pd-secondary); font-weight: 700; }

.pd-ttt {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
	max-width: 320px; margin: 0 auto; aspect-ratio: 1;
}
.pd-ttt.is-thinking { opacity: .65; pointer-events: none; }
.pd-ttt.is-locked { pointer-events: none; }

.pd-ttt__cell {
	background: var(--pd-surface); border: 2px solid var(--pd-line); border-radius: 16px;
	cursor: pointer; display: flex; align-items: center; justify-content: center;
	padding: 8px; transition: all .18s; aspect-ratio: 1; position: relative;
}
.pd-ttt__cell:not(.is-filled):hover { border-color: var(--pd-primary); background: var(--pd-surface-2); }
.pd-ttt__cell.is-filled { cursor: default; }
.pd-ttt__cell.is-win { border-color: var(--pd-ok); background: rgba(34,197,94,.12); animation: pd-pop .4s ease; }
.pd-ttt__cell.is-last { border-color: var(--pd-secondary); }
@keyframes pd-pop { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }

.pd-ttt__piece { max-width: 78%; max-height: 78%; object-fit: contain; animation: pd-drop .25s ease; display: block; }
.pd-ttt__piece--text { font-size: 40px; font-weight: 300; line-height: 1; }
.pd-ttt__cell.is-x .pd-ttt__piece--text { color: var(--pd-primary); }
.pd-ttt__cell.is-o .pd-ttt__piece--text { color: var(--pd-secondary); }
@keyframes pd-drop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.pd-gameover {
	text-align: center;
	margin-top: 20px;
	padding: 20px 18px;
	background: var(--pd-surface);
	border-radius: 18px;
	border: 1.5px solid var(--pd-line);
	animation: pd-pop-in .32s cubic-bezier(.34, 1.4, .64, 1) both;
}
@keyframes pd-pop-in {
	from { opacity: 0; transform: translateY(10px) scale(.96); }
	to { opacity: 1; transform: none; }
}

.pd-gameover.is-win { border-color: var(--pd-ok); background: color-mix(in srgb, var(--pd-ok) 12%, var(--pd-surface)); }
.pd-gameover.is-draw { border-color: var(--pd-secondary); background: color-mix(in srgb, var(--pd-secondary) 12%, var(--pd-surface)); }
.pd-gameover.is-lose { border-color: var(--pd-line); }
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.pd-gameover.is-win, .pd-gameover.is-draw { background: var(--pd-surface-2); }
}

.pd-gameover__title { display: block; font-size: 17px; font-weight: 800; margin-bottom: 6px; color: var(--pd-text); }

/*
 * فقط امتیاز رنگ تأکیدی می‌گیرد.
 * انتخابگر عمداً دقیق است: نسخه قبلی «.pd-gameover span» بود که متن داخل
 * دکمه‌ها را هم می‌گرفت و «یک بازی دیگر» را نارنجی روی سبز می‌کرد — ترکیبی
 * که نه خوانا بود نه با برند هم‌خوان.
 */
.pd-gameover__points {
	display: inline-block;
	font-size: 15px;
	font-weight: 800;
	color: var(--pd-on-primary);
	background: var(--pd-primary);
	border-radius: 999px;
	padding: 5px 16px;
	margin-top: 2px;
}
.pd-gameover.is-lose .pd-gameover__points { background: var(--pd-surface-2); color: var(--pd-dim); }

.pd-gameover__actions { display: flex; gap: 8px; margin-top: 16px; }
.pd-gameover__actions .pd-btn { margin-top: 0; flex: 1; }

@media screen and (max-width: 420px) {
	.pd-ttt { max-width: 280px; gap: 6px; }
	.pd-ttt__piece--text { font-size: 34px; }
	.pd-gamelist { grid-template-columns: 1fr 1fr; }
}

/* ═══════════ فاز ۷ — خاطره‌ها ═══════════ */
.pd-dropzone {
	display: block; border: 2px dashed var(--pd-line); border-radius: 16px;
	padding: 26px 18px; text-align: center; cursor: pointer; margin-bottom: 18px;
	transition: border-color .2s, background .2s; position: relative;
}
.pd-dropzone:hover { border-color: var(--pd-primary); background: var(--pd-surface); }
.pd-dropzone__icon { font-size: 30px; display: block; margin-bottom: 8px; }
.pd-dropzone__empty strong { display: block; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.pd-dropzone__hint { font-size: 11px; color: var(--pd-dim); }
.pd-dropzone__preview { position: relative; }
.pd-dropzone__preview img { max-width: 100%; max-height: 260px; border-radius: 12px; display: block; margin: 0 auto; }
.pd-dropzone__remove {
	position: absolute; top: -8px; inset-inline-end: -8px; width: 30px; height: 30px;
	border-radius: 50%; border: 0; background: var(--pd-err); color: #fff;
	font-size: 19px; cursor: pointer; line-height: 1;
}

.pd-textarea { resize: vertical; min-height: 78px; text-align: right; letter-spacing: normal; font-size: 14px; font-weight: 400; }
.pd-counter { text-align: left; margin-top: 4px; }

.pd-memgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; }
.pd-memcard {
	background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 14px;
	overflow: hidden; transition: opacity .25s;
}
.pd-memcard.is-pending { border-color: rgba(242,183,5,.4); }
.pd-memcard.is-rejected { opacity: .62; }
.pd-memcard__media { line-height: 0; }
.pd-memcard__media img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pd-memcard__body { padding: 11px 12px; }
.pd-memcard__caption { font-size: 12px; line-height: 1.9; margin: 0 0 7px; }
.pd-memcard__meta { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--pd-dim); margin-bottom: 7px; }
.pd-memcard__points { color: var(--pd-ok); font-weight: 700; }
.pd-memcard__status { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.pd-memcard__note { font-size: 10.5px; color: var(--pd-err); margin: 0 0 8px; line-height: 1.8; }
.pd-memcard__actions { display: flex; gap: 5px; }
.pd-btn-sm--danger { background: rgba(248,113,113,.14); color: var(--pd-err); }
.pd-btn-sm { padding: 6px 12px; font-size: 11px; }

.pd-badge--approved { background: rgba(34,197,94,.14); color: var(--pd-ok); }
.pd-badge--rejected { background: rgba(248,113,113,.13); color: var(--pd-err); }

@media screen and (max-width: 420px) {
	.pd-memgrid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════ فاز ۸ — قرار و رزرو ═══════════ */
.pd-input--ltr { direction: ltr; text-align: center; letter-spacing: 1px; }

.pd-switch { display: flex; align-items: center; gap: 8px; margin: 10px 0 14px; font-size: 12.5px; cursor: pointer; }
.pd-switch input { width: 18px; height: 18px; accent-color: var(--pd-primary); flex-shrink: 0; }
.pd-switch input:disabled + span { opacity: .45; }

.pd-list__side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex-shrink: 0; }
.pd-list__actions { display: flex; gap: 5px; }
.pd-list__meta--ok { color: var(--pd-ok); }

.pd-badge--active { background: rgba(59,130,246,.14); color: #60a5fa; }
.pd-badge--fulfilled { background: rgba(34,197,94,.14); color: var(--pd-ok); }
.pd-badge--expired { background: var(--pd-surface-2); color: var(--pd-dim); }
.pd-badge--requested { background: rgba(242,183,5,.14); color: var(--pd-secondary); }
.pd-badge--seated { background: rgba(34,197,94,.14); color: var(--pd-ok); }
.pd-badge--no_show { background: rgba(248,113,113,.13); color: var(--pd-err); }

/* ═══════════ فاز ۱۰ — PWA و اعلان ═══════════ */
.pd-install-banner {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	background: linear-gradient(135deg, rgba(193,39,45,.14), rgba(242,183,5,.1));
	border: 1px solid var(--pd-line); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px;
}
.pd-install-banner strong { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 3px; }
.pd-install-banner span { font-size: 11.5px; color: var(--pd-dim); line-height: 1.8; }
.pd-install-banner__actions { display: flex; gap: 6px; flex-shrink: 0; }

.pd-push-state { font-size: 12.5px; margin: 10px 0; padding: 9px 14px; border-radius: 10px; background: var(--pd-surface-2); }
.pd-push-state[data-state="on"] { background: rgba(34,197,94,.13); color: var(--pd-ok); }
.pd-push-state[data-state="denied"], .pd-push-state[data-state="error"] { background: rgba(248,113,113,.12); color: var(--pd-err); }
.pd-push-state[data-state="unsupported"] { color: var(--pd-dim); }

@media screen and (max-width: 420px) {
	.pd-install-banner { flex-direction: column; align-items: stretch; }
	.pd-install-banner__actions { justify-content: stretch; }
	.pd-install-banner__actions .pd-btn-sm { flex: 1; }
}


/* ═══════════ بازطراحی — منوی شناور و ظاهر مدرن ═══════════ */

.pd-main {
	flex: 1;
	padding: 18px 16px calc(var(--pd-nav-h) + 34px);
	overflow-x: hidden;
}

/* ---------- منوی شناور پایین ---------- */
.pd-nav {
	position: sticky;
	bottom: 14px;
	z-index: 40;
	margin: 0 12px;
	display: flex;
	align-items: stretch;
	gap: 2px;
	padding: 7px;
	border-radius: 22px;
	background: color-mix(in srgb, var(--pd-surface) 88%, transparent);
	border: 1px solid var(--pd-line);
	box-shadow: var(--pd-shadow);
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.pd-nav::-webkit-scrollbar { display: none; }

/* پشتیبانی از مرورگرهایی که color-mix ندارند */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.pd-nav { background: var(--pd-surface); }
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
	.pd-nav {
		backdrop-filter: saturate(160%) blur(16px);
		-webkit-backdrop-filter: saturate(160%) blur(16px);
	}
}

.pd-nav__item {
	position: relative;
	flex: 1 0 auto;
	min-width: 62px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 9px 6px 8px;
	border-radius: 16px;
	text-decoration: none;
	color: var(--pd-dim);
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1.2;
	transition: color .18s ease, background .18s ease, transform .18s ease;
	-webkit-tap-highlight-color: transparent;
}
.pd-nav__item:hover { color: var(--pd-text); }
.pd-nav__item:active { transform: scale(.94); }

.pd-nav__item.is-active {
	color: var(--pd-on-primary);
	background: var(--pd-primary);
}
.pd-nav__item.is-active .pd-nav__icon { transform: translateY(-1px); }

.pd-nav__icon {
	font-size: 18px;
	line-height: 1;
	transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}

.pd-nav__count {
	position: absolute;
	top: 3px;
	inset-inline-end: 9px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--pd-accent);
	color: #fff;
	font-size: 9.5px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 2px var(--pd-surface);
}

/* ---------- سربرگ ---------- */
.pd-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;

	/*
	 * ناحیه امن بالا.
	 *
	 * viewport-fit=cover باعث می‌شود صفحه تا لبه بالای نمایشگر کشیده شود.
	 * روی گوشی‌های دارای بریدگی، این یعنی ۴۴ تا ۵۹ پیکسل از سربرگ زیر
	 * دوربین و بلندگو می‌رود. در حالت مرورگر عادی این مقدار صفر است، پس
	 * فاصله عادی می‌ماند.
	 */
	padding: calc(16px + env(safe-area-inset-top)) 18px 12px;
	position: relative;
}
.pd-header::after {
	content: "";
	position: absolute;
	inset-inline: 18px;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--pd-line), transparent);
}
.pd-header__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pd-header__brand img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }

/* ---------- کارت‌ها و بخش‌ها ---------- */
.pd-section { margin-bottom: 22px; animation: pd-rise .32s ease both; }
@keyframes pd-rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

.pd-section__title {
	font-size: 14.5px;
	font-weight: 800;
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.pd-section__title::before {
	content: "";
	width: 3px;
	height: 15px;
	border-radius: 999px;
	background: var(--pd-primary);
	flex-shrink: 0;
}

.pd-hero-card {
	background:
		radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--pd-primary) 26%, transparent), transparent 60%),
		var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
	padding: 22px 20px;
	margin-bottom: 20px;
	position: relative;
	overflow: hidden;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.pd-hero-card { background: var(--pd-surface); }
}
.pd-hero-card__label { font-size: 11.5px; color: var(--pd-dim); display: block; margin-bottom: 6px; }
.pd-hero-card__value { font-size: 32px; font-weight: 900; display: block; letter-spacing: -.5px; }
.pd-hero-card__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--pd-dim); margin-top: 10px; }

/* ---------- کاشی‌ها ---------- */
.pd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)); gap: 11px; }
.pd-tile {
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: 17px;
	padding: 17px 14px;
	text-decoration: none;
	color: var(--pd-text);
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
	position: relative;
	overflow: hidden;
}
.pd-tile::after {
	content: "";
	position: absolute;
	inset-inline-end: -22px;
	top: -22px;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: var(--pd-primary);
	opacity: .09;
	transition: transform .3s ease, opacity .3s ease;
}
.pd-tile:hover { transform: translateY(-3px); border-color: var(--pd-primary); box-shadow: var(--pd-shadow); }
.pd-tile:hover::after { transform: scale(1.5); opacity: .16; }
.pd-tile:active { transform: scale(.98); }
.pd-tile.is-soon { opacity: .45; pointer-events: none; }
.pd-tile__icon { font-size: 23px; color: var(--pd-primary); line-height: 1; margin-bottom: 3px; }
.pd-tile strong { font-size: 13.5px; font-weight: 800; }
.pd-tile__desc { font-size: 11px; color: var(--pd-dim); line-height: 1.75; }

/* ---------- دکمه‌ها ---------- */
.pd-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: 0;
	border-radius: 15px;
	padding: 14px 20px;
	font-size: 14px;
	font-weight: 800;
	font-family: inherit;
	cursor: pointer;
	margin-top: 14px;
	transition: transform .15s ease, opacity .2s ease, box-shadow .2s ease;
	text-decoration: none;
}
.pd-btn:active { transform: scale(.975); }
.pd-btn--primary {
	background: var(--pd-primary);
	color: var(--pd-on-primary);
	box-shadow: 0 6px 18px color-mix(in srgb, var(--pd-primary) 34%, transparent);
}
@supports not (box-shadow: 0 0 0 color-mix(in srgb, red 50%, blue)) {
	.pd-btn--primary { box-shadow: 0 6px 18px rgba(0,0,0,.18); }
}
.pd-btn--ghost { background: var(--pd-surface-2); color: var(--pd-text); }
.pd-btn.is-busy { opacity: .6; pointer-events: none; }
.pd-btn.is-busy .pd-btn__text::after {
	content: "";
	display: inline-block;
	width: 13px; height: 13px;
	margin-inline-start: 8px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	vertical-align: -2px;
	animation: pd-spin .7s linear infinite;
}
@keyframes pd-spin { to { transform: rotate(360deg); } }

/* ---------- ورودی‌ها ---------- */
.pd-input {
	width: 100%;
	background: var(--pd-surface);
	border: 1.5px solid var(--pd-line);
	border-radius: 14px;
	padding: 13px 15px;
	color: var(--pd-text);
	font-size: 14px;
	font-family: inherit;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.pd-input:focus {
	outline: none;
	border-color: var(--pd-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pd-primary) 22%, transparent);
}
@supports not (box-shadow: 0 0 0 color-mix(in srgb, red 50%, blue)) {
	.pd-input:focus { box-shadow: 0 0 0 3px rgba(169,198,169,.22); }
}
.pd-input::placeholder { color: var(--pd-dim); opacity: .7; }
.pd-label { display: block; font-size: 12px; font-weight: 700; margin: 14px 0 6px; color: var(--pd-dim); }

/* ---------- چیپ‌ها ---------- */
.pd-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 6px; }
.pd-chip {
	background: var(--pd-surface);
	border: 1.5px solid var(--pd-line);
	border-radius: 999px;
	padding: 9px 17px;
	color: var(--pd-dim);
	font-size: 12.5px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: all .17s ease;
}
.pd-chip:hover { border-color: var(--pd-primary); color: var(--pd-text); }
.pd-chip.is-active {
	background: var(--pd-primary);
	border-color: var(--pd-primary);
	color: var(--pd-on-primary);
}

/* ---------- پیام‌ها ---------- */
.pd-alert {
	font-size: 12.5px;
	padding: 12px 15px;
	border-radius: 13px;
	margin: 12px 0 0;
	line-height: 1.95;
	border-inline-start: 3px solid var(--pd-accent);
	background: color-mix(in srgb, var(--pd-accent) 12%, transparent);
	color: var(--pd-text);
	animation: pd-rise .25s ease both;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.pd-alert { background: rgba(234,79,61,.12); }
}
.pd-alert.is-success {
	border-inline-start-color: var(--pd-ok);
	background: color-mix(in srgb, var(--pd-ok) 14%, transparent);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.pd-alert.is-success { background: rgba(124,195,148,.14); }
}

.pd-notice {
	display: block;
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-inline-start: 3px solid var(--pd-secondary);
	border-radius: 14px;
	padding: 13px 16px;
	margin-bottom: 16px;
	text-decoration: none;
	color: var(--pd-text);
}
.pd-notice strong { display: block; font-size: 13px; font-weight: 800; margin-bottom: 3px; }
.pd-notice span { font-size: 11.5px; color: var(--pd-dim); line-height: 1.85; }
.pd-notice--action:hover { border-color: var(--pd-secondary); }

.pd-hint { font-size: 11.5px; color: var(--pd-dim); line-height: 2; margin: 6px 0 12px; }
.pd-hint--center { text-align: center; }

/* ---------- فهرست ---------- */
.pd-list { list-style: none; margin: 0; padding: 0; }
.pd-list__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 15px;
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: 14px;
	margin-bottom: 8px;
	font-size: 13px;
}
.pd-list__meta { display: block; font-size: 10.5px; color: var(--pd-dim); margin-top: 3px; line-height: 1.8; }

.pd-badge {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--pd-surface-2);
	color: var(--pd-dim);
	white-space: nowrap;
}

/* ---------- موبایل ---------- */
@media screen and (max-width: 600px) {
	.pd-app { border-radius: 0; max-width: none; min-height: 100vh; }
	.pd-main { padding: 14px 13px calc(var(--pd-nav-h) + 30px); }
	.pd-nav { margin: 0 10px; bottom: max(12px, env(safe-area-inset-bottom)); }
	.pd-hero-card__value { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.pd-app *, .pd-app *::before, .pd-app *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

/* ---------- آیکن SVG منو ---------- */
.pd-nav__icon { width: 21px; height: 21px; display: block; }

/* ---------- شیت «بیشتر» ---------- */
.pd-sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.pd-sheet__backdrop {
	position: absolute; inset: 0; background: rgba(10,14,13,.6);
	animation: pd-fade .22s ease both;
}
@keyframes pd-fade { from { opacity: 0; } to { opacity: 1; } }

.pd-sheet__panel {
	position: relative;
	width: 100%;
	max-width: 560px;
	background: var(--pd-surface);
	border-radius: 26px 26px 0 0;
	border: 1px solid var(--pd-line);
	border-bottom: 0;
	padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
	box-shadow: 0 -14px 44px rgba(0,0,0,.34);
	animation: pd-slide-up .28s cubic-bezier(.32,.72,.28,1) both;
}
@keyframes pd-slide-up { from { transform: translateY(100%); } to { transform: none; } }

.pd-sheet__grip {
	display: block; width: 42px; height: 4px; border-radius: 999px;
	background: var(--pd-line); margin: 2px auto 16px;
}

.pd-sheet__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }

.pd-sheet__item {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 8px; padding: 17px 8px; border-radius: 17px;
	background: var(--pd-surface-2); border: 1.5px solid transparent;
	text-decoration: none; color: var(--pd-text);
	font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.4;
	transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.pd-sheet__item .pd-nav__icon { width: 24px; height: 24px; color: var(--pd-primary); }
.pd-sheet__item:hover { border-color: var(--pd-primary); transform: translateY(-2px); }
.pd-sheet__item:active { transform: scale(.96); }
.pd-sheet__item.is-active { border-color: var(--pd-primary); background: var(--pd-surface); }
.pd-sheet__item.is-active .pd-nav__icon { color: var(--pd-primary); }

.pd-sheet__close {
	width: 100%; margin-top: 14px; padding: 13px; border: 0; border-radius: 15px;
	background: var(--pd-surface-2); color: var(--pd-dim);
	font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.pd-sheet__close:hover { color: var(--pd-text); }

body.pd-sheet-open { overflow: hidden; }

@media screen and (max-width: 380px) {
	.pd-sheet__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════ امتیاز و نظر غذا ═══════════ */
.pd-rating { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin-inline-start: 7px; }
.pd-rating__num { font-size: 11px; font-weight: 800; color: var(--pd-secondary); }
.pd-rating__count { font-size: 10px; color: var(--pd-dim); }

.pd-stars { position: relative; display: inline-flex; line-height: 0; }
.pd-stars__bg, .pd-stars__fg { display: inline-flex; gap: 1px; }
.pd-stars__bg { fill: var(--pd-line); }
.pd-stars__fg {
	position: absolute; inset-inline-start: 0; top: 0;
	overflow: hidden; white-space: nowrap; fill: var(--pd-secondary);
}

.pd-review-open {
	background: none; border: 0; padding: 4px 0 0;
	color: var(--pd-primary); font-size: 11.5px; font-weight: 700;
	font-family: inherit; cursor: pointer; text-decoration: underline;
	text-underline-offset: 3px;
}
.pd-review-open:hover { opacity: .8; }

.pd-sheet__panel--tall { max-height: 86vh; overflow-y: auto; }

.pd-starpick { display: flex; gap: 6px; margin: 4px 0 14px; }
.pd-starpick__btn {
	background: none; border: 0; padding: 3px; cursor: pointer; line-height: 0;
	transition: transform .15s ease;
}
.pd-starpick__btn svg { width: 32px; height: 32px; fill: var(--pd-line); transition: fill .15s ease; }
.pd-starpick__btn.is-on svg { fill: var(--pd-secondary); }
.pd-starpick__btn:hover { transform: scale(1.15); }
.pd-starpick__btn:active { transform: scale(.95); }

.pd-reviewform { margin-bottom: 18px; }
.pd-reviewlist { border-top: 1px solid var(--pd-line); padding-top: 14px; }
.pd-reviewitem {
	background: var(--pd-surface-2); border-radius: 13px;
	padding: 12px 14px; margin-bottom: 8px;
}
.pd-reviewitem__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.pd-reviewitem__head strong { font-size: 12.5px; font-weight: 800; }
.pd-reviewitem__stars { font-size: 12px; color: var(--pd-secondary); letter-spacing: 1px; }
.pd-reviewitem p { font-size: 12.5px; line-height: 2; margin: 0 0 5px; }
.pd-reviewitem__date { font-size: 10px; color: var(--pd-dim); }

/* ═══════════ نوار شناور سبد ═══════════ */
.pd-cartbar {
	/* fixed نه sticky: نوار در انتهای سند قرار دارد، پس با sticky فقط وقتی
	   دیده می‌شد که مشتری تا ته منو اسکرول کند — دقیقاً همان سردرگمی که
	   باید حل شود. حالا به‌محض افزودن اولین آیتم روی صفحه شناور می‌ماند. */
	position: fixed;
	bottom: calc(var(--pd-nav-h) + 24px);
	inset-inline: 0;
	z-index: 38;
	width: min(532px, calc(100vw - 28px));
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 12px 11px 16px;
	border-radius: 18px;
	background: var(--pd-primary);
	color: var(--pd-on-primary);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .26);
	animation: pd-cartbar-in .32s cubic-bezier(.34, 1.4, .64, 1) both;
}

@keyframes pd-cartbar-in {
	from { opacity: 0; transform: translateY(18px) scale(.96); }
	to { opacity: 1; transform: none; }
}

/* وقتی نوار روی صفحه است، آخرین غذاها زیرش پنهان نشوند. */
.pd-app.has-cartbar .pd-main { padding-bottom: calc(var(--pd-nav-h) + 106px); }

/* محافظ: اگر قالب سایت روی یکی از والدها transform یا filter داشته باشد،
   position:fixed نسبت به همان والد محاسبه می‌شود نه نسبت به پنجره — و نوار
   دوباره در انتهای صفحه گیر می‌کند. با این کلاس، پنل خودش مرجع می‌شود و
   نوار در هر قالبی پایین پنل می‌ماند. */
.pd-app.has-cartbar { position: relative; }

@supports not (position: sticky) {
	.pd-cartbar { position: absolute; bottom: 12px; }
}
.pd-cartbar__info { display: flex; flex-direction: column; gap: 2px; }
.pd-cartbar__info strong { font-size: 13px; font-weight: 800; }
.pd-cartbar__info span { font-size: 11.5px; opacity: .82; }
.pd-cartbar__btn {
	background: var(--pd-on-primary);
	color: var(--pd-primary);
	border-radius: 13px;
	padding: 11px 22px;
	font-size: 13.5px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .15s ease;
}
.pd-cartbar__btn:active { transform: scale(.96); }

/* ═══════════ کاشی برجسته منو ═══════════ */
.pd-tile--wide { grid-column: 1 / -1; }
.pd-tile--accent {
	background:
		radial-gradient(130% 160% at 0% 0%, color-mix(in srgb, var(--pd-secondary) 24%, transparent), transparent 62%),
		var(--pd-surface);
	border-color: color-mix(in srgb, var(--pd-secondary) 40%, var(--pd-line));
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.pd-tile--accent { background: var(--pd-surface); }
}
.pd-tile--accent .pd-tile__icon { font-size: 27px; color: var(--pd-secondary); }
.pd-tile--accent::after { background: var(--pd-secondary); }

/* ═══════════ دکمه راه‌حل کنار پیام خطا ═══════════ */
.pd-alert__actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.pd-alert__btn {
	display: inline-flex; align-items: center;
	background: var(--pd-primary); color: var(--pd-on-primary);
	border: 0; border-radius: 11px; padding: 8px 16px;
	font-size: 12px; font-weight: 800; font-family: inherit;
	cursor: pointer; text-decoration: none;
	transition: transform .15s ease;
}
.pd-alert__btn:hover { color: var(--pd-on-primary); }
.pd-alert__btn:active { transform: scale(.96); }
.pd-alert__btn + .pd-alert__btn { background: var(--pd-surface-2); color: var(--pd-text); }

.pd-notice__actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.pd-btn-sm--solid {
	background: var(--pd-primary); color: var(--pd-on-primary);
	text-decoration: none; display: inline-flex; align-items: center;
}
.pd-btn-sm--solid:hover { color: var(--pd-on-primary); }

/* ═══════════ اسکنر QR ═══════════ */
.pd-scanner { overflow: hidden;
	position: relative; border-radius: 18px; overflow: hidden;
	background: #000; min-height: 240px;
	/* نسبت ثابت تا ویدئوی دوربین کادر را نکشد و بیرون نزند */
	aspect-ratio: 3 / 4; max-height: 58vh; margin: 0 auto; width: 100%;
}
.pd-scanner__video { width: 100%; height: 100%; display: block; object-fit: cover; }
.pd-scanner__frame {
	/* مرکزچینی: با left:50% باید ‎-50%‎ جابه‌جا شود نه ‎+50%‎؛
	   نسخه قبلی کادر را از مرکز به بیرون هل می‌داد. */
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(62%, 62vw);
	aspect-ratio: 1;
	max-width: 300px;
	border: 3px solid var(--pd-primary);
	border-radius: 20px;
	box-shadow: 0 0 0 100vmax rgba(0,0,0,.42);
	pointer-events: none;
}
.pd-scanner__hint {
	background: var(--pd-surface); border-radius: 18px;
	padding: 26px 20px; text-align: center; min-height: 240px; height: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.pd-scanner__icon { font-size: 34px; margin-bottom: 6px; }
.pd-scanner__hint p { font-size: 13px; margin: 0; line-height: 2; }
.pd-scanner__hint .pd-btn { max-width: 240px; }

.pd-scanner__status {
	font-size: 10.5px; color: var(--pd-dim); text-align: center;
	margin: 8px 0 0; direction: ltr; font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════
 * استایل «پردیس سلمان» — بر پایه راهنمای برند
 *
 * نسبت‌های راهنما:
 *   ۷۰٪ رنگ‌های اصلی → مریمی a9c6a9 (۴۰٪)، هلویی f7ad79 (۲۰٪)، سربی 4b5c5d (۱۰٪)
 *   ۳۰٪ رنگ‌های فرعی → سفید (۱۵٪)، قرمز ea4f3d (۱۰٪)، آبی 88c1dc (۵٪)
 *
 * بر همین اساس سطح غالب سفید است، مریمی نقش لهجه اصلی را دارد،
 * هلویی برای تأکید گرم، سربی برای متن و سرفصل، قرمز فقط برای هشدار
 * و آبی فقط برای اطلاع‌رسانی — همان سهم کمی که راهنما تعیین کرده.
 * ═══════════════════════════════════════════════════════════ */
.pd-app[data-style="salman"] {
	--pd-sage: #a9c6a9;
	--pd-peach: #f7ad79;
	--pd-slate: #4b5c5d;
	--pd-sky: #88c1dc;
	--pd-brick: #ea4f3d;

	--pd-primary: #a9c6a9;
	--pd-secondary: #f7ad79;
	--pd-on-primary: #23302a;
	--pd-on-secondary: #3a2416;

	--pd-bg: #f7f9f7;
	--pd-surface: #ffffff;
	--pd-surface-2: #eef3ee;
	--pd-line: rgba(75, 92, 93, .16);
	--pd-text: #2c3a38;
	--pd-dim: #63736e;
	--pd-ok: #6ba97f;
	--pd-err: #ea4f3d;
	--pd-accent: #ea4f3d;
	--pd-info: #88c1dc;

	--pd-radius: 22px;
	--pd-shadow: 0 8px 26px rgba(75, 92, 93, .12);

	background: var(--pd-bg);
	color: var(--pd-text);
}

/* حالت تیره همین استایل: سربی برند پایه سطوح می‌شود */
.pd-app[data-style="salman"][data-scheme="dark"] {
	--pd-bg: #232d2e;
	--pd-surface: #2c3839;
	--pd-surface-2: #374445;
	--pd-line: rgba(169, 198, 169, .18);
	--pd-text: #eef3ee;
	--pd-dim: #a3b3ad;
	--pd-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

/* سربرگ: نوار سربی برند، همان ۱۰٪ سهمش */
.pd-app[data-style="salman"] .pd-header {
	background: #4b5c5d;
	color: #fff;
	border-radius: var(--pd-radius) var(--pd-radius) 0 0;
	padding: 18px;
}
.pd-app[data-style="salman"] .pd-header::after { display: none; }
.pd-app[data-style="salman"] .pd-header .pd-btn-sm { background: rgba(255, 255, 255, .16); color: #fff; }

/* سرفصل بخش‌ها با خط مریمی */
.pd-app[data-style="salman"] .pd-section__title { color: #4b5c5d; }
.pd-app[data-style="salman"][data-scheme="dark"] .pd-section__title { color: #a9c6a9; }
.pd-app[data-style="salman"] .pd-section__title::before {
	width: 4px; height: 17px; background: #a9c6a9;
}

/* کارت امتیاز: گرادیان مریمی → هلویی، همان نسبت ۴۰/۲۰ */
.pd-app[data-style="salman"] .pd-hero-card {
	background: linear-gradient(135deg, #a9c6a9 0%, #c2d6bd 55%, #f7ad79 100%);
	color: #23302a;
	border: 0;
}
.pd-app[data-style="salman"] .pd-hero-card__label,
.pd-app[data-style="salman"] .pd-hero-card__meta { color: rgba(35, 48, 42, .72); }

/* کاشی‌ها: سفید با لهجه مریمی */
.pd-app[data-style="salman"] .pd-tile {
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	box-shadow: 0 2px 8px rgba(75, 92, 93, .06);
}
.pd-app[data-style="salman"] .pd-tile::after { background: #a9c6a9; opacity: .14; }
.pd-app[data-style="salman"] .pd-tile__icon { color: #4b5c5d; }
.pd-app[data-style="salman"] .pd-tile:hover { border-color: #a9c6a9; }

/* کاشی برجسته منو: هلویی، سهم ۲۰٪ */
.pd-app[data-style="salman"] .pd-tile--accent {
	background: linear-gradient(135deg, #fde6d2, var(--pd-surface) 70%);
	border-color: rgba(247, 173, 121, .5);
}
.pd-app[data-style="salman"] .pd-tile--accent .pd-tile__icon { color: #d98f52; }

/* دکمه اصلی: مریمی با متن سربی تیره */
.pd-app[data-style="salman"] .pd-btn--primary {
	background: #a9c6a9;
	color: #23302a;
	box-shadow: 0 5px 16px rgba(169, 198, 169, .55);
}
.pd-app[data-style="salman"] .pd-btn--ghost {
	background: var(--pd-surface-2);
	color: #4b5c5d;
	border: 1px solid var(--pd-line);
}
.pd-app[data-style="salman"][data-scheme="dark"] .pd-btn--ghost { color: var(--pd-text); }

/* منوی شناور: سفید با آیتم فعال مریمی */
.pd-app[data-style="salman"] .pd-nav {
	background: rgba(255, 255, 255, .93);
	border-color: var(--pd-line);
	box-shadow: 0 8px 28px rgba(75, 92, 93, .16);
}
.pd-app[data-style="salman"][data-scheme="dark"] .pd-nav { background: rgba(44, 56, 57, .93); }
.pd-app[data-style="salman"] .pd-nav__item { color: var(--pd-dim); }
.pd-app[data-style="salman"] .pd-nav__item.is-active { background: #a9c6a9; color: #23302a; }
.pd-app[data-style="salman"] .pd-nav__count { background: #ea4f3d; color: #fff; }

/* چیپ فعال */
.pd-app[data-style="salman"] .pd-chip.is-active {
	background: #a9c6a9; border-color: #a9c6a9; color: #23302a;
}

/* نوار سبد: هلویی تا از دکمه‌های مریمی متمایز بماند */
.pd-app[data-style="salman"] .pd-cartbar {
	background: #f7ad79;
	color: #3a2416;
	box-shadow: 0 8px 24px rgba(247, 173, 121, .5);
}
.pd-app[data-style="salman"] .pd-cartbar__btn { background: #3a2416; color: #f7ad79; }

/* اعلان‌ها: قرمز فقط برای خطا، آبی فقط برای اطلاع — سهم ۱۰٪ و ۵٪ */
.pd-app[data-style="salman"] .pd-alert {
	background: rgba(234, 79, 61, .09);
	border-inline-start-color: #ea4f3d;
	color: var(--pd-text);
}
.pd-app[data-style="salman"] .pd-alert.is-success {
	background: rgba(169, 198, 169, .24);
	border-inline-start-color: #a9c6a9;
}
.pd-app[data-style="salman"] .pd-alert__btn { background: #a9c6a9; color: #23302a; }
.pd-app[data-style="salman"] .pd-alert__btn + .pd-alert__btn { background: var(--pd-surface-2); color: #4b5c5d; }
.pd-app[data-style="salman"] .pd-notice { border-inline-start-color: #88c1dc; }

/* ستاره امتیاز: هلویی */
.pd-app[data-style="salman"] .pd-stars__fg,
.pd-app[data-style="salman"] .pd-starpick__btn.is-on svg { fill: #f7ad79; }
.pd-app[data-style="salman"] .pd-rating__num { color: #cf8544; }

/* ورودی‌ها */
.pd-app[data-style="salman"] .pd-input { background: var(--pd-surface); border-color: var(--pd-line); }
.pd-app[data-style="salman"] .pd-input:focus {
	border-color: #a9c6a9;
	box-shadow: 0 0 0 3px rgba(169, 198, 169, .3);
}
.pd-app[data-style="salman"] .pd-label { color: #4b5c5d; }
.pd-app[data-style="salman"][data-scheme="dark"] .pd-label { color: var(--pd-dim); }

/* کادر اسکنر با رنگ برند */
.pd-app[data-style="salman"] .pd-scanner__frame { border-color: #a9c6a9; }

/* دکمه‌های کوچک */
.pd-app[data-style="salman"] .pd-btn-sm--solid { background: #a9c6a9; color: #23302a; }
.pd-app[data-style="salman"] .pd-btn-sm--danger { background: rgba(234, 79, 61, .13); color: #ea4f3d; }


/* ═══════════ فیلتر دسته‌های منو ═══════════ */
.pd-catnav__item {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--pd-surface);
	border: 1.5px solid var(--pd-line);
	border-radius: 999px;
	padding: 9px 16px;
	color: var(--pd-dim);
	font-size: 12.5px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: all .17s ease;
	-webkit-tap-highlight-color: transparent;
}
.pd-catnav__item:hover { border-color: var(--pd-primary); color: var(--pd-text); }
.pd-catnav__item:active { transform: scale(.96); }
.pd-catnav__item.is-active {
	background: var(--pd-primary);
	border-color: var(--pd-primary);
	color: var(--pd-on-primary);
}

.pd-catnav__count {
	font-size: 10.5px;
	font-weight: 800;
	background: var(--pd-surface-2);
	color: var(--pd-dim);
	border-radius: 999px;
	padding: 1px 7px;
	min-width: 20px;
	text-align: center;
}
.pd-catnav__item.is-active .pd-catnav__count {
	background: rgba(0, 0, 0, .14);
	color: inherit;
}

.pd-catempty {
	text-align: center;
	padding: 34px 20px;
	color: var(--pd-dim);
	font-size: 13px;
	background: var(--pd-surface);
	border: 1px dashed var(--pd-line);
	border-radius: 16px;
	margin-bottom: 18px;
}


/* ═══════════ بنر تبلیغاتی ═══════════ */
.pd-banner {
	display: block;
	position: relative;
	border-radius: var(--pd-radius);
	overflow: hidden;
	margin-bottom: 18px;
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	text-decoration: none;
	color: var(--pd-text);
	animation: pd-rise .34s ease both;
}
.pd-banner__img { width: 100%; height: auto; display: block; }

.pd-banner__body {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 16px 18px 14px;
	/* گرادیان تیره تا متن روی هر تصویری خوانا بماند. */
	background: linear-gradient(to top, rgba(12, 18, 16, .88), rgba(12, 18, 16, .55) 55%, transparent);
	color: #fff;
}
.pd-banner__title { display: block; font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.pd-banner__text { display: block; font-size: 12px; line-height: 1.9; opacity: .92; }

/* بنر بدون تصویر: کارت متنی با رنگ برند */
.pd-banner--text { border: 0; }
.pd-banner--text .pd-banner__body {
	position: static;
	background: linear-gradient(135deg, var(--pd-primary), var(--pd-secondary));
	color: var(--pd-on-primary);
	padding: 20px;
}
.pd-banner--text .pd-banner__text { opacity: .85; }

.pd-banner--link { transition: transform .2s ease, box-shadow .2s ease; }
.pd-banner--link:hover { transform: translateY(-2px); box-shadow: var(--pd-shadow); }
.pd-banner--link:active { transform: scale(.99); }
.pd-banner--link::after {
	content: "";
	position: absolute;
	inset-inline-end: 14px;
	top: 14px;
	width: 26px; height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .22);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.pd-banner--text.pd-banner--link::after { background: rgba(0, 0, 0, .12); }

/* حالت لنگرشده: وقتی قالب سایت مرجع fixed را شکسته باشد */
.pd-cartbar.is-anchored {
	position: sticky;
	bottom: calc(var(--pd-nav-h) + 24px);
	inset-inline: auto;
	width: auto;
	margin: 18px 0 0;
}

/* ═══════════ دعوت به بازی در زمان انتظار ═══════════ */
.pd-playcta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	padding: 13px 15px;
	border-radius: 15px;
	background: linear-gradient(120deg, color-mix(in srgb, var(--pd-primary) 24%, transparent), color-mix(in srgb, var(--pd-secondary) 18%, transparent));
	border: 1px solid var(--pd-line);
	text-decoration: none;
	color: var(--pd-text);
	transition: transform .18s ease, border-color .18s ease;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.pd-playcta { background: var(--pd-surface-2); }
}
.pd-playcta:hover { transform: translateY(-2px); border-color: var(--pd-primary); }
.pd-playcta:active { transform: scale(.985); }
.pd-playcta__icon { font-size: 22px; color: var(--pd-primary); line-height: 1; flex-shrink: 0; }
.pd-playcta__body { flex: 1; min-width: 0; }
.pd-playcta__body strong { display: block; font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.pd-playcta__body span { font-size: 11.5px; color: var(--pd-dim); line-height: 1.8; }
.pd-playcta__go { font-size: 17px; color: var(--pd-primary); flex-shrink: 0; }

/* حالت قفل بازی */
.pd-locked {
	text-align: center;
	padding: 34px 22px;
	background: var(--pd-surface);
	border: 1px dashed var(--pd-line);
	border-radius: var(--pd-radius);
}
.pd-locked__icon { font-size: 34px; display: block; margin-bottom: 12px; }
.pd-locked strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.pd-locked p { font-size: 12.5px; color: var(--pd-dim); line-height: 2; margin: 0 0 18px; }
.pd-locked .pd-btn { max-width: 260px; margin: 0 auto; }

.pd-notice--play { border-inline-start-color: var(--pd-primary); }

/* کاشی خانه بر اساس در دسترس بودن بازی */
.pd-tile--live::after { opacity: .2; }
.pd-tile--muted { opacity: .72; }
.pd-tile--muted .pd-tile__icon { color: var(--pd-dim); }

/* ═══════════ بهبود بخش بازی ═══════════ */
.pd-gameboard__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
	min-height: 34px;
}

.pd-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	border: 1px solid var(--pd-line);
	background: var(--pd-surface);
	color: var(--pd-dim);
	cursor: pointer;
	padding: 0;
	transition: all .16s ease;
	flex-shrink: 0;
}
.pd-iconbtn:hover { color: var(--pd-text); border-color: var(--pd-primary); }
.pd-iconbtn:active { transform: scale(.93); }
.pd-iconbtn svg { width: 18px; height: 18px; }
.pd-iconbtn .pd-icon-shrink { display: none; }
.pd-iconbtn.is-on { background: var(--pd-primary); border-color: var(--pd-primary); color: var(--pd-on-primary); }
.pd-iconbtn.is-on .pd-icon-expand { display: none; }
.pd-iconbtn.is-on .pd-icon-shrink { display: block; }

/* ---------- حالت تمام‌صفحه ---------- */
body.pd-fs-lock { overflow: hidden; }

.pd-gameboard.is-fullscreen {
	position: fixed;
	inset: 0;
	z-index: 95;
	/* dvh ارتفاع واقعی را بعد از جمع‌شدن نوار آدرس مرورگر می‌دهد. */
	height: 100dvh;
	width: 100vw;
	background: var(--pd-bg);
	color: var(--pd-text);
	padding: calc(58px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	overflow-y: auto;
	animation: pd-fade .22s ease both;
	/* متغیرها ارثی نیستند وقتی عنصر از پنل بیرون می‌آید، پس تکرار می‌شوند. */
	--pd-nav-h: 0px;
}
@supports not (height: 100dvh) {
	.pd-gameboard.is-fullscreen { height: 100vh; }
}
.pd-gameboard.is-fullscreen .pd-gameboard__head {
	position: absolute;
	inset-inline: 18px;
	top: max(16px, env(safe-area-inset-top));
	margin: 0;
}
/* تخته در تمام‌صفحه بزرگ‌تر می‌شود ولی از ارتفاع پنجره بیرون نمی‌زند. */
/* تخته بزرگ‌ترین مربعی است که در فضای باقی‌مانده جا می‌شود. */
.pd-gameboard.is-fullscreen .pd-ttt {
	width: min(88vw, 62dvh, 460px);
	max-width: none;
	aspect-ratio: 1;
	gap: 12px;
	margin: 0 auto;
}
@supports not (height: 100dvh) {
	.pd-gameboard.is-fullscreen .pd-ttt { width: min(88vw, 62vh, 460px); }
}
.pd-gameboard.is-fullscreen .pd-ttt__cell { font-size: clamp(34px, 13vw, 76px); }
.pd-gameboard.is-fullscreen .pd-gameover { max-width: 420px; margin-inline: auto; width: 100%; }

/* در حالت افقی گوشی، تخته کوچک‌تر تا کامل دیده شود. */
@media screen and (orientation: landscape) and (max-height: 560px) {
	.pd-gameboard.is-fullscreen .pd-ttt { width: min(52dvh, 300px); gap: 7px; }
	.pd-gameboard.is-fullscreen .pd-ttt__cell { font-size: clamp(22px, 7dvh, 44px); }
	.pd-gameboard.is-fullscreen { padding-top: calc(48px + env(safe-area-inset-top)); }
}

/* ---------- تخته ---------- */
.pd-ttt__cell:focus-visible { outline: 2px solid var(--pd-primary); outline-offset: 2px; }
.pd-gameboard__turn { font-size: 12.5px; font-weight: 700; color: var(--pd-primary); }

.pd-back {
	background: var(--pd-surface-2);
	border: 0;
	border-radius: 11px;
	padding: 8px 15px;
	color: var(--pd-dim);
	font-size: 12.5px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: color .16s ease;
}
.pd-back:hover { color: var(--pd-text); }

/* ═══════════ دروازه انتخاب میز ═══════════ */
.pd-gate {
	text-align: center;
	padding: 30px 22px 24px;
	background:
		radial-gradient(120% 130% at 50% 0%, color-mix(in srgb, var(--pd-primary) 20%, transparent), transparent 62%),
		var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
	margin-bottom: 18px;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.pd-gate { background: var(--pd-surface); }
}
.pd-gate__icon { font-size: 40px; display: block; margin-bottom: 12px; line-height: 1; }
.pd-gate__title { display: block; font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.pd-gate__text { font-size: 12.5px; color: var(--pd-dim); line-height: 2.1; margin: 0 auto 18px; max-width: 340px; }
.pd-gate .pd-btn { max-width: 280px; margin: 0 auto; }

.pd-tablepick { margin-bottom: 6px; }
.pd-tablepick .pd-locblock + .pd-locblock { margin-top: 14px; }
.pd-locblock__title { font-size: 12.5px; font-weight: 700; color: var(--pd-dim); margin: 0 0 8px; }
.pd-chip.is-disabled { opacity: .4; pointer-events: none; text-decoration: line-through; }

.pd-hint--center a { color: var(--pd-primary); text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════ دروازه دریافت نام ═══════════ */
.pd-namegate__fields { text-align: right; max-width: 340px; margin: 0 auto 18px; }
.pd-namegate__fields .pd-label:first-child { margin-top: 0; }
[data-pd-namegate] .pd-btn { max-width: 340px; }
[data-pd-namegate] .pd-alert { max-width: 340px; margin-inline: auto; text-align: right; }

/* ═══════════ فهرست کوپن‌های مشتری ═══════════ */
.pd-coupons {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 0 8px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.pd-coupons::-webkit-scrollbar { display: none; }

.pd-coupon {
	position: relative;
	flex: 0 0 auto;
	min-width: 132px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 11px 14px;
	border-radius: 14px;
	border: 1.5px dashed var(--pd-line);
	background: var(--pd-surface);
	font-family: inherit;
	text-align: right;
	cursor: pointer;
	transition: all .17s ease;
	-webkit-tap-highlight-color: transparent;
}
.pd-coupon:hover { border-color: var(--pd-primary); transform: translateY(-2px); }
.pd-coupon:active { transform: scale(.97); }

.pd-coupon__value { font-size: 13px; font-weight: 800; color: var(--pd-text); }
.pd-coupon__code {
	font-size: 10.5px;
	font-weight: 700;
	color: var(--pd-dim);
	letter-spacing: .5px;
	font-variant-numeric: tabular-nums;
}
.pd-coupon__note, .pd-coupon__exp { font-size: 10px; color: var(--pd-dim); }
.pd-coupon__exp { opacity: .8; }

.pd-coupon.is-active {
	border-style: solid;
	border-color: var(--pd-primary);
	background: color-mix(in srgb, var(--pd-primary) 16%, var(--pd-surface));
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.pd-coupon.is-active { background: var(--pd-surface-2); }
}
.pd-coupon.is-active::after {
	content: "✓";
	position: absolute;
	top: 7px;
	inset-inline-start: 9px;
	font-size: 11px;
	font-weight: 800;
	color: var(--pd-primary);
}

/* کوپنی که حداقل خریدش برآورده نشده — قابل کلیک می‌ماند تا دلیل را ببیند. */
.pd-coupon.is-locked { opacity: .5; }
.pd-coupon.is-locked .pd-coupon__note { color: var(--pd-err); font-weight: 700; }

.pd-discount.is-applied .pd-coupon:not(.is-active) { opacity: .45; }

/* ═══════════ نمایش انتخاب‌ها به گارسون ═══════════ */
.pd-showcase {
	background: var(--pd-surface);
	border: 2px solid var(--pd-primary);
	border-radius: var(--pd-radius);
	padding: 20px 18px;
}

.pd-showcase__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 2px dashed var(--pd-line);
}
.pd-showcase__who { display: block; font-size: 17px; font-weight: 800; }
.pd-showcase__table { display: block; font-size: 13px; color: var(--pd-primary); font-weight: 700; margin-top: 3px; }
.pd-showcase__time { font-size: 13px; color: var(--pd-dim); font-variant-numeric: tabular-nums; }

.pd-showcase__list { list-style: none; margin: 0; padding: 0; }
.pd-showcase__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 13px 0;
	border-bottom: 1px solid var(--pd-line);
}
.pd-showcase__item:last-child { border-bottom: 0; }

/* درشت و پرکنتراست، چون از فاصله و زاویه خوانده می‌شود. */
.pd-showcase__name { font-size: 17px; font-weight: 700; line-height: 1.6; }
.pd-showcase__qty {
	font-size: 20px;
	font-weight: 900;
	color: var(--pd-on-primary);
	background: var(--pd-primary);
	border-radius: 11px;
	min-width: 44px;
	text-align: center;
	padding: 3px 10px;
	flex-shrink: 0;
}
.pd-showcase__empty { text-align: center; color: var(--pd-dim); padding: 30px 0; font-size: 14px; }

.pd-showcase__note {
	margin-top: 14px;
	padding: 12px 14px;
	background: var(--pd-surface-2);
	border-radius: 12px;
	font-size: 14.5px;
	line-height: 1.9;
}
.pd-showcase__notelabel { font-weight: 800; color: var(--pd-dim); margin-inline-end: 5px; }

.pd-showcase__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 2px dashed var(--pd-line);
	font-size: 15px;
}
.pd-showcase__foot strong { font-size: 18px; font-weight: 900; }
.pd-showcase__hint { font-size: 11.5px; color: var(--pd-dim); line-height: 1.9; margin: 12px 0 4px; text-align: center; }

/* ═══════════ صندوق پیام مشتری ═══════════ */
.pd-msglist { list-style: none; margin: 0; padding: 0; }
.pd-app.pd-app.pd-app li.pd-msg,
.pd-app.pd-app.pd-app .pd-msg {
	position: relative;
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: 16px;
	padding: 15px 16px;
	margin-bottom: 10px;
	transition: border-color .18s ease;
}
.pd-msg.is-unread {
	border-inline-start: 3px solid var(--pd-primary);
	cursor: pointer;
}
.pd-msg.is-unread:hover { border-color: var(--pd-primary); }
.pd-msg__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.pd-msg__title { font-size: 14px; font-weight: 800; }
.pd-msg__date { font-size: 10.5px; color: var(--pd-dim); flex-shrink: 0; }
.pd-msg__body { font-size: 13px; line-height: 2.1; margin: 0; color: var(--pd-text); }
.pd-msg__badge {
	display: inline-block;
	margin-top: 9px;
	font-size: 10px;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--pd-primary);
	color: var(--pd-on-primary);
}

.pd-sheet__badge {
	position: absolute;
	top: 8px;
	inset-inline-end: 10px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--pd-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pd-sheet__item { position: relative; }




/* ═══════════ زنگوله پیام‌ها در سربرگ ═══════════ */
.pd-header__tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/*
 * زنگوله مرجع موقعیت نیست.
 *
 * سربرگ مرجع است تا پنل به لبه‌های کادر پنل مشتری لنگر شود. اگر پنل از
 * خود زنگوله باز شود، چون در راست‌چین زنگوله نزدیک لبه چپ است، در هر
 * جهتی روی گوشی باریک از صفحه بیرون می‌زند.
 *
 * سربرگ خودش از قبل position: relative دارد، پس اینجا تکرار نمی‌شود؛
 * تکرارش قانون sticky بالادست را بازنویسی می‌کرد.
 */
.pd-bell { position: static; }

.pd-bell__btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	border: 1px solid var(--pd-line);
	background: var(--pd-surface);
	color: var(--pd-text);
	cursor: pointer;
	padding: 0;
	transition: border-color .16s ease, background .16s ease;
}
.pd-bell__btn:hover { border-color: var(--pd-primary); }
.pd-bell__btn:active { transform: scale(.94); }
.pd-bell__btn svg { width: 19px; height: 19px; }

/* نشان تعداد با ضربان — تا زمانی که کاربر بازش نکرده. */
.pd-bell__count {
	position: absolute;
	top: -6px;
	inset-inline-end: -5px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--pd-accent);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 2px var(--pd-surface);
	animation: pd-bell-pulse 1.9s ease-in-out infinite;
}
@keyframes pd-bell-pulse {
	0%, 100% { transform: scale(1); }
	14% { transform: scale(1.22); }
	28% { transform: scale(1); }
	42% { transform: scale(1.16); }
	56% { transform: scale(1); }
}

/* بعد از باز کردن، ضربان می‌ایستد؛ کارش را انجام داده. */
.pd-bell.is-seen .pd-bell__count { animation: none; }

@media (prefers-reduced-motion: reduce) {
	.pd-bell__count { animation: none; }
}

/* ---------- پنل بازشو ---------- */
/*
 * پنل به کادر پنل مشتری لنگر می‌شود، نه به خود زنگوله.
 *
 * دلیل: زنگوله در راست‌چین نزدیک لبه چپ است. اگر پنل از خود زنگوله باز
 * شود، در هر جهتی که برود روی گوشی‌های باریک از صفحه بیرون می‌زند —
 * همان چیزی که در نسخه قبل دیده شد. با لنگر به کادر اپ و حاشیه ثابت،
 * جای پنل دیگر به موقعیت زنگوله وابسته نیست.
 */
.pd-bell__panel {
	position: absolute;
	top: calc(100% - 4px);
	/* حاشیه یکسان از هر دو لبه سربرگ، سپس عرض محدود و چسبیده به سمت زنگوله. */
	inset-inline: 12px auto;
	z-index: 60;
	width: min(300px, calc(100vw - 24px));
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: 16px;
	box-shadow: 0 14px 36px rgba(0, 0, 0, .2);
	padding: 6px;
	animation: pd-bell-in .2s ease both;
}
@keyframes pd-bell-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

.pd-bell__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 10px 10px;
	border-bottom: 1px solid var(--pd-line);
	margin-bottom: 4px;
}
.pd-bell__head strong { font-size: 12.5px; font-weight: 800; }
.pd-bell__all {
	background: none; border: 0; padding: 0;
	color: var(--pd-primary); font-size: 11px; font-weight: 700;
	font-family: inherit; cursor: pointer; text-decoration: underline;
	text-underline-offset: 3px;
}

/* ارتفاع محدود تا روی گوشی کوتاه، پنل کل صفحه را نگیرد. */
.pd-bell__list { list-style: none; margin: 0; padding: 0; max-height: min(264px, 42vh); overflow-y: auto; }

.pd-bell__item {
	display: flex;
	align-items: stretch;
	gap: 4px;
	border-radius: 11px;
	transition: opacity .24s ease, transform .24s ease, height .24s ease, margin .24s ease;
	overflow: hidden;
}
.pd-bell__item:hover { background: var(--pd-surface-2); }
.pd-bell__item.is-going { pointer-events: none; }
.pd-bell__item.is-removed { opacity: 0; transform: translateX(-14px); height: 0; margin: 0; }

.pd-bell__link {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 11px;
	text-decoration: none;
	color: var(--pd-text);
}
.pd-bell__title {
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.6;
	/* عنوان بلند نباید پنل را بکشد. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pd-bell__date { font-size: 10px; color: var(--pd-dim); }

.pd-bell__mark {
	flex-shrink: 0;
	width: 34px;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--pd-dim);
	font-size: 15px;
	cursor: pointer;
	font-family: inherit;
}
.pd-bell__mark:hover { background: var(--pd-primary); color: var(--pd-on-primary); }

.pd-bell__empty { font-size: 12px; color: var(--pd-dim); text-align: center; padding: 22px 10px; margin: 0; }

.pd-bell__more {
	display: block;
	text-align: center;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--pd-primary);
	text-decoration: none;
	padding: 10px 0 8px;
	border-top: 1px solid var(--pd-line);
	margin-top: 4px;
}
.pd-bell__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* در استایل برند، سربرگ تیره است پس زنگوله باید روشن دیده شود. */
.pd-app[data-style="salman"] .pd-bell__btn {
	background: rgba(255, 255, 255, .16);
	border-color: rgba(255, 255, 255, .2);
	color: #fff;
}
.pd-app[data-style="salman"] .pd-bell__btn:hover { background: rgba(255, 255, 255, .26); }
.pd-app[data-style="salman"] .pd-bell__count { box-shadow: 0 0 0 2px var(--pd-slate); }
.pd-app[data-style="salman"] .pd-bell__panel { color: var(--pd-text); }

/* پیام باز شده از زنگوله */
.pd-msg.is-focus {
	border-color: var(--pd-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pd-primary) 22%, transparent);
	animation: pd-msg-focus 1.4s ease 1;
}
@supports not (box-shadow: 0 0 0 color-mix(in srgb, red 50%, blue)) {
	.pd-msg.is-focus { box-shadow: 0 0 0 3px rgba(169, 198, 169, .22); }
}
@keyframes pd-msg-focus {
	0%, 100% { transform: none; }
	18% { transform: scale(1.015); }
}

/* ═══════════ کارت کد تخفیف (بلیت) ═══════════ */
.pd-tickets { display: grid; gap: 11px; }

.pd-ticket {
	position: relative;
	background: var(--pd-surface);
	border: 1.5px solid var(--pd-line);
	border-radius: 18px;
	overflow: hidden;
	transition: border-color .18s ease, transform .18s ease;
}
.pd-ticket:hover { border-color: var(--pd-primary); transform: translateY(-2px); }
.pd-ticket.is-soon { border-color: var(--pd-accent); }

.pd-ticket__value {
	padding: 17px 18px 15px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--pd-primary) 20%, transparent), transparent 68%);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.pd-ticket__value { background: var(--pd-surface-2); }
}
.pd-ticket__value strong { display: block; font-size: 17px; font-weight: 900; letter-spacing: -.2px; }
.pd-ticket__min { display: block; font-size: 11px; color: var(--pd-dim); margin-top: 4px; }

/* خط برش با دو نیم‌دایره کناری — حس بلیت می‌دهد. */
.pd-ticket__cut {
	position: relative;
	height: 0;
	border-top: 2px dashed var(--pd-line);
	margin: 0 14px;
}
.pd-ticket__cut::before,
.pd-ticket__cut::after {
	content: "";
	position: absolute;
	top: -9px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--pd-bg);
	border: 1.5px solid var(--pd-line);
}
.pd-ticket__cut::before { inset-inline-start: -23px; }
.pd-ticket__cut::after { inset-inline-end: -23px; }

.pd-ticket__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 18px 16px;
}

.pd-ticket__code {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--pd-surface-2);
	border: 1px dashed var(--pd-line);
	border-radius: 11px;
	padding: 9px 13px;
	cursor: pointer;
	font-family: inherit;
	transition: all .16s ease;
	min-width: 0;
}
.pd-ticket__code:hover { border-color: var(--pd-primary); background: var(--pd-surface); }
.pd-ticket__code:active { transform: scale(.97); }

.pd-ticket__codetext {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 1.4px;
	color: var(--pd-text);
	font-variant-numeric: tabular-nums;
}
.pd-ticket__copy { font-size: 10.5px; font-weight: 700; color: var(--pd-primary); flex-shrink: 0; }

.pd-ticket__code.is-done { border-style: solid; border-color: var(--pd-ok); }
.pd-ticket__code.is-done .pd-ticket__copy { color: var(--pd-ok); }

.pd-ticket__expiry { font-size: 10.5px; color: var(--pd-dim); flex-shrink: 0; }
.pd-ticket.is-soon .pd-ticket__expiry { color: var(--pd-accent); font-weight: 700; }

/* ═══════════ ورود دستی امتیاز ═══════════ */
.pd-custom {
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: 15px;
	padding: 13px 15px;
	margin-top: 12px;
}
.pd-custom__label { display: block; font-size: 11.5px; color: var(--pd-dim); margin-bottom: 9px; }
.pd-custom__row { display: flex; align-items: center; gap: 9px; }

.pd-custom__input {
	/*
	 * عرض نسبی به‌جای عدد ثابت.
	 *
	 * با عرض ثابت روی صفحه‌های باریک جا کم می‌آمد و چون واحد کنارش
	 * flex-shrink پیش‌فرض داشت، خودش جمع می‌شد و متن «امتیاز» از کادر
	 * بیرون می‌زد. حالا ورودی ۸۰٪ می‌گیرد و واحد سهم خودش را دارد.
	 */
	flex: 0 1 80%;
	min-width: 0;
	max-width: 80%;
	background: var(--pd-surface-2);
	border: 1.5px solid var(--pd-line);
	border-radius: 11px;
	padding: 10px 12px;
	color: var(--pd-text);
	font-size: 15px;
	font-weight: 800;
	font-family: inherit;
	text-align: center;
	font-variant-numeric: tabular-nums;
	transition: border-color .16s ease;
	-moz-appearance: textfield;
}
.pd-custom__input::-webkit-outer-spin-button,
.pd-custom__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-custom__input:focus { outline: none; border-color: var(--pd-primary); background: var(--pd-surface); }
.pd-custom__input.is-invalid { border-color: var(--pd-accent); }

/* واحد نباید جمع شود؛ فضای خودش را نگه می‌دارد. */
.pd-custom__unit {
	flex: 0 0 auto;
	font-size: 12.5px;
	color: var(--pd-dim);
	white-space: nowrap;
}

/*
 * نتیجه روی سطر خودش است، نه کنار ورودی.
 *
 * قبلاً کنار ورودی بود و با مبلغ بلند از کادر بیرون می‌زد. سطر مستقل هم
 * جا دارد هم عدد را برجسته‌تر نشان می‌دهد.
 */
.pd-custom__result {
	margin-top: 10px;
	padding: 10px 13px;
	border-radius: 11px;
	background: color-mix(in srgb, var(--pd-primary) 15%, transparent);
	color: var(--pd-on-primary);
	font-size: 14px;
	font-weight: 800;
	text-align: center;
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .18s ease, color .18s ease;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.pd-custom__result { background: var(--pd-surface-2); color: var(--pd-text); }
}
.pd-custom__result.is-error {
	background: color-mix(in srgb, var(--pd-accent) 13%, transparent);
	color: var(--pd-accent);
	font-size: 12px;
	font-weight: 700;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.pd-custom__result.is-error { background: rgba(234, 79, 61, .13); }
}
.pd-custom__placeholder { font-size: 11.5px; font-weight: 600; color: var(--pd-dim); }

/* راهنمای سقف */
.pd-caphint {
	font-size: 11.5px;
	line-height: 1.95;
	color: var(--pd-dim);
	background: var(--pd-surface-2);
	border-radius: 11px;
	padding: 9px 13px;
	margin: 0 0 12px;
}

.pd-custom__max {
	background: none;
	border: 0;
	padding: 9px 0 0;
	color: var(--pd-primary);
	font-size: 11.5px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* غذایی که از بیرون لینک شده */
.pd-dish.is-target {
	outline: 2px solid var(--pd-primary);
	outline-offset: 3px;
	border-radius: 14px;
	animation: pd-target 1.2s ease 2;
}
@keyframes pd-target {
	0%, 100% { outline-color: var(--pd-primary); }
	50% { outline-color: transparent; }
}

/* ═══════════ یکدست‌سازی فاصله کارت‌ها ═══════════
 *
 * فاصله داخلی کارت‌ها در بخش‌های مختلف پنل به‌مرور متفاوت شده بود (۱۲ تا
 * ۱۷ پیکسل). یک مقیاس مشترک باعث می‌شود چشم هنگام حرکت بین بخش‌ها
 * ناهماهنگی حس نکند.
 */
.pd-app {
	--pd-pad-card: 16px;
	--pd-pad-tight: 13px;
	--pd-gap-card: 12px;
}

/* فهرست‌های کارتی فاصله یکسان بین آیتم‌ها می‌گیرند. */
.pd-menu-list,
.pd-msglist,
.pd-tickets,
.pd-list,
.pd-reviewlist,
.pd-gamelist { display: flex; flex-direction: column; gap: var(--pd-gap-card); }

/* عنوان بخش‌ها کمی هوا بگیرد تا بلوک‌ها از هم جدا دیده شوند. */
.pd-catblock + .pd-catblock { margin-top: 26px; }
.pd-section + .pd-section { margin-top: 22px; }

/*
 * چیپ دسته‌های منو.
 *
 * ناحیه لمس بزرگ‌تر و فاصله بهتر بین نام و شمارنده، تا عدد جزئی از نام
 * دیده نشود.
 */
.pd-app.pd-app .pd-catnav__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 12.5px;
	white-space: nowrap;
}
.pd-app.pd-app .pd-catnav__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .07);
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1;
}
.pd-catnav__item.is-active .pd-catnav__count { background: rgba(255, 255, 255, .32); }

/* سرصفحه دسته: نام و ساعت سرو روی یک سطر با فاصله تضمین‌شده. */
.pd-catblock__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

/* کارت غذای بدون تصویر نباید فضای خالی جا بگذارد. */
.pd-dish:not(:has(.pd-dish__media)) .pd-dish__body { padding-inline-end: 0; }

/* روی صفحه باریک، فاصله کمی جمع‌تر می‌شود تا محتوا جا بگیرد. */
@media (max-width: 380px) {
	.pd-app { --pd-pad-card: 13px; --pd-gap-card: 10px; }

	.pd-app.pd-app.pd-app li.pd-dish,
	.pd-app.pd-app.pd-app .pd-dish { padding: 13px; gap: 11px; }

	.pd-dish__media, .pd-dish__img { width: 72px; height: 72px; }
	.pd-dish__name { font-size: 13.5px; }
	.pd-dish__price strong { font-size: 12.5px; }
}

/* وضعیت ظرفیت رزرو */
.pd-slotstate {
	margin: 12px 0 14px;
	padding: 11px 14px;
	border-radius: 12px;
	font-size: 12.5px;
	font-weight: 700;
	text-align: center;
	background: var(--pd-surface-2);
	color: var(--pd-dim);
}
.pd-slotstate.is-free {
	background: color-mix(in srgb, var(--pd-primary) 18%, transparent);
	color: var(--pd-on-primary);
}
.pd-slotstate.is-full {
	background: color-mix(in srgb, var(--pd-accent) 13%, transparent);
	color: var(--pd-accent);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.pd-slotstate.is-free { background: rgba(169, 198, 169, .2); color: var(--pd-text); }
	.pd-slotstate.is-full { background: rgba(234, 79, 61, .13); }
}

/* سطح سختی بازی */
.pd-gamelevel {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 11px 14px;
	border-radius: 13px;
	background: var(--pd-surface-2);
	margin-bottom: 14px;
}
.pd-gamelevel__badge {
	font-size: 11.5px;
	font-weight: 800;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--pd-primary);
	color: var(--pd-on-primary);
	flex-shrink: 0;
}
.pd-gamelevel--normal .pd-gamelevel__badge { background: var(--pd-secondary); color: var(--pd-on-secondary, #3a2416); }
.pd-gamelevel--hard .pd-gamelevel__badge { background: var(--pd-accent); color: #fff; }
.pd-gamelevel__next { font-size: 11.5px; color: var(--pd-dim); line-height: 1.8; }

/* شرط کد در پیش‌نمایش تبدیل امتیاز */
.pd-custom__result .pd-custom__amount { display: block; }
.pd-custom__result .pd-custom__cond {
	display: block;
	margin-top: 3px;
	font-size: .82em;
	font-weight: 600;
	color: var(--pd-dim);
}

/* ═══════════ پیام پس از ثبت سفارش ═══════════
 * فضای نام جدا (pd-ordermodal)، نه pd-notice: آن نام از قبل کارت اطلاعیه
 * درون‌صفحه‌ای پنل بود و در ۷ نما استفاده می‌شد. نسخه ۳.۱۷.۰ همان نام را
 * برای مودال با position: fixed تعریف کرد و همه آن کارت‌ها تمام‌صفحه شدند.
 *
 * بالاتر از منوی «بیشتر» (۹۰) و نوار پایین؛ روی گوشی از لبه پایین فاصله
 * دارد تا دکمه زیر نوار سیستم نرود.
 */
.pd-app .pd-ordermodal {
	position: fixed;
	inset: 0;
	z-index: 100;
	/* اسکرول روی لایه بیرونی، نه کارت: در WebView قدیمی اسکرول داخلی کارتِ
	   فلکس باعث می‌شد متن نشکند و از کارت بیرون بزند. */
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: calc(20px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
}
.pd-app .pd-ordermodal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(10, 16, 13, .55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.pd-app .pd-ordermodal__card {
	position: relative;
	width: 100%;
	max-width: 380px;
	min-width: 0;
	margin: auto;
	background: var(--pd-surface);
	color: var(--pd-text);
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
	padding: 26px 22px 20px;
	text-align: center;
	box-shadow: var(--pd-shadow);
	animation: pd-ordermodal-in .22s ease-out;
}
.pd-app .pd-ordermodal__icon {
	width: 58px;
	height: 58px;
	margin: 0 auto 10px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--pd-primary) 22%, transparent);
	color: var(--pd-primary);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.pd-app .pd-ordermodal__icon { background: rgba(169, 198, 169, .22); }
}
.pd-app .pd-ordermodal__title { margin: 0 0 14px; font-size: 1.15em; font-weight: 800; line-height: 1.6; }

/* شماره سفارش درشت: مشتری باید بتواند به صندوق‌دار اعلامش کند. */
.pd-app .pd-ordermodal__number {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	min-width: 170px;
	padding: 10px 22px;
	margin-bottom: 14px;
	border-radius: 14px;
	background: var(--pd-surface-2);
	border: 1px dashed var(--pd-line);
}
.pd-app .pd-ordermodal__number span { font-size: .78em; color: var(--pd-dim); font-weight: 700; }
.pd-app .pd-ordermodal__number strong { font-size: 1.7em; font-weight: 900; letter-spacing: 1px; line-height: 1.4; }

.pd-app .pd-ordermodal__text { margin: 0 0 8px; font-size: .95em; line-height: 2.05; white-space: normal; overflow-wrap: break-word; word-wrap: break-word; }
.pd-app .pd-ordermodal__text strong { font-weight: 800; }
.pd-app .pd-ordermodal__total { margin: 0 0 16px; font-size: .88em; font-weight: 700; color: var(--pd-dim); }
.pd-app .pd-ordermodal__ok { width: 100%; min-height: 50px; margin-top: 4px; }

@keyframes pd-ordermodal-in {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.pd-app .pd-ordermodal__card { animation: none; }
}

/* ---------- جایزه‌ها ---------- */
.pd-rewards { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.pd-reward { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 16px; }
.pd-reward.is-ready { border-color: var(--pd-primary); box-shadow: 0 0 0 1px var(--pd-primary) inset; }
.pd-reward.is-done { opacity: .7; }
.pd-reward__icon { display: grid; place-items: center; width: 46px; height: 46px; font-size: 24px; background: var(--pd-surface-2); border-radius: 14px; }
.pd-reward__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pd-reward__title { font-size: 1em; overflow-wrap: anywhere; }
.pd-reward__desc, .pd-reward__cost { color: var(--pd-dim); font-size: .85em; }
.pd-reward__state { padding: 6px 10px; font-size: .8em; color: var(--pd-dim); background: var(--pd-surface-2); border-radius: 999px; white-space: nowrap; }
.pd-reward .pd-progress { margin-top: 6px; height: 6px; }
.pd-btn--sm { min-height: 40px; padding-block: 8px; padding-inline: 16px; }
.pd-nextprize { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 14px; background: var(--pd-surface); border: 1px dashed var(--pd-primary); border-radius: 16px; }
.pd-nextprize__icon { font-size: 26px; }
.pd-nextprize__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pd-nextprize__body span { color: var(--pd-dim); font-size: .85em; }
.pd-gameover .pd-nextprize { flex-direction: column; align-items: stretch; margin: 12px 0 0; text-align: center; }
.pd-prize { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pd-prize__item { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 14px; background: var(--pd-surface-2); border: 1px solid var(--pd-primary); border-radius: 16px; animation: pd-pop .45s ease-out; }
.pd-prize__code { padding: 6px 14px; font-size: 1.25em; font-weight: 700; letter-spacing: .12em; background: var(--pd-bg); border-radius: 10px; user-select: all; }
.pd-prize__item small { color: var(--pd-dim); }
@keyframes pd-pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pd-prize__item { animation: none; } }
@media (max-width: 380px) { .pd-reward { grid-template-columns: auto 1fr; } .pd-reward__action { grid-column: 1 / -1; } .pd-reward__action .pd-btn { width: 100%; } }
