/* ==========================================================
 * KBM Ads Archive — RECODE runtime stylesheet (the only archive CSS)
 * Package: KBM-RECODE-06R-ADS-ARCHIVE-RUNTIME-TAKEOVER
 * Scope: everything under .kbm-ads-recode (new DOM). Legacy archive handles
 * are dequeued on this route, so this layer stands alone.
 * ========================================================== */

.kbm-ads-recode{
  --r-navy:var(--kbm-ds-navy,#0b1b2b);
  --r-yellow:var(--kbm-ds-yellow,#ffcc00);
  --r-ink:var(--kbm-ds-ink,#0f172a);
  --r-muted:var(--kbm-ds-muted,#5b6b7d);
  --r-border:var(--kbm-ds-border,#e5e9ef);
  --r-surface:#fff;
  --r-bg:var(--kbm-ds-surface-2,#f8fafc);
  --r-radius:18px;
  --r-shadow:0 8px 24px rgba(11,27,43,.08);
  direction:rtl;max-width:1240px;margin:0 auto;padding:8px 14px 30px;box-sizing:border-box;
  display:flex;flex-direction:column;gap:16px;color:var(--r-ink);
}
.kbm-ads-recode *{box-sizing:border-box}
.kbm-ads-recode a{text-decoration:none}

/* hero */
.kbm-ads-recode-hero{position:relative;overflow:hidden;border-radius:22px;background:linear-gradient(135deg,var(--r-navy),#14385a);color:#fff;padding:clamp(20px,4vw,34px);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;box-shadow:0 18px 44px rgba(2,17,35,.18)}
.kbm-ads-recode-hero::after{content:"";position:absolute;inset:auto -60px -80px auto;width:200px;height:200px;border-radius:50%;background:rgba(255,204,0,.14)}
.kbm-ads-recode-kicker{display:inline-flex;background:rgba(255,204,0,.16);border:1px solid rgba(255,204,0,.4);color:#ffdf47;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:900}
.kbm-ads-recode-hero h1{margin:10px 0 6px;font-size:clamp(20px,3vw,28px);font-weight:900;line-height:1.6;color:#fff}
.kbm-ads-recode-hero p{margin:0;color:rgba(255,255,255,.82);font-size:13px;line-height:1.9}
.kbm-ads-recode-hero-cta{position:relative;z-index:1;display:grid;gap:8px;min-width:150px}
.kbm-ads-recode-hero-btn{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:13px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);color:#fff;font-weight:900;font-size:13px}
.kbm-ads-recode-hero-btn--primary{background:var(--r-yellow);border-color:var(--r-yellow);color:var(--r-navy)}

.kbm-ads-recode-trust{padding:11px 14px;border-radius:14px;background:#fff8dc;border:1px solid #ffe28a;color:#7a4a00;font-size:13px;font-weight:800;line-height:1.8}

/* toolbar */
.kbm-ads-recode-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.kbm-ads-recode-count{font-size:14px;font-weight:800;color:var(--r-navy)}
.kbm-ads-recode-count b{color:var(--r-navy)}
.kbm-ads-recode-sort label{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:var(--r-muted)}
.kbm-ads-recode-sort select{min-height:42px;border:1px solid var(--r-border);border-radius:12px;background:var(--r-surface);color:var(--r-ink);padding:6px 12px;font:inherit;font-weight:800}

/* layout */
.kbm-ads-recode-layout{display:grid;grid-template-columns:minmax(290px,330px) minmax(0,1fr);gap:18px;align-items:start}
.kbm-ads-recode-results{min-width:0;display:flex;flex-direction:column;gap:18px}

/* filter */
.kbm-ads-recode-filter{position:sticky;top:90px}
.kbm-ads-recode-filter-toggle{display:none;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:52px;border:0;border-radius:16px;background:var(--r-yellow);color:var(--r-navy);font-weight:900;font-size:15px;box-shadow:0 14px 30px rgba(255,204,0,.3);cursor:pointer}
.kbm-ads-recode-filter-toggle span{min-width:0}
.kbm-ads-recode-filter-badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 8px;border-radius:999px;background:var(--r-navy);color:#fff;font-style:normal;font-size:12px;font-weight:900}
.kbm-ads-recode-filter-body{background:var(--r-surface);border:1px solid var(--r-border);border-radius:20px;padding:16px;box-shadow:var(--r-shadow);display:flex;flex-direction:column;gap:12px;max-width:100%;overflow:hidden}
.kbm-ads-recode-filter-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
.kbm-ads-recode-filter-head strong{font-size:18px;font-weight:900;color:var(--r-navy)}
.kbm-ads-recode-filter-state{grid-column:1;grid-row:2;font-size:12px;font-weight:800;color:var(--r-muted)}
.kbm-ads-recode-filter-tools{display:inline-flex;align-items:center;gap:10px;grid-row:1 / span 2;grid-column:2}
.kbm-ads-recode-filter-close{display:none;min-height:34px;border:1px solid var(--r-border);border-radius:10px;background:var(--r-bg);color:var(--r-navy);font:inherit;font-size:12px;font-weight:900;cursor:pointer;padding:0 12px}
.kbm-ads-recode-filter-reset{font-size:12px;font-weight:800;color:var(--r-muted);border-bottom:1px dashed #cbd5e1}
.kbm-ads-recode-field{display:grid;gap:6px;margin:0}
.kbm-ads-recode-field>span{font-size:13px;font-weight:800;color:#334155}
.kbm-ads-recode-field input,.kbm-ads-recode-field select{width:100%;min-height:46px;border:1px solid var(--r-border);border-radius:13px;background:var(--r-surface)!important;color:var(--r-ink)!important;padding:8px 12px;font:inherit;font-weight:700}
.kbm-ads-recode-field input:focus,.kbm-ads-recode-field select:focus{outline:none;border-color:var(--r-yellow);box-shadow:0 0 0 4px rgba(255,204,0,.18)}
.kbm-ads-recode-range{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.kbm-ads-recode-checks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.kbm-ads-recode-checks label{display:flex;align-items:center;gap:7px;min-height:40px;border:1px solid var(--r-border);border-radius:12px;padding:6px 9px;font-size:12px;font-weight:800;color:#334155}
.kbm-ads-recode-checks input{accent-color:var(--r-yellow)}
.kbm-ads-recode-filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.kbm-ads-recode-apply{min-height:46px;border:0;border-radius:13px;background:var(--r-navy);color:#fff;font-weight:900;cursor:pointer;font:inherit}
.kbm-ads-recode-clear{display:flex;align-items:center;justify-content:center;border:1px solid var(--r-border);border-radius:13px;background:var(--r-surface);color:var(--r-navy);font-weight:900;font-size:13px}

/* grid + cards (desktop: vertical card) */
.kbm-ads-recode-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.kbm-ads-recode-card{display:flex;flex-direction:column;background:var(--r-surface);border:1px solid var(--r-border);border-radius:var(--r-radius);overflow:hidden;box-shadow:var(--r-shadow);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;min-width:0}
.kbm-ads-recode-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(11,27,43,.14);border-color:var(--r-yellow)}
.kbm-ads-recode-card.is-featured{border-color:#f6c700;box-shadow:0 14px 34px rgba(246,199,0,.22)}
.kbm-ads-recode-card-media{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;background:#eef2f7;overflow:hidden}
.kbm-ads-recode-card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.kbm-ads-recode-card:hover .kbm-ads-recode-card-media img{transform:scale(1.04)}
.kbm-ads-recode-card-media.is-empty{background:#f3f6fa;border-bottom:1px solid var(--r-border)}
.kbm-ads-recode-card-ph{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--r-muted);font-weight:900;font-size:13px}
.kbm-ads-recode-card-badges{position:absolute;inset:8px 8px auto auto;display:flex;flex-direction:column;gap:5px;align-items:flex-end}
.kbm-ads-recode-badge{font-size:11px;font-weight:900;border-radius:999px;padding:3px 9px;background:#fff;color:var(--r-navy);box-shadow:0 4px 12px rgba(0,0,0,.12)}
.kbm-ads-recode-badge--featured{background:var(--r-yellow);color:var(--r-navy)}
.kbm-ads-recode-badge--video{background:#0b1b2b;color:#fff}
.kbm-ads-recode-badge--cat{background:rgba(11,27,43,.86);color:#fff}
.kbm-ads-recode-card-body{display:flex;flex-direction:column;gap:8px;padding:12px;flex:1;min-width:0}
.kbm-ads-recode-card-title{margin:0;font-size:14px;font-weight:900;line-height:1.7}
.kbm-ads-recode-card-title a{color:var(--r-ink)}
.kbm-ads-recode-card-meta{display:flex;flex-wrap:wrap;gap:6px}
.kbm-ads-recode-chip{font-size:11px;color:var(--r-muted);background:var(--r-bg);border:1px solid var(--r-border);border-radius:999px;padding:3px 9px}
.kbm-ads-recode-card-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:4px}
.kbm-ads-recode-card-price{font-size:13px;font-weight:900;color:var(--r-navy)}
.kbm-ads-recode-card-cta{background:var(--r-yellow);color:var(--r-navy);font-weight:900;font-size:12px;border-radius:11px;padding:9px 14px;box-shadow:0 8px 18px rgba(255,204,0,.32)}

/* empty / pagination / load-more */
.kbm-ads-recode-empty{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:40px 18px;background:var(--r-bg);border:1px dashed var(--r-border);border-radius:20px}
.kbm-ads-recode-empty strong{font-size:17px;color:var(--r-navy)}
.kbm-ads-recode-empty span{color:var(--r-muted);font-size:13px;line-height:1.9;max-width:520px}
.kbm-ads-recode-empty-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:6px}
.kbm-ads-recode-empty-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border:1px solid var(--r-border);border-radius:11px;background:var(--r-surface);color:var(--r-navy);font-size:12px;font-weight:900;padding:8px 14px}
.kbm-ads-recode-pagination{overflow:hidden}
.kbm-ads-recode-pagination ul{list-style:none;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:0;margin:0}
.kbm-ads-recode-pagination a,.kbm-ads-recode-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border-radius:12px;border:1px solid var(--r-border);background:var(--r-surface);color:var(--r-navy);font-weight:800;font-size:13px}
.kbm-ads-recode-pagination .current{background:var(--r-navy);color:#fff;border-color:var(--r-navy)}
.kbm-ads-recode-more-wrap{display:flex;justify-content:center}
.kbm-ads-recode-more{min-height:48px;padding:0 28px;border:0;border-radius:14px;background:var(--r-navy);color:#fff;font-weight:900;cursor:pointer;font:inherit;box-shadow:0 12px 26px rgba(11,27,43,.18)}
.kbm-ads-recode-more[disabled]{opacity:.55;cursor:default}
.kbm-ads-recode-more.is-hidden{display:none}
.kbm-js .kbm-ads-recode-pagination{display:none}

/* ===== mobile: horizontal compact card + drawer ===== */
@media (max-width:991px){
  .kbm-ads-recode-layout{grid-template-columns:1fr}
  .kbm-ads-recode-filter{position:relative;top:auto}
  .kbm-ads-recode-filter-toggle{display:flex}
  .kbm-ads-recode-filter-body{display:none;margin-top:12px;max-height:min(78vh,680px);overflow:auto;overscroll-behavior:contain}
  .kbm-ads-recode-filter.is-open .kbm-ads-recode-filter-body{display:flex}
  .kbm-ads-recode-filter-close{display:inline-flex;align-items:center;justify-content:center}
}
@media (max-width:640px){
  .kbm-ads-recode{padding-inline:10px}
  .kbm-ads-recode-hero{grid-template-columns:1fr}
  .kbm-ads-recode-hero-cta{grid-template-columns:1fr 1fr}
  .kbm-ads-recode-grid{grid-template-columns:1fr;gap:12px}
  /* horizontal card */
  .kbm-ads-recode-card{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:stretch}
  .kbm-ads-recode-card-media{aspect-ratio:auto;height:100%;min-height:130px}
  .kbm-ads-recode-card-body{padding:10px 12px;gap:6px}
  .kbm-ads-recode-card-title{font-size:13.5px;line-height:1.6}
  .kbm-ads-recode-card-meta{gap:5px}
  .kbm-ads-recode-chip{font-size:10.5px;padding:2px 8px}
  .kbm-ads-recode-card-foot{flex-wrap:wrap;gap:6px}
  .kbm-ads-recode-card-cta{flex:1;text-align:center}
  .kbm-ads-recode-filter-actions{grid-template-columns:1fr}
}
@media (max-width:380px){
  .kbm-ads-recode-card{grid-template-columns:108px minmax(0,1fr)}
  .kbm-ads-recode-card-media{min-height:108px}
}

/* KBM-LIVE-RUNTIME-MAPPING-01X-E — archive/card visual polish only.
 * No query, payment, OTP, Divar, DB or REST behavior is changed here.
 */
.kbm-ads-recode{background:linear-gradient(180deg,#f8fafc 0,#ffffff 34%);border-radius:24px;padding-block:12px 34px}
.kbm-ads-recode-hero{border:1px solid rgba(255,255,255,.10)}
.kbm-ads-recode-hero h1{letter-spacing:-.015em}
.kbm-ads-recode-trust{display:flex;align-items:center;gap:8px;box-shadow:0 8px 22px rgba(255,204,0,.12)}
.kbm-ads-recode-trust::before{content:"✓";display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;border-radius:999px;background:var(--r-yellow);color:var(--r-navy);font-weight:950}.kbm-ads-recode-toolbar{background:#fff;border:1px solid var(--r-border);border-radius:18px;padding:12px 14px;box-shadow:0 8px 22px rgba(11,27,43,.05)}.kbm-ads-recode-count{display:inline-flex;align-items:center;gap:7px}.kbm-ads-recode-count::before{content:"";width:10px;height:10px;border-radius:3px;background:var(--r-yellow);display:inline-block}.kbm-ads-recode-filter-body{border-radius:22px}.kbm-ads-recode-filter-head strong{display:flex;align-items:center;gap:8px}.kbm-ads-recode-filter-head strong::before{content:"فیلتر";display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:0 8px;border-radius:999px;background:#fff7d1;color:#7a4a00;font-size:10px;font-weight:950;border:1px solid #ffe28a}.kbm-ads-recode-field input,.kbm-ads-recode-field select{transition:border-color .14s ease,box-shadow .14s ease}.kbm-ads-recode-checks label{transition:border-color .14s ease,background .14s ease}.kbm-ads-recode-checks label:hover{border-color:#ffd84a;background:#fffdf2}.kbm-ads-recode-card{position:relative;border-radius:22px;box-shadow:0 10px 26px rgba(11,27,43,.07)}.kbm-ads-recode-card::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,var(--r-yellow),rgba(255,204,0,0));z-index:1;opacity:.78}.kbm-ads-recode-card:hover{transform:translateY(-5px);box-shadow:0 20px 48px rgba(11,27,43,.16)}.kbm-ads-recode-card-media{aspect-ratio:16/10;background:linear-gradient(135deg,#eef2f7,#f8fafc)}.kbm-ads-recode-card-title{font-size:14.5px;font-weight:950;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:48px}.kbm-ads-recode-chip{background:#f8fafc;color:#475569;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kbm-ads-recode-card-foot{border-top:1px solid #f1f5f9;padding-top:10px}.kbm-ads-recode-card-price{display:inline-flex;align-items:center;width:max-content;max-width:100%;background:#fff8dc;border:1px solid #ffe28a;border-radius:999px;padding:4px 10px;line-height:1.6}.kbm-ads-recode-card-cta{display:inline-flex;align-items:center;justify-content:center;min-height:38px;box-shadow:0 8px 18px rgba(255,204,0,.26)}.kbm-ads-recode-empty{box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}
@media (max-width:991px){
  .kbm-ads-recode-filter-toggle{position:sticky;top:8px;z-index:5;padding-inline:14px}
  .kbm-ads-recode-toolbar{align-items:stretch}.kbm-ads-recode-sort label{width:100%;justify-content:space-between}.kbm-ads-recode-sort select{flex:1;min-width:150px}
}
@media (max-width:640px){
  .kbm-ads-recode{padding-inline:9px;border-radius:0;background:#fff}.kbm-ads-recode-hero{border-radius:22px;padding:20px}.kbm-ads-recode-hero-cta{grid-template-columns:1fr}.kbm-ads-recode-toolbar{display:grid;grid-template-columns:1fr;gap:9px}.kbm-ads-recode-card{grid-template-columns:124px minmax(0,1fr);border-radius:18px}.kbm-ads-recode-card::before{width:4px;height:auto;inset:0 auto 0 0;background:linear-gradient(180deg,var(--r-yellow),rgba(255,204,0,0))}.kbm-ads-recode-card-media{min-height:124px}.kbm-ads-recode-card-title{font-size:13px;line-height:1.65;min-height:auto}.kbm-ads-recode-card-body{padding:10px}.kbm-ads-recode-card-foot{padding-top:7px}.kbm-ads-recode-card-price{font-size:11.5px}.kbm-ads-recode-card-cta{min-height:34px;padding:7px 10px}
}
@media (max-width:380px){
  .kbm-ads-recode-card{grid-template-columns:104px minmax(0,1fr)}.kbm-ads-recode-card-media{min-height:104px}.kbm-ads-recode-chip:nth-child(n+3){display:none}
}
@media (prefers-reduced-motion:reduce){
  .kbm-ads-recode *{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}


/* KBM 1.9.7.94 — prevent vertical card/banner stretch */
.kbm-ads-recode-grid{align-items:start!important;grid-auto-rows:auto!important}.kbm-ads-recode-card{height:auto!important;min-height:0!important;max-height:none!important;align-self:start!important;writing-mode:horizontal-tb!important}.kbm-ads-recode-card-media{height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:16/10!important}.kbm-ads-recode-card-body{height:auto!important;min-height:0!important}.kbm-adv-fabric-mount{height:auto!important;min-height:0!important;max-height:none!important;align-self:start!important}.kbm-adv-fabric{height:auto!important;min-height:0!important;max-height:220px!important;overflow:hidden!important}.kbm-adv-fabric__link{height:auto!important;min-height:0!important;max-height:180px!important}.kbm-adv-fabric--card .kbm-adv-fabric__link{min-height:120px!important;max-height:160px!important}.kbm-adv-fabric--side{width:100%!important;max-width:340px!important;margin:14px auto!important}.kbm-adv-fabric--side .kbm-adv-fabric__link{min-height:0!important;max-height:190px!important}
@media(max-width:640px){.kbm-ads-recode-card{grid-template-columns:124px minmax(0,1fr)!important}.kbm-ads-recode-card-media{height:132px!important;min-height:132px!important;max-height:132px!important;aspect-ratio:auto!important}.kbm-adv-fabric,.kbm-adv-fabric__link{max-height:none!important}}


/* PEP-VERTICAL-EXPERIENCE-MAX-03 */
.kbm-ads-recode-card-price{display:inline-flex;align-items:baseline;gap:2px;flex-wrap:wrap}.kbm-ads-recode-card-price small{font-size:11px;color:var(--r-muted);font-weight:900}.kbm-ads-recode-card-meta{max-height:58px;overflow:hidden}.kbm-ads-recode-card-body{padding:12px 13px 13px}.kbm-ads-recode-card-title{font-size:15px}@media(min-width:901px){.kbm-ads-recode-filter-toggle{display:none!important}.kbm-ads-recode-filter-body{display:flex!important}}@media(max-width:900px){.kbm-ads-recode-filter-toggle{display:flex}.kbm-ads-recode-filter{position:static}.kbm-ads-recode-filter-body{display:none}.kbm-ads-recode-filter.is-open .kbm-ads-recode-filter-body,.kbm-ads-recode-filter-body.is-open{display:flex}}


/* KBM 1.9.9-rc.8 — Rental card / driver-card visual parity and stable mobile geometry */
.kbm-ads-recode-grid .kbm-ads-recode-card{
  position:relative!important;
  min-width:0!important;
  isolation:isolate;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
}
.kbm-ads-recode-grid .kbm-ads-recode-card>.kbm-final26-favorite{
  position:absolute!important;
  inset:10px auto auto 10px!important;
  z-index:8!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.86)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.94)!important;
  color:#0b2a3b!important;
  box-shadow:0 8px 22px rgba(15,23,42,.18)!important;
  font:inherit!important;
  line-height:1!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  cursor:pointer!important;
  overflow:hidden!important;
}
.kbm-ads-recode-grid .kbm-ads-recode-card>.kbm-final26-favorite.is-active{background:#fff5bd!important;color:#8a6100!important;border-color:#ffda48!important}
.kbm-ads-recode-grid .kbm-ads-recode-card>.kbm-final26-favorite.is-disabled{opacity:.72!important;cursor:default!important}
.kbm-ads-recode-grid .kbm-ads-recode-card>.kbm-final26-favorite b{font-size:10px!important;line-height:1!important;font-weight:950!important}
.kbm-ads-recode-grid .kbm-ads-recode-card-media img{object-position:center!important}
.kbm-ads-recode-grid .kbm-ads-recode-card-body,
.kbm-ads-recode-grid .kbm-ads-recode-card-body *{
  min-width:0;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}
@media(max-width:640px){
  .kbm-ads-recode-grid{gap:12px!important}
  .kbm-ads-recode-grid .kbm-ads-recode-card{
    display:grid!important;
    grid-template-columns:134px minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    align-items:stretch!important;
    width:100%!important;
    max-width:100%!important;
    min-height:210px!important;
    border-radius:20px!important;
    transform:none!important;
    transition:border-color .16s ease,box-shadow .16s ease!important;
  }
  .kbm-ads-recode-grid .kbm-ads-recode-card:hover{transform:none!important}
  .kbm-ads-recode-grid .kbm-ads-recode-card-media{
    grid-column:1!important;
    grid-row:1!important;
    width:134px!important;
    min-width:134px!important;
    height:100%!important;
    min-height:210px!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    border-inline-end:1px solid var(--r-border)!important;
  }
  .kbm-ads-recode-grid .kbm-ads-recode-card-body{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    min-height:210px!important;
    padding:12px!important;
    gap:8px!important;
  }
  .kbm-ads-recode-grid .kbm-ads-recode-card-title{font-size:14px!important;line-height:1.7!important;min-height:auto!important}
  .kbm-ads-recode-grid .kbm-ads-recode-card-meta{max-height:64px!important;overflow:hidden!important}
  .kbm-ads-recode-grid .kbm-ads-recode-card-foot{display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;align-items:center!important;gap:7px!important}
  .kbm-ads-recode-grid .kbm-ads-recode-card-cta{min-width:92px!important;min-height:38px!important}
  .kbm-ads-recode-grid .kbm-ads-recode-card>.kbm-final26-favorite{inset:9px auto auto 9px!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important}
}
@media(max-width:390px){
  .kbm-ads-recode-grid .kbm-ads-recode-card{grid-template-columns:116px minmax(0,1fr)!important;min-height:196px!important}
  .kbm-ads-recode-grid .kbm-ads-recode-card-media{width:116px!important;min-width:116px!important;min-height:196px!important}
  .kbm-ads-recode-grid .kbm-ads-recode-card-body{min-height:196px!important;padding:10px!important}
  .kbm-ads-recode-grid .kbm-ads-recode-card-meta .kbm-ads-recode-chip:nth-child(n+4){display:none!important}
  .kbm-ads-recode-grid .kbm-ads-recode-card-foot{grid-template-columns:1fr!important}
  .kbm-ads-recode-grid .kbm-ads-recode-card-cta{width:100%!important}
}
@media(hover:none),(pointer:coarse){
  .kbm-ads-recode-card:hover,.kbm-ads-recode-card:hover .kbm-ads-recode-card-media img{transform:none!important}
}


/* KBM 1.9.9-rc.15 — premium featured value and single expired-state contract */
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired){
  border:1px solid rgba(245,183,0,.82)!important;
  background:linear-gradient(145deg,#fffdf4 0%,#ffffff 46%,#f4f8fb 100%)!important;
  box-shadow:0 18px 48px rgba(11,42,59,.18),0 0 0 3px rgba(255,204,0,.14)!important;
  overflow:hidden!important;
}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired)::before{
  width:auto!important;height:6px!important;inset:0!important;bottom:auto!important;
  background:linear-gradient(90deg,#081f31 0%,#f5b700 38%,#ffdc52 62%,#081f31 100%)!important;
  opacity:1!important;
}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired)::after{
  content:none!important;position:absolute;inset:auto auto 10px 10px;z-index:7;
  display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:24px;padding:0 9px;
  border-radius:999px;background:#0b2a3b;color:#ffd43b;border:1px solid rgba(255,212,59,.75);
  font-size:10px;font-weight:900;letter-spacing:.1px;box-shadow:0 8px 18px rgba(11,42,59,.22);
}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-card-media img{
  filter:saturate(1.08) contrast(1.03)!important;transform:scale(1.015);
}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured{
  background:linear-gradient(135deg,#0b2a3b,#173f56)!important;color:#ffdc52!important;
  border:1px solid rgba(255,220,82,.72)!important;box-shadow:0 8px 20px rgba(11,42,59,.24)!important;
  font-weight:950!important;
}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-card-title,
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-card-title a{color:#081f31!important;font-weight:950!important}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-card-cta{
  background:linear-gradient(135deg,#0b2a3b,#173f56)!important;color:#fff!important;border-color:#0b2a3b!important;
  box-shadow:0 10px 22px rgba(11,42,59,.24)!important;
}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-card-cta::before{content:"★";color:#ffdc52;margin-inline-end:5px}

.kbm-ads-recode-grid .kbm-ads-recode-card.is-expired{
  background:#eef1f4!important;border:1px solid #cbd5e1!important;box-shadow:none!important;
  opacity:.9!important;filter:none!important;transform:none!important;
}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-expired::before{
  width:4px!important;height:auto!important;inset:0 auto 0 0!important;background:#94a3b8!important;opacity:1!important;
}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-expired::after{display:none!important}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-expired .kbm-ads-recode-card-media img{
  filter:grayscale(1) contrast(.9)!important;opacity:.7!important;transform:none!important;
}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-expired .kbm-ads-recode-card-body,
.kbm-ads-recode-grid .kbm-ads-recode-card.is-expired .kbm-ads-recode-card-title,
.kbm-ads-recode-grid .kbm-ads-recode-card.is-expired .kbm-ads-recode-card-price{color:#64748b!important}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-expired .kbm-ads-recode-card-price{background:#e2e8f0!important;border-color:#cbd5e1!important}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-expired .kbm-ads-recode-card-cta.is-disabled{
  background:#d9dee3!important;color:#596675!important;border:1px solid #c5cdd5!important;box-shadow:none!important;
  pointer-events:none!important;cursor:not-allowed!important;
}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-expired .kbm-ads-recode-badge--featured,
.kbm-ads-recode-grid .kbm-ads-recode-card.is-expired .kbm-final26-favorite{display:none!important}
@media(max-width:640px){
  .kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired)::after{inset:auto auto 8px 8px}
}
@media(prefers-reduced-motion:reduce){
  .kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-card-media img{transform:none!important}
}

/* === KBM SAADATRENT PATCH RC22: archive card harmony + motion === */
body.kbm-filter-open{
  overflow:hidden;
}
.kbm-ads-recode-card{
  border-radius:28px!important;
  overflow:hidden;
  box-shadow:0 18px 48px rgba(15,23,42,.08)!important;
  transition:transform .25s ease, box-shadow .25s ease;
  background:#fff;
}
.kbm-ads-recode-card:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 54px rgba(15,23,42,.14)!important;
}
.kbm-ads-recode-card-media{
  border-radius:24px 24px 0 0!important;
  overflow:hidden;
  background:linear-gradient(180deg,#f8fafc,#eef5ff)!important;
}
.kbm-ads-recode-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.kbm-ads-recode-card-body{
  gap:12px;
}
.kbm-ads-recode-card-cta{
  border-radius:16px!important;
  font-weight:700;
}
.kbm-ads-recode-card-category,
.kbm-ads-recode-chip,
.kbm-ads-recode-badge{
  border-radius:999px!important;
}
.kbm-auto-marquee{
  display:flex!important;
  gap:16px;
  overflow-x:auto!important;
  scroll-behavior:smooth;
  scrollbar-width:none;
}
.kbm-auto-marquee::-webkit-scrollbar{display:none;}
.kbm-auto-marquee > *{
  flex:0 0 auto;
}
.kbm-motion-reveal{
  animation:kbmArchiveRise .55s ease both;
  animation-delay:calc(var(--kbm-motion-order,0) * 45ms);
}
@keyframes kbmArchiveRise{
  from{opacity:0;transform:translateY(12px);}
  to{opacity:1;transform:translateY(0);}
}
@media (max-width: 768px){
  .kbm-ads-recode-card{
    border-radius:24px!important;
  }
}

/* === KBM RC29 — Rental dependent-filter clarity === */
.kbm-ads-recode-filter-body .kbm-ads-recode-field > span{
  display:block;
  margin:0 0 7px;
  color:#102a43!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1.6;
}
.kbm-ads-recode-filter-body .kbm-ads-recode-field select,
.kbm-ads-recode-filter-body .kbm-ads-recode-field input{
  min-height:52px!important;
  border:1px solid #cbd5e1!important;
  border-radius:15px!important;
  color:#102a43!important;
  background-color:#fff!important;
  font-size:15px!important;
  font-weight:800!important;
  line-height:1.45;
}
.kbm-ads-recode-filter-body .kbm-ads-recode-field select:focus,
.kbm-ads-recode-filter-body .kbm-ads-recode-field input:focus{
  border-color:#d8a500!important;
  box-shadow:0 0 0 3px rgba(255,205,17,.28)!important;
}
.kbm-ads-recode-filter-body .kbm-ads-recode-field select:disabled{
  color:#718096!important;
  background:#eef2f7!important;
  border-color:#d7dee8!important;
  opacity:1!important;
  cursor:not-allowed;
}
.kbm-ads-recode-filter-body .kbm-ads-recode-field select:not(:disabled){cursor:pointer}
@media(max-width:980px){
  .kbm-ads-recode-filter-body{gap:15px!important;padding:18px!important}
  .kbm-ads-recode-filter-body .kbm-ads-recode-field select,
  .kbm-ads-recode-filter-body .kbm-ads-recode-field input{min-height:54px!important;font-size:16px!important}
  .kbm-ads-recode-filter-actions{position:sticky;bottom:-1px;z-index:4;background:#fff;padding-top:10px;padding-bottom:2px}
}


/* RC33 — premium corner asset; no visible Persian "ویژه" word on card media */
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired)::after{content:none!important;display:none!important}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured{position:absolute!important;inset:0 0 auto auto!important;width:78px!important;height:78px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;pointer-events:none!important;z-index:8!important}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;filter:drop-shadow(0 7px 12px rgba(87,57,0,.22))}
@media(max-width:640px){.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured{width:66px!important;height:66px!important}}

/* FULLSTACKMAX HOTFIX-03 — compact premium corner guard */
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured{width:54px!important;height:54px!important;max-width:54px!important;max-height:54px!important;overflow:hidden!important}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured img{width:54px!important;height:54px!important;max-width:54px!important;max-height:54px!important;min-width:0!important;min-height:0!important;object-fit:contain!important;object-position:top right!important;margin:0!important;padding:0!important;filter:none!important;transform:none!important}
@media(max-width:640px){.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured,.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured img{width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important}}


/* KBM rc175: legacy Featured mobile/RC53 reel geometry remains retired.
 * Featured Zone/mark geometry is owned by kbm-featured-premium-card-176.css. */

/* KBM RC66 — catchable /ads/ recovery boundary. */
.kbm-ads66-recovery{
  max-width:1180px;
  margin:32px auto;
  padding:clamp(18px,4vw,38px);
  border:1px solid #d9e0e8;
  border-radius:28px;
  background:#fff;
  box-shadow:0 18px 44px rgba(9,31,51,.10);
  color:#0a2236;
}
.kbm-ads66-recovery__inner{display:grid;gap:14px;justify-items:start}
.kbm-ads66-recovery__kicker{font-weight:800;color:#9a7200}
.kbm-ads66-recovery h1{margin:0;font-size:clamp(24px,4vw,38px);line-height:1.45}
.kbm-ads66-recovery p{margin:0;max-width:760px;line-height:1.9;color:#4b5d6c}
.kbm-ads66-recovery__actions{display:flex;flex-wrap:wrap;gap:10px}
.kbm-ads66-recovery__actions a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border-radius:14px;background:#ffcf21;color:#111827;font-weight:800;text-decoration:none}
.kbm-ads66-recovery__actions a+ a{background:#eef3f7;color:#0a2236}
.kbm-ads66-recovery small{color:#6b7a88;overflow-wrap:anywhere}

/* ==========================================================
 * RC115 — Commercial archive cleanup / canonical card foundation
 * ========================================================== */
.kbm-ads-recode [data-kbm-card-system="market-115"]{--kbm-market-card-radius:18px;--kbm-market-card-gap:8px}
.kbm-ads-recode-section-head>div>span,.kbm-ads-recode-section-head>div>p{display:none!important}
.kbm-ads-recode-section-head h2{margin:0!important;color:#0b2f47!important;font-weight:950!important;line-height:1.5}

/* Premium badge v2: stronger distinction, compact enough to preserve media. */
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired){
  position:relative;border-color:#e3b000!important;
  box-shadow:0 16px 38px rgba(184,134,0,.18),0 0 0 1px rgba(255,214,51,.22) inset!important;
  background:linear-gradient(180deg,#fffef7 0%,#fff 38%)!important;
}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired)::before{
  content:""!important;display:block!important;position:absolute!important;inset:0 0 auto 0!important;height:3px!important;
  background:linear-gradient(90deg,#f0b800,#ffe476,#f0b800)!important;z-index:9!important;pointer-events:none!important;
}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured,
.kbm-ads-recode-section--featured .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured{
  inset:10px 10px auto auto!important;width:58px!important;height:58px!important;max-width:58px!important;max-height:58px!important;
  border:0!important;border-radius:50%!important;background:transparent!important;overflow:visible!important;filter:none!important;
  box-shadow:none!important;pointer-events:none!important;z-index:15!important;
}
.kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured img,
.kbm-ads-recode-section--featured .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured img{
  width:58px!important;height:58px!important;max-width:58px!important;max-height:58px!important;object-fit:contain!important;object-position:center!important;
  filter:drop-shadow(0 8px 12px rgba(6,29,48,.26))!important;transform:none!important;
}

/* Infinite results: page-number navigation remains in the HTML as a crawlable fallback but is not part of the visual UX. */
.kbm-ads-recode-pagination--crawl{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
.kbm-ads-recode-infinite{display:flex;align-items:center;justify-content:center;gap:10px;min-height:58px;margin:4px 0 0;color:#657585;font-size:12px;font-weight:800;text-align:center}
.kbm-ads-recode-infinite__loader{display:inline-flex;align-items:center;gap:9px}
.kbm-ads-recode-infinite[aria-busy="true"] .kbm-ads-recode-infinite__loader::before{content:"";width:17px;height:17px;border:2px solid #d8e0e8;border-top-color:#d5a500;border-radius:50%;animation:kbm115spin .7s linear infinite}
.kbm-ads-recode-infinite.is-complete{min-height:42px;color:#718096}.kbm-ads-recode-infinite.has-error{color:#9b3a2d}
.kbm-ads-recode-infinite__retry{min-height:36px;padding:0 14px;border:1px solid #d7dee8;border-radius:10px;background:#fff;color:#0b2f47;font:inherit;font-weight:900;cursor:pointer}
@keyframes kbm115spin{to{transform:rotate(360deg)}}
@media(max-width:640px){
  .kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured,
  .kbm-ads-recode-section--featured .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured,
  .kbm-ads-recode-grid .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured img,
  .kbm-ads-recode-section--featured .kbm-ads-recode-card.is-featured:not(.is-expired) .kbm-ads-recode-badge--featured img{width:50px!important;height:50px!important;max-width:50px!important;max-height:50px!important}
}
@media(prefers-reduced-motion:reduce){.kbm-ads-recode-infinite[aria-busy="true"] .kbm-ads-recode-infinite__loader::before{animation:none}}
