/* ==========================================================================
   گنجینه — ماژول رزرو (اقامتگاه، سالن مراسم، پرداخت، استرداد، مالی)
   فقط متغیرهای پوسته؛ روز/شب و راست‌به‌چپ/چپ‌به‌راست خودکار.
   ========================================================================== */

/* ---------------------------------------------------------------- کارت اقامتگاه / سالن (فهرست) */
.stay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 30px; }
.stay-card { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 16px 16px 22px; border-radius: 200px 200px var(--radius-xl) var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; color: inherit; isolation: isolate; }
.stay-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--gold-3); color: inherit; }
.stay-card .sc-arch { position: relative; aspect-ratio: 4 / 4.2; border-radius: 190px 190px 22px 22px; overflow: hidden; background: var(--grad-brand); box-shadow: inset 0 0 0 1px var(--line); }
.stay-card .sc-arch::after { content: ''; position: absolute; inset: 9px; border-radius: 180px 180px 16px 16px; border: 1px solid rgba(234, 203, 134, .55); pointer-events: none; }
.stay-card .sc-arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.stay-card:hover .sc-arch img { transform: scale(1.06); }
.stay-card .sc-kind { position: absolute; bottom: 20px; inset-inline-start: 50%; transform: translateX(50%); z-index: 1; white-space: nowrap; }
[dir="ltr"] .stay-card .sc-kind { transform: translateX(-50%); }
.stay-card .sc-body { display: flex; flex-direction: column; gap: 10px; padding: 0 8px; text-align: center; flex: 1; }
.stay-card h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 0; }
.stay-card .sc-sum { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.9; }
.stay-card .sc-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--text-2); }
.stay-card .sc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.stay-card .sc-meta .icon-sm { color: var(--gold); }
.stay-card .sc-amen { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.amen-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--brand-ink); }
.amen-dot .icon-sm { width: 15px; height: 15px; }
.stay-card .sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 14px 8px 0; border-top: 1px dashed var(--line-strong); }
.price-from { display: flex; flex-direction: column; line-height: 1.3; text-align: start; }
.price-from small { color: var(--muted); font-size: .74rem; }
.price-from strong { font-size: 1.12rem; font-weight: 800; }
.price-from strong em { font-style: normal; font-size: .72rem; color: var(--muted); font-weight: 500; }
.member-ribbon { position: absolute; top: 34px; inset-inline-end: -6px; z-index: 2; padding: 5px 14px; border-radius: 8px 0 0 8px; background: var(--grad-gold); color: var(--on-gold); font-size: .72rem; font-weight: 800; box-shadow: var(--shadow-gold); }
[dir="ltr"] .member-ribbon { border-radius: 0 8px 8px 0; }

/* ---------------------------------------------------------------- نوار اعتماد بالای فهرست */
.trust-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 44px; }
.trust-row > div { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: .88rem; }
.trust-row .tr-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); flex-shrink: 0; }
.trust-row strong { display: block; font-size: .95rem; }
.trust-row span { color: var(--muted); font-size: .8rem; }

/* ---------------------------------------------------------------- صفحه‌ی جزئیات */
.stay-hero { position: relative; padding: 36px 0 20px; }
.stay-gallery { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.stay-gallery .sg-main { position: relative; border-radius: 260px 260px var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--grad-brand); box-shadow: var(--shadow-lg); }
.stay-gallery .sg-main::after { content: ''; position: absolute; inset: 12px; border-radius: 250px 250px 16px 16px; border: 1px solid rgba(234, 203, 134, .6); pointer-events: none; }
.stay-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stay-gallery .sg-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.stay-gallery .sg-thumb { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); border: 1px solid var(--line); cursor: zoom-in; padding: 0; }
.stay-gallery .sg-thumb .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6, 12, 26, .55); color: #FFF8E8; font-weight: 800; font-size: 1.1rem; }
.stay-gallery .sg-side.is-art { grid-template-rows: 1fr; }
@media (max-width: 860px) { .stay-gallery { grid-template-columns: 1fr; } .stay-gallery .sg-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .stay-gallery .sg-thumb { aspect-ratio: 4 / 3; } }
.stay-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 30px 0 8px; }
.stay-title h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 6px 0 0; line-height: 1.3; }
.stay-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; margin: 26px 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.stay-facts > div { background: var(--surface); padding: 16px 12px; text-align: center; }
.stay-facts .icon { color: var(--gold); margin-bottom: 4px; }
.stay-facts strong { display: block; font-size: 1.05rem; }
.stay-facts span { font-size: .78rem; color: var(--muted); }
.amen-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.amen-list li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; list-style: none; }
.amen-list .icon-sm { color: var(--gold); }
.amen-list { padding: 0; margin: 0; }
.rules-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rules-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-2); line-height: 1.9; }
.rules-list li::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; margin-top: 10px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.stay-section { padding: 28px 0; border-top: 1px solid var(--line); }
.stay-section:first-of-type { border-top: 0; }
.stay-section > h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.stay-section > h2 .icon { color: var(--gold); }

/* ---------------------------------------------------------------- تقویم دسترس‌پذیری (عمومی) */
.bk-cal { position: relative; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: 18px; box-shadow: var(--shadow-sm); }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bk-cal-head strong { font-family: var(--font-display); font-size: 1.2rem; }
.bk-cal-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: .2s; }
.bk-cal-nav:hover:not([disabled]) { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-ink); }
.bk-cal-nav[disabled] { opacity: .35; cursor: default; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bk-cal-wd { text-align: center; font-size: .74rem; color: var(--muted); font-weight: 700; padding: 2px 0 6px; }
.bk-day { position: relative; min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 2px; font: inherit; color: var(--text); cursor: default; transition: background .2s, box-shadow .2s, transform .2s; }
.bk-day .d-num { font-weight: 800; font-size: .98rem; line-height: 1; }
.bk-day .d-price { font-size: .64rem; color: var(--muted); font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.bk-day.is-empty { visibility: hidden; }
.bk-day.is-free { background: var(--surface); border-color: var(--line-strong); cursor: pointer; }
.bk-day.is-free:hover { box-shadow: 0 0 0 2px var(--gold); transform: translateY(-1px); }
.bk-day.is-free .d-price { color: var(--brand-ink); }
.bk-day.is-taken { background: repeating-linear-gradient(135deg, var(--surface-3), var(--surface-3) 6px, var(--surface-2) 6px, var(--surface-2) 12px); color: var(--faint); text-decoration: line-through; }
.bk-day.is-blocked, .bk-day.is-none, .bk-day.is-past { opacity: .42; }
.bk-day.is-today::after { content: ''; position: absolute; top: 6px; inset-inline-end: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.bk-day.is-range { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.bk-day.is-start, .bk-day.is-end { background: var(--grad-brand); color: #FFF8E8; border-color: transparent; box-shadow: var(--shadow); }
[data-theme="dark"] .bk-day.is-start, [data-theme="dark"] .bk-day.is-end { color: #04121A; background: linear-gradient(135deg, var(--brand-3), var(--brand)); }
.bk-day.is-start .d-price, .bk-day.is-end .d-price { color: inherit; opacity: .85; }
.bk-day.is-conflict { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.bk-day.is-checkout { background: var(--surface); border: 1px dashed var(--brand); }
.bk-day.is-checkout .d-price { color: var(--brand-ink); }
.bk-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: .78rem; color: var(--muted); }
.bk-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-inline-end: 6px; vertical-align: -1px; border: 1px solid var(--line-strong); }
.bk-legend .l-free { background: var(--surface); }
.bk-legend .l-sel { background: var(--grad-brand); border: 0; }
.bk-legend .l-taken { background: repeating-linear-gradient(135deg, var(--surface-3), var(--surface-3) 3px, var(--surface-2) 3px, var(--surface-2) 6px); }
.bk-legend .l-off { background: var(--surface-2); opacity: .5; }
.bk-cal-loading { position: absolute; inset: 0; border-radius: inherit; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(2px); z-index: 2; }
.bk-cal-loading::after { content: ''; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--gold-soft); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@media (max-width: 520px) { .bk-day { min-height: 52px; border-radius: 10px; } .bk-day .d-price { font-size: .56rem; } .bk-cal { padding: 12px; } .bk-cal-grid { gap: 4px; } }

/* ---------------------------------------------------------------- ویجت رزرو (کنار صفحه) */
.book-box { position: sticky; top: 96px; }
.book-box .lux-inner { padding: 24px; }
.book-box h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 4px; }
.book-box .bb-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.book-box .bb-price strong { font-size: 1.6rem; font-weight: 800; }
.book-box .bb-price span { color: var(--muted); font-size: .85rem; }
.pick-summary { display: grid; grid-template-columns: 1fr 1fr; border-radius: 16px; border: 1px solid var(--line-strong); overflow: hidden; margin-bottom: 14px; }
.pick-summary > div { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.pick-summary > div + div { border-inline-start: 1px solid var(--line-strong); }
.pick-summary small { font-size: .7rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.pick-summary b { font-size: .92rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--surface); }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.stepper button:hover:not([disabled]) { background: var(--gold-soft); color: var(--gold-ink); }
.stepper button[disabled] { opacity: .3; cursor: default; }
.stepper output { min-width: 40px; text-align: center; font-weight: 800; }
.step-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; }
.step-row label { font-weight: 600; font-size: .9rem; }
.step-row small { display: block; color: var(--muted); font-size: .74rem; font-weight: 400; }
.bk-hint { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-strong); color: var(--text-2); }
.bk-hint .icon-sm { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.bk-hint.is-bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.bk-hint.is-bad .icon-sm { color: inherit; }
.invoice .invoice-row small { color: var(--muted); }
.invoice-head { padding: 12px 18px; font-weight: 800; font-size: .86rem; background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.guest-form { display: grid; gap: 12px; margin-top: 14px; }
.guest-form .form-grid { gap: 12px; }
.me-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-ink); font-size: .88rem; }
.me-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.me-card strong { display: block; }
.accept-row { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; line-height: 1.9; cursor: pointer; }
.accept-row input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--brand); flex-shrink: 0; }
@media (max-width: 1020px) { .book-box { position: static; } }

/* ---------------------------------------------------------------- سالن: بازه‌ها و خدمات */
.slot-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.slot-pick { position: relative; display: block; }
.slot-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot-pick .sp-box { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); transition: .2s var(--ease); height: 100%; }
.slot-pick .sp-box .icon { color: var(--gold); }
.slot-pick .sp-box b { font-size: .98rem; }
.slot-pick .sp-box small { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.slot-pick .sp-box .sp-price { font-weight: 800; font-size: .9rem; margin-top: 4px; }
.slot-pick input:checked + .sp-box { background: var(--grad-brand); color: #FFF8E8; border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.slot-pick input:checked + .sp-box small, .slot-pick input:checked + .sp-box .icon { color: var(--gold-3); }
.slot-pick input:focus-visible + .sp-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.slot-pick.is-taken .sp-box { opacity: .45; background: var(--surface-2); }
.slot-pick.is-taken input { cursor: not-allowed; }
.addon-list { display: grid; gap: 10px; }
.addon { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: .2s; }
.addon:hover { border-color: var(--gold-3); }
.addon input { width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.addon .ad-text { flex: 1; min-width: 0; }
.addon .ad-text b { display: block; font-size: .92rem; }
.addon .ad-text small { color: var(--muted); font-size: .78rem; }
.addon .ad-price { font-weight: 800; font-size: .88rem; white-space: nowrap; text-align: end; }
.addon .ad-price small { display: block; font-weight: 500; color: var(--muted); font-size: .7rem; }
.addon:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.venue-steps { display: grid; gap: 22px; }
.venue-step { position: relative; padding-inline-start: 52px; }
.venue-step::before { counter-increment: vstep; content: counter(vstep); position: absolute; inset-inline-start: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: var(--on-gold); font-weight: 800; box-shadow: var(--shadow-gold); }
.venue-step:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 17px; top: 42px; bottom: -18px; width: 2px; background: linear-gradient(var(--gold-3), transparent); }
.venue-steps { counter-reset: vstep; }
.venue-step > h3 { font-size: 1.05rem; margin: 5px 0 14px; }
@media (max-width: 560px) { .venue-step { padding-inline-start: 0; } .venue-step::before, .venue-step::after { display: none; } }

/* ---------------------------------------------------------------- سیاست لغو (جدول) */
.policy-card .policy-step { grid-template-columns: minmax(0, 1fr) 110px auto; }
.policy-step .ps-text { font-size: .88rem; }
.policy-step .ps-bar { min-width: 60px; }
.policy-step.is-current .ps-text::after { content: attr(data-now); margin-inline-start: 8px; font-size: .7rem; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--grad-gold); color: var(--on-gold); }
@media (max-width: 560px) { .policy-card .policy-step { grid-template-columns: 1fr auto; } .policy-step .ps-bar { grid-column: 1 / -1; order: 3; } }

/* ---------------------------------------------------------------- صفحه‌ی رزرو (پیگیری) */
.bk-status { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 30px; background: var(--grad-brand); color: #F4EEE0; box-shadow: var(--shadow-lg); isolation: isolate; }
.bk-status::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c-accent); opacity: .1; -webkit-mask: var(--pattern) 0 0 / 100px repeat; mask: var(--pattern) 0 0 / 100px repeat; }
.bk-status .bs-code { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .14em; color: var(--gold-3); direction: ltr; unicode-bidi: isolate; }
.bk-status h1, .bk-status h2 { color: #FFF8E8; margin: 4px 0; font-family: var(--font-display); }
.bk-status .muted { color: rgba(244, 238, 224, .72); }
.bk-status .badge { box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.bk-status .btn-ghost { --b-fg: #F4EEE0; --b-bd: rgba(244, 238, 224, .3); }
.bk-steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; margin-top: 26px; }
.bk-step { position: relative; text-align: center; padding-top: 30px; font-size: .8rem; color: rgba(244, 238, 224, .7); }
.bk-step::before { content: ''; position: absolute; top: 8px; inset-inline-start: 50%; width: 100%; height: 2px; background: rgba(244, 238, 224, .2); }
.bk-step:last-child::before { display: none; }
.bk-step i { position: absolute; top: 0; inset-inline-start: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--c-brand2); border: 2px solid rgba(244, 238, 224, .35); z-index: 1; }
.bk-step.is-done { color: #FFF8E8; }
.bk-step.is-done i { background: var(--grad-gold); border-color: transparent; box-shadow: 0 0 0 4px rgba(216, 180, 106, .25); }
.bk-step.is-done::before { background: var(--gold-2); }
.bk-step.is-bad i { background: var(--bad); border-color: transparent; }
.bk-step b { display: block; font-weight: 700; }
.bk-step small { font-size: .7rem; opacity: .8; }
@media (max-width: 560px) { .bk-status { padding: 22px; } .bk-step { font-size: .7rem; } }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.detail-grid > div { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.detail-grid small { display: block; color: var(--muted); font-size: .76rem; margin-bottom: 2px; }
.detail-grid b { font-size: .96rem; }
.cancel-box { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.cancel-box > summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.cancel-box > summary::-webkit-details-marker { display: none; }
.cancel-box > summary .icon { color: var(--bad); }
.cancel-box[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cancel-box .cb-body { padding: 22px; display: grid; gap: 18px; }
.refund-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: 18px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.refund-card > div { background: var(--surface); padding: 14px; text-align: center; }
.refund-card small { display: block; color: var(--muted); font-size: .74rem; }
.refund-card b { font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.refund-card .rc-fee b { color: var(--bad); }
.refund-card .rc-back { background: var(--ok-soft); }
.refund-card .rc-back b { color: var(--ok); }
@media (max-width: 520px) { .refund-card { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- صفحه‌ی پرداخت */
.pay-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .pay-shell { grid-template-columns: 1fr; } }
.pay-amount { text-align: center; padding: 24px 16px 18px; }
.pay-amount small { color: var(--muted); display: block; font-size: .8rem; letter-spacing: .08em; }
.pay-amount strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.25; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-amount strong em { font-style: normal; font-size: .4em; }
.bank-card { margin-inline: auto; width: 100%; }
.bank-card .bc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bank-card .bc-bank { font-weight: 700; font-size: .92rem; }
.bank-card .bc-owner { font-size: .84rem; opacity: .85; }
.bank-card .bc-sheba { font-size: .72rem; letter-spacing: .04em; direction: ltr; opacity: .8; font-variant-numeric: tabular-nums; }
.bank-card .bc-copy { border: 1px solid rgba(244, 238, 224, .3); background: rgba(255, 255, 255, .08); color: #F4EFE3; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .74rem; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.bank-card .bc-copy:hover { background: rgba(255, 255, 255, .16); }
.pay-methods { display: grid; gap: 14px; }
.pay-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; }
.pay-or::before, .pay-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; padding: 20px; border-radius: 20px; border: 1.5px dashed var(--line-strong); background: var(--surface-2); text-align: center; cursor: pointer; transition: .2s; }
.drop:hover, .drop.is-over { border-color: var(--gold); background: var(--gold-soft); }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .icon-lg { color: var(--gold); }
.drop .drop-name { font-weight: 700; font-size: .88rem; color: var(--brand-ink); }
.drop img.drop-pv { max-height: 120px; border-radius: 12px; }
.pay-done { text-align: center; padding: 40px 24px; }
.pay-done .pd-seal { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: var(--on-gold); box-shadow: var(--shadow-gold), 0 0 0 10px var(--gold-soft); }
.pay-done .pd-seal .icon { width: 42px; height: 42px; }
.pay-done.is-wait .pd-seal { background: var(--grad-brand); color: var(--gold-3); box-shadow: var(--shadow-lg), 0 0 0 10px var(--brand-soft); }
.pay-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; font-size: .78rem; color: var(--muted); text-align: center; }
.pay-steps span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pay-steps b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); }
.pay-steps .is-on b { background: var(--grad-gold); color: var(--on-gold); border: 0; }

/* ---------------------------------------------------------------- برگه‌ی رزرو (A5) */
.voucher-wrap { display: flex; justify-content: center; padding: 10px 0 30px; }
.voucher { position: relative; width: 148mm; max-width: 100%; min-height: 200mm; background: #FFFDF7; color: #1B2333; border-radius: 6px; box-shadow: var(--shadow-lg); padding: 14mm 12mm 12mm; overflow: hidden; isolation: isolate; font-size: 12.5px; line-height: 1.9; }
.voucher::before { content: ''; position: absolute; inset: 6mm; border: 1.5px solid #C9A96E; border-radius: 4px; pointer-events: none; }
.voucher::after { content: ''; position: absolute; inset: 7.5mm; border: .5px solid #C9A96E; border-radius: 3px; pointer-events: none; opacity: .7; }
.voucher .v-pattern { position: absolute; inset: 0; z-index: -1; background: #C9A96E; opacity: .06; -webkit-mask: var(--pattern) 0 0 / 80px repeat; mask: var(--pattern) 0 0 / 80px repeat; }
.voucher .v-head { text-align: center; position: relative; }
.voucher .v-head img { height: 58px; width: auto; margin: 0 auto 6px; display: block; }
.voucher .v-head h1 { font-family: var(--font-display); font-size: 20px; margin: 0; color: #13233F; }
.voucher .v-head .v-sub { color: #8A6A2F; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.voucher .v-title { margin: 12px auto 10px; text-align: center; font-family: var(--font-display); font-size: 16px; color: #0A5E73; display: flex; align-items: center; gap: 10px; justify-content: center; }
.voucher .v-title::before, .voucher .v-title::after { content: ''; height: 1px; width: 50px; background: linear-gradient(90deg, transparent, #C9A96E); }
.voucher .v-title::after { transform: scaleX(-1); }
.voucher .v-code { text-align: center; margin-bottom: 10px; }
.voucher .v-code b { font-family: var(--font-serif); font-size: 26px; letter-spacing: .18em; color: #13233F; direction: ltr; display: inline-block; }
.voucher .v-code small { display: block; color: #7C7462; font-size: 10.5px; }
.voucher table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.voucher td { padding: 6px 8px; border-bottom: 1px dashed #D9CBA8; vertical-align: top; }
.voucher td.k { color: #7C7462; width: 26%; font-size: 11.5px; }
.voucher td.v { font-weight: 700; color: #1B2333; }
.voucher .v-dates { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 10px 0; padding: 10px; border-radius: 8px; background: #F4ECDB; }
.voucher .v-dates div { text-align: center; }
.voucher .v-dates small { display: block; color: #7C7462; font-size: 10.5px; }
.voucher .v-dates b { font-size: 13px; color: #13233F; }
.voucher .v-dates .v-n { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #13233F; color: #EACB86; font-weight: 800; line-height: 1.1; font-size: 11px; text-align: center; }
.voucher .v-foot { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-top: 10px; }
.voucher .v-rules { font-size: 11px; color: #3A4254; line-height: 1.9; }
.voucher .v-rules b { color: #13233F; }
.voucher .v-qr { text-align: center; font-size: 10px; color: #7C7462; }
.voucher .v-qr > div { width: 104px; height: 104px; padding: 4px; background: #fff; border: 1px solid #D9CBA8; border-radius: 6px; margin-bottom: 4px; }
.voucher .v-qr img, .voucher .v-qr canvas { width: 100% !important; height: 100% !important; }
.voucher .v-stamp { position: absolute; top: 34mm; inset-inline-start: 12mm; transform: rotate(-14deg); border: 2px solid #1F7A58; color: #1F7A58; padding: 3px 12px; border-radius: 8px; font-weight: 800; font-size: 13px; opacity: .8; }
.voucher .v-sign { text-align: center; font-size: 10.5px; color: #7C7462; margin-top: 8px; }
@media print {
  @page { size: A5 portrait; margin: 0; }
  body * { visibility: hidden; }
  .voucher, .voucher * { visibility: visible; }
  .voucher { position: absolute; top: 0; left: 0; right: 0; margin: 0 auto; box-shadow: none; border-radius: 0; width: 148mm; min-height: 209mm; }
  .panel-shell, .panel-main, .panel-content { display: block !important; padding: 0 !important; margin: 0 !important; }
}

/* ---------------------------------------------------------------- مدیریت: تقویم ماهانه */
.adm-cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
.adm-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.adm-cal-wd { text-align: center; font-size: .75rem; color: var(--muted); font-weight: 700; padding: 4px 0; }
.adm-day { position: relative; min-height: 104px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); padding: 8px 8px 6px; display: flex; flex-direction: column; gap: 3px; font: inherit; color: var(--text); text-align: start; cursor: pointer; transition: box-shadow .2s, transform .2s; overflow: hidden; }
.adm-day:hover { box-shadow: 0 0 0 2px var(--gold); transform: translateY(-1px); }
.adm-day.is-empty { visibility: hidden; }
.adm-day .ad-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.adm-day .ad-num { font-weight: 800; font-size: 1rem; }
.adm-day .ad-aud { font-size: .6rem; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.adm-day .ad-aud.members { background: var(--gold-soft); color: var(--gold-ink); }
.adm-day .ad-aud.public { background: var(--info-soft); color: var(--info); }
.adm-day .ad-p { font-size: .68rem; color: var(--text-2); font-variant-numeric: tabular-nums; line-height: 1.5; }
.adm-day .ad-p i { font-style: normal; color: var(--muted); }
.adm-day .ad-code { margin-top: auto; font-size: .66rem; font-weight: 800; letter-spacing: .06em; direction: ltr; color: inherit; }
.adm-day.st-available { background: var(--surface); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); box-shadow: inset 0 3px 0 var(--ok); }
.adm-day.st-reserved { background: var(--brand-soft); border-color: transparent; box-shadow: inset 0 3px 0 var(--brand); }
.adm-day.st-reserved .ad-code { color: var(--brand-ink); }
.adm-day.st-blocked { background: repeating-linear-gradient(135deg, var(--bad-soft), var(--bad-soft) 7px, var(--surface-2) 7px, var(--surface-2) 14px); box-shadow: inset 0 3px 0 var(--bad); }
.adm-day.st-none { border-style: dashed; opacity: .75; }
.adm-day.st-none .ad-p { color: var(--faint); }
.adm-day.is-past { opacity: .55; }
.adm-day.is-today { outline: 2px solid var(--gold); outline-offset: 1px; }
.adm-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .78rem; color: var(--muted); }
.adm-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-inline-end: 6px; }
.adm-legend .l-a { background: var(--ok); } .adm-legend .l-r { background: var(--brand); } .adm-legend .l-b { background: var(--bad); } .adm-legend .l-n { border: 1px dashed var(--line-strong); }
.adm-day .slot-chip { display: flex; justify-content: space-between; gap: 4px; margin: 0; font-size: .64rem; padding: 2px 6px; }
.adm-day form { margin: 0; }
.adm-day .slot-btn { width: 100%; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: start; }
@media (max-width: 760px) { .adm-day { min-height: 70px; padding: 5px; } .adm-day .ad-p, .adm-day .ad-aud { display: none; } .adm-cal-grid { gap: 3px; } }
.slot-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; font-size: .72rem; background: var(--surface-2); border: 1px solid var(--line); margin: 1px; }
.slot-chip.available { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.slot-chip.booked { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; font-weight: 700; }
.slot-chip.blocked { text-decoration: line-through; opacity: .6; }
.wd-picks { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------------------------------------------------------------- مدیریت: نقشه‌ی حرارتی اشغال */
.heat { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) 52px; gap: 8px 12px; align-items: center; font-size: .82rem; }
.heat .h-row { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; }
.heat .h-row span { aspect-ratio: 1; border-radius: 4px; background: var(--surface-3); }
.heat .h-row span.reserved { background: var(--brand); }
.heat .h-row span.available { background: color-mix(in srgb, var(--ok) 35%, var(--surface)); }
.heat .h-row span.blocked { background: color-mix(in srgb, var(--bad) 45%, var(--surface)); }
.heat .h-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heat .h-rate { font-weight: 800; text-align: end; font-variant-numeric: tabular-nums; }
.heat .h-days { grid-column: 2; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; font-size: .6rem; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .heat { grid-template-columns: 1fr 44px; } .heat .h-row, .heat .h-days { grid-column: 1 / -1; order: 2; } .heat .h-days { display: none; } }

/* ---------------------------------------------------------------- مدیریت: فهرست‌ها و فیش */
.module-bars { display: grid; gap: 12px; }
.module-bars .mb-row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .86rem; }
.module-bars .mb-row b { font-variant-numeric: tabular-nums; }
.receipt-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; cursor: zoom-in; padding: 0; color: var(--gold); }
.receipt-view { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; border-radius: 12px; }
.receipt-frame { width: 100%; height: 72vh; border: 0; border-radius: 12px; background: #fff; }
.pill-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pill-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: .86rem; font-weight: 600; }
.pill-tabs a:hover { border-color: var(--gold-3); color: var(--gold-ink); }
.pill-tabs a.is-active { background: var(--grad-brand); color: #FFF8E8; border-color: transparent; }
.pill-tabs a .n { font-size: .72rem; padding: 0 7px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.pill-tabs a.is-active .n { background: rgba(255, 255, 255, .18); color: inherit; }
.cover-mini { width: 54px; height: 54px; border-radius: 27px 27px 10px 10px; object-fit: cover; background: var(--grad-brand); border: 1px solid var(--line); }
.gallery-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.gallery-edit label { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; }
.gallery-edit img { width: 100%; height: 100%; object-fit: cover; }
.gallery-edit input { position: absolute; top: 6px; inset-inline-end: 6px; width: 18px; height: 18px; accent-color: var(--bad); }
.gallery-edit label:has(input:checked) img { opacity: .35; filter: grayscale(1); }
.booking-row-code { font-weight: 800; letter-spacing: .06em; direction: ltr; unicode-bidi: isolate; }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mini-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .86rem; }

/* ---------------------------------------------------------------- کارت رزرو (پنل کاربر) */
.my-bookings { display: grid; gap: 16px; }
.my-booking { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: .3s var(--ease); color: inherit; }
.my-booking:hover { border-color: var(--gold-3); box-shadow: var(--shadow); color: inherit; }
.my-booking .mb-img { width: 110px; height: 120px; border-radius: 55px 55px 14px 14px; overflow: hidden; background: var(--grad-brand); }
.my-booking .mb-img img { width: 100%; height: 100%; object-fit: cover; }
.my-booking h3 { margin: 0 0 4px; font-size: 1.05rem; }
.my-booking .mb-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--muted); }
.my-booking .mb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.my-booking .mb-side { text-align: end; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
@media (max-width: 640px) { .my-booking { grid-template-columns: 80px minmax(0, 1fr); } .my-booking .mb-img { width: 80px; height: 90px; } .my-booking .mb-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }

.lightbox-img { max-width: 100%; max-height: 80vh; border-radius: 16px; display: block; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.fin-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); --gap: 20px; }
@media (max-width: 1100px) { .fin-grid { grid-template-columns: 1fr; } }
.meter.gold > span { background: var(--grad-gold); } .meter.info > span { background: var(--info); } .meter.muted > span { background: var(--muted); }
