/* ==========================================================================
   بکرو - استایل صفحات داخلی
   بر پایه توکن‌های رنگی site.css: --ink --green --green2 --orange --cream --muted
   ========================================================================== */
:root {
    --line: #e9e7df;
    --orange-soft: #fff0e5;
    --green-soft: #edf1e9;
    --danger: #c2413b;
    --danger-soft: #fbeceb;
    --info: #3d6a8a;
    --info-soft: #e8f0f5;
    --radius: 12px;
    --shadow: 0 15px 35px #38432f14;
}

body.inner { background: var(--cream); }
body.inner main { min-height: 60vh; }
.container { width: min(1180px, 90%); margin: auto; }
img { max-width: 100%; }

/* ---------- Header (inner pages) ---------- */
.header { border-bottom: 1px solid #0000; }
body.inner .header { position: sticky; top: 0; border-bottom-color: var(--line); }
#nav a { position: relative; padding: 6px 0; color: var(--ink); }
#nav a.active { color: var(--orange); }
#nav a.active:after { content: ""; position: absolute; right: 0; left: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--orange); }
#nav .nav-mobile-extra { display: none; }
.actions a.login { font-size: 13px; font-weight: 700; }
.actions a.add { font-size: 13px; font-weight: 700; }
.bell-link { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.bell-link:hover { background: var(--green-soft); }
.bell-link .dot { position: absolute; top: 9px; left: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; padding: 12px 20px; font-size: 13px; font-weight: 800; cursor: pointer; transition: .2s; white-space: nowrap; background: #fff; color: var(--ink); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #e06f1c; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green2); }
.btn-ghost { background: #fff; border-color: #d9d6cc; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-soft { background: var(--green-soft); color: var(--green); }
.btn-sm { padding: 8px 13px; font-size: 11px; border-radius: 8px; }
.btn-block { width: 100%; }
.link { color: var(--orange); font-weight: 800; font-size: 12px; }
.link:hover { text-decoration: underline; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 20px; font-size: 10px; font-weight: 800; white-space: nowrap; background: var(--info-soft); color: var(--info); }
.b-ok { background: var(--green-soft); color: var(--green2); }
.b-wait { background: var(--orange-soft); color: #c9621a; }
.b-cancel { background: var(--danger-soft); color: var(--danger); }
.b-done { background: #eeeeea; color: var(--muted); }
.b-info { background: var(--info-soft); color: var(--info); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #dedbd1; border-radius: 30px; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--green); }
.chip.active, .chip:has(input:checked) { background: var(--green); border-color: var(--green); color: #fff; }
.chip input { display: none; }
.tagline { display: inline-block; padding: 5px 10px; border-radius: 6px; font-size: 11px; background: var(--green-soft); color: var(--green); font-weight: 700; }

/* ---------- Page head ---------- */
.page-head { background: var(--green); color: #fff; padding: 46px 0 52px; position: relative; overflow: hidden; }
.page-head:before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 120%, #ef7f2d33, transparent 45%), radial-gradient(circle at 90% -20%, #ffffff14, transparent 40%); }
.page-head .container { position: relative; }
.page-head h1 { font-size: 34px; letter-spacing: 0; margin: 10px 0 8px; line-height: 1.5; }
.page-head h1 em { font-style: normal; color: #f8a566; }
.page-head p { margin: 0; color: #dfe5da; font-size: 14px; line-height: 1.9; max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: #cfd8c9; }
.crumbs a:hover { color: #fff; }
.crumbs span:before { content: "/"; margin-left: 8px; opacity: .6; }
.head-tabs { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.head-tabs a { padding: 9px 16px; border-radius: 30px; background: #ffffff14; border: 1px solid #ffffff26; font-size: 12px; font-weight: 700; }
.head-tabs a.active, .head-tabs a:hover { background: var(--orange); border-color: var(--orange); }

/* ---------- Generic boxes ---------- */
.box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.box + .box { margin-top: 16px; }
.box-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.box-title h2, .box-title h3 { margin: 0; font-size: 16px; }
.box h2 { font-size: 17px; }
.box p { line-height: 1.95; font-size: 13px; color: #3c463d; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 24px; }
.mt-sm { margin-top: 12px; }
.sec { padding: 40px 0 80px; }
.sec-title { display: flex; justify-content: space-between; align-items: end; margin: 44px 0 20px; }
.sec-title h2 { margin: 0; font-size: 22px; }
.sec-title h2 em { font-style: normal; color: var(--green2); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 11px; background: var(--orange-soft); color: #8a4a17; font-size: 12px; line-height: 1.9; }
.notice.info { background: var(--info-soft); color: var(--info); }
.notice.ok { background: var(--green-soft); color: var(--green); }
.notice b { white-space: nowrap; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* ---------- List layout + filters ---------- */
.list-layout { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; padding: 34px 0 80px; }
.filters { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters-head h3 { margin: 0; font-size: 15px; }
.f-group { padding: 16px 0; border-bottom: 1px solid #f0eee8; }
.f-group:last-of-type { border-bottom: 0; }
.f-group > b { display: block; font-size: 12px; margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 12px; padding: 5px 0; cursor: pointer; color: #3c463d; }
.check input { width: 17px; height: 17px; accent-color: var(--green); }
.check small { margin-right: auto; color: var(--muted); }
.range-out { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
input[type=range] { width: 100%; accent-color: var(--orange); }
.filter-toggle { display: none; }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; height: 46px; }
.search-box input { flex: 1; border: 0; outline: 0; background: none; font-size: 13px; min-width: 0; }
.search-box span { color: var(--muted); font-size: 18px; }
.toolbar select, .select { height: 46px; border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 0 12px; font: inherit; font-size: 12px; color: var(--ink); }
.result-count { font-size: 12px; color: var(--muted); }
.result-count b { color: var(--ink); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pager a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.pager a.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- Tiles (cards) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tiles.cols-2 { grid-template-columns: repeat(2, 1fr); }
.tiles.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: .25s; position: relative; }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tile-img { height: 200px; background: #cfd6c7 center/cover; position: relative; display: block; }
.tile-img .badge { position: absolute; right: 12px; top: 12px; background: var(--orange); color: #fff; }
.fav { position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; font-size: 19px; cursor: pointer; color: var(--ink); display: grid; place-items: center; line-height: 1; }
.fav.saved { color: var(--orange); }
.tile-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-loc { font-size: 11px; color: var(--orange); font-weight: 700; }
.tile-body h3 { margin: 0; font-size: 16px; line-height: 1.6; }
.tile-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--muted); }
.tile-foot { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: 12px; border-top: 1px solid #f0eee8; }
.tile-foot small { font-size: 10px; color: #888; display: block; }
.tile-foot b { font-size: 15px; color: var(--green); }
.stars { color: var(--orange); font-size: 12px; font-weight: 800; white-space: nowrap; }
.stars small { color: var(--muted); font-weight: 400; }
.tile-person { text-align: center; padding: 26px 18px 18px; align-items: center; }
.tile-person img.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid var(--green-soft); }
.tile-person .tile-foot { width: 100%; }
.skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.skills span { font-size: 10px; padding: 4px 9px; border-radius: 20px; background: var(--green-soft); color: var(--green); font-weight: 700; }
.tile-row { flex-direction: row; }
.tile-row .tile-img { width: 230px; height: auto; min-height: 170px; flex: 0 0 230px; }

/* ---------- Detail pages ---------- */
.detail-head { padding: 28px 0 10px; }
.detail-head .crumbs { color: var(--muted); }
.detail-head .crumbs a:hover { color: var(--orange); }
.detail-head h1 { font-size: 32px; letter-spacing: 0; margin: 12px 0; line-height: 1.5; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-size: 12px; color: var(--muted); }
.detail-meta b { color: var(--ink); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin: 18px 0 28px; }
.gallery-main { height: 440px; border-radius: 16px; background: #cfd6c7 center/cover; position: relative; }
.gallery-main .play { position: absolute; left: 18px; bottom: 18px; background: #172119cc; color: #fff; border: 0; border-radius: 30px; padding: 10px 16px; font-size: 12px; font-weight: 700; cursor: pointer; }
.gallery-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 10px; }
.thumb { border-radius: 12px; background: #cfd6c7 center/cover; cursor: pointer; border: 3px solid transparent; transition: .2s; }
.thumb.active, .thumb:hover { border-color: var(--orange); }
.detail-layout { display: grid; grid-template-columns: 1fr 370px; gap: 28px; align-items: start; padding-bottom: 80px; }
.detail-main { display: grid; gap: 18px; min-width: 0; }
.aside-sticky { position: sticky; top: 100px; display: grid; gap: 16px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fact { background: var(--cream); border-radius: 11px; padding: 14px; }
.fact small { display: block; font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.fact b { font-size: 13px; }
.leader-mini { display: flex; align-items: center; gap: 14px; }
.leader-mini img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.leader-mini b { display: block; font-size: 14px; }
.leader-mini small { font-size: 11px; color: var(--muted); }
.leader-mini .btn { margin-right: auto; }
.timeline { display: grid; gap: 0; }
.day { display: grid; grid-template-columns: 70px 1fr; gap: 16px; position: relative; padding-bottom: 20px; }
.day:before { content: ""; position: absolute; right: 34px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.day:last-child:before { display: none; }
.day-num { width: 70px; height: 34px; border-radius: 20px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; position: relative; }
.day h4 { margin: 6px 0 6px; font-size: 14px; }
.day p { margin: 0; font-size: 12px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; padding: 0; margin: 0; list-style: none; }
.checklist li { font-size: 12px; display: flex; gap: 8px; align-items: center; }
.checklist li:before { content: "✓"; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 10px; font-weight: 900; flex: 0 0 20px; }
.checklist.no li:before { content: "×"; background: var(--danger-soft); color: var(--danger); }
.map { height: 260px; border-radius: 12px; overflow: hidden; background: var(--green-soft); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.book-price small { font-size: 11px; color: var(--muted); }
.book-price b { display: block; font-size: 24px; color: var(--green); margin: 4px 0; }
.book-price s { font-size: 12px; color: #aaa; }
.dates { display: grid; gap: 8px; margin: 16px 0; }
.date-opt { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: 12px; }
.date-opt:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.date-opt input { accent-color: var(--orange); }
.capacity { height: 7px; border-radius: 10px; background: var(--green-soft); overflow: hidden; margin: 8px 0 4px; }
.capacity span { display: block; height: 100%; background: var(--orange); border-radius: 10px; }
.share-row { display: flex; gap: 8px; }
.share-row .btn { flex: 1; }

/* ---------- Reviews / FAQ ---------- */
.rating-sum { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid #f0eee8; margin-bottom: 8px; }
.rating-big { text-align: center; }
.rating-big b { font-size: 42px; display: block; color: var(--green); line-height: 1.2; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 40px 1fr 30px; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.bar i { height: 7px; border-radius: 9px; background: var(--green-soft); overflow: hidden; }
.bar i span { display: block; height: 100%; background: var(--orange); }
.review { padding: 16px 0; border-bottom: 1px solid #f0eee8; }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 10px; }
.review-head .av { width: 38px; height: 38px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 900; }
.review-head b { font-size: 13px; }
.review-head small { display: block; font-size: 10px; color: var(--muted); }
.review-head .stars { margin-right: auto; }
.review p { margin: 10px 0 0; font-size: 12px; }
.reply { margin: 10px 30px 0 0; padding: 10px 14px; background: var(--cream); border-radius: 10px; font-size: 11px; color: #4b544b; border-right: 3px solid var(--green); }
.faq details { border-bottom: 1px solid #f0eee8; padding: 14px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary:after { content: "+"; color: var(--orange); font-size: 18px; }
.faq details[open] summary:after { content: "−"; }
.faq p { margin: 10px 0 0; font-size: 12px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .field > span { font-size: 12px; font-weight: 800; }
.field > label small, .field > span small { font-weight: 400; color: var(--muted); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), .field select, .field textarea { width: 100%; height: 46px; border: 1px solid #dedbd1; border-radius: 10px; background: #fff; padding: 0 13px; font: inherit; font-size: 13px; color: var(--ink); outline: 0; transition: .2s; }
.field textarea { height: auto; min-height: 110px; padding: 12px 13px; line-height: 1.9; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--green2); box-shadow: 0 0 0 3px #52673e1f; }
.field .hint { font-size: 10px; color: var(--muted); }
.upload { border: 2px dashed #d5d1c5; border-radius: 12px; padding: 26px; text-align: center; background: var(--cream); cursor: pointer; font-size: 12px; color: var(--muted); display: block; }
.upload b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 5px; }
.upload input { display: none; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.upload-preview span { width: 76px; height: 60px; border-radius: 9px; background: #cfd6c7 center/cover; }
.editor { border: 1px solid #dedbd1; border-radius: 10px; overflow: hidden; }
.editor-bar { display: flex; gap: 4px; padding: 7px; background: var(--cream); border-bottom: 1px solid #dedbd1; }
.editor-bar button { width: 32px; height: 30px; border: 0; background: #fff; border-radius: 6px; cursor: pointer; font-weight: 800; }
.editor textarea { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.repeat-row { display: grid; grid-template-columns: 1.2fr 1fr .8fr .8fr auto; gap: 8px; align-items: end; padding: 12px; background: var(--cream); border-radius: 11px; margin-bottom: 8px; }
.repeat-row .del { width: 40px; height: 46px; border: 0; border-radius: 10px; background: var(--danger-soft); color: var(--danger); cursor: pointer; font-size: 17px; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 44px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d7d4ca; border-radius: 30px; cursor: pointer; transition: .2s; }
.switch span:before { content: ""; position: absolute; width: 18px; height: 18px; right: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--green2); }
.switch input:checked + span:before { transform: translateX(-20px); }
.opt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.opt-card { border: 1px solid #dedbd1; border-radius: 12px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; font-size: 12px; background: #fff; transition: .2s; }
.opt-card b { font-size: 13px; }
.opt-card small { color: var(--muted); font-size: 11px; line-height: 1.7; }
.opt-card:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.opt-card input { display: none; }
.opt-card .ico { font-size: 22px; color: var(--orange); }

/* ---------- Stepper (multi-step forms) ---------- */
.steps-bar { display: flex; gap: 0; margin-bottom: 22px; counter-reset: s; }
.steps-bar li { list-style: none; flex: 1; text-align: center; font-size: 11px; color: var(--muted); position: relative; font-weight: 700; }
.steps-bar li:before { counter-increment: s; content: counter(s, persian); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; background: #fff; border: 2px solid #dedbd1; color: var(--muted); font-size: 13px; position: relative; z-index: 2; }
.steps-bar li:after { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 2px; background: #dedbd1; z-index: 1; }
.steps-bar li:last-child:after { display: none; }
.steps-bar li.done:before { content: "✓"; background: var(--green); border-color: var(--green); color: #fff; }
.steps-bar li.done:after { background: var(--green); }
.steps-bar li.current { color: var(--ink); }
.steps-bar li.current:before { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }
.step { display: none; }
.step.active { display: block; animation: fade .3s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.counter-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #f0eee8; }
.counter-row b { font-size: 13px; display: block; }
.counter-row small { font-size: 11px; color: var(--muted); }
.counter { display: flex; align-items: center; gap: 12px; }
.counter button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #dedbd1; background: #fff; font-size: 18px; cursor: pointer; }
.counter button:hover { border-color: var(--orange); color: var(--orange); }
.counter output { min-width: 18px; text-align: center; font-weight: 800; }
.summary { display: grid; gap: 10px; font-size: 12px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.summary .total { padding-top: 12px; border-top: 1px dashed #dedbd1; font-size: 15px; font-weight: 900; color: var(--green); }
.summary .off { color: var(--orange); }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; }

/* ---------- Panel layout ---------- */
.panel-wrap { width: min(1260px, 94%); margin: 28px auto 80px; display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.side { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.side-user { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid #f0eee8; }
.side-user img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.side-user b { display: block; font-size: 14px; }
.side-user small { font-size: 10px; color: var(--muted); }
.role-switch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 14px 0; padding: 4px; background: var(--cream); border-radius: 10px; }
.role-switch a { text-align: center; font-size: 10px; font-weight: 800; padding: 7px 2px; border-radius: 7px; color: var(--muted); }
.role-switch a.active { background: var(--green); color: #fff; }
.side-menu { display: grid; gap: 2px; }
.side-menu > a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #3c463d; }
.side-menu > a i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--cream); color: var(--green); font-size: 13px; }
.side-menu > a:hover { background: var(--cream); }
.side-menu > a.active { background: var(--green-soft); color: var(--green); }
.side-menu > a.active i { background: var(--green); color: #fff; }
.side-sub { display: grid; gap: 2px; margin: 2px 38px 6px 0; border-right: 2px solid var(--line); padding-right: 10px; }
.side-sub a { font-size: 12px; padding: 7px 8px; border-radius: 8px; color: var(--muted); font-weight: 700; }
.side-sub a.active { color: var(--orange); background: var(--orange-soft); }
.side-exit { color: var(--danger) !important; margin-top: 8px; }
.side-exit i { background: var(--danger-soft) !important; color: var(--danger) !important; }
.panel-main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.panel-wrap > *, .panel-main > *, .detail-main > *, .stack > *, .grid-2 > *, .grid-3-1 > *, .detail-layout > *, .list-layout > * { min-width: 0; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-title h1 { font-size: 24px; letter-spacing: 0; margin: 0; line-height: 1.5; }
.panel-title p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.stat i { font-style: normal; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--orange-soft); color: var(--orange); flex: 0 0 46px; }
.stat:nth-child(even) i { background: var(--green-soft); color: var(--green); }
.stat small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.stat b { font-size: 18px; }
.stat em { font-style: normal; font-size: 10px; color: var(--green2); font-weight: 800; display: block; margin-top: 3px; }
.stat em.down { color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0eee8; }
.list-item:last-child { border-bottom: 0; }
.list-item img, .list-item .thumb-sq { width: 54px; height: 54px; border-radius: 11px; object-fit: cover; background: #cfd6c7 center/cover; flex: 0 0 54px; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item b { font-size: 13px; display: block; }
.list-item small { font-size: 11px; color: var(--muted); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 640px; }
.table th { text-align: right; font-size: 11px; color: var(--muted); font-weight: 800; padding: 14px 16px; background: #fbfaf6; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid #f3f1ec; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfbf8; }
.table tr[data-open] { cursor: pointer; }
.amount-in { color: var(--green2); font-weight: 800; white-space: nowrap; }
.amount-out { color: var(--danger); font-weight: 800; white-space: nowrap; }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.cell-user .thumb-sq { width: 48px; height: 38px; border-radius: 8px; background: #cfd6c7 center/cover; }
.actions-cell { display: flex; gap: 6px; }
.table-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.table-filters .field { min-width: 150px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { border: 0; background: none; padding: 12px 16px; font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs .active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------- Calendar ---------- */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-head b { font-size: 15px; }
.cal-head button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .wd { text-align: center; font-size: 10px; color: var(--muted); font-weight: 800; padding: 4px 0; }
.cal .d { aspect-ratio: 1 / .85; border-radius: 10px; border: 1px solid #f0eee8; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; cursor: pointer; position: relative; transition: .15s; gap: 2px; font-family: inherit; color: var(--ink); padding: 0; }
.cal .d small { font-size: 8px; font-weight: 700; color: var(--muted); }
.cal .d:hover { border-color: var(--orange); }
.cal .d.empty { visibility: hidden; }
.cal .d.off { background: #f4f3ef; color: #b4b4ad; cursor: not-allowed; }
.cal .d.free { background: var(--green-soft); border-color: #cfdcc4; color: var(--green); }
.cal .d.event:after { content: ""; position: absolute; bottom: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.cal .d.selected { background: var(--orange); border-color: var(--orange); color: #fff; }
.cal .d.selected small { color: #fff; }
.cal .d.today { outline: 2px solid var(--green); outline-offset: -2px; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 11px; color: var(--muted); }
.cal-legend span:before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 4px; margin-left: 6px; vertical-align: -1px; background: var(--c); }

/* ---------- Wallet ---------- */
.wallet-card { background: linear-gradient(135deg, var(--green) 0%, #26351f 100%); color: #fff; border-radius: 18px; padding: 26px; position: relative; overflow: hidden; }
.wallet-card:after { content: ""; position: absolute; left: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: #ef7f2d2e; }
.wallet-card small { color: #cfd8c9; font-size: 12px; }
.wallet-card .bal { font-size: 34px; font-weight: 900; margin: 8px 0 4px; position: relative; z-index: 2; }
.wallet-card .bal span { font-size: 14px; font-weight: 400; color: #cfd8c9; }
.wallet-card .row { position: relative; z-index: 2; margin-top: 18px; flex-wrap: wrap; }
.wallet-card .btn-ghost { background: #ffffff14; border-color: #ffffff33; color: #fff; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bank-card { border-radius: 16px; padding: 20px; color: #fff; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; position: relative; background: linear-gradient(135deg, #35472c, #52673e); }
.bank-card.c2 { background: linear-gradient(135deg, #b85a1b, #ef7f2d); }
.bank-card.c3 { background: linear-gradient(135deg, #172119, #3b4a3c); }
.bank-card .num { font-size: 18px; letter-spacing: 2px; direction: ltr; text-align: left; font-weight: 800; }
.bank-card small { font-size: 11px; opacity: .85; }
.bank-card .del { position: absolute; left: 14px; top: 14px; border: 0; background: #ffffff26; color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 11px; cursor: pointer; }
.chart { display: flex; align-items: end; gap: 10px; height: 160px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .col span { width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px; background: var(--green-soft); transition: .3s; }
.chart .col:hover span, .chart .col.hi span { background: var(--orange); }
.chart .col small { font-size: 10px; color: var(--muted); }
.receipt { text-align: center; padding: 30px 20px; }
.receipt .ok-ico { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 34px; background: var(--green-soft); color: var(--green); }
.receipt h2 { margin: 0 0 8px; }
.receipt .summary { max-width: 380px; margin: 20px auto; text-align: right; }

/* ---------- Modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: #17211999; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; animation: fade .2s; }
.modal-box { background: #fff; border-radius: 16px; width: min(520px, 100%); max-height: 90vh; overflow: auto; padding: 24px; }
.modal-box .box-title { margin-bottom: 18px; }
.modal-close { border: 0; background: var(--cream); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.toast { position: fixed; z-index: 200; bottom: 30px; left: 50%; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 12px; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: .3s; box-shadow: 0 12px 30px #0003; max-width: 90%; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - 82px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?q=80&w=1400&auto=format&fit=crop') center/cover; position: relative; display: flex; align-items: flex-end; padding: 50px; color: #fff; }
.auth-art:before { content: ""; position: absolute; inset: 0; background: linear-gradient(#10191222, #101912dd); }
.auth-art div { position: relative; }
.auth-art h2 { font-size: 30px; margin: 0 0 10px; line-height: 1.6; }
.auth-art h2 em { font-style: normal; color: var(--orange); }
.auth-art p { color: #dfe5da; font-size: 13px; line-height: 1.9; max-width: 420px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-form > div { width: min(400px, 100%); }
.auth-form h1 { font-size: 26px; letter-spacing: 0; margin: 0 0 6px; }
.otp { display: flex; gap: 8px; direction: ltr; justify-content: center; }
.otp input { width: 52px !important; height: 56px !important; text-align: center; font-size: 20px !important; font-weight: 800; padding: 0 !important; }

/* ---------- Misc ---------- */
.menu-list { display: grid; gap: 10px; }
.menu-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid #f0eee8; border-radius: 12px; }
.menu-item span.img { width: 64px; height: 64px; border-radius: 10px; background: #cfd6c7 center/cover; flex: 0 0 64px; }
.menu-item b { font-size: 13px; display: block; }
.menu-item small { font-size: 11px; color: var(--muted); }
.menu-item .price-tag { margin-right: auto; font-weight: 900; color: var(--green); font-size: 13px; white-space: nowrap; }
.hours { display: grid; gap: 6px; font-size: 12px; }
.hours div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #eee; }
.hours .today { color: var(--orange); font-weight: 800; }
.info-list { display: grid; gap: 12px; font-size: 12px; }
.info-list div { display: flex; gap: 10px; align-items: flex-start; }
.info-list i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: 0 0 30px; }
.profile-hero { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: center; margin-top: 26px; }
.profile-hero img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 6px solid var(--green-soft); }
.profile-hero h1 { font-size: 28px; letter-spacing: 0; margin: 0 0 6px; line-height: 1.5; }
.profile-hero .skills { justify-content: flex-start; margin-top: 12px; }
.profile-stats { display: flex; gap: 22px; margin-top: 14px; }
.profile-stats div b { display: block; font-size: 18px; color: var(--green); }
.profile-stats div small { font-size: 11px; color: var(--muted); }
.steps-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.how b.n { width: 42px; height: 42px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; font-size: 17px; margin-bottom: 14px; }
.how h3 { margin: 0 0 8px; font-size: 15px; }
.how p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.9; }
.search-group + .search-group { margin-top: 30px; }
.notif { display: flex; gap: 14px; padding: 16px; border-radius: 12px; align-items: flex-start; }
.notif + .notif { border-top: 1px solid #f0eee8; }
.notif.unread { background: #fffaf5; }
.notif i { font-style: normal; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: 0 0 42px; font-size: 17px; }
.notif.unread i { background: var(--orange-soft); color: var(--orange); }
.notif b { font-size: 13px; display: block; margin-bottom: 4px; }
.notif p { margin: 0; font-size: 12px; color: #4b544b; line-height: 1.8; }
.notif small { margin-right: auto; font-size: 10px; color: var(--muted); white-space: nowrap; }
.plan-day { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.plan-day h4 { margin: 0 0 10px; font-size: 13px; display: flex; justify-content: space-between; }
.plan-item { display: flex; gap: 10px; align-items: center; padding: 9px; border-radius: 9px; background: var(--cream); font-size: 12px; margin-bottom: 6px; }
.plan-item .t { font-size: 10px; color: var(--muted); white-space: nowrap; }
.plan-item .k { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: 0 0 8px; }
.plan-item .k.g { background: var(--green2); }
.plan-item .k.b { background: var(--info); }
.sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 34px 0 80px; }
.sitemap .box a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #eee; font-size: 13px; }
.sitemap .box a:hover { color: var(--orange); }
.sitemap .box a small { color: var(--muted); direction: ltr; font-size: 10px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 13px; }
.empty-state b { display: block; font-size: 40px; color: #d5d1c5; }
.progress { height: 8px; background: var(--green-soft); border-radius: 9px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green2); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .tiles.cols-4 { grid-template-columns: repeat(3, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .facts { grid-template-columns: repeat(2, 1fr); }
    .steps-how { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
    .header .actions .bell-link { display: none; }
    .list-layout { grid-template-columns: 1fr; padding-top: 20px; }
    .filters { position: fixed; inset: 0 0 0 auto; width: min(340px, 88%); z-index: 90; border-radius: 0; overflow-y: auto; transform: translateX(110%); transition: .3s; top: 0; box-shadow: -10px 0 40px #0003; }
    .filters.open { transform: none; }
    .filter-toggle { display: inline-flex; }
    .tiles, .tiles.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .aside-sticky { position: static; }
    .gallery { grid-template-columns: 1fr; }
    .gallery-main { height: 320px; }
    .gallery-side { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); height: 90px; }
    .panel-wrap { grid-template-columns: 1fr; margin-top: 16px; }
    .side { position: static; padding: 12px; }
    .side-user { display: none; }
    .role-switch { margin: 0 0 10px; }
    .side-menu { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
    .side-menu::-webkit-scrollbar { display: none; }
    .side-menu > a { white-space: nowrap; padding: 8px 12px; font-size: 12px; background: var(--cream); }
    .side-menu > a i { display: none; }
    .side-sub { display: none; }
    .grid-2, .grid-3-1 { grid-template-columns: 1fr; }
    .auth { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .profile-hero { grid-template-columns: 110px 1fr; }
    .profile-hero img { width: 110px; height: 110px; }
    .profile-hero > .aside-actions { grid-column: 1 / -1; }
    .sitemap { grid-template-columns: repeat(2, 1fr); }
    .tile-row { flex-direction: column; }
    .tile-row .tile-img { width: auto; flex: none; height: 180px; }
}

@media (max-width: 560px) {
    /* هدر صفحات داخلی در موبایل */
    body.inner .header { position: sticky; height: 64px; background: #fff; padding: 0 16px; box-shadow: 0 4px 16px #0000000d; }
    body.inner .header .logo { color: var(--ink); font-size: 26px; }
    body.inner .header .menu { width: 40px; height: 40px; box-shadow: none; background: var(--cream); }
    body.inner .header .actions .bell-link { display: grid; background: var(--cream); }
    .header nav.open { display: flex !important; position: absolute; top: 64px; right: 0; left: 0; background: #fff; padding: 18px 24px; flex-direction: column; gap: 14px; box-shadow: 0 14px 30px #0002; z-index: 30; }
    .header nav.open .nav-mobile-extra { display: block; color: var(--orange); }
    body:not(.inner) .header nav.open { top: 88px; border-radius: 0 0 18px 18px; }
    body:not(.inner) .header .actions .bell-link { display: grid; width: 44px; height: 44px; background: #fff; box-shadow: 0 5px 20px #0002; }
    body.inner .header { position: sticky !important; }
    .page-head { padding: 28px 0 32px; }
    .page-head h1 { font-size: 24px; }
    .page-head p { font-size: 12px; }
    .container { width: 92%; }
    .tiles, .tiles.cols-2, .tiles.cols-4 { grid-template-columns: 1fr; }
    .tile-img { height: 180px; }
    .toolbar .search-box { order: -1; flex-basis: 100%; }
    .toolbar select { flex: 1; }
    .detail-head h1 { font-size: 22px; }
    .gallery-main { height: 240px; border-radius: 12px; }
    .gallery-side { height: 64px; }
    .facts { grid-template-columns: 1fr 1fr; }
    .checklist { grid-template-columns: 1fr; }
    .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
    .repeat-row { grid-template-columns: 1fr 1fr; }
    .repeat-row .del { width: 100%; }
    .box { padding: 16px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { flex-direction: column; align-items: flex-start; padding: 14px; gap: 10px; }
    .stat b { font-size: 15px; }
    .panel-title h1 { font-size: 20px; }
    .rating-sum { grid-template-columns: 1fr; }
    .profile-hero { grid-template-columns: 1fr; text-align: center; padding: 20px; }
    .profile-hero img { margin: auto; }
    .profile-hero .skills, .profile-stats { justify-content: center; }
    .steps-how { grid-template-columns: 1fr; }
    .sitemap { grid-template-columns: 1fr; }
    .steps-bar li { font-size: 9px; }
    .wallet-card .bal { font-size: 26px; }
    .day { grid-template-columns: 56px 1fr; }
    .day-num { width: 56px; }
    .day:before { right: 27px; }
    .toast { bottom: 96px; }
    .sec-title h2 { font-size: 18px; }
    .panel-wrap { width: 92%; margin-bottom: 30px; }
    .list-item { flex-wrap: wrap; }
    .list-item .grow { flex: 1 1 150px; }
    .actions-cell { flex-wrap: wrap; }
    .share-row { flex-wrap: wrap; }
    .mobile-book { position: fixed; z-index: 45; right: 3%; left: 3%; bottom: 80px; background: #fff; border-radius: 16px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 8px 30px #0003; }
    .mobile-book b { color: var(--green); font-size: 14px; display: block; }
    .mobile-book small { font-size: 10px; color: var(--muted); }
}
.mobile-book { display: none; }
@media (max-width: 560px) { .mobile-book { display: flex; } }
