.listing-cover { display: block; text-decoration: none; color: inherit; }
.listing-card h3 a { color: inherit; text-decoration: none; }
.card-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.act-ghost, .act-cmp, .act-link, .lab-x, .cmp-tray button {
  font: inherit; cursor: pointer; border-radius: 999px; border: 1px solid var(--line);
}
.act-ghost, .act-link {
  background: #fff; color: var(--navy); padding: .35rem .7rem; font-size: .78rem; font-weight: 800; text-decoration: none;
  display: inline-flex; align-items: center;
}
.act-ghost.dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.act-cmp {
  background: linear-gradient(135deg, var(--navy), #1f4ea3); color: #fff; border: 0;
  padding: .35rem .85rem; font-size: .78rem; font-weight: 800;
  box-shadow: 0 8px 16px rgba(11,31,77,.22);
}
.act-cmp.on { background: linear-gradient(135deg, var(--orange), #ff8a4c); }
.spark-hit { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }

.car-toast {
  position: fixed; top: auto; bottom: 5.4rem; left: 50%; transform: translate(-50%, 8px);
  z-index: 80; background: #0b1f4d; color: #fff; border-radius: 999px;
  padding: .4rem .85rem; font-size: .8rem; font-weight: 700;
  box-shadow: 0 12px 28px rgba(11,31,77,.28); border: 1px solid rgba(255,107,53,.5);
  opacity: 0; transition: .22s ease; max-width: calc(100vw - 1.4rem); text-align: center;
}
.car-toast.on { opacity: 1; transform: translate(-50%, 0); }

.cmp-tray {
  position: fixed; z-index: 40; left: 50%; bottom: max(.55rem, env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(560px, calc(100vw - 1rem));
  pointer-events: none;
}
.cmp-dock, .cmp-tray-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: .4rem;
  padding: .32rem .36rem .32rem .4rem;
  background: rgba(11, 22, 48, .88);
  backdrop-filter: blur(16px) saturate(1.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(7,21,54,.28);
}
.cmp-slots { display: grid; grid-template-columns: 1fr 1fr; gap: .28rem; flex: 1; min-width: 0; }
.cmp-slot {
  min-height: 36px; border-radius: 999px; padding: .15rem .28rem .15rem .15rem;
  background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.2);
  display: flex; align-items: center; gap: .28rem; min-width: 0;
}
.cmp-slot.filled {
  border-style: solid;
  background: linear-gradient(135deg, rgba(255,107,53,.22), rgba(255,255,255,.08));
}
.cmp-letter {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #ffd0a8;
  font-size: .68rem; font-weight: 900;
}
.cmp-slot.filled .cmp-letter { background: var(--orange); color: #fff; }
.cmp-slot em { font-style: normal; color: rgba(255,255,255,.42); font-size: .72rem; }
.cmp-slot b {
  min-width: 0; flex: 1; font-size: .74rem; font-weight: 800; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmp-slot button {
  width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; padding: 0; line-height: 1; font-size: .85rem;
}
.cmp-dock-ops { display: flex; align-items: center; gap: .22rem; flex: 0 0 auto; }
.cmp-count { font-weight: 900; color: var(--orange); font-size: .72rem; min-width: 1.8rem; }
.cmp-go {
  border: 0; border-radius: 999px; background: var(--orange); color: #fff;
  font: inherit; font-size: .72rem; font-weight: 800; padding: .32rem .7rem; cursor: pointer;
}
.cmp-x, .cmp-tray .cmp-x, .cmp-tray .cmp-x {
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.05rem; cursor: pointer;
}
.cmp-tray-scan, .cmp-tray-brand, .cmp-pill { display: none; }
.cmp-tray-ops { display: flex; align-items: center; gap: .22rem; flex: 0 0 auto; }
body.has-tray { padding-bottom: 4.6rem; }
body.lab-open { overflow: hidden; }

.lab-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.lab-modal[hidden] { display: none; }
.lab-back {
  position: absolute; inset: 0; background: rgba(6,14,34,.62); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .28s ease;
}
.lab-modal.in .lab-back { opacity: 1; }
.lab-sheet {
  position: relative; width: min(1100px, calc(100vw - 1.4rem)); max-height: calc(100vh - 1.4rem);
  overflow: auto; background: #0b1736; color: #eef3ff; border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08);
  padding: 1.1rem 1.15rem 1.3rem;
  transform: translateY(16px) scale(.98); opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.lab-modal.in .lab-sheet { transform: none; opacity: 1; }
.lab-handle {
  display: none; width: 42px; height: 4px; border-radius: 99px;
  background: rgba(255,255,255,.28); margin: .15rem auto .7rem;
}
.lab-orbit {
  position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,107,53,.2), transparent 70%);
}
.lab-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.lab-head-ops { display: flex; gap: .4rem; align-items: center; }
.lab-head h2 { margin: .15rem 0; }
.lab-sub { color: #9db0d0; margin: 0; }
.lab-x { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 1.3rem; }
.lab-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; margin: 1rem 0 .8rem; }
.lab-kpi {
  background: radial-gradient(120px 60px at 100% 0%, color-mix(in srgb, var(--c, #ff6b35) 35%, transparent), transparent), rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: .65rem .7rem;
}
.lab-kpi b { display: block; font-size: 1.15rem; }
.lab-kpi b small { font-size: .7rem; color: #9db0d0; font-weight: 700; }
.lab-kpi span { color: #9db0d0; font-size: .74rem; }
.lab-kpi em { display: block; font-style: normal; color: #c5d4ee; font-size: .72rem; margin-top: .2rem; }
.lab-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.lab-tabs button {
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #d5e0f5;
  border-radius: 999px; padding: .32rem .75rem; font: inherit; font-weight: 800; cursor: pointer;
}
.lab-tabs button.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.lab-stage { background: #07122c; border-radius: 18px; padding: .7rem; min-height: 320px; position: relative; }
.lab-stage canvas { width: 100% !important; height: 300px !important; }
.lab-meta { display: grid; grid-template-columns: 1.4fr .6fr; gap: .8rem; margin-top: .85rem; }
.lab-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.lab-table th, .lab-table td { border-bottom: 1px solid rgba(255,255,255,.08); padding: .35rem .3rem; text-align: right; }
.lab-notes { background: rgba(255,255,255,.05); border-radius: 16px; padding: .75rem; color: #c5d4ee; font-size: .84rem; line-height: 1.7; }
.lab-notes p { margin: 0 0 .55rem; }

.vs-wrap { padding-bottom: 2rem; }
.vs-arena {
  position: relative; overflow: hidden; border-radius: 32px; padding: 1.2rem 1.15rem 1.3rem;
  background:
    radial-gradient(500px 180px at 10% 0%, rgba(255,107,53,.18), transparent 60%),
    radial-gradient(500px 180px at 90% 0%, rgba(76,195,255,.16), transparent 60%),
    linear-gradient(180deg, #081530, #0b1f4d);
  color: #fff; box-shadow: var(--shadow); margin: 1.1rem 0 1.2rem;
}
.vs-arena-grid {
  position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(#000, transparent 85%);
}
.vs-arena-copy { position: relative; z-index: 1; }
.vs-arena h1 { margin: .2rem 0 .4rem; font-size: 1.8rem; }
.vs-hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch;
  margin: 1.2rem 0 0;
}
.vs-card {
  background: rgba(255,255,255,.96); color: var(--ink); border-radius: 26px; padding: 1rem 1.1rem;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.2); position: relative; overflow: hidden;
}
.vs-card.side-a { box-shadow: 0 0 0 2px rgba(255,107,53,.35), var(--shadow); }
.vs-card.side-b { box-shadow: 0 0 0 2px rgba(76,195,255,.35), var(--shadow); }
.vs-card h2 { margin: .15rem 0; color: var(--navy); }
.vs-card p { margin: 0 0 .4rem; color: var(--muted); }
.vs-ribbon {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--orange); color: #fff; font-size: .72rem; font-weight: 900;
  padding: .15rem .5rem; border-radius: 999px;
}
.vs-ribbon.alt { background: #1280b8; }
.vs-card .cover { height: 110px; border-radius: 16px; margin-bottom: .7rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--hue, 210), 52%, 22%), #0b1f4d);
}
.vs-card .cover .car-sil { position: absolute; inset: auto 12px 8px 12px; height: 54px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 70'%3E%3Cpath fill='rgba(255,255,255,.88)' d='M22 48h196c6 0 10-5 8-11l-10-28c-2-6-8-9-14-9H70c-6 0-11 3-14 8L40 37c-2 4-6 7-11 7H16c-4 0-6 4-4 7l10 4z'/%3E%3Ccircle cx='64' cy='50' r='12' fill='%230b1f4d' stroke='%23ff6b35' stroke-width='3'/%3E%3Ccircle cx='176' cy='50' r='12' fill='%230b1f4d' stroke='%23ff6b35' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vs-chips { list-style: none; padding: 0; margin: .55rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.vs-chips li {
  background: #eef3ff; color: var(--navy); font-size: .74rem; font-weight: 800;
  padding: .15rem .5rem; border-radius: 999px;
}
.vs-mid { width: 88px; display: grid; place-items: center; color: #ffd0a8; }
.vs-mid small { display: block; margin-top: .35rem; font-size: .7rem; }
.vs-badge {
  width: 72px; height: 72px; border-radius: 50%;
  background: conic-gradient(from 120deg, var(--orange), #163a7a, #4cc3ff, var(--orange));
  color: #fff; display: grid; place-items: center; font-weight: 900; box-shadow: var(--shadow);
  animation: spinbadge 12s linear infinite;
}
@keyframes spinbadge { to { filter: hue-rotate(20deg); } }
.vs-index { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.vs-score { border-radius: 20px; padding: .85rem 1rem; color: #fff; }
.vs-score.a { background: linear-gradient(135deg, #ff6b35, #b33a16); }
.vs-score.b { background: linear-gradient(135deg, #1280b8, #0b1f4d); }
.vs-score b { display: block; font-size: 2rem; line-height: 1; }
.vs-score span { opacity: .85; font-size: .8rem; }
.vs-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1rem; }
.vs-kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .7rem; box-shadow: var(--shadow); }
.vs-kpi b { display: block; color: var(--navy); }
.vs-kpi b small { color: var(--muted); font-size: .72rem; font-weight: 700; }
.vs-kpi em { font-style: normal; color: var(--muted); font-size: .75rem; }
.vs-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; }
.vs-stack { display: grid; gap: 1rem; }
.vs-pane { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1rem; box-shadow: var(--shadow); }
.vs-pane h3 { margin: 0 0 .7rem; color: var(--navy); }
.vs-pane-head { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; margin-bottom: .5rem; }
.vs-pane-head h3 { margin: 0; }
.vs-pane-head span { color: var(--muted); font-size: .78rem; }
.vs-deep { background: linear-gradient(180deg, #fff, #f4f8ff); }
.vs-canvas-lg { height: 280px; }
.vs-canvas-md { height: 240px; }
.vs-matrix { width: 100%; border-collapse: collapse; }
.vs-matrix th, .vs-matrix td { padding: .55rem .4rem; border-bottom: 1px solid var(--line); text-align: center; }
.vs-matrix th:first-child, .vs-matrix td:first-child { text-align: right; color: var(--muted); }
.vs-matrix tr.win-a td:nth-child(2), .vs-matrix tr.win-b td:nth-child(3) { color: var(--ok); font-weight: 900; }
.vs-ai { background: linear-gradient(180deg, #0b1f4d, #122a63); color: #fff; border: 0; margin-top: 1rem; }
.vs-ai h3 { color: #fff; }
.vs-ai-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; flex-wrap: wrap; }
.vs-ai .compare-out { background: rgba(255,255,255,.06); color: #eef3ff; border-color: rgba(255,255,255,.1); }
.vs-tools { display: flex; flex-wrap: wrap; gap: .45rem; }
.mini-labs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .8rem; }
.mini-lab { background: #07122c; border-radius: 14px; padding: .45rem; min-height: 170px; }
.mini-lab p { color: #9db0d0; margin: 0 0 .3rem; font-size: .75rem; font-weight: 800; }
.mini-lab canvas { height: 130px !important; }
@media (max-width: 900px) {
  .lab-kpis, .lab-meta, .vs-grid { grid-template-columns: 1fr; }
  .vs-wrap { padding-bottom: 1.1rem; font-size: .82rem; }
  .vs-arena {
    border-radius: 16px; padding: .65rem .6rem .7rem; margin: .55rem 0 .65rem;
  }
  .vs-arena-copy .lead { display: none; }
  .vs-arena-copy .kicker { font-size: .68rem; }
  .vs-arena h1 { font-size: 1.05rem; margin: .1rem 0 .35rem; }
  .vs-arena-copy .vs-tools { gap: .28rem; }
  .vs-arena-copy .act-ghost, .vs-arena-copy .act-link {
    padding: .22rem .5rem; font-size: .68rem;
  }
  .vs-hero {
    grid-template-columns: 1fr 1fr; gap: .4rem; margin: .55rem 0 0;
  }
  .vs-mid { display: none; }
  .vs-card { border-radius: 12px; padding: .45rem .45rem .5rem; }
  .vs-card h2 {
    font-size: .82rem; margin: 0; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .vs-card p {
    font-size: .66rem; margin: .12rem 0 .2rem; line-height: 1.35;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .vs-card .listing-price { font-size: .78rem; }
  .vs-ribbon { top: 6px; left: 6px; font-size: .58rem; padding: .08rem .32rem; }
  .vs-card .cover { height: 64px; border-radius: 8px; margin-bottom: .35rem; }
  .vs-card .cover .car-sil { height: 28px; inset: auto 8px 4px 8px; }
  .vs-chips { gap: .2rem; margin: .22rem 0 0; }
  .vs-chips li { font-size: .6rem; padding: .06rem .3rem; }
  .vs-chips li:nth-child(n+3) { display: none; }
  .vs-index { gap: .35rem; margin-bottom: .55rem; }
  .vs-score { border-radius: 12px; padding: .45rem .5rem; }
  .vs-score b { font-size: 1.2rem; }
  .vs-score span { font-size: .66rem; }
  .vs-kpis { grid-template-columns: 1fr 1fr; gap: .35rem; margin-bottom: .55rem; }
  .vs-kpi { border-radius: 10px; padding: .4rem .45rem; }
  .vs-kpi span { font-size: .66rem; font-weight: 800; }
  .vs-kpi b { font-size: .82rem; }
  .vs-kpi em { font-size: .62rem; }
  .vs-grid { gap: .55rem; }
  .vs-stack { gap: .55rem; }
  .vs-pane { border-radius: 12px; padding: .55rem .55rem .6rem; }
  .vs-pane h3, .vs-pane-head h3 { font-size: .86rem; margin: 0 0 .35rem; }
  .vs-pane-head span { display: none; }
  .vs-canvas-lg { height: 170px; }
  .vs-canvas-md { height: 160px; }
  .mini-labs { grid-template-columns: 1fr 1fr; gap: .35rem; margin-top: .45rem; }
  .mini-lab { min-height: 0; border-radius: 10px; padding: .3rem; }
  .mini-lab p { font-size: .62rem; margin: 0 0 .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mini-lab canvas { height: 78px !important; }
  .vs-matrix { font-size: .68rem; }
  .vs-matrix th, .vs-matrix td { padding: .28rem .2rem; }
  .vs-ai { margin-top: .55rem; padding: .65rem .6rem .7rem; }
  .vs-ai h3 { font-size: .9rem; }
  .vs-ai .lead { font-size: .72rem; margin: .2rem 0 0; }
  .vs-ai-head { gap: .45rem; }
  .vs-ai .compare-out { font-size: .78rem; min-height: 3rem; padding: .5rem .55rem; }
  .vs-tools .btn-primary, .vs-tools .btn-ghost-dark { padding: .35rem .65rem; font-size: .75rem; }
}
@media (max-width: 720px) {
  .car-toast { bottom: 4.7rem; }
  .cmp-tray { width: calc(100vw - .7rem); bottom: max(.4rem, env(safe-area-inset-bottom)); }
  .cmp-dock, .cmp-tray-inner { gap: .28rem; padding: .26rem .28rem .26rem .3rem; }
  .cmp-slot { min-height: 32px; }
  .cmp-slot b { font-size: .7rem; }
  .cmp-go { padding: .28rem .55rem; }
  .cmp-count { display: none; }
  body.has-tray { padding-bottom: 4.1rem; }

  .lab-modal { place-items: end center; }
  .lab-sheet {
    width: 100%; max-width: 100%;
    max-height: min(92vh, calc(100dvh - .4rem));
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    padding: .45rem .85rem calc(1rem + env(safe-area-inset-bottom));
    transform: translateY(108%);
    opacity: 1;
  }
  .lab-modal.in .lab-sheet { transform: translateY(0); }
  .lab-handle { display: block; }
  .lab-head { gap: .55rem; }
  .lab-head .kicker { display: none; }
  .lab-head h2 { font-size: 1.05rem; }
  .lab-sub { font-size: .78rem; }
  .lab-head-ops .act-cmp { padding: .28rem .6rem; font-size: .72rem; }
  .lab-kpis { grid-template-columns: 1fr 1fr; gap: .4rem; margin: .7rem 0 .55rem; }
  .lab-kpi { padding: .5rem .55rem; }
  .lab-kpi b { font-size: 1rem; }
  .lab-stage { min-height: 220px; padding: .45rem; }
  .lab-stage canvas { height: 210px !important; }
  .lab-table-wrap { overflow-x: auto; }
}

/* تماس آگهی — نمایش شماره فقط در پاپ‌آپ */
.listing-contact-card {
  margin: 1rem 0 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #0B1F4D 0%, #163A7A 70%);
  color: #fff;
}
.listing-contact-card .kicker { color: #B8FF9A; margin: 0; }
.listing-contact-card h2 { margin: .2rem 0 .4rem; color: #fff; font-size: 1.15rem; }
.listing-contact-card .lead { color: #D7E2F5; margin: 0 0 .75rem; }
.listing-contact-card .phone-mask-hint { color: #B8FF9A; font-weight: 700; margin: 0 0 .75rem; }
.listing-contact-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.listing-contact-card .btn-primary,
.phone-reveal-dialog .btn-primary {
  background: #39FF14; color: #0B1F4D; border: 0; border-radius: 12px;
  padding: .55rem 1rem; font-weight: 700; cursor: pointer; text-decoration: none;
}
.listing-contact-card .btn-soft,
.phone-reveal-dialog .btn-soft {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px; padding: .55rem 1rem; cursor: pointer; text-decoration: none;
}
.phone-reveal-dialog {
  border: 0; border-radius: 18px; padding: 0; max-width: 22rem; width: calc(100% - 2rem);
  box-shadow: 0 20px 50px rgba(7,21,54,.35);
}
.phone-reveal-dialog::backdrop { background: rgba(7,21,54,.55); }
.phone-reveal-inner { padding: 1.1rem 1.2rem 1.2rem; }
.phone-reveal-inner h3 { margin: 0 0 .35rem; color: #0B1F4D; }
.phone-reveal-value {
  font-size: 1.45rem; font-weight: 800; letter-spacing: .04em;
  color: #0B1F4D; margin: .7rem 0 1rem; text-align: center;
}
