/* =====================================================================
   لایه ارتقای ظاهر
   روی استایل پایه سوار می‌شود و جزئیاتی را اضافه می‌کند که
   تفاوت بین «کار می‌کند» و «حرفه‌ای ساخته شده» را می‌سازد:
   ریتم فضایی منسجم، عمق ظریف، واکنش لمسی، و حالت‌های خالی معنادار.
   ===================================================================== */

:root {
  /* ریتم فضایی — همه فاصله‌ها مضربی از این‌ها */
  --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;
  --s5: 24px;  --s6: 32px;  --s7: 48px;  --s8: 64px;

  /* عمق — سه سطح، نه بیشتر */
  --lift-1: 0 1px 2px rgba(0,0,0,.28);
  --lift-2: 0 4px 14px rgba(0,0,0,.32);
  --lift-3: 0 12px 36px rgba(0,0,0,.44);

  /* حرکت — یک منحنی برای همه‌جا */
  --ease: cubic-bezier(.22,.61,.36,1);
  --fast: .14s var(--ease);
  --slow: .28s var(--ease);

  --gold-soft: rgba(242,179,61,.12);
  --emerald-soft: rgba(47,191,135,.12);
  --rose-soft: rgba(229,72,77,.12);
}

/* ---------------------------------------------------------------
   تایپوگرافی — تناسب بهتر و خوانایی بیشتر
   --------------------------------------------------------------- */

body { font-size: 15.5px; line-height: 1.8; letter-spacing: -.003em; }

h1, h2, h3 { letter-spacing: -.022em; }
h1 { line-height: 1.28; }
h2 { line-height: 1.35; }

.page-title {
  position: relative;
  padding-bottom: var(--s3);
  margin-bottom: var(--s5);
}
.page-title::after {
  content: '';
  position: absolute; bottom: 0; inset-inline-start: 0;
  width: 38px; height: 3px; border-radius: 99px;
  background: var(--gold);
}

.lead { line-height: 1.95; max-width: 62ch; }

/* اعداد فارسی کمی بزرگ‌تر دیده می‌شوند — جبرانش می‌کنیم */
.lc-price, .ri-price, .detail-price, .stat .v { font-feature-settings: 'ss01'; }

/* ---------------------------------------------------------------
   هدر — چسبنده با سایه هنگام اسکرول
   --------------------------------------------------------------- */

.site-header {
  transition: box-shadow var(--slow), background var(--slow);
}
.site-header.scrolled {
  box-shadow: var(--lift-2);
  background: rgba(14,18,32,.97);
}

.logo { transition: opacity var(--fast); }
.logo:active { opacity: .7; }

.nav a { position: relative; padding-block: 4px; }
.nav a::after {
  content: '';
  position: absolute; bottom: 0; inset-inline: 50% 50%;
  height: 2px; border-radius: 99px; background: var(--gold);
  transition: inset var(--slow);
}
.nav a:hover::after { inset-inline: 0 0; }

/* ---------------------------------------------------------------
   دکمه‌ها — بازخورد لمسی واقعی
   --------------------------------------------------------------- */

.btn {
  position: relative;
  transition: transform var(--fast), filter var(--fast),
              border-color var(--fast), box-shadow var(--fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn-gold {
  box-shadow: 0 2px 10px rgba(242,179,61,.22);
}
.btn-gold:hover { box-shadow: 0 4px 18px rgba(242,179,61,.32); }
.btn:active { transform: scale(.975); }
.btn-gold:active { box-shadow: 0 1px 5px rgba(242,179,61,.2); }

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .45; pointer-events: none; box-shadow: none;
}

/* دکمه‌ای که در حال ارسال است */
.btn.is-loading {
  color: transparent !important; pointer-events: none; position: relative;
}
.btn.is-loading::after {
  content: '';
  position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.25); border-top-color: rgba(0,0,0,.75);
  animation: spin .6s linear infinite;
}
.btn-ghost.is-loading::after {
  border-color: rgba(255,255,255,.2); border-top-color: var(--gold);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------
   کارت‌ها — عمق ظریف و واکنش
   --------------------------------------------------------------- */

.card {
  box-shadow: var(--lift-1);
  transition: border-color var(--fast);
}

.listing-card, .tile, .row-item, .admin-row, .bank-card {
  box-shadow: var(--lift-1);
  transition: transform var(--slow), box-shadow var(--slow), border-color var(--fast);
}
.listing-card:hover, .tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--lift-2);
}
.listing-card:active, .tile:active { transform: translateY(-1px); }

a.row-item:hover { transform: translateX(-3px); }

/* تصویر کارت — زوم ملایم */
.lc-thumb { overflow: hidden; }
.lc-thumb img { transition: transform .5s var(--ease); }
.listing-card:hover .lc-thumb img { transform: scale(1.055); }

/* قیمت — برجسته‌تر */
.lc-price {
  font-size: 1rem; letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 6px;
}

/* نشان ویژه — درخشش ملایم */
.listing-card.is-vip {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 1px rgba(242,179,61,.15), var(--lift-1);
}
.lc-flag.lc-vip { box-shadow: 0 2px 8px rgba(242,179,61,.35); }

/* ---------------------------------------------------------------
   فرم‌ها — تمرکز واضح‌تر
   --------------------------------------------------------------- */

.input {
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
.input:hover:not(:focus) { border-color: var(--faint); }
.input:focus {
  box-shadow: 0 0 0 3px var(--gold-soft);
  background: var(--surface);
}
.input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: var(--rose);
}

.field label { display: flex; align-items: center; gap: 5px; }

/* برچسب ستاره‌دار = اجباری */
.field label:has(+ .input[required])::after,
.field label:has(+ * .input[required])::after { content: ''; }

.hint { line-height: 1.7; }

/* ---------------------------------------------------------------
   کپچا
   --------------------------------------------------------------- */

.captcha-field { margin-top: var(--s5); }

.captcha-row { display: flex; align-items: stretch; gap: var(--s2); }

.captcha-q {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px; border-radius: var(--r);
  background: linear-gradient(135deg, var(--surface-2), var(--ink));
  border: 1px solid var(--gold-dim);
  font-size: 1.2rem; font-weight: 900; color: var(--gold);
  white-space: nowrap; user-select: none;
  letter-spacing: .06em;
}
.captcha-q b { color: var(--muted); font-weight: 400; }

.captcha-in {
  flex: 1; min-width: 0; text-align: center;
  font-size: 1.15rem; font-weight: 900; letter-spacing: .12em;
}

.captcha-new {
  display: grid; place-items: center;
  width: 46px; flex-shrink: 0; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--muted); font-size: 1.2rem;
  transition: color var(--fast), border-color var(--fast), transform var(--slow);
}
.captcha-new:hover { color: var(--gold); border-color: var(--gold-dim); }
.captcha-new:active { transform: rotate(180deg); }

/* ---------------------------------------------------------------
   پیام‌ها — ظاهر شناور و محو شونده
   --------------------------------------------------------------- */

.alert {
  display: flex; align-items: flex-start; gap: 10px;
  box-shadow: var(--lift-1);
  animation: slideDown .32s var(--ease);
}
.alert::before {
  font-size: 1rem; line-height: 1.5; flex-shrink: 0;
}
.alert-success::before { content: '✓'; color: var(--emerald); font-weight: 900; }
.alert-error::before   { content: '!'; color: var(--rose); font-weight: 900; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.notice { box-shadow: var(--lift-1); }
.notice-gold    { background: linear-gradient(90deg, var(--gold-soft), var(--surface-2)); }
.notice-emerald { background: linear-gradient(90deg, var(--emerald-soft), var(--surface-2)); }
.notice-rose    { background: linear-gradient(90deg, var(--rose-soft), var(--surface-2)); }

/* ---------------------------------------------------------------
   حالت خالی — معنادار به‌جای متن خشک
   --------------------------------------------------------------- */

.empty {
  display: flex; flex-direction: column; align-items: center; gap: var(--s3);
  padding: var(--s7) var(--s5);
  line-height: 1.9;
}
.empty::before {
  content: '';
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  display: block;
}

/* ---------------------------------------------------------------
   کاشی‌ها — چیدمان منظم‌تر
   --------------------------------------------------------------- */

.tile { min-height: 132px; }
.tile .ico { transition: transform var(--slow), color var(--fast); }
.tile:hover .ico { transform: translateY(-3px) scale(1.06); }

.tile-go { transition: color var(--fast), gap var(--fast); }
.tile:hover .tile-go { color: var(--gold); }

/* ---------------------------------------------------------------
   نوار پایین موبایل
   پنج مقصد، با دکمه وسط برجسته. آیکون‌ها SVG خطی‌اند تا در هر
   اندازه‌ای تیز بمانند و با رنگ فعال هماهنگ شوند.
   --------------------------------------------------------------- */

.tabbar { display: none; }

@media (max-width: 820px) {

  .tabbar {
    position: fixed;
    inset-inline: 0; bottom: 0; z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr 1.24fr 1fr 1fr;
    align-items: end;
    padding: 0 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(19, 24, 39, .92);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 -8px 28px rgba(0,0,0,.42);
  }

  /* خط نازک درخشان بالای نوار — جزئیاتی که حس کیفیت می‌دهد */
  .tabbar::before {
    content: '';
    position: absolute; top: -1px; inset-inline: 14%;
    height: 1px;
    background: linear-gradient(90deg,
      transparent, rgba(242,179,61,.42), transparent);
  }

  /* ---------- آیتم معمولی ---------- */

  .tb {
    position: relative;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end;
    gap: 4px;
    padding: 9px 2px 5px;
    color: var(--faint);
    transition: color .18s var(--ease);
    -webkit-tap-highlight-color: transparent;
  }

  .tb svg {
    width: 23px; height: 23px;
    fill: none; stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform .26s var(--ease), stroke-width .18s var(--ease);
  }

  .tb em {
    font-style: normal;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1;
  }

  .tb:active svg { transform: scale(.86); }

  /* نقطه‌ی کوچک بالای آیتم فعال */
  .tb.on { color: var(--gold); }
  .tb.on svg { stroke-width: 2.1; }
  .tb.on::after {
    content: '';
    position: absolute; top: 3px;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
    animation: dotIn .3s var(--ease);
  }
  @keyframes dotIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
  }

  /* ---------- دکمه وسط ---------- */

  .tb-main {
    justify-content: flex-start;
    padding-top: 0;
    color: var(--muted);
  }

  .tb-orb {
    display: grid; place-items: center;
    width: 54px; height: 54px;
    margin-top: -22px; margin-bottom: 3px;
    border-radius: 19px;
    background: linear-gradient(145deg, #F7C356, #D9942A);
    color: #1A1405;
    border: 3px solid var(--ink);
    box-shadow:
      0 6px 18px rgba(242,179,61,.4),
      0 2px 5px rgba(0,0,0,.4),
      inset 0 1px 0 rgba(255,255,255,.45);
    transition: transform .24s var(--ease), box-shadow .24s var(--ease);
  }

  .tb-orb svg {
    width: 25px; height: 25px;
    stroke: #1A1405; stroke-width: 1.85;
  }

  .tb-main:active .tb-orb {
    transform: translateY(2px) scale(.94);
    box-shadow: 0 3px 10px rgba(242,179,61,.34), inset 0 1px 0 rgba(255,255,255,.35);
  }

  .tb-main.on { color: var(--gold); }
  .tb-main.on .tb-orb {
    box-shadow:
      0 0 0 3px rgba(242,179,61,.2),
      0 8px 22px rgba(242,179,61,.5),
      inset 0 1px 0 rgba(255,255,255,.45);
  }
  .tb-main::after { display: none; }

  .tb-main em { font-size: .63rem; }

  /* ---------- نشان اعلان ---------- */

  .tb-ico { position: relative; display: block; line-height: 0; }
  .tb-ico b {
    position: absolute; top: -4px; inset-inline-start: -7px;
    min-width: 15px; height: 15px; padding: 0 4px;
    display: grid; place-items: center;
    background: var(--rose); color: #fff;
    font-size: .58rem; font-weight: 900;
    border-radius: 99px;
    border: 2px solid var(--ink);
    line-height: 1;
  }

  /* فضای لازم تا محتوا زیر نوار نرود */
  body { padding-bottom: 76px; }
  .site-footer { margin-bottom: 4px; }
}

/* روی صفحه‌های خیلی کوچک، برچسب‌ها کوچک‌تر */
@media (max-width: 340px) {
  .tb em { font-size: .58rem; }
  .tb svg { width: 21px; height: 21px; }
  .tb-orb { width: 50px; height: 50px; margin-top: -19px; }
}

/* ---------------------------------------------------------------
   صفحه آگهی — اقدام چسبنده روی موبایل
   --------------------------------------------------------------- */

@media (max-width: 900px) {
  .detail-side .btn-gold.btn-block { position: relative; }
}

/* ---------------------------------------------------------------
   جدول‌های کلید-مقدار — خوانایی بهتر
   --------------------------------------------------------------- */

.kv { gap: 10px 18px; line-height: 1.8; }
.kv dt { white-space: nowrap; }
.kv dd { min-width: 0; word-break: break-word; }

.kv.spec dt {
  font-size: .78rem; text-transform: none;
  letter-spacing: .01em; margin-bottom: -6px;
}
.kv.spec dd { font-weight: 700; margin-bottom: 4px; }

/* ---------------------------------------------------------------
   بارگذاری تدریجی — اسکلت به‌جای پرش محتوا
   --------------------------------------------------------------- */

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r);
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---------------------------------------------------------------
   پنجره قوانین — ورود نرم‌تر
   --------------------------------------------------------------- */

.modal-box {
  animation: popIn .26s var(--ease);
  box-shadow: var(--lift-3);
}
.modal-back { animation: fadeIn .2s var(--ease); }
@keyframes popIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------
   پیشنهاد جستجو
   --------------------------------------------------------------- */

.suggest { box-shadow: var(--lift-3); animation: slideDown .18s var(--ease); }
.suggest a { transition: background var(--fast), padding-inline-start var(--fast); }
.suggest a:hover { padding-inline-start: 18px; }

/* ---------------------------------------------------------------
   جزئیات ریز که مجموعشان حس حرفه‌ای می‌سازد
   --------------------------------------------------------------- */

::selection { background: var(--gold); color: #1A1405; }

/* نوار اسکرول */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* لینک‌های متنی */
.link {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--fast);
}
.link:hover { text-decoration: underline; }

/* برچسب وضعیت — کمی برجسته‌تر */
.badge { letter-spacing: -.01em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }

/* ستاره‌ها */
.stars { letter-spacing: .1em; }

/* فوتر */
.site-footer { background: linear-gradient(180deg, transparent, rgba(0,0,0,.22)); }
.footer-cols a { transition: color var(--fast), padding-inline-start var(--fast); }
.footer-cols a:hover { padding-inline-start: 5px; }

/* عکس‌ها تا وقتی لود نشده‌اند جای خودشان را نگه دارند */
img { background: var(--surface-2); }

/* حرکت کمتر برای کسانی که ترجیح می‌دهند */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .listing-card:hover, .tile:hover { transform: none; }
}

/* چاپ */
@media print {
  .site-header, .site-footer, .tabbar, .search-bar, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}


/* =====================================================================
   تصاویر خرید درون‌برنامه‌ای — بزرگ‌تر و برجسته‌تر
   کارت محصول با کارت آگهی فرق دارد: اینجا تصویر خودِ کالاست
   و بزرگ بودنش مستقیماً روی تصمیم خرید اثر می‌گذارد.
   ===================================================================== */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s4);
}

.shop-grid .listing-card .lc-thumb {
  aspect-ratio: 1 / 1;
  padding: var(--s3);
  background: radial-gradient(circle at 50% 42%,
              rgba(242,179,61,.09), transparent 68%), var(--ink);
}

.shop-grid .listing-card .lc-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.45));
  transition: transform .45s var(--ease);
}
.shop-grid .listing-card:hover .lc-thumb img { transform: scale(1.09); }

.shop-grid .lc-title { font-size: 1rem; }
.shop-grid .lc-price { font-size: 1.08rem; }

/* صفحه تک‌محصول — تصویر خیلی بزرگ */
.detail-media.product-media {
  background: radial-gradient(circle at 50% 40%,
              rgba(242,179,61,.11), transparent 70%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s6);
  display: grid; place-items: center;
  min-height: 320px;
}
.detail-media.product-media img {
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.5));
}

@media (max-width: 560px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
  .shop-grid .lc-title { font-size: .88rem; }
  .shop-grid .lc-price { font-size: .95rem; }
  .detail-media.product-media { padding: var(--s5); min-height: 260px; }
  .detail-media.product-media img { max-height: 300px; }
}

@media (max-width: 380px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* شماره تماس فروشنده */
.phone-link {
  font-size: 1.05rem; font-weight: 900; letter-spacing: .04em;
  color: var(--emerald);
}

/* ---------- مدیریت تصاویر آگهی ---------- */

.img-manage {
  display: grid; gap: var(--s3);
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-top: var(--s3);
}
.img-item {
  position: relative; margin: 0;
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--ink);
}
.img-item.is-main { border-color: var(--gold); }
.img-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.img-tag {
  position: absolute; top: 6px; inset-inline-start: 6px;
  background: var(--gold); color: #1A1405;
  font-size: .66rem; font-weight: 900; padding: 2px 8px; border-radius: 99px;
}
.img-item figcaption {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 8px;
  border-top: 1px solid var(--line);
}
.img-item .inline { display: flex; margin: 0; }

.hist-row {
  display: flex; flex-direction: column; gap: 3px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .85rem;
}
.hist-row:last-child { border: 0; }

/* ---------- درخواست بازگشت وجه ---------- */

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

/* ---------- داشبورد فروشنده ---------- */

.mini-chart {
  display: flex; align-items: flex-end; gap: 2px;
  height: 90px; margin-top: var(--s3);
}
.mc-col { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.mc-bar {
  width: 100%; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  transition: opacity .15s;
}
.mc-col:hover .mc-bar { opacity: .7; }

.plan {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s4); margin-top: var(--s3);
}
.plan-top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; margin-bottom: var(--s2);
}
.plan-list { margin: 0 0 10px; padding-inline-start: 18px; font-size: .86rem; color: var(--muted); }
.plan-list li { margin-bottom: 3px; }

/* ---------- نشان اعتماد ---------- */

.trust-row {
  display: flex; justify-content: center; align-items: center;
  gap: var(--s4); flex-wrap: wrap;
  padding: var(--s5) var(--s4) 0;
}
.trust-row img { max-height: 88px; width: auto; border-radius: 8px; }

/* ---------- گفتگوی اختلاف ---------- */

.msg-other { align-self: flex-start; background: var(--surface-2); }


/* =====================================================================
   هویت بصری — عمق بیشتر، طلایی کمتر
   
   اصل کار: وقتی همه‌چیز برجسته باشد، هیچ‌چیز برجسته نیست.
   طلایی از پنج جا به یک جا در هر صفحه کم می‌شود و به‌جایش
   پس‌زمینه عمق واقعی می‌گیرد. نتیجه: چشم می‌داند کجا را نگاه کند.
   ===================================================================== */

:root {
  /* پس‌زمینه عمیق‌تر — تفاوت محسوس بین لایه‌ها */
  --ink:        #080B14;
  --ink-2:      #0C1120;
  --surface:    #121828;
  --surface-2:  #1A2236;
  --line:       #262F47;
  --line-soft:  #1C2437;

  /* طلایی فقط برای اقدام اصلی و قیمت */
  --gold:       #E8B04B;
  --gold-hi:    #F5C767;
  --gold-dim:   #6E551C;

  --paper:      #EDF0F7;
  --muted:      #8C96AF;
  --faint:      #5A6480;
}

/* ---------------------------------------------------------------
   پس‌زمینه — سه لایه روی هم
   --------------------------------------------------------------- */

body {
  background: var(--ink);
  position: relative;
}

/* لایه ۱ — گرادیان عمودی با تفاوت واقعی */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    linear-gradient(175deg,
      #16203A 0%,
      #0E1526 26%,
      #080B14 62%,
      #05070E 100%);
}

/* لایه ۲ — هاله‌های نور، محسوس ولی نه غالب */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(760px 520px at 84% -8%,  rgba(232,176,75,.20), transparent 58%),
    radial-gradient(640px 560px at -6% 26%,  rgba(64,116,220,.16), transparent 60%),
    radial-gradient(820px 460px at 56% 108%, rgba(47,191,135,.09), transparent 62%);
}

/* لایه ۳ — شبکه نقطه‌ای بسیار محو، حس «سطح» می‌دهد */
.wrap::before,
body > .bg-grid {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

/* ---------------------------------------------------------------
   لایه‌بندی — کارت‌ها از پس‌زمینه جدا می‌شوند
   --------------------------------------------------------------- */

.card, .listing-card, .tile, .row-item, .bank-card, .lvl-card,
.review, .offer-card, .plan, .doc-box, .img-item {
  background-color: rgba(18, 24, 40, .74);
  border-color: var(--line-soft);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.card:hover, .listing-card:hover, .tile:hover {
  border-color: var(--line);
}

.site-header {
  background: rgba(8, 11, 20, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line-soft);
}
.site-header.scrolled {
  background: rgba(5, 7, 14, .93);
  border-bottom-color: var(--line);
}

.site-footer {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.5));
  border-top-color: var(--line-soft);
}

/* ---------------------------------------------------------------
   طلایی فقط جایی که باید — بقیه دکمه‌ها آرام می‌شوند
   --------------------------------------------------------------- */

/* دکمه اصلی — تنها جای طلایی توپر */
.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #14100A;
  border: 0;
  box-shadow:
    0 1px 0 rgba(255,255,255,.28) inset,
    0 4px 16px rgba(232,176,75,.24);
}
.btn-gold:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,.34) inset,
    0 6px 22px rgba(232,176,75,.34);
}

/* دکمه ثانویه — خنثی، نه طلایی */
.btn-ghost {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  color: var(--paper);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.07);
  border-color: var(--faint);
  color: var(--paper);
}

/* دکمه جستجو دیگر طلایی نیست — کنار کادر جستجو آرام می‌ماند */
.search-bar .btn-gold,
.search-big .btn-gold {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: none;
  font-weight: 700;
}
.search-bar .btn-gold:hover,
.search-big .btn-gold:hover {
  background: rgba(232,176,75,.1);
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* دکمه ورود در هدر — خنثی */
.header-cta .btn-ghost { font-weight: 700; }

/* ---------------------------------------------------------------
   قیمت — جایی که طلایی واقعاً معنی دارد
   --------------------------------------------------------------- */

.lc-price, .ri-price, .detail-price, .p-price, .offer-amount {
  color: var(--gold);
}

/* عنوان صفحه — خط زیرش نازک‌تر و آرام‌تر */
.page-title::after {
  width: 30px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---------------------------------------------------------------
   کاشی‌های دسته‌بندی — آیکون آرام، فقط هنگام لمس طلایی
   --------------------------------------------------------------- */

.tile .ico { color: var(--muted); }
.tile:hover .ico, .tile:active .ico { color: var(--gold); }

.tile {
  background: linear-gradient(160deg, rgba(26,34,54,.7), rgba(18,24,40,.55));
}

/* ---------------------------------------------------------------
   نوار پایین — دکمه وسط تنها عنصر طلایی
   --------------------------------------------------------------- */

@media (max-width: 820px) {
  .tabbar {
    background: rgba(8, 11, 20, .9);
    border-top-color: var(--line-soft);
  }
  .tabbar::before {
    background: linear-gradient(90deg, transparent, rgba(232,176,75,.3), transparent);
  }
  .tb-orb {
    background: linear-gradient(160deg, var(--gold-hi), #C99530);
    border-color: var(--ink);
  }
}

/* ---------------------------------------------------------------
   فرم‌ها — تمرکز آرام‌تر
   --------------------------------------------------------------- */

.input {
  background: rgba(255,255,255,.028);
  border-color: var(--line);
}
.input:focus {
  border-color: var(--gold-dim);
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 3px rgba(232,176,75,.09);
}

/* ---------------------------------------------------------------
   وقتی مرورگر بلور ندارد
   --------------------------------------------------------------- */

@supports not (backdrop-filter: blur(1px)) {
  .card, .listing-card, .tile, .row-item, .bank-card, .lvl-card,
  .review, .offer-card, .plan, .doc-box, .img-item {
    background-color: var(--surface);
  }
  .site-header { background: rgba(8,11,20,.97); }
}

/* ---------------------------------------------------------------
   موبایل — هاله‌ها متناسب کوچک می‌شوند
   --------------------------------------------------------------- */

@media (max-width: 760px) {
  body::after {
    background:
      radial-gradient(420px 340px at 92% -6%,  rgba(232,176,75,.22), transparent 60%),
      radial-gradient(380px 380px at -10% 22%, rgba(64,116,220,.15), transparent 62%),
      radial-gradient(460px 300px at 56% 104%, rgba(47,191,135,.08), transparent 64%);
  }
  .wrap::before { background-size: 22px 22px; }
}

/* =====================================================================
   نوار اعلان بالای سایت
   ===================================================================== */

.alertbar {
  position: relative; z-index: 30;
  font-size: .87rem; line-height: 1.7;
  border-bottom: 1px solid rgba(0,0,0,.2);
  animation: slideDown .3s var(--ease);
}
.alertbar[hidden] { display: none; }

.ab-inner {
  display: flex; align-items: center; gap: var(--s3);
  padding: 11px 18px;
}
.ab-text { flex: 1; min-width: 0; font-weight: 700; }

.ab-link {
  white-space: nowrap; font-weight: 900;
  text-decoration: underline; text-underline-offset: 3px;
  color: inherit; opacity: .85;
}
.ab-link:hover { opacity: 1; }

.ab-x {
  background: none; border: 0; cursor: pointer;
  color: inherit; opacity: .6; font-size: .95rem;
  padding: 2px 6px; flex-shrink: 0;
  transition: opacity var(--fast);
}
.ab-x:hover { opacity: 1; }

.ab-gold    { background: linear-gradient(90deg, #E8B04B, #D19A32); color: #1A1405; }
.ab-rose    { background: linear-gradient(90deg, #E5484D, #C43338); color: #fff; }
.ab-emerald { background: linear-gradient(90deg, #2FBF87, #24996C); color: #04231A; }
.ab-blue    { background: linear-gradient(90deg, #4074DC, #2F5AB0); color: #fff; }

/* =====================================================================
   نشان تأیید سایت
   ===================================================================== */

.trusted-banner {
  display: flex; align-items: center; gap: var(--s3);
  background: linear-gradient(100deg, rgba(47,191,135,.16), rgba(18,24,40,.6));
  border: 1px solid rgba(47,191,135,.4);
  border-radius: var(--r-lg);
  padding: var(--s4);
  margin-bottom: var(--s4);
}
.tb-check {
  display: grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--emerald); color: #04231A;
  font-size: 1.1rem; font-weight: 900;
  box-shadow: 0 3px 12px rgba(47,191,135,.4);
}
.trusted-banner strong { display: block; color: var(--emerald); font-size: .95rem; }

/* نشان روی کارت آگهی */
.lc-trust {
  position: absolute; top: 8px; inset-inline-end: 8px;
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--emerald); color: #04231A;
  font-size: .72rem; font-weight: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* =====================================================================
   هشدار واسطه معتبر
   ===================================================================== */

.broker-warn {
  background: linear-gradient(135deg, rgba(229,72,77,.13), rgba(18,24,40,.7));
  border: 1px solid rgba(229,72,77,.42);
  border-radius: var(--r-lg);
  padding: var(--s5);
  margin-bottom: var(--s5);
}
.bw-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 900; color: var(--rose);
  font-size: 1rem; margin-bottom: var(--s3);
}
.bw-head::before { content: '⚠'; font-size: 1.15rem; }
.bw-body { font-size: .9rem; line-height: 2; margin-bottom: var(--s3); }

/* =====================================================================
   آیکون‌های شبکه اجتماعی
   ===================================================================== */

.social-row {
  display: flex; justify-content: center; align-items: center;
  gap: var(--s3); flex-wrap: wrap;
  padding: var(--s6) var(--s4) 0;
}

.soc {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem; font-weight: 700;
  transition: color var(--fast), border-color var(--fast),
              background var(--fast), transform var(--fast);
}
.soc svg {
  width: 19px; height: 19px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.soc:hover { transform: translateY(-2px); background: rgba(255,255,255,.07); }

.soc-telegram:hover  { color: #29A9EB; border-color: rgba(41,169,235,.45); }
.soc-instagram:hover { color: #E1306C; border-color: rgba(225,48,108,.45); }
.soc-youtube:hover   { color: #FF3B30; border-color: rgba(255,59,48,.45); }
.soc-whatsapp:hover  { color: #25D366; border-color: rgba(37,211,102,.45); }

@media (max-width: 480px) {
  .soc span { display: none; }
  .soc { padding: 11px; }
  .social-row { gap: var(--s2); }
}

/* =====================================================================
   مقایسه
   ===================================================================== */

.cmp-btn { margin: -8px 0 12px; }
.cmp-btn .btn.on { border-color: var(--gold); color: var(--gold); }

.cmp-bar {
  position: fixed; bottom: 84px; inset-inline: 16px; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s3); padding: 13px 18px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #14100A; border-radius: 999px;
  box-shadow: 0 6px 22px rgba(232,176,75,.36);
  font-weight: 900; font-size: .88rem;
  animation: slideUp .3s var(--ease);
}
.cmp-bar b { text-decoration: underline; text-underline-offset: 3px; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (min-width: 821px) { .cmp-bar { bottom: 24px; max-width: 420px; margin-inline: auto; } }

.cmp-scroll { overflow-x: auto; margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); }
.cmp {
  width: 100%; border-collapse: collapse; min-width: 480px;
  font-size: .86rem;
}
.cmp th, .cmp td {
  padding: 12px 10px; text-align: center;
  border-bottom: 1px solid var(--line); vertical-align: middle;
}
.cmp th { background: var(--surface-2); }
.cmp-h {
  text-align: start !important; color: var(--muted);
  font-weight: 700; white-space: nowrap;
  background: var(--surface) !important;
  position: sticky; inset-inline-start: 0; z-index: 2;
}
.cmp th img {
  width: 100%; max-width: 110px; aspect-ratio: 4/3;
  object-fit: cover; border-radius: var(--r-sm); margin-bottom: 6px;
}
.cmp-title { display: block; font-size: .82rem; line-height: 1.5; margin-bottom: 6px; }
.cmp-price td { font-size: 1rem; font-weight: 900; }

/* =====================================================================
   سوالات پرتکرار
   ===================================================================== */

.faq-item {
  background: rgba(18,24,40,.7); border: 1px solid var(--line-soft);
  border-radius: var(--r); margin-bottom: 10px; padding: 0 var(--s4);
}
.faq-item summary {
  padding: 15px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: .92rem; position: relative;
  padding-inline-end: 26px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; inset-inline-end: 0; top: 13px;
  color: var(--gold); font-size: 1.2rem; font-weight: 400;
  transition: transform var(--slow);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq-a { padding: var(--s4) 0; font-size: .89rem; line-height: 2.05; color: var(--muted); }

.faq-suggest {
  background: rgba(232,176,75,.08); border: 1px solid var(--gold-dim);
  border-radius: var(--r); padding: var(--s4); margin: var(--s4) 0;
  font-size: .86rem;
}
.faq-suggest[hidden] { display: none; }
.faq-suggest strong { display: block; color: var(--gold); margin-bottom: 8px; }
.faq-suggest details { margin-top: 6px; }
.faq-suggest summary { cursor: pointer; padding: 5px 0; }
.faq-suggest details div { padding: 8px 0; color: var(--muted); line-height: 1.9; }

/* =====================================================================
   تخمین صف و رسید
   ===================================================================== */

.eta-box {
  display: flex; align-items: center; gap: var(--s4);
  background: linear-gradient(100deg, rgba(232,176,75,.14), rgba(18,24,40,.6));
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-lg); padding: var(--s4); margin-bottom: var(--s4);
}
.eta-n {
  display: grid; place-items: center; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gold); color: #14100A;
  font-size: 1.5rem; font-weight: 900;
}
.eta-box strong { display: block; font-size: .95rem; }

.receipt {
  background: #fff; color: #111; border-radius: var(--r-lg);
  padding: var(--s6); max-width: 460px; margin-inline: auto;
}
.receipt .kv dt { color: #666; }
.receipt .kv dd { color: #111; }
.receipt .gold { color: #B8860B !important; }
.rc-head {
  display: flex; align-items: center; gap: var(--s3);
  padding-bottom: var(--s4); margin-bottom: var(--s4);
  border-bottom: 2px solid #eee;
}
.rc-head img { border-radius: 10px; }
.rc-head strong { display: block; font-size: 1.05rem; }
.rc-head .small { color: #777; }
.rc-total { font-size: 1.15rem; font-weight: 900; }
.rc-foot {
  margin-top: var(--s5); padding-top: var(--s4);
  border-top: 1px dashed #ddd; text-align: center;
}
.rc-foot .small { color: #888; }
.rc-actions {
  display: flex; gap: var(--s3); justify-content: center;
  margin-top: var(--s5); flex-wrap: wrap;
}

@media print {
  .rc-actions, .site-header, .site-footer, .tabbar, .account-nav { display: none !important; }
  body { background: #fff !important; padding: 0 !important; }
  .receipt { box-shadow: none; max-width: 100%; }
}

/* =====================================================================
   شمارنده‌ها — کاربر باید بدون کلیک بداند کجا جنس هست
   ===================================================================== */

.result-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s3); flex-wrap: wrap;
  padding: 0 0 var(--s3);
  margin-bottom: var(--s3);
  border-bottom: 1px solid var(--line-soft);
}
.result-bar strong { color: var(--paper); }

.cat-n {
  display: inline-grid; place-items: center;
  min-width: 19px; height: 19px; padding: 0 5px;
  margin-inline-start: 6px;
  background: rgba(255,255,255,.09); border-radius: 999px;
  font-size: .68rem; font-weight: 900; line-height: 1;
  vertical-align: middle;
}
.chip.on .cat-n { background: rgba(20,16,10,.22); }

.title-help { margin-bottom: 8px; }

/* =====================================================================
   اندازه تصویر بازی‌ها — سه حالت، از پنل قابل تغییر
   ===================================================================== */

.tile-img {
  display: grid; place-items: center;
  border-radius: 14px; overflow: hidden;
  background: var(--ink);
  transition: transform var(--slow);
}
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tile-img-0 { width: 46px;  height: 46px;  border-radius: 11px; }
.tile-img-1 { width: 72px;  height: 72px;  border-radius: 16px; }
.tile-img-2 { width: 104px; height: 104px; border-radius: 20px; }

.tile:hover .tile-img { transform: scale(1.05); }

.tile-img.is-fallback {
  background: linear-gradient(150deg, var(--surface-2), var(--ink));
  border: 1px solid var(--line-soft);
}
.tile-img.is-fallback svg { width: 58%; height: 58%; }

/* کاشی با تصویر بزرگ‌تر، ارتفاع بیشتری می‌خواهد */
.tile-grid:has(.tile-img-2) .tile { min-height: 184px; }
.tile-grid:has(.tile-img-1) .tile { min-height: 152px; }

@media (max-width: 480px) {
  .tile-img-2 { width: 84px; height: 84px; }
  .tile-img-1 { width: 64px; height: 64px; }
}

/* نشان «جدید» روی آیتم منو */
.nav-new { position: relative; }
.nav-new::before {
  content: 'جدید';
  position: absolute; top: -9px; inset-inline-end: -6px;
  background: var(--emerald); color: #04231A;
  font-size: .56rem; font-weight: 900;
  padding: 1px 5px; border-radius: 999px;
  line-height: 1.5;
}
