/* =====================================================================
   teymurgem — سیستم طراحی
   سرمه‌ای عمیق + طلایی. طلایی = قیمت و اقدام اصلی،
   زمردی = تأیید شده، سرخ = نیاز به توجه.
   ===================================================================== */

:root {
  --ink:       #0E1220;
  --surface:   #171D2E;
  --surface-2: #212940;
  --line:      #2C3550;

  --gold:      #F2B33D;
  --gold-dim:  #8A6A22;
  --emerald:   #2FBF87;
  --rose:      #E5484D;

  --paper:     #E8ECF5;
  --muted:     #8A94AD;
  --faint:     #5C667F;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --wrap: 1180px;
}

@font-face { font-family:'Vazirmatn'; src:url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Vazirmatn'; src:url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Vazirmatn'; src:url('../fonts/Vazirmatn-Black.woff2') format('woff2'); font-weight:900; font-display:swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Vazirmatn', Tahoma, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  direction: rtl;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r-sm); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 18px; }

h1, h2, h3, h4 { font-weight: 900; line-height: 1.4; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.15rem, 2.6vw, 1.5rem); margin-top: 1.6em; }
h3 { font-size: 1.05rem; }
h4 { font-size: .9rem; }

.page-title { margin-top: .4em; }
.lead  { color: var(--muted); font-size: 1.02rem; }
.small { font-size: .85rem; color: var(--muted); }
.mini  { font-size: .74rem; color: var(--muted); }
.mini.ok { color: var(--emerald); }
.center { text-align: center; }
.mt { margin-top: 18px; }
.gold { color: var(--gold); }
.link { color: var(--gold); }

/* ---------- هدر ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14,18,32,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 16px; height: 62px; }

.logo { font-weight: 900; font-size: 1.15rem; color: var(--gold); white-space: nowrap; }

.menu-btn {
  display: none; background: none; border: 0; color: var(--paper);
  font-size: 1.4rem; cursor: pointer; padding: 4px 8px;
}

.nav { display: flex; gap: 20px; margin-inline-start: auto; }
.nav a { color: var(--muted); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--gold); }

.header-cta { margin-inline-start: auto; }
.nav + .header-cta { margin-inline-start: 0; }

/* ---------- دکمه ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: 1px solid transparent; border-radius: var(--r);
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  transition: filter .15s, border-color .15s, color .15s;
}
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-gold { background: var(--gold); color: #1A1405; }
.btn-gold:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }

/* ---------- کارت و فرم ---------- */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.section { padding: 26px 0; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .87rem; font-weight: 700; margin-bottom: 7px; }

.input {
  width: 100%; padding: 12px 14px; background: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r);
  color: var(--paper); font: inherit;
}
.input:focus { outline: none; border-color: var(--gold); }
.input::placeholder { color: var(--faint); }
.input-sm { padding: 8px 12px; font-size: .87rem; }
textarea.input { resize: vertical; line-height: 1.8; }

.hint { font-size: .8rem; color: var(--faint); margin-top: 6px; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 7px; font-size: .87rem; font-weight: 400; cursor: pointer; }

/* ---------- پیام ---------- */

.alert {
  padding: 12px 16px; border-radius: var(--r); margin: 14px 0;
  border-inline-start: 3px solid; background: var(--surface-2); font-size: .9rem;
}
.alert-success { border-color: var(--emerald); }
.alert-error   { border-color: var(--rose); }

.notice { padding: 16px 18px; border-radius: var(--r); background: var(--surface-2); border-inline-start: 3px solid var(--line); }
.notice-gold    { border-color: var(--gold); }
.notice-rose    { border-color: var(--rose); }
.notice-emerald { border-color: var(--emerald); }
.notice h3 { margin-bottom: .3em; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg); }

/* ---------- هیرو ---------- */

.hero { padding: 44px 0 30px; }
.hero h1 { max-width: 18ch; }
.hero p { max-width: 54ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- کاشی ---------- */

.tile-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 20px;
  transition: border-color .18s, background .18s;
}
.tile:hover { border-color: var(--gold-dim); background: var(--surface-2); }

.tile .ico {
  color: var(--gold); margin-bottom: 10px;
  opacity: .9; transition: opacity .18s, transform .18s;
}
.tile:hover .ico { opacity: 1; transform: translateY(-2px); }

.tile-name { font-weight: 900; font-size: .98rem; line-height: 1.5; }
.tile-go {
  font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 6px;
}
.tile-go::after { content: ' ←'; }

.tile-sell { border-style: dashed; }
.tile-sell:hover { border-color: var(--gold); }
.tile-sell .ico { color: var(--muted); }
.tile-sell:hover .ico { color: var(--gold); }

/* ---------- چیپ دسته‌بندی ---------- */

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.chip:hover { border-color: var(--gold-dim); color: var(--paper); }
.chip.on { background: var(--gold); border-color: var(--gold); color: #1A1405; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-bar .input { width: auto; flex: 1 1 120px; }

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

.card-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); }

.listing-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s;
}
.listing-card:hover { border-color: var(--gold-dim); }

.lc-thumb { aspect-ratio: 4/3; background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.lc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lc-noimg { color: var(--faint); font-size: .8rem; }
.lc-noimg.big { aspect-ratio: 16/10; display: grid; place-items: center; background: var(--surface); border-radius: var(--r-lg); }

.lc-body { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.lc-game  { font-size: .75rem; color: var(--gold); }
.lc-title { font-size: .92rem; font-weight: 700; line-height: 1.6; margin: 0;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.lc-badges .mini { background: var(--surface-2); padding: 2px 7px; border-radius: var(--r-sm); }
.lc-price { margin-top: auto; font-weight: 900; color: var(--gold); font-size: .95rem; }
.lc-price s { color: var(--faint); margin-inline-start: 6px; }

/* ---------- صفحه آگهی ---------- */

.crumb { font-size: .82rem; color: var(--muted); display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.crumb a { color: var(--gold); }

.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.detail-media { display: grid; gap: 10px; }
.detail-media img { border-radius: var(--r-lg); border: 1px solid var(--line); }
.detail-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: sticky; top: 78px; }
.detail-title { font-size: 1.2rem; }
.detail-price { font-size: 1.6rem; font-weight: 900; color: var(--gold); margin-bottom: 12px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .88rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv.spec { grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); }
.kv.spec dt { grid-column: auto; }

.prose { color: var(--paper); line-height: 2; max-width: 70ch; }
.seo-text { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; line-height: 2; }

/* ---------- برچسب وضعیت ---------- */

.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-gold    { background: rgba(242,179,61,.16); color: var(--gold); }
.badge-emerald { background: rgba(47,191,135,.16); color: var(--emerald); }
.badge-rose    { background: rgba(229,72,77,.16);  color: var(--rose); }
.badge-muted   { background: var(--surface-2);     color: var(--muted); }

/* ---------- حساب کاربری ---------- */

.account-nav { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0; border-bottom: 1px solid var(--line); }
.account-nav a { padding: 7px 14px; border-radius: var(--r); font-size: .87rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.account-nav a:hover { color: var(--paper); }
.account-nav a.on { background: var(--surface-2); color: var(--gold); }

.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); margin: 18px 0 26px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; }
.stat .k { font-size: .8rem; color: var(--muted); }
.stat .v { font-size: 1.3rem; font-weight: 900; }
.stat .v.sm { font-size: .95rem; }

.row-list { display: flex; flex-direction: column; gap: 10px; }
.row-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px;
  transition: border-color .18s;
}
.row-item:hover { border-color: var(--gold-dim); }
.ri-main { display: flex; flex-direction: column; min-width: 0; }
.ri-title { font-weight: 700; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ri-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; white-space: nowrap; }
.ri-price { font-weight: 900; color: var(--gold); font-size: .88rem; }

/* ---------- احراز هویت ---------- */

.kyc-status { padding: 16px 18px; border-radius: var(--r); background: var(--surface-2); border-inline-start: 3px solid var(--line); }
.kyc-approved { border-color: var(--emerald); }
.kyc-pending  { border-color: var(--gold); }
.kyc-rejected { border-color: var(--rose); }

.doc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 10px; margin-top: 16px; }
.doc-item img { border-radius: var(--r); border: 1px solid var(--line); aspect-ratio: 1; object-fit: cover; }

/* ---------- نوبت ---------- */

.queue-card { text-align: center; }
.queue-label { display: block; font-size: .85rem; color: var(--muted); }
.queue-number {
  display: block; font-size: 3.6rem; font-weight: 900;
  color: var(--gold); line-height: 1.2; margin: 6px 0 10px;
}

/* ---------- ورود ---------- */

.auth-shell { min-height: 70vh; display: grid; place-items: center; padding: 34px 0; }
.auth-box { width: 100%; max-width: 400px; }
.auth-title { font-size: 1.4rem; }

/* ---------- صفحه‌بندی ---------- */

.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.pg { padding: 7px 13px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-size: .85rem; }
.pg.on { background: var(--gold); border-color: var(--gold); color: #1A1405; font-weight: 700; }

/* ---------- فوتر ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 28px 0; color: var(--muted); font-size: .87rem; }
.footer-warn { background: rgba(229,72,77,.1); border: 1px solid rgba(229,72,77,.3); border-radius: var(--r); padding: 13px 16px; margin-bottom: 22px; color: var(--paper); }
.footer-cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); }
.footer-cols h4 { color: var(--paper); margin-bottom: .7em; }
.footer-cols a { display: block; padding: 3px 0; }
.footer-cols a:hover { color: var(--gold); }
.footer-end { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8rem; }

/* ---------- موبایل ---------- */

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}

/* بین ۷۶۰ تا ۱۰۲۰ پیکسل، منو جا نمی‌شود — کوچکش کن */
@media (max-width: 1020px) and (min-width: 761px) {
  .nav { gap: 12px; }
  .nav a { font-size: .82rem; }
}

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 62px; inset-inline: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 8px 18px 16px;
  }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .nav a:last-child { border: 0; }
  .header-cta { margin-inline-start: auto; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); }
  .card { padding: 18px; }
  .queue-number { font-size: 3rem; }
}

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

/* =====================================================================
   پنل مدیریت
   ===================================================================== */

.admin-nav {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.admin-nav a {
  position: relative; padding: 7px 14px; border-radius: var(--r);
  font-size: .87rem; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.admin-nav a:hover { color: var(--paper); }
.admin-nav a.on { background: var(--surface-2); color: var(--gold); }
.admin-nav .dot {
  display: inline-block; margin-inline-start: 6px;
  background: var(--rose); color: #fff; font-size: .7rem;
  padding: 0 6px; border-radius: 999px; font-weight: 900;
}

.admin-row {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px; margin-bottom: 12px;
}
.ar-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.ar-title { font-weight: 700; font-size: .95rem; }
a.ar-title:hover { color: var(--gold); }
.ar-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; white-space: nowrap; }

.ar-actions {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.inline { display: flex; gap: 6px; align-items: center; margin: 0; }
.inline.grow { flex: 1 1 220px; }
.inline .input { width: auto; flex: 1; }

.rose { color: var(--rose); }

/* شماره نوبت در صف */
.q-left { display: flex; gap: 14px; align-items: center; }
.q-num {
  display: grid; place-items: center;
  min-width: 46px; height: 46px; border-radius: var(--r);
  background: var(--surface-2); color: var(--gold);
  font-size: 1.15rem; font-weight: 900;
}

/* بررسی مدارک */
.doc-review { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; }
.doc-review figure { margin: 0; }
.doc-review img {
  width: 100%; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface);
}
.doc-review figcaption { margin-top: 6px; }

@media (max-width: 700px) {
  .ar-actions { flex-direction: column; align-items: stretch; }
  .inline { width: 100%; }
  .inline.grow { flex: 1 1 auto; }
  .doc-review { grid-template-columns: 1fr; }
}

/* ---------- کیف پول ---------- */

.wallet-hero {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--gold-dim); border-radius: var(--r-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 4px;
}
.wallet-hero .k { font-size: .85rem; color: var(--muted); }
.wallet-hero .v { font-size: 2rem; font-weight: 900; color: var(--gold); }

.amount-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.amount-chips .chip { cursor: pointer; font-family: inherit; }

.tx-amount { font-weight: 900; font-size: .9rem; }
.tx-amount.plus  { color: var(--emerald); }
.tx-amount.minus { color: var(--muted); }

/* ---------- تصویر بازی روی کاشی ---------- */

.tile-img {
  display: block; width: 46px; height: 46px; margin-bottom: 10px;
  border-radius: 10px; overflow: hidden; background: var(--surface-2);
}
.tile-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- قوانین ---------- */

.rules-card { border-color: var(--gold-dim); }
.rules { font-size: .89rem; line-height: 2.1; color: var(--muted); }

/* ---------- گفتگوی تیکت ---------- */

.chat { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.msg {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 15px 17px; max-width: 88%;
}
.msg-me    { align-self: flex-start; }
.msg-staff { align-self: flex-end; border-color: var(--gold-dim); background: var(--surface-2); }
.msg-who {
  display: flex; gap: 10px; align-items: baseline;
  font-size: .82rem; font-weight: 700; margin-bottom: 6px;
}
.msg-staff .msg-who { color: var(--gold); }
.msg-body { font-size: .92rem; line-height: 1.9; }
.msg-img { margin-top: 10px; border-radius: var(--r); max-width: 220px; border: 1px solid var(--line); }

@media (max-width: 600px) { .msg { max-width: 96%; } }

/* ---------- برچسب روی کارت محصول ---------- */

.lc-thumb { position: relative; }
.lc-flag {
  position: absolute; top: 8px; inset-inline-start: 8px;
  background: var(--surface-2); color: var(--muted);
  font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.lc-flag.lc-sale { background: var(--gold); color: #1A1405; }

/* ---------- مراحل خرید ---------- */

.steps { display: flex; flex-direction: column; gap: 8px; }
.step {
  display: flex; align-items: center; gap: 10px;
  font-size: .84rem; color: var(--muted);
}
.step span {
  display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--surface-2); color: var(--gold);
  font-size: .74rem; font-weight: 900; flex-shrink: 0;
}

/* ---------- فرم خرید ---------- */

.buy-wrap { max-width: 480px; margin-inline: auto; }
.form-sec {
  margin: 24px 0 4px; padding-top: 20px;
  border-top: 1px solid var(--line); font-size: 1rem;
}

/* =====================================================================
   پروفایل و احراز هویت
   ===================================================================== */

.lvl-card {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
}
.lvl-card.lvl-1 { border-color: var(--gold-dim); }
.lvl-card.lvl-2 { border-color: var(--emerald); }

.lvl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lvl-k { display: block; font-size: .82rem; color: var(--muted); }
.lvl-v { display: block; font-size: 1.35rem; font-weight: 900; }
.lvl-badge {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--ink); color: var(--gold);
  font-size: 1.25rem; font-weight: 900; border: 2px solid var(--gold-dim);
}
.lvl-2 .lvl-badge { color: var(--emerald); border-color: var(--emerald); }

.bar { height: 6px; border-radius: 99px; background: var(--ink); margin: 16px 0 6px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.lvl-2 .bar span { background: var(--emerald); }

.lvl-limit {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted);
}

/* مراحل */
.step-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.step-row:last-of-type { border-bottom: 0; }
.step-n {
  display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%; background: var(--surface-2); color: var(--muted);
  font-size: .82rem; font-weight: 900; border: 1px solid var(--line);
}
.step-n.done { background: var(--emerald); color: #08251A; border-color: var(--emerald); }
.step-body { flex: 1; min-width: 0; }

/* متن دست‌نویس */
.hw-box {
  background: var(--ink); border: 1px dashed var(--gold-dim);
  border-radius: var(--r-lg); padding: 20px; margin: 20px 0;
}
.hw-title { font-size: .85rem; font-weight: 900; color: var(--gold); margin-bottom: 12px; }
.hw-text {
  background: var(--surface); border-radius: var(--r); padding: 18px;
  font-size: .93rem; line-height: 2.2; min-height: 150px;
  border: 1px solid var(--line);
}
.hw-note { font-size: .8rem; color: var(--faint); margin-top: 11px; }

/* کادر مدرک */
.doc-box {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px; margin-bottom: 12px;
}
.doc-box.has { border-color: var(--emerald); }
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.doc-label { font-weight: 700; font-size: .92rem; }
.doc-thumb {
  max-width: 130px; border-radius: var(--r-sm);
  border: 1px solid var(--line); margin: 10px 0;
}
.doc-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.doc-form .input { flex: 1 1 160px; padding: 8px 10px; font-size: .82rem; }

.card.is-locked { opacity: .6; }

/* =====================================================================
   تیک قوانین و پنجره
   ===================================================================== */

.terms-field { margin: 20px 0; }
.terms-line {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .9rem; font-weight: 400; cursor: pointer; margin: 0;
}
.terms-line input[type=checkbox] {
  width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--gold); cursor: pointer;
}
.terms-link {
  color: var(--gold); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.modal-box {
  position: relative; z-index: 1; width: 100%; max-width: 540px;
  max-height: 86vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 1.02rem; }
.modal-x {
  background: none; border: 0; color: var(--muted);
  font-size: 1.2rem; cursor: pointer; padding: 4px 8px;
}
.modal-x:hover { color: var(--rose); }
.modal-body {
  padding: 20px; overflow-y: auto; flex: 1;
  font-size: .89rem; line-height: 2.1; color: var(--muted);
}
.modal-foot {
  padding: 16px 20px; border-top: 1px solid var(--line);
  background: var(--surface-2); display: flex; flex-direction: column; gap: 12px;
}

/* ---------- لوگو با آیکون ---------- */

.logo { display: flex; align-items: center; gap: 9px; }
.logo img { border-radius: 7px; flex-shrink: 0; }
@media (max-width: 400px) {
  .logo img { width: 26px; height: 26px; }
  .logo span { font-size: 1rem; }
}

/* =====================================================================
   کارت بانکی
   ===================================================================== */

.bank-card {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; margin-bottom: 12px;
}
.bank-card.is-ok { border-color: var(--emerald); }

.bc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bc-bank { font-weight: 900; font-size: .95rem; }

.bc-num {
  font-size: 1.12rem; font-weight: 700; letter-spacing: .06em;
  margin: 14px 0 10px; color: var(--gold);
}

.bc-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.bc-acts {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}
.bc-acts .inline { display: flex; margin: 0; }

.card-input { letter-spacing: .12em; font-size: 1.02rem; }

.mini-card {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 12px; margin-top: 8px; font-size: .87rem;
}

.card select.input { appearance: auto; }

/* =====================================================================
   جستجو
   ===================================================================== */

.search-bar { padding: 12px 18px 0; }
.search-bar form { position: relative; display: flex; gap: 8px; }
.search-bar .input { flex: 1; }

.suggest {
  position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 50;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
}
.suggest[hidden] { display: none; }
.suggest a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .88rem;
}
.suggest a:last-child { border: 0; }
.suggest a:hover { background: var(--surface-2); }
.suggest b { color: var(--gold); white-space: nowrap; font-size: .84rem; }

.search-big { display: flex; gap: 8px; margin-bottom: 18px; }
.search-big .input { flex: 1; }

/* زنگ اعلان */
.bell { position: relative; font-size: 1.15rem; padding: 4px 6px; }
.bell b {
  position: absolute; top: -2px; inset-inline-start: -4px;
  background: var(--rose); color: #fff; font-size: .62rem;
  padding: 1px 5px; border-radius: 999px; font-weight: 900;
}

/* =====================================================================
   آگهی ویژه
   ===================================================================== */

.listing-card.is-vip { border-color: var(--gold-dim); }
.lc-flag.lc-vip { background: var(--gold); color: #1A1405; }

.act-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.act-row .inline { display: flex; margin: 0; }
.btn.on { border-color: var(--rose); color: var(--rose); }

/* =====================================================================
   پروفایل فروشنده
   ===================================================================== */

.seller-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.seller-ava {
  width: 66px; height: 66px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #1A1405; display: grid; place-items: center;
  font-size: 1.7rem; font-weight: 900;
}
.seller-name { font-size: 1.3rem; margin: 0 0 4px; }
.seller-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.stars { color: var(--gold); letter-spacing: .08em; }

.dist-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; font-size: .84rem; }
.dist-star { width: 42px; color: var(--muted); }
.dist-row .bar { flex: 1; margin: 0; }

.review {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px; margin-bottom: 10px;
}
.rv-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.rv-body { margin: 8px 0 0; font-size: .9rem; line-height: 1.9; }
.rv-reply {
  margin-top: 10px; padding: 10px 13px; border-radius: var(--r-sm);
  background: var(--surface-2); font-size: .86rem;
  border-inline-start: 2px solid var(--gold-dim);
}

/* انتخاب ستاره */
.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-pick input { display: none; }
.star-pick label {
  font-size: 2rem; color: var(--line); cursor: pointer;
  margin: 0; transition: color .12s;
}
.star-pick input:checked ~ label,
.star-pick label:hover, .star-pick label:hover ~ label { color: var(--gold); }

/* =====================================================================
   اعلان و دعوت
   ===================================================================== */

.notif { align-items: flex-start; }
.notif.unread { border-color: var(--gold-dim); background: var(--surface-2); }
.notif-ico { font-size: 1.2rem; flex-shrink: 0; }

.account-nav .dot {
  background: var(--rose); color: #fff; font-size: .68rem;
  padding: 0 6px; border-radius: 999px; font-weight: 900;
}

.copy-box { display: flex; gap: 8px; }
.copy-box .input { flex: 1; font-size: .82rem; }

.review-cta { margin: -6px 0 10px; }

/* =====================================================================
   نمودار پنل
   ===================================================================== */

/* ---------- پیشنهاد قیمت ---------- */

.offer-box {
  margin-top: 12px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px;
}
.offer-box summary {
  padding: 12px 0; cursor: pointer; font-weight: 700;
  font-size: .89rem; color: var(--gold); list-style: none;
}
.offer-box summary::-webkit-details-marker { display: none; }
.offer-box summary::before { content: '💰 '; }
.offer-box[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.offer-box form { padding-bottom: 14px; }

.offer-card { margin-bottom: 12px; }
.offer-amount { font-size: 1.2rem; font-weight: 900; color: var(--gold); }
