/* KVARTIO PRO & LITE — 1-to-1 Unified Design System (Cream Light + Obsidian/Gold Dark) */
:root {
  --bg: #f6f1e7 !important;
  --sf: #fffdf8 !important;
  --sf2: #efe8da !important;
  --ink: #1a2234 !important;
  --mut: #5e677a !important;
  --line: #e2d9c8 !important;
  --b: #0a62ff;
  --gold: #d4a017;
  --gold2: #e5b94c;
  --glass: rgba(255, 253, 248, 0.94) !important;
  --sh: 0 10px 26px -14px rgba(26, 34, 52, 0.16) !important;
  --sh2: 0 20px 44px -16px rgba(26, 34, 52, 0.24) !important;
}

[data-theme="dark"] {
  --bg: #060c1a !important;
  --sf: #0e172a !important;
  --sf2: #131f38 !important;
  --ink: #f8fafc !important;
  --mut: #94a3b8 !important;
  --line: rgba(212, 160, 23, 0.22) !important;
  --glass: rgba(10, 18, 36, 0.94) !important;
  --sh: 0 12px 30px -12px rgba(0, 0, 0, 0.72) !important;
  --sh2: 0 24px 48px -16px rgba(0, 0, 0, 0.88) !important;
}

html, body {
  background-color: var(--bg) !important;
  color: var(--ink) !important;
}

.kv-bg {
  display: none !important;
}

/* Hide bottom 5 buttons & header when Story is open */
body.story-open .tb,
body.story-open .hd {
  display: none !important;
}

/* Header */
.hd {
  background: var(--glass) !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: blur(12px);
}
[data-theme="dark"] .hd {
  background: rgba(8, 14, 30, 0.92) !important;
  border-bottom-color: rgba(229, 185, 76, 0.22) !important;
}
.kv-pro-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #e5b94c, #c59326);
  color: #060c1a;
  margin-left: 5px;
  vertical-align: middle;
}

/* Compact Main Screen Hero & Search (matching PRO-1 & Cream Light) */
.hero {
  padding: 10px 14px 6px !important;
}
.hero h1 {
  font-size: 18px !important;
  margin: 0 0 8px !important;
  line-height: 1.25 !important;
  color: var(--ink) !important;
  text-shadow: none !important;
}
.hero h1 em {
  color: #0a62ff !important;
  font-style: normal;
}
[data-theme="dark"] .hero h1 em {
  color: #e5b94c !important;
}
.sb {
  background: var(--sf) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  padding: 8px !important;
  box-shadow: var(--sh) !important;
  gap: 6px !important;
}
.sb select {
  background: var(--sf2) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  height: 36px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}
.sb .btn {
  height: 38px !important;
  border-radius: 11px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #0a62ff, #2563eb) !important;
  color: #fff !important;
}
[data-theme="dark"] .sb .btn {
  background: linear-gradient(135deg, #e5b94c, #c59326) !important;
  color: #060c1a !important;
}

/* Quick Filter Pills */
.qfb, .dlb {
  background: var(--sf) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  border-radius: 99px !important;
  font-size: 12px !important;
  padding: 6px 11px !important;
}
.qfb.on, .dlb.on {
  background: rgba(10, 98, 255, 0.12) !important;
  border-color: #0a62ff !important;
  color: #0a62ff !important;
}
[data-theme="dark"] .qfb.on,
[data-theme="dark"] .dlb.on {
  background: rgba(229, 185, 76, 0.16) !important;
  border-color: #e5b94c !important;
  color: #e5b94c !important;
}

/* Stories gold rings in Dark PRO / Cream */
[data-theme="dark"] .sti .sring {
  background: linear-gradient(135deg, #e5b94c, #c59326) !important;
}
[data-theme="dark"] .sti .sin {
  border-color: #060c1a !important;
}

/* Cards: Strictly 2 columns on mobile for Main Feed AND Favorites (PRO-1 compact) */
#ads, .grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
  padding: 0 2px !important;
}
@media (min-width: 760px) {
  #ads, .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}
@media (min-width: 1100px) {
  #ads, .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

.cd {
  background: var(--sf) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: var(--sh) !important;
  display: flex;
  flex-direction: column;
}
.cd.vip {
  border-color: rgba(212, 160, 23, 0.55) !important;
}
.cd .ph {
  position: relative !important;
  height: 132px !important;
}
@media (max-width: 420px) {
  .cd .ph {
    height: 120px !important;
  }
}
.cd .pp {
  position: absolute !important;
  background: rgba(6, 12, 26, 0.9) !important;
  color: #ffffff !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  left: 6px !important;
  bottom: 6px !important;
  right: auto !important;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  z-index: 5 !important;
  line-height: 1.2 !important;
}
.cd .pp small {
  font-size: 9.5px !important;
  opacity: 0.9;
  margin-left: 1px;
  font-weight: 600 !important;
}

/* Right-edge vertical action icons on card photo (matching PRO-1) */
.cd .hr {
  top: 7px !important;
  right: 7px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: rgba(6, 12, 26, 0.65) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(6px);
}
.cd .hr.on {
  color: #ef4444 !important;
  background: rgba(255, 255, 255, 0.92) !important;
}
.cd-shr {
  position: absolute;
  top: 42px;
  right: 7px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(6, 12, 26, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
}
.cd-shr svg {
  width: 14px;
  height: 14px;
}

.cd .in {
  padding: 8px 9px 9px !important;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}
.cd .ti {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  color: var(--ink) !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  margin-bottom: 2px !important;
  word-break: break-word;
}
.cd .mt {
  font-size: 11px !important;
  color: var(--mut) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.cd .sp {
  font-size: 10.5px !important;
  margin-top: 4px !important;
  padding-top: 5px !important;
  border-top: 1px solid var(--line) !important;
  gap: 4px !important;
}
/* Compact feed: hide date + rooms/area row on mobile 2-col to match PRO-1 */
@media (max-width: 760px) {
  #ads .cd .cd-dt,
  .grid .cd .cd-dt {
    display: none !important;
  }
  #ads .cd .sp,
  .grid .cd .sp {
    display: none !important;
  }
}

/* Compact "Недавно просмотренные" */
#recentBox {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
#recentBox h2 {
  font-size: 15.5px !important;
  margin: 0 0 8px !important;
  color: var(--ink) !important;
}
#recentBox .rvrow {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding: 2px 2px 6px !important;
  scrollbar-width: none;
}
#recentBox .rvrow::-webkit-scrollbar { display: none; }
#recentBox .rvrow .cd {
  flex: 0 0 156px !important;
  border-radius: 14px !important;
}
#recentBox .rvrow .cd .ph {
  height: 78px !important;
}
#recentBox .rvrow .cd .pp {
  font-size: 11.5px !important;
  padding: 2px 7px !important;
  left: 6px !important;
  bottom: 6px !important;
}
#recentBox .rvrow .cd .in {
  padding: 7px 8px 8px !important;
}
#recentBox .rvrow .cd .ti {
  font-size: 12px !important;
  line-height: 1.25 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}
#recentBox .rvrow .cd .mt,
#recentBox .rvrow .cd .sp,
#recentBox .rvrow .cd .hr,
#recentBox .rvrow .cd .cd-shr,
#recentBox .rvrow .cd .c-nav,
#recentBox .rvrow .cd .c-cnt,
#recentBox .rvrow .cd .av {
  display: none !important;
}

/* Favorites quick contact bar inside 2-col cards */
.fav-act {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 7px;
}
.fav-act a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--sf2);
  color: var(--ink);
}
.fav-act a.tg {
  background: rgba(34, 158, 217, 0.14);
  border-color: rgba(34, 158, 217, 0.35);
  color: #0284c7;
}
[data-theme="dark"] .fav-act a.tg {
  color: #38bdf8;
}

/* Add Listing Form (#form / #pf) matching Screen 3 */
#form .box.fg {
  background: var(--sf) !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  padding: 16px !important;
  box-shadow: var(--sh) !important;
}
#form .l {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--mut) !important;
  margin-bottom: 5px !important;
}
#form input[type="text"],
#form input[type="number"],
#form input[type="tel"],
#form select,
#form textarea {
  background: var(--sf2) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}
#form .seg2 {
  background: var(--sf2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 3px !important;
}
#form .seg2 button {
  border-radius: 9px !important;
  color: var(--mut) !important;
}
#form .seg2 button.on {
  background: var(--sf) !important;
  color: var(--ink) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}
[data-theme="dark"] #form .seg2 button.on {
  background: #1b2847 !important;
  color: #e5b94c !important;
  border: 1px solid rgba(229, 185, 76, 0.35) !important;
}
#form .amt {
  background: var(--sf2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  color: var(--ink) !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
}
#form .amc input:checked + .amt {
  border-color: #0a62ff !important;
  background: rgba(10, 98, 255, 0.1) !important;
}
[data-theme="dark"] #form .amc input:checked + .amt {
  border-color: #e5b94c !important;
  background: rgba(229, 185, 76, 0.14) !important;
  color: #fcd34d !important;
}
#form .addph {
  background: var(--sf2) !important;
  border: 1.5px dashed var(--line) !important;
  border-radius: 14px !important;
  color: var(--ink) !important;
}
#form #pm {
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
}
#form #sv {
  background: linear-gradient(135deg, #0a62ff, #2563eb) !important;
  color: #fff !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
}
[data-theme="dark"] #form #sv {
  background: linear-gradient(135deg, #e5b94c, #c59326) !important;
  color: #060c1a !important;
}

/* Notifications Modal (PRO & Cream Light styling) */
.notif-modal {
  backdrop-filter: blur(8px) !important;
}
.notif-modal-box {
  background: var(--sf) !important;
  border: 1px solid var(--line) !important;
  border-radius: 22px !important;
  box-shadow: var(--sh2) !important;
}
.notif-modal-head {
  background: var(--sf) !important;
  border-bottom: 1px solid var(--line) !important;
}
.notif-tab.on {
  background: #0a62ff !important;
  color: #fff !important;
}
[data-theme="dark"] .notif-tab.on {
  background: linear-gradient(135deg, #e5b94c, #c59326) !important;
  color: #060c1a !important;
}
.notif-item {
  background: var(--sf2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
}
.notif-item-title {
  color: var(--ink) !important;
}
.notif-item-text {
  color: var(--mut) !important;
}
.notif-item-tag {
  background: rgba(212, 160, 23, 0.16) !important;
  color: #b45309 !important;
}
[data-theme="dark"] .notif-item-tag {
  color: #e5b94c !important;
}

/* Bottom Navigation Dock (5 exact items: Лента, Карта, +, Избранное, Кабинет) */
.tb {
  background: var(--glass) !important;
  border-top: 1px solid var(--line) !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="dark"] .tb {
  background: rgba(8, 14, 30, 0.96) !important;
  border-top: 1px solid rgba(229, 185, 76, 0.24) !important;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.65) !important;
}
.tb a {
  color: var(--mut) !important;
}
.tb a.on {
  color: #0a62ff !important;
}
[data-theme="dark"] .tb a.on {
  color: #e5b94c !important;
}
.tb a.addb {
  background: linear-gradient(135deg, #0a62ff, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(10, 98, 255, 0.38) !important;
}
[data-theme="dark"] .tb a.addb {
  background: linear-gradient(135deg, #e5b94c, #c59326) !important;
  color: #060c1a !important;
  box-shadow: 0 6px 18px rgba(229, 185, 76, 0.35) !important;
}
[data-theme="dark"] .tb a.addb .ic {
  color: #060c1a !important;
}

/* Force Cream Light & Obsidian Dark PRO over any injected styles */
html[data-theme="light"], html:not([data-theme="dark"]) {
  --bg: #f6f1e7 !important;
  --sf: #fffdf8 !important;
  --sf2: #efe8da !important;
  --ink: #1a2234 !important;
  --mut: #5e677a !important;
  --line: #e2d9c8 !important;
}
html[data-theme="light"] body, html:not([data-theme="dark"]) body {
  background: #f6f1e7 !important;
  color: #1a2234 !important;
}
html[data-theme="dark"] body {
  background: #060c1a !important;
  color: #f8fafc !important;
}
html body .cd {
  background: var(--sf) !important;
  border: 1px solid var(--line) !important;
}
html body .sb {
  background: var(--sf) !important;
  border: 1px solid var(--line) !important;
}
html body .tb {
  background: var(--glass) !important;
  border-top: 1px solid var(--line) !important;
}
html[data-theme="dark"] body .tb {
  background: rgba(8, 14, 30, 0.96) !important;
  border-top: 1px solid rgba(229, 185, 76, 0.25) !important;
}

/* === 1-TO-1 EXACT OVERRIDES FOR 1000059334.jpg (PRO-1 DARK & CREAM LIGHT) === */
html body .tb {
  border-radius: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
}
html body .tb a {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 10px !important;
  padding: 4px 0 !important;
}
html body .tb a.on {
  background: transparent !important;
  box-shadow: none !important;
  color: #0a62ff !important;
}
html[data-theme="dark"] body .tb a.on {
  color: #e5b94c !important;
}
html body .tb a.on span {
  color: inherit !important;
  font-weight: 800 !important;
}
html body .tb a.addb {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  flex: 0 0 44px !important;
  margin: 0 4px !important;
}

/* Card TOP badge -> clean gold pill (left), badges (.bd) start under it or right of it */
html body .cd .tg-top,
html body .cd .vip-b,
html body .cd .top-b,
html body .cd .vtop {
  position: absolute !important;
  border-radius: 6px !important;
  padding: 3px 7px !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  background: #e5b94c !important;
  color: #060c1a !important;
  top: 6px !important;
  left: 6px !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  clip-path: none !important;
  filter: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 7 !important;
  pointer-events: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}
html body .cd .vtop::before {
  display: none !important;
}
html body .cd .vtop b {
  position: static !important;
  transform: none !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  color: #060c1a !important;
  text-shadow: none !important;
  letter-spacing: 0.05em !important;
  line-height: 1.1 !important;
}
/* Deal-type + role badges under TOP, left side, compact */
html body .cd .bd {
  position: absolute !important;
  top: 28px !important;
  left: 6px !important;
  right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
  z-index: 5 !important;
  max-width: 70% !important;
  pointer-events: none !important;
}
html body .cd .bd span,
html body .cd .bd .dl-tag,
html body .cd .bd .rl {
  padding: 2px 6px !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  border-radius: 5px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Card actions: only Heart + Share (match PRO-1 target). Phone hidden on feed. */
html body .cd .hr {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  width: 28px !important;
  height: 28px !important;
  background: rgba(6, 12, 26, 0.72) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
  border-radius: 50% !important;
  z-index: 6 !important;
}
html body .cd .hr.on {
  background: rgba(239, 68, 68, 0.92) !important;
  color: #fff !important;
  border-color: #ef4444 !important;
}
html body .cd .cd-shr {
  position: absolute !important;
  display: grid !important;
  place-items: center !important;
  top: 38px !important;
  right: 6px !important;
  width: 28px !important;
  height: 28px !important;
  background: rgba(6, 12, 26, 0.72) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 50% !important;
  z-index: 6 !important;
}
html body .cd .cd-msg {
  position: absolute !important;
  display: grid !important;
  place-items: center !important;
  top: 70px !important;
  right: 6px !important;
  width: 28px !important;
  height: 28px !important;
  background: rgba(6, 12, 26, 0.72) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 50% !important;
  z-index: 6 !important;
}

/* Compact "Недавно просмотренные" */
html body #recentBox .rvrow .cd {
  flex: 0 0 154px !important;
  min-width: 154px !important;
}
html body #recentBox .rvrow .cd .ph {
  height: 74px !important;
}
html body #recentBox .rvrow .cd .tg,
html body #recentBox .rvrow .cd .hr,
html body #recentBox .rvrow .cd .cd-shr,
html body #recentBox .rvrow .cd .mt,
html body #recentBox .rvrow .cd .sp,
html body #recentBox .rvrow .cd .av,
html body #recentBox .rvrow .cd .c-nav,
html body #recentBox .rvrow .cd .c-cnt {
  display: none !important;
}

/* Add Listing Form (#form) 1-to-1 compact styling */
html body #form .ph-car #addph {
  height: 56px !important;
  flex-direction: row !important;
  border-radius: 12px !important;
}
html body #form .amg {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
html body #form .amt {
  flex-direction: column !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 8px 4px !important;
  gap: 4px !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  min-height: 54px !important;
}

/* === 1-TO-1 EXACT MAIN SCREEN MATCHING e8800448.jpeg === */
.mob-s-btn {
  display: none;
}
@media (max-width: 760px) {
  .mob-s-btn {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--sf);
    border: 1px solid var(--line);
    color: var(--mut);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
  }
  .mob-s-ic {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--sf2);
    color: var(--ink);
    display: grid;
    place-items: center;
  }

  html body #hero h1 {
    display: none !important;
  }
  /* Hide top ad banner on mobile when collapsed so Stories sit right at the top like 1) ГЛАВНАЯ */
  html body #adTopWrap {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
  }
}

/* Horizontal Mini-Card for "Недавно просмотренные" (Thumbnail left + Title & Price right, exact match to 1) ГЛАВНАЯ) */
html body #recentBox .rvrow .cd {
  flex: 0 0 186px !important;
  min-width: 186px !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 6px !important;
  gap: 8px !important;
  border-radius: 13px !important;
}
html body #recentBox .rvrow .cd .ph {
  width: 58px !important;
  height: 54px !important;
  flex: 0 0 58px !important;
  border-radius: 9px !important;
}
html body #recentBox .rvrow .cd .pp {
  position: static !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 3px !important;
  color: #0a62ff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  display: block !important;
}
html[data-theme="dark"] body #recentBox .rvrow .cd .pp {
  color: #e5b94c !important;
}
html body #recentBox .rvrow .cd .in {
  padding: 0 !important;
  min-width: 0 !important;
}
html body #recentBox .rvrow .cd .ti {
  font-size: 11.5px !important;
  line-height: 1.22 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}



html:not([data-theme="dark"]) body .tb a.on,
html:not([data-theme="dark"]) body .tb a.on span,
html:not([data-theme="dark"]) body .tb a.on .ic {
  color: #0a62ff !important;
}
html[data-theme="dark"] body .tb a.on,
html[data-theme="dark"] body .tb a.on span,
html[data-theme="dark"] body .tb a.on .ic {
  color: #e5b94c !important;
}

/* Mobile Header 1-to-1 matching 1000059334.jpg (Logo+PRO, Bell, Theme) */
@media (max-width: 760px) {
  html body .hd {
    padding: 8px 12px !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  html body .hd .logo {
    gap: 6px !important;
  }
  html body .hd .logo img {
    width: 28px !important;
    height: 28px !important;
  }
  html body .hd .logo .lt {
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    color: var(--ink) !important;
  }
  html body .hd .r {
    gap: 6px !important;
  }
  html body .hd .post {
    display: none !important;
  }
}

/* === 1-TO-1 POLISH FOR ALL 5 SCREENS (1000059334.jpg) === */

/* Screen 1: Stories outside #hero + taller 2-col cards */
.stw2.wrap {
  padding-top: 6px !important;
  padding-bottom: 4px !important;
  margin-top: 0 !important;
}
.stw2 .st-hdr {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  margin: 0 0 8px 2px !important;
}
[data-theme="dark"] .sti .sring {
  background: linear-gradient(135deg, #f5c451, #c59326) !important;
  padding: 2px !important;
}
@media (max-width: 760px) {
  html body #ads .cd .ph {
    height: 150px !important;
  }
}

/* Screen 2: Map Side Controls, Price Pills & Bottom Carousel */
.map-side-ctrl {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(10, 18, 36, 0.84);
  border: 1px solid rgba(229, 185, 76, 0.24);
  border-radius: 16px;
  padding: 6px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
html:not([data-theme="dark"]) .map-side-ctrl {
  background: rgba(255, 253, 248, 0.92);
  border-color: #e2d9c8;
  box-shadow: 0 8px 22px rgba(26, 34, 52, 0.16);
}
.map-side-ctrl #loc {
  position: static !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}
html:not([data-theme="dark"]) .map-side-ctrl #loc {
  background: #efe8da !important;
  color: #0a62ff !important;
  border-color: #e2d9c8 !important;
}
.map-z-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  line-height: 1;
}
html:not([data-theme="dark"]) .map-z-btn {
  background: #efe8da;
  color: #1a2234;
  border-color: #e2d9c8;
}
.custom-price-pin {
  background: rgba(10, 18, 36, 0.92) !important;
  color: #f8fafc !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 10px !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  white-space: nowrap;
}
.custom-price-pin.selected {
  background: linear-gradient(135deg, #e5b94c, #c59326) !important;
  color: #060c1a !important;
  border-color: #ffffff !important;
  transform: scale(1.12);
  z-index: 9999 !important;
}
#mapCarousel {
  bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
}
#mapCarousel .mc-card {
  flex: 0 0 182px !important;
  border-radius: 14px !important;
}

/* Screen 3: Publish button matching dark + green/gold outline */
[data-theme="dark"] #form #sv {
  background: #0e172a !important;
  border: 1.5px solid #22c55e !important;
  color: #f8fafc !important;
}

/* Screen 4: Favorites (.fav-page) */
body.fav-page #h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
}
body.fav-page #ads .cd .cd-shr,
body.fav-page #ads .cd .cd-msg,
body.fav-page #ads .cd .vtop,
body.fav-page #ads .cd .bd {
  display: none !important;
}
body.fav-page #ads .cd .sp {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
  font-size: 10px !important;
  color: var(--mut) !important;
  border-top: 0 !important;
  padding-top: 2px !important;
  margin-top: 2px !important;
  gap: 6px !important;
}
body.fav-page #ads .cd .sp span {
  white-space: nowrap !important;
}
body.fav-page #ads .cd .fav-act {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
  gap: 5px !important;
  margin-top: 7px !important;
}

/* Screen 5: Cabinet PRO Ring Card */
.apk-pro-ring-card {
  background: var(--sf);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  box-shadow: var(--sh);
}
.apk-ring-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex: none;
}
.apk-ring-svg {
  width: 100%;
  height: 100%;
}
.apk-ring-bg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 6;
}
.apk-ring-fg {
  fill: none;
  stroke: #e5b94c;
  stroke-width: 6;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.5s ease;
}
.apk-ring-lbl {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  color: #e5b94c;
  letter-spacing: 0.05em;
}
html:not([data-theme="dark"]) .apk-ring-fg {
  stroke: #0a62ff;
}
html:not([data-theme="dark"]) .apk-ring-lbl {
  color: #0a62ff;
}
.apk-ring-info {
  min-width: 0;
  flex: 1;
}
.apk-ring-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 3px;
}
.apk-ring-sub {
  font-size: 12.5px;
  color: var(--mut);
  font-weight: 600;
}
.apk-ring-top {
  font-size: 12.5px;
  color: var(--mut);
  font-weight: 600;
  margin-top: 2px;
}
.apk-ring-sub b, .apk-ring-top b {
  color: var(--ink);
}

/* Override premium.js .hd::before and blue gradient .lt */
.hd::before {
  display: none !important;
}
.hd .lt, .logo .lt {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: var(--ink) !important;
}
[data-theme="dark"] .hd .lt,
[data-theme="dark"] .logo .lt {
  color: #f8fafc !important;
}

/* === EXACT 1-TO-1 PIXEL MATCH FOR 237991ce.jpeg (SCREENS 1, 2, 3, 4, 5) === */

/* 1. Mobile Header: Avatar left, KVARTIO PRO center, Search+Bell+Theme right */
.hd-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sf2) center/cover no-repeat;
  border: 1.5px solid rgba(229, 185, 76, 0.55);
  color: var(--ink);
  display: none;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  flex: none;
}
.hd-av svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .hd-av { display: grid !important; }
  html body .hd {
    padding: 8px 12px !important;
    min-height: 50px !important;
    background: #060c1a !important;
    border-bottom: 0 !important;
  }
  html:not([data-theme="dark"]) body .hd {
    background: #f6f1e7 !important;
  }
  html body .hd .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  html body .hd .logo img { display: none !important; }
  html body .hd .r > a.btn,
  html body .hd .r > .lgc,
  html body .hd .r > .lo,
  html body .hd .r > .adm {
    display: none !important;
  }
  html body .hd .r .ib,
  html body .hd .r .notif-bell {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  html:not([data-theme="dark"]) body .hd .r .ib,
  html:not([data-theme="dark"]) body .hd .r .notif-bell {
    background: rgba(26, 34, 52, 0.06) !important;
    border-color: rgba(26, 34, 52, 0.12) !important;
  }

  html body:not(.fav-page) .sec-row {
    display: none !important;
  }
}

/* 2. Screen 1 Feed Cards: Clean Photo, Centered Bottom Price Pill, 3 Action Icons, 2-Line Footer */
@media (max-width: 760px) {
  html body:not(.fav-page) #ads .cd .bd,
  html body:not(.fav-page) #ads .cd .c-pill,
  html body:not(.fav-page) #ads .cd .c-nav {
    display: none !important;
  }
  html body:not(.fav-page) #ads .cd .ph {
    height: 158px !important;
    border-radius: 14px !important;
  }
  html body:not(.fav-page) #ads .cd .pp {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 8px !important;
    background: rgba(6, 12, 26, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 4px 12px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }
  html body:not(.fav-page) #ads .cd .in {
    padding: 7px 8px 9px !important;
  }
  html body:not(.fav-page) #ads .cd .ti {
    -webkit-line-clamp: 1 !important;
    font-size: 12.5px !important;
    margin-bottom: 2px !important;
  }
  html body:not(.fav-page) #ads .cd .ti .vb {
    display: none !important;
  }
  html body:not(.fav-page) #ads .cd .mt {
    font-size: 11px !important;
  }
}

/* 3. Screen 3: New Listing Form (#form / .pro-add-form) */
.pro-form-hd {
  margin-bottom: 10px !important;
}
.pro-form-hd h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  color: var(--ink) !important;
}
.pro-add-form {
  gap: 11px !important;
  padding: 14px !important;
  border-radius: 18px !important;
}
.pro-media-card {
  background: var(--sf2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.pro-media-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pro-media-t {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.pro-media-t .pcnt {
  font-size: 11px;
  color: #e5b94c;
  margin-left: 4px;
}
.pro-media-s {
  font-size: 11px;
  color: var(--mut);
  margin-top: 2px;
}
.pro-media-btns {
  display: flex;
  gap: 6px;
  flex: none;
}
.pro-cam-btn, .pro-vid-btn {
  width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid var(--line) !important;
  background: var(--sf) !important;
}
.pro-cam-btn .ic, .pro-vid-btn .ic {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
}
.pro-addr-price {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 8px;
}
.pro-addr-price input {
  width: 100%;
  height: 40px !important;
  padding: 0 11px !important;
  font-size: 13px !important;
}
.pro-am-row {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
.pro-am-row .amt {
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: 11px !important;
  justify-content: center !important;
}
.pro-am-row .amt b {
  display: none !important;
}
.pro-am-row .amt .amic {
  width: 28px !important;
  height: 28px !important;
  background: transparent !important;
}
.pro-am-row .amc input:checked + .amt {
  border: 1.5px solid #e5b94c !important;
  background: rgba(229, 185, 76, 0.14) !important;
}
.pro-am-row .amc input:checked + .amt .amic {
  color: #e5b94c !important;
  background: transparent !important;
}
.pro-map-wrap {
  position: relative;
}
.pro-map-wrap #pm {
  height: 116px !important;
  border-radius: 14px !important;
}
.pro-map-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 500;
  background: rgba(10, 18, 36, 0.86);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.pro-map-gps {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 500;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 18, 36, 0.86);
  color: #e5b94c;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.pro-map-gps svg { width: 16px; height: 16px; }
.pro-pub-btn {
  height: 46px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  background: #0b1220 !important;
  border: 1.5px solid #22c55e !important;
  color: #f8fafc !important;
}
html:not([data-theme="dark"]) .pro-pub-btn {
  background: #0a62ff !important;
  border-color: #0a62ff !important;
  color: #fff !important;
}

/* 4. Screen 4: Favorites (Избранное) 1-to-1 Card Layout */
body.fav-page .sec-row {
  margin: 4px 0 10px !important;
}
body.fav-page #h2 {
  font-size: 24px !important;
  font-weight: 800 !important;
}
body.fav-page #cnt {
  display: none !important;
}
body.fav-page #ads .cd .ph {
  height: 118px !important;
}
body.fav-page #ads .cd .pp {
  left: 6px !important;
  bottom: 6px !important;
  transform: none !important;
  font-size: 11.5px !important;
  padding: 3px 7px !important;
  border-radius: 7px !important;
  background: rgba(6, 12, 26, 0.86) !important;
  color: #e5b94c !important;
}
body.fav-page #ads .cd .in {
  padding: 8px 8px 9px !important;
  gap: 3px !important;
}
.fav-price {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.fav-price small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
}
.fav-spec {
  font-size: 10.5px;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.fav-page .fav-act {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
  gap: 5px !important;
  margin-top: 5px !important;
}
body.fav-page .fav-act a {
  height: 29px !important;
  padding: 0 6px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  background: #172033 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}
body.fav-page .fav-act a svg {
  width: 12px;
  height: 12px;
  color: #e5b94c;
}
body.fav-page .fav-act a.tg svg {
  color: #38bdf8;
}
html:not([data-theme="dark"]) body.fav-page .fav-act a {
  background: #efe8da !important;
  border-color: #e2d9c8 !important;
  color: #1a2234 !important;
}

/* 5. Screen 5: Cabinet Polish */
@media (max-width: 760px) {
  .apk-mini-stats, #apkAddBtn {
    display: none !important;
  }
}
[data-theme="dark"] .apk-pass-warn {
  background: linear-gradient(135deg, #f5c451, #eab308) !important;
  color: #060c1a !important;
  border: 0 !important;
  font-weight: 800 !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
}
[data-theme="dark"] .apk-pass-warn b {
  background: rgba(6, 12, 26, 0.16) !important;
  color: #060c1a !important;
}
.apk-tg-pill {
  height: 76px !important;
  flex-direction: column !important;
  gap: 6px !important;
  text-align: center !important;
  line-height: 1.2 !important;
  border-radius: 16px !important;
}
.apk-tg-pill svg {
  width: 22px !important;
  height: 22px !important;
  color: #38bdf8 !important;
}

/* === BUG FIXES FROM SCREENSHOTS (1000061430 - 1000061440) === */

/* 1. Header: Never overlap KVARTIO PRO with right buttons */
@media (max-width: 760px) {
  html body .hd {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 8px 12px !important;
  }
  html body .hd .logo {
    position: static !important;
    transform: none !important;
    margin: 0 auto !important;
    flex: 0 1 auto !important;
  }
  html body .hd .r {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex: none !important;
  }
  html body .hd .r .ib,
  html body .hd .r .notif-bell {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }
  html body .hd .r .cava,
  html body .hd .r .uava,
  html body .hd .r > .ava {
    display: none !important;
  }
}

/* 2. Heart icon (.hr): Dark circle + visible white heart (override kv.css white-on-white) */
html body #ads .cd .ph .hr,
html body .cd .ph .hr,
html body .cd.vip .ph .hr {
  position: absolute !important;
  top: 7px !important;
  right: 7px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgba(6, 12, 26, 0.72) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  display: grid !important;
  place-items: center !important;
  z-index: 7 !important;
  box-shadow: none !important;
}
html body #ads .cd .ph .hr svg,
html body .cd .ph .hr svg {
  width: 14px !important;
  height: 14px !important;
  stroke: #ffffff !important;
  fill: none !important;
}
html body #ads .cd .ph .hr.on,
html body .cd .ph .hr.on {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
}
html body #ads .cd .ph .hr.on svg,
html body .cd .ph .hr.on svg {
  stroke: #ffffff !important;
  fill: #ffffff !important;
}

/* 3. Screen 1 Feed Cards: Ensure .ph doesn't squash .in and .ti + .mt are always visible */
@media (max-width: 760px) {
  html body:not(.fav-page) #ads .cd {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
  }
  html body:not(.fav-page) #ads .cd .ph {
    height: 155px !important;
    flex: none !important;
    position: relative !important;
    overflow: hidden !important;
  }
  html body:not(.fav-page) #ads .cd .in {
    display: flex !important;
    flex-direction: column !important;
    padding: 8px 9px 10px !important;
    background: var(--sf) !important;
    flex: 1 !important;
    min-height: 44px !important;
  }
  html body:not(.fav-page) #ads .cd .ti {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    margin-bottom: 2px !important;
  }
  html body:not(.fav-page) #ads .cd .mt {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 11px !important;
    color: var(--mut) !important;
  }
}

/* 4. Recent Box: Hide badges & carousel pill inside tiny 58px thumbnails */
html body #recentBox .rvrow .cd .bd,
html body #recentBox .rvrow .cd .c-pill,
html body #recentBox .rvrow .cd .c-nav,
html body #recentBox .rvrow .cd .vtop {
  display: none !important;
}

/* 5. Favorites (.fav-page): Style <button> actions + vertical 2-col card */
body.fav-page #ads .cd {
  display: flex !important;
  flex-direction: column !important;
}
body.fav-page .fav-act button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  height: 30px !important;
  padding: 0 6px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  background: #172033 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  cursor: pointer !important;
}
body.fav-page .fav-act button svg {
  width: 12px !important;
  height: 12px !important;
  stroke: #e5b94c !important;
  fill: none !important;
}
body.fav-page .fav-act button.tg svg {
  stroke: #38bdf8 !important;
}
html:not([data-theme="dark"]) body.fav-page .fav-act button {
  background: #efe8da !important;
  border-color: #e2d9c8 !important;
  color: #1a2234 !important;
}

/* 6. Screen 3 (#form): Prevent horizontal overflow & style amenity icons */
#form input, #form select, #form textarea {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
#form .g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
#form .g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
.pro-am-row .amic svg, .pro-am-row .am-ic {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
}

/* 7. Keep Google compliance footer (#ft2) visible with safe bottom padding above .tb */
@media (max-width: 760px) {
  #ft2, footer.ft2 {
    display: block !important;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* === MODERN PREMIUM UI POLISH (v80) === */

/* 1. Full listing titles (never truncated with ...) */
@media (max-width: 760px) {
  html body:not(.fav-page) #ads .cd .ti {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-height: 1.32 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    word-break: break-word !important;
  }
}

/* 2. Top Promo Banner (#kvPromoBar) — clean rounded banner with inside × button */
#kvPromoBar, .kv-promo-bar {
  margin: 8px 12px 4px !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.kv-promo-in.is-banner {
  position: relative !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.25) !important;
  padding: 0 !important;
  margin: 0 !important;
}
.kv-promo-banner-link {
  display: block !important;
  width: 100% !important;
}
.kv-promo-banner-img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: 15px !important;
}
.kv-promo-x.on-banner {
  position: absolute !important;
  top: 7px !important;
  right: 7px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: rgba(6, 12, 26, 0.72) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  z-index: 6 !important;
  padding: 0 !important;
  backdrop-filter: blur(6px);
}

/* 3. Quick Filter Pills (#qfBox): Wrap cleanly, never squish or overlap */
#qfBox .qfbar {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 6px !important;
  border-radius: 16px !important;
  background: var(--sf) !important;
  border: 1px solid var(--line) !important;
}
#qfBox .qf-row-1,
#qfBox .qf-row-2 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  width: 100% !important;
}
#qfBox .qfb,
#qfBox .dlb {
  flex: 1 1 auto !important;
  white-space: nowrap !important;
  padding: 7px 11px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 99px !important;
  justify-content: center !important;
}

/* 4. Modern Buttons & Segmented Controls (eliminate old browser gray buttons) */
#form .seg2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4px !important;
  background: var(--sf2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 4px !important;
}
#form .seg2 button {
  border: 0 !important;
  background: transparent !important;
  color: var(--mut) !important;
  border-radius: 9px !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}
#form .seg2 button.on {
  background: var(--sf) !important;
  color: var(--ink) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}
[data-theme="dark"] #form .seg2 button.on {
  background: #1b2847 !important;
  color: #e5b94c !important;
  border: 1px solid rgba(229, 185, 76, 0.35) !important;
}
#form #cb,
.pro-form-hd #cb {
  background: var(--sf2) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  border-radius: 10px !important;
  padding: 6px 12px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.pro-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pro-map-gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--sf2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pro-map-gps-btn svg {
  width: 14px;
  height: 14px;
  color: #0a62ff;
}
[data-theme="dark"] .pro-map-gps-btn svg {
  color: #e5b94c;
}

/* 5. Modern Modal Buttons (Редактировать профиль, Пароль, и др.) */
.apk-modal-box {
  border-radius: 22px !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35) !important;
}
.apk-modal-box button {
  border-radius: 12px !important;
  padding: 11px 14px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border: 1px solid var(--line) !important;
  background: var(--sf2) !important;
  color: var(--ink) !important;
}
.apk-modal-box button:last-child,
.apk-modal-box .btn:not(.g) {
  background: linear-gradient(135deg, #0a62ff, #2563eb) !important;
  color: #ffffff !important;
  border: 0 !important;
}
[data-theme="dark"] .apk-modal-box button:last-child,
[data-theme="dark"] .apk-modal-box .btn:not(.g) {
  background: linear-gradient(135deg, #e5b94c, #c59326) !important;
  color: #060c1a !important;
}

/* === 1-TO-1 EXACT PIXEL MATCH (1000062198, 1000062200, 1000062202) === */
[data-theme="dark"] body {
  background: #070c18 !important;
}
[data-theme="dark"] .cd {
  background: #0d1424 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
/* Screen 3: Single horizontal row of square gold-outline amenity buttons */
#form .pro-am-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 8px !important;
  padding-bottom: 4px !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}
#form .pro-am-row::-webkit-scrollbar {
  display: none !important;
}
#form .pro-am-row .amc {
  flex: 0 0 46px !important;
  width: 46px !important;
}
#form .pro-am-row .amt {
  width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  border-radius: 12px !important;
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e5b94c !important;
}
#form .pro-am-row .amc input:checked + .amt {
  border: 1.5px solid #e5b94c !important;
  background: rgba(229, 185, 76, 0.16) !important;
  box-shadow: 0 0 0 1px rgba(229, 185, 76, 0.35) !important;
}
[data-theme="dark"] #form .pro-pub-btn {
  background: #070c18 !important;
  border: 1.5px solid #22c55e !important;
  color: #4ade80 !important;
}

/* Screen 4: Favorites dark-gold pill action buttons */
[data-theme="dark"] body.fav-page .fav-act button {
  background: rgba(229, 185, 76, 0.12) !important;
  border: 1px solid rgba(229, 185, 76, 0.28) !important;
  color: #f8fafc !important;
  border-radius: 10px !important;
  height: 32px !important;
}

/* === CRITICAL IMAGE CLIPPING & FOOTER FIX (v82) === */
html body #ads .cd .ph,
html body .cd .ph {
  position: relative !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  width: 100% !important;
}
html body #ads .cd .ph .pi,
html body .cd .ph .pi {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  display: block !important;
}
html body #ads .cd .ph .pi-im,
html body .cd .ph .pi-im {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
html body #ads .cd .in,
html body .cd .in {
  position: relative !important;
  z-index: 2 !important;
  background: var(--sf) !important;
}
.pro-form-hd {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

/* === ZAMONAVIY PREMIUM POLISH FOR AD.HTML, #HOW, #SECS, #FT2, AND MAP DOTS (v84) === */
#how .steps,
#secs .sg {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 12px !important;
}
#how .step,
#secs .sc2 {
  background: var(--sf) !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  box-shadow: var(--sh) !important;
}
#ft2, footer.ft2 {
  background: var(--sf) !important;
  border-top: 1px solid var(--line) !important;
  padding: 24px 16px calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  margin-top: 24px !important;
}
#ft2 .fw {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 20px !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
}
#ft2 .fw > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
#ft2 .fw a.fk {
  display: inline-block !important;
  padding: 4px 0 !important;
  color: var(--mut) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
#ft2 .fw a.fk:hover {
  color: var(--ink) !important;
}
#ft2 .cp {
  margin-top: 18px !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--line) !important;
  text-align: center !important;
  font-size: 12px !important;
  color: var(--mut) !important;
}

/* Map colored dots: Green=Rent, Blue=Sale, Orange=Shop */
.kv-dot {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  border: 2.5px solid #ffffff !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45) !important;
}
.kv-dot.rent { background: #16a34a !important; }
.kv-dot.sale { background: #0a62ff !important; }
.kv-dot.shop { background: #f97316 !important; }
.kv-dot.selected {
  transform: scale(1.38) !important;
  box-shadow: 0 0 0 4px rgba(229, 185, 76, 0.6), 0 4px 14px rgba(0, 0, 0, 0.55) !important;
}

/* === v85 FIXES: #SECS CONTRAST, 4-COL AMENITIES, CHECKBOX, GOLD PRICE BADGES === */

/* 1. #secs ("Безопасность данных") contrast fix */
#secs .sc2 {
  background: var(--sf) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}
#secs .sc2 b {
  color: var(--ink) !important;
  font-weight: 800 !important;
  display: block !important;
  margin-bottom: 4px !important;
}
#secs .sc2 span {
  color: var(--mut) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  display: block !important;
}
#secs .sc2 svg, #secs .sc2 .ic {
  color: #0a62ff !important;
}
[data-theme="dark"] #secs .sc2 svg,
[data-theme="dark"] #secs .sc2 .ic {
  color: #e5b94c !important;
}

/* 2. #ft2 footer contrast */
#ft2 .fw h4, #ft2 .fl .lt {
  color: var(--ink) !important;
}
#ft2 .fw p {
  color: var(--mut) !important;
}

/* 3. Amenities (#amg): 4-column grid wrapping downward (NO horizontal carousel) */
#form .pro-am-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  overflow: visible !important;
  flex-wrap: unset !important;
}
#form .pro-am-row .amc {
  width: 100% !important;
  flex: none !important;
}
#form .pro-am-row .amt {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 12px !important;
  background: var(--sf2) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
}
[data-theme="dark"] #form .pro-am-row .amt {
  background: #111827 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e5b94c !important;
}
#form .pro-am-row .amc input:checked + .amt {
  border: 1.5px solid #0a62ff !important;
  background: rgba(10, 98, 255, 0.12) !important;
  color: #0a62ff !important;
}
[data-theme="dark"] #form .pro-am-row .amc input:checked + .amt {
  border: 1.5px solid #e5b94c !important;
  background: rgba(229, 185, 76, 0.16) !important;
  color: #e5b94c !important;
}

/* 4. Fix "С мебелью" checkbox stretched to 100% width */
#form input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  flex: none !important;
  margin: 0 !important;
}
#form label.sw {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  background: var(--sf2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  cursor: pointer !important;
}
#form label.sw span {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}

/* 5. Description textarea: no manual resize handle */
#form textarea#inpDesc {
  resize: none !important;
  overflow: hidden !important;
  line-height: 1.45 !important;
  padding: 10px 12px !important;
}

/* 6. Price badges on BOTH Main Feed (#ads) & Favorites (.fav-page): compact dark pill + gold text */
html body #ads .cd .ph .pp,
html body.fav-page #ads .cd .ph .pp {
  background: rgba(6, 12, 26, 0.88) !important;
  color: #e5b94c !important;
  border: 1px solid rgba(229, 185, 76, 0.42) !important;
  padding: 3px 9px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  width: auto !important;
  max-width: calc(100% - 14px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
}
html body.fav-page #ads .cd .ph .pp {
  left: 6px !important;
  bottom: 6px !important;
  transform: none !important;
  font-size: 11.5px !important;
  padding: 3px 8px !important;
}

/* === v86 FIXES: HEADER 1&2, RECENT PRICE, 3-COL LUPA FILTERS, PRICE+CURRENCY === */

/* 1. Right-side Profile Avatar (.hd-prof) */
.hd-prof {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sf2) center/cover no-repeat;
  border: 1.5px solid #e5b94c;
  color: var(--ink);
  display: none;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  flex: none;
}
.hd-prof svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .hd-prof { display: grid !important; }
  html body .hd .r .cava,
  html body .hd .r .uava,
  html body .hd .r > .ava {
    display: none !important;
  }
}

/* 2. Recent Box Price: always visible right under title */
html body #recentBox .rvrow .cd .pp {
  position: static !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 3px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #0a62ff !important;
  display: block !important;
  width: auto !important;
}
html[data-theme="dark"] body #recentBox .rvrow .cd .pp {
  color: #e5b94c !important;
}

/* 3. Lupa Search & Quick Filters (#hero + #qfBox): Clean 3-col grid */
#qfBox .qfbar {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 8px !important;
  border-radius: 16px !important;
  background: var(--sf) !important;
  border: 1px solid var(--line) !important;
  margin-top: 6px !important;
}
#qfBox .qf-row-1,
#qfBox .qf-row-2 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
}
#qfBox .qfb,
#qfBox .dlb {
  width: 100% !important;
  padding: 8px 4px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 11px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 4. Price + Currency combined row in Add Listing Form */
.pro-price-cur-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  align-items: center;
}
.pro-price-cur-row input {
  height: 44px !important;
}
.pro-price-cur-row .seg2 {
  height: 44px !important;
  align-items: center !important;
}

/* === v88 PRO HEADER & SINGLE PROFILE AVATAR FIX === */
.hd-prof {
  display: none !important;
}
.kv-pro-tag, .lite-pro-btn {
  font-size: 9px !important;
  padding: 2px 5px !important;
  border-radius: 5px !important;
  margin-left: 4px !important;
}
@media (max-width: 760px) {
  html body .hd .logo {
    margin: 0 auto 0 6px !important;
    justify-content: flex-start !important;
  }
  html body .hd .logo .lt {
    font-size: 15.5px !important;
  }
  html body .hd .r > a.btn[href="cabinet.html"] {
    display: inline-grid !important;
    place-items: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1.5px solid #e5b94c !important;
    background: var(--sf2) !important;
    color: var(--ink) !important;
    overflow: hidden !important;
  }
  html body .hd .r > a.btn[href="cabinet.html"] .un {
    display: none !important;
  }
  html body .hd .r > a.btn[href="cabinet.html"] img.hava {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
  }
}

/* === v89 PRO OVERRIDES: LOGO, ADMIN BUTTON, 260PX MAP, 2-COL LABELED AMENITIES === */
@media (max-width: 760px) {
  html body .hd .logo {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  html body .hd .logo img {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }
  /* Keep Admin Panel button (.adm / .lgc) visible in PRO too! */
  html body .hd .r > .adm,
  html body .hd .r > .lgc {
    display: inline-flex !important;
  }
}

/* Tall 260px map in Add Listing Form */
html body #form #pm,
html body .pro-map-wrap #pm {
  height: 260px !important;
  min-height: 260px !important;
  border-radius: 16px !important;
}

/* 2-column Amenities with Icon + Russian word wrapping cleanly inside frame */
html body #form #amg,
html body #form .pro-am-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  overflow: visible !important;
}
html body #form .pro-am-row .amc {
  width: 100% !important;
  flex: none !important;
}
html body #form .pro-am-row .amt {
  width: 100% !important;
  height: auto !important;
  min-height: 48px !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  text-align: left !important;
  box-sizing: border-box !important;
}
html body #form .pro-am-row .amt .amic {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
}
html body #form .pro-am-row .amt b {
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--ink) !important;
  white-space: normal !important;
  word-break: break-word !important;
  hyphens: auto !important;
  flex: 1 !important;
  min-width: 0 !important;
}
[data-theme="dark"] #form .pro-am-row .amc input:checked + .amt b {
  color: #e5b94c !important;
}

/* === PRO EXCLUSIVE LUXURY FILTER BAR (DISTINCT FROM LITE) === */
html body #mobSearchBar {
  display: none !important;
}
html body:not(.fav-page) #hero {
  display: block !important;
  padding: 6px 12px 4px !important;
  margin: 0 !important;
  background: transparent !important;
}
html body:not(.fav-page) #hero h1 {
  display: none !important;
}
html body:not(.fav-page) #hero .sb {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 10px !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, var(--sf), var(--sf2)) !important;
  border: 1.5px solid rgba(212, 160, 23, 0.42) !important;
  box-shadow: 0 10px 26px -12px rgba(212, 160, 23, 0.22) !important;
}
[data-theme="dark"] body:not(.fav-page) #hero .sb {
  background: linear-gradient(145deg, #0d1629, #13203b) !important;
  border: 1.5px solid rgba(229, 185, 76, 0.45) !important;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.75) !important;
}
html body:not(.fav-page) #hero .sb #rg,
html body:not(.fav-page) #hero .sb #ds {
  grid-column: span 3 !important;
}
html body:not(.fav-page) #hero .sb #tu,
html body:not(.fav-page) #hero .sb #xo,
html body:not(.fav-page) #hero .sb #pr {
  grid-column: span 2 !important;
}
html body:not(.fav-page) #hero .sb select {
  width: 100% !important;
  min-width: 0 !important;
  height: 36px !important;
  padding: 0 22px 0 9px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  background-color: var(--sf) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(212, 160, 23, 0.3) !important;
}
[data-theme="dark"] body:not(.fav-page) #hero .sb select {
  background-color: #070d19 !important;
  color: #f8fafc !important;
  border-color: rgba(229, 185, 76, 0.28) !important;
}
html body:not(.fav-page) #hero .sb .btn {
  grid-column: 1 / -1 !important;
  height: 38px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  background: linear-gradient(135deg, #e5b94c, #c59326) !important;
  color: #060c1a !important;
  border: 0 !important;
  box-shadow: 0 6px 16px -4px rgba(212, 160, 23, 0.45) !important;
}

/* PRO Quick Filter Chips (#qfBox) — Single sleek horizontal ribbon with gold active accents */
html body:not(.fav-page) #qfBox {
  display: block !important;
  padding: 2px 12px 6px !important;
  margin: 0 !important;
}
html body:not(.fav-page) #qfBox .qfbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 6px !important;
  padding: 4px 2px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}
html body:not(.fav-page) #qfBox .qfbar::-webkit-scrollbar {
  display: none !important;
}
html body:not(.fav-page) #qfBox .qf-row-1,
html body:not(.fav-page) #qfBox .qf-row-2 {
  display: contents !important;
}
html body:not(.fav-page) #qfBox .qfb,
html body:not(.fav-page) #qfBox .dlb {
  flex: 0 0 auto !important;
  width: auto !important;
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 99px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  background: var(--sf) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(212, 160, 23, 0.35) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  white-space: nowrap !important;
}
[data-theme="dark"] body:not(.fav-page) #qfBox .qfb,
[data-theme="dark"] body:not(.fav-page) #qfBox .dlb {
  background: #0e172a !important;
  color: #f8fafc !important;
  border-color: rgba(229, 185, 76, 0.28) !important;
}
html body:not(.fav-page) #qfBox .qfb.on,
html body:not(.fav-page) #qfBox .dlb.on {
  background: linear-gradient(135deg, #e5b94c, #c59326) !important;
  color: #060c1a !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.38) !important;
}
body.fav-page #hero,
body.fav-page #qfBox {
  display: none !important;
}

/* === 4 RIGHT-SIDE ACTION BUTTONS (HEART, SHARE, PHONE, TELEGRAM) + PC/TABLET LAYOUT FIX === */
html body #ads .cd .ph .hr,
html body #ads .cd .ph .cd-shr,
html body #ads .cd .ph .cd-msg,
html body #ads .cd .ph .cd-tg,
html body .cd .ph .hr,
html body .cd .ph .cd-shr,
html body .cd .ph .cd-msg,
html body .cd .ph .cd-tg {
  position: absolute !important;
  right: 7px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgba(6, 12, 26, 0.74) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  display: grid !important;
  place-items: center !important;
  z-index: 15 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(6px);
}
html body #ads .cd .ph .hr, html body .cd .ph .hr { top: 6px !important; }
html body #ads .cd .ph .cd-shr, html body .cd .ph .cd-shr { top: 38px !important; }
html body #ads .cd .ph .cd-msg, html body .cd .ph .cd-msg { top: 70px !important; }
html body #ads .cd .ph .cd-tg, html body .cd .ph .cd-tg {
  top: 102px !important;
  background: rgba(2, 132, 199, 0.86) !important;
  border-color: rgba(125, 211, 252, 0.45) !important;
}
html body .cd .ph .cd-shr svg,
html body .cd .ph .cd-msg svg,
html body .cd .ph .cd-tg svg {
  width: 13.5px !important;
  height: 13.5px !important;
  stroke: #ffffff !important;
  fill: none !important;
  pointer-events: none !important;
}
html body .cd .ph .hr svg {
  pointer-events: none !important;
}

/* PC & Tablet (min-width: 761px): Prevent TOP badge & .bd (Аренда/Собственник) from colliding, and make cards look sleek! */
@media (min-width: 761px) {
  html body #ads .cd .ph {
    height: 195px !important;
  }
  /* If card has .vtop (TOP), push .bd down to top: 34px so it NEVER hides half-visible under TOP! */
  html body #ads .cd .ph .vtop {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    z-index: 9 !important;
  }
  html body #ads .cd .ph .bd {
    top: 8px !important;
    left: 8px !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    max-width: calc(100% - 52px) !important;
    z-index: 8 !important;
  }
  html body #ads .cd.vip .ph .bd,
  html body #ads .cd .ph:has(.vtop) .bd {
    top: 34px !important;
  }
  /* Desktop Filter Bar (#hero .sb): Single sleek horizontal row on PC/Tablet */
  html body:not(.fav-page) #hero {
    max-width: 1120px !important;
    margin: 0 auto !important;
  }
  html body:not(.fav-page) #hero .sb {
    grid-template-columns: 1.2fr 1.2fr 0.9fr 0.8fr 0.9fr auto !important;
    padding: 12px !important;
    gap: 8px !important;
  }
  html body:not(.fav-page) #hero .sb #rg,
  html body:not(.fav-page) #hero .sb #ds,
  html body:not(.fav-page) #hero .sb #tu,
  html body:not(.fav-page) #hero .sb #xo,
  html body:not(.fav-page) #hero .sb #pr,
  html body:not(.fav-page) #hero .sb .btn {
    grid-column: auto !important;
  }
  html body:not(.fav-page) #hero .sb .btn {
    padding: 0 24px !important;
    height: 36px !important;
  }
  html body:not(.fav-page) #qfBox {
    max-width: 1120px !important;
    margin: 0 auto !important;
  }
}

/* === v90 MODERN SEARCH CARD, 2x3 QUICK FILTERS (NO OVERFLOW), LITE SWITCHER BUTTON, & PC/TABLET === */

/* Lite / PRO mode toggle button right before Bell */
.kv-mode-btn {
  height: 30px !important;
  padding: 0 10px !important;
  border-radius: 99px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  cursor: pointer !important;
  background: rgba(229, 185, 76, 0.16) !important;
  color: #b45309 !important;
  border: 1px solid rgba(212, 160, 23, 0.45) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}
[data-theme="dark"] .kv-mode-btn {
  color: #e5b94c !important;
  background: rgba(229, 185, 76, 0.14) !important;
  border-color: rgba(229, 185, 76, 0.4) !important;
}
.kv-mode-btn:active {
  transform: scale(0.94) !important;
}

/* Top order spacing: Promo Banner -> Stories -> Search -> Quick Filters */
#kvPromoBar {
  margin: 8px 12px 4px !important;
}
.stw2.wrap {
  padding: 4px 12px 4px !important;
  margin: 0 auto !important;
  max-width: 1120px !important;
}
.stw2 .st-hdr {
  font-size: 15px !important;
  font-weight: 800 !important;
  margin: 0 0 6px 2px !important;
}
.stw2 .sti {
  width: 66px !important;
}
.stw2 .sti .sring {
  width: 60px !important;
  height: 60px !important;
  padding: 2.5px !important;
  background: conic-gradient(#f5c451, #e5b94c, #0a62ff, #f5c451) !important;
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.25) !important;
}

/* Modern Premium Search Panel (#hero .sb) */
html body:not(.fav-page) #hero {
  padding: 6px 12px 4px !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
}
html body:not(.fav-page) #hero .sb {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 12px !important;
  border-radius: 20px !important;
  background: var(--sf) !important;
  border: 1.5px solid rgba(212, 160, 23, 0.38) !important;
  box-shadow: 0 12px 28px -12px rgba(26, 34, 52, 0.16) !important;
}
[data-theme="dark"] body:not(.fav-page) #hero .sb {
  background: linear-gradient(145deg, #0d1629, #111d36) !important;
  border-color: rgba(229, 185, 76, 0.38) !important;
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.78) !important;
}
html body:not(.fav-page) #hero .sb select {
  height: 40px !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 0 24px 0 10px !important;
  background-color: var(--sf2) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="dark"] body:not(.fav-page) #hero .sb select {
  background-color: #162340 !important;
  border-color: rgba(229, 185, 76, 0.24) !important;
  color: #f8fafc !important;
}
html body:not(.fav-page) #hero .sb .btn {
  height: 42px !important;
  border-radius: 13px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #e5b94c, #c59326) !important;
  color: #060c1a !important;
  box-shadow: 0 6px 18px -4px rgba(212, 160, 23, 0.45) !important;
}

/* Quick Filters (#qfBox): Strictly 2 rows of 3 equal columns inside container (NEVER overflows screen!) */
html body:not(.fav-page) #qfBox {
  display: block !important;
  padding: 4px 12px 8px !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}
html body:not(.fav-page) #qfBox .qfbar {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 8px !important;
  border-radius: 18px !important;
  background: var(--sf) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--sh) !important;
  overflow: hidden !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
[data-theme="dark"] body:not(.fav-page) #qfBox .qfbar {
  background: #0d1629 !important;
  border-color: rgba(229, 185, 76, 0.25) !important;
}
html body:not(.fav-page) #qfBox .qf-row-1,
html body:not(.fav-page) #qfBox .qf-row-2 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
}
html body:not(.fav-page) #qfBox .qfb,
html body:not(.fav-page) #qfBox .dlb {
  width: 100% !important;
  min-width: 0 !important;
  height: 34px !important;
  padding: 0 6px !important;
  border-radius: 11px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  background: var(--sf2) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
}
[data-theme="dark"] body:not(.fav-page) #qfBox .qfb,
[data-theme="dark"] body:not(.fav-page) #qfBox .dlb {
  background: #162340 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}
html body:not(.fav-page) #qfBox .qfb.on,
html body:not(.fav-page) #qfBox .dlb.on {
  background: linear-gradient(135deg, #e5b94c, #c59326) !important;
  color: #060c1a !important;
  border-color: transparent !important;
}

/* Tablet & PC (min-width: 761px): 1-row search bar + 6-col single-row quick filters */
@media (min-width: 761px) {
  html body:not(.fav-page) #hero .sb {
    grid-template-columns: 1.2fr 1.2fr 0.9fr 0.8fr 0.9fr auto !important;
  }
  html body:not(.fav-page) #hero .sb #rg,
  html body:not(.fav-page) #hero .sb #ds,
  html body:not(.fav-page) #hero .sb #tu,
  html body:not(.fav-page) #hero .sb #xo,
  html body:not(.fav-page) #hero .sb #pr,
  html body:not(.fav-page) #hero .sb .btn {
    grid-column: auto !important;
  }
  html body:not(.fav-page) #hero .sb .btn {
    padding: 0 26px !important;
    height: 40px !important;
  }
  html body:not(.fav-page) #qfBox .qfbar {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  html body:not(.fav-page) #qfBox .qf-row-1,
  html body:not(.fav-page) #qfBox .qf-row-2 {
    display: contents !important;
  }
}

/* Crisp transparent 3D K logo without circular clipping */
#hd .logo img,
.hd .logo img,
.top-navbar .home-btn img,
#ft2 .fl img {
  border-radius: 0 !important;
  object-fit: contain !important;
  width: 36px !important;
  height: 36px !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* === PAGESPEED 95-100 OPTIMIZATION: ZERO CLS, WCAG CONTRAST, TOUCH TARGETS, HEADING ORDER === */
header#hd, .hd {
  min-height: 54px !important;
  box-sizing: border-box !important;
}
#ads {
  min-height: 680px !important;
}
/* Accessible sr-only for #hero h1 when visually hidden in PRO mode so h1->h2->h3 order stays valid */
html.kv-pro-mode body:not(.fav-page) #hero h1 {
  display: block !important;
  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;
}
/* Touch target spacing on card action buttons (6px gap between 30px circles) */
html body #ads .cd .ph .hr, html body .cd .ph .hr { top: 6px !important; }
html body #ads .cd .ph .cd-shr, html body .cd .ph .cd-shr { top: 40px !important; }
html body #ads .cd .ph .cd-msg, html body .cd .ph .cd-msg { top: 74px !important; }
html body #ads .cd .ph .cd-tg, html body .cd .ph .cd-tg { top: 108px !important; }

/* WCAG AA Contrast ratio >= 4.5:1 for muted text & badges */
:root:not([data-theme="dark"]) {
  --mut: #475569 !important;
}
[data-theme="dark"] {
  --mut: #94a3b8 !important;
}
.lite-pro-btn, .kv-pro-tag {
  color: #060c1a !important;
}
#ft2 .fw a.fk {
  padding: 6px 0 !important;
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
}