/* پلیریاب N4E — اپ تلگرام. رنگ‌ها و کارت‌ها همان سایت (ez-room-page.css / ez-lobby.css / ez-lobby-compact.css). */
@font-face { font-family: 'Vazirmatn'; src: url('vazirmatn.woff2?v=1.2.0') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
	--ez-void: #08090b; --ez-graphite: #101216; --ez-slate: #171a20; --ez-steel: #1f232b;
	--ez-red: #e2142c; --ez-red-hot: #ef6d7c; --ez-red-glow: rgba(226,20,44,.45); --ez-red-faint: rgba(226,20,44,.12);
	--ez-text: #eef1f5; --ez-text-soft: #b6bdc9; --ez-muted: #7f889a;
	--ez-ok: #2fd6a0; --ez-warn: #f0a93b;
	--ez-glass-bg: linear-gradient(155deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.022) 46%, rgba(255,255,255,.05) 100%);
	--ez-glass-border: rgba(255,255,255,.09);
	--ez-glass-shadow: 0 22px 48px -18px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.10);
	--ez-r-sm: 10px; --ez-r-md: 16px; --ez-r-lg: 22px;
	--ez-font: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--ez-ease: cubic-bezier(.22,.68,.32,1);
	--safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
	font-family: var(--ez-font); color: var(--ez-text); direction: rtl; font-size: 14px; line-height: 1.7;
	background:
		radial-gradient(60rem 26rem at 110% -10%, rgba(226,20,44,.18), transparent 60%),
		radial-gradient(40rem 22rem at -20% 30%, rgba(226,20,44,.07), transparent 70%),
		var(--ez-void);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ez-red-hot); }
img { display: block; }
[hidden] { display: none !important; }

/* ---------- سربرگ */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
	background: linear-gradient(to bottom, rgba(8,9,11,.96), rgba(8,9,11,.82)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255,255,255,.05); }
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand__logo { font-weight: 900; font-size: 20px; letter-spacing: .5px; color: #fff; text-shadow: 0 0 18px var(--ez-red-glow); }
.brand__logo::first-letter { color: var(--ez-red); }
.brand__sub { font-size: 13px; color: var(--ez-text-soft); font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill--test { color: #1a1205; background: var(--ez-warn); }
.pill--count { color: #ff8a8f; border: 1px solid rgba(229,9,20,.4); background: rgba(229,9,20,.1); }
.testbar { margin: 10px 16px 0; padding: 9px 12px; border-radius: 12px; font-size: 12px; line-height: 1.8; color: #ffd796;
	background: rgba(240,169,59,.1); border: 1px solid rgba(240,169,59,.35); }

.view { padding: 14px 16px calc(96px + var(--safe-b)); min-height: 70vh; }
.h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 12px; }
.h h2 { margin: 0; font-size: 18px; font-weight: 900; }
.lead { margin: -4px 0 14px; color: var(--ez-text-soft); font-size: 13px; }

/* ---------- نوار پایین */
.tabs { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
	padding: 8px 8px calc(8px + var(--safe-b)); background: rgba(12,13,17,.92); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
	border-top: 1px solid rgba(255,255,255,.07); }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--ez-muted); }
.tabs button .ico { font-size: 19px; line-height: 1; filter: grayscale(1) opacity(.7); transition: transform .3s var(--ez-ease); }
.tabs button b { font-size: 11px; font-weight: 700; }
.tabs button.is-on { color: #fff; }
.tabs button.is-on .ico { filter: none; transform: translateY(-2px); }
.tabs .tabs__add .ico { width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #fff; filter: none;
	background: linear-gradient(135deg, #ff2e43, #c8102e); box-shadow: 0 10px 22px -8px var(--ez-red-glow), inset 0 1px 0 rgba(255,255,255,.3); }

/* ---------- چیپ‌ها */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--ez-glass-border); background: rgba(255,255,255,.04); color: var(--ez-text-soft);
	padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.chip.is-on { color: #fff; border-color: transparent; background: linear-gradient(140deg, var(--ez-red), #b20f22); box-shadow: 0 8px 18px -10px var(--ez-red-glow); }
.chip small { display: block; font-size: 10.5px; font-weight: 600; opacity: .8; }
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
	color: var(--ez-text-soft); background: rgba(255,255,255,.07); }
.tag--red { color: #ff8a8f; background: var(--ez-red-faint); }
.tag--warn { color: #1a1205; background: var(--ez-warn); }

/* ---------- کارت لابی (مثل .ez-lb-card سایت) */
.list { display: grid; gap: 12px; }
.lb { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 14px;
	border-radius: var(--ez-r-lg); border: 1px solid rgba(255,255,255,.14);
	background:
		radial-gradient(120% 70% at 100% 0%, rgba(255,255,255,.10), transparent 55%),
		radial-gradient(90% 60% at 0% 100%, rgba(229,9,20,.14), transparent 70%),
		linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
		rgba(18,21,29,.55);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 40px -22px rgba(0,0,0,.8);
	animation: rise .45s var(--ez-ease) both; }
.lb.is-mine { border-color: rgba(47,214,160,.5); }
.lb.is-pay { border-color: rgba(240,169,59,.55); }
.lb.is-test::after { content: "🧪 آزمایشی"; position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 800; color: #1a1205; background: var(--ez-warn); padding: 1px 7px; border-radius: 999px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lb__top { display: flex; align-items: center; gap: 10px; }
.lb__thumb { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px; object-fit: cover; background: var(--ez-steel); border: 2px solid rgba(229,9,20,.45); }
.lb__when { flex: 1; min-width: 0; }
.lb__when h3 { margin: 0; font-size: 15.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__when p { margin: 1px 0 0; font-size: 12px; color: var(--ez-muted); }
.need { flex: 0 0 auto; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; color: #ffb36b; background: rgba(255,138,61,.14); border: 1px solid rgba(255,138,61,.4); white-space: nowrap; }
.need.is-ok { color: #33cc66; background: rgba(51,204,102,.14); border-color: rgba(51,204,102,.4); }
.seats { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.seat { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 50px; font-size: 10.5px; color: var(--ez-text-soft); }
.seat b { font-weight: 600; max-width: 50px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat__img { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
	background: var(--ez-steel); color: var(--ez-muted); font-size: 20px; font-weight: 300; border: 2px dashed rgba(255,255,255,.22); }
.seat__img img { width: 100%; height: 100%; object-fit: cover; }
.seat.is-filled .seat__img { border: 2px solid var(--ez-ok); color: #fff; font-size: 15px; font-weight: 800; background: linear-gradient(140deg, #2a2f3a, #1b1f27); }
.seat.is-owner .seat__img { border-color: var(--ez-red); }
.seat.is-needed .seat__img { border-color: rgba(229,9,20,.6); color: #ff6b74; }
.lb__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ez-muted); }
.lb__acts { display: flex; gap: 8px; }
.btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; text-decoration: none;
	padding: 11px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 800; color: #fff !important;
	background: linear-gradient(135deg, #ff2e43, #c8102e); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 20px -12px rgba(229,9,20,.7);
	transition: filter .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn--ghost { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--ez-glass-border); color: var(--ez-text) !important; }
.btn--ok { background: linear-gradient(135deg, #2fd6a0, #13a678); color: #04140e !important; }
.btn--sm { flex: 0 0 auto; padding: 7px 12px; font-size: 12px; border-radius: 11px; }

/* ---------- کارت اتاق (مثل اسلایدر سایت) */
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rc { position: relative; overflow: hidden; border-radius: var(--ez-r-md); border: 1px solid var(--ez-glass-border); background: var(--ez-graphite);
	box-shadow: var(--ez-glass-shadow); cursor: pointer; animation: rise .45s var(--ez-ease) both; text-align: start; padding: 0; }
.rc__img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: linear-gradient(140deg, var(--ez-steel), var(--ez-graphite)); }
.rc__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,9,11,.96) 6%, rgba(8,9,11,.55) 38%, transparent 62%); pointer-events: none; }
.rc__kind { position: absolute; top: 8px; right: 8px; }
.rc__rate { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(8,9,11,.7); color: #ffd34d; }
.rc__body { position: absolute; inset: auto 0 0 0; padding: 10px; }
.rc__t { margin: 0; font-size: 14px; font-weight: 900; color: #fff; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc__m { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; font-size: 10.5px; color: var(--ez-text-soft); }
.rc__m span { background: rgba(255,255,255,.08); padding: 1px 7px; border-radius: 999px; }
.rc__p { margin-top: 5px; font-size: 11.5px; font-weight: 800; color: var(--ez-ok); }
.search { width: 100%; padding: 11px 14px; margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--ez-glass-border); background: rgba(255,255,255,.05); outline: none; }
.search:focus { border-color: rgba(226,20,44,.55); box-shadow: 0 0 0 3px var(--ez-red-faint); }

/* ---------- صفحهٔ اتاق (sheet) */
.sheet { position: fixed; inset: 0; z-index: 50; background: var(--ez-void); overflow-y: auto; animation: slide .35s var(--ez-ease); }
@keyframes slide { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__body { padding-bottom: calc(110px + var(--safe-b)); }
.hero { position: relative; height: 300px; background: var(--ez-graphite); }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ez-void) 4%, rgba(8,9,11,.4) 45%, rgba(8,9,11,.15)); }
.hero__close { position: absolute; top: 12px; left: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(8,9,11,.6); color: #fff; font-size: 20px; cursor: pointer; }
.hero__body { position: absolute; inset: auto 16px 12px 16px; z-index: 2; }
.hero__body h1 { margin: 6px 0 0; font-size: 24px; font-weight: 900; line-height: 1.4; text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.pad { padding: 0 16px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.stat { padding: 10px 8px; border-radius: var(--ez-r-md); background: var(--ez-glass-bg); border: 1px solid var(--ez-glass-border); text-align: center; }
.stat b { display: block; font-size: 14px; font-weight: 900; }
.stat span { font-size: 11px; color: var(--ez-muted); }
.box { margin: 12px 0; padding: 14px; border-radius: var(--ez-r-lg); background: var(--ez-glass-bg); border: 1px solid var(--ez-glass-border); box-shadow: var(--ez-glass-shadow); }
.box h3 { margin: 0 0 8px; font-size: 15px; font-weight: 900; }
.box p { margin: 0; white-space: pre-line; color: var(--ez-text-soft); font-size: 13px; line-height: 2; }
.box details summary { cursor: pointer; font-weight: 800; list-style: none; }
.box details summary::-webkit-details-marker { display: none; }
.gal { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.gal img { flex: 0 0 72%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; scroll-snap-align: center; background: var(--ez-steel); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { border: 1px solid var(--ez-glass-border); background: rgba(255,255,255,.05); border-radius: 12px; padding: 7px 12px; text-align: center; cursor: pointer; min-width: 74px; }
.slot b { display: block; font-size: 14px; font-weight: 900; }
.slot small { font-size: 10.5px; color: var(--ez-muted); }
.slot.is-on { border-color: transparent; background: linear-gradient(140deg, var(--ez-red), #b20f22); }
.slot.is-on small { color: #ffe0e3; }
.dock { position: fixed; inset: auto 0 0 0; z-index: 55; display: flex; gap: 8px; padding: 10px 16px calc(10px + var(--safe-b));
	background: linear-gradient(to top, rgba(8,9,11,.98) 60%, rgba(8,9,11,0)); }

/* ---------- فرم */
.field { margin-bottom: 16px; }
.field > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; color: var(--ez-text-soft); }
.pick { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--ez-glass-border); background: rgba(255,255,255,.04); cursor: pointer; width: 100%; text-align: start; }
.pick .pimg { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--ez-steel); }
.pick span { flex: 1; font-weight: 800; }
.pick small { display: block; font-weight: 500; color: var(--ez-muted); font-size: 11.5px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--ez-glass-border); background: rgba(255,255,255,.06); font-size: 20px; font-weight: 800; cursor: pointer; }
.stepper output { min-width: 40px; text-align: center; font-size: 20px; font-weight: 900; }
.stepper em { font-style: normal; color: var(--ez-muted); font-size: 12px; }
.sum { padding: 12px 14px; border-radius: 14px; background: var(--ez-red-faint); border: 1px solid rgba(226,20,44,.35); font-size: 13px; line-height: 2; margin-bottom: 14px; }
.input { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--ez-glass-border); background: rgba(255,255,255,.05); outline: none; font-size: 18px; letter-spacing: 4px; text-align: center; direction: ltr; }

/* ---------- من */
.prof { display: flex; align-items: center; gap: 12px; }
.prof__av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--ez-steel); border: 2px solid var(--ez-red); display: grid; place-items: center; font-size: 22px; font-weight: 900; }
.prof h3 { margin: 0; font-size: 17px; }
.ok { color: var(--ez-ok); font-weight: 800; }
.warn { color: var(--ez-warn); font-weight: 800; }
.empty { padding: 28px 16px; text-align: center; color: var(--ez-muted); border-radius: var(--ez-r-lg); border: 1px dashed rgba(255,255,255,.12); }
.empty b { display: block; color: var(--ez-text); font-size: 15px; margin-bottom: 4px; }
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.game { padding: 18px 12px; border-radius: var(--ez-r-lg); text-align: center; background: var(--ez-glass-bg); border: 1px solid var(--ez-glass-border); }
.game .ico { font-size: 34px; }
.game b { display: block; margin-top: 6px; }
.game small { color: var(--ez-muted); }

/* ---------- مودال/تُست/اسکلت */
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; background: rgba(0,0,0,.6); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal__box { width: 100%; max-height: 86vh; overflow-y: auto; padding: 18px 16px calc(18px + var(--safe-b)); border-radius: 24px 24px 0 0;
	background: var(--ez-slate); border-top: 1px solid rgba(226,20,44,.4); box-shadow: 0 -20px 60px -20px var(--ez-red-glow); animation: slide .3s var(--ez-ease); }
.modal__box h3 { margin: 0 0 10px; font-size: 17px; font-weight: 900; }
.modal__box .rules { white-space: pre-line; font-size: 13px; line-height: 2; color: var(--ez-text-soft); max-height: 46vh; overflow-y: auto; margin-bottom: 14px; }
.toast { position: fixed; z-index: 80; inset: auto 16px calc(92px + var(--safe-b)) 16px; padding: 12px 14px; border-radius: 14px; font-size: 13px; font-weight: 700;
	background: rgba(23,26,32,.96); border: 1px solid var(--ez-glass-border); box-shadow: 0 16px 40px -12px rgba(0,0,0,.8); animation: slide .25s var(--ez-ease); }
.toast.is-err { border-color: rgba(226,20,44,.6); }
.toast.is-ok { border-color: rgba(47,214,160,.6); }
.skel { height: 150px; margin-bottom: 12px; border-radius: var(--ez-r-lg); background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (min-width: 640px) { .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); } .view, .pad { max-width: 760px; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* جای عکسِ نبود/خراب */
.ph { display: grid; place-items: center; font-size: 22px; background: radial-gradient(circle at 30% 20%, rgba(226,20,44,.35), transparent 60%), linear-gradient(140deg, var(--ez-steel), var(--ez-graphite)); }
.rc__img.ph { font-size: 44px; }
.hero__img.ph { font-size: 70px; }
