/* فونت ایران‌یکان (fontiran.com)؛ وزن‌های موجود: نازک، سبک، معمولی، متوسط. وزن‌های پررنگ‌تر از «متوسط» از همان فایل متوسط استفاده می‌کنند */
@font-face {
  font-family: "IRANYekan";
  src: url("fonts/iranyekan-thin.woff2") format("woff2");
  font-weight: 100 200; font-display: swap;
}
@font-face {
  font-family: "IRANYekan";
  src: url("fonts/iranyekan-light.woff2") format("woff2");
  font-weight: 300; font-display: swap;
}
@font-face {
  font-family: "IRANYekan";
  src: url("fonts/iranyekan-regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "IRANYekan";
  src: url("fonts/iranyekan-medium.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
:root {
  --bg: #F4F4F8;
  --surface: #FFFFFF;
  --surface-2: #FAFAFC;
  --ink: #1C1A2E;
  --muted: #6A6785;
  --line: #E5E3EE;
  --brand: #6D28D9;
  --brand-deep: #4C1D95;
  --brand-soft: #EDE9FE;
  --out: #C2261D;       /* پرداختی */
  --out-soft: #FDECEA;
  --in: #15803D;        /* دریافتی */
  --in-soft: #E6F6EC;
  --warn: #92400E;
  --warn-soft: #FEF3C7;
  --radius: 14px;
  color-scheme: light;
}
/* تم تیره: یا انتخاب دستی کاربر (data-theme روی html)، یا تنظیم سیستم وقتی کاربر چیزی انتخاب نکرده */
:root[data-theme="dark"] {
  --bg: #0E0D16;
  --surface: #17151F;
  --surface-2: #1D1B27;
  --ink: #EDEBF5;
  --muted: #9C99B3;
  --line: #2A2737;
  --brand: #8B5CF6;
  --brand-deep: #2E1065;
  --brand-soft: #2A2145;
  --out: #F87171;
  --out-soft: #3A1D1F;
  --in: #4ADE80;
  --in-soft: #16301F;
  --warn: #FBBF24;
  --warn-soft: #3A2E12;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0D16;
    --surface: #17151F;
    --surface-2: #1D1B27;
    --ink: #EDEBF5;
    --muted: #9C99B3;
    --line: #2A2737;
    --brand: #8B5CF6;
    --brand-deep: #2E1065;
    --brand-soft: #2A2145;
    --out: #F87171;
    --out-soft: #3A1D1F;
    --in: #4ADE80;
    --in-soft: #16301F;
    --warn: #FBBF24;
    --warn-soft: #3A2E12;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.75 "IRANYekan", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { line-height: 1.35; margin: 0; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* چیدمان: نوار کناری در دسکتاپ، نوار پایین در موبایل */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: linear-gradient(to left, var(--brand-deep) 240px, transparent 240px); }
.side {
  position: sticky; top: 0; height: 100vh; z-index: 40;  /* بالای محتوا، تا پنجره اعلان‌ها زیر کارت‌ها نرود */
  background: var(--brand-deep); color: #fff;
  display: flex; flex-direction: column; gap: 6px; padding: 24px 16px;
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; margin: 0 6px 18px; }
.logo:hover { text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.side .new {
  display: block; text-align: center; background: #fff; color: var(--brand-deep);
  font-weight: 700; padding: 10px; border-radius: 10px; margin-bottom: 14px;
}
.side .new:hover { text-decoration: none; background: #F3EEFF; }
.side nav a { display: block; color: #DDD6FE; padding: 9px 14px; border-radius: 10px; margin-bottom: 2px; }
.side nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.side nav a.on { background: rgba(255,255,255,.16); color: #fff; font-weight: 700; }
.who { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 2px; font-size: 13px; color: #C4B5FD; }
.who b { color: #fff; font-size: 14px; }
.who span { text-align: right; }
.link { background: none; border: 0; padding: 0; color: #C4B5FD; font: inherit; cursor: pointer; text-align: right; margin-top: 6px; }
.link:hover { color: #fff; }

.main { padding: 32px 40px 24px; max-width: 1000px; width: 100%; margin-inline: auto; display: flex; flex-direction: column; min-height: 100vh; }
.main > .credit { margin-top: auto; }  /* امضا همیشه پایین صفحه، حتی وقتی محتوا کوتاه است */
.tabbar { display: none; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.page-head p { margin: 2px 0 0; }
.back { font-size: 13px; color: var(--muted); }
.back::before { content: "→ "; }

/* کارت‌ها و خلاصه‌ها */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sums { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; display: grid; color: var(--ink); }
.sum:hover { text-decoration: none; }
.sum span { color: var(--muted); font-size: 13px; }
.sum b { font-size: 26px; font-weight: 800; line-height: 1.4; }
.sum small { color: var(--muted); font-size: 12px; }
.sum.out b { color: var(--out); }
.sum.in b { color: var(--in); }
.sum.late { background: var(--out-soft); border-color: transparent; }
.sum.late b { color: var(--out); }

.tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 2px; }
.tabs a { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; white-space: nowrap; }
.tabs a:hover { text-decoration: none; border-color: var(--brand); }
.tabs a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabs i { font-style: normal; opacity: .6; font-size: 12px; margin-right: 2px; }

/* فهرست قسط‌ها */
.list { overflow: hidden; margin-bottom: 14px; }
.item {
  display: flex; align-items: center; gap: 14px; padding: 13px 18px;
  border-bottom: 1px solid var(--line); color: var(--ink); flex-wrap: wrap;
}
.item:last-child { border-bottom: 0; }
a.item:hover, .item-main:hover { text-decoration: none; background: var(--surface-2); }
.item-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 200px; color: var(--ink); margin: -13px 0; padding: 13px 0; }
.item-main:hover { background: none; }
.item-main:hover b { color: var(--brand); }
.item-text { display: grid; flex: 1; min-width: 0; }
.item-text b { font-weight: 600; }
.item-text small { color: var(--muted); font-size: 13px; }
.item.done { color: var(--muted); }
.item.done .amount { color: var(--muted); }
.dir { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; flex: none; }
.dir.out { background: var(--out-soft); color: var(--out); }
.dir.in { background: var(--in-soft); color: var(--in); }
.num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; flex: none; }
.amount { font-weight: 700; font-size: 16px; white-space: nowrap; }
.amount.out { color: var(--out); }
.amount.in { color: var(--in); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; flex: none; }
.phone { text-align: right; }
.balances { display: grid; text-align: left; font-size: 13px; font-weight: 600; }
.balances .in { color: var(--in); }
.balances .out { color: var(--out); }

.pill { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.pill.late { background: var(--out-soft); color: var(--out); }
.pill.near { background: var(--warn-soft); color: var(--warn); }
.pill.wait { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.paid { background: var(--in-soft); color: var(--in); }
.tag { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 6px; margin-left: 6px; }
.tag.out { background: var(--out-soft); color: var(--out); }
.tag.in { background: var(--in-soft); color: var(--in); }

.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: -6px 0 18px; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

details.edit summary { font-size: 13px; color: var(--muted); cursor: pointer; list-style: none; padding: 4px 6px; border-radius: 6px; }
details.edit summary::-webkit-details-marker { display: none; }
details.edit summary:hover { color: var(--brand); background: var(--brand-soft); }
details.edit[open] { width: 100%; }
details.edit[open] summary { width: max-content; margin-right: 44px; }
.edit-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 44px 4px 0; }
.edit-form input { width: 150px; }
.settings-box { padding: 4px 20px; margin-top: 18px; }
.settings-box summary { padding: 12px 0; cursor: pointer; font-weight: 600; }

/* دکمه‌ها */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #fff; border: 1px solid transparent;
  font: 600 15px/1 "IRANYekan", Tahoma, sans-serif;
  padding: 12px 22px; border-radius: 10px; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.wide { width: 100%; }
.btn.small { font-size: 13px; padding: 7px 12px; border-radius: 8px; }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); background: var(--brand-soft); filter: none; }
.btn.plain { background: transparent; color: var(--muted); border-color: transparent; }
.btn.danger { background: transparent; color: var(--out); border-color: var(--out-soft); }
.btn.danger:hover { background: var(--out-soft); filter: none; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* فرم‌ها */
.form { padding: 24px; display: grid; gap: 6px; }
.form > h2 { margin-bottom: 8px; }
label { font-size: 14px; font-weight: 600; margin-top: 8px; display: block; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 4px;
}
/* فلش سفارشی برای لیست‌های کشویی (فلش پیش‌فرض مرورگر در راست‌به‌چپ جای درستی نمی‌نشیند) */
select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding: 10px 12px 10px 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A87A3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center; background-size: 16px;
  text-overflow: ellipsis;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[dir="ltr"] { text-align: left; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0 16px; }
.jdate { display: grid; grid-template-columns: 88px 1fr 104px; gap: 8px; }
.edit-form .jdate { grid-template-columns: 84px 120px 100px; }
.jdate select { margin-top: 4px; }
.choice { border: 0; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.opt { margin: 0; cursor: pointer; position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: grid; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; }
.opt small { font-weight: 400; color: var(--muted); font-size: 13px; }
.opt.out input:checked + span { border-color: var(--out); background: var(--out-soft); }
.opt.in input:checked + span { border-color: var(--in); background: var(--in-soft); }
.opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; margin-top: 12px; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--brand); flex: none; }
.check > span { display: grid; }
.check small { color: var(--muted); font-size: 13px; }
.check.soon { cursor: default; opacity: .6; }
.check.soon .pill { margin-inline-start: 6px; font-weight: 500; }
.notify { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 16px; margin-top: 8px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.form-foot .btn { margin-right: auto; }
.total { margin: 0; color: var(--muted); }
.total b { color: var(--ink); font-size: 18px; }
.danger-zone { margin-top: 14px; padding-bottom: 14px; }
.settings-box .danger-zone { border-top: 1px solid var(--line); padding-top: 14px; }

.flashes { display: grid; gap: 8px; margin-bottom: 16px; }
.flash { margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.flash.error { background: var(--out-soft); color: var(--out); }
.flash.ok { background: var(--in-soft); color: var(--in); }
.flash.dev { background: var(--warn-soft); color: var(--warn); }

.empty { text-align: center; padding: 40px 24px; }
.empty p { max-width: 460px; margin: 6px auto 20px; }

/* ورود */
.solo { min-height: 100vh; display: grid; place-items: center; grid-template-rows: 1fr auto; padding: 24px 16px; }
.solo > .flashes { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); z-index: 5; }
.auth { width: 100%; max-width: 420px; display: grid; gap: 24px; }
.auth-brand { text-align: center; }
.auth-icon { width: 64px; height: 64px; }
.auth-brand h1 { margin: 10px 0 6px; }
.auth-brand p { color: var(--muted); margin: 0; }
.auth-card { padding: 28px; display: grid; gap: 4px; }
.auth-card .btn { margin-top: 14px; }
.auth-card p { margin: 0 0 4px; }
.code { font-size: 26px; letter-spacing: .5em; text-align: center !important; font-weight: 700; }

[data-dir] { display: none; }
form[data-direction="in"] [data-dir="in"], form[data-direction="out"] [data-dir="out"] { display: revert; }
form[data-direction="in"] .notify[data-dir="in"] { display: block; }

[hidden] { display: none !important; }

/* پرداخت‌ها */
.pill.over { background: var(--brand-soft); color: var(--brand); }
.sum.over b { color: var(--brand); }
.item-text .payline { color: var(--ink); opacity: .8; }
.item-text .payline::before { content: "✓ "; color: var(--in); }
.item-text .note-out { color: var(--out); }
.item-text .note-in { color: var(--in); }
.amount { display: grid; text-align: left; }
.amount .orig { font-size: 12px; font-weight: 400; color: var(--muted); }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; margin-bottom: 14px; background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.info-row p { margin: 0; font-size: 14px; }
.methods { border: 0; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.methods legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.methods label { margin: 0; font-weight: 500; position: relative; cursor: pointer; }
.methods input { position: absolute; opacity: 0; }
.methods span { display: block; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.methods input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.methods input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.hint { color: var(--out); font-size: 12px; }
.diff { background: var(--warn-soft); border-radius: 12px; padding: 12px 16px; margin-top: 12px; }
.diff p { margin: 0; font-weight: 600; color: var(--warn); }
.diff .check { margin-top: 8px; }
.section { margin-top: 18px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.seg a { text-align: center; padding: 7px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg a.on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.auth-form { display: grid; gap: 4px; }
.auth-form p { margin: 0 0 4px; }

/* محاسبه از قیمت کل */
form[data-calc="price"] [data-calc="amount"], form[data-calc="amount"] [data-calc="price"] { display: none; }
.calc-seg { margin-top: 10px; }
.calc-seg label { margin: 0; position: relative; cursor: pointer; font-weight: 500; }
.calc-seg input { position: absolute; opacity: 0; }
.calc-seg label { display: grid; }
.calc-seg span { display: grid; place-items: center; height: 100%; text-align: center; padding: 7px; border-radius: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.calc-seg input:checked + span { color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 2px var(--out); background: var(--out-soft); }
#plan-form[data-direction="in"] .calc-seg input:checked + span { box-shadow: inset 0 0 0 2px var(--in); background: var(--in-soft); }
.cheque-fields { margin-top: 2px; }
.cheque-date { margin-top: 4px; }
.cheque-date .jdate { max-width: 360px; }
.cheque-date small { display: block; font-size: 12px; margin-top: 4px; }
.cheque-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.pill.cq-pending { background: var(--warn-soft); color: var(--warn); }
.pill.cq-cleared { background: var(--in-soft); color: var(--in); }
.pill.cq-bounced { background: var(--out-soft); color: var(--out); }
.item-text .payline.cq-bounced, .item-text .payline.cq-failed { text-decoration: line-through; opacity: .6; }
.item-text .payline.cq-pending::before { content: "⏳ "; }
.item-text .payline.cq-failed::before, .item-text .payline.cq-bounced::before { content: "✗ "; color: var(--out); }
.pill.cq-failed { background: var(--out-soft); color: var(--out); }
.cheques { margin-bottom: 18px; overflow: hidden; }
.cheques h2 { font-size: 15px; padding: 14px 18px 0; margin: 0; }
.calc-seg input:focus-visible + span { outline: 2px solid var(--brand); }
.split { background: var(--brand-soft); border-radius: 12px; padding: 12px 16px; margin-top: 12px; }
.split p { margin: 0; color: var(--ink); font-weight: 600; }
.split .inline { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 6px; }
.split .inline select { width: auto; margin: 0; padding: 4px 10px 4px 30px; }
.dp-box { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 16px; margin-top: 12px; }
.dp-box h3 { font-size: 15px; margin: 12px 0 0; }
.dp-date { max-width: 360px; }
#plan-form [data-dir] { display: none; font-style: normal; }
#plan-form[data-direction="in"] [data-dir="in"], #plan-form[data-direction="out"] [data-dir="out"] { display: inline; }
#plan-form[data-direction="in"] .notify[data-dir="in"] { display: block; }
.price-info { margin: -10px 0 16px; font-size: 14px; }

/* کسب‌وکارها و همکاران */
.biz-menu { position: relative; margin: 0 0 16px; }
.biz-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: #fff; transition: background .15s;
}
.biz-menu summary::-webkit-details-marker { display: none; }
.biz-menu summary:hover, .biz-menu[open] summary { background: rgba(255,255,255,.14); }
.bm-av {
  width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #fff; background: hsl(var(--h) 62% 52%);
}
.bm-txt { display: grid; flex: 1; min-width: 0; line-height: 1.4; text-align: right; }
.bm-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-txt small { font-size: 11px; opacity: .7; }
.bm-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; transition: transform .15s; }
.biz-menu[open] .bm-chev { transform: rotate(180deg); }
.bm-pop {
  position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 20;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px -8px rgba(20, 10, 50, .35); padding: 6px; max-height: 60vh; overflow-y: auto;
}
.bm-pop form { display: grid; gap: 2px; }
.bm-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px;
  background: none; color: inherit; font: inherit; cursor: pointer; text-align: right;
}
.bm-item:hover, .bm-item:focus-visible { background: var(--surface-2); outline: none; }
.bm-item.on { background: var(--brand-soft); }
.bm-item .bm-txt small { color: var(--muted); opacity: 1; }
.bm-check { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bm-add {
  display: flex; align-items: center; gap: 10px; padding: 8px; margin-top: 4px; border-top: 1px solid var(--line);
  color: var(--brand); font-size: 14px; font-weight: 600; border-radius: 0 0 10px 10px;
}
.bm-add:hover { text-decoration: none; background: var(--surface-2); }
.bm-plus { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; border: 1.5px dashed var(--brand); font-size: 18px; }
.bm-top { display: none; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 16px; }
.toc a { font-size: 13px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.biz-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.biz-row input { margin: 0; flex: 1; }
.biz-row b { flex: 1; }
.new-biz { border-bottom: 0; }
.member { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-top: 10px; }
.member h3 { font-size: 15px; margin: 0 0 4px; }
.member-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.perms { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.perms .check { margin-top: 8px; }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.new-member { background: var(--surface-2); }

/* دکمه تغییر تم */
.theme-btn {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; cursor: pointer;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff;
}
.theme-btn:hover { background: rgba(255,255,255,.16); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.logo-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.logo-row .logo { margin-bottom: 0; }
.theme-btn.on-light, .top-row .theme-btn { border-color: var(--line); background: var(--surface); color: var(--ink); }
.theme-btn.on-light:hover, .top-row .theme-btn:hover { background: var(--surface-2); }
.solo > .theme-btn { position: fixed; top: 16px; left: 16px; }
.top-row { display: none; }

@media (max-width: 820px) {
  .app { display: block; padding-bottom: 76px; background: none; }
  .side { display: none; }
  .top-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; }
  .top-row .biz-menu { flex: 1; }
  .top-row { position: relative; }
  .top-row .nm { position: static; }  /* پنجره اعلان‌ها هم‌عرض نوار بالا */
  .top-row .nm-pop { left: 0; right: 0; width: auto; }
  .bm-top { display: block; margin-bottom: 0; }
  .bm-top summary { background: var(--surface); border-color: var(--line); color: var(--ink); }
  .bm-top summary:hover, .bm-top[open] summary { background: var(--surface-2); }
  .perms { grid-template-columns: 1fr; }
  .main { padding: 20px 16px 16px; min-height: calc(100vh - 76px); }
  h1 { font-size: 22px; }
  .hide-sm { display: none; }
  .show-sm { display: inline-flex; }
  .sums { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sum { padding: 12px 14px; }
  .sum b { font-size: 19px; }
  .sum.late { grid-column: span 2; }
  .item { gap: 8px 12px; padding: 12px 14px; }
  .item-main { min-width: 100%; }
  .num + .item-text { flex: 1 1 150px; }
  .num + .item-text b { white-space: nowrap; }
  .item form { margin-right: auto; }
  .list .item > .amount { margin-right: 48px; }
  .grid2, .grid3, .choice { grid-template-columns: 1fr; }
  .form { padding: 18px; }
  details.edit summary { margin-right: 42px; }
  .edit-form { margin-right: 0; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px 0; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.on { color: var(--brand); font-weight: 700; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .plus { width: 52px; height: 52px; margin: -22px auto 0; border-radius: 16px; background: var(--brand); color: #fff; place-items: center; box-shadow: 0 6px 18px -6px var(--brand); }
  .tabbar .plus svg { stroke-width: 2.4; }
}

/* زنگوله اعلان‌ها */
.row-btns { display: flex; gap: 6px; }
.nm { position: relative; }
.nm summary { list-style: none; position: relative; }
.nm summary::-webkit-details-marker { display: none; }
.nm-badge {
  position: absolute; top: -5px; left: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--out); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.nm-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: min(340px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px -8px rgba(20, 10, 50, .35); padding: 6px; max-height: 70vh; overflow-y: auto;
}
.side .nm-pop { left: auto; right: 0; }
.nm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.nm-read {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--brand);
  font: inherit; font-size: 13px; cursor: pointer; padding: 4px 6px; border-radius: 8px;
}
.nm-read:hover { background: var(--brand-soft); }
.nm-read svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.nm-item { display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; color: inherit; position: relative; }
a.nm-item[href]:hover { background: var(--surface-2); text-decoration: none; }
.nm-item b { font-size: 14px; }
.nm-item span { font-size: 13px; color: var(--muted); line-height: 1.7; }
.nm-item small { font-size: 11px; color: var(--muted); }
.nm-item.unread { background: var(--brand-soft); }
.nm-item.unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-left: 6px; vertical-align: middle; }
.nm-empty { margin: 0; padding: 18px 10px; text-align: center; color: var(--muted); font-size: 14px; }
.code-row { display: flex; gap: 8px; margin-top: 12px; }
.code-row input { max-width: 180px; letter-spacing: .2em; text-align: center; }
.biz-del { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.biz-del summary { cursor: pointer; color: var(--out); font-size: 14px; font-weight: 600; width: max-content; }

/* پنل مدیریت */
.show-sm { display: none; }
.vtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.vtabs a { padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.vtabs a:hover { text-decoration: none; color: var(--ink); }
.vtabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.sub-h { font-size: 16px; margin: 22px 0 10px; }
.sub-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.sub-row p { margin: 0; }
.search-row { display: flex; gap: 8px; margin-bottom: 14px; }
.search-row input { flex: 1; }
.admin-user { display: block; }
.admin-user summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.admin-user summary::-webkit-details-marker { display: none; }
.admin-user.blocked summary { opacity: .6; }
.admin-actions { display: grid; gap: 12px; margin: 14px 0 4px; padding-top: 14px; border-top: 1px dashed var(--line); }
.card-in { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card-in b { width: 100%; font-size: 13px; }
.card-in input { flex: 1; min-width: 160px; }
.admin-actions .row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-actions .biz-del { margin-top: 0; }
.msg-text { white-space: pre-wrap; font-size: 14px; line-height: 1.9; margin: 4px 0; color: var(--ink); }
.item.msg { align-items: flex-start; }
.item.msg.unread { background: var(--brand-soft); }
.out { color: var(--out); }

.credit { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0 0; }
.solo > .credit { align-self: end; padding: 24px 0 0; }
.credit a { color: var(--brand); font-weight: 600; }

/* حساب دفتری */
.ledger-form { margin-top: 18px; }
.ledger-bal { display: grid; justify-items: end; line-height: 1.4; }
.ledger-bal small { color: var(--muted); font-size: 11px; }
.due-date { max-width: 360px; margin-top: 8px; }
.ledger-link { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; color: var(--ink); }
.ledger-link:hover { text-decoration: none; border-color: var(--brand); }
.ledger-link > span:first-child { display: grid; flex: 1; }
.ledger-link small { color: var(--muted); font-size: 13px; }
.ledger-link .go { color: var(--brand); font-weight: 700; }

/* دو بخش اصلی: دکمه‌های شیشه‌ای مات با کاشی آیکون رنگی — اقساط کهربایی، حساب دفتری زمردی */
:root { --amber-a: #FBBF24; --amber-b: #D97706; --emer-a: #34D399; --emer-b: #059669;
        --gold-a: var(--amber-a); --gold-b: var(--amber-b); --inst-a: var(--amber-a); --inst-b: var(--amber-b); --ledg-a: var(--emer-a); --ledg-b: var(--emer-b); }
.big-btn {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; margin-bottom: 8px;
  color: #fff; font-weight: 700; font-size: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 20px -14px rgba(0,0,0,.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .15s, border-color .15s;
}
.big-btn:hover { text-decoration: none; background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.1)); }
.big-btn.on { border-color: rgba(255,255,255,.45); background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.12)); }
.big-btn svg, .qcard svg {
  width: 32px; height: 32px; padding: 7px; border-radius: 10px; flex: none;
  fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 10px -4px rgba(0,0,0,.4);
}
.big-btn.inst svg, .qcard.inst svg { background: linear-gradient(135deg, var(--amber-a), var(--amber-b)); }
.big-btn.ledg svg, .qcard.ledg svg { background: linear-gradient(135deg, var(--emer-a), var(--emer-b)); }
.big-btn + nav { margin-top: 10px; }
.btn.inst-btn, .btn.ledg-btn { color: #fff; border: 0; }

/* بازگشت و خانه بالای صفحه‌ها */
.crumbs { display: flex; gap: 8px; margin-bottom: 16px; }
.crumb {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px;
}
.crumb:hover { text-decoration: none; color: var(--ink); border-color: var(--brand); }
.crumb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctx { font-size: 13px; color: var(--muted); }

/* خانه */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.quick.stack { grid-template-columns: 1fr; max-width: 520px; }
.qcard {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .15s, border-color .15s;
}
.qcard::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 160px; height: 160px; border-radius: 50%; opacity: .14; pointer-events: none; }
.qcard.inst::after { background: radial-gradient(circle, var(--amber-a), transparent 70%); }
.qcard.ledg::after { background: radial-gradient(circle, var(--emer-a), transparent 70%); }
.qcard:hover { text-decoration: none; transform: translateY(-2px); }
.qcard.inst:hover { border-color: color-mix(in srgb, var(--amber-b) 50%, var(--line)); }
.qcard.ledg:hover { border-color: color-mix(in srgb, var(--emer-b) 50%, var(--line)); }
.qcard svg { width: 44px; height: 44px; padding: 10px; border-radius: 13px; }
.qcard > span { display: grid; gap: 2px; }
.qcard b { font-size: 16px; }
.qcard small { color: var(--muted); font-size: 13px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 10px; }
.sec-head h2 { font-size: 17px; margin: 0; }
.sec-head a { font-size: 13px; }
.empty.slim { padding: 18px; }
.empty.slim p { margin: 0 auto; }
@media (max-width: 820px) {
  .quick:not(.stack) { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick:not(.stack) .qcard { padding: 12px; gap: 10px; }
  .quick:not(.stack) .qcard svg { width: 36px; height: 36px; padding: 8px; }
  .quick:not(.stack) .qcard b { font-size: 14px; }
  .quick:not(.stack) .qcard small { display: none; }
  .page-head { flex-wrap: wrap; }
}

.enamad { margin-bottom: 10px; }
.enamad img { display: inline-block; width: 90px; height: auto; }

/* صفحه معرفی (آدرس اصلی برای مهمان) */
.lp { background: var(--bg); min-height: 100vh; --inst-a: #FB923C; --inst-b: #EA580C; --ledg-a: #2DD4BF; --ledg-b: #0D9488; }  /* رنگ‌های صفحه معرفی */
.lp-wrap { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.lp-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.lp-bar { display: flex; align-items: center; gap: 20px; height: 64px; }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.lp-logo:hover { text-decoration: none; }
.lp-logo img { width: 32px; height: 32px; }
.lp-nav { display: flex; gap: 4px; flex: 1; }
.lp-nav a { color: var(--muted); font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.lp-nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.lp-acts { display: flex; align-items: center; gap: 8px; }
.lp .theme-btn.on-light { position: static; }
.lp-hero { text-align: center; padding-top: 64px; }
.lp-badge { display: inline-block; font-size: 13px; color: var(--brand); background: var(--brand-soft); padding: 5px 14px; border-radius: 999px; font-weight: 600; }
.lp-hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.3; margin: 18px 0 14px; font-weight: 800; }
.lp-grad { background: linear-gradient(90deg, var(--inst-b), var(--brand), var(--ledg-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero > p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 28px; line-height: 1.9; }
.lp-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.lp-big { padding: 13px 28px; font-size: 16px; border-radius: 12px; }
.lp-chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.lp-chips li::before { content: "✓ "; color: var(--in); font-weight: 700; }
.lp-shot { margin: 44px auto 0; max-width: 1000px; padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(76, 29, 149, .55); }
.lp-shot img { display: block; width: 100%; height: auto; border-radius: 12px; }
.lp-shot .only-light, [data-theme="light"] .lp-shot .only-dark { display: none; }
[data-theme="light"] .lp-shot .only-light { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .lp-shot .only-dark { display: none; } :root:not([data-theme="dark"]) .lp-shot .only-light { display: block; } }
.lp-sec { padding-top: 88px; scroll-margin-top: 64px; }
.lp-head { text-align: center; margin-bottom: 32px; }
.lp-kicker { color: var(--brand); font-weight: 700; font-size: 14px; }
.lp-head h2 { font-size: clamp(24px, 3.6vw, 36px); margin: 8px 0 0; line-height: 1.4; }
.lp-grid { display: grid; gap: 16px; }
.lp-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.lp-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; transition: transform .15s, border-color .15s; }
.lp-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.lp-card h3 { font-size: 17px; margin: 14px 0 6px; }
.lp-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.lp-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.lp-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-grid .lp-card:nth-child(3n+2) .lp-ic { background: color-mix(in srgb, var(--inst-a) 18%, transparent); color: var(--inst-b); }
.lp-grid .lp-card:nth-child(3n) .lp-ic { background: color-mix(in srgb, var(--ledg-a) 18%, transparent); color: var(--ledg-b); }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.lp-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.lp-steps b { font-size: 32px; font-weight: 800; color: var(--brand); opacity: .35; }
.lp-steps h3 { margin: 6px 0; font-size: 18px; }
.lp-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.lp-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.lp-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: 0 0 16px; color: var(--muted); line-height: 1.9; }
.lp-band { margin-top: 88px; text-align: center; color: #fff; border-radius: 24px; padding: 48px 24px; background: radial-gradient(ellipse at 20% 0%, #8B5CF6, transparent 60%), linear-gradient(135deg, var(--brand-deep), #4C1D95); }
.lp-band h2 { margin: 0 0 8px; font-size: clamp(24px, 3.6vw, 34px); }
.lp-band p { margin: 0 0 24px; opacity: .85; }
.btn.lp-white { background: #fff; color: var(--brand-deep); }
.btn.lp-ghost-w { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.lp-foot { padding-top: 48px; padding-bottom: 8px; }
.lp-foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.lp-foot .muted { margin: 8px 0; }
.lp-links { display: flex; gap: 16px; font-size: 14px; }
.lp-foot .enamad { margin: 0; }
@media (max-width: 900px) {
  .lp-grid.g4 { grid-template-columns: 1fr 1fr; }
  .lp-grid.g3, .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-nav { display: none; }
  .lp-bar { justify-content: space-between; }
}
@media (max-width: 600px) {
  .lp-wrap { padding-inline: 16px; }
  .lp-grid.g4, .lp-grid.g3, .lp-steps { grid-template-columns: 1fr; }
  .lp-hero { padding-top: 40px; }
  .lp-hero > p { font-size: 16px; }
  .lp-shot { max-width: 340px; }
  .lp-sec { padding-top: 64px; }
  .lp-logo { font-size: 16px; }
  .lp-acts .btn { padding-inline: 12px; }
}
.auth-home { color: inherit; display: inline-grid; justify-items: center; }
.auth-home:hover { text-decoration: none; }

/* اشتراک */
.usage { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; color: var(--ink); border-color: color-mix(in srgb, var(--gold-b) 45%, var(--line)); background: color-mix(in srgb, var(--gold-a) 10%, var(--surface)); }
.usage:hover { text-decoration: none; }
.usage > span:first-child { display: grid; flex: 1; }
.usage small { color: var(--muted); font-size: 13px; }
.usage .go { color: var(--gold-b); font-weight: 700; font-size: 14px; }
.sum .of { font-size: 14px; color: var(--muted); font-weight: 500; }
.meter { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-a), var(--gold-b)); }
.who-sub { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--gold-a); }

/* کارت‌های پلن (صفحه اشتراک‌ها و صفحه معرفی)؛ بزرگ، با خط نازک دور کارت هنگام hover */
.pl-free { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 18px;
  border-radius: 18px; background: var(--surface); border: 1px dashed var(--line); }
.pl-free > div { display: grid; gap: 2px; }
.pl-free b { font-size: 16px; }
.pl-free span { color: var(--muted); font-size: 14px; }
.pl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-bottom: 8px; }
.pl-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s; }
.pl-card:hover { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 22px 50px -32px color-mix(in srgb, var(--brand) 80%, transparent); transform: translateY(-2px); }
.pl-top { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.pl-top small { color: var(--muted); font-size: 13px; }
.pl-card h3 { margin: 10px 0 6px; font-size: 24px; font-weight: 800; }
.pl-for { margin: 0; color: var(--muted); font-size: 14px; }
.pl-price { margin: 26px 0 4px; font-size: 38px; font-weight: 800; color: var(--ink); line-height: 1.2; letter-spacing: -.01em; }
.pl-price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.pl-days { margin: 0 0 22px; color: var(--muted); font-size: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.pl-card ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; align-content: start; gap: 14px; font-size: 15px; color: var(--ink); flex: 1; }
.pl-card li { padding-right: 28px; position: relative; line-height: 1.7; }
.pl-card li::before { content: "✓"; position: absolute; right: 0; top: 0; color: var(--brand); font-weight: 800; }
.pl-btn { justify-content: center; padding: 14px; font-size: 16px; border-radius: 14px; }
.pl-card.hot { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.pl-card.cur { border-color: var(--in); }
.pl-tag { font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.pl-cur { text-align: center; font-size: 14px; font-weight: 700; color: var(--in); padding: 12px; border-radius: 14px; background: var(--in-soft); }
.lp-note { margin-top: 16px; }
@media (max-width: 980px) { .pl-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.num.dp { font-size: 11px; }

/* تماس با ما */
.cu-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.cu-way { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s; }
.cu-way:hover { text-decoration: none; border-color: var(--brand); }
.cu-way > span:last-child { display: grid; min-width: 0; }
.cu-way small { color: var(--muted); font-size: 12px; }
.cu-way b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }  /* فیلد ضد ربات؛ بدون left منفی که در راست‌به‌چپ صفحه را پهن می‌کرد */
.cu-solo { width: 100%; max-width: 820px; align-self: start; padding-top: 24px; }
.cu-solo > .lp-logo { margin-bottom: 14px; }
.cu-solo > .crumbs { margin-bottom: 18px; }
@media (max-width: 720px) { .cu-ways { grid-template-columns: 1fr; } }

/* نصب به‌شکل اپ */
.ins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.ins { padding: 22px 24px; }
.ins h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; }
.ins h2 svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ins ol { margin: 0; padding-right: 22px; list-style: persian; display: grid; gap: 10px; line-height: 1.9; font-size: 15px; }
.ins-ic svg { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ins .btn { margin-top: 12px; }
@media (max-width: 720px) { .ins-grid { grid-template-columns: 1fr; } }
/* وقتی به‌شکل اپ (تمام‌صفحه) باز است، محتوا زیر نوار وضعیت گوشی نرود */
@media (display-mode: standalone) { body { padding-top: env(safe-area-inset-top); } }
.lp-install { gap: 6px; }
.lp-install svg, .btn-ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.off { background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: default; filter: none; }
@media (max-width: 420px) { .lp-install span { display: none; } .lp-install { padding-inline: 9px; } }
.lp-logo { white-space: nowrap; }
@media (max-width: 380px) { .lp-acts { gap: 5px; } .lp-bar { gap: 8px; } .lp-logo { font-size: 15px; gap: 7px; } .lp-logo img { width: 28px; height: 28px; } }

/* وب‌اپ */
.app-hint { padding: 16px 18px; display: grid; gap: 6px; border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.app-hint p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; display: grid; gap: 4px; }
.app-hint svg { width: 17px; height: 17px; vertical-align: -3px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-hint .btn { justify-self: start; }
@media (display-mode: standalone) { .app-hint { display: none; } }
