@charset "UTF-8";

/* =========================================================================
   M&M — Move & More
   طرح پایه: RTL، وزیرمتن، حالت روشن/تاریک
   ========================================================================= */

:root {
  --bg: #f6f6f2;
  --bg-2: #efefea;
  --surf: #ffffff;
  --surf-2: #fafaf8;
  --ink: #1c2024;
  --ink-2: #333a41;
  --mute: #5b636b;
  --mute-2: #838c94;
  --line: #e2e2db;
  --line-2: #d2d2ca;
  --acc: #0a8f62;
  --acc-d: #066f4c;
  --acc-t: #e3f4ec;
  --ink-inv: #ffffff;
  --warn: #b7791f;
  --warn-t: #fdf3e0;
  --bad: #c0392b;
  --bad-t: #fdeceb;
  --done: #4a5568;
  --promo: #8a5cf6;
  --promo-t: #f1ebfe;

  --r-s: 10px;
  --r: 14px;
  --r-l: 20px;
  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(20, 30, 25, 0.05);
  --sh-2: 0 10px 24px -14px rgba(20, 30, 25, 0.3);
  --sh-3: 0 22px 50px -28px rgba(20, 30, 25, 0.45);
  --nav-h: 68px;
  --maxw: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171a;
    --bg-2: #191d21;
    --surf: #1d2125;
    --surf-2: #22272c;
    --ink: #eef0ec;
    --ink-2: #d6dad6;
    --mute: #a0a8af;
    --mute-2: #7d868e;
    --line: #2e343a;
    --line-2: #3a4148;
    --acc: #2fcb93;
    --acc-d: #58ddab;
    --acc-t: #173528;
    --ink-inv: #0f1a15;
    --warn: #e0b054;
    --warn-t: #3a2f16;
    --bad: #f0837a;
    --bad-t: #3a1f1d;
    --done: #a0a8af;
    --promo: #b69bfa;
    --promo-t: #2a2140;
    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --sh-2: 0 10px 24px -14px rgba(0, 0, 0, 0.7);
    --sh-3: 0 22px 50px -28px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #14171a; --bg-2: #191d21; --surf: #1d2125; --surf-2: #22272c;
  --ink: #eef0ec; --ink-2: #d6dad6; --mute: #a0a8af; --mute-2: #7d868e;
  --line: #2e343a; --line-2: #3a4148;
  --acc: #2fcb93; --acc-d: #58ddab; --acc-t: #173528; --ink-inv: #0f1a15;
  --warn: #e0b054; --warn-t: #3a2f16;
  --bad: #f0837a; --bad-t: #3a1f1d;
  --done: #a0a8af; --promo: #b69bfa; --promo-t: #2a2140;
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 10px 24px -14px rgba(0,0,0,.7);
  --sh-3: 0 22px 50px -28px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* ---------- پایه ---------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.85 Vazirmatn, "IRANSans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4.6vw, 46px); }
h2 { font-size: clamp(23px, 3.2vw, 32px); }
h3 { font-size: clamp(17px, 2vw, 20px); }
h4 { font-size: 15px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--acc); color: var(--ink-inv); }

/* ---------- چیدمان ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.wrap-n { width: 100%; max-width: 1420px; margin-inline: auto; padding-inline: 20px; }
section { padding-block: 68px; }
.section { padding-block: 54px; }
.sect-soft { background: var(--surf); border-block: 1px solid var(--line); }
.sect-alt { background: var(--bg-2); }

.sec-h { max-width: 680px; margin-bottom: 30px; }
.sec-h p { color: var(--mute); margin-top: 10px; }
.sec-h.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--acc-d);
  background: var(--acc-t);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.divider { height: 1px; background: var(--line); border: 0; margin-block: 24px; }

/* گریدها */
.g { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.g-auto-l { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.sp { flex: 1; }

/* ---------- ناوبری ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }

.logo { display: flex; align-items: center; gap: 10px; direction: ltr; flex: none; }
.logo svg { width: 36px; height: 36px; }
.logo b { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; display: block; color: var(--ink); }
.logo small { display: block; font-size: 10px; color: var(--mute); font-weight: 600; margin-top: 1px; }

.nav-links { display: flex; gap: 4px; margin-inline-start: 10px; }
.nav-links a {
  color: var(--mute);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: var(--r-s);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.on { color: var(--acc-d); background: var(--acc-t); font-weight: 700; }

.nav-acts { display: flex; gap: 8px; align-items: center; }

.burger {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex: none;
}
.burger:hover { border-color: var(--acc); }

.mnav { display: none; border-top: 1px solid var(--line); padding: 10px 20px 18px; background: var(--bg); }
.mnav.open { display: block; }
.mnav a, .mnav .mm-btn { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mnav .m-group { padding: 14px 4px 6px; font-size: 12.5px; font-weight: 700; color: var(--mute-2); border: 0; }

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-acts .hide-sm { display: none; }
  .burger { display: flex; }
}

/* ---------- دکمه‌ها ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 18px;
  border-radius: var(--r-s);
  border: 1.5px solid var(--line-2);
  background: var(--surf);
  color: var(--ink);
  font: 700 14.5px/1 inherit;
  font-family: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, color .15s, opacity .15s;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--acc); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.btn.pri { background: var(--acc); border-color: var(--acc); color: var(--ink-inv); }
.btn.pri:hover { background: var(--acc-d); border-color: var(--acc-d); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--mute); }
.btn.ghost:hover { color: var(--ink); background: var(--bg-2); border-color: transparent; }
.btn.danger { color: var(--bad); border-color: var(--bad); background: transparent; }
.btn.danger:hover { background: var(--bad-t); }
.btn.sm { min-height: 36px; padding-inline: 13px; font-size: 13px; border-radius: 8px; }
.btn.xs { min-height: 30px; padding-inline: 10px; font-size: 12px; border-radius: 7px; }
.btn.block { width: 100%; }
.btn.lg { min-height: 52px; padding-inline: 26px; font-size: 16px; }

.link {
  color: var(--acc-d);
  font-weight: 700;
}
.link:hover { text-decoration: underline; }

/* ---------- برچسب‌ها ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--acc-t);
  color: var(--acc-d);
  white-space: nowrap;
  line-height: 1.8;
}
.tag.plain { background: var(--bg-2); color: var(--mute); }
.tag.line { background: transparent; border: 1px dashed var(--line-2); color: var(--mute-2); }
.tag.warn { background: var(--warn-t); color: var(--warn); }
.tag.bad { background: var(--bad-t); color: var(--bad); }
.tag.promo { background: var(--promo-t); color: var(--promo); }
.tag.done { background: var(--bg-2); color: var(--done); }
.tag.ok { background: var(--acc-t); color: var(--acc-d); }
.tag.sm { font-size: 11px; padding: 2px 8px; }

/* ---------- کارت‌ها ---------- */

.card {
  background: var(--surf);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.card.linkcard:hover { border-color: var(--acc); transform: translateY(-3px); box-shadow: var(--sh-2); }
.card.pad-lg { padding: 26px; }
.card.flat { box-shadow: none; }

.panel {
  background: var(--surf);
  border: 1.5px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}
.panel-h {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surf-2);
}
.panel-h h3 { font-size: 16px; }
.panel-b { padding: 20px; }
.panel-b.tight { padding: 14px 20px; }

/* ---------- آواتار ---------- */

.av {
  display: grid;
  place-items: center;
  border-radius: var(--r-s);
  background: var(--acc-t);
  color: var(--acc-d);
  font-weight: 800;
  flex: none;
  overflow: hidden;
  font-family: Vazirmatn, sans-serif;
  position: relative;
}
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-28 { width: 28px; height: 28px; font-size: 11px; }
.av-36 { width: 36px; height: 36px; font-size: 13px; }
.av-44 { width: 44px; height: 44px; font-size: 15px; }
.av-56 { width: 56px; height: 56px; font-size: 19px; border-radius: var(--r); }
.av-72 { width: 72px; height: 72px; font-size: 25px; border-radius: var(--r-l); }
.av-110 { width: 110px; height: 110px; font-size: 36px; border-radius: var(--r-l); }
.av-round { border-radius: 50%; }

.av-verified::after {
  content: "";
  position: absolute;
  inset-block-end: -2px;
  inset-inline-end: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--acc);
  border: 2.5px solid var(--surf);
}

/* ---------- فرم‌ها ---------- */

.field { display: block; margin-bottom: 16px; }
.field > span, .lbl {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.hint { font-size: 12.5px; color: var(--mute-2); margin-top: 5px; line-height: 1.7; }
.req::after { content: " *"; color: var(--bad); }

.inp, .sel, .txa {
  width: 100%;
  background: var(--surf);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-s);
  color: var(--ink);
  font: 400 15px/1.7 inherit;
  font-family: inherit;
  font-size: 15px;
  padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
  min-height: 46px;
}
.txa { min-height: 110px; resize: vertical; line-height: 1.9; }
.inp:focus, .sel:focus, .txa:focus {
  outline: 0;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-t);
}
.inp::placeholder, .txa::placeholder { color: var(--mute-2); }
.sel {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B636B' stroke-width='2.2' stroke-linecap='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;
  padding-inline-end: 36px;
}
.sel option { background: #fff; color: #111; }
:root[data-theme="dark"] .sel option, :root:not([data-theme="light"]) .sel option { background: #1d2125; color: #eef0ec; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sel option { background: #1d2125; color: #eef0ec; } }

.inp-err { border-color: var(--bad) !important; }
.err-msg { display: block; font-size: 12.5px; color: var(--bad); margin-top: 5px; font-weight: 600; }

.chk {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  cursor: pointer;
  line-height: 1.7;
}
.chk input { width: 19px; height: 19px; accent-color: var(--acc); margin: 3px 0 0; flex: none; cursor: pointer; }

.chip-pick { position: relative; display: inline-flex; }
.chip-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip-pick span {
  display: inline-block;
  padding: 7px 13px;
  border: 1.5px solid var(--line-2);
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mute);
  cursor: pointer;
  transition: all .15s;
  background: var(--surf);
}
.chip-pick input:checked + span {
  background: var(--acc-t);
  border-color: var(--acc);
  color: var(--acc-d);
}
.chip-pick input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; }
.switch input { position: absolute; opacity: 0; }
.switch i {
  width: 42px; height: 24px; border-radius: 99px;
  background: var(--line-2); position: relative; transition: background .18s; flex: none;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform .18s; box-shadow: var(--sh-1);
}
.switch input:checked + i { background: var(--acc); }
.switch input:checked + i::after { transform: translateX(-18px); }
.switch input:focus-visible + i { outline: 3px solid var(--acc); outline-offset: 2px; }

fieldset { border: 0; margin: 0 0 20px; padding: 0; }
legend { font-size: 14px; font-weight: 800; padding: 0 0 12px; display: flex; align-items: center; gap: 8px; }
legend .n {
  width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-size: 12px; font-family: Inter, sans-serif; flex: none;
}

.file-in {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-s);
  background: var(--surf-2);
  font-family: inherit;
  font-size: 14px;
  color: var(--mute);
  cursor: pointer;
}
.file-in::file-selector-button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  margin-inline-end: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--surf);
  color: var(--ink);
  cursor: pointer;
}

.alert {
  border-radius: var(--r);
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.8;
  border: 1px solid;
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert b { font-weight: 800; }
.alert.err { background: var(--bad-t); border-color: var(--bad); color: var(--bad); }
.alert.ok { background: var(--acc-t); border-color: var(--acc); color: var(--acc-d); }
.alert.warn { background: var(--warn-t); border-color: var(--warn); color: var(--warn); }
.alert.info { background: var(--bg-2); border-color: var(--line-2); color: var(--mute); }
.alert svg { flex: none; margin-top: 5px; }

/* ---------- جست‌وجو و فیلتر ---------- */

.searchbar {
  background: var(--surf);
  border: 1.5px solid var(--line);
  border-radius: var(--r-l);
  padding: 10px;
  display: grid;
  grid-template-columns: 1.6fr .9fr .9fr auto;
  gap: 8px;
  box-shadow: var(--sh-3);
  align-items: stretch;
}
.searchbar label {
  display: block;
  padding: 4px 12px;
  border-radius: var(--r-s);
  min-width: 0;
}
.searchbar label:focus-within { background: var(--acc-t); }
.searchbar label > span { font-size: 11.5px; color: var(--mute); font-weight: 600; display: block; line-height: 1.6; }
.searchbar input, .searchbar select {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 15px/1.5 inherit;
  font-family: inherit;
  font-size: 15px;
  padding: 3px 0;
  outline: 0;
  min-height: 30px;
}
.searchbar select { appearance: none; background-position: left 0 center; padding-inline-end: 0; }
.searchbar select option { background: #fff; color: #111; }
.searchbar .btn { min-height: 56px; }
@media (max-width: 900px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar label:first-child, .searchbar .btn { grid-column: 1 / -1; }
}

.filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px;
  background: var(--surf);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 20px;
}
.filterbar .fb { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; min-width: 130px; }
.filterbar .fb > span { font-size: 11px; color: var(--mute); font-weight: 700; }
.filterbar .inp, .filterbar .sel { min-height: 40px; padding: 8px 11px; font-size: 14px; }
.filterbar .sel { background-position: left 9px center; padding-inline-end: 30px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a, .tabs button {
  padding: 11px 15px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--mute);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  background: none;
  border-inline: 0;
  border-top: 0;
  cursor: pointer;
  font-family: inherit;
}
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs .on { color: var(--acc-d); border-bottom-color: var(--acc); }

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--mute);
}
.result-bar b { color: var(--ink); }

/* ---------- کارت آگهی ---------- */

.lc {
  background: var(--surf);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  position: relative;
}
.lc:hover { border-color: var(--acc); transform: translateY(-3px); box-shadow: var(--sh-2); }
.lc.promoted { border-color: var(--promo); }
.lc-top { display: flex; gap: 12px; align-items: flex-start; }
.lc-top .av { margin-top: 2px; }
.lc h3 { font-size: 16.5px; line-height: 1.6; }
.lc h3 a:hover { color: var(--acc-d); }
.lc .meta { font-size: 12.5px; color: var(--mute); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lc .meta span { display: inline-flex; align-items: center; gap: 4px; }
.lc .desc {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lc .foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lc .price { font-weight: 800; font-size: 14.5px; }
.lc .price small { font-weight: 400; color: var(--mute); font-size: 12.5px; }
.lc-img {
  height: 132px;
  border-radius: var(--r-s);
  background: var(--bg-2);
  display: grid;
  place-items: center;
  color: var(--mute-2);
  position: relative;
  overflow: hidden;
}
.lc-img .tag { position: absolute; top: 8px; inset-inline-start: 8px; }
.lc-actions { display: flex; gap: 6px; }

.pc {
  background: var(--surf);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.pc:hover { border-color: var(--acc); transform: translateY(-3px); box-shadow: var(--sh-2); }
.pc.promoted { border-color: var(--promo); }
.pc h3 { font-size: 16px; }
.pc h3 a:hover { color: var(--acc-d); }

.empty {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-l);
  padding: 46px 26px;
  text-align: center;
  color: var(--mute);
  background: var(--surf-2);
}
.empty h3 { color: var(--ink); margin-bottom: 8px; }
.empty svg { color: var(--mute-2); margin-bottom: 14px; }

/* ---------- جدول ---------- */

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-weight: 700; color: var(--mute); font-size: 12.5px; background: var(--surf-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surf-2); }
.tbl .num { font-family: Inter, sans-serif; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- نوار وضعیت ---------- */

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat-strip > div { background: var(--surf); padding: 18px 16px; }
.stat-strip .k { font-size: 12.5px; color: var(--mute); font-weight: 600; }
.stat-strip .v { font-size: 25px; font-weight: 800; line-height: 1.3; margin-top: 2px; font-family: Inter, Vazirmatn, sans-serif; }

/* ---------- تب (نوار) ---------- */

.toast {
  position: fixed;
  inset-block-end: calc(22px + env(safe-area-inset-bottom, 0px));
  inset-inline: 0;
  margin-inline: auto;
  width: max-content;
  max-width: 92%;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: var(--r-s);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  transform: translateY(8px);
  z-index: 200;
  box-shadow: var(--sh-3);
  text-align: center;
}
.toast.on { opacity: 1; transform: translateY(0); }

.flash {
  position: fixed;
  inset-block-start: calc(var(--nav-h) + 12px);
  inset-inline: 0;
  margin-inline: auto;
  width: max-content;
  max-width: 92%;
  z-index: 200;
  border-radius: var(--r);
  padding: 13px 20px;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: var(--sh-3);
  display: none;
  animation: flashIn .3s ease;
}
.flash.on { display: block; }
.flash.ok { background: var(--acc-t); color: var(--acc-d); border: 1.5px solid var(--acc); }
.flash.err { background: var(--bad-t); color: var(--bad); border: 1.5px solid var(--bad); }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- صفحهٔ ورود ---------- */

.auth-wrap { display: grid; place-items: center; padding-block: 50px 70px; min-height: 70dvh; }
.auth-card { width: 100%; max-width: 440px; background: var(--surf); border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--sh-3); }
.auth-card.wide { max-width: 720px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card > p.sub { color: var(--mute); font-size: 14.5px; margin-bottom: 24px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--mute); margin-top: 20px; }

/* ---------- داشبورد ---------- */

.dash { display: grid; grid-template-columns: 232px 1fr; gap: 26px; align-items: start; padding-block: 28px 60px; }
.dash-side {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  background: var(--surf);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100dvh - var(--nav-h) - 40px);
  overflow-y: auto;
}
.dash-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mute);
  transition: background .14s, color .14s;
}
.dash-side a:hover { background: var(--bg-2); color: var(--ink); }
.dash-side a.on { background: var(--acc-t); color: var(--acc-d); font-weight: 800; }
.dash-side .cap {
  font-size: 11px;
  font-weight: 800;
  color: var(--mute-2);
  padding: 14px 12px 6px;
  letter-spacing: .02em;
}
.dash-side .badge {
  margin-inline-start: auto;
  background: var(--bad);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding-inline: 6px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-family: Inter, sans-serif;
}
.dash-main { min-width: 0; }
.dash-head { margin-bottom: 22px; }
.dash-head h1 { font-size: 26px; }
.dash-head p { color: var(--mute); font-size: 14.5px; margin-top: 4px; }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    padding: 8px;
  }
  .dash-side .cap { display: none; }
  .dash-side a { white-space: nowrap; }
}

/* ---------- صفحهٔ جزئیات ---------- */

.detail { display: grid; grid-template-columns: 1fr 330px; gap: 30px; align-items: start; padding-block: 30px 64px; }
.detail-side { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .detail-side { position: static; } }

.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mute); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--acc-d); }
.crumbs .sp { flex: 1; }

.prose { font-size: 15.5px; line-height: 2.1; color: var(--ink-2); white-space: pre-line; overflow-wrap: break-word; }
.prose a { color: var(--acc-d); text-decoration: underline; }

.kv { display: grid; gap: 0; }
.kv > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.kv > div:last-child { border-bottom: 0; }
.kv .k { color: var(--mute); flex: none; }
.kv .v { font-weight: 600; text-align: end; }

/* ---------- پروفایل ---------- */

.prof-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 26px; }
.prof-head .info { flex: 1; min-width: 230px; }
.prof-head h1 { font-size: 27px; margin-bottom: 5px; }
.prof-head .sub { color: var(--mute); font-size: 15px; }

.completeness { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--mute); }
.completeness .bar { flex: 1; height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; min-width: 90px; }
.completeness .bar i { display: block; height: 100%; background: var(--acc); border-radius: 99px; transition: width .4s; }

.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.work-card { border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surf); transition: border-color .18s; }
.work-card:hover { border-color: var(--acc); }
.work-card .thumb { aspect-ratio: 4/3; background: var(--bg-2); display: grid; place-items: center; color: var(--mute-2); position: relative; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-card .info { padding: 12px 14px; }
.work-card .info h4 { font-size: 14px; margin-bottom: 4px; }
.work-card .info p { font-size: 12.5px; color: var(--mute); line-height: 1.7; }

/* ---------- تایم‌لاین ---------- */

.timeline { position: relative; padding-inline-start: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 6px;
  inset-inline-start: 7px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: -24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surf);
  border: 2.5px solid var(--acc);
}
.tl-item.done::before { background: var(--acc); }
.tl-item.bad::before { border-color: var(--bad); }
.tl-item .when { font-size: 12.5px; color: var(--mute); }

/* ---------- پیام‌رسان ---------- */

.chat { display: grid; grid-template-columns: 290px 1fr; gap: 0; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surf); height: min(72dvh, 620px); }
.chat-list { border-inline-end: 1.5px solid var(--line); overflow-y: auto; background: var(--surf-2); }
.chat-list a { display: block; padding: 13px 15px; border-bottom: 1px solid var(--line); transition: background .14s; }
.chat-list a:hover { background: var(--bg-2); }
.chat-list a.on { background: var(--acc-t); }
.chat-list .nm { font-weight: 700; font-size: 14px; }
.chat-list .pv { font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--surf-2); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-foot { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; background: var(--surf-2); }
.bubble { max-width: 76%; padding: 10px 14px; border-radius: 15px; font-size: 14.5px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: break-word; }
.bubble.me { align-self: flex-start; background: var(--acc); color: var(--ink-inv); border-start-start-radius: 4px; }
.bubble.you { align-self: flex-end; background: var(--bg-2); color: var(--ink); border-start-end-radius: 4px; }
.bubble .t { font-size: 10.5px; opacity: .7; margin-top: 4px; display: block; }
@media (max-width: 720px) {
  .chat { grid-template-columns: 1fr; height: auto; }
  .chat-list { border-inline-end: 0; border-bottom: 1.5px solid var(--line); max-height: 220px; }
  .chat-main { height: 60dvh; }
  .bubble { max-width: 88%; }
}

/* ---------- مودال ---------- */

.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.on { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(10, 16, 13, 0.55); backdrop-filter: blur(3px); }
.modal-card {
  position: relative;
  background: var(--surf);
  border-radius: var(--r-l);
  border: 1.5px solid var(--line);
  width: 100%;
  max-width: 520px;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: var(--sh-3);
  animation: modalIn .2s ease;
}
.modal-card.lg { max-width: 760px; }
@keyframes modalIn { from { opacity: 0; transform: scale(.97) translateY(8px); } }
.modal-x { position: absolute; top: 14px; inset-inline-end: 14px; background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 24px; line-height: 1; padding: 4px; }
.modal-x:hover { color: var(--ink); }
body.modal-open { overflow: hidden; }

/* ---------- لندینگ ---------- */

.hero { padding-block: 52px 62px; }
.hero-g { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.28; }
.hero .lead { color: var(--mute); font-size: 17px; margin: 16px 0 24px; max-width: 540px; }
@media (max-width: 960px) { .hero-g { grid-template-columns: 1fr; } }

.vals { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.val { padding: 26px 20px; border-inline-start: 1px solid var(--line); }
.val:first-child { border-inline-start: 0; }
.val svg { color: var(--acc); margin-bottom: 10px; }
.val h3 { font-size: 15.5px; margin-bottom: 5px; }
.val p { font-size: 13.5px; color: var(--mute); line-height: 1.8; }
@media (max-width: 880px) { .vals { grid-template-columns: 1fr 1fr; } .val { border-inline-start: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .vals { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; }
.step .n {
  width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-weight: 800; font-size: 17px; margin-bottom: 13px; font-family: Inter, sans-serif;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--mute); font-size: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--surf); border: 1.5px solid var(--line); border-radius: var(--r-l); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan.rec { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-t); }
.plan h3 { font-size: 20px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.plan .pr { font-weight: 700; color: var(--mute); font-size: 14.5px; }
.plan ul { display: grid; gap: 9px; font-size: 14.5px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { color: var(--acc); flex: none; margin-top: 6px; }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.cta-final { background: var(--ink); color: var(--bg); border-radius: var(--r-xl); padding: 56px 30px; text-align: center; }
.cta-final h2 { max-width: 620px; margin: 0 auto 12px; }
.cta-final p { opacity: .78; max-width: 540px; margin: 0 auto 24px; }

/* ---------- پابرگ ---------- */

footer.site { border-top: 1px solid var(--line); background: var(--surf-2); padding-block: 48px 26px; margin-top: 60px; }
.fg { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
footer h4 { margin-bottom: 10px; }
footer ul { display: grid; gap: 7px; font-size: 14px; color: var(--mute); }
footer a:hover { color: var(--acc-d); text-decoration: underline; }
.soc { display: flex; gap: 8px; margin-top: 14px; }
.soc a { width: 38px; height: 38px; border: 1.5px solid var(--line); border-radius: var(--r-s); display: grid; place-items: center; color: var(--mute); }
.soc a:hover { border-color: var(--acc); color: var(--acc-d); text-decoration: none; }
.copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
@media (max-width: 800px) { .fg { grid-template-columns: 1fr 1fr; } .fg > :first-child { grid-column: 1 / -1; } }

/* ---------- ابزارک‌ها ---------- */

.ic { width: 18px; height: 18px; flex: none; }
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 26px; height: 26px; }
.mute { color: var(--mute); }
.mute-2 { color: var(--mute-2); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }
.bold { font-weight: 800; }
.b7 { font-weight: 700; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 34px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.nowrap { white-space: nowrap; }
.ltr { direction: ltr; }
.num { font-family: Inter, Vazirmatn, sans-serif; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media print {
  header.site, footer.site, .dash-side, .btn, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .panel, .card { border: 1px solid #ccc; break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
