/* ==========================================================================
   رست — سیستم طراحی ۲۰۲۶ با روح سنتی ایرانی
   فیروزه‌ای، کرم و زرین · قوس و کاشی · دکمه‌های سه‌بعدی · شیشه‌ی مات
   بدون هیچ وابستگی بیرونی؛ فونت و تصویر همه محلی‌اند.
   ========================================================================== */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Aref Ruqaa"; src: url("../fonts/ArefRuqaa-Bold-arabic.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Aref Ruqaa"; src: url("../fonts/ArefRuqaa-Regular-arabic.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lalezar"; src: url("../fonts/Lalezar-arabic.woff2") format("woff2"); font-weight: 400; font-display: swap; }

@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --shine { syntax: "<percentage>"; inherits: false; initial-value: -40%; }

:root {
    color-scheme: light;

    --teal-950: #06292d; --teal-900: #0b3d42; --teal-800: #0e5258; --teal-700: #12707a;
    --teal-600: #158a92; --teal-500: #1fa3a8; --teal-300: #7fd0d0; --teal-100: #d8f0ee; --teal-50: #eef9f8;
    --cream-50: #fffaf0; --cream-100: #fbf3df; --cream-200: #f2e4c0; --cream-300: #e6d29c;
    --gold-300: #f1d98c; --gold-400: #e2bf66; --gold-500: #cfa24a; --gold-600: #a77c2a; --gold-700: #7b5a1b;
    --terra-500: #b8512e; --terra-600: #9a3f20;
    --ink-900: #251c13; --ink-700: #4a3d2e; --ink-500: #7a6c58; --ink-300: #b3a68f;
    --ok: #2c8a57; --warn: #b7791f; --danger: #b3382c;

    --gold-grad: linear-gradient(180deg, var(--gold-300), var(--gold-500) 55%, var(--gold-600));
    --teal-grad: linear-gradient(180deg, var(--teal-500), var(--teal-700));
    --line: rgb(167 124 42 / .32);
    --line-strong: rgb(167 124 42 / .6);

    --r-sm: 12px; --r: 18px; --r-lg: 26px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);

    --shadow-1: 0 1px 2px rgb(37 28 19 / .08), 0 6px 16px -6px rgb(37 28 19 / .16);
    --shadow-2: 0 2px 4px rgb(37 28 19 / .08), 0 18px 40px -16px rgb(11 61 66 / .35);
    --glass: rgb(255 250 240 / .72);
    --glass-dark: rgb(6 41 45 / .82);

    --font-display: "Aref Ruqaa", "Lalezar", "Vazirmatn", serif;
    --font-title: "Lalezar", "Vazirmatn", sans-serif;
    --font-body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;

    --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
    margin: 0; min-height: 100dvh;
    font-family: var(--font-body); font-size: 16px; line-height: 1.85; color: var(--ink-900);
    background:
        radial-gradient(900px 520px at 100% -10%, rgb(31 163 168 / .16), transparent 60%),
        radial-gradient(700px 480px at -10% 30%, rgb(207 162 74 / .14), transparent 60%),
        url("../images/tile.svg") center top / 96px,
        var(--cream-100);
    background-attachment: fixed, fixed, scroll, scroll;
    text-wrap: pretty;
    -webkit-tap-highlight-color: transparent;
}

a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-800); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.45; text-wrap: balance; }
h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); color: var(--teal-900); }
h2 { font-family: var(--font-title); font-weight: 400; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); color: var(--teal-900); }
h3 { font-size: 1.08rem; font-weight: 700; color: var(--teal-900); }
p { margin: 0 0 .8rem; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .85em; background: var(--cream-200); padding: .05rem .4rem; border-radius: 6px; }
.muted { color: var(--ink-500); font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spacer { flex: 1; }
.plain { list-style: none; margin: .4rem 0 .8rem; padding: 0; }
.ltr { direction: ltr; text-align: left; }
.danger { color: var(--danger) !important; }

:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--gold-300); color: var(--teal-950); }

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }

/* انتقال نرم بین صفحه‌ها (View Transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .18s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .32s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ========================== دکمه‌ها (سه‌بعدی) ========================== */
.btn {
    --face: linear-gradient(180deg, #25b0b4 0%, var(--teal-600) 48%, var(--teal-700) 100%);
    --edge: #07484e; --ink: #fff; --glow: rgb(31 163 168 / .5);
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 2.9rem; padding: .55rem 1.5rem; border: 0; border-radius: 16px; cursor: pointer;
    font: inherit; font-weight: 700; color: var(--ink); background: var(--face); text-decoration: none;
    text-shadow: 0 1px 0 rgb(0 0 0 / .25);
    box-shadow:
        inset 0 1.5px 0 rgb(255 255 255 / .55),
        inset 0 -3px 0 rgb(0 0 0 / .14),
        0 5px 0 var(--edge),
        0 12px 20px -6px var(--glow);
    transform: translateY(0);
    transition: transform .14s var(--ease), box-shadow .14s var(--ease), filter .2s;
    touch-action: manipulation; user-select: none;
}
.btn::after {              /* برق براق هنگام هاور */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent calc(var(--shine) - 14%), rgb(255 255 255 / .38) var(--shine), transparent calc(var(--shine) + 14%));
    transition: --shine .6s var(--ease);
}
.btn:hover { color: var(--ink); text-decoration: none; transform: translateY(-2px); --shine: 140%; filter: saturate(1.08);
    box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .6), inset 0 -3px 0 rgb(0 0 0 / .14), 0 7px 0 var(--edge), 0 16px 26px -6px var(--glow); }
.btn:active { transform: translateY(4px);
    box-shadow: inset 0 2px 6px rgb(0 0 0 / .25), inset 0 -2px 0 rgb(0 0 0 / .1), 0 1px 0 var(--edge), 0 3px 8px -2px var(--glow); }
.btn:disabled, .btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; filter: grayscale(.4); }

.btn-gold { --face: var(--gold-grad); --edge: #7b5a1b; --ink: #3a2a08; --glow: rgb(207 162 74 / .55); text-shadow: 0 1px 0 rgb(255 255 255 / .45); }
.btn-gold:hover { color: #3a2a08; }
.btn-ghost {
    --face: linear-gradient(180deg, #fffdf6, var(--cream-200)); --edge: #b79a55; --ink: var(--teal-800); --glow: rgb(167 124 42 / .3);
    text-shadow: none; box-shadow: inset 0 1.5px 0 #fff, inset 0 0 0 1.5px rgb(167 124 42 / .4), 0 5px 0 var(--edge), 0 12px 20px -8px var(--glow);
}
.btn-ghost:hover { color: var(--teal-900); box-shadow: inset 0 1.5px 0 #fff, inset 0 0 0 1.5px rgb(167 124 42 / .55), 0 7px 0 var(--edge), 0 16px 26px -8px var(--glow); }
.btn-ghost:active { box-shadow: inset 0 2px 6px rgb(0 0 0 / .18), inset 0 0 0 1.5px rgb(167 124 42 / .5), 0 1px 0 var(--edge); }
.btn-ghost.danger { --ink: var(--danger); color: var(--danger) !important; }
.btn-danger { --face: linear-gradient(180deg, #d4574a, var(--danger)); --edge: #6e1d14; --glow: rgb(179 56 44 / .45); }
.btn-sm { min-height: 2.2rem; padding: .25rem 1rem; font-size: .88rem; border-radius: 13px; box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .5), inset 0 -2px 0 rgb(0 0 0 / .14), 0 4px 0 var(--edge), 0 9px 14px -6px var(--glow); }
.btn-sm.btn-ghost { box-shadow: inset 0 1.5px 0 #fff, inset 0 0 0 1.5px rgb(167 124 42 / .4), 0 4px 0 var(--edge), 0 9px 14px -8px var(--glow); }
.btn-lg { min-height: 3.4rem; padding: .7rem 2rem; font-size: 1.08rem; border-radius: 18px; }
.btn-block { width: 100%; }
.btn .ico { width: 1.15em; height: 1.15em; }

.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-700); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* کلید گرد سه‌بعدی (برای + و − و آیکن‌ها) */
.key {
    --edge: #7b5a1b;
    width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
    color: #3a2a08; background: var(--gold-grad);
    box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .65), inset 0 -3px 0 rgb(0 0 0 / .13), 0 4px 0 var(--edge), 0 9px 14px -4px rgb(207 162 74 / .6);
    transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.key:hover { transform: translateY(-2px); }
.key:active { transform: translateY(3px); box-shadow: inset 0 2px 5px rgb(0 0 0 / .25), 0 1px 0 var(--edge); }
.key .ico { width: 1.3rem; height: 1.3rem; stroke-width: 2.4; }

/* ============================ فرم‌ها ============================ */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .3rem; color: var(--ink-700); }
.input, select.input, textarea.input {
    width: 100%; padding: .7rem 1rem; font: inherit; color: inherit; background: #fffdf8;
    border: 1.5px solid var(--line); border-radius: 14px;
    box-shadow: inset 0 2px 4px rgb(37 28 19 / .07);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--ink-300); }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--teal-500); background: #fff; box-shadow: inset 0 2px 4px rgb(37 28 19 / .05), 0 0 0 4px rgb(31 163 168 / .2); }
.input[dir="ltr"] { direction: ltr; text-align: left; }
.input[type="file"] { padding: .5rem; }
.error { color: var(--danger); font-size: .86rem; margin-top: .25rem; }
.check { display: flex; align-items: center; gap: .55rem; }
input[type="checkbox"], input[type="radio"] { width: 1.2rem; height: 1.2rem; accent-color: var(--teal-600); }
.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.inline-form .input { width: auto; flex: 1 1 150px; }

.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1.1rem; border-radius: var(--r-sm); margin-bottom: 1rem; background: var(--teal-50); color: var(--teal-900); border: 1px solid rgb(21 138 146 / .3); box-shadow: var(--shadow-1); }
.alert-danger { background: #fbe6e2; color: #6e1d14; border-color: rgb(179 56 44 / .35); }

/* ========================= کارت و ظرف‌ها ========================= */
.card {
    position: relative; margin-bottom: 1.2rem; padding: 1.2rem 1.4rem;
    background: linear-gradient(180deg, #fffdf6, var(--cream-50));
    border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: inset 0 1px 0 #fff, var(--shadow-1);
}
.card::before {             /* قاب دوم زرین، مثل کتیبه‌ی سنتی */
    content: ""; position: absolute; inset: 5px; border-radius: calc(var(--r) - 5px); pointer-events: none;
    border: 1px solid rgb(167 124 42 / .16);
}
.card > :last-child { margin-bottom: 0; }
.glass { background: var(--glass); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border: 1px solid rgb(255 255 255 / .55); box-shadow: var(--shadow-2); }

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.container { width: min(1120px, 100%); margin-inline: auto; padding: 1.8rem 1.2rem 2.5rem; }

.stat { display: flex; flex-direction: column; gap: .1rem; overflow: hidden; }
.stat .label { color: var(--ink-500); font-size: .88rem; font-weight: 600; }
.stat .value { font-family: var(--font-title); font-size: 2rem; line-height: 1.4; color: var(--teal-800); }
.stat::after {              /* مدالیون زرین گوشه */
    content: ""; position: absolute; inset-block-start: -26px; inset-inline-end: -26px; width: 90px; height: 90px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgb(241 217 140 / .55), rgb(207 162 74 / .0) 70%);
}

/* ============================== جدول ============================== */
.table-wrap { overflow-x: auto; border-radius: var(--r-sm); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: right; padding: .75rem .9rem; border-bottom: 1px solid rgb(167 124 42 / .18); white-space: nowrap; vertical-align: middle; }
th { color: var(--teal-900); font-size: .82rem; font-weight: 700; background: linear-gradient(180deg, var(--cream-200), #ecdcb2); position: sticky; top: 0; }
th:first-child { border-start-start-radius: var(--r-sm); } th:last-child { border-start-end-radius: var(--r-sm); }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgb(31 163 168 / .07); }
tr:last-child td { border-bottom: 0; }
td.actions, .actions { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }
td.actions { display: table-cell; } td.actions > * { display: inline-flex; vertical-align: middle; margin-inline-end: .35rem; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--teal-100); color: var(--teal-900); border: 1px solid rgb(21 138 146 / .25); }
.badge-gold { background: linear-gradient(180deg, #fbefc4, #f0d98d); color: #6b4d10; border-color: rgb(167 124 42 / .4); }
.badge-ok { background: #d9f0e3; color: #1d5a37; border-color: rgb(44 138 87 / .35); }
.badge-off { background: #eee3d0; color: var(--ink-500); border-color: rgb(122 108 88 / .25); }

.pager { display: flex; gap: .6rem; justify-content: center; margin-top: 1.2rem; }
.pager a, .pager span { padding: .3rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: #fffdf6; font-size: .9rem; box-shadow: var(--shadow-1); }
.pager .disabled { opacity: .5; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.thumb { border-radius: 12px; object-fit: cover; border: 1px solid var(--line); background: var(--cream-200); }
.chips-edit { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.option-admin { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8rem 1rem; margin-bottom: .9rem; background: #fffdf8; }

/* ----- فیلتر (قرص) ----- */
.pills { display: flex; gap: .45rem; flex-wrap: wrap; }
.pill { padding: .25rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fffdf6; color: var(--ink-700); font-size: .86rem; font-weight: 600; box-shadow: 0 2px 0 rgb(167 124 42 / .25); transition: transform .12s, background .2s; }
.pill:hover { background: var(--teal-100); color: var(--teal-900); transform: translateY(-1px); }
.pill.active { background: var(--teal-grad); color: #fff; border-color: var(--teal-800); box-shadow: 0 2px 0 var(--teal-900); }
.pill .count { opacity: .8; margin-inline-start: .25rem; }

/* =========================== نوار بالا (عمومی) =========================== */
.topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .6rem clamp(.9rem, 3vw, 2rem);
    background: var(--glass); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px -16px rgb(11 61 66 / .5);
}
.topbar::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-500), transparent); opacity: .7; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--teal-900); }
.brand:hover { color: var(--teal-900); text-decoration: none; }
.brand-mark { width: 2.6rem; height: 2.6rem; border-radius: 14px; filter: drop-shadow(0 4px 6px rgb(11 61 66 / .35)); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; display: block; }
.brand small { display: block; font-family: var(--font-body); font-size: .7rem; font-weight: 500; color: var(--ink-500); line-height: 1.3; }
.nav { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.nav > a:not(.btn) { padding: .35rem .95rem; border-radius: 999px; color: var(--ink-700); font-weight: 600; transition: background .2s, color .2s; }
.nav > a:not(.btn):hover { background: rgb(21 138 146 / .1); color: var(--teal-800); text-decoration: none; }
.nav > a.active:not(.btn) { background: var(--teal-grad); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 3px 0 var(--teal-900); }
.nav .btn { margin-inline-start: .4rem; }
.nav-toggle { display: none; }

/* ============================ هیرو (صفحه‌ی اصلی) ============================ */
.hero {
    position: relative; isolation: isolate; overflow: clip; color: var(--cream-50);
    min-height: min(88svh, 760px); display: grid; align-items: end;
    padding: clamp(5rem, 14vh, 9rem) clamp(1rem, 4vw, 3rem) 5.5rem;
}
.hero-media {
    position: absolute; inset: -4% 0; z-index: -3;
    background: url("../images/hero.webp") center 40% / cover no-repeat;
    animation: kenburns 28s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(1200px 500px at 85% 15%, rgb(207 162 74 / .22), transparent 60%),
        linear-gradient(180deg, rgb(6 41 45 / .5) 0%, rgb(6 41 45 / .28) 35%, rgb(6 41 45 / .88) 100%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: url("../images/tile-dark.svg") center / 96px; opacity: .55;
    mask-image: linear-gradient(180deg, transparent, #000 80%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 80%);
}
.hero-inner { width: min(1120px, 100%); margin-inline: auto; display: grid; gap: 1.1rem; max-width: 1120px; }
.eyebrow { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; padding: .3rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
    background: rgb(255 250 240 / .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgb(241 217 140 / .5); color: var(--gold-300); }
.hero h1 {
    margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.35; color: var(--cream-50);
    font-size: clamp(2.3rem, 1.2rem + 5.4vw, 4.6rem);
    text-shadow: 0 4px 24px rgb(0 0 0 / .45);
}
.hero h1 em { font-style: normal; background: linear-gradient(180deg, #fff3bf, #f0cf6e 55%, #d9a940); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 rgb(80 55 10 / .55)) drop-shadow(0 6px 14px rgb(0 0 0 / .45)); }
.hero p { max-width: 38rem; font-size: clamp(1rem, .95rem + .4vw, 1.2rem); color: #efe6d0; margin: 0; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; }
.hero-chips { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.hero-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1.1rem; border-radius: 16px; font-size: .9rem; font-weight: 600; color: var(--cream-50);
    background: rgb(255 250 240 / .12); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgb(255 255 255 / .25); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 10px 24px -12px rgb(0 0 0 / .6); }
.hero-chip .ico { color: var(--gold-300); }
.scallop { position: absolute; inset-inline: 0; bottom: -1px; height: 26px; z-index: 1;
    background: radial-gradient(circle at 50% 100%, var(--cream-100) 0 17px, transparent 18px) 0 0 / 38px 26px repeat-x; }
.scallop::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--cream-100); }

.section-title { text-align: center; margin: 0 auto 2rem; max-width: 40rem; }
.section-title p { color: var(--ink-500); }
.ornament { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--gold-600); margin-bottom: .6rem; }
.ornament::before, .ornament::after { content: ""; flex: 0 1 90px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--gold-500)); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }

.feature { text-align: center; padding-top: 3.4rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 #fff, var(--shadow-2); }
.feature .arch {
    position: absolute; inset-block-start: -1.6rem; inset-inline-start: 50%; transform: translateX(50%);
    width: 4.2rem; height: 4.8rem; display: grid; place-items: center; color: var(--cream-50);
    border-radius: 50% 50% 14px 14px / 42% 42% 14px 14px;
    background: var(--teal-grad); border: 3px solid var(--gold-500);
    box-shadow: inset 0 2px 0 rgb(255 255 255 / .35), 0 6px 0 var(--teal-900), 0 14px 22px -8px rgb(11 61 66 / .6);
}
html[dir="rtl"] .feature .arch { transform: translateX(50%); }
.feature .arch .ico { width: 1.8rem; height: 1.8rem; }

.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 3rem); color: var(--cream-50); text-align: center;
    background: linear-gradient(135deg, var(--teal-900), var(--teal-700)); border: 2px solid var(--gold-500);
    box-shadow: inset 0 0 0 5px rgb(6 41 45 / .5), inset 0 0 0 6px rgb(241 217 140 / .35), var(--shadow-2); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("../images/tile-dark.svg") center / 96px; opacity: .8; }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--gold-300); font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
.footer { text-align: center; padding: 2rem 1rem 6rem; color: var(--ink-500); font-size: .88rem; }

/* ================================== منو ================================== */
.menu-hero {
    position: relative; isolation: isolate; overflow: clip; color: var(--cream-50);
    padding: 2.4rem clamp(1rem, 4vw, 3rem) 3.4rem; margin-bottom: 0;
}
.menu-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgb(6 41 45 / .55), rgb(6 41 45 / .9)), url("../images/hero-sm.webp") center / cover; }
.menu-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/tile-dark.svg") center / 96px; opacity: .6; }
.menu-hero-inner { width: min(1120px, 100%); margin-inline: auto; }
.menu-hero h1 { font-family: var(--font-display); color: var(--cream-50); margin: 0 0 .3rem; font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); }
.menu-hero p { color: #e9dfc6; margin: 0; }
.table-pill { display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem; padding: .35rem 1.1rem; border-radius: 999px; font-weight: 700; color: #3a2a08; background: var(--gold-grad); box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 3px 0 var(--gold-700), 0 10px 18px -6px rgb(0 0 0 / .5); }

.menu-tools { position: sticky; top: 3.75rem; z-index: 30; margin: 0 -1.2rem 1rem; padding: .7rem 1.2rem; background: linear-gradient(180deg, var(--cream-100) 55%, transparent); }
.search { position: relative; margin-bottom: .6rem; }
.search .ico { position: absolute; inset-inline-start: 1rem; inset-block-start: 50%; transform: translateY(-50%); color: var(--teal-700); pointer-events: none; }
.search .input { padding-inline-start: 2.8rem; border-radius: 999px; background: #fff; box-shadow: var(--shadow-1), inset 0 2px 4px rgb(37 28 19 / .05); }
.chips { display: flex; gap: .55rem; overflow-x: auto; padding: .35rem .15rem .6rem; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; scroll-snap-align: center; padding: .35rem 1.2rem; border-radius: 14px; font-weight: 700; font-size: .92rem; color: var(--teal-900);
    background: linear-gradient(180deg, #fffdf6, var(--cream-200)); border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 #fff, 0 4px 0 #b79a55, 0 8px 12px -6px rgb(167 124 42 / .5);
    transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.chip:hover { text-decoration: none; transform: translateY(-2px); color: var(--teal-900); }
.chip:active, .chip.active { transform: translateY(3px); background: var(--teal-grad); color: #fff; border-color: var(--teal-800); box-shadow: inset 0 2px 5px rgb(0 0 0 / .25), 0 1px 0 var(--teal-900); }

.menu-section { margin-bottom: 2.2rem; scroll-margin-top: 9.5rem; }
.menu-section > h2 { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.menu-section > h2::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold-500), transparent); }
html[dir="rtl"] .menu-section > h2::after { background: linear-gradient(270deg, var(--gold-500), transparent); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); gap: 1.2rem; }

.card.product {
    --mx: 50%; --my: 0%;
    padding: .7rem .7rem 0; margin: 0; display: flex; flex-direction: column; overflow: visible;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card.product::before { inset: 4px; }
.card.product::after {              /* نور دنبال‌کننده‌ی نشانگر */
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgb(241 217 140 / .38), transparent 65%);
}
@media (hover: hover) {
    .card.product:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 #fff, 0 26px 46px -22px rgb(11 61 66 / .55); }
    .card.product:hover::after { opacity: 1; }
}
.product-media { position: relative; }
.product-img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; background: var(--cream-200);
    border-radius: 50% 50% 16px 16px / 38% 38% 16px 16px; border: 3px solid var(--cream-50); outline: 1.5px solid var(--gold-500);
    box-shadow: 0 10px 22px -12px rgb(37 28 19 / .6); transition: transform .6s var(--ease); }
.card.product:hover .product-img { transform: scale(1.025); }
.product-media .badge { position: absolute; inset-block-start: .6rem; inset-inline-start: -.3rem; z-index: 2; box-shadow: 0 4px 10px -3px rgb(0 0 0 / .35); }
.product-body { padding: .8rem .5rem .2rem; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { margin: 0 0 .15rem; font-size: 1.12rem; }
.product-body p { margin: 0 0 .25rem; line-height: 1.7; }
.product-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .7rem .1rem .8rem; margin-top: auto; }
.price { display: inline-flex; align-items: baseline; gap: .3rem; padding: .15rem .9rem; border-radius: 12px; font-weight: 800; color: #3a2a08;
    background: var(--gold-grad); box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 3px 0 var(--gold-700); text-shadow: 0 1px 0 rgb(255 255 255 / .4); }
.price small { font-size: .72rem; font-weight: 600; }
.product-foot .btn { min-height: 2.5rem; padding-inline: 1.1rem; }
.empty { text-align: center; padding: 2rem 1rem; }

/* ================================ سبد و پنجره‌ها ================================ */
.cart-bar {
    position: fixed; z-index: 60; inset-inline: 0; bottom: calc(.9rem + var(--safe-b)); display: flex; justify-content: center; padding-inline: 1rem; pointer-events: none;
    animation: rise .5s var(--spring) both;
}
.cart-bar[hidden] { display: none; }
.cart-bar .btn { pointer-events: auto; min-height: 3.5rem; width: min(520px, 100%); justify-content: space-between; padding-inline: 1.4rem; font-size: 1rem;
    box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .6), inset 0 -3px 0 rgb(0 0 0 / .12), 0 5px 0 var(--edge), 0 18px 34px -8px rgb(0 0 0 / .5); }
@keyframes rise { from { transform: translateY(140%); opacity: 0; } }

dialog.dialog {
    width: min(500px, 96vw); max-height: 90dvh; padding: 1.3rem 1.4rem 1.2rem; color: var(--ink-900); overflow: auto;
    border: 1.5px solid var(--gold-500); border-radius: var(--r-lg);
    background: linear-gradient(180deg, #fffdf6, var(--cream-100));
    box-shadow: inset 0 0 0 5px var(--cream-50), inset 0 0 0 6px rgb(167 124 42 / .25), 0 40px 80px -20px rgb(6 41 45 / .65);
    opacity: 0; transform: translateY(24px) scale(.97);
    transition: opacity .28s var(--ease), transform .35s var(--spring), overlay .35s allow-discrete, display .35s allow-discrete;
}
dialog.dialog[open] { opacity: 1; transform: none; }
@starting-style { dialog.dialog[open] { opacity: 0; transform: translateY(24px) scale(.97); } }
dialog.dialog::backdrop { background: rgb(6 41 45 / .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .3s, overlay .3s allow-discrete, display .3s allow-discrete; opacity: 0; }
dialog.dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog.dialog[open]::backdrop { opacity: 0; } }
.dialog-actions { display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem; flex-wrap: wrap; }
.dialog-actions strong { font-size: 1.1rem; color: var(--teal-800); }
.option-group { border: 1px solid var(--line); border-radius: var(--r-sm); margin: 0 0 .9rem; padding: .4rem .9rem .7rem; background: #fffdf8; }
.option-group legend { font-weight: 800; padding: 0 .5rem; color: var(--teal-900); }
.option-row { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; cursor: pointer; }
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: .9rem; padding: .75rem 0; border-bottom: 1px dashed var(--line-strong); }
.cart-line-main { flex: 1; min-width: 0; }
.cart-line-qty { display: flex; align-items: center; gap: .5rem; }
.cart-line-total { min-width: 6rem; text-align: left; font-weight: 800; color: var(--teal-800); }
.qty-btn { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--line-strong); font: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--teal-900);
    background: linear-gradient(180deg, #fffdf6, var(--cream-200)); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #b79a55; transition: transform .12s, box-shadow .12s; }
.qty-btn:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgb(0 0 0 / .2); }

/* ============================== پیگیری سفارش ============================== */
.steps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: .4rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; inset-inline: 12%; top: 1.05rem; height: 3px; background: var(--cream-300); border-radius: 3px; }
.steps li { flex: 1; text-align: center; font-size: .85rem; color: var(--ink-500); position: relative; padding-top: 2.6rem; font-weight: 600; }
.steps li::before {
    counter-increment: s; content: counter(s); position: absolute; inset-block-start: 0; inset-inline-start: 50%; transform: translateX(50%);
    width: 2.2rem; height: 2.2rem; line-height: 2.2rem; border-radius: 50%; background: var(--cream-200); color: var(--ink-500); font-weight: 800;
    border: 2px solid var(--cream-300); box-shadow: 0 3px 0 var(--cream-300);
}
.steps li.done { color: var(--teal-800); }
.steps li.done::before { content: "✓"; background: var(--teal-grad); color: #fff; border-color: var(--teal-800); box-shadow: 0 3px 0 var(--teal-900); }
.steps li.current { color: var(--teal-900); font-weight: 800; }
.steps li.current::before { background: var(--gold-grad); color: #3a2a08; border-color: var(--gold-600); box-shadow: 0 3px 0 var(--gold-700), 0 0 0 6px rgb(207 162 74 / .25); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 3px 0 var(--gold-700), 0 0 0 11px rgb(207 162 74 / 0); } }
.order-card { display: block; color: inherit; transition: transform .3s var(--ease), box-shadow .3s; }
.order-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: inset 0 1px 0 #fff, var(--shadow-2); color: inherit; }

/* ================================ ورود ================================ */
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 1.2rem; position: relative; isolation: isolate;
    background: linear-gradient(180deg, rgb(6 41 45 / .78), rgb(6 41 45 / .9)), url("../images/hero-sm.webp") center / cover; }
.auth-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/tile-dark.svg") center / 96px; opacity: .8; }
.auth-card { width: min(440px, 100%); padding: 1.8rem 1.6rem; margin: 0; animation: rise .6s var(--spring) both; }
.auth-card .brand { justify-content: center; margin-bottom: 1.2rem; }

/* ============================== پنل مدیریت ============================== */
.admin { display: grid; grid-template-columns: 272px 1fr; min-height: 100dvh; }
.sidebar {
    position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 1.1rem .9rem 1.5rem; color: #cfe5e4; scrollbar-width: thin;
    background: url("../images/tile-dark.svg") center top / 96px, linear-gradient(180deg, var(--teal-950), var(--teal-900) 60%, #0a3338);
    border-inline-start: 1px solid rgb(241 217 140 / .25);
}
.sidebar::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 3px; background: linear-gradient(180deg, transparent, var(--gold-500), transparent); opacity: .6; }
.sidebar .brand { color: var(--cream-50); padding: .3rem .4rem 1.1rem; }
.sidebar .brand .brand-name { color: var(--cream-50); }
.sidebar .brand small { color: #8fb8b7; }
.sidebar nav a {
    display: flex; align-items: center; gap: .75rem; padding: .6rem .85rem; margin-bottom: .25rem; border-radius: 14px; color: inherit; font-weight: 600;
    transition: background .2s, transform .2s var(--ease), color .2s;
}
.sidebar nav a:hover { background: rgb(255 255 255 / .08); text-decoration: none; color: #fff; transform: translateX(-3px); }
.sidebar nav a.active {
    color: var(--gold-300); background: linear-gradient(270deg, rgb(207 162 74 / .28), rgb(207 162 74 / .06));
    box-shadow: inset -3px 0 0 var(--gold-400), inset 0 1px 0 rgb(255 255 255 / .08), 0 6px 14px -8px rgb(0 0 0 / .5);
}
.sidebar nav a .ico { width: 1.3rem; height: 1.3rem; opacity: .95; }
.sidebar .sep { margin: 1.1rem .8rem .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: #7fa9a8; }
.sidebar nav a.is-disabled { opacity: .45; pointer-events: none; font-size: .86rem; }
.sidebar-card { margin-top: 1.4rem; padding: 1rem; border-radius: var(--r); text-align: center; color: var(--gold-300); font-size: .85rem;
    background: rgb(255 255 255 / .06); border: 1px solid rgb(241 217 140 / .3); backdrop-filter: blur(6px); }
.sidebar-card strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--cream-50); }

.main { min-width: 0; }
.main-head {
    position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1.5rem;
    background: var(--glass); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid var(--line);
}
.main-head strong { font-family: var(--font-title); font-weight: 400; font-size: 1.25rem; color: var(--teal-900); }
.head-actions { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.avatar { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-weight: 800; color: #3a2a08; background: var(--gold-grad); border: 2px solid var(--cream-50); box-shadow: 0 3px 0 var(--gold-700), 0 6px 12px -4px rgb(0 0 0 / .4); }
.main-body { padding: 1.5rem; }
.menu-toggle { display: none; }
.scrim { display: none; }

/* ============================== پنل مشتری ============================== */
.app-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 1rem calc(.55rem);
    background: var(--glass); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid var(--line); }
.customer-body { width: min(760px, 100%); margin-inline: auto; padding: 1.2rem 1rem calc(7rem + var(--safe-b)); }
.profile-hero { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 1.2rem; padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--r-lg); color: var(--cream-50);
    background: linear-gradient(135deg, var(--teal-900), var(--teal-700)); box-shadow: var(--shadow-2); }
.profile-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/tile-dark.svg") center / 96px; opacity: .9; }
.profile-hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
    background: conic-gradient(from var(--angle), var(--gold-300), transparent 30%, var(--gold-500) 55%, transparent 80%, var(--gold-300));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 7s linear infinite; }
@keyframes spin { to { --angle: 360deg; } }
.profile-hero h1 { margin: 0; color: var(--cream-50); font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); }
.profile-hero p { margin: .2rem 0 0; color: #cfe5e4; }
.bottom-nav {
    position: fixed; z-index: 50; inset-inline: .8rem; bottom: calc(.7rem + var(--safe-b)); margin-inline: auto; width: min(460px, calc(100% - 1.6rem));
    display: flex; justify-content: space-around; gap: .2rem; padding: .45rem;
    background: var(--glass-dark); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgb(241 217 140 / .35); border-radius: 26px; box-shadow: 0 20px 40px -12px rgb(6 41 45 / .7), inset 0 1px 0 rgb(255 255 255 / .2);
}
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .35rem .3rem; border-radius: 20px; font-size: .72rem; font-weight: 700; color: #cfe5e4; transition: background .25s, color .25s, transform .25s var(--spring); }
.bottom-nav a .ico { width: 1.5rem; height: 1.5rem; }
.bottom-nav a:hover { color: #fff; text-decoration: none; }
.bottom-nav a.active { color: #3a2a08; background: var(--gold-grad); transform: translateY(-4px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 4px 0 var(--gold-700), 0 12px 18px -6px rgb(0 0 0 / .5); }

/* ======================== نمایش با اسکرول و ورود ======================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
@supports (animation-timeline: scroll()) {
    .hero-media { animation: kenburns 28s ease-in-out infinite alternate, parallax linear both; animation-timeline: auto, scroll(root block); animation-range: normal, 0 90svh; }
    @keyframes parallax { to { translate: 0 12%; } }
}
.install-btn[hidden] { display: none; }

/* ============================== صفحه‌ی آفلاین ============================== */
.offline-page { display: grid; place-items: center; min-height: 100dvh; padding: 1rem; }
.offline-card { text-align: center; max-width: 380px; padding: 2rem; border-radius: var(--r-lg); background: var(--cream-50); border: 1.5px solid var(--gold-500); box-shadow: var(--shadow-2); }

/* ============================= چاپ QR میزها ============================= */
.print-body { background: #fff; }
.print-bar { display: flex; gap: .8rem; padding: 1rem; justify-content: center; }
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; padding: 1rem; max-width: 920px; margin: 0 auto; }
.qr-card { position: relative; text-align: center; padding: 1.3rem 1rem 1.1rem; break-inside: avoid; border-radius: 22px; background: var(--cream-50);
    border: 2px solid var(--gold-500); box-shadow: inset 0 0 0 5px var(--cream-50), inset 0 0 0 6px rgb(167 124 42 / .4); }
.qr-card .brand-mark { width: 3.2rem; height: 3.2rem; margin: 0 auto; display: block; }
.qr-card h2 { margin: .3rem 0 .7rem; font-family: var(--font-display); font-size: 1.6rem; }
.qr-box { width: 210px; height: 210px; margin: 0 auto; background: #fff; padding: 8px; border-radius: 14px; border: 1.5px solid var(--line); }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-table { font-family: var(--font-title); font-size: 2rem; color: var(--teal-800); margin-top: .5rem; }

/* ============================== واکنش‌گرایی ============================== */
@media (max-width: 960px) {
    .admin { grid-template-columns: 1fr; }
    .sidebar { position: fixed; z-index: 70; inset-block: 0; inset-inline-start: 0; width: min(300px, 86vw); height: 100dvh; transform: translateX(105%); transition: transform .35s var(--ease); box-shadow: -20px 0 50px -10px rgb(0 0 0 / .5); }
    html[dir="rtl"] .sidebar { right: 0; left: auto; }
    .sidebar.open { transform: none; }
    .scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgb(6 41 45 / .55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
    .scrim.show { opacity: 1; pointer-events: auto; }
    .menu-toggle { display: inline-flex; }
    .main-body { padding: 1rem; }
    .main-head { padding: .6rem 1rem; }
    .head-actions .hide-sm { display: none; }
}
@media (max-width: 720px) {
    body { font-size: 15.5px; }
    .topbar { padding-block: .5rem; }
    .brand-name { font-size: 1.45rem; }
    .brand small { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav { position: fixed; z-index: 45; inset-inline: .8rem; top: 4.4rem; flex-direction: column; align-items: stretch; gap: .3rem; padding: .8rem;
        background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: var(--r);
        box-shadow: var(--shadow-2); transform-origin: top; transform: scaleY(.9) translateY(-8px); opacity: 0; pointer-events: none; transition: .25s var(--ease); }
    .nav.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav > a { text-align: center; }
    .hero { min-height: 82svh; padding-bottom: 4.5rem; }
    .hero-cta .btn { flex: 1 1 100%; }
    .menu-tools { top: 3.4rem; }
    .products { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .card.product { padding: .5rem .5rem 0; }
    .product-body { padding: .6rem .25rem 0; }
    .product-body h3 { font-size: .98rem; }
    .product-body p { font-size: .8rem; }
    .product-foot { padding-bottom: .6rem; flex-wrap: wrap; }
    .price { font-size: .86rem; padding-inline: .6rem; }
    .product-foot .btn { min-height: 2.3rem; padding-inline: .8rem; font-size: .84rem; }
    dialog.dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92dvh; padding-bottom: calc(1.2rem + var(--safe-b)); transform: translateY(100%); }
    @starting-style { dialog.dialog[open] { transform: translateY(100%); } }
    .steps li { font-size: .74rem; }
    th, td { padding: .6rem .6rem; }
}
@media (max-width: 380px) { .products { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
@media (forced-colors: active) { .btn, .key, .chip { border: 1px solid ButtonText; } }

@media print {
    body { background: #fff !important; }
    .no-print, .print-bar { display: none !important; }
    .qr-sheet { grid-template-columns: repeat(2, 1fr); gap: .6cm; padding: 0; }
    .qr-card { box-shadow: none; }
}

.auth-card.glass { background: rgb(255 250 240 / .94); }

/* ───── فاز ۳: باشگاه مشتریان ───── */
.tier { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .8rem; border-radius: 999px; font-weight: 800; font-size: .85rem; border: 1px solid rgb(167 124 42 / .5); background: linear-gradient(180deg, #fbefc4, #e9c76a); color: #5a3f08; box-shadow: 0 2px 0 rgb(122 88 20 / .35), inset 0 1px 0 #fff8; }
.tier-bronze { background: linear-gradient(180deg, #f3d9bf, #cf9a67); color: #5a3512; }
.tier-silver { background: linear-gradient(180deg, #f4f6f7, #bcc6cb); color: #2f3b40; border-color: rgb(90 110 120 / .5); }
.progress { margin-top: .8rem; height: 10px; border-radius: 999px; background: rgb(255 255 255 / .18); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e9c76a, #fff3c4); transition: width .8s var(--spring, ease); }
.small { font-size: .82rem; }
.bars { display: flex; align-items: flex-end; gap: .6rem; height: 170px; padding-top: 1.2rem; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .25rem; position: relative; }
.bar-fill { width: 100%; max-width: 42px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--teal-500, #158a92), var(--teal-800, #0b4f55)); box-shadow: inset 0 1px 0 #fff4, 0 3px 0 rgb(8 60 66 / .35); min-height: 3px; }
.bar-val { font-size: .7rem; color: var(--ink-500); }
.bar-label { font-size: .75rem; font-weight: 700; color: var(--ink-700); }
.plus { color: #1d5a37; font-weight: 700; }
.minus { color: #9b2c2c; font-weight: 700; }
.notice { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: inherit; }
.notice.unread { border-inline-start: 4px solid var(--gold-500, #c9a13c); background: #fffaf0; }
.bell { position: relative; }
.bell-dot { position: absolute; inset-block-start: -9px; inset-inline-start: -9px; min-width: 22px; height: 22px; padding: 0 .35rem; border-radius: 999px; background: #d92d20; color: #fff; font-size: .8rem; font-weight: 800; line-height: 22px; text-align: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .35); font-variant-numeric: tabular-nums; }
.club-box { border: 1px dashed rgb(167 124 42 / .6); border-radius: var(--r-sm, 12px); padding: .8rem; }
.club-box legend { padding: 0 .4rem; font-weight: 800; color: var(--teal-800, #0b4f55); }
.check-line { display: flex; gap: .5rem; align-items: center; margin: .6rem 0; font-weight: 600; }
@media print {
    .app-bar, .bottom-nav, .no-print { display: none !important; }
    body { background: #fff; }
    .invoice { box-shadow: none; border: 1px solid #999; }
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ───── فاز ۳ب: منوی موبایل، کارت‌های ویژه، ناوبری ───── */
/* دسته‌ها: اسکرول افقی روی لمس */
.menu-tools { min-width: 0; }
.chips { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scroll-snap-type: none; }
.chip { flex: 0 0 auto; white-space: nowrap; }

/* کارت‌های هم‌اندازه */
.products { grid-auto-rows: 1fr; }
.card.product { height: 100%; cursor: pointer; }
.card.product:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.product-img { aspect-ratio: 4 / 3; }
.product-body h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-body p.muted { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.4em; }
.badge-deal { background: linear-gradient(180deg, #f6c9c2, #e08b7f); color: #5b1710; border-color: rgb(155 44 44 / .45); }
.price .old { text-decoration: line-through; font-size: .78em; margin-inline-end: .3rem; }

/* پیشنهاد کافه و تخفیف امروز */
.spotlight { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; margin: 0 0 1.6rem; }
.spot.card.product { flex-direction: row; align-items: center; gap: 1rem; padding: .8rem; height: auto; position: relative; overflow: hidden; }
.spot-img { width: 6.5rem; height: 6.5rem; flex: none; border-radius: 18px; object-fit: cover; box-shadow: 0 6px 0 rgb(167 124 42 / .45), 0 14px 20px -8px rgb(0 0 0 / .4); }
.spot-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.spot-body h3 { margin: 0; font-size: 1.1rem; }
.spot-label { align-self: flex-start; display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--gold-grad); color: #3a2a08; box-shadow: inset 0 1px 0 #fff8, 0 2px 0 var(--gold-700); }
.spot-deal .spot-label { background: linear-gradient(180deg, #f6c9c2, #e08b7f); color: #5b1710; box-shadow: inset 0 1px 0 #fff8, 0 2px 0 #9b4a3f; }
.spot-price { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.spot-price strong { color: var(--teal-800); }
.deal-pct { padding: 0 .55rem; border-radius: 8px; background: #b3382c; color: #fff; font-weight: 800; font-size: .8rem; }

/* پنجره‌ی جزئیات محصول */
dialog.detail { padding: 0; overflow: hidden auto; }
.detail-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream-200); }
.detail-body { padding: 1rem 1.3rem 1.2rem; }
.detail-body h3 { margin: 0 0 .4rem; font-size: 1.4rem; }
.detail-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.detail-desc { line-height: 2; white-space: pre-line; }
.detail-price { display: flex; align-items: baseline; gap: .6rem; font-size: 1.2rem; }
.detail-price strong { color: var(--teal-800); }

/* هدر: دکمه‌های سه‌بعدی و منوی موبایل */
.nav { gap: .5rem; }
.nav .btn { margin-inline-start: 0; }
.nav-scrim { z-index: 44; }
.auth-back { margin: 1.2rem 0 0; text-align: center; }
.nav-avatar { width: 1.5rem; height: 1.5rem; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold-500); }
body.has-bottom-nav { padding-bottom: calc(5.8rem + var(--safe-b)); }
body.has-bottom-nav .cart-bar { bottom: calc(5.4rem + var(--safe-b)); }
body.has-bottom-nav .footer { margin-bottom: 0; }
@media (max-width: 720px) {
    .nav { top: 3.9rem; padding: 1rem; gap: .7rem; border-radius: 24px; }
    .nav .btn { min-height: 3.1rem; justify-content: center; font-size: 1rem; width: 100%; }
    .nav-toggle { min-width: 2.8rem; min-height: 2.8rem; }
    .spot-img { width: 5.2rem; height: 5.2rem; }
    .product-body p.muted { min-height: 3.2em; }
}
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* پروفایل، تب‌ها، آواتار و کارت کاربر ویژه */
.tabs { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem .1rem .8rem; margin-bottom: .4rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem 1rem; border-radius: 14px; font-weight: 700; font-size: .88rem; color: var(--teal-900); background: linear-gradient(180deg, #fffdf6, var(--cream-200)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #b79a55; }
.tab:hover { text-decoration: none; }
.tab.active { background: var(--teal-grad); color: #fff; border-color: var(--teal-800); box-shadow: inset 0 2px 5px rgb(0 0 0 / .25), 0 1px 0 var(--teal-900); transform: translateY(2px); }
.avatar-img { display: inline-block; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-500); box-shadow: 0 6px 0 rgb(167 124 42 / .45), 0 12px 20px -8px rgb(0 0 0 / .5); flex: none; }
.avatar-md { width: 2.6rem; height: 2.6rem; }
.avatar-lg { width: 5rem; height: 5rem; }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--teal-grad); color: #fff; font-family: var(--font-display); font-size: 2rem; }
.hero-user { display: flex; align-items: center; gap: 1rem; }
.avatar-card { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.vip-card { position: relative; overflow: hidden; isolation: isolate; margin-bottom: 1.2rem; padding: 1.2rem 1.4rem; border-radius: 22px; color: #3a2a08; min-height: 11rem; display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(135deg, #fbefc4 0%, #e9c76a 45%, #b98a2c 100%); border: 1.5px solid #fff8; box-shadow: inset 0 1.5px 0 #fff9, 0 8px 0 #8c6414, 0 24px 40px -14px rgb(90 60 10 / .6); }
.vip-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/tile-dark.svg") center / 90px; opacity: .08; }
.vip-shine { position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .55) 50%, transparent 65%); background-size: 250% 100%; animation: vipshine 5s ease-in-out infinite; }
@keyframes vipshine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.vip-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.vip-chip { width: 2.6rem; height: 2rem; border-radius: 7px; background: linear-gradient(135deg, #f7e5a0, #a5791f); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2); }
.vip-name { font-family: var(--font-display); font-size: 1.8rem; }
.vip-bottom { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .vip-shine { animation: none; } }
.detail-img { max-height: 38dvh; }

/* ===== پرداخت ===== */
.pay-methods { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pay-methods form { margin: 0; }
.pay-method { width: 100%; display: flex; align-items: center; gap: .8rem; text-align: start; padding: .8rem 1rem; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, #fffdf8, #f6ecd9); border: 1.5px solid var(--line-strong); font: inherit; color: var(--ink-700);
  box-shadow: 0 4px 0 rgb(122 94 40 / .25); transition: transform .15s, box-shadow .15s, border-color .15s; }
.pay-method strong { display: block; color: var(--teal-900); }
.pay-method small { color: var(--ink-500); }
.pay-method:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold-500, #c89b3c); box-shadow: 0 7px 0 rgb(122 94 40 / .3); }
.pay-method:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgb(122 94 40 / .3); }
.pay-method:disabled { opacity: .5; cursor: not-allowed; }
.pay-method.is-picked { border-color: var(--teal-500); background: linear-gradient(180deg, #eafafa, #d3f1f2); }
.pay-method .pm-ico { width: 2.5rem; height: 2.5rem; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--teal-100); color: var(--teal-800); }
.pay-due { font-size: 1.25rem; color: var(--teal-800); }
.topup-form .topup-quick { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.field-error { color: var(--danger); margin: .3rem 0; }

/* ===== صندوق (POS) ===== */
.pos { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.pos-tools { display: grid; gap: .7rem; margin-bottom: 1rem; }
.pos-cats { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
.pos-cats .pill { flex: 0 0 auto; }
.pos-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pos-item { display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; text-align: start; padding: .8rem; min-height: 5.5rem; border-radius: 16px; cursor: pointer; font: inherit;
  background: linear-gradient(180deg, #fffdf8, #f6ecd9); border: 1.5px solid var(--line-strong); box-shadow: 0 4px 0 rgb(122 94 40 / .25); transition: transform .12s, box-shadow .12s; }
.pos-item[hidden] { display: none; }
.pos-item:active { transform: translateY(3px); box-shadow: 0 1px 0 rgb(122 94 40 / .3); }
.pos-item strong { color: var(--teal-900); }
.pos-item span { color: var(--ink-500); font-size: .88rem; }
.pos-cart { position: sticky; top: 1rem; }
.pos-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pos-lines li { display: grid; grid-template-columns: 1fr auto auto auto; gap: .5rem; align-items: center; padding-bottom: .6rem; border-bottom: 1px dashed var(--line-strong); }
.pos-lines small { display: block; color: var(--ink-500); }
.pos-lines .qty { display: flex; align-items: center; gap: .35rem; }
.pos-lines .qty button, .pos-lines .trash { width: 2rem; height: 2rem; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font: inherit; }
.pos-lines .trash { color: var(--danger); }
.pos-total { display: flex; justify-content: space-between; align-items: center; margin: 1rem 0; font-size: 1.1rem; }
.pos-dialog { border: 0; border-radius: 20px; padding: 1.3rem; max-width: 420px; width: calc(100% - 2rem); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .5); }
.pos-dialog::backdrop { background: rgb(11 61 66 / .55); backdrop-filter: blur(3px); }
.pos-dialog fieldset { border: 1px solid var(--line-strong); border-radius: 12px; margin: 0 0 .8rem; }
.pos-opt { display: block; padding: .25rem 0; }
@media (max-width: 960px) { .pos { grid-template-columns: 1fr; } .pos-cart { position: static; } }

/* ===== افکت ویژه‌ی کارت‌های پیشنهاد و تخفیف ===== */
@property --spin { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.spot.card.product { isolation: isolate; transform-style: preserve-3d; transition: transform .25s ease; will-change: transform; border: 0; }
.spot-ring { position: absolute; inset: 0; border-radius: inherit; padding: 3px; z-index: -1;
  background: conic-gradient(from var(--spin), #f6d77a, #1fa3a8, #fff6d6, #e08b7f, #f6d77a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spot-spin 5s linear infinite; }
.spot.card.product::before { content: ''; position: absolute; inset: 3px; border-radius: inherit; z-index: -1; background: linear-gradient(135deg, #fffdf6, #f9edd0); }
.spot-deal.card.product::before { background: linear-gradient(135deg, #fffaf5, #fde4dc); }
.spot.card.product::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / .75) 50%, transparent 65%); background-size: 250% 100%; background-position: 130% 0; animation: spot-shine 3.6s ease-in-out infinite; mix-blend-mode: soft-light; }
.spot { box-shadow: 0 0 0 0 rgb(246 215 122 / .6), 0 18px 34px -14px rgb(167 124 42 / .6); animation: spot-glow 2.8s ease-in-out infinite; }
.spot-deal { animation-name: spot-glow-red; }
.spot:hover .spot-img { transform: scale(1.08) rotate(-2deg); }
.spot-img { transition: transform .35s cubic-bezier(.2, .8, .2, 1); transform: translateZ(30px); }
.spot-body { transform: translateZ(20px); }
.deal-pct { display: inline-grid; place-items: center; min-width: 3rem; padding: .1rem .6rem; border-radius: 999px; font-weight: 900; color: #fff; background: linear-gradient(180deg, #e8604f, #b3382c); box-shadow: 0 3px 0 #6e1d14; animation: spot-pulse 1.6s ease-in-out infinite; }
.spot-count { font-size: .8rem; font-weight: 800; color: #9b2c2c; font-variant-numeric: tabular-nums; }
.spot-sparks i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #f6d77a; box-shadow: 0 0 10px 3px rgb(246 215 122 / .8); opacity: 0; animation: spot-spark 3s ease-in-out infinite; }
.spot-sparks i:nth-child(1) { top: 12%; inset-inline-start: 8%; }
.spot-sparks i:nth-child(2) { top: 70%; inset-inline-start: 30%; animation-delay: .6s; }
.spot-sparks i:nth-child(3) { top: 20%; inset-inline-end: 12%; animation-delay: 1.2s; }
.spot-sparks i:nth-child(4) { top: 80%; inset-inline-end: 25%; animation-delay: 1.8s; }
.spot-sparks i:nth-child(5) { top: 45%; inset-inline-end: 4%; animation-delay: 2.4s; }
@keyframes spot-spin { to { --spin: 360deg; } }
@keyframes spot-shine { 0%, 40% { background-position: 130% 0; } 100% { background-position: -80% 0; } }
@keyframes spot-glow { 50% { box-shadow: 0 0 0 8px rgb(246 215 122 / 0), 0 22px 40px -12px rgb(207 162 74 / .8); } }
@keyframes spot-glow-red { 0%, 100% { box-shadow: 0 0 0 0 rgb(224 96 79 / .5), 0 18px 34px -14px rgb(179 56 44 / .55); } 50% { box-shadow: 0 0 0 9px rgb(224 96 79 / 0), 0 22px 40px -12px rgb(224 96 79 / .85); } }
@keyframes spot-pulse { 50% { transform: scale(1.1); } }
@keyframes spot-spark { 0%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1.2) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .spot, .spot-ring, .spot.card.product::after, .deal-pct, .spot-sparks i { animation: none !important; } .spot-sparks { display: none; } }

/* ===== مودال پیشنهاد/تخفیف، جستجوی زنده و تقویم ===== */
.promo-dialog { max-width: 520px; overflow: visible; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 20; inset-inline: 0; top: 100%; max-height: 14rem; overflow: auto; margin: .2rem 0 0; padding: .3rem; list-style: none; background: #fff; border: 1.5px solid var(--line-strong); border-radius: 14px; box-shadow: 0 16px 30px -12px rgb(0 0 0 / .4); }
.combo-list li { padding: .45rem .7rem; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; }
.combo-list li small { color: var(--ink-500); }
.combo-list li.is-active, .combo-list li:hover { background: var(--teal-100); }
.combo-empty { color: var(--ink-500); cursor: default !important; }
.jcal { position: relative; }
.jc-pop { margin-top: .4rem; padding: .7rem; background: #fffdf8; border: 1.5px solid var(--line-strong); border-radius: 16px; }
.jc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.jc-head button { width: 2rem; height: 2rem; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-size: 1.1rem; }
.jc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.jc-h { font-weight: 800; color: var(--ink-500); font-size: .8rem; padding: .2rem 0; }
.jc-d { height: 2.3rem; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font: inherit; }
.jc-d:hover { background: var(--teal-100); }
.jc-d.is-today { box-shadow: inset 0 0 0 1.5px var(--gold-500, #c89b3c); }
.jc-d.in-range { background: #d3f1f2; border-radius: 0; }
.jc-d.is-start, .jc-d.is-end { background: var(--teal-700, #11777e); color: #fff; border-radius: 10px; }
.jc-foot { display: flex; gap: .5rem; justify-content: space-between; margin-top: .6rem; }
.weekdays { border: 1px solid var(--line-strong); border-radius: 12px; display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0 0 1rem; }
[data-range-box].is-off { opacity: .45; }
.check-line { display: flex; gap: .5rem; align-items: center; margin-bottom: .9rem; font-weight: 700; }

/* ===== فراخوان گارسون ===== */
.waiter-dialog { border: 3px solid #e0604f; animation: waiter-shake .6s ease-in-out 2; }
.waiter-list { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .6rem; }
.waiter-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .8rem; border-radius: 14px; background: #fff3ef; border: 1px solid #f0b4a9; }
.waiter-list small { display: block; color: var(--ink-500); }
@keyframes waiter-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.call-hint { margin-top: .8rem; padding: .7rem .9rem; border-radius: 14px; background: var(--teal-100); font-size: .88rem; }
.call-hint ul { margin: .3rem 0 .6rem; padding-inline-start: 1.1rem; }
.call-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.call-row select { max-width: 9rem; }
.call-msg { font-size: .85rem; margin-top: .4rem; }
.member-note { margin-top: .6rem; padding: .6rem .8rem; border-radius: 12px; background: linear-gradient(180deg, #fbefc4, #f6e2a4); color: #5a4010; font-size: .88rem; }

/* ===== توست سبد و دکمه‌ی حذف آیکنی ===== */
.cart-toast { position: fixed; z-index: 9999; top: 0; inset-inline: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 2rem); padding: .7rem 1.3rem; border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #168c93, #0f6f76); color: #fff; font-weight: 700; box-shadow: 0 14px 30px -8px rgb(0 0 0 / .45); transform: translateY(-130%); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); pointer-events: none; }
.cart-toast.show { transform: translateY(0); }
.trash-btn { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; margin-top: .3rem; border-radius: 10px; border: 1.5px solid rgb(179 56 44 / .4); background: #fff4f2; color: var(--danger); cursor: pointer; transition: transform .12s, background .12s; }
.trash-btn:hover { background: #ffe3de; transform: translateY(-1px); }
.trash-btn:active { transform: translateY(2px); }
@media (prefers-reduced-motion: reduce) { .cart-toast { transition: none; } }

/* ===== پنل مشتری: سایدبار دسکتاپ / منوی همبرگری موبایل ===== */
.cust-shell { display: block; }
.cust-side { position: fixed; z-index: 60; inset-block: 0; inset-inline-start: 0; width: min(300px, 84vw); transform: translateX(-105%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility .3s;
  padding: 1rem; display: flex; flex-direction: column; gap: 1rem; overflow-y: auto; color: var(--cream-50);
  background: linear-gradient(180deg, var(--teal-900, #0b3d42), #072a2e); box-shadow: -20px 0 50px -10px rgb(0 0 0 / .5); }
html[dir="rtl"] .cust-side { transform: translateX(105%); }
.cust-side.is-open { transform: none !important; visibility: visible; }
.cust-scrim { position: fixed; inset: 0; z-index: 55; background: rgb(7 30 33 / .55); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.cust-scrim.is-open { opacity: 1; pointer-events: auto; }
.cust-user { display: flex; gap: .7rem; align-items: center; padding-bottom: .8rem; border-bottom: 1px solid rgb(255 255 255 / .15); }
.cust-user small { display: block; color: #8fb8b7; }
.cust-nav { display: flex; flex-direction: column; gap: .3rem; }
.cust-nav a { display: flex; align-items: center; gap: .65rem; padding: .65rem .9rem; border-radius: 14px; color: #d9ecea; font-weight: 700; transition: background .15s, transform .15s; }
.cust-nav a:hover { background: rgb(255 255 255 / .09); text-decoration: none; color: #fff; transform: translateX(-3px); }
.cust-nav a.active { background: var(--gold-grad); color: #3a2a08; box-shadow: inset 0 1px 0 #fff8, 0 3px 0 var(--gold-700); }
.cust-side .btn-ghost { align-self: stretch; justify-content: center; }
.hamburger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 2.6rem; height: 2.6rem; padding: 0 .7rem; border-radius: 14px; cursor: pointer; border: 1.5px solid rgb(167 124 42 / .5);
  background: linear-gradient(180deg, #fffdf6, var(--cream-200)); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #b79a55; }
.hamburger span { display: block; height: 2.5px; border-radius: 2px; background: var(--teal-800); transition: transform .25s, opacity .2s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.app-bar { gap: .6rem; }
.app-bar .brand { margin-inline-end: auto; }
body.no-scroll { overflow: hidden; }
@media (min-width: 992px) {
  .hamburger, .cust-scrim { display: none; }
  .cust-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.5rem; max-width: 1280px; margin-inline: auto; padding: 1rem 1.2rem; align-items: start; }
  .cust-side, html[dir="rtl"] .cust-side { position: sticky; top: 4.4rem; inset: auto; transform: none; visibility: visible; width: auto; max-height: calc(100dvh - 5.6rem); border-radius: 22px; box-shadow: 0 18px 40px -20px rgb(0 0 0 / .5); }
  .customer-body { width: 100%; padding-inline: 0; padding-bottom: 3rem; margin: 0; }
  .cust-shell + .bottom-nav { display: none; }
}
.tabs { display: none; }

/* ===== کارت محصول موبایل: کوتاه و یک‌دست ===== */
@media (max-width: 720px) {
  .product-img { aspect-ratio: 3 / 2; }
  .product-body p, .product-body p.muted { display: none; }
  .product-body { padding: .45rem .2rem 0; }
  .product-body h3 { font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
  .product-foot { flex-wrap: nowrap; padding: .4rem 0 .55rem; gap: .4rem; }
  .price { font-size: .8rem; padding-inline: .5rem; white-space: nowrap; }
  .price .old { display: block; font-size: .7rem; }
  .product-foot .btn { min-width: 2.3rem; padding-inline: .55rem; font-size: 0; gap: 0; }
  .product-foot .btn .ico { width: 1.2rem; height: 1.2rem; }
  .products { align-items: stretch; }
}

.jc-pop { max-width: 22rem; }
.promo-dialog { max-height: 92dvh; overflow-y: auto; }
.promo-dialog .combo-list { position: static; margin-top: .3rem; max-height: 11rem; box-shadow: none; }

/* ریشه‌ی کشیدگی کارت موبایل: ویژگی height روی <img> نسبت تصویر را بی‌اثر می‌کرد */
.product-img, .detail-img, .spot-img { height: auto; }
.spot-img { aspect-ratio: 1 / 1; }
@media (max-width: 720px) { .product-img { max-height: 9.5rem; } }

/* ===== تب‌های تنظیمات ===== */
.settings-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.settings-tabs a { padding: .4rem 1rem; border-radius: 14px; font-weight: 700; font-size: .9rem; color: var(--teal-900); background: linear-gradient(180deg, #fffdf6, var(--cream-200)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #b79a55; }
.settings-tabs a:hover { text-decoration: none; }
.settings-tabs a.active { background: var(--teal-grad); color: #fff; border-color: var(--teal-800); box-shadow: inset 0 2px 5px rgb(0 0 0 / .25), 0 1px 0 var(--teal-900); transform: translateY(2px); }

/* ===== فوتر سایت ===== */
.footer-logo { display: block; margin: .3rem auto .5rem; border-radius: 16px; }
.footer-text { margin: 0 0 .8rem; }
.footer-contact { list-style: none; margin: 0 auto .9rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; font-size: .92rem; }
.footer-contact li { display: inline-flex; align-items: center; gap: .4rem; }
.footer-social { list-style: none; margin: 0 auto .8rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.footer-social a { display: flex; flex-direction: column; align-items: center; padding: .45rem 1rem; border-radius: 14px; background: linear-gradient(180deg, #fffdf6, var(--cream-200)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #b79a55; color: var(--teal-900); }
.footer-social a:hover { text-decoration: none; transform: translateY(-2px); }
.footer-social small { color: var(--ink-500); font-size: .72rem; }
.footer-copy { font-size: .8rem; color: var(--ink-500); margin: 0; }

.order-dialog h3 { color: #b3382c; }

/* مودال عمومی */
dialog.dialog-wide { width: min(760px, 96vw); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.dialog-head h3 { margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 .8rem; }
.kv dt { color: var(--ink-500, #6b7a7a); font-size: .85rem; }
.kv dd { margin: 0; }
/* اعداد حسابداری */
.neg { color: #b42318 !important; }
.pos { color: #157347 !important; }
/* چاپ */
.print-only { display: none; }
@media print {
    details, .pagination, .settings-tabs, .sidebar, .main-head, .scrim, .no-print, .acc-nav, .btn, form.filters, .flash, .alert-success { display: none !important; }
    .admin { display: block !important; }
    .main, .main-body { margin: 0 !important; padding: 0 !important; width: 100% !important; }
    .print-only { display: block; }
    body { background: #fff !important; }
    .card { box-shadow: none !important; border: 1px solid #999 !important; break-inside: avoid; }
    table { font-size: 11px; }
    tr { break-inside: avoid; }
}
.browse-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: start; }
.browse-grid section:last-child { grid-column: 1 / -1; }
.browse-item { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; border-radius: var(--r-sm); color: inherit; text-decoration: none; }
.browse-item:hover { background: rgb(0 0 0 / .05); }
.browse-item.on { background: var(--teal-800); color: #fff; }
.browse-item.on .neg, .browse-item.on .pos { color: inherit !important; }

/* محتوا و سرگرمی */
.stories-bar { display: flex; gap: .8rem; overflow-x: auto; padding: .4rem 0 .8rem; scrollbar-width: thin; }
.story-bubble { background: none; border: 0; cursor: pointer; text-align: center; font: inherit; color: inherit; flex: 0 0 auto; width: 4.6rem; }
.story-bubble img { width: 4.2rem; height: 4.2rem; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-500); padding: 2px; background: #fff; }
.story-bubble span { display: block; font-size: .72rem; margin-top: .2rem; }
.story-img { width: 100%; max-height: 70dvh; object-fit: contain; border-radius: 10px; }
/* old */ .ad-slot small { position: absolute; top: .3rem; inset-inline-start: .4rem; background: rgb(0 0 0 / .55); color: #fff; padding: 0 .4rem; border-radius: 4px; font-size: .65rem; }
.gallery-grid { columns: 3 220px; column-gap: .8rem; margin-top: 1rem; }
.gallery-grid figure { margin: 0 0 .8rem; break-inside: avoid; }
.gallery-grid img { width: 100%; border-radius: 10px; display: block; }
.gallery-grid figcaption { font-size: .85rem; padding: .2rem; }

/* سربرگ و پانویس چاپ */
.letterhead { margin-bottom: .6rem; color: #111; }
.lh-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lh-brand { display: flex; align-items: center; gap: .7rem; }
.lh-brand strong { display: block; font-size: 1.5rem; color: #0f4a50; line-height: 1.1; }
.lh-brand small { color: #7a5a1c; }
.lh-contact { text-align: left; font-size: .8rem; color: #333; line-height: 1.6; }
.lh-rule { height: 4px; margin: .5rem 0 .3rem; border-top: 2px solid #0f4a50; border-bottom: 1px solid #a77c2a; }
.lh-title { text-align: center; }
.lh-title h1 { margin: .2rem 0 0; font-size: 1.25rem; }
.lh-title p { margin: .1rem 0 0; color: #444; font-size: .85rem; }
.print-foot { position: fixed; bottom: 0; inset-inline: 0; display: none; justify-content: space-between; border-top: 1px solid #a77c2a; padding: .25rem 0; font-size: .7rem; color: #444; background: #fff; }
@media print {
    .print-foot { display: flex !important; }
    .main-body { padding-bottom: 1.2cm !important; }
    @page { margin: 12mm 10mm 14mm; }
}
@media screen { .force-print .print-only { display: block; } .force-print .print-foot { display: none; } }
.crumbs { margin: .2rem 0 1rem; color: var(--ink-500, #6b7a7a); }
.crumbs a { color: var(--teal-800); }
.tbl-compact th, .tbl-compact td { padding: .45rem .6rem; font-size: .88rem; }
.tbl-compact th { white-space: normal; }
.tbl-compact tfoot th { background: rgb(0 0 0 / .04); }
.tbl-compact tr.row-on td { background: rgb(15 107 114 / .1); }

.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin: .5rem 0 1rem; }
.att { display: flex; flex-direction: column; gap: .3rem; padding: .5rem; border: 1px solid rgb(0 0 0 / .12); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.att:hover { box-shadow: 0 6px 16px rgb(0 0 0 / .1); transform: translateY(-2px); }
.att-thumb { display: grid; place-items: center; height: 90px; border-radius: 8px; background: rgb(15 107 114 / .08); overflow: hidden; color: var(--teal-800); font-size: 1.2rem; }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; }
.att-name { font-weight: 600; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero-band { text-align: center; padding: 1.6rem 1rem; margin-bottom: 1rem; border-radius: 18px; background: linear-gradient(135deg, var(--teal-800), #0b4a50); color: #fff7e6; }
.hero-band h1 { margin: 0 0 .3rem; } .hero-band p { margin: 0; opacity: .9; }
.browse-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; } .browse-bar .input { flex: 1 1 11rem; }
.gcard { cursor: pointer; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid rgb(0 0 0 / .08); box-shadow: 0 2px 8px rgb(0 0 0 / .05); transition: transform .15s, box-shadow .15s; }
.gcard:hover, .gcard:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 22px rgb(0 0 0 / .14); outline: none; }
.gcard[hidden] { display: none; }
.gcard-img { position: relative; aspect-ratio: 4/3; background: rgb(15 107 114 / .08); display: grid; place-items: center; font-size: 3rem; }
.gcard-img img { width: 100%; height: 100%; object-fit: cover; }
.gcard-tag { position: absolute; top: .5rem; inset-inline-start: .5rem; background: var(--gold, #c9a227); color: #2a1f00; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.gcard-body { padding: .8rem 1rem 1rem; } .gcard-body h3 { margin: 0 0 .2rem; }
.game-dialog { max-width: 640px; }
.gm-main { width: 100%; max-height: 340px; object-fit: cover; border-radius: 12px; }
.gm-thumbs { display: flex; gap: .4rem; margin: .5rem 0; overflow-x: auto; } .gm-thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; } .gm-thumbs img:hover { border-color: var(--gold, #c9a227); }
.gm-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin: .6rem 0; }
.gm-video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #000; margin: .5rem 0; }
.gm-call { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; } .gm-call .input { flex: 1 1 10rem; }
tr.row-off td { opacity: .6; }

.rate-chip { position: absolute; bottom: .5rem; inset-inline-end: .5rem; background: rgb(0 0 0 / .72); color: #ffd36b; padding: .1rem .55rem; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.rate-big { font-size: 1.5rem; color: #b8860b; margin: .2rem 0; }
.ev-hero { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 1.5rem; margin-bottom: 1rem; }
@media (max-width: 720px) { .ev-hero { grid-template-columns: 1fr; } }
.ev-posters > img { width: 100%; border-radius: 16px; box-shadow: 0 10px 28px rgb(0 0 0 / .25); aspect-ratio: 2/3; object-fit: cover; }
.ev-noposter { aspect-ratio: 2/3; display: grid; place-items: center; font-size: 4rem; background: rgb(15 107 114 / .08); border-radius: 16px; }
.ev-info h1 { margin: .3rem 0; }
.ev-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin: .8rem 0; }
.ev-meta div { background: rgb(15 107 114 / .07); border-radius: 10px; padding: .45rem .7rem; } .ev-meta dt { font-size: .75rem; color: #6b7a7a; } .ev-meta dd { margin: 0; font-weight: 700; }
.ev-book { border-inline-start: 5px solid var(--gold, #c9a227); }
.browse-grid:has(.gcard) { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.play-chip { position: absolute; inset: auto auto .6rem .6rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--gold, #c9a227); color: #2a1f00; font-size: 1rem; }
.react-bar { display: flex; gap: .5rem; align-items: center; margin-top: .8rem; } .react-bar .btn.on { background: var(--teal-800); color: #fff; }
.gl-item, .thumb-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.gl-item img, .gl-item video { width: 100%; display: block; transition: transform .25s; } .gl-item:hover img, .gl-item:hover video { transform: scale(1.04); }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2rem; text-shadow: 0 2px 8px rgb(0 0 0 / .6); pointer-events: none; }
.thumb-btn { width: 72px; height: 54px; } .thumb-btn img, .thumb-btn video { width: 72px; height: 54px; object-fit: cover; }
.gl-stage { max-height: 70vh; overflow: auto; text-align: center; } .gl-stage img, .gl-stage video { max-width: 100%; max-height: 66vh; border-radius: 10px; }
.gl-stage.zoomed img { max-width: none; max-height: none; width: 180%; cursor: zoom-out; } .gl-stage img { cursor: zoom-in; }
.btn-lg { padding: .75rem 1.6rem; font-size: 1.05rem; }
.hero-band h1 { color: #fff7e6; }

.test-report { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; } .test-report li { padding: .6rem .8rem; border-radius: 10px; background: rgb(0 0 0 / .04); border-inline-start: 4px solid #aaa; }
.test-report li.ok { border-color: #2e8b57; } .test-report li.bad { border-color: #c0392b; background: rgb(192 57 43 / .07); }

.story-ph { display: grid; place-items: center; width: 4.2rem; height: 4.2rem; margin: 0 auto; border-radius: 50%; border: 3px solid var(--gold-500); background: rgb(15 107 114 / .12); font-style: normal; font-size: 1.6rem; }
.story-viewer { border: 0; padding: 0; background: #000; color: #fff; width: min(440px, 100vw); height: min(92dvh, 780px); max-height: 100dvh; border-radius: 18px; overflow: hidden; position: fixed; inset: 0; margin: auto; }
.story-viewer::backdrop { background: rgb(0 0 0 / .82); }
.sv-bars { position: absolute; top: .5rem; inset-inline: .6rem; display: flex; gap: 4px; z-index: 3; direction: ltr; }
.sv-bars span { flex: 1; height: 3px; background: rgb(255 255 255 / .35); border-radius: 3px; overflow: hidden; } .sv-bars i { display: block; height: 100%; width: 0; background: #fff; }
.sv-top { position: absolute; top: 1rem; inset-inline: .8rem; display: flex; justify-content: space-between; align-items: center; z-index: 3; text-shadow: 0 1px 6px #000; }
.sv-x { background: rgb(0 0 0 / .4); color: #fff; border: 0; width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.sv-stage { position: absolute; inset: 0; display: grid; place-items: center; } .sv-stage img, .sv-stage video { width: 100%; height: 100%; object-fit: contain; }
.sv-nav { position: absolute; top: 3.5rem; bottom: 5rem; width: 38%; background: none; border: 0; z-index: 2; cursor: pointer; } .sv-prev { inset-inline-end: 0; } .sv-next { inset-inline-start: 0; }
.sv-foot { position: absolute; bottom: 0; inset-inline: 0; padding: 1rem; z-index: 3; background: linear-gradient(transparent, rgb(0 0 0 / .75)); text-align: center; } .sv-foot p { margin: 0 0 .5rem; }

/* مودال بردگیم */
.gm-main { height: 300px; max-height: 45vh; object-fit: contain; background: rgb(15 107 114 / .08); }
.gm-thumbs img { width: 76px; height: 57px; }
.gm-h { margin: 1rem 0 .4rem; padding-inline-start: .6rem; border-inline-start: 4px solid var(--gold, #c9a227); }
.gm-price { display: grid; gap: .1rem; justify-items: center; text-align: center; margin: .8rem 0; padding: .9rem 1rem; border-radius: 16px; background: linear-gradient(135deg, #0f6b72, #0b4a50); color: #fff7e6; box-shadow: 0 6px 16px rgb(15 107 114 / .3); }
.gm-price-l { font-size: .85rem; opacity: .85; } .gm-price-v { font-size: 1.9rem; color: #ffd36b; line-height: 1.2; } .gm-price-u { font-size: .8rem; opacity: .85; }
/* بزرگ‌نمایی گالری با کادر */
.gz-box { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgb(20 12 4 / .82); backdrop-filter: blur(3px); padding: 1rem; cursor: zoom-out; }
.gz-box[hidden] { display: none; }
.gz-frame-wrap { margin: 0; max-width: 94vw; transform: scale(.55); opacity: 0; transition: transform .28s cubic-bezier(.2, .9, .3, 1.2), opacity .2s; }
.gz-box.on .gz-frame-wrap { transform: scale(1); opacity: 1; }
.gz-frame { padding: 12px; background: linear-gradient(135deg, #f6e3a1, #c9a227 45%, #8a6a12); border-radius: 18px; box-shadow: 0 20px 60px rgb(0 0 0 / .6), inset 0 0 0 2px rgb(255 255 255 / .35); }
.gz-frame img, .gz-frame video { display: block; max-width: calc(94vw - 24px); max-height: 76vh; border-radius: 8px; border: 3px solid #fff7e6; background: #000; }
.gz-cap { margin-top: .7rem; text-align: center; color: #fff7e6; }
.gz-x { position: absolute; top: 1rem; inset-inline-start: 1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: rgb(255 255 255 / .9); cursor: pointer; font-size: 1.1rem; }
/* جزئیات فیلم: پس‌زمینه‌ی سفید شفاف */
.ev-glass { background: rgb(255 255 255 / .82); backdrop-filter: blur(6px); border-radius: 20px; padding: 1.2rem; box-shadow: 0 8px 28px rgb(0 0 0 / .1); border: 1px solid rgb(255 255 255 / .9); }
.ev-glass .ev-meta div { background: rgb(15 107 114 / .09); }

.story-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.scard { background: #fff; border: 1px solid rgb(0 0 0 / .08); border-radius: 16px; padding: .9rem; box-shadow: 0 2px 10px rgb(0 0 0 / .05); display: grid; gap: .7rem; }
.scard.off { opacity: .65; }
.scard-top { display: flex; gap: .7rem; align-items: center; } .scard-top > div { flex: 1; min-width: 0; }
.scard-cover { width: 3.6rem; height: 3.6rem; border-radius: 50%; border: 3px solid var(--gold-500, #c9a227); padding: 2px; overflow: hidden; display: grid; place-items: center; flex: none; background: #fff; }
.scard-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; } .scard-cover i { font-style: normal; font-size: 1.4rem; }
.scard-strip { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; }
.sthumb { position: relative; flex: none; width: 64px; height: 88px; border-radius: 10px; overflow: hidden; background: #000; }
.sthumb img, .sthumb video { width: 100%; height: 100%; object-fit: cover; } .sthumb b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-shadow: 0 1px 4px #000; pointer-events: none; }
.sthumb form { position: absolute; top: 2px; inset-inline-start: 2px; } .sthumb button { width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 0; background: rgb(0 0 0 / .65); color: #fff; font-size: .7rem; cursor: pointer; }
.scard-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: space-between; }

/* اسلایدر تبلیغات */
.ad-slider { position: relative; margin: 1rem auto; max-width: 960px; aspect-ratio: 16 / 5; max-height: 240px; border-radius: 18px; overflow: hidden; background: rgb(15 107 114 / .08); box-shadow: 0 6px 22px rgb(0 0 0 / .14); border: 2px solid rgb(201 162 39 / .55); }
.ad-track, .ad-slide, .ad-slide a { position: absolute; inset: 0; }
.ad-slide { opacity: 0; transition: opacity .7s ease; pointer-events: none; } .ad-slide.on { opacity: 1; pointer-events: auto; }
.ad-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-tag { position: absolute; top: .4rem; inset-inline-start: .5rem; background: rgb(0 0 0 / .55); color: #fff; padding: 0 .45rem; border-radius: 4px; font-size: .65rem; z-index: 3; }
.ad-zoom { position: absolute; bottom: .5rem; inset-inline-start: .5rem; z-index: 3; width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: rgb(255 255 255 / .9); cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.ad-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: rgb(255 255 255 / .85); font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s; }
.ad-slider:hover .ad-nav, .ad-nav:focus-visible { opacity: 1; } .ad-prev { inset-inline-end: .5rem; } .ad-next { inset-inline-start: .5rem; }
.ad-dots { position: absolute; bottom: .5rem; inset-inline: 0; display: flex; justify-content: center; gap: .35rem; z-index: 3; pointer-events: none; }
.ad-dots i { width: .5rem; height: .5rem; border-radius: 50%; background: rgb(255 255 255 / .55); pointer-events: auto; cursor: pointer; } .ad-dots i.on { background: var(--gold, #c9a227); transform: scale(1.3); }
@media (max-width: 600px) { .ad-slider { aspect-ratio: 16 / 7; } }
/* فوتر: کپی‌رایت وسط‌چین با لوگو */
.footer-copy { display: flex; justify-content: center; align-items: center; gap: .6rem; text-align: center; margin-top: .8rem; }
.footer-copy-in { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; } a.footer-copy-in:hover span { text-decoration: underline; }
.footer-copy-logo { height: 40px; width: auto; max-width: 140px; object-fit: contain; }
/* حباب استوری بزرگ‌تر */
.stories-bar { gap: 1.1rem; padding: .6rem .2rem 1rem; }
.story-bubble { width: 6.6rem; }
.story-bubble img, .story-ph { width: 6rem; height: 6rem; border-width: 4px; box-shadow: 0 4px 12px rgb(201 162 39 / .35); }
.story-ph { font-size: 2.2rem; }
.story-bubble span { font-size: .85rem; font-weight: 700; margin-top: .35rem; }
