/* ═══════════════ فرم‌ساز ICSD — سیستم طراحی ═══════════════
   روشن و شاد، راست‌چین، Vazirmatn محلی، بدون CDN. رنگ اصلی از تنظیمات (--p). */
@font-face { font-family: "Vazirmatn"; src: url("../vendor/vazirmatn/Vazirmatn%5Bwght%5D.woff2") format("woff2-variations"), url("../vendor/vazirmatn/Vazirmatn%5Bwght%5D.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "ICSD Mono"; src: url("../vendor/jetbrains-mono/JetBrainsMono%5Bwght%5D.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --p: #1E9E7B; --p2: #16A9C7; --p-soft: color-mix(in srgb, var(--p) 11%, transparent); --p-dark: color-mix(in srgb, var(--p) 80%, #000);
  --bg: #F6F7F4; --bg2: #EEF1EC; --card: #fff; --t: #16303A; --t2: #4C646C; --t3: #8A9DA3; --line: #E2E7E3; --line2: #CFD8D3;
  --ok: #16a34a; --warn: #d97706; --bad: #dc2626; --golab: #F05C7E; --zaferan: #F2A83B;
  --r: 16px; --sh: 0 1px 2px rgba(16,40,48,.05), 0 10px 30px -18px rgba(16,40,48,.25); --sh-lg: 0 30px 60px -30px rgba(16,40,48,.35);
  --fa: "Vazirmatn", Tahoma, system-ui, sans-serif; --mono: "ICSD Mono", Consolas, monospace;
  --bs-body-font-family: var(--fa); --bs-primary: var(--p); --bs-border-color: var(--line); --bs-link-color: var(--p); --bs-link-hover-color: var(--p-dark);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--t); font-family: var(--fa); font-size: 15px; line-height: 1.9; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 900; line-height: 1.45; margin: 0; }
.ltr, .mono { direction: ltr; unicode-bidi: isolate; } .mono { font-family: var(--mono); }
.muted { color: var(--t3); } .small { font-size: 13px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.ic { flex: none; vertical-align: -.2em; }
::selection { background: var(--p); color: #fff; }
:focus-visible { outline: 2px solid var(--p2); outline-offset: 2px; border-radius: 6px; }

/* دکمه */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line2); background: var(--card); color: var(--t);
     border-radius: 12px; padding: 8px 16px; font: 700 14px var(--fa); cursor: pointer; transition: .15s; white-space: nowrap; text-decoration: none; }
.b:hover { border-color: var(--p); color: var(--p); }
.b--p { background: var(--p); border-color: var(--p); color: #fff; box-shadow: 0 8px 20px -10px var(--p); }
.b--p:hover { color: #fff; filter: brightness(1.06); }
.b--d { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); } .b--d:hover { background: var(--bad); color: #fff; }
.b--g { background: transparent; border-color: transparent; } .b--sm { padding: 5px 11px; font-size: 13px; border-radius: 10px; }
.b--lg { padding: 13px 26px; font-size: 16px; border-radius: 14px; }
.b:disabled, .b.is-off { opacity: .5; pointer-events: none; }
.form-control, .form-select { border-radius: 12px; border-color: var(--line2); font-size: 14.5px; padding: 9px 13px; }
.form-control:focus, .form-select:focus { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-soft); }
.form-check-input:checked { background-color: var(--p); border-color: var(--p); }
.form-check-input:focus { box-shadow: 0 0 0 3px var(--p-soft); }
.form-label, label.lbl { font-weight: 700; font-size: 13.5px; margin-bottom: 6px; display: block; }
.help { font-size: 12.5px; color: var(--t3); margin-top: 4px; }
.err { color: var(--bad); font-size: 13px; }
.c { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.c__h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.c__h h2, .c__h h3 { font-size: 15.5px; } .c__b { padding: 18px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 99px; background: var(--bg2); color: var(--t2); white-space: nowrap; }
.pill--published { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.pill--draft { background: color-mix(in srgb, var(--zaferan) 18%, transparent); color: #a8650a; }
.pill--closed { background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); }
.pill--p { background: var(--p-soft); color: var(--p); }
.empty { text-align: center; padding: 56px 20px; color: var(--t3); }
.alert { border-radius: 12px; }

/* ─── سربرگ عمومی ─── */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 17px; }
.brand__dot { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--p), var(--p2)); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px -8px var(--p); }
.brand img { height: 36px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav__links a { padding: 6px 12px; border-radius: 10px; font-weight: 600; color: var(--t2); font-size: 14.5px; }
.nav__links a:hover, .nav__links a.on { background: var(--p-soft); color: var(--p); }
.nav__sp { flex: 1; }
.footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 80px; padding: 34px 0; font-size: 13.5px; color: var(--t2); }
.footer a:hover { color: var(--p); }
.footer__g { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }

/* ─── صفحه‌ی اصلی ─── */
.hero { padding: 70px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, var(--p-soft), transparent 70%); }
.hero__g { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--p), var(--p2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--t2); margin: 18px 0 26px; max-width: 560px; }
.hero__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.mock { background: var(--card); border-radius: 22px; box-shadow: var(--sh-lg); border: 1px solid var(--line); padding: 26px; position: relative; }
.mock__q { font-weight: 800; font-size: 18px; margin-bottom: 14px; } .mock__n { color: var(--p); font-family: var(--mono); font-size: 13px; }
.mock__opt { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--line2); border-radius: 12px; margin-bottom: 8px; font-weight: 600; }
.mock__opt.on { border-color: var(--p); background: var(--p-soft); color: var(--p); }
.mock__opt kbd { font: 700 11px var(--mono); background: var(--bg2); color: var(--t2); border-radius: 6px; padding: 1px 7px; }
.mock__bar { height: 6px; background: var(--bg2); border-radius: 9px; overflow: hidden; margin-top: 18px; } .mock__bar i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--p), var(--p2)); }
.mock__chip { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 9px 14px; box-shadow: var(--sh); font-size: 13px; font-weight: 700; }
.sec { padding: 64px 0; } .sec__h { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.sec__h h2 { font-size: clamp(24px, 3vw, 34px); } .sec__h p { color: var(--t2); margin-top: 8px; }
.kick { display: inline-block; color: var(--p); font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.feat { padding: 22px; } .feat__i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--p-soft); color: var(--p); margin-bottom: 12px; }
.feat h3 { font-size: 16.5px; margin-bottom: 4px; } .feat p { color: var(--t2); font-size: 14px; margin: 0; }
.stats { display: flex; justify-content: center; gap: 46px; flex-wrap: wrap; margin-top: 30px; }
.stats b { display: block; font-size: 30px; font-weight: 900; color: var(--p); }
.stats span { color: var(--t3); font-size: 13px; }
.types { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.types span { padding: 7px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; font-weight: 600; font-size: 13.5px; }
.cta { background: linear-gradient(120deg, var(--p-dark), var(--p2)); color: #fff; border-radius: 26px; padding: 46px; text-align: center; }
.cta h2 { font-size: 30px; } .cta p { opacity: .9; margin: 10px 0 22px; }
.cta .b { background: #fff; color: var(--p-dark); border: 0; }

/* قیمت */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.plan { padding: 26px; display: flex; flex-direction: column; position: relative; }
.plan.hl { border: 2px solid var(--p); box-shadow: var(--sh-lg); }
.plan__badge { position: absolute; top: -13px; inset-inline-start: 22px; background: var(--p); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 12px; border-radius: 99px; }
.plan h3 { font-size: 20px; } .plan .desc { color: var(--t3); font-size: 13.5px; min-height: 42px; }
.plan .price { font-size: 30px; font-weight: 900; margin: 12px 0 2px; } .plan .price small { font-size: 13px; color: var(--t3); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 7px; font-size: 14px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: center; } .plan li.no { color: var(--t3); text-decoration: line-through; }
.plan li .ic { color: var(--p); } .plan li.no .ic { color: var(--t3); }
.period { display: inline-flex; background: var(--bg2); border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.period button { border: 0; background: none; padding: 6px 18px; border-radius: 9px; font: 700 14px var(--fa); color: var(--t2); cursor: pointer; }
.period button.on { background: var(--card); color: var(--p); box-shadow: var(--sh); }

/* قالب‌ها */
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tpl { padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .15s; }
.tpl:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.tpl__e { font-size: 30px; line-height: 1; } .tpl h3 { font-size: 16px; } .tpl p { color: var(--t2); font-size: 13.5px; margin: 0; flex: 1; }
.tpl__a { display: flex; gap: 6px; margin-top: 6px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tags a { padding: 4px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.tags a.on, .tags a:hover { background: var(--p); color: #fff; border-color: var(--p); }

/* ─── ورود ─── */
.auth { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 30px 16px; }
.auth__box { width: 100%; max-width: 420px; padding: 30px; }
.auth h1 { font-size: 24px; margin-bottom: 4px; }
.otp-input { letter-spacing: .5em; font-family: var(--mono); font-size: 24px; }

/* ─── پیشخوان ─── */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 66px); }
.aside { border-inline-end: 1px solid var(--line); padding: 18px 12px; background: var(--card); }
.aside a.ai { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 11px; font-weight: 600; color: var(--t2); font-size: 14px; }
.aside a.ai:hover, .aside a.ai.on { background: var(--p-soft); color: var(--p); }
.aside h6 { font-size: 11.5px; color: var(--t3); margin: 16px 12px 6px; font-weight: 800; }
.aside .cnt { margin-inline-start: auto; font-size: 12px; color: var(--t3); }
.usage { margin: 18px 6px 0; padding: 14px; border-radius: 14px; background: var(--bg); font-size: 12.5px; }
.usage .bar, .bar { height: 6px; background: var(--line); border-radius: 9px; overflow: hidden; margin: 4px 0 10px; }
.usage .bar i, .bar i { display: block; height: 100%; background: var(--p); border-radius: 9px; }
.main { padding: 26px 28px 60px; min-width: 0; }
.ph { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.ph h1 { font-size: 22px; } .ph__a { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.toolbar .form-control, .toolbar .form-select { width: auto; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.scard { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.scard:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); }
.scard__top { height: 7px; background: linear-gradient(90deg, var(--p), var(--p2)); }
.scard__b { padding: 16px 18px; flex: 1; } .scard__b h3 { font-size: 16px; margin: 6px 0; }
.scard__m { display: flex; gap: 14px; color: var(--t3); font-size: 12.5px; flex-wrap: wrap; }
.scard__f { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 50%, var(--card)); align-items: center; }
.scard__f .dropdown { margin-inline-start: auto; }
.new-card { border: 2px dashed var(--line2); display: grid; place-items: center; min-height: 190px; color: var(--t3); font-weight: 800; border-radius: var(--r); transition: .15s; }
.new-card:hover { border-color: var(--p); color: var(--p); background: var(--p-soft); }

/* سربرگ هر فرم */
.shead { background: var(--card); border-bottom: 1px solid var(--line); }
.shead__in { display: flex; align-items: center; gap: 14px; padding: 10px 20px; flex-wrap: wrap; }
.shead h1 { font-size: 17px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stabs { display: flex; gap: 2px; margin-inline: auto; }
.stabs a { padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--t2); display: flex; gap: 6px; align-items: center; }
.stabs a.on { background: var(--p-soft); color: var(--p); }
.stabs a:hover { color: var(--p); }

/* نتایج */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 16px; } .kpi b { display: block; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; } .kpi span { color: var(--t3); font-size: 13px; }
.qstat { margin-bottom: 16px; } .qstat__h { display: flex; gap: 10px; align-items: flex-start; padding: 16px 18px 6px; }
.qstat__h h3 { font-size: 15.5px; flex: 1; } .qstat__n { color: var(--t3); font-size: 12.5px; white-space: nowrap; }
.qstat__b { padding: 8px 18px 18px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: center; }
.qstat__b.one { grid-template-columns: minmax(0, 1fr); }
.hb { display: grid; gap: 8px; } .hb__r { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 4px 10px; font-size: 13.5px; }
.hb__r .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hb__r .v { text-align: left; color: var(--t3); font-variant-numeric: tabular-nums; }
.hb__r .bar { grid-column: 1 / -1; margin: 0; height: 9px; }
.nps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; } .nps div { padding: 8px 12px; border-radius: 12px; background: var(--bg); font-size: 13px; }
.nps b { font-size: 18px; display: block; }
.mt { width: 100%; font-size: 13px; border-collapse: collapse; } .mt th, .mt td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: center; }
.mt td:first-child, .mt th:first-child { text-align: right; }
.heat { display: inline-block; min-width: 42px; padding: 2px 6px; border-radius: 7px; background: color-mix(in srgb, var(--p) calc(var(--h) * 1%), transparent); }
.texts { list-style: none; padding: 0; margin: 0; max-height: 260px; overflow: auto; display: grid; gap: 6px; }
.texts li { padding: 8px 12px; background: var(--bg); border-radius: 10px; font-size: 13.5px; }
table.rt { width: 100%; border-collapse: collapse; font-size: 13.5px; } .rt th { font-size: 12px; color: var(--t3); text-align: right; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rt td { padding: 10px; border-bottom: 1px solid var(--line); } .rt tbody tr:hover { background: var(--p-soft); cursor: pointer; }
.answer { padding: 14px 18px; border-bottom: 1px solid var(--line); } .answer h4 { font-size: 13px; color: var(--t3); font-weight: 700; margin-bottom: 4px; }
.answer.skip { opacity: .5; }

/* تنظیمات و اشتراک */
.setg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.sw { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.sw .form-check-input { width: 2.5em; height: 1.35em; margin: 2px 0 0; flex: none; cursor: pointer; }
.sw b { display: block; font-size: 14px; } .sw small { color: var(--t3); }
.lock { font-size: 11.5px; color: #a8650a; background: color-mix(in srgb, var(--zaferan) 18%, transparent); padding: 0 8px; border-radius: 99px; font-weight: 700; }
.copy { display: flex; gap: 6px; } .copy input { direction: ltr; font-family: var(--mono); font-size: 13px; }
textarea.code { direction: ltr; font-family: var(--mono); font-size: 12.5px; }

/* پیام‌ها */
.toasts { position: fixed; bottom: 20px; left: 20px; z-index: 1200; display: grid; gap: 8px; max-width: 380px; }
.toast-i { display: flex; gap: 10px; padding: 12px 16px; border-radius: 13px; background: var(--t); color: #fff; box-shadow: var(--sh-lg); font-size: 14px; animation: tin .3s ease; }
.toast-i.success { background: #0f5f49; } .toast-i.error { background: #9b1c1c; } .toast-i.warning { background: #8a5a06; }
.toast-i button { margin-inline-start: auto; border: 0; background: none; color: inherit; opacity: .7; cursor: pointer; }
@keyframes tin { from { transform: translateY(14px); opacity: 0; } }

@media (max-width: 980px) {
  .hero__g { grid-template-columns: 1fr; } .mock__chip { display: none; }
  .app { grid-template-columns: 1fr; } .aside { display: none; } .aside.open { display: block; position: fixed; inset: 66px 0 0 auto; width: 260px; z-index: 40; box-shadow: var(--sh-lg); overflow: auto; }
  .qstat__b { grid-template-columns: 1fr; } .setg { grid-template-columns: 1fr; }
  .stabs { order: 3; width: 100%; overflow-x: auto; margin: 0; } .stabs a { white-space: nowrap; }
}
@media (max-width: 720px) {
  .nav__links { display: none; } .main { padding: 18px 14px 50px; } .hero { padding-top: 36px; } .cta { padding: 30px 18px; }
  .shead__in { padding: 10px 14px; } .wrap { padding-inline: 16px; }
}

/* ═══════════════ صفحات عمومی، ورود، تیم و اشتراک (core / accounts / teams / billing) ═══════════════ */
.sec--alt { background: linear-gradient(180deg, color-mix(in srgb, var(--bg2) 70%, transparent), transparent); }
.wrap--narrow { max-width: 820px; }
.h2like { font-size: clamp(26px, 3.4vw, 38px); }
/* قهرمان */
.hero__kick { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: var(--p-soft); color: var(--p); font-weight: 800; font-size: 13px; margin-bottom: 14px; }
.hero__ok { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--t2); font-size: 13.5px; }
.hero__ok li { display: flex; align-items: center; gap: 5px; } .hero__ok .ic { color: var(--p); }
.hero__art { position: relative; padding: 30px 0 84px; }

.mock--front { z-index: 2; width: 80%; animation: pubFloat 7s ease-in-out infinite; }
.mock--back { position: absolute; z-index: 3; inset-inline-end: 0; bottom: 6px; width: 42%; padding: 16px; transform: rotate(-3deg); }
.mock__mini { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 10px; }
.mock__cols { display: flex; align-items: flex-end; gap: 7px; height: 88px; }
.mock__cols i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--p2), var(--p)); opacity: .85; transform-origin: bottom; animation: pubGrow 2.4s ease-in-out infinite alternate; }
.mock__cols i:nth-child(2n) { animation-delay: .5s; } .mock__cols i:nth-child(3n) { animation-delay: 1s; }
.mock__n { margin-bottom: 4px; }
.mock__opts .mock__opt { animation: pubPick 7.5s infinite; }
.mock__opts .mock__opt:nth-child(2) { animation-delay: 2.5s; } .mock__opts .mock__opt:nth-child(3) { animation-delay: 5s; }
.mock__foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.mock__foot .b { pointer-events: none; }
.mock__bar i { animation: pubBar 7.5s ease-in-out infinite; }
.mock__chip { z-index: 3; display: flex; align-items: center; gap: 7px; animation: pubFloat 6s ease-in-out infinite; }
.mock__chip .ic { color: var(--p); }
.mock__chip--1 { top: 34px; inset-inline-end: 0; }
.mock__chip--2 { bottom: 26px; inset-inline-start: 8%; animation-delay: -2s; }
.mock__chip--3 { top: 36%; inset-inline-end: 2%; animation-delay: -4s; }
.mock__chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pubPulse 1.8s infinite; }
@keyframes pubFloat { 50% { transform: translateY(-8px); } }
@keyframes pubGrow { from { transform: scaleY(.75); } }
@keyframes pubPulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes pubPick { 0%, 30% { border-color: var(--p); background: var(--p-soft); color: var(--p); } 34%, 100% { border-color: var(--line2); background: transparent; color: inherit; } }
@keyframes pubBar { 0% { width: 40%; } 33% { width: 60%; } 66% { width: 80%; } 100% { width: 40%; } }
@media (prefers-reduced-motion: reduce) { .mock--front, .mock__chip, .mock__cols i, .mock__opts .mock__opt, .mock__bar i, .mock__chip .dot { animation: none; } }
.stats > div { text-align: center; } .stats b { font-variant-numeric: tabular-nums; }
.feat { transition: transform .15s, box-shadow .15s; } .feat:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
/* گام‌ها */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { padding: 26px 22px; position: relative; overflow: hidden; }
.step h3 { font-size: 18px; margin-bottom: 4px; } .step p { color: var(--t2); font-size: 14px; margin: 0; }
.step__n { position: absolute; inset-inline-end: 14px; top: -6px; font-size: 64px; font-weight: 900; color: var(--p-soft); line-height: 1.2; }
/* پرسش‌های پرتکرار */
.faq { --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: var(--r); --bs-accordion-inner-border-radius: calc(var(--r) - 1px);
       --bs-accordion-active-bg: var(--p-soft); --bs-accordion-active-color: var(--p-dark); --bs-accordion-btn-focus-box-shadow: 0 0 0 3px var(--p-soft); box-shadow: var(--sh); border-radius: var(--r); }
.faq .accordion-button { font: 800 15px var(--fa); gap: 10px; }
.faq .accordion-button::after { margin-inline-start: auto; margin-inline-end: 0; }
.faq .accordion-body { color: var(--t2); font-size: 14.5px; }
/* پلن‌ها */
.period .save { font-size: 11px; background: var(--golab); color: #fff; border-radius: 99px; padding: 0 7px; margin-inline-start: 4px; }
.plan__sub { font-size: 12.5px; color: var(--p); font-weight: 700; min-height: 22px; }
.plan__cta form { margin: 0; } .plan__cta { margin-top: auto; }
.plan__badge { display: inline-flex; align-items: center; gap: 4px; }
.plan--cur { border: 2px dashed var(--p); } .plan__badge--cur { background: var(--t); }
.plan .price { font-variant-numeric: tabular-nums; }
.cmp__scroll { overflow-x: auto; }
.cmp__t { font-size: 14px; min-width: 520px; } .cmp__t th { background: var(--bg); font-weight: 800; } .cmp__t td, .cmp__t th { padding: 11px 12px; }
.cmp__t .yes, .cmp__t td .yes { color: var(--p); }
/* قالب‌ها */
.tags--c { justify-content: center; }
.tpl__m { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--t3); }
.tpl__m span { display: inline-flex; align-items: center; gap: 4px; }
.tpl__a form { margin: 0; }
.tpl-blank { display: flex; align-items: center; gap: 18px; padding: 22px 24px; flex-wrap: wrap; border-style: dashed; border-color: var(--line2); }
.tpl-blank > div { flex: 1; min-width: 220px; } .tpl-blank h3 { font-size: 17px; }
/* صفحه‌ی ایستا */
.prose { padding: 34px clamp(18px, 4vw, 44px); }
.prose__h { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }
.prose__h h1 { font-size: clamp(24px, 3vw, 32px); }
.prose__b { font-size: 15.5px; line-height: 2.1; overflow-wrap: anywhere; }
.prose__b h2 { font-size: 20px; margin: 22px 0 8px; } .prose__b h3 { font-size: 17px; margin: 18px 0 6px; }
.prose__b a { color: var(--p); text-decoration: underline; } .prose__b img { max-width: 100%; height: auto; border-radius: 12px; }
.prose__b ul, .prose__b ol { padding-inline-start: 22px; }
/* ۴۰۴ */
.nf { padding: 90px 0 40px; }
.nf__code { font-size: clamp(90px, 18vw, 150px); font-weight: 900; line-height: 1; letter-spacing: .04em; background: linear-gradient(120deg, var(--p), var(--p2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf__code span { display: inline-block; animation: pubFloat 3s ease-in-out infinite; background: linear-gradient(120deg, var(--golab), var(--zaferan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: 26px; margin: 12px 0 8px; } .nf p { max-width: 520px; margin-inline: auto; }
/* ورود */
.auth { background: radial-gradient(600px 400px at 85% 10%, var(--p-soft), transparent 70%), radial-gradient(500px 360px at 10% 90%, color-mix(in srgb, var(--p2) 10%, transparent), transparent 70%); }
.auth__wrap { width: 100%; max-width: 420px; }
.auth__box { box-shadow: var(--sh-lg); }
.auth__ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--p), var(--p2)); box-shadow: 0 12px 24px -12px var(--p); margin-bottom: 14px; }
.atabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg2); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.atabs button { border: 0; background: none; border-radius: 9px; padding: 7px; font: 700 13.5px var(--fa); color: var(--t2); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.atabs button.on { background: var(--card); color: var(--p); box-shadow: var(--sh); }
.auth input[dir="ltr"] { text-align: left; }
.auth .otp-input { text-align: center !important; padding-inline: 0; }
.auth__terms { font-size: 12px; color: var(--t3); text-align: center; margin: 18px 0 0; }
.auth__terms a { color: var(--p); }
.auth__perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: 13px; color: var(--t2); justify-items: center; }
.auth__perks li { display: flex; gap: 6px; align-items: center; } .auth__perks .ic { color: var(--p); }
.resend { display: flex; justify-content: center; margin: 14px 0 0; min-height: 32px; align-items: center; }
/* پروفایل */
.c__f { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 50%, var(--card)); border-radius: 0 0 var(--r) var(--r); }
.acc-g { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.me { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.me__av, .mem__av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none; font-weight: 900; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--p), var(--p2)); }
.me__av img, .mem__av img { width: 100%; height: 100%; object-fit: cover; }
.setg .span2 { grid-column: 1 / -1; }
/* تیم */
.team-g { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.mem, .wsl { list-style: none; padding: 0; margin: 0; }
.mem__r { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mem__r:last-child { border-bottom: 0; }
.mem__av { width: 40px; height: 40px; font-size: 16px; }
.mem__r.is-pending .mem__av { background: var(--bg2); color: var(--t3); }
.mem__n { flex: 1; min-width: 150px; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.6; }
.mem__n .ltr { text-align: right; }
.mem__a { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.mem__a form { margin: 0; } .mem__a .form-select { width: auto; min-width: 150px; border-radius: 10px; }
.mem__x:hover { color: var(--bad); border-color: transparent; }
.team-limit .bar { margin-bottom: 0; } .bar i { max-width: 100%; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.roles div { padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13px; }
.roles b { display: block; font-size: 14px; } .roles span { color: var(--t2); }
.wsl li { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.wsl form { margin: 0; }
.wsl__i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--p-soft); color: var(--p); font-weight: 900; flex: none; }
.wsl__n { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.wsl__n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* اشتراک */
.bill-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; align-items: stretch; }
.curplan { padding: 22px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(160deg, var(--p-soft), var(--card) 55%); }
.curplan__top { display: flex; align-items: center; gap: 14px; } .curplan__top .feat__i { margin: 0; background: var(--card); }
.curplan h2 { font-size: 24px; } .curplan__meta { font-size: 14px; color: var(--t2); }
.curplan > .b { align-self: flex-start; }
.ubar { font-size: 13.5px; } .ubar .bar { height: 8px; }
.ubar.is-hot .bar i { background: var(--warn); }
.paytable tbody tr:hover { cursor: default; background: transparent; }
@media (max-width: 980px) {
  .steps, .acc-g, .team-g, .bill-g { grid-template-columns: 1fr; }
  .hero__art { padding: 20px 0 10px; max-width: 520px; } .mock--back { display: none; } .mock--front { width: 100%; }
  .mock__chip { display: none; } .mock--front { animation: none; }
  .team-main { display: contents; } .team-main > .c:first-child { order: 1; } .team-side { order: 2; } .team-main > .c + .c { order: 3; margin-top: 0 !important; }
}
@media (max-width: 720px) {
  .roles { grid-template-columns: 1fr; } .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .feat { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 2px 14px; padding: 18px; } .feat__i { grid-row: span 2; margin: 0; }
  .sec { padding: 46px 0; } .hero__btns .b { flex: 1 1 100%; }
  .tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tpl { padding: 14px; }
  .tpl p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; }
  .tpl__a { flex-wrap: wrap; } .tpl__a .b, .tpl__a form { flex: 1 1 auto; } .tpl__a form .b { width: 100%; }
  .prose { padding: 22px 18px; } .mem__a { width: 100%; justify-content: flex-end; } .plan .desc { min-height: 0; }
}
/* ═══════════════ پایان بخش صفحات عمومی/حساب/تیم/اشتراک ═══════════════ */

/* ═══════════════ پیشخوان، تنظیمات، اشتراک و نتایج (صفحه‌های app) ═══════════════ */
:root { --c0: var(--p); --c1: var(--p2); --c2: var(--zaferan); --c3: var(--golab); --c4: #7C6FE0; --c5: #5B8DEF; --c6: #94A3B8; --c7: #2BB673; --c8: #E0742F; --c9: #A855F7; }
.flip { transform: scaleX(-1); }
.form-select { padding-inline-end: 36px; background-position: left 12px center; }
.wrap--narrow { max-width: 980px; }
.note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: var(--p-soft); color: var(--t); border: 1px solid color-mix(in srgb, var(--p) 25%, transparent); }
.note > .ic { color: var(--p); }
.note--warn { background: color-mix(in srgb, var(--zaferan) 14%, var(--card)); border-color: color-mix(in srgb, var(--zaferan) 45%, transparent); }
.note--warn > .ic { color: #a8650a; }
.note--bad { background: color-mix(in srgb, var(--bad) 7%, var(--card)); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.note--bad > .ic { color: var(--bad); }
.empty__i { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--p-soft); color: var(--p); }
.empty--hero { padding: 70px 20px; } .empty--hero h2 { font-size: 22px; color: var(--t); margin-bottom: 6px; } .empty--hero p { max-width: 460px; margin: 0 auto 22px; color: var(--t2); }
.sinput { position: relative; min-width: 220px; } .sinput .ic { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--t3); pointer-events: none; }
.sinput .form-control { padding-inline-start: 38px; width: 100%; }
.toolbar .sinput { flex: 1 1 240px; max-width: 380px; }
.qnum { flex: none; min-width: 28px; height: 28px; border-radius: 9px; background: var(--p-soft); color: var(--p); display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; padding: 0 6px; }
.qnum--sm { min-width: 22px; height: 22px; border-radius: 7px; font-size: 11.5px; vertical-align: 1px; margin-inline-end: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 12px; border-radius: 99px; background: var(--p-soft); color: var(--p-dark); font-weight: 700; font-size: 13.5px; }
.chip--no { background: var(--bg2); color: var(--t2); }

/* ستون کناری پیشخوان */
.wsw { margin: 0 2px 12px; }
.wsw__b { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; text-align: start; font-family: var(--fa); color: var(--t); }
.wsw__b:hover { border-color: var(--p); }
.wsw__i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff; font-weight: 900; }
.wsw__n { flex: 1; min-width: 0; line-height: 1.4; } .wsw__n b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wsw__n small { color: var(--t3); font-size: 11.5px; }
.aside .frow { display: flex; align-items: center; position: relative; }
.aside .frow a.ai { flex: 1; min-width: 0; }
.frow__m { border: 0; background: none; color: var(--t3); padding: 4px; border-radius: 8px; opacity: 0; cursor: pointer; transition: .15s; }
.frow:hover .frow__m, .frow__m:focus, .frow__m[aria-expanded="true"] { opacity: 1; } .frow__m:hover { color: var(--p); background: var(--p-soft); }
@media (hover: none) { .frow__m { opacity: 1; } }
.fnew { display: none; gap: 6px; padding: 0 6px 8px; } .fnew.show, .fnew.collapsing { display: flex; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-inline: 4px 3px; }
.dot--ok { background: var(--ok); } .dot--warn { background: var(--zaferan); } .dot--bad { background: var(--bad); }
.usage .b { margin-top: 4px; }

/* کارت فرم */
.scard__top--draft { background: linear-gradient(90deg, var(--zaferan), color-mix(in srgb, var(--zaferan) 50%, var(--p2))); }
.scard__top--closed { background: var(--line2); }
.scard__b h3 a:hover { color: var(--p); }
.scard__n { display: inline-flex; align-items: baseline; gap: 6px; color: var(--t2); font-size: 13px; margin: 2px 0 8px; }
.scard__n b { font-size: 24px; font-weight: 900; color: var(--t); font-variant-numeric: tabular-nums; } .scard__n:hover b { color: var(--p); }
.scard__f .b { padding-inline: 8px; }
.new-card__i { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 8px; background: var(--card); border: 1px solid var(--line); }
.tstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.tstrip .tpl { scroll-snap-align: start; }

/* شروع فرم جدید */
.start { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.start__blank, .start__tpl { display: flex; gap: 16px; padding: 22px; align-items: flex-start; }
.start h2 { font-size: 18px; margin-bottom: 2px; }
.start__blank .form-control { flex: 1 1 220px; width: auto; min-width: 0; }
.start__tpl { align-items: center; }
.start__tpl { transition: .15s; } .start__tpl:hover { border-color: var(--p); box-shadow: var(--sh-lg); }
.start__i { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff; box-shadow: 0 10px 22px -12px var(--p); }
.start__i--2 { background: color-mix(in srgb, var(--zaferan) 20%, var(--card)); color: #a8650a; box-shadow: none; }

/* تنظیمات */
.sw { cursor: pointer; margin: 0; transition: border-color .15s; } .sw:hover { border-color: var(--line2); }
.sw.form-switch { padding: 12px 14px; } .sw.form-switch .form-check-input { margin: 2px 0 0; float: none; }
.sw:has(input:checked) { border-color: color-mix(in srgb, var(--p) 45%, transparent); background: color-mix(in srgb, var(--p) 4%, var(--card)); }
.sw:has(input:disabled) { cursor: not-allowed; opacity: .65; }
.gated input:disabled { background: var(--bg); }
.savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-top: 8px;
           background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-lg); }

/* اشتراک‌گذاری */
.shg { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.qrc { position: sticky; top: 82px; } .qrc__img { width: 100%; max-width: 220px; height: auto; border-radius: 14px; border: 1px solid var(--line); padding: 8px; background: #fff; }
.shares { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.share { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px; font-weight: 700; font-size: 14px; border: 1px solid var(--line); transition: .15s; }
.share:hover { transform: translateY(-1px); box-shadow: var(--sh); }
.share--wa { color: #128C4A; background: #E9F8EF; border-color: #C9EFD7; } .share--tg { color: #1C7FC0; background: #E8F4FC; border-color: #CBE5F7; }
.share--mail { color: #B4452F; background: #FCEEEA; border-color: #F6D6CD; } .share--sms { color: var(--t2); background: var(--bg); }
.etabs { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; } .etabs .nav-link { border: 0; background: none; } .etabs .nav-link { border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--t2); padding: 5px 14px; }
.etabs .nav-link.active { background: var(--p-soft); color: var(--p); }

/* نتایج و پاسخ‌ها */
.fbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; margin-bottom: 16px; }
.fbar .form-control, .fbar .form-select { width: auto; }
.fbar__d { width: 140px !important; direction: ltr; text-align: right; } .fbar__q { max-width: 280px; } .fbar__v { max-width: 200px; }
.seg { display: inline-flex; background: var(--bg2); border-radius: 12px; padding: 3px; }
.seg label { padding: 5px 14px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--t2); cursor: pointer; }
.seg .btn-check:checked + label { background: var(--card); color: var(--p); box-shadow: var(--sh); }
.seg .btn-check:focus-visible + label { outline: 2px solid var(--p2); }
.kpi { position: relative; } .kpi .kpi__i { position: absolute; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--p-soft); color: var(--p); }
.kpi .kpi__i--ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.kpi .kpi__i--2 { background: color-mix(in srgb, var(--p2) 13%, transparent); color: var(--p2); }
.kpi .kpi__i--3 { background: color-mix(in srgb, var(--zaferan) 18%, transparent); color: #a8650a; }
.kpi .bar { margin: 8px 0 0; } .kpi__dur { font-size: 20px !important; line-height: 1.75; }
.rgrid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.chartbox { position: relative; } .chartbox--line { height: 260px; }
.rgrid > .c { display: flex; flex-direction: column; } .rgrid > .c > .c__b { flex: 1; display: flex; flex-direction: column; } .rgrid .chartbox--line { flex: 1; min-height: 260px; }
.npsbox .nps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .npsbox .nps div { padding: 6px 4px; line-height: 1.5; }
.qstat .texts li { padding: 6px 12px; line-height: 1.7; } .texts--grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } .chartbox--pie { height: 210px; }
.hb__r--bad .bar i { background: color-mix(in srgb, var(--bad) 70%, var(--zaferan)); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.vbox h4 { font-size: 14px; margin-bottom: 8px; }
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.nums div { background: var(--bg); border-radius: 12px; padding: 10px 12px; } .nums small { display: block; color: var(--t3); font-size: 12px; }
.nums b { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; word-break: break-word; }
.avgbox { background: var(--bg); border-radius: 14px; padding: 16px; text-align: center; } .avgbox > small { display: block; color: var(--t3); }
.avgbox > b { font-size: 34px; font-weight: 900; line-height: 1.3; }
.npsbox { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line2); } .npsbox .nps div { background: var(--card); font-size: 11.5px; }
.npsbox .nps b { font-size: 15px; } .nps--pro b { color: var(--ok); } .nps--pas b { color: #a8650a; } .nps--det b { color: var(--bad); }
.npsbox__s b { font-size: 28px; font-weight: 900; } .npsbox__s b.ok { color: var(--ok); } .npsbox__s b.bad { color: var(--bad); } .npsbox__s small { display: block; color: var(--t3); }
.npsbar { display: flex; height: 8px; border-radius: 9px; overflow: hidden; margin-top: 10px; background: var(--line); }
.npsbar .pro { background: var(--ok); } .npsbar .pas { background: var(--zaferan); } .npsbar .det { background: var(--bad); }
.rank { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg); border-radius: 12px; font-size: 14px; }
.rank__n { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--p); color: #fff; font-weight: 800; font-size: 13px; }
.rank li:nth-child(n+4) .rank__n { background: var(--line2); color: var(--t2); }
.rank--sm li { padding: 5px 10px; }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.files__f { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; padding: 6px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; }
.files__f:hover { border-color: var(--p); color: var(--p); }
.files__sig img, .sigimg img { height: 70px; width: 140px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.sigimg img { height: 110px; width: 240px; }
.rtwrap { overflow: hidden; } .rt th { background: var(--bg); } .rt td { vertical-align: middle; }
.rt__c { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt tbody tr:last-child td { border-bottom: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 18px; }
.pager__n { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-weight: 700; font-size: 14px; border: 1px solid transparent; }
a.pager__n:hover { border-color: var(--line2); background: var(--card); } .pager__n.on { background: var(--p); color: #fff; }
.rdg { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.rd { overflow: hidden; } .rd .answer:last-child { border-bottom: 0; } .rd .answer h4 { display: flex; align-items: center; gap: 4px; }
.rd__meta { position: sticky; top: 82px; }
.meta { margin: 0; padding: 6px 18px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; font-size: 13.5px; }
.meta dt { color: var(--t3); font-weight: 600; padding: 7px 0; border-bottom: 1px solid var(--line); }
.meta dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); text-align: end; }
.meta dt:nth-last-of-type(1), .meta dd:last-child { border-bottom: 0; }
.stars { display: flex; align-items: center; gap: 2px; color: var(--line2); } .stars .on { color: var(--zaferan); } .stars .on svg { fill: currentColor; }
.scalev { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .scalev b { font-size: 26px; font-weight: 900; color: var(--p); }
.mt--ans { max-width: 560px; } .tick { color: var(--p); } .dotc { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.ltext { white-space: normal; background: var(--bg); border-radius: 10px; padding: 8px 12px; }

@media (max-width: 980px) {
  .shg, .rdg, .rgrid { grid-template-columns: 1fr; } .qrc, .rd__meta { position: static; } .start { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .fbar__d { width: calc(50% - 4px) !important; } .fbar .seg, .fbar .sinput, .fbar__q, .fbar__v { flex: 1 1 100%; max-width: none; }
  .toolbar .sinput { flex: 1 1 100%; max-width: none; } .toolbar .form-select { flex: 1; }
  .ph__a { margin-inline-start: 0; width: 100%; } .start__blank, .start__tpl { padding: 16px; } .start__i { width: 44px; height: 44px; }
  .kpi b { font-size: 22px; } .kpi .kpi__dur { font-size: 16px !important; } .rt__c { max-width: 160px; }
}
@media print {
  .nav, .shead, .noprint, .toasts, .fbar, .ph__a, .savebar { display: none !important; }
  body { background: #fff; } .main { padding: 0; } .c { box-shadow: none; break-inside: avoid; } .rd__meta { position: static; }
  .rdg { grid-template-columns: 1fr; }
}
